/* ============================================================
   design_overrides_b.css
   B案（ワインレッド×アイボリー）デザイン反映用の上書きCSS
   読み込み順：theme.css → base.css → layout.css → components.css → 本ファイル
   方針：!important不使用。後勝ち＋同等以上の詳細度で上書き。
   作成：マリー（デザイン担当）

   前提：theme.css の :root はリリー側でB案値に差し替え済みとする。
     --color-bg        : #4A1F26 系（ワインレッド）
     --color-gold      : #E8D5A8 系（アイボリー/淡ゴールド。"gold"変数名は踏襲）
     --color-gold-soft : rgba(232, 213, 168, .16) 相当
   本ファイルでは変数で吸収しきれないB案固有の調整のみを記載する。
   A案と共通する表現（タイポ格上げ/カードホバー/フェードイン等）は
   変数参照のため theme.css のB案化で自動追従する。
   ============================================================ */

/* ------------------------------------------------------------
   0. 変数追加（serifフォントスタック）
   theme.cssの:rootに将来統合してOK
   ------------------------------------------------------------ */
:root {
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

/* ------------------------------------------------------------
   1. 見出しタイポの格上げ
   明朝・大きめ・font-weight 500・字間拡張で権威性と高級感を出す
   ------------------------------------------------------------ */
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: clamp(28px, 4.5vw, 44px);
}

.section-heading h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: clamp(24px, 3.4vw, 34px);
}

.faq-group__title,
.faq-category__title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.jwc-results__header h2,
.jwc-results-pdfs h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.article__title,
.article h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* eyebrow（英字小見出し）の字間をさらに広げて上品に */
.page-hero__eyebrow {
  letter-spacing: 0.45em;
  font-size: 10px;
}

.section-heading span {
  letter-spacing: 0.4em;
  font-size: 10px;
}

/* ------------------------------------------------------------
   2. 背景あしらい（光だまり＋巨大円弧）
   「言われないと気づかない」レベルの繊細さ。
   content-section は position:relative / overflow:hidden 済み（components.css）
   home-* セクションは個別に前提を付与
   ------------------------------------------------------------ */
.home-overview,
.home-schedule,
.home-news {
  position: relative;
  overflow: hidden;
}

/* 中身をあしらいより前面に */
.content-section > .container,
.home-overview > .container,
.home-schedule > .container,
.home-news > .container {
  position: relative;
  z-index: 1;
}

/* 奇数セクション：右上にゴールドの光だまり＋円弧 */
.content-section:nth-of-type(odd)::before,
.home-schedule::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(232, 213, 168, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.content-section:nth-of-type(odd)::after,
.home-schedule::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -30vw;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border: 1px solid rgba(232, 213, 168, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

/* 偶数セクション：左下に光だまり＋円弧（交互のリズム） */
.content-section:nth-of-type(even)::before,
.home-news::before {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(232, 213, 168, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.content-section:nth-of-type(even)::after,
.home-news::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -28vw;
  width: 64vw;
  height: 64vw;
  max-width: 820px;
  max-height: 760px;
  border: 1px solid rgba(232, 213, 168, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 900px) {
  /* SPでは円弧を消し、光だまりも控えめに */
  .content-section::after,
  .home-schedule::after,
  .home-news::after {
    display: none;
  }
  .content-section::before,
  .home-schedule::before,
  .home-news::before {
    opacity: 0.7;
  }
}

/* ------------------------------------------------------------
   3. スクロールフェードイン
   .fade-in はJS（site.js追記分）が対象要素に自動付与する想定。
   付与・発火ロジックは html_change_requests.md 参照
   ------------------------------------------------------------ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* base.cssのprefers-reduced-motionで transition がほぼ0になるため
   動きを抑える設定の人には初期状態で見える必要がある */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   4. ボタン演出
   primary：ゴールド塗り＋左から明るいゴールドがスライドして満ちる
   ------------------------------------------------------------ */
.button--primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-bg);
}

.button--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-gold-light);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.button--primary:hover {
  background: var(--color-gold);
}

.button--primary:hover::before {
  transform: translateX(0);
}

/* 通常ボタンのホバーも少しだけ気持ちよく */
.button {
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.button:hover {
  border-color: var(--color-gold);
}

/* ------------------------------------------------------------
   5. カードのホバー強化（浮き＋深い影＋矢印スライド）
   ------------------------------------------------------------ */
.home-card,
.file-card,
.schedule-card,
.archive-card,
.feature-card,
.jwc-results-pdfs__item a {
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s,
    border-color 0.35s,
    background 0.35s;
}

.home-card:hover,
.file-card:hover,
.archive-card:not(.archive-card--inactive):hover,
.feature-card:hover,
.jwc-results-pdfs__item a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--color-border);
}

/* ------------------------------------------------------------
   6. スケジュールカード（トップ6項目）
   番号をセリフのゴールド数字に格上げ
   ------------------------------------------------------------ */
.schedule-card__num {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  color: var(--color-gold);
  letter-spacing: 0.06em;
  line-height: 1;
}

.schedule-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border);
}

/* ------------------------------------------------------------
   7. スケジュールdl（outline内・6項目）
   CSSカウンターで 01〜06 のセリフ番号をdtに付与
   ------------------------------------------------------------ */
.schedule-dl {
  counter-reset: sched;
}

.schedule-dl dt {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-dl dt::before {
  counter-increment: sched;
  content: counter(sched, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-gold);
  opacity: 0.75;
}

/* ------------------------------------------------------------
   8. ニュースリストの仕上げ
   日付ゴールド・ホバーで矢印スライド
   ------------------------------------------------------------ */
.jwc-news__date {
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.jwc-news__arrow {
  transition: transform 0.2s, color 0.2s;
}

.jwc-news__link:hover .jwc-news__arrow {
  transform: translateX(4px);
  color: var(--color-gold);
}

/* ------------------------------------------------------------
   9. FAQ detailsの開閉を滑らかに見せる
   +/− をゴールドの細い回転アイコン風に
   ------------------------------------------------------------ */
.faq-list summary {
  position: relative;
  padding-right: 52px;
  transition: color 0.2s;
}

.faq-list summary:hover {
  color: var(--color-gold);
}

.faq-list summary::after {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s;
  float: none; /* components.cssのfloat指定を打ち消し */
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
  content: "−";
}

/* ------------------------------------------------------------
   10. entry-cta に光彩（A案の上質感）
   ------------------------------------------------------------ */
.entry-cta {
  position: relative;
  overflow: hidden;
}

.entry-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 213, 168, 0.055), transparent 60%);
  pointer-events: none;
}

.entry-cta > * {
  position: relative;
}

/* ------------------------------------------------------------
   11. テーブルの行ホバー（results・info）
   長い表でも現在行を見失わない
   ------------------------------------------------------------ */
.jwc-results-table tbody tr {
  transition: background 0.2s;
}

.jwc-results-table tbody tr:hover {
  background: rgba(232, 213, 168, 0.045);
}

/* ------------------------------------------------------------
   12. フッターの格上げ（共通パーツ拡張に対応）
   構成団体ブロック追加時のスタイル（html_change_requests.md 参照）
   ------------------------------------------------------------ */
.footer__orgs {
  max-width: 800px;
  margin: 16px auto 20px;
  font-size: 10px;
  line-height: 2.2;
  color: var(--color-text-subtle);
}

.footer__org-label {
  margin-right: 6px;
  color: var(--color-gold);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ------------------------------------------------------------
   13. B案下層ページ共通の仕上げ
   マリーB案の「ワインレッドの面＋アイボリーの細線」を、実ページの
   汎用パーツへ広げる。HTML構造と文言は変更しない。
   ------------------------------------------------------------ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 46px;
  padding-bottom: 34px;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -12%;
  width: min(62vw, 760px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(232, 213, 168, 0.07);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 213, 168, 0.075) 0%, transparent 64%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero + .content-section,
.page-hero + .jwc-news,
.page-hero + .jwc-results {
  padding-top: 48px;
}

.result-lead {
  margin: 0 0 34px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2;
}

.jwc-results--pending > .container > :not(.jwc-results-pending) {
  display: none;
}

.jwc-results--pending ~ .jwc-results-pdfs,
.jwc-results--pending ~ .jwc-results-notes,
.jwc-results--pending ~ .content-section {
  display: none;
}

.jwc-results-pending {
  margin: 0;
  padding: 30px;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 213, 168, 0.05), transparent 48%),
    var(--color-bg-card);
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.lead-panel,
.notice-panel,
.entry-cta,
.outline-accordion,
.faq-list details,
.article__files,
.article__links,
.jwc-results__summary,
.jwc-results-tools,
.jwc-results-group,
.award-summary-table-wrap,
.jwc-results__table-scroll {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
}

.lead-panel,
.notice-panel,
.outline-accordion,
.faq-list details,
.article__files,
.article__links,
.jwc-results__summary,
.jwc-results-tools,
.jwc-results-group {
  background:
    linear-gradient(135deg, rgba(232, 213, 168, 0.035), transparent 44%),
    var(--color-bg-card);
}

.outline-accordion__summary,
.faq-list summary,
.jwc-results-group__summary {
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.outline-accordion__summary:hover,
.faq-list summary:hover,
.jwc-results-group__summary:hover {
  background: rgba(232, 213, 168, 0.045);
}

.archive-card {
  position: relative;
  overflow: hidden;
}

.archive-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 28px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s, transform 0.25s;
}

.archive-card:not(.archive-card--inactive):hover::after,
.archive-card--current::after {
  opacity: 0.75;
  transform: translateX(0);
}

.article-nav,
.result-year-nav {
  border-top: 1px solid var(--color-border-soft);
}

.article-nav__back,
.article-nav__link,
.result-year-nav__link {
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.article-nav__back:hover,
.article-nav__link:hover,
.result-year-nav__link:hover {
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.jwc-results-tools input:focus,
.jwc-results-tools select:focus {
  outline: 2px solid rgba(232, 213, 168, 0.24);
  outline-offset: 2px;
}

.jwc-results-tools {
  border-color: var(--color-border);
  background:
    linear-gradient(135deg, var(--color-gold-soft), rgba(255, 255, 255, 0.025) 58%),
    var(--color-bg-card-strong);
}

.jwc-results-tools-note {
  color: var(--color-text-muted);
}

.result-subheading-pdf,
.jwc-results-group__pdf {
  box-shadow: inset 0 0 0 1px rgba(232, 213, 168, 0.08);
}

/* ------------------------------------------------------------
   14. トップページを県提示B案の構成へ戻すための専用CSS
   Hero -> News -> About -> Schedule -> Entry -> Award -> Contact
   ------------------------------------------------------------ */
.section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section__header {
  margin-bottom: 48px;
}

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section__eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

.section__eyebrow-text {
  color: var(--color-gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.section__subtitle {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.section:nth-of-type(odd)::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(232, 213, 168, 0.05) 0%, transparent 65%);
  pointer-events: none;
}

.section:nth-of-type(even)::before {
  content: "";
  position: absolute;
  bottom: -25%;
  left: -12%;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(232, 213, 168, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.section:nth-of-type(odd)::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -30vw;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  border: 1px solid rgba(232, 213, 168, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.section:nth-of-type(even)::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -28vw;
  width: 64vw;
  height: 64vw;
  max-width: 820px;
  max-height: 820px;
  border: 1px solid rgba(232, 213, 168, 0.045);
  border-radius: 50%;
  pointer-events: none;
}

.nav__links a,
.nav-drawer a {
  color: rgba(251, 246, 236, 0.88);
}

.nav__links a:hover,
.nav__links a.active,
.nav-drawer a:hover {
  color: var(--color-gold-light);
}

.nav__submenu a {
  color: rgba(251, 246, 236, 0.86);
}

.section.home-news {
  border-top: 1px solid var(--color-border);
}

.section.home-news .jwc-news__list {
  margin-top: 0;
}

.top-text-link {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding-right: 0;
  padding-left: 0;
}

.top-text-link:hover {
  background: transparent;
  border-bottom-color: var(--color-gold);
}

.home-about {
  background: var(--color-bg-light);
}

.home-about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  gap: 72px;
  align-items: center;
}

.home-about__text {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2;
}

.home-about__text + .home-about__text {
  margin-top: 1.4em;
}

.home-about__image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.home-about__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-about__image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(232, 213, 168, 0.35);
  border-radius: 8px;
  pointer-events: none;
}

.section.home-schedule {
  padding: 92px 0;
}

.home-entry {
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.home-entry__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: center;
}

.home-entry__lead {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2;
}

.home-entry__note {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--color-border-soft);
  border-left: 3px solid var(--color-gold);
  border-radius: 8px;
  background: rgba(232, 213, 168, 0.055);
  color: var(--color-text-muted);
  font-size: 13px;
}

.home-entry__cta {
  display: grid;
  gap: 16px;
}

.home-entry__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 70px;
  padding: 18px 28px;
  border-radius: 8px;
  background: var(--color-gold);
  color: var(--color-on-accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: background 0.25s, transform 0.25s;
}

.home-entry__button:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

.home-entry__sub-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-entry__sub-actions .button {
  width: 100%;
}

.home-award {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.home-award__bg,
.home-award__overlay {
  position: absolute;
  inset: 0;
}

.home-award__bg {
  background: url("../images/results_sample.jpg") center / cover no-repeat;
  filter: saturate(0.88) brightness(0.88);
}

.home-award__overlay {
  background:
    linear-gradient(90deg, rgba(35, 12, 18, 0.88) 0%, rgba(49, 21, 28, 0.62) 44%, rgba(20, 16, 14, 0.26) 100%),
    radial-gradient(circle at 72% 46%, rgba(232, 213, 168, 0.14), transparent 44%);
}

.home-award__inner {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.home-award__content .section__header {
  margin-bottom: 28px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.home-award__text {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.home-award__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.home-award__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--color-gold);
  border-radius: 6px;
  background: var(--color-gold);
  color: var(--color-on-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-award__button--outline {
  background: transparent;
  color: var(--color-gold);
}

.home-award__button:hover {
  background: var(--color-gold-light);
  color: var(--color-on-accent);
}

.home-contact {
  border-top: 1px solid var(--color-border);
}

.home-contact .section__header {
  text-align: center;
}

.home-contact .section__eyebrow {
  justify-content: center;
}

.home-contact__info {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-contact__org {
  color: var(--color-gold);
  font-size: 16px;
  font-weight: 700;
}

.home-contact__addr {
  margin-top: 14px;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.home-contact__tel-group {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.home-contact__tel-group p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.home-contact__tel-group span {
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-contact__tel-group a {
  color: var(--color-text);
}

@media (max-width: 900px) {
  .home-about__inner,
  .home-entry__inner,
  .home-award__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-about__image {
    width: 100%;
  }

  .home-about__image img {
    display: block;
    aspect-ratio: 16 / 10;
  }

  .home-entry__cta {
    width: 100%;
    min-width: 0;
  }

  .home-entry__button,
  .home-entry__sub-actions .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .home-award {
    min-height: auto;
  }

  .home-award__inner > [aria-hidden="true"] {
    display: none;
  }

  .home-award__actions {
    flex-direction: column;
  }

  .home-award__button {
    width: 100%;
  }
}

/* ============================================================
   B案固有：トップヒーロー統合用
   prototype の index.html に hero構造を追加する前提（html_change_requests_b.md #1）
   6項目スケジュール・新着構造は現状維持、ヒーロー部のみ差し替え
   ============================================================ */

/* ------------------------------------------------------------
   H1. Hero本体
   main1.svg背景＋ニュートラル暗めフィルター（ワインが綺麗に見える）
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: none;
  display: flex;
  align-items: center;
  padding: 0 var(--container-padding);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-bg);
}

.hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真フィルター：写真の抜けを残し、文字周辺だけ少し沈ませる */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 16, 14, 0.46) 0%,
    rgba(20, 16, 14, 0.16) 58%,
    rgba(20, 16, 14, 0.34) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  padding-top: var(--nav-height);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero__eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--color-gold);
}

.hero__eyebrow-text {
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  font-weight: 500;
}

.hero__title-ja {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero__desc {
  font-size: 15px;
  line-height: 2;
  color: rgba(251, 246, 236, 0.94);
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  max-width: 520px;
  margin-bottom: 40px;
}

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

.hero__scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero__scroll-text {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-gold-light);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.hero__scroll-line {
  width: 1px;
  height: 58px;
  background: linear-gradient(to bottom, var(--color-gold-light), rgba(232, 213, 168, 0));
  box-shadow: 0 0 14px rgba(232, 213, 168, 0.52);
}

/* ------------------------------------------------------------
   H2. 白フェード（ページを開くと白から写真が明ける）
   hero::after に白レイヤーを重ねてフェードアウト
   ------------------------------------------------------------ */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  z-index: 5;
  pointer-events: none;
  animation: heroWhiteOut 1.4s ease-out 0.1s both;
}

@keyframes heroWhiteOut {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

/* ------------------------------------------------------------
   H3. テキスト時間差フェード（白が明けるのと同時に順に出現）
   約1.7秒で完了、以降は静止（ズームなし=酔わない）
   ------------------------------------------------------------ */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow   { animation: heroRise 0.8s cubic-bezier(0.22,0.61,0.36,1) 0.3s both; }
.hero__title-ja  { animation: heroRise 0.8s cubic-bezier(0.22,0.61,0.36,1) 0.5s both; }
.hero__desc      { animation: heroRise 0.8s cubic-bezier(0.22,0.61,0.36,1) 0.7s both; }
.hero__actions   { animation: heroRise 0.8s cubic-bezier(0.22,0.61,0.36,1) 0.9s both; }
.hero__scroll    { animation: heroRise 1s   ease-out 1.4s both; }

/* hero内ボタン（CTA 2枠） */
.hero .button--primary {
  padding: 16px 36px;
  font-size: 14px;
}

.hero .button--ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 14px 28px;
  border: 1px solid rgba(251, 246, 236, 0.58);
  border-radius: 6px;
  background: rgba(35, 12, 18, 0.42);
  color: rgba(251, 246, 236, 0.96);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.hero .button--ghost:hover {
  border-color: var(--color-gold-light);
  background: rgba(232, 213, 168, 0.18);
  color: var(--color-text);
}

.entry-bottom-bar .entry-bottom-bar__primary {
  color: var(--color-on-accent);
}

body.is-home .nav {
  position: fixed;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(74, 31, 38, 0.95), rgba(74, 31, 38, 0));
  border-bottom: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;
}

body.is-home:not(.is-scrolled) .nav {
  background: linear-gradient(to bottom, rgba(74, 31, 38, 0.95), rgba(74, 31, 38, 0));
}

body.is-home.is-scrolled .nav {
  background: rgba(74, 31, 38, 0.97);
  border-bottom: 1px solid var(--color-border);
  border-bottom-color: var(--color-border);
  box-shadow: 0 12px 34px rgba(24, 8, 12, 0.18);
}

body.is-home .hero {
  height: 100vh;
  min-height: 700px;
}

/* ------------------------------------------------------------
   H4. reduced-motion対応（白フェード・時間差を無効化）
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero::after { display: none; }
  .hero__eyebrow,
  .hero__title-ja,
  .hero__desc,
  .hero__actions,
  .hero__scroll {
    animation: none;
  }
}

/* ------------------------------------------------------------
   H5. ヒーローSP対応
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero {
    height: 100vh;
    min-height: 700px;
    max-height: none;
    padding: 92px 20px 64px;
  }
  .hero__title-ja {
    font-size: 30px;
    letter-spacing: 0.1em;
  }
  .hero__eyebrow {
    margin-bottom: 18px;
  }
  .hero__desc {
    margin-bottom: 28px;
  }
  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }
  .hero .button--primary,
  .hero .button--ghost {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .hero__scroll {
    display: none;
  }
}

/* ------------------------------------------------------------
   15. フッターロゴとボタン角丸の品格調整
   ------------------------------------------------------------ */
.footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.footer {
  padding: 60px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
}

.footer > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
}

.footer__logo-full {
  width: min(260px, 72vw);
  height: auto;
  display: block;
}

.footer__orgs {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.button,
.button--primary,
.hero .button--ghost,
.nav__cta,
.nav-drawer a.nav__cta,
.home-entry__button,
.home-award__button,
.entry-bottom-bar a,
.footer__tel-button,
.article__file-list a,
.article__link-list a,
.jwc-results-pdfs__item a,
.jwc-results-table__pdf a,
.jwc-results-group__pdf,
.jwc-results-tools__reset,
.jwc-news__pagination a {
  border-radius: 3px;
}

.nav__links a.nav__cta,
.nav-drawer a.nav__cta {
  border-radius: 3px;
}

@media (max-width: 900px) {
  .footer__brand {
    justify-content: center;
  }

  .footer__logo-full {
    width: min(230px, 78vw);
  }
}

