@charset "UTF-8";
/* ==========================================================================
   ぬまづ夏空音楽祭 2026
   キービジュアル（夏空・入道雲・太陽マスコット）に合わせた配色。
   演出は「控えめ・上品に」— スクロールで空の色が朝→昼→夕に移ろう、それだけ。
   ========================================================================== */

@layer reset, base, layout, components, utilities;

/* --------------------------------------------------------------------------
   スクロール連動の空の色。カスタムプロパティを @property で登録することで
   色として補間できるようになる（未登録だと離散的に切り替わってしまう）。
   -------------------------------------------------------------------------- */
@property --sky-a {
  syntax: '<color>';
  inherits: true;
  initial-value: #e9f5ff;
}
@property --sky-b {
  syntax: '<color>';
  inherits: true;
  initial-value: #cfe8fb;
}

/* トップへ戻るボタンのリングが表す読了率。0〜1をスクロールに連動させる。 */
@property --read {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }

  html { -webkit-text-size-adjust: 100%; }

  body { min-height: 100svh; }

  img, picture, svg, video, iframe {
    display: block;
    max-width: 100%;
  }
  img { height: auto; }

  button, input, select, textarea { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }

  ul, ol { list-style: none; padding: 0; }

  a { color: inherit; }

  :where(:focus-visible) {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
  }
}

@layer base {
  :root {
    /* --- 色 ------------------------------------------------------------ */
    --navy:       #0b4fa8;   /* フライヤーの濃いブルー */
    --navy-deep:  #072f66;
    --blue:       #1477d4;
    --blue-light: #7fc4f0;
    --ink:        #0d2a4d;   /* 本文の文字色 */
    --ink-mute:   #47617f;
    --sun:        #ffe100;
    --sun-mid:    #e8a020;
    --sun-red:    #d24b33;
    --accent:     #e4007f;   /* 「入場無料」ピルのマゼンタ */
    --paper:      #ffffff;

    --glass:        color-mix(in srgb, #ffffff 76%, transparent);
    --glass-strong: color-mix(in srgb, #ffffff 90%, transparent);
    --hair:         color-mix(in srgb, var(--navy) 14%, transparent);

    /* --- タイポ --------------------------------------------------------- */
    --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
            "Yu Gothic", "Meiryo", system-ui, sans-serif;

    --step--1: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
    --step-0:  clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    --step-1:  clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    --step-2:  clamp(1.35rem, 1.15rem + 1vw, 2rem);
    --step-3:  clamp(1.8rem, 1.4rem + 2vw, 3rem);
    --step-4:  clamp(2.4rem, 1.6rem + 4vw, 5rem);

    /* --- レイアウト ------------------------------------------------------ */
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --measure: 1180px;
    --radius: 18px;
    --radius-sm: 10px;
    /* ロゴは太陽＋2段の文字を積んだロックアップなので、小さくすると文字が潰れる。
       ヒーローに重なる最初の位置では器を広げて大きく見せ、スクロール後に縮める。 */
    --header-h: 64px;
    --header-logo-h: 44px;

    --shadow-sm: 0 2px 10px rgb(11 79 168 / 0.10);
    --shadow:    0 10px 30px rgb(11 79 168 / 0.14);
    --shadow-lg: 0 24px 60px rgb(7 47 102 / 0.22);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
  }

  body {
    font-family: var(--font);
    font-size: var(--step-0);
    line-height: 1.85;
    color: var(--ink);
    background: var(--sky-b);
    overflow-x: hidden;
    font-feature-settings: "palt" 1;
  }

  h1, h2, h3, h4 {
    line-height: 1.25;
    font-weight: 900;
    text-wrap: balance;
    letter-spacing: 0.01em;
  }

  p { text-wrap: pretty; }

  /* 固定される空のレイヤー。ページ本体はこの上に浮かぶ。 */
  .sky {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 100%);
  }

  @keyframes sky-shift {
    0%   { --sky-a: #e9f5ff; --sky-b: #cfe8fb; } /* 朝 */
    35%  { --sky-a: #bfe0fa; --sky-b: #8ec8f0; } /* 昼 */
    65%  { --sky-a: #a8d4f5; --sky-b: #7ab8e8; } /* 午後 */
    100% { --sky-a: #f6dcc2; --sky-b: #9fb6dd; } /* 夕 */
  }

  /* CSSスクロール駆動アニメーション。非対応環境は js/main.js が同じ値を補間する。 */
  @supports (animation-timeline: scroll()) {
    .sky {
      animation: sky-shift linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@layer layout {
  .wrap {
    width: min(100% - var(--gutter) * 2, var(--measure));
    margin-inline: auto;
  }

  .section {
    padding-block: clamp(3.5rem, 9vw, 7rem);
    position: relative;
  }

  .section-head {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
  }

  .section-head__ja {
    display: inline-block;
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--blue);
    margin-bottom: 0.35em;
  }

  .section-head__en {
    font-size: var(--step-3);
    letter-spacing: -0.01em;
    color: var(--navy);
  }

  .section-head::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 1rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--navy), var(--blue-light));
  }
}

/* ==========================================================================
   コンポーネント
   ========================================================================== */
@layer components {

  /* --- ヘッダー ------------------------------------------------------- */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: color-mix(in srgb, #ffffff 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--hair);
    transition: height 0.35s var(--ease);
  }

  /* PCではヘッダーを高くしてロゴを大きく見せる。
     スクロールすると js/main.js が data-scrolled を立てて元の高さに戻す。 */
  @media (width >= 62rem) {
    .header { --header-h: 88px; --header-logo-h: 64px; }
    .header[data-scrolled="true"] { --header-h: 64px; --header-logo-h: 44px; }
  }

  .header__inner {
    width: min(100% - var(--gutter) * 2, 1320px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .header__logo {
    display: flex;
    align-items: center;
  }

  .header__logo img {
    height: var(--header-logo-h);
    width: auto;
    transition: height 0.35s var(--ease);
  }

  .nav {
    display: none;
    gap: clamp(1rem, 2.2vw, 2rem);
  }

  .nav a {
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--navy);
    padding-block: 0.4em;
    position: relative;
  }

  .nav a::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }

  .nav a:hover::after,
  .nav a:focus-visible::after { transform: scaleX(1); }

  /* ハンバーガー */
  .menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    color: var(--navy);
  }

  /* PC幅の切り替えは .menu-toggle / .nav の定義より後ろに置く。
     前に置くと同じ詳細度で後勝ちになり、PCでもハンバーガーが出てしまう。 */
  @media (width >= 62rem) {
    .nav { display: flex; }
    .menu-toggle { display: none; }
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .drawer {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 99;
    background: color-mix(in srgb, #ffffff 96%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--hair);
    box-shadow: var(--shadow);
    display: grid;
    overflow: hidden;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease);
  }

  .drawer[data-open="true"] { grid-template-rows: 1fr; }

  .drawer > ul {
    min-height: 0;
    padding-inline: var(--gutter);
  }

  .drawer li + li { border-top: 1px solid var(--hair); }

  .drawer a {
    display: block;
    padding-block: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--navy);
  }

  @media (width >= 62rem) { .drawer { display: none; } }

  /* --- ヒーロー ------------------------------------------------------- */
  .hero {
    position: relative;
    min-height: min(100svh, 780px);
    display: grid;
    place-items: center;
    padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(5rem, 12vw, 8rem);
    text-align: center;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  /* 写真の上に空色のベールをかけ、白文字の可読性を担保する */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(100% 70% at 72% 6%, rgb(255 240 170 / 0.20), transparent 62%),
      linear-gradient(180deg, rgb(7 47 102 / 0.42) 0%, rgb(11 79 168 / 0.26) 38%, rgb(7 47 102 / 0.68) 100%);
  }

  .hero__inner {
    display: grid;
    justify-items: center;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    max-width: 60rem;
  }

  .hero__logo {
    width: min(560px, 78vw);
    filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.35));
  }

  .hero__catch {
    font-size: var(--step-2);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-shadow: 0 2px 12px rgb(0 0 0 / 0.5);
  }

  .hero__date {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff;
    -webkit-text-stroke: 3px var(--navy);
    paint-order: stroke fill;
    text-shadow: 0 6px 0 rgb(7 47 102 / 0.35);
  }

  .hero__date small {
    font-size: 0.42em;
    letter-spacing: 0.04em;
    vertical-align: 0.35em;
    margin-inline: 0.1em 0.35em;
  }

  .hero__time {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4em 1.4em;
    font-size: var(--step-0);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 10px rgb(0 0 0 / 0.55);
  }

  .hero__time b { font-size: 1.25em; }

  .hero__venue {
    font-size: var(--step-1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 10px rgb(0 0 0 / 0.55);
  }

  .pill {
    display: inline-block;
    padding: 0.5em 1.6em;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.1em;
    box-shadow: 0 8px 22px rgb(228 0 127 / 0.4);
  }

  /* 入道雲のシルエットでヒーローの下端を切る */
  .cloud-edge {
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: clamp(40px, 7vw, 90px);
    background: var(--sky-a);
    -webkit-mask: var(--cloud-mask) bottom / 100% 100% no-repeat;
    mask: var(--cloud-mask) bottom / 100% 100% no-repeat;
  }

  :root {
    --cloud-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 120" preserveAspectRatio="none"><path fill="black" d="M0,120 L0,74 C58,74 68,44 128,44 C168,44 184,60 210,60 C240,60 250,30 304,30 C354,30 372,54 404,54 C440,54 452,34 500,34 C548,34 560,60 596,60 C630,60 646,36 700,36 C754,36 768,62 800,62 C834,62 850,40 900,40 C950,40 962,64 1000,64 C1034,64 1050,38 1104,38 C1158,38 1172,60 1204,60 C1240,60 1252,42 1300,42 C1354,42 1370,74 1440,74 L1440,120 Z"/></svg>');
  }

  /* --- ベントーグリッド（開催概要） ------------------------------------ */
  .bento {
    display: grid;
    gap: clamp(0.75rem, 1.6vw, 1.1rem);
    grid-template-columns: 1fr;
  }

  @media (width >= 48rem) {
    .bento {
      grid-template-columns: repeat(3, 1fr);
      grid-template-areas:
        "when   when   flyer"
        "venue  fee    flyer"
        "lineup rain   flyer";
    }
    .bento__when   { grid-area: when; }
    .bento__venue  { grid-area: venue; }
    .bento__fee    { grid-area: fee; }
    .bento__lineup { grid-area: lineup; }
    .bento__rain   { grid-area: rain; }
    .bento__flyer  { grid-area: flyer; }

    /* 雨天時の記載がないときは LINE UP を2列ぶん使って穴を作らない */
    .bento--no-rain {
      grid-template-areas:
        "when   when   flyer"
        "venue  fee    flyer"
        "lineup lineup flyer";
    }
  }

  .tile {
    container-type: inline-size;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    padding: clamp(1.1rem, 2.6vw, 1.75rem);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }

  .tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
  }

  .tile__label {
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--blue);
  }

  .tile__value {
    font-size: var(--step-1);
    font-weight: 900;
    line-height: 1.4;
    color: var(--navy);
  }

  .tile__note {
    font-size: var(--step--1);
    color: var(--ink-mute);
    line-height: 1.7;
  }

  /* 「開催日時」タイルだけは日付を主役に大きく組む */
  .bento__when .tile__value {
    font-size: clamp(1.6rem, 5.5vw, 2.6rem);
    letter-spacing: -0.01em;
  }

  .bento__when .tile__value small {
    font-size: 0.45em;
    vertical-align: 0.4em;
    margin-inline: 0.05em 0.3em;
  }

  @container (min-width: 340px) {
    .bento__when .tile__value { font-size: clamp(1.9rem, 4vw, 3rem); }
  }

  .timeline-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em 1.2em;
    font-weight: 700;
    color: var(--ink);
  }

  .timeline-row span { white-space: nowrap; }
  .timeline-row b { color: var(--navy); font-size: 1.15em; }

  .bento__fee .tile__value { color: var(--accent); }

  .bento__flyer {
    padding: clamp(0.75rem, 1.6vw, 1rem);
    gap: 0.75rem;
  }

  .bento__flyer img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85em 1.6em;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  }

  .btn:hover {
    background: color-mix(in oklab, var(--navy) 78%, var(--accent));
    transform: translateY(-2px);
  }

  .btn--ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
  }

  .btn--ghost:hover {
    background: var(--navy);
    color: #fff;
  }

  /* --- マーキー -------------------------------------------------------- */
  .marquee {
    --marquee-duration: 72s;
    overflow: hidden;
    padding-block: 0.9rem;
    background: color-mix(in srgb, var(--navy) 92%, transparent);
    color: #fff;
    border-block: 1px solid color-mix(in srgb, #ffffff 25%, transparent);
    user-select: none;
  }

  .marquee__track {
    display: flex;
    width: max-content;
    animation: marquee var(--marquee-duration) linear infinite;
  }

  .marquee:hover .marquee__track,
  .marquee:focus-within .marquee__track { animation-play-state: paused; }

  .marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 1.6rem;
    padding-inline: 0.8rem;
    font-size: var(--step-1);
    font-weight: 800;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .marquee__item::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sun);
    flex: none;
  }

  @keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

  /* --- タイムテーブル --------------------------------------------------- */
  .days {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    grid-template-columns: 1fr;
  }

  @media (width >= 48rem) {
    .days { grid-template-columns: 1fr 1fr; }
  }

  /* DAY01 / DAY02 の色分け。--day-accent は index.php が event.json の値を流し込む。
     --day-ink は小さい文字用に暗く寄せたもの（レッドはそのままだと白背景でコントラストが足りない）。 */
  .day, .artist {
    --day-accent: var(--navy);
    --day-ink: color-mix(in oklab, var(--day-accent) 82%, #04162e);
  }

  .day {
    background: var(--glass-strong);
    backdrop-filter: blur(10px);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
  }

  .day__head {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    padding-bottom: 0.8rem;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--day-accent);
  }

  .day__label {
    font-size: var(--step-2);
    font-weight: 900;
    color: var(--day-ink);
    letter-spacing: 0.02em;
  }

  .day__date {
    font-size: var(--step-0);
    font-weight: 700;
    color: var(--ink-mute);
  }

  .slot {
    display: grid;
    grid-template-columns: 4.2rem 1fr;
    align-items: baseline;
    gap: 0 0.75rem;
    padding-block: 0.85rem;
    border-bottom: 1px dashed var(--hair);
  }

  @media (width >= 30rem) {
    .slot { grid-template-columns: 5.5rem 1fr; gap: 0 1rem; }
  }

  .slot:last-child { border-bottom: 0; }

  .slot__time {
    font-weight: 900;
    color: var(--day-ink);
    font-size: var(--step-0);
    letter-spacing: 0.02em;
  }

  .slot__time[data-tbd] {
    font-size: 0.7em;
    letter-spacing: 0.1em;
    color: color-mix(in srgb, var(--ink-mute) 70%, transparent);
  }

  .slot__name {
    font-weight: 800;
    font-size: var(--step-1);
    color: var(--ink);
    line-height: 1.4;
  }

  .slot__note {
    grid-column: 2;
    font-size: var(--step--1);
    color: var(--ink-mute);
  }

  /* --- 出演者カード ----------------------------------------------------- */
  .artists {
    display: grid;
    gap: clamp(1rem, 2.2vw, 1.6rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  }

  .artist {
    container-type: inline-size;
    background: var(--glass-strong);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }

  .artist:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
  }

  .artist__figure {
    aspect-ratio: 1;
    position: relative;
    background: linear-gradient(160deg, var(--blue-light), var(--blue));
    display: grid;
    place-items: center;
    overflow: hidden;
  }

  .artist__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .artist__figure--placeholder img {
    width: 62%;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 6px 14px rgb(7 47 102 / 0.35));
  }

  .artist__day {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    padding: 0.15em 0.7em;
    border-radius: 999px;
    background: color-mix(in srgb, var(--day-ink) 92%, transparent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    backdrop-filter: blur(4px);
  }

  .artist__body {
    padding: 0.9rem 1rem 1.1rem;
    text-align: center;
  }

  .artist__name {
    font-size: var(--step-1);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.35;
  }

  .artist__note {
    margin-top: 0.2em;
    font-size: var(--step--1);
    color: var(--ink-mute);
  }

  /* --- FOOD / STALLS ---------------------------------------------------- */
  .panels {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    grid-template-columns: 1fr;
  }

  @media (width >= 48rem) {
    .panels { grid-template-columns: 1fr 1fr; }
  }

  .panel {
    background: var(--glass-strong);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
  }

  .panel__head {
    font-size: var(--step-2);
    color: var(--navy);
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
  }

  .panel li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.3em 1em;
    padding-block: 0.75rem;
    border-bottom: 1px dashed var(--hair);
  }

  .panel li:last-of-type { border-bottom: 0; }

  .panel li b {
    font-size: var(--step-1);
    font-weight: 800;
    color: var(--ink);
  }

  .panel li span {
    font-size: var(--step--1);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
  }

  .panel__note {
    margin-top: 0.8rem;
    font-size: var(--step--1);
    color: var(--ink-mute);
  }

  /* --- 注意書き --------------------------------------------------------- */
  .notes {
    background: color-mix(in srgb, var(--sun) 22%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--sun-mid) 45%, transparent);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
  }

  .notes h3 {
    font-size: var(--step-1);
    color: var(--sun-red);
    margin-bottom: 0.6rem;
  }

  .notes li {
    position: relative;
    padding-left: 1.4em;
    font-size: var(--step-0);
  }

  .notes li + li { margin-top: 0.4em; }

  .notes li::before {
    content: "";
    position: absolute;
    left: 0.35em;
    top: 0.75em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sun-mid);
  }

  /* --- 2025 ギャラリー --------------------------------------------------- */
  .gallery {
    display: grid;
    gap: clamp(0.6rem, 1.4vw, 1rem);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  }

  @media (width >= 48rem) {
    .gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  }

  .gallery button {
    display: block;
    padding: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--blue-light);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }

  .gallery button:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow);
  }

  .gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  /* ライトボックスはネイティブの popover で。JSはほぼ不要。 */
  .lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: clamp(1rem, 4vw, 3rem);
    border: 0;
    background: rgb(7 22 45 / 0.9);
    opacity: 0;
    transition: opacity 0.3s var(--ease), overlay 0.3s allow-discrete, display 0.3s allow-discrete;
  }

  /* display は開いているときだけ指定する。無条件に書くとブラウザ標準の
     [popover]:not(:popover-open) { display:none } を打ち消してしまい、
     閉じているライトボックスが透明なまま画面を覆ってクリックを奪う。 */
  .lightbox:popover-open {
    display: grid;
    place-items: center;
    opacity: 1;
  }

  @starting-style {
    .lightbox:popover-open { opacity: 0; }
  }

  .lightbox::backdrop { background: rgb(7 22 45 / 0.6); }

  .lightbox > img {
    max-width: min(1100px, 100%);
    max-height: 84svh;
    width: auto;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
  }

  .lightbox__close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.5rem);
    right: clamp(0.75rem, 2vw, 1.5rem);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: color-mix(in srgb, #ffffff 18%, transparent);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    display: grid;
    place-items: center;
  }

  .lightbox__close:hover { background: color-mix(in srgb, #ffffff 32%, transparent); }

  /* --- アクセス --------------------------------------------------------- */
  .access {
    display: grid;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    grid-template-columns: 1fr;
    align-items: start;
  }

  @media (width >= 56rem) {
    .access { grid-template-columns: 1fr 1.15fr; }
  }

  .access__info {
    background: var(--glass-strong);
    border: 1px solid var(--hair);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
  }

  .access__block + .access__block {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px dashed var(--hair);
  }

  .access__block h3 {
    font-size: var(--step-0);
    letter-spacing: 0.12em;
    color: var(--blue);
    margin-bottom: 0.35rem;
  }

  .access__block p { font-size: var(--step-0); }

  .access__map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    border: 1px solid var(--hair);
  }

  .access__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* --- フッター --------------------------------------------------------- */
  .footer {
    position: relative;
    margin-top: clamp(3rem, 8vw, 6rem);
    padding: clamp(3rem, 8vw, 5rem) var(--gutter) 2rem;
    background: linear-gradient(180deg, var(--navy-deep), #04182f);
    color: #fff;
    text-align: center;
  }

  .footer__logo {
    width: min(280px, 60vw);
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 8px 18px rgb(0 0 0 / 0.4));
  }

  .footer__contact { line-height: 2; }

  .footer__contact a {
    color: var(--blue-light);
    font-weight: 700;
    text-underline-offset: 3px;
  }

  /* --- トップへ戻る ------------------------------------------------------
     円の外周が読み進めた量を示すリングになっている。リングはCSSの
     スクロール駆動アニメーションで描くのでJSは表示・非表示だけを担当する。 */
  .to-top {
    position: fixed;
    right: clamp(1rem, 3vw, 2rem);
    bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom, 0px));
    z-index: 90;

    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;

    color: #fff;
    background: color-mix(in srgb, var(--navy) 92%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 26px rgb(7 47 102 / 0.34);

    opacity: 0;
    visibility: hidden;
    translate: 0 12px;
    transition: opacity 0.35s var(--ease), translate 0.35s var(--ease),
                visibility 0.35s, background 0.3s var(--ease);
  }

  .to-top[data-show="true"] {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }

  .to-top:hover {
    background: color-mix(in oklab, var(--navy) 76%, var(--accent));
  }

  .to-top svg {
    width: 22px;
    height: 22px;
  }

  /* 読了率のリング。conic-gradient をドーナツ状にマスクしている。 */
  .to-top::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(var(--sun) calc(var(--read) * 360deg), rgb(255 255 255 / 0.28) 0);
    -webkit-mask: radial-gradient(closest-side, transparent 86%, #000 87%);
    mask: radial-gradient(closest-side, transparent 86%, #000 87%);
    pointer-events: none;
  }

  @keyframes read-progress { to { --read: 1; } }

  @supports (animation-timeline: scroll()) {
    .to-top::before {
      animation: read-progress linear both;
      animation-timeline: scroll(root block);
    }
  }

  .footer__copy {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.16);
    font-size: var(--step--1);
    color: rgb(255 255 255 / 0.6);
  }

}

@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .lead {
    font-size: var(--step-1);
    line-height: 2.1;
    color: var(--ink);
    max-width: 46rem;
  }

  .catch {
    font-size: var(--step-3);
    font-weight: 900;
    color: var(--navy);
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
  }

  .center { text-align: center; }
  .mt-3 { margin-top: clamp(1.25rem, 3vw, 2rem); }
  .mt-4 { margin-top: clamp(2rem, 5vw, 3rem); }

  /* スクロールインの静かなフェードアップ。
     JSが動く環境でだけ隠す（.js は inc/head.php のインラインスクリプトが付ける）。
     JSが無効・失敗しても本文が読めなくなることはない。 */
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   動きを減らす設定のときは、色の移ろい・マーキー・フェードをすべて止める。
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }

  .sky {
    animation: none !important;
    --sky-a: #dceefc;
    --sky-b: #a9d3f0;
  }

  /* 流れないマーキーは帯に収まらず切れてしまうので、
     キャッチコピー1行だけの静かな帯にする。
     出演者名は TIME TABLE と ARTISTS に正規のマークアップで載っている。 */
  .marquee__track {
    animation: none !important;
    width: 100%;
    justify-content: center;
  }

  /* ヘッダーの縮小は残す（情報量が変わらないため）が、伸縮のアニメーションは止める */
  .header,
  .header__logo img { transition: none !important; }

  /* 「トップへ戻る」は出したまま。リングの進行アニメーションだけ止める */
  .to-top { transition: none !important; }
  .to-top::before { animation: none !important; }

  .marquee__group { flex: 1; justify-content: center; }
  .marquee__group:nth-child(2) { display: none; }
  .marquee__item:not(:first-child) { display: none; }
  .marquee__item::after { display: none; }

  .js .reveal { opacity: 1; transform: none; transition: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
