/* ============================================
   トップページ専用スタイル (awajishima風)
   ============================================ */

/* ============================================
   HERO — 大型バナー
   ============================================ */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 553px;   /* 895 / φ */
  max-height: 742px;   /* 1200 / φ */
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero__bg svg {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
/* 学校へのヒント（2026-10-30 Owner・案5）。コア3つを解放した後だけ出る（index.html の .hero__ghost）。
   ページを開いた直後に、島の写真の奥へ校舎が数秒だけ薄く重なり、その後は22秒ごとにくり返す。
   画像は門と表札「渡瀬高等学校」のまわりを切り出したもの（gen/watase-koukou-ghost.jpg）。表札がぼかしの濃い所に来るようにしている。 */
.hero__ghost { position: absolute; right: 2%; bottom: 6%; width: 50%; height: 56%; pointer-events: none; opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 58% 58% at 36% 52%, #000 45%, transparent 85%);
          mask-image: radial-gradient(ellipse 58% 58% at 36% 52%, #000 45%, transparent 85%);
  animation: hero-ghost 22s ease-in-out .3s infinite; }
.hero__bg .hero__ghost img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; filter: saturate(.8); animation: none; }
@keyframes hero-ghost {
  0% { opacity: 0; } 6%, 28% { opacity: .62; } 38%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__ghost { animation: none; opacity: .35; }
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 35, 60, 0.06) 0%, rgba(20, 35, 60, 0.35) 100%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.hero__season {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  width: max-content;
  border-bottom: 2px solid transparent;
  /* 赤線→白線（オーナー指示 row11） */
  border-image: linear-gradient(90deg, #ffffff, rgba(255,255,255,0)) 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
/* 赤ポチは消す（オーナー指示 row11） */
.hero__season::before {
  display: none;
}
.hero__title {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(var(--fs-2xl), 6vw, var(--fs-5xl));
  letter-spacing: 0.1em;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.hero__title small {
  display: block;
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: 0.32em;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 14px;
}
.hero__lead {
  max-width: 480px;
  font-size: var(--fs-base);
  line-height: 2.1;
  margin-bottom: 36px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  opacity: 0.7;
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 36px;
  background: rgba(255,255,255,0.7);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================
   カテゴリーグリッド (ヒーロー下の浮き島)
   ============================================ */
.category-band {
  position: relative;
  margin-top: -56px;
  padding: 0 var(--gutter);
  z-index: 5;
}
.category-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
}
.category-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-5) var(--sp-2) var(--sp-4);
  color: var(--c-text);
  border-right: 1px solid var(--c-border);
  transition: background 0.2s ease;
}
.category-grid__item:last-child { border-right: 0; }
.category-grid__item:hover {
  background: var(--c-soft);
  opacity: 1;
}
.category-grid__icon {
  width: 57px; height: 57px;  /* 16×√2² ≒ 白銀比スケール */
  display: grid; place-items: center;
  background: var(--c-sea-soft);
  border-radius: 50%;
  margin-bottom: 14px;
  color: var(--c-sea);
  transition: all 0.25s ease;
}
.category-grid__icon svg { width: 28px; height: 28px; }
.category-grid__item:hover .category-grid__icon {
  background: var(--c-sea);
  color: #fff;
  transform: scale(1.05);
}
.category-grid__ja {
  font-family: var(--f-mincho);
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 4px;
}
.category-grid__en {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--c-text-3);
  font-weight: 600;
}

/* スマホ/タブレットでは grid を flex 中央寄せに切替。
   半端な最終行（例: 5項目→3+2 や 2+2+1）が左寄せにならず中央に揃う。 */
@media (max-width: 900px) {
  .category-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .category-grid__item { width: calc(100% / 3); box-sizing: border-box; }
  .category-grid__item:nth-child(3n) { border-right: 0; }
  .category-grid__item:nth-child(-n+3) { border-bottom: 1px solid var(--c-border); }
}
@media (max-width: 480px) {
  .category-band { margin-top: -32px; }
  .category-grid__item { width: 50%; padding: 22px 8px 20px; border-right: 1px solid var(--c-border); }
  .category-grid__item:nth-child(3n) { border-right: 1px solid var(--c-border); }
  .category-grid__item:nth-child(2n) { border-right: 0; }
  .category-grid__item:last-child { border-right: 0; }
  .category-grid__item:nth-child(odd) { border-bottom: 1px solid var(--c-border); }
  .category-grid__item:nth-last-child(-n+2) { border-bottom: 0; }
  .category-grid__icon { width: 44px; height: 44px; margin-bottom: 10px; }
  .category-grid__icon svg { width: 22px; height: 22px; }
}

/* ============================================
   News / お知らせ
   ============================================ */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--c-border);
}
.news-row {
  display: grid;
  grid-template-columns: 120px 90px 1fr auto;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-3) 4px;
  border-bottom: 1px solid var(--c-border);
  transition: background 0.2s ease;
}
.news-row:hover { background: var(--c-soft); }
.news-row__date {
  font-family: var(--f-en);
  font-size: 13px;
  color: var(--c-text-2);
  letter-spacing: 0.08em;
}
.news-row__tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--c-soft);
  color: var(--c-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  text-align: center;
}
.news-row__tag--matsuri { background: var(--c-shu); color: #fff; }
.news-row__tag--event { background: var(--c-yamabuki); color: var(--c-text); }
.news-row__tag--info { background: var(--c-sea); color: #fff; }
.news-row__tag--food { background: var(--c-moegi); color: #fff; }
.news-row__title {
  font-size: 14px;
  color: var(--c-text);
  font-weight: 500;
}
.news-row__more {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--c-text-3);
}

@media (max-width: 720px) {
  .news-row {
    grid-template-columns: 90px 80px 1fr;
    gap: 14px;
    padding: 16px 0;
  }
  .news-row__more { display: none; }
}

/* ============================================
   モデルコース
   ============================================ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.course-card {
  display: block;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), box-shadow 0.28s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
  opacity: 1;
}
.course-card__image {
  position: relative;
  aspect-ratio: var(--ar-silver);   /* 白銀比 √2:1 */
  overflow: hidden;
  background: var(--c-soft);
}
.course-card__image svg {
  width: 100%; height: 100%;
  display: block;
}
.course-card__no {
  position: absolute;
  top: 16px; left: 16px;
  padding: 5px 12px;
  background: rgba(36,36,48,0.85);
  color: #fff;
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  border-radius: 2px;
}
.course-card__body {
  padding: var(--sp-4) var(--sp-4) var(--sp-5);
}
.course-card__title {
  font-family: var(--f-mincho);
  font-size: var(--fs-md);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  color: var(--c-text);
  line-height: 1.55;
}
.course-card__desc {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.9;
  margin-bottom: 16px;
}
.course-card__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--c-text-2);
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}
.course-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.course-card__meta svg { width: 14px; height: 14px; color: var(--c-sea); }

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

/* ============================================
   特集バナー
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3枚を均等に（オーナー指示: 縁日であそぶだけ大判→他2枚に合わせる） */
  gap: var(--sp-4);
  margin-top: 0;
}
.feature-card {
  position: relative;
  display: block;
  aspect-ratio: var(--ar-golden-p);   /* 黄金比 縦 1:φ */
  border-radius: 4px;
  overflow: hidden;
  color: #fff;
  transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); color: #fff; opacity: 1; }
.feature-card__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.feature-card__image svg { width: 100%; height: 100%; }
.feature-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,36,48,0.06) 30%, rgba(36,36,48,0.78) 100%);
}
.feature-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 24px 26px;
  z-index: 2;
}
.feature-card__tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,0.85);
  color: var(--c-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: 2px;
  margin-bottom: 12px;
}
.feature-card__title {
  font-family: var(--f-mincho);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.feature-card__sub {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.04em;
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ============================================
   スポット検索 (タグチップ)
   ============================================ */
.spot-search {
  background: var(--c-soft);
  padding: var(--sp-6) 0;
}
.spot-search__box {
  max-width: 740px;
  margin: 0 auto 32px;
  display: flex;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.spot-search__box input {
  flex: 1;
  padding: 18px 28px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  outline: 0;
}
.spot-search__box button {
  padding: 0 32px;
  background: var(--c-sea);
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spot-search__box button:hover { background: var(--c-sea-d); }

.tag-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
}
.tag-chip {
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  transition: all 0.2s ease;
}
.tag-chip:hover {
  background: var(--c-sea);
  color: #fff;
  border-color: var(--c-sea);
  opacity: 1;
}
.tag-chip::before {
  content: "#";
  color: var(--c-text-3);
  margin-right: 3px;
}
.tag-chip:hover::before { color: rgba(255,255,255,0.65); }

/* ============================================
   アクセス概要
   ============================================ */
.access-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  overflow: hidden;
}
.access-card {
  padding: var(--sp-5) var(--sp-4);
  border-right: 1px solid var(--c-border);
  text-align: center;
}
.access-card:last-child { border-right: 0; }
.access-card__icon {
  width: 48px; height: 48px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  color: var(--c-sea);
}
.access-card__icon svg { width: 32px; height: 32px; }
.access-card__head {
  font-family: var(--f-mincho);
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.access-card__time {
  font-family: var(--f-en);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.02em;
}
.access-card__time small {
  font-size: 13px;
  margin-left: 4px;
  color: var(--c-text-2);
  font-weight: 500;
}
.access-card__note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--c-text-2);
}
/* 伏せ字のドットの並びをカードごとにずらす（anim.css の .noise-redact） */
.access-card:nth-child(2) { --redact-x: 19%; }
.access-card:nth-child(3) { --redact-x: 53%; }
@media (max-width: 720px) {
  .access-summary { grid-template-columns: 1fr; }
  .access-card { border-right: 0; border-bottom: 1px solid var(--c-border); padding: 28px; }
  .access-card:last-child { border-bottom: 0; }
}

/* ============================================
   ぶらっと春凪島 (バナー帯)
   ============================================ */
.promo-band {
  padding: 48px 0;
  background: var(--c-sea);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.promo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(217,162,40,0.18), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(199,71,42,0.15), transparent 40%);
  pointer-events: none;
}
.promo-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.promo-band__text { line-height: 1.6; }
.promo-band__kicker {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.28em;
  opacity: 0.78;
  margin-bottom: 8px;
}
.promo-band__title {
  font-family: var(--f-mincho);
  font-size: clamp(var(--fs-lg), 3vw, var(--fs-xl));
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.promo-band__sub { font-size: 13px; opacity: 0.85; }
.promo-band .btn {
  background: #fff;
  color: var(--c-sea);
}
.promo-band .btn:hover { background: var(--c-yamabuki); color: var(--c-text); }
/* ビラの表面（押すとライトボックスで大きく開く。仕組みは watase-arg.js の .gallery-item） */
.promo-band__flyer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}
.promo-band__flyer img {
  display: block;
  width: 136px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  transform: rotate(-2deg);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.promo-band__flyer:hover img,
.promo-band__flyer:focus-visible img { transform: rotate(0) scale(1.04); }
.promo-band__flyer:hover .btn,
.promo-band__flyer:focus-visible .btn { background: var(--c-yamabuki); color: var(--c-text); }
.promo-band__flyer:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
@media (max-width: 600px) {
  .promo-band__inner { grid-template-columns: 1fr; text-align: center; }
  .promo-band__flyer { justify-self: center; }
}

/* ライトボックス（index のプロモ欄。watase-legacy.css と同じ作りを index 用に持つ） */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 5000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.active { display: flex; }
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  transition: transform .2s;
}
.lightbox-close:hover { transform: scale(1.2); }
.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 2px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, .5);
}
.lightbox-caption:empty { display: none; }
.lightbox-caption { color: rgba(255, 255, 255, .8); font-size: 14px; margin-top: 12px; text-align: center; }
.lightbox-full {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lightbox-full:hover { color: #fff; }

/* ============================================
   セクション末尾の「もっと見る」
   ============================================ */
.section-more {
  text-align: center;
  margin-top: 48px;
}

/* ============================================
   Parallax 帯
   ============================================ */
.parallax-band {
  position: relative;
  min-height: 519px;   /* 734 / √2 : 白銀比 */
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.parallax-band__bg {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  will-change: transform;
}
.parallax-band__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.parallax-band__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.35) 0%, rgba(10, 18, 32, 0.55) 100%);
}
.parallax-band__inner {
  position: relative;
  padding: 80px 0;
}
.parallax-band__kicker {
  font-family: var(--f-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--c-yamabuki);
  margin-bottom: 16px;
  font-weight: 700;
}
.parallax-band__title {
  font-family: var(--f-mincho);
  font-weight: 500;
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl));
  letter-spacing: 0.08em;
  line-height: 1.45;
  margin-bottom: 18px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.4);
}
.parallax-band__lead {
  font-size: 15px;
  line-height: 2.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 560px;
}

/* ============================================
   ギャラリー Marquee
   ============================================ */
.gallery-marquee {
  padding: 56px 0 88px;
}
.section-head--quiet { margin-bottom: 36px; }

.marquee__item {
  flex-shrink: 0;
  width: 271px;             /* 192 × √2 ≒ 271 : 白銀比 */
  height: 192px;
  margin: 0;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.marquee__item:hover {
  transform: scale(1.03);
}
.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marquee__item figcaption {
  position: absolute;
  bottom: 12px; left: 14px;
  padding: 4px 10px;
  background: rgba(28,27,24,0.7);
  color: #fff;
  font-family: var(--f-mincho);
  font-size: 12px;
  letter-spacing: 0.1em;
  border-radius: 2px;
}

/* ============================================
   Course card / Feature card で画像オーバーレイ補正
   ============================================ */
.course-card__image .ken-burns img {
  position: absolute; inset: 0;
}

@media (max-width: 600px) {
  .parallax-band { min-height: 380px; }
  .marquee__item { width: 220px; height: 140px; }
}
