/* ========================================
   page-common.css — 全サブページ共通
   FVバナー / パンくず / セクション見出し / FVアニメーション
   ======================================== */

/* ========================================
   ページFVバナー
   ======================================== */
.page-fv {
  position: relative;
  padding: 168px 0 64px;
  background: linear-gradient(195deg, #1a3560 0%, #1E3D6B 40%, #223f6e 70%, #1a3560 100%);
  overflow: hidden;
  text-align: center;
}
/* レイヤー1: 斜線テクスチャ */
.page-fv::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 48px
    );
  pointer-events: none;
  z-index: 1;
}
/* レイヤー2: 背景写真（ページ固有CSSで画像を指定） */
.page-fv::after {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.page-fv__inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}
.page-fv__en {
  font-family: var(--font-english);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: var(--color-accent);
  opacity: 0.7;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.page-fv__en::before,
.page-fv__en::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
  flex-shrink: 0;
}
.page-fv__heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.page-fv__sub {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  margin-top: 16px;
}

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px 20px;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb__item {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}
.breadcrumb__item a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
.breadcrumb__item a:hover {
  opacity: 0.7;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: '>';
  display: inline-block;
  margin: 0 8px;
  color: #ccc;
  font-size: 11px;
}

/* ========================================
   セクション見出し（H2）— 全サブページ共通
   ======================================== */
.section-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  line-height: var(--line-height-heading);
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 20px;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
}

/* 中央揃えバリエーション */
.section-heading--center {
  text-align: center;
}
.section-heading--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* セクション英字サブ（見出し上の英字） */
.section-heading-en {
  font-family: var(--font-english);
  font-size: var(--font-size-h1-en);
  font-weight: 400;
  color: var(--color-primary);
  opacity: 0.4;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}
.section-heading-en--center {
  text-align: center;
}

/* ========================================
   ページFV — エントランスアニメーション
   ======================================== */
@keyframes pageFvFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-fv__en,
.page-fv__heading,
.page-fv__sub {
  opacity: 0;
}
.page-fv.is-animated .page-fv__en {
  animation: pageFvFadeUp 0.5s ease forwards;
  animation-delay: 0.2s;
}
.page-fv.is-animated .page-fv__heading {
  animation: pageFvFadeUp 0.5s ease forwards;
  animation-delay: 0.2s;
}
.page-fv.is-animated .page-fv__sub {
  animation: pageFvFadeUp 0.5s ease forwards;
  animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  .page-fv__en,
  .page-fv__heading,
  .page-fv__sub {
    opacity: 1;
    animation: none !important;
  }
}

/* ========================================
   FAQアイテム（アコーディオン）— 全サブページ共通
   ======================================== */
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(30,61,107,0.08), 0 0 0 1px rgba(30,61,107,0.04);
  position: relative;
}
/* L字コーナー装飾 */
.faq-item::before {
  content: '';
  position: absolute;
  top: -6px; right: -6px;
  width: 40px; height: 40px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}
.faq-item::after {
  content: '';
  position: absolute;
  bottom: -6px; left: -6px;
  width: 28px; height: 28px;
  border-bottom: 2px solid rgba(30,61,107,0.15);
  border-left: 2px solid rgba(30,61,107,0.15);
  pointer-events: none;
  z-index: 1;
}
.faq-item__q {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  transition: background 0.2s;
}
.faq-item__q:hover {
  background: rgba(30,61,107,0.02);
}
.faq-item__q-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-english);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
}
.faq-item__q-text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
}
.faq-item__toggle {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  background: var(--color-primary);
  transition: transform 0.3s ease;
}
.faq-item__toggle::before {
  top: 50%; left: 2px; right: 2px;
  height: 2px;
  transform: translateY(-50%);
}
.faq-item__toggle::after {
  left: 50%; top: 2px; bottom: 2px;
  width: 2px;
  transform: translateX(-50%);
}
.faq-item.is-open .faq-item__toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
/* Answer */
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.is-open .faq-item__a {
  grid-template-rows: 1fr;
}
.faq-item__a-inner {
  overflow: hidden;
  display: flex;
  gap: 16px;
  padding: 0 24px;
  min-height: 0;
}
.faq-item.is-open .faq-item__a-inner {
  padding: 0 24px 24px;
}
.faq-item__a-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-english);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 2px;
}
.faq-item__a-inner p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}
.faq-item__a-body p + p {
  margin-top: 8px;
}
.faq-item__a-inner a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item__a-inner a:hover {
  opacity: 0.7;
}

/* ========================================
   RESPONSIVE — Tablet (1024px)
   ======================================== */
@media (max-width: 1280px) {
  .page-fv { padding: 116px 0 48px; }
  .page-fv__heading { font-size: 26px; }
  .page-fv__sub { font-size: 13px; }
}

/* ========================================
   RESPONSIVE — SP (768px)
   ======================================== */
@media (max-width: 768px) {
  /* ページFVバナー SP */
  .page-fv { padding: 84px 0 36px; }
  .page-fv__en { font-size: 12px; letter-spacing: 0.2em; margin-bottom: 12px; }
  .page-fv__en::before,
  .page-fv__en::after { width: 20px; }
  .page-fv__heading { font-size: 22px; letter-spacing: 0.04em; }
  .page-fv__sub { font-size: 14px; margin-top: 12px; }

  /* パンくず SP */
  .breadcrumb { padding: 12px 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .breadcrumb__list { flex-wrap: nowrap; white-space: nowrap; }
  .breadcrumb__item { font-size: 12px; }

  /* セクション見出し SP */
  .section-heading { font-size: 22px; margin-bottom: 36px; padding-bottom: 16px; }
  .section-heading::after { width: 40px; }
  .section-heading-en { font-size: 18px; margin-bottom: 8px; }

  /* FAQアイテム SP */
  .faq-item::before { width: 32px; height: 32px; top: -5px; right: -5px; }
  .faq-item::after { width: 24px; height: 24px; bottom: -5px; left: -5px; }
  .faq-item__q { padding: 16px 16px; gap: 12px; }
  .faq-item__q-mark { width: 32px; height: 32px; font-size: 14px; }
  .faq-item__q-text { font-size: 15px; }
  .faq-item__toggle { width: 16px; height: 16px; }
  .faq-item__a-inner { padding: 0 16px; gap: 12px; }
  .faq-item.is-open .faq-item__a-inner { padding: 0 16px 20px; }
  .faq-item__a-mark { width: 32px; height: 32px; font-size: 14px; }
  .faq-item__a-inner p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__toggle::before,
  .faq-item__toggle::after {
    transition: none;
  }
  .faq-item__a {
    transition: none;
  }
}
