/* =========================================================
   合格実績ページ専用スタイル（Figma 712:2 / SP 722:455）
   共通トークン(:root)・page-hero・wao-accordion を流用。
   ここではページ固有の要素のみ定義する。
   ========================================================= */

.wao-result {
  --wao-result-pink: #ff7575;        /* 年度ラベル */
  --wao-result-sakura: #ffd4d4;      /* 桜アイコン */
  --wao-result-cat-bg: #fdeeee;      /* 区分見出し帯の淡ピンク */
  --wao-result-line: #e2e2e2;        /* 学校名下の区切り線 */
  --wao-result-note: #333;           /* 補足テキスト */
  --wao-result-hero: #8b0000;        /* ヒーロー帯（濃い赤・Figma実測） */
  --wao-result-card-bg: #fff3f3;     /* 特設カードの薄ピンク地（Figma実測） */
  --wao-result-accordion-bg: #f5f5f5;/* 年度アコーディオン領域の背景（Figma実測） */
  background: var(--wao-white);
}

/* ヒーロー帯は合格実績のみ濃い赤（共通は濃緑）。ページスコープで上書き */
.wao-result .wao-page-hero {
  background: var(--wao-result-hero);
}

/* ---- 上部（白背景）: 2026注目バナー＋特設カード ---- */
.wao-result__intro {
  padding: 40px var(--wao-pad) 48px;
  background: var(--wao-white);
}

/* 2026年度 特設カード（ピンク枠＋ピンクのオフセット影） */
.wao-result__featured {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 30px 24px;
  background: var(--wao-result-card-bg);
  border: 0;
  border-radius: 10px;
  box-shadow: 8px 8px 0 var(--wao-result-sakura);
}
/* 特設カード内の区分見出しは白地＋薄枠 */
.wao-result__featured .wao-result__cat-title {
  background: var(--wao-white);
  border: 1px solid var(--wao-result-line);
}
.wao-result__featured .wao-result__cats {
  padding-bottom: 0;
}

/* ---- 年度アコーディオン（グレー背景・全幅） ---- */
.wao-result__years-wrap {
  padding: 40px var(--wao-pad) 48px;
  background: var(--wao-result-accordion-bg);
}

/* グレー領域の直後にフッターを密着させる（共通フッターの白い上マージンを除去） */
.wao-result ~ .wao-footer {
  margin-top: 0;
}

/* ================= 2026年度 注目バナー ================= */
.wao-result__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 32px;
}
.wao-result__banner-title {
  font-family: var(--wao-font-noto);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: var(--wao-ink);
  text-align: center;
}
.wao-result__banner-sakura {
  flex: none;
  width: 64px;
  height: 64px;
  background: url("../../images/result/sakura.svg") center / contain no-repeat;
}

/* ================= 年度アコーディオン ================= */
.wao-result__years {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 各年度アイテム（白カード） */
.wao-result__year {
  background: var(--wao-white);
  border-radius: 10px;
  overflow: hidden;
}

/* 年度見出しバー */
.wao-acc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  background: var(--wao-white);
  border: 0;
  cursor: pointer;
  text-align: left;
  appearance: none;
}
.wao-result__year-icon {
  flex: none;
  width: 31px;
  height: 31px;
  background: url("../../images/result/sakura.svg") center / contain no-repeat;
}
.wao-result__year-label {
  font-family: var(--wao-font-noto);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  color: var(--wao-result-pink);
}
/* 右端シェブロン（開:上向き / 閉:下向き） */
.wao-acc__mark {
  flex: none;
  margin-left: auto;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--wao-ink);
  border-bottom: 1.5px solid var(--wao-ink);
  transform: rotate(45deg);          /* ▼ 下向き（閉） */
  transform-origin: center;
  transition: transform .2s ease;
  margin-top: -4px;
}
.wao-result__year.is-open .wao-acc__mark {
  transform: rotate(-135deg);        /* ▲ 上向き（開） */
  margin-top: 4px;
}

/* アコーディオン開閉 */
.wao-acc__body {
  display: none;
  padding: 0 24px 8px;
}
.wao-result__year.is-open .wao-acc__body {
  display: block;
}

/* ================= 区分（大学受験 等） ================= */
.wao-result__cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
}
.wao-result__cat {
  margin: 0;
}
.wao-result__cat-title {
  margin: 0 0 4px;
  padding: 6px 20px;
  background: var(--wao-result-cat-bg);
  border-radius: 6px;
  font-family: var(--wao-font-noto);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--wao-ink);
}

/* 学校名リスト（2カラム） */
.wao-result__schools {
  list-style: none;
  margin: 0;
  padding: 8px 30px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.wao-result__school {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--wao-result-line);
}
.wao-result__school-name {
  display: block;
  font-family: var(--wao-font-noto);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: var(--wao-ink);
}
.wao-result__school-note {
  display: block;
  margin-top: 4px;
  font-family: var(--wao-font-noto);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: var(--wao-result-note);
}

/* ================= PC ================= */
@media (min-width: 1024px) {
  .wao-result__intro {
    padding: 56px 0 56px;
  }
  .wao-result__years-wrap {
    padding: 56px calc((100% - 1000px) / 2) 56px;
  }
  .wao-result__banner {
    gap: 100px;
    margin-bottom: 40px;
  }
  .wao-result__banner-title {
    font-size: 38px;
  }
  .wao-result__banner-sakura {
    width: 100px;
    height: 100px;
  }
  .wao-acc__head {
    padding: 0 30px;
  }
  .wao-result__cats {
    padding-bottom: 24px;
  }
  .wao-result__schools {
    padding: 8px 50px 0;
    column-gap: 40px;
  }
  .wao-acc__body {
    padding: 0 30px 20px;
  }
}

/* ================= SP ================= */
@media (max-width: 767px) {
  .wao-result__schools {
    grid-template-columns: 1fr;
    padding: 6px 12px 0;
  }
  .wao-result__banner {
    gap: 8px;
  }
  .wao-result__banner-title {
    font-size: 20px;
  }
  .wao-result__banner-sakura {
    width: 44px;
    height: 44px;
  }
  .wao-acc__head {
    padding: 0 16px;
  }
  .wao-result__year-label {
    font-size: 20px;
  }
  .wao-acc__body {
    padding: 0 12px 8px;
  }
}
