/* =========================================================
   FDE Japan - 下層ページ専用スタイル
   （/fde/ ・ /company/ ・ /contact/）
   セクション部品は page-sections.css を共用する。
   ここには下層ページにしか出てこない部品だけを置く。
   ========================================================= */

/* ===== パンくず ===== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.8rem;
  color: var(--color-text-sub);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: #bbb;
}

.breadcrumb a {
  color: var(--color-text-sub);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.breadcrumb a:hover {
  border-bottom-color: var(--color-text-sub);
}

.breadcrumb [aria-current='page'] {
  color: var(--color-text);
  font-weight: 600;
}

/* ===== 下層ページのヒーロー ===== */
/* トップのヒーローより控えめな高さにし、パンくずを内包する */
.page-hero {
  padding: calc(var(--header-height) + 56px) 0 56px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 0 24px;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

/* 幅の上限は付けない。本文（.body-text）と同じくコンテンツ幅いっぱいを使う */
.page-hero-lead {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text-sub);
}

/* ===== 目次 ===== */
.page-toc {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 28px 32px;
}

.page-toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-sub);
  margin-bottom: 14px;
}

.page-toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}

.page-toc li {
  counter-increment: toc;
  position: relative;
  padding-left: 30px;
  font-size: 0.93rem;
}

.page-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--color-text-sub);
}

.page-toc a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.page-toc a:hover {
  border-bottom-color: var(--color-text);
}

/* ===== 本文中の定義ブロック ===== */
/* 「FDEとは○○である」を一目で拾えるようにする */
.definition-box {
  background: #fff;
  border: 2px solid var(--color-text);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 8px 0 32px;
}

.definition-box p {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0;
}

/* ===== 用語の並記 ===== */
.term-note {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  margin-top: -18px;
  margin-bottom: 28px;
}

/* ===== FAQ ===== */
.faq-list {
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 26px 32px;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 12px;
}

.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.faq-a {
  position: relative;
  padding-left: 32px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin: 0;
}

.faq-a::before {
  content: 'A';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-sub);
}

/* ===== ステップ付きの手順（進め方の詳細版） ===== */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  list-style: none;
  counter-reset: step;
  padding: 0;
}

.step-list li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 26px 32px 26px 76px;
}

.step-list li::before {
  content: 'STEP ' counter(step);
  position: absolute;
  left: 0;
  top: 26px;
  width: 76px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-text-sub);
}

.step-list h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-list p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin: 0;
}

/* ===== ページ末尾のCTA帯 ===== */
.page-cta {
  background: var(--color-text);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}

.page-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-cta h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #fff;
}

.page-cta p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
}

.page-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-cta .btn-primary {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

.page-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.85);
}

.page-cta .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.page-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ===== 会社概要テーブル ===== */
.profile-table th {
  width: 30%;
  white-space: nowrap;
}

/* ===== 拠点リスト ===== */
/* 住所が2行に折り返せる幅を確保する。4拠点なら2列×2段になる */
.office-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.office-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px 28px;
}

.office-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.office-list p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text-sub);
  margin: 0;
}

/* ===== 問い合わせページの連絡先 ===== */
.contact-note-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
  list-style: none;
  padding: 0;
}

.contact-note-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px 26px;
}

.contact-note-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-note-list p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--color-text-sub);
  margin: 0;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .contact-note-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-hero {
    padding: calc(var(--header-height) + 32px) 0 44px;
  }

  .page-hero-inner {
    margin-top: 24px;
    padding: 0 20px;
  }

  .breadcrumb {
    padding: 0 20px;
  }

  .page-toc {
    padding: 24px 22px;
  }

  .page-toc ol,
  .office-list {
    grid-template-columns: 1fr;
  }

  .definition-box {
    padding: 22px 24px;
  }

  .definition-box p {
    font-size: 1rem;
  }

  .faq-item {
    padding: 22px 24px;
  }

  .step-list li {
    padding: 22px 24px 24px;
  }

  .step-list li::before {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    margin-bottom: 8px;
  }

  .office-list li {
    padding: 24px 26px;
  }

  .page-cta {
    padding: 56px 20px;
  }
}
