/*
Theme Name: TC&A Corporate
Theme URI: https://example.com/
Author: TC&A
Author URI: https://example.com/
Description: 株式会社TC&A専用のコーポレートサイト向けオリジナル・ブロックテーマ。
Version: 0.7.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: tcanda-corporate
Tags: block-patterns, full-site-editing, custom-colors, custom-logo, featured-images, wide-blocks
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --tcanda-blue: #00589f;
  --tcanda-navy: #0c2d48;
  --tcanda-steel: #60778a;
  --tcanda-ice: #eaf4fa;
  --tcanda-fog: #f5f7f8;
  --tcanda-graphite: #1e2b35;
  --tcanda-copper: #a96c2d;
  --tcanda-line: #d9e2e8;
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
a { text-underline-offset: 0.18em; }
.wp-site-blocks { overflow: clip; }

.tcanda-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 226, 232, .85);
  backdrop-filter: blur(14px);
}
.admin-bar .tcanda-header { top: 32px; }

.tcanda-logo img { width: min(190px, 35vw); height: auto; }
.tcanda-header .wp-block-navigation-item__content { font-weight: 600; }
.tcanda-header .wp-block-navigation__responsive-container.is-menu-open {
  padding: 28px;
}

.tcanda-hero {
  position: relative;
  min-height: 690px;
  background:
    linear-gradient(135deg, #fff 0 48%, var(--tcanda-ice) 48% 100%);
}
.tcanda-hero-copy { padding-block: clamp(70px, 10vw, 130px); }
.tcanda-kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 800;
}
.tcanda-hero-title {
  letter-spacing: -.045em;
  line-height: 1.18;
}
.tcanda-hero-title strong { color: var(--tcanda-blue); }

.tcanda-photo-placeholder {
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid #c8d8e2;
  background:
    repeating-linear-gradient(135deg, transparent 0 38px, rgba(0,88,159,.04) 38px 39px),
    linear-gradient(135deg, #dceaf2, #f7fafc);
}
.tcanda-photo-placeholder::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 42%;
  height: 180px;
  opacity: .13;
  background:
    linear-gradient(var(--tcanda-blue), var(--tcanda-blue)) 0 0 / 85% 22px no-repeat,
    linear-gradient(var(--tcanda-blue), var(--tcanda-blue)) 18% 72px / 82% 22px no-repeat,
    linear-gradient(var(--tcanda-blue), var(--tcanda-blue)) 0 144px / 72% 22px no-repeat;
}
.tcanda-photo-placeholder > * { position: relative; z-index: 2; }
.tcanda-photo-placeholder--small { min-height: 260px; }
.tcanda-photo-placeholder--medium { min-height: 430px; }

.tcanda-trust {
  position: relative;
  z-index: 3;
  margin-top: -34px !important;
  box-shadow: 0 24px 70px rgba(12, 45, 72, .12);
}
.tcanda-trust .wp-block-column {
  border-right: 1px solid var(--tcanda-line);
}
.tcanda-trust .wp-block-column:last-child { border-right: 0; }

.tcanda-section { padding-block: clamp(72px, 10vw, 120px); }
.tcanda-section-heading { margin-bottom: clamp(32px, 5vw, 56px); }
.tcanda-section-title {
  letter-spacing: -.035em;
  line-height: 1.3;
}

.tcanda-business-card {
  height: 100%;
  overflow: hidden;
  background: var(--tcanda-fog);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tcanda-business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(12, 45, 72, .12);
}
.tcanda-business-card { height: 100%; display: flex; flex-direction: column; }
.tcanda-business-card > .wp-block-group { height: auto; }

.tcanda-quality { color: #fff; }
.tcanda-quality-grid > .wp-block-column {
  background: #123a5a;
  min-height: 180px;
}

.tcanda-company-data {
  border-top: 1px solid var(--tcanda-line);
}
.tcanda-company-data > .wp-block-group {
  border-bottom: 1px solid var(--tcanda-line);
}

.tcanda-news .wp-block-post {
  border-bottom: 1px solid var(--tcanda-line);
  padding-block: 20px;
}
.tcanda-news .wp-block-post:first-child {
  border-top: 1px solid var(--tcanda-line);
}

.tcanda-recruit {
  overflow: hidden;
  background: var(--tcanda-blue);
  color: #fff;
}

.tcanda-contact {
  background: linear-gradient(120deg, var(--tcanda-blue), #0071bd);
  color: #fff;
}
.tcanda-contact a { color: inherit; }

.tcanda-footer a { color: #d0dce4; }
.tcanda-footer .wp-block-navigation-item__content { font-size: .82rem; }

.wp-block-button__link {
  transition: transform .2s ease, box-shadow .2s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(12, 45, 72, .16);
}

@media (max-width: 900px) {
  .admin-bar .tcanda-header { top: 46px; }
  .tcanda-hero { min-height: auto; background: #fff; }
  .tcanda-hero .wp-block-columns,
  .tcanda-intro,
  .tcanda-company-summary,
  .tcanda-contact-inner {
    flex-wrap: wrap !important;
  }
  .tcanda-hero .wp-block-column,
  .tcanda-intro > .wp-block-column,
  .tcanda-company-summary > .wp-block-column,
  .tcanda-contact-inner > .wp-block-column {
    flex-basis: 100% !important;
  }
  .tcanda-trust { margin-inline: 18px !important; margin-top: 0 !important; }
  .tcanda-trust .wp-block-columns { flex-wrap: wrap !important; }
  .tcanda-trust .wp-block-column {
    flex-basis: 100% !important;
    border-right: 0;
    border-bottom: 1px solid var(--tcanda-line);
  }
  .tcanda-quality-layout { flex-wrap: wrap !important; }
  .tcanda-quality-layout > .wp-block-column { flex-basis: 100% !important; }
  .tcanda-recruit-layout { flex-wrap: wrap !important; }
  .tcanda-recruit-layout > .wp-block-column { flex-basis: 100% !important; }
}

@media (max-width: 600px) {
  .tcanda-photo-placeholder { min-height: 330px; }
  .tcanda-photo-placeholder--medium { min-height: 300px; }
  .tcanda-hero-title { font-size: clamp(2.35rem, 12vw, 3.5rem) !important; }
  .tcanda-section-title { font-size: clamp(2rem, 10vw, 3rem) !important; }
  .tcanda-quality-grid { grid-template-columns: 1fr !important; }
}


.tcanda-location-card {
  height: 100%;
  border-top: 4px solid var(--tcanda-blue);
  background: var(--tcanda-fog);
}
.tcanda-location-card address {
  font-style: normal;
}
.tcanda-contact-links a {
  color: #fff;
  font-weight: 700;
}


.tcanda-page-hero {
  background:
    linear-gradient(135deg, var(--tcanda-ice) 0 72%, #fff 72% 100%);
}
.tcanda-page-lead {
  max-width: 780px;
  color: var(--tcanda-steel);
  font-size: 1.08rem;
}
.tcanda-feature-card,
.tcanda-flow-card,
.tcanda-info-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--tcanda-line);
}
.tcanda-feature-card {
  border-top: 4px solid var(--tcanda-blue);
}
.tcanda-number {
  color: var(--tcanda-copper);
  letter-spacing: .14em;
  font-weight: 800;
  font-size: .78rem;
}
.tcanda-scope-list {
  padding: 0;
  list-style: none;
}
.tcanda-scope-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--tcanda-line);
}
.tcanda-scope-list li::before {
  content: "—";
  color: var(--tcanda-blue);
  margin-right: .65em;
}
.tcanda-step-grid > .wp-block-group {
  position: relative;
  min-height: 180px;
  background: var(--tcanda-fog);
}
.tcanda-caution {
  border-left: 4px solid var(--tcanda-copper);
  background: #fff8ef;
}
.tcanda-form-placeholder {
  border: 1px dashed #9db6c6;
  background: var(--tcanda-fog);
}
.tcanda-privacy h2 {
  margin-top: 2.8em;
}
.tcanda-privacy h3 {
  margin-top: 2em;
}
.tcanda-job-table > .wp-block-group {
  border-bottom: 1px solid var(--tcanda-line);
}
@media (max-width: 700px) {
  .tcanda-page-hero {
    background: var(--tcanda-ice);
  }
}


.tcanda-contact-form {
  display: grid;
  gap: 22px;
}
.tcanda-contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.tcanda-contact-form input,
.tcanda-contact-form select,
.tcanda-contact-form textarea {
  width: 100%;
  border: 1px solid var(--tcanda-line);
  border-radius: 2px;
  padding: 13px 14px;
  background: #fff;
  color: var(--tcanda-graphite);
  font: inherit;
}
.tcanda-contact-form textarea {
  min-height: 210px;
  resize: vertical;
}
.tcanda-contact-form input:focus,
.tcanda-contact-form select:focus,
.tcanda-contact-form textarea:focus {
  outline: 2px solid rgba(0, 88, 159, .18);
  border-color: var(--tcanda-blue);
}
.tcanda-contact-form .required {
  display: inline-block;
  margin-left: .45em;
  padding: .08em .45em;
  background: var(--tcanda-blue);
  color: #fff;
  font-size: .72em;
}
.tcanda-contact-form input[type="submit"] {
  width: auto;
  min-width: 240px;
  border: 0;
  background: var(--tcanda-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}


/* v0.6.1 — header / intermediate viewport refinement */
.tcanda-header .wp-block-navigation__container {
  flex-wrap: nowrap;
}
.tcanda-header .wp-block-navigation-item__content,
.tcanda-header .wp-block-button__link {
  white-space: nowrap;
}
.tcanda-header .wp-block-buttons {
  flex-shrink: 0;
}
.tcanda-hero > .wp-block-columns,
.tcanda-hero .wp-block-columns.alignwide {
  width: 100%;
  padding-inline: clamp(0px, 1.5vw, 20px);
}
.tcanda-hero-copy {
  min-width: 0;
}

/* The WordPress editor preview is narrower than the browser viewport.
   Switch to the overlay navigation before labels start wrapping. */
@media (max-width: 1120px) {
  .tcanda-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .tcanda-header .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .tcanda-header .wp-block-buttons {
    display: none;
  }
  .tcanda-hero {
    min-height: auto;
  }
  .tcanda-hero .wp-block-columns {
    flex-wrap: wrap !important;
  }
  .tcanda-hero .wp-block-column {
    flex-basis: 100% !important;
  }
  .tcanda-hero-copy {
    padding-block: 72px 28px;
  }
  .tcanda-hero .tcanda-photo-placeholder {
    min-height: 380px;
    margin-bottom: 52px;
  }
}


/* v0.6.2 — business-card content visibility and rhythm */
.tcanda-business-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tcanda-business-card > .wp-block-group {
  height: auto !important;
}
.tcanda-business-card > .tcanda-photo-placeholder {
  flex: 0 0 auto;
  min-height: 250px;
}
.tcanda-business-card > .wp-block-group:last-child {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.tcanda-business-card > .wp-block-group:last-child > p:last-child {
  margin-top: auto;
}
.tcanda-business-card .tcanda-photo-placeholder--small {
  min-height: 250px;
}

@media (max-width: 900px) {
  .tcanda-business-card .tcanda-photo-placeholder--small {
    min-height: 220px;
  }
}


/* v0.6.3 — Contact Form 7 */
.tcanda-contact-form {
  display: grid;
  gap: 22px;
}
.tcanda-contact-form h3 {
  margin: 20px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tcanda-line);
  color: var(--tcanda-navy);
}
.tcanda-contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}
.tcanda-contact-form input,
.tcanda-contact-form select,
.tcanda-contact-form textarea {
  width: 100%;
  border: 1px solid var(--tcanda-line);
  border-radius: 2px;
  padding: 13px 14px;
  background: #fff;
  color: var(--tcanda-graphite);
  font: inherit;
}
.tcanda-contact-form textarea {
  min-height: 210px;
  resize: vertical;
}
.tcanda-contact-form input[type="file"] {
  padding: 10px;
  background: var(--tcanda-fog);
  border-style: dashed;
}
.tcanda-contact-form input:focus,
.tcanda-contact-form select:focus,
.tcanda-contact-form textarea:focus {
  outline: 2px solid rgba(0,88,159,.15);
  border-color: var(--tcanda-blue);
}
.tcanda-contact-form .required {
  display: inline-block;
  width: fit-content;
  margin-left: .35em;
  padding: .08em .45em;
  background: var(--tcanda-blue);
  color: #fff;
  font-size: .72em;
}
.tcanda-contact-form input[type="submit"] {
  width: auto;
  min-width: 220px;
  border: 0;
  background: var(--tcanda-blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
\n\n/* v0.7.0 — automotive wire harness content */\n.tcanda-news .wp-block-post-title {\n  margin: 0;\n  line-height: 1.55;\n}\n.tcanda-news .wp-block-post-title a {\n  color: var(--tcanda-graphite);\n  font-weight: 700;\n}\n