:root {
  --yu: #2b6a6a;        /* 湯（ロゴの色） */
  --yu-deep: #173d3d;   /* 夜の湯 */
  --steam: #eaf1ef;     /* 湯けむり */
  --lantern: #e9a23b;   /* 提灯 */
  --ink: #1e2a2a;       /* 墨 */
  --mist: #a9c4c0;      /* 薄い湯 */
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--steam);
  color: var(--ink);
  font: 400 16px/1.9 var(--gothic);
  font-feature-settings: "palt";
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 800; line-height: 1.35; margin: 0; }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ヘッダー */
.head {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--yu-deep) 92%, transparent);
  color: var(--steam);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 14px; }
.brand img { background: var(--steam); border-radius: 50%; padding: 4px; }
.nav { display: flex; gap: clamp(12px, 2vw, 28px); font-size: 14px; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--lantern); }
@media (max-width: 720px) {
  .brand span { display: none; }
  .nav { gap: 14px; font-size: 13px; }
}

/* ヒーロー */
.hero {
  background: var(--yu-deep);
  color: var(--steam);
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "stage title" "foot foot";
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.hero-title {
  grid-area: title;
  writing-mode: vertical-rl;
  font-size: clamp(34px, 6.4vw, 76px);
  letter-spacing: .08em;
  line-height: 1.5;
  justify-self: end;
}
.hero-stage {
  grid-area: stage;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
  width: min(100%, 860px);
}
.plate { position: relative; margin: 0; aspect-ratio: 9 / 16; overflow: hidden; background: #0f2a2a; border-radius: 6px; }
.plate video { width: 100%; height: 100%; object-fit: cover; }
.plate:nth-child(2) { transform: translateY(clamp(12px, 3vw, 40px)); }

/* めくり（縦書きの名前札） */
.mekuri {
  position: absolute; top: 0; right: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--steam);
  color: var(--yu-deep);
  font-family: var(--mincho);
  font-weight: 800;
  font-size: clamp(15px, 1.8vw, 22px);
  letter-spacing: .06em;
  padding: 14px 7px 18px;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 2px 0 var(--lantern);
  max-height: 88%;
}

.hero-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.hero-lead { margin: 0; max-width: 34em; color: var(--mist); }
.next-pill {
  background: var(--lantern); color: var(--yu-deep);
  font-weight: 700; text-decoration: none;
  padding: 10px 20px; border-radius: 999px;
}
.next-pill:hover { background: #f3b75a; }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr auto; grid-template-areas: "stage title" "foot foot"; }
  .hero-stage { grid-template-columns: repeat(3, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .plate { scroll-snap-align: start; }
  .plate:nth-child(2) { transform: none; }
  .hero-title { font-size: 30px; }
}

/* セクション共通 */
section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin: 10px 0 0; }

/* 出演者 */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  max-width: 1100px;
}
.card { margin: 0; }
.card-play {
  position: relative; display: block; width: 100%;
  aspect-ratio: 9 / 16; padding: 0; border: 0; cursor: pointer;
  background: var(--yu-deep); border-radius: 6px; overflow: hidden;
}
.card-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-play:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card-play img { transition: none; } }
.play-mark {
  position: absolute; left: 14px; bottom: 14px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--lantern);
}
.play-mark::after {
  content: ""; position: absolute; left: 21px; top: 16px;
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--yu-deep);
}
.card-meta { margin: 10px 0 0; font-size: 14px; }
.card-link { font-size: 14px; color: var(--yu); }

.board-title { font-size: 20px; margin: clamp(48px, 6vw, 72px) 0 18px; }
.board {
  list-style: none; margin: 0; padding: 18px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  border-top: 6px solid var(--yu);
}
.board-plate {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--mincho); font-weight: 800; font-size: 19px;
  letter-spacing: .06em;
  background: #fff; color: var(--yu-deep);
  border: 1px solid var(--mist);
  padding: 16px 9px;
  min-height: 9.5em;
}

/* 次のライブ */
.live { background: #fff; }
.live-row {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px);
  max-width: 900px; align-items: start;
}
.live-date { margin: 0; font-family: var(--mincho); font-weight: 800; color: var(--yu); display: flex; align-items: baseline; gap: 6px; }
.live-md { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; }
.live-w { font-size: 20px; border: 2px solid var(--yu); border-radius: 50%; width: 1.7em; height: 1.7em; display: inline-grid; place-items: center; }
.live-body h3 { font-size: 24px; }
.live-body p { margin: 6px 0 0; }
.live-facts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.live-facts li { background: var(--steam); padding: 2px 12px; border-radius: 4px; font-weight: 500; }
.live-note { font-size: 14px; color: #4b5d5c; }
@media (max-width: 560px) { .live-row { grid-template-columns: 1fr; gap: 8px; } }

/* ASOについて */
.about {
  background: var(--yu); color: var(--steam);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
}
.about-text { max-width: 36em; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { margin: 0 0 1em; }
.crew { margin: 0; align-self: end; display: grid; gap: 22px; }
.crew dt { font-size: 13px; color: var(--mist); }
.crew dd { margin: 2px 0 0; font-family: var(--mincho); font-weight: 600; font-size: 20px; line-height: 1.6; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* イベントカレンダー */
.calendar { background: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 0 clamp(28px, 4vw, 56px); align-items: start; }
.calendar .section-head { grid-column: 1 / -1; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-month { font-size: clamp(22px, 2.6vw, 28px); }
.cal-nav {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--yu);
  background: none; color: var(--yu); font-size: 26px; line-height: 1; cursor: pointer;
}
.cal-nav:hover:not(:disabled) { background: var(--yu); color: var(--steam); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 6px solid var(--yu); }
.cal-wd { text-align: center; font-size: 13px; font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--mist); }
.cal-wd.sun, .cal-day.sun .cal-num { color: #b4532a; }
.cal-wd.sat, .cal-day.sat .cal-num { color: #2f5f9e; }
.cal-day {
  min-height: 92px; padding: 6px; border-bottom: 1px solid var(--mist);
  display: flex; flex-direction: column; gap: 4px; align-items: stretch;
  font: inherit; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0;
}
.cal-num { font-family: var(--mincho); font-weight: 800; font-size: 15px; line-height: 1.2; }
.cal-day.today .cal-num { background: var(--ink); color: #fff; border-radius: 50%; width: 1.7em; height: 1.7em; display: grid; place-items: center; }
.cal-day.has { cursor: pointer; }
.cal-chip {
  font-size: 11.5px; line-height: 1.35; font-weight: 700; padding: 3px 5px; border-radius: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cal-day.past .cal-chip { background: var(--steam); color: var(--yu); }
.cal-day.next .cal-chip { background: var(--lantern); color: var(--yu-deep); }
.cal-day.has:hover .cal-chip { outline: 2px solid var(--yu); }
.cal-legend { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; font-size: 13px; margin: 12px 0 0; }
.key { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.key-past { background: var(--steam); border: 1px solid var(--mist); }
.key-next { background: var(--lantern); margin-left: 12px; }

.cal-list { list-style: none; margin: 56px 0 0; padding: 0; }
.cal-list li { padding: 14px 12px; border-bottom: 1px solid var(--mist); border-left: 4px solid transparent; }
.cal-list li.picked { border-left-color: var(--lantern); background: #fdf6ea; }
.cal-list li:focus { outline: none; }
.cl-date { margin: 0; font-family: var(--mincho); font-weight: 800; color: var(--yu); display: flex; align-items: center; gap: 10px; }
.cl-state { font-family: var(--gothic); font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 999px; }
.past .cl-state { background: var(--steam); color: #4b5d5c; }
.next .cl-state { background: var(--lantern); color: var(--yu-deep); }
.cl-title { margin: 2px 0 0; font-weight: 700; }
.cl-facts { margin: 0; font-size: 14px; color: #4b5d5c; }
@media (max-width: 860px) {
  .calendar { grid-template-columns: 1fr; }
  .cal-list { margin-top: 28px; }
}
@media (max-width: 560px) {
  .cal-day { min-height: 54px; padding: 4px 2px; align-items: center; }
  .cal-chip { font-size: 0; width: 8px; height: 8px; padding: 0; border-radius: 50%; }
}
.tl-video {
  margin: 8px 8px 0 0; font: inherit; font-size: 14px; font-weight: 700;
  background: none; border: 2px solid var(--yu); color: var(--yu);
  border-radius: 999px; padding: 2px 14px; cursor: pointer;
}
.tl-video:hover { background: var(--yu); color: var(--steam); }

/* 出演・協賛 */
.join { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 3vw, 32px); background: var(--steam); }
.join-card { background: #fff; padding: clamp(24px, 3vw, 36px); border-top: 6px solid var(--lantern); }
.join-card h3 { font-size: 22px; }
.join-card p { margin: 12px 0 20px; }
.btn {
  display: inline-block; background: var(--yu-deep); color: var(--steam);
  font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px;
}
.btn:hover { background: var(--yu); }

/* フッター */
.foot {
  background: var(--yu-deep); color: var(--mist);
  padding: 40px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 14px;
}
.foot img { background: var(--steam); border-radius: 50%; padding: 6px; }
.foot p { margin: 0; }
.foot-links { display: flex; gap: 20px; margin-left: auto !important; }
.foot-links a { color: var(--steam); }

/* 動画プレーヤー */
.player {
  border: 0; padding: 0; background: transparent; color: var(--steam);
  width: min(92vw, calc(84vh * 9 / 16)); max-height: 94vh;
}
.player::backdrop { background: rgb(15 34 34 / .88); }
.player video { width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 6px; }
.player p { margin: 8px 0 0; font-size: 14px; }
.player-close {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--steam); color: var(--yu-deep); font-size: 22px; line-height: 1; cursor: pointer;
}
@media (max-width: 560px) {
  .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .play-mark { width: 40px; height: 40px; left: 10px; bottom: 10px; }
  .play-mark::after { left: 16px; top: 12px; border-width: 8px 0 8px 13px; }
  .next-pill { line-height: 1.6; }
}
.nav a { white-space: nowrap; }
@media (max-width: 720px) {
  .head { gap: 10px; }
  .nav { overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 560px) {
  .cal-day.past .cal-chip { background: var(--yu); }
}
@media (max-width: 560px) { .key-past { background: var(--yu); border-color: var(--yu); } }
