/* ==========================================================================
   Kiden Co., Ltd. — Corporate Site Stylesheet
   ========================================================================== */

:root {
  --color-navy: #0f2138;
  --color-navy-deep: #0a1626;
  --color-navy-mid: #1c3355;
  --color-steel: #57687c;
  --color-steel-light: #8fa0b3;
  --color-bg: #f4f6f8;
  --color-white: #ffffff;
  --color-accent: #d9631e;
  --color-accent-dark: #b84f16;
  --color-brand-green: #2c8a54;
  --color-text: #1e2733;
  --color-text-muted: #5a6572;
  --color-border: #dde2e7;

  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --container-width: 1120px;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 88px 0;
}

@media (max-width: 760px) {
  section {
    padding: 56px 0;
  }
}

/* ---------- Section heading ---------- */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .en {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 1.9rem;
  color: var(--color-navy);
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-accent);
}

.section-head p.lead {
  margin-top: 18px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(15, 33, 56, 0.97);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  display: inline-block;
  padding: 10px 18px;
  color: var(--color-white);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* .main-nav__logo は <a> タグなので、上の .main-nav a (display:inline-block) の方が
   詳細度で勝ってしまい、ただの .main-nav__logo{display:none} だと負けて表示されてしまう。
   .main-nav a. をつけて確実に上書きする。 */
.main-nav a.main-nav__logo,
.main-nav .main-nav__footer {
  display: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--color-navy-deep);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: calc(var(--header-height) + 24px) 32px 32px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav a.main-nav__logo {
    display: block;
    margin-bottom: 28px;
    /* .main-nav a の padding/border-bottom(ナビリンク用)を打ち消す */
    padding: 0;
    border-bottom: none;
  }

  .main-nav__logo img {
    height: 22px;
    width: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav .main-nav__footer {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
  }

  .main-nav__footer a {
    color: rgba(255, 255, 255, 0.85);
  }

  .main-nav__footer a:hover {
    color: var(--color-accent);
  }

  .main-nav__footer .footer-note {
    color: rgba(255, 255, 255, 0.55);
  }

  .main-nav__footer .copy {
    display: block;
    margin-top: 14px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ---------- Page header (sub pages) ---------- */
.page-header {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 56px;
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 55%, var(--color-navy-mid) 100%);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/texture-blueprint-navy.jpg");
  background-size: 420px 420px;
  opacity: 0.34;
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-header .en {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: 2.1rem;
  letter-spacing: 0.08em;
}

.breadcrumb {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--color-steel-light);
  position: relative;
}

.breadcrumb a {
  color: var(--color-steel-light);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

/* ---------- Hero (top page) ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background:
    linear-gradient(135deg, rgba(10, 22, 38, 0.88) 0%, rgba(15, 33, 56, 0.82) 50%, rgba(28, 51, 85, 0.85) 100%),
    url("../images/hero-plant-dusk.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/texture-blueprint-navy.jpg");
  background-size: 420px 420px;
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero .en-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  font-weight: 700;
  border: 1px solid rgba(217, 99, 30, 0.5);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero p {
  color: var(--color-steel-light);
  max-width: 560px;
  margin-bottom: 40px;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero {
    min-height: 520px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-weight: 500;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-arrow::after {
  content: "\2192";
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Intro / strengths ---------- */
.strengths {
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)),
    url("../images/texture-brushed-metal.jpg");
  background-size: auto, 600px 600px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 820px) {
  .strength-grid {
    grid-template-columns: 1fr;
  }
}

.strength-card {
  display: block;
  text-align: center;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.strength-card:hover {
  box-shadow: 0 16px 32px rgba(15, 33, 56, 0.09);
  transform: translateY(-4px);
}

.strength-photo {
  position: relative;
  height: 140px;
  background-size: cover;
  background-position: center;
}

.strength-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 33, 56, 0.15) 0%, rgba(15, 33, 56, 0.6) 100%);
}

.strength-body {
  padding: 28px 28px 32px;
}

.strength-card h3 {
  color: var(--color-navy);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.strength-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.strength-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.strength-card:hover .strength-link {
  transform: translateX(4px);
}

/* ---------- Business preview (top page) ---------- */
.business-preview {
  background:
    linear-gradient(rgba(244, 246, 248, 0.55), rgba(244, 246, 248, 0.55)),
    url("../images/texture-blueprint-faint.jpg");
  background-size: auto, 640px 640px;
}

.business-teaser {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .business-teaser {
    grid-template-columns: 1fr;
  }
}

.teaser-photo {
  display: block;
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
}

.teaser-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.teaser-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 33, 56, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.teaser-photo-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.teaser-photo:hover img {
  transform: scale(1.05);
}

.teaser-photo:hover::after,
.teaser-photo:hover .teaser-photo-label {
  opacity: 1;
  transform: translateY(0);
}

.teaser-body {
  padding: 40px 44px 40px 0;
}

@media (max-width: 820px) {
  .teaser-body {
    padding: 8px 32px 40px;
  }
}

.teaser-list {
  margin-bottom: 32px;
  counter-reset: teaser;
}

.teaser-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  counter-increment: teaser;
}

.teaser-list li::before {
  content: counter(teaser, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.teaser-list li a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 10px;
  border-left: 3px solid transparent;
  color: var(--color-navy);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.teaser-list li a:hover {
  border-left-color: var(--color-accent);
  background: var(--color-bg);
  color: var(--color-accent);
}

.teaser-list li .arrow {
  color: var(--color-accent);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.teaser-list li a:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

.link-more {
  display: inline-block;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}

.detail-body .link-more {
  margin-top: 20px;
}

.link-more:hover {
  color: var(--color-accent);
}

/* ---------- Numbers strip ---------- */
.numbers {
  background: var(--color-navy);
  color: var(--color-white);
}

.numbers .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 760px) {
  .numbers .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.numbers .num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.numbers .num small {
  font-size: 1rem;
  margin-left: 4px;
  color: var(--color-steel-light);
}

.numbers .label {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-steel-light);
  letter-spacing: 0.05em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.cta-band h2 {
  color: var(--color-navy);
  font-size: 1.4rem;
}

.cta-band p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

.cta-band .btn-primary {
  background: var(--color-navy);
}

.cta-band .btn-primary:hover {
  background: var(--color-navy-mid);
}

/* ---------- Company info table ---------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

.info-table th,
.info-table td {
  padding: 20px 28px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94rem;
}

.info-table th {
  width: 220px;
  color: var(--color-navy);
  background: #f8f9fb;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.info-table td {
  color: var(--color-text);
}

@media (max-width: 640px) {
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    border-bottom: none;
    padding-bottom: 6px;
  }
  .info-table td {
    padding-top: 0;
  }
}

.notice-box {
  margin-top: 28px;
  padding: 16px 20px;
  background: #fdf3ec;
  border-left: 3px solid var(--color-accent);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Photo banner ---------- */
.photo-banner {
  margin-bottom: 48px;
  border-radius: 4px;
  overflow: hidden;
}

.photo-banner img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.photo-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* ---------- Map placeholder ---------- */
.map-placeholder {
  margin-top: 48px;
  height: 320px;
  background:
    linear-gradient(135deg, rgba(15, 33, 56, 0.05) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      var(--color-border) 0,
      var(--color-border) 1px,
      transparent 1px,
      transparent 16px
    ),
    #eef1f4;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  flex-direction: column;
  gap: 10px;
}


/* ---------- Philosophy ---------- */
.philosophy {
  background: var(--color-white);
  text-align: center;
}

.philosophy blockquote {
  font-size: 1.3rem;
  color: var(--color-navy);
  max-width: 760px;
  margin: 0 auto 24px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.philosophy p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 0.92rem;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  text-align: left;
}

@media (max-width: 700px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

.principle-card {
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-brand-green);
  border-radius: 4px;
  background: var(--color-white);
}

.principle-card h3 {
  color: var(--color-navy);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.principle-card p {
  color: var(--color-text-muted);
  max-width: none;
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Business detail blocks ---------- */
.business-detail {
  background: var(--color-white);
}

.business-detail .container {
  counter-reset: detail;
}

.detail-block {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-block:first-child {
  padding-top: 0;
}

.detail-block:last-child {
  border-bottom: none;
}

.detail-block::before {
  content: counter(detail, decimal-leading-zero);
  counter-increment: detail;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 6.5rem;
  font-weight: 800;
  color: var(--color-navy);
  opacity: 0.06;
  line-height: 1;
  letter-spacing: -0.02em;
  z-index: 0;
  pointer-events: none;
}

.detail-photo,
.detail-body {
  position: relative;
  z-index: 1;
}

.detail-photo {
  height: 210px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-navy);
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body h3 {
  color: var(--color-navy);
  font-size: 1.25rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.detail-body .kana {
  display: block;
  font-size: 0.78rem;
  color: var(--color-accent);
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  font-weight: 700;
}

.detail-body p.desc {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tags li {
  background: #f0f3f6;
  color: var(--color-navy);
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .detail-block {
    grid-template-columns: 1fr;
  }
  .detail-block::before {
    font-size: 3.5rem;
  }
}

/* ---------- Flow ---------- */
.flow {
  background: var(--color-bg);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: flow;
}

@media (max-width: 900px) {
  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .flow-list {
    grid-template-columns: 1fr;
  }
}

.flow-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 30px 22px;
  position: relative;
  counter-increment: flow;
}

.flow-item::before {
  content: counter(flow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 16px;
}

.flow-item h4 {
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 8px;
}

.flow-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Achievements ---------- */
.achv-main {
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)),
    url("../images/texture-brushed-metal.jpg");
  background-size: auto, 600px 600px;
}

.achv-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 820px) {
  .achv-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .achv-fields {
    grid-template-columns: 1fr;
  }
}

.achv-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
}

.achv-card .achv-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-navy);
}

.achv-card .achv-num span {
  font-size: 0.95rem;
  color: var(--color-accent);
  margin-left: 4px;
}

.achv-card .achv-label {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.achv-history {
  margin-top: 72px;
}

.history-list {
  border-top: 1px solid var(--color-border);
}

.history-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 540px) {
  .history-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.history-item .period {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.92rem;
}

.history-item .content h4 {
  font-size: 0.98rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.history-item .content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.tag-field {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 6px;
}

/* ---------- Contact ---------- */
.contact-main {
  background:
    linear-gradient(rgba(244, 246, 248, 0.55), rgba(244, 246, 248, 0.55)),
    url("../images/texture-blueprint-faint.jpg");
  background-size: auto, 640px 640px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 4px;
  padding: 40px 32px;
}

.contact-info h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.contact-info .info-line {
  margin-bottom: 22px;
}

.contact-info .info-line .tel {
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-info .info-line small {
  display: block;
  color: var(--color-steel-light);
  font-size: 0.78rem;
  margin-top: 4px;
}

.contact-info hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 28px 0;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 40px 36px;
}

.form-row {
  margin-bottom: 24px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.form-row label .required {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fbfcfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217, 99, 30, 0.12);
  background: var(--color-white);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.form-submit button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-status {
  margin-top: 18px;
  font-size: 0.88rem;
  text-align: center;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: #1f7a4d;
}

.form-status.error {
  color: #b3261e;
}

.form-row .error {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #b3261e;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: #f4f6f8;
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}

.confirm-table th {
  width: 150px;
  text-align: left;
  vertical-align: top;
  padding: 16px 16px 16px 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
}

.confirm-table td {
  padding: 16px 0;
  font-size: 0.95rem;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 560px) {
  .confirm-table th {
    display: block;
    width: auto;
    padding: 16px 0 4px;
    border-bottom: none;
  }
  .confirm-table td {
    display: block;
    padding: 0 0 16px;
  }
}

.confirm-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.complete-box {
  text-align: center;
  padding: 12px 0 4px;
}

.complete-box p {
  margin-bottom: 14px;
  color: var(--color-text);
  line-height: 1.9;
}

.complete-box p.error {
  color: #b3261e;
}

.complete-box p:last-child {
  margin-bottom: 0;
}

/* ---------- Business sub-pages ---------- */
.check-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text);
}

.check-list li:first-child {
  padding-top: 0;
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.sub-lead {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 0.98rem;
}

.sub-block {
  margin-bottom: 56px;
}

.sub-block:last-child {
  margin-bottom: 0;
}

.sub-block h3 {
  color: var(--color-navy);
  font-size: 1.2rem;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.related-card {
  display: block;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.related-card:hover {
  box-shadow: 0 12px 24px rgba(15, 33, 56, 0.1);
  transform: translateY(-3px);
}

.related-card .related-photo {
  height: 100px;
  background-size: cover;
  background-position: center;
}

.related-card .related-label {
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-deep);
  color: var(--color-steel-light);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand .brand-logo {
  height: 36px;
  margin-bottom: 4px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.84rem;
  line-height: 1.9;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.86rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-note {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--color-steel);
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-steel);
}

/* ---------- Utility ---------- */
.bg-white {
  background: var(--color-white);
}

.bg-alt {
  background:
    linear-gradient(rgba(244, 246, 248, 0.93), rgba(244, 246, 248, 0.93)),
    url("../images/texture-concrete.jpg");
  background-size: auto, 500px 500px;
}

.mt-0 {
  margin-top: 0;
}
