/* SAINEN商店街 — base: tokens, reset, typography, nav, hero, shared components */
:root {
  color-scheme: light;
  --red: #CE271F;
  --red-deep: #A81D17;
  --red-ink: #8F1812;
  --cream: #FDFAEE;
  --cream-2: #F5EDD6;
  --ink: #1C1512;
  --ink-2: #5A4D47;
  --gold: #EAA215;
  --orange: #DD5C26;
  --yellow: #EEB924;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  --latin: "Bodoni Moda", "Shippori Mincho B1", Georgia, serif;
  --max: 1160px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --navh: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* 同心円ハロー：VIの背景（中心クリーム→黄金→赤/橙/黄のリング→赤） */
  --halo: radial-gradient(circle closest-side,
    #FDFAEE 0%, #FDFAEE 5%,
    #FBF2DA 9%, #FDFAEE 11%,
    #FAEBC8 19%, #FDFAEE 22%,
    #F9E4B8 31%,
    #F6D697 47%,
    #F5D084 60%,
    #F2C771 70%,
    #F0C25E 74%,
    #EEB924 76.4%, #F1C45E 77.8%,
    #EAA215 80.4%, #F1BE57 81.6%,
    #DD5C26 83.8%, #EEB449 84.8%, #EDA62C 85.8%,
    #D93522 87%, #EA9A3C 88.2%,
    #DC4F18 89.3%, #D82F1B 90.6%, #E06815 91.6%, #D7301C 92.8%,
    #CF271F 95.5%, #CE271F 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--navh) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
  line-break: strict;
}
h1, h2, h3, .lead, .divider, .govnote, dt, .day__name, .btn, .tag, .footer__credits, .hero__benefit { word-break: auto-phrase; text-wrap: balance; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--cream); border-radius: 2px; }
.hero :focus-visible, .sec--red :focus-visible, .menu :focus-visible, .nav:not(.is-scrolled) :focus-visible, .recruit :focus-visible { outline-color: var(--cream); box-shadow: 0 0 0 7px var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nb { display: inline-block; }
br.sp { display: none; }
::selection { background: var(--red); color: var(--cream); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--cream); font-family: var(--sans);
}
.skip:focus { top: 8px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.sans { font-family: var(--sans); }
.latin { font-family: var(--latin); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--navh);
  display: flex; align-items: center;
  color: var(--cream);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s;
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: block; width: 112px; }
.nav__logo img { width: 100%; }
.nav__logo .is-red { display: none; }
.nav__links { display: flex; gap: clamp(14px, 2vw, 28px); font-family: var(--sans); font-size: 12.5px; letter-spacing: .1em; font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav.is-scrolled { background: rgba(253, 250, 238, .94); color: var(--ink); box-shadow: 0 1px 0 rgba(28, 21, 18, .08); backdrop-filter: blur(8px); }
.nav.is-scrolled .nav__logo .is-cream { display: none; }
.nav.is-scrolled .nav__logo .is-red { display: block; }

.burger {
  display: none; width: 44px; height: 44px; position: relative; border-radius: 50%;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor;
  transition: transform .35s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.nav.is-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .burger span:nth-child(2) { opacity: 0; }
.nav.is-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .08em; line-height: 1;
  border: 2px solid currentColor;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--solid-red { background: var(--red); color: var(--cream); border-color: var(--red); }
.btn--solid-red:hover { background: var(--red-deep); border-color: var(--red-deep); box-shadow: 0 10px 24px rgba(206, 39, 31, .25); }
.btn--solid-cream { background: var(--cream); color: var(--red); border-color: var(--cream); }
.btn--solid-cream:hover { background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { padding: 10px 16px; font-size: 12px; }
@media (pointer: coarse) { .btn--sm { min-height: 44px; padding-block: 12px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 1000px);
  background: var(--red); color: var(--cream);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.hero__halo {
  position: absolute; left: 50%; top: 100%;
  width: min(128vmin, 1240px); aspect-ratio: 1;
  transform: translate(-50%, -66%);
  background: var(--halo); border-radius: 50%;
  animation: breathe 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes breathe { from { transform: translate(-50%, -66%) scale(1); } to { transform: translate(-50%, -66%) scale(1.035); } }
.hero__corner {
  position: absolute; top: calc(var(--navh) + 10px); z-index: 2;
  font-family: var(--sans); font-size: 11px; letter-spacing: .18em; line-height: 1.6;
}
.hero__corner--l { left: var(--gutter); }
.hero__corner--r { right: var(--gutter); text-align: right; }
.hero__top { position: relative; z-index: 1; padding-top: calc(var(--navh) + min(3vh, 24px)); text-align: center; }
.hero__eyebrow { font-family: var(--sans); font-size: clamp(11px, 1.2vw, 13px); letter-spacing: .3em; margin-bottom: 18px; }
.hero__logo { width: clamp(240px, 27vw, 380px); margin: 0 auto; }
.hero__sub { width: clamp(220px, 26vw, 360px); margin: 16px auto 0; }
.hero__stage { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px var(--gutter) 0; }
.hero__dates { text-align: center; color: var(--red); position: relative; z-index: 2; }
.hero__benefit { font-size: clamp(14px, 1.25vw, 16px); font-weight: 700; letter-spacing: .04em; line-height: 1.75; color: var(--red-ink); margin-top: 12px; }
.hero__num { font-family: var(--latin); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.01em; display: flex; justify-content: center; align-items: baseline; gap: .18em; flex-wrap: wrap; }
.hero__num small { font-size: .32em; font-family: var(--sans); font-weight: 700; letter-spacing: .12em; }
.hero__num .dash { font-weight: 400; font-size: .7em; margin: 0 .05em; }
.hero__meta { font-size: clamp(13px, 1.5vw, 16px); font-weight: 700; letter-spacing: .08em; margin-top: 8px; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 1.4em; color: var(--red-ink); }
.hero__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.hero__days { margin-top: 6px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--red-ink); display: flex; justify-content: center; align-items: baseline; gap: 6px; }
.hero__days b { font-family: var(--latin); font-size: 22px; font-weight: 800; letter-spacing: 0; }
.hero__count { background: var(--red); color: var(--cream); border-color: var(--red); gap: 8px; font-size: 12.5px; letter-spacing: .12em; }
.hero__count:hover { background: var(--red-deep); border-color: var(--red-deep); }
.hero__count b { font-family: var(--latin); font-size: 20px; font-weight: 800; letter-spacing: 0; line-height: 1; }
.hero__count-arrow { margin-left: 4px; padding-left: 12px; border-left: 1px solid rgba(253, 250, 238, .5); }
.hero__follow { background: transparent; color: var(--red); border-color: var(--red); }
.hero__follow:hover { background: var(--red); color: var(--cream); }
.hero__photo { position: relative; z-index: 1; width: clamp(190px, 18vw, 260px); margin: 18px auto 0; filter: drop-shadow(0 -6px 30px rgba(120, 20, 0, .18)); }
.hero__photo img { width: 100%; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 22px; z-index: 2; display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 10px; letter-spacing: .3em; opacity: .85; }
.hero__scroll i { width: 1px; height: 36px; background: currentColor; transform-origin: top; animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 読み込み時のステージ演出 */
.hero [data-in] { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
.hero [data-in="1"] { animation-delay: .15s; }
.hero [data-in="2"] { animation-delay: .35s; }
.hero [data-in="3"] { animation-delay: .55s; }
.hero [data-in="4"] { animation-delay: .75s; }
.hero [data-in="5"] { animation-delay: .95s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--red-deep); color: var(--cream); overflow: hidden; padding: 12px 0; border-top: 1px solid rgba(253, 250, 238, .18); }
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__group { display: flex; gap: 2.4em; padding-right: 2.4em; font-size: 14px; letter-spacing: .14em; font-weight: 700; white-space: nowrap; }
.marquee__group span::before { content: "✦"; margin-right: 1.2em; color: var(--gold); font-size: .8em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Section shells ---------- */
.sec { position: relative; padding: clamp(72px, 10vw, 128px) 0; scroll-margin-top: var(--navh); }
.sec--red { background: var(--red); color: var(--cream); }
.sec--cream { background: var(--cream); color: var(--ink); }
.sec--cream2 { background: var(--cream-2); color: var(--ink); }
.sec__head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { display: inline-block; font-family: var(--sans); font-size: 11px; letter-spacing: .32em; font-weight: 700; margin-bottom: 14px; }
.sec--cream .eyebrow, .sec--cream2 .eyebrow { color: var(--red); }
.rule-title { display: flex; align-items: center; justify-content: center; gap: 1em; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; letter-spacing: .12em; }
.rule-title::before, .rule-title::after { content: ""; width: clamp(28px, 5vw, 72px); height: 1px; background: currentColor; flex: none; }
.sec--split .sec__head { text-align: left; }
.sec--split .rule-title { justify-content: flex-start; }
.sec--split .rule-title::after { display: none; }
.lead { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; line-height: 1.7; letter-spacing: .04em; text-align: center; }
.copy { font-size: clamp(15px, 1.25vw, 16.5px); line-height: 2.1; }
.copy + .copy { margin-top: 1.2em; }
.note { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 3px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; line-height: 1.5;
  background: var(--red); color: var(--cream); white-space: nowrap;
}
.tag--line { background: transparent; color: var(--red); border: 1px solid currentColor; }
.tag--gold { background: var(--gold); color: var(--ink); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.no-motion .reveal, .no-motion .hero [data-in] { opacity: 1; transform: none; transition: none; animation: none; }
.no-motion .hero__halo, .no-motion .marquee__track, .no-motion .hero__scroll i { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero [data-in] { opacity: 1; transform: none; transition: none; animation: none; }
  .hero__halo, .marquee__track, .hero__scroll i { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .burger { display: block; }
  .nav.is-open { background: var(--red); color: var(--cream); box-shadow: none; }
  .nav.is-open .nav__logo .is-red { display: none; }
  .nav.is-open .nav__logo .is-cream { display: block; }
  .menu {
    position: fixed; inset: var(--navh) 0 0 0; z-index: 49;
    background: var(--red); color: var(--cream);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    padding: 24px var(--gutter) 64px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .menu a { font-size: 26px; font-weight: 700; letter-spacing: .12em; padding: 10px 0; }
  .menu a small { display: block; font-family: var(--sans); font-size: 10.5px; letter-spacing: .3em; text-align: center; }
  .menu a.btn { margin-top: 28px; font-size: 14px; letter-spacing: .08em; padding: 14px 28px; }
  .menu { padding-top: 32px; }
  .hero__days { color: var(--cream); }
  .hero__corner { display: none; }
  .hero__top { padding-top: calc(var(--navh) + 16px); }
  .hero__logo { width: min(74vw, 340px); }
  .hero__sub { width: min(70vw, 300px); margin-top: 16px; }
  /* モバイル：日付はクリーム文字で赤地に置き、ハローは写真の背後（画面下）に沈める */
  .hero__halo { width: 150vmin; transform: translate(-50%, -50%); }
  @keyframes breathe { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.03); } }
  .hero__stage { min-height: 0; padding-top: 28px; justify-content: flex-start; }
  .hero__dates { color: var(--cream); }
  .hero__benefit, .hero__meta { color: var(--cream); }
  .hero__count { background: var(--cream); color: var(--red); border-color: var(--cream); }
  .hero__count:hover { background: #fff; border-color: #fff; }
  .hero__follow { color: var(--cream); border-color: var(--cream); }
  .hero__follow:hover { background: var(--cream); color: var(--red); }
  br.sp { display: inline; }
  .hero__photo { width: min(60vw, 250px); margin-top: auto; padding-top: 40px; }
  .hero__scroll { display: none; }
  .rule-title { font-size: 22px; letter-spacing: .1em; gap: .7em; }
  .rule-title::before, .rule-title::after { width: 22px; }
  br.pc { display: none; }
}
@media (min-width: 861px) { .menu { display: none; } }
