/* Paddle Out プレビューサイト
   色は作品紹介と同じ：空 #C9F4F9 → 海 #35C2DE → 砂 #F2E3BE、濃い海 #0B6E85、太陽 #FFC24D、夕焼け #FF9F5A、紙 #FFFDF6 */
:root {
  --sky: #C9F4F9;
  --sea: #35C2DE;
  --deep: #0B6E85;
  --sand: #F2E3BE;
  --sun: #FFC24D;
  --dusk: #FF9F5A;
  --paper: #FFFDF6;
  --ink: #26424B;
  --brown: #3A3128;
  --night: #0E1B33;
  --chalk: #2E3D37;
  /* 日本語：細かい文字は Zen Kaku Gothic New、見出し・紹介文は Yusei Magic（マーカーの手書き） */
  --body: 'Zen Kaku Gothic New', 'Gowun Dodum', 'LXGW WenKai TC', system-ui, sans-serif;
  --display: 'Yusei Magic', 'Zen Kaku Gothic New', sans-serif;
  --hand: 'Caveat', 'Yusei Magic', 'Gaegu', 'LXGW WenKai TC', cursive;
  --logo: 'Shrikhand', 'Zen Kaku Gothic New', serif;
  --pad: clamp(18px, 5vw, 56px);
  --player-h: 64px;
}
html:lang(ko) { --body: 'Gowun Dodum', system-ui, sans-serif; --display: 'Gowun Dodum', system-ui, sans-serif; --hand: 'Caveat', 'Gaegu', cursive; }
html:lang(zh-TW) { --body: 'LXGW WenKai TC', system-ui, sans-serif; --display: 'LXGW WenKai TC', system-ui, sans-serif; --hand: 'Caveat', 'LXGW WenKai TC', cursive; }
/* 見出し・紹介文（マーカー字は太さが1つなので、太字にしない） */
.hero-sub, .note, .end-line, .idcard dd, .gate h2 { font-family: var(--display); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.75;
  background: var(--sky);
  overflow-x: hidden;
  padding-bottom: calc(var(--player-h) + 24px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.hand { font-family: var(--hand); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--paper); padding: 6px 12px; }
.skip:focus { left: 8px; }
body.lb-open, html.gate-on body { overflow: hidden; }

/* ---------------- 空 ---------------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky i { position: absolute; inset: 0; opacity: 0; }
.sky .s0 { opacity: 1; background: linear-gradient(180deg, #C9F4F9 0%, #9BE9F3 45%, #7FE1EF 70%, #F2E3BE 100%); }
.sky .s1 { background: linear-gradient(180deg, #4CCBE3 0%, #35C2DE 40%, #69D9E8 70%, #BFEDE9 100%); }
.sky .s2 { background: linear-gradient(180deg, #4A5FA8 0%, #B9779A 32%, #FF9F5A 60%, #FFC24D 82%, #F2D29B 100%); }
.sky .s3 { background: linear-gradient(180deg, #0B1428 0%, #0E1B33 45%, #173A5C 80%, #1E4B6B 100%); }
.sky .sun {
  position: absolute; left: 78%; width: 140px; height: 140px; margin-left: -70px; border-radius: 50%;
  top: calc(8% + var(--p, 0) * 62%);
  background: radial-gradient(circle, #FFF6D8 0 38%, rgba(255, 214, 120, .55) 39%, rgba(255, 194, 77, 0) 70%);
  opacity: clamp(0, calc(1 - var(--night, 0) * 2.2), 1);
}
.sky .stars {
  position: absolute; inset: 0 0 40% 0; opacity: var(--night, 0);
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 81% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 55%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 37% 66%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 60%, #fff 50%, transparent 51%);
}

/* ---------------- ボタン ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 26px; border-radius: 3px; border: 0;
  font-weight: 900; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sun { background: var(--sun); color: #4A3410; box-shadow: 0 6px 0 #D9962A, 0 12px 24px rgba(160, 100, 20, .25); }
.btn-sun:hover { box-shadow: 0 4px 0 #D9962A, 0 10px 20px rgba(160, 100, 20, .25); transform: translateY(2px); }
.btn-paper { background: var(--paper); color: var(--deep); box-shadow: 0 6px 16px rgba(20, 120, 150, .22); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(38, 66, 75, .3); }

/* ---------------- 年齢確認 ---------------- */
.gate { display: none; }
html.gate-on .gate {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; padding: 20px;
  background: radial-gradient(ellipse at 50% 120%, #F2E3BE, #35C2DE 55%, #0B6E85);
}
.gate.out { opacity: 0; transition: opacity .5s ease; }
.gate-card {
  position: relative; width: min(420px, 100%); background: var(--paper); padding: 34px 28px 22px; text-align: center;
  box-shadow: 0 2px 3px rgba(60, 40, 10, .2), 0 24px 50px rgba(5, 60, 80, .35); transform: rotate(-1.2deg);
}
.gate-tape { position: absolute; top: -14px; left: 50%; width: 120px; height: 28px; margin-left: -60px; background: rgba(250, 236, 192, .9); transform: rotate(2deg); box-shadow: 0 1px 3px rgba(120, 95, 45, .25); }
.gate-logo { font-family: var(--logo); font-size: 2.1rem; color: var(--sea); margin: 0; line-height: 1.2; }
.gate h2 { font-size: 1.35rem; margin: 10px 0 4px; color: var(--brown); }
.gate-note { margin: 0 0 16px; font-size: .92rem; color: #6B5A3E; }
.gate-music { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; margin-bottom: 18px; }
.gate-music input { width: 20px; height: 20px; accent-color: var(--deep); }
.gate-btns { display: flex; flex-direction: column; gap: 10px; }
.gate-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 18px; font-size: .85rem; }
.gate-langs button { background: none; border: 0; padding: 4px 2px; cursor: pointer; color: #6B8C96; }
.gate-langs button[aria-current] { color: var(--deep); font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.gate-denied .gate-note { color: #B4442B; font-weight: 700; }

/* ---------------- ヘッダー ---------------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 10px var(--pad); transition: background .3s, box-shadow .3s;
}
.top.solid { background: rgba(255, 253, 246, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(11, 110, 133, .12); }
.top.dark.solid { background: rgba(14, 27, 51, .82); color: #fff; }
.top-logo { font-family: var(--logo); font-size: 1.35rem; text-decoration: none; color: var(--deep); margin-right: auto; }
.top.dark .top-logo { color: var(--sun); }
.lang select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230B6E85' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 2px center;
  border: 0; border-bottom: 2px solid currentColor; border-radius: 0;
  padding: 4px 18px 3px 2px; font: 700 .88rem var(--body); color: var(--deep);
}
.top.dark .lang select { color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E"); }
.lang select option { color: var(--ink); background: var(--paper); }

/* ---------------- ポラロイド（共通） ---------------- */
.pol {
  margin: 0; background: var(--paper); padding: 10px 10px 0;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .25), 0 14px 24px -10px rgba(60, 40, 10, .45);
  transform: rotate(var(--r, 0deg)); position: relative;
}
.pol img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: #DDEFF2; }
.pol figcaption:empty { padding: 0 0 34px; }
.pol figcaption { padding: 6px 4px 10px; font-size: 1.25rem; line-height: 1.25; color: var(--brown); }
.pol.tape::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; z-index: 2;
  background: linear-gradient(90deg, rgba(204, 172, 106, .18) 0 11%, transparent 11%) 0 0 / 9px 100%, rgba(250, 236, 192, .86);
  transform: rotate(var(--tr, -3deg)); box-shadow: 0 1px 3px rgba(120, 95, 45, .22);
}

/* ---------------- ヒーロー ---------------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(20px, 4vw, 60px); padding: 96px var(--pad) 150px;
}
.hero-motto { margin: 0 0 6px; color: var(--deep); font-weight: 900; font-size: .78rem; }
.logo { margin: 0; font-family: var(--logo); font-weight: 400; line-height: .95; font-size: clamp(4rem, 13vw, 9.6rem); letter-spacing: -.01em; }
.logo-a { display: block; color: #fff; text-shadow: 0 4px 0 rgba(11, 110, 133, .35), 0 16px 40px rgba(11, 110, 133, .25); }
.logo-b { display: block; color: var(--sun); margin-left: .9em; text-shadow: 0 4px 0 #D9962A, 0 16px 40px rgba(160, 100, 20, .25); transform: rotate(-4deg); transform-origin: left; }
.hero-ssf { margin: 22px 0 0; font-weight: 900; color: #fff; letter-spacing: .02em; text-shadow: 0 1px 6px rgba(11, 110, 133, .4); }
.hero-sub { margin: 10px 0 0; font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--deep); }
.hero-pile { position: relative; aspect-ratio: 1 / .95; }
.hero-pile .pol { position: absolute; width: 74%; }
.hero-pile .p1 { left: 10%; top: 26%; --r: -3deg; z-index: 3; }
.hero-pile .p2 { right: 0; top: 2%; --r: 6deg; z-index: 2; }
.hero-pile .p3 { left: 0; top: 0; --r: -9deg; z-index: 1; width: 62%; }
.hero-pile .p1 figcaption { font-size: 1.5rem; }
.dayboard {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding: 18px 20px 15px;
  background:
    radial-gradient(circle at 20% 30%, rgba(120, 72, 30, .35) 0 1px, transparent 1.6px) 0 0 / 9px 11px,
    radial-gradient(circle at 70% 60%, rgba(90, 52, 18, .3) 0 1.2px, transparent 2px) 3px 4px / 13px 10px,
    linear-gradient(160deg, #C99A5E, #B88648 50%, #C4935A);
  border: 7px solid #9E6435; box-shadow: 0 12px 24px rgba(70, 45, 18, .28), inset 0 2px 6px rgba(60, 32, 10, .35);
  transform: rotate(-1deg);
}
.memo {
  position: relative; margin: 0; background: var(--paper); color: var(--ink); padding: 7px 11px 6px; display: flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: 1.02rem; line-height: 1.15; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(70, 45, 18, .22), 1px 2px 3px -1px rgba(70, 45, 18, .3);
}
.memo::before { content: ''; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 1px, var(--pc) 2.2px, var(--pc) 55%, rgba(0, 0, 0, .35) 100%); }
.memo svg { width: 15px; height: 15px; fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; }
.memo .sun-ico { stroke: #E39A1F; }
.memo .wave-ico { stroke: #2BA8C4; margin-left: 6px; }
.m1 { flex-direction: column; align-items: flex-start; gap: 1px; transform: rotate(-2deg); --pc: #FF9F5A; }
.m1 small { font-size: .62rem; letter-spacing: .12em; color: #7FAFBC; }
.m1 b { font-size: 1.35rem; color: var(--deep); font-weight: 900; }
.m2 { transform: rotate(1.5deg); --pc: #FFC24D; }
.m3 { transform: rotate(-1deg); --pc: #35C2DE; }
@media (max-width: 420px) { .dayboard { gap: 8px; padding: 12px 10px 10px; } .memo { font-size: .8rem; padding: 6px 8px 5px; } }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 110px; }
.waves .w1 { fill: rgba(255, 255, 255, .45); }
.waves .w2 { fill: var(--sand); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 88px; text-align: left; }
  .hero-pile { max-width: 460px; width: 100%; margin: 0 auto; }
}

/* ---------------- あらすじ ---------------- */
.story { background: var(--sand); padding: 30px var(--pad) 90px; }
.note {
  max-width: 560px; margin: 0 auto; background: var(--paper); padding: clamp(28px, 6vw, 48px) clamp(22px, 5vw, 44px);
  text-align: center; border-radius: 6px; box-shadow: 0 10px 26px rgba(120, 100, 60, .2);
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(1.95em - 1px), rgba(53, 194, 222, .14) calc(1.95em - 1px) 1.95em);
  background-position: 0 1.2em; line-height: 1.95;
}
.note p { margin: 0; }
.story-a { color: var(--brown); font-size: 1.05rem; }
.story-b { color: #6B5A3E; }
.note hr { border: 0; height: 2px; background: #EFE2C4; margin: 1.95em 15%; }

/* ---------------- カイ（木の掲示板） ---------------- */
.kai { padding: 80px var(--pad); }
.board {
  max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 30% 40%, rgba(92, 52, 18, .26) 0 .7px, transparent 1.2px) 0 0 / 7px 9px,
    radial-gradient(circle at 70% 20%, rgba(246, 212, 160, .38) 0 .7px, transparent 1.3px) 1px 4px / 11px 8px,
    radial-gradient(circle at 50% 50%, rgba(120, 72, 30, .24) 0 1.3px, transparent 2px) 2px 3px / 19px 23px,
    radial-gradient(ellipse 60% 80% at 20% 30%, rgba(170, 115, 60, .22), transparent 70%),
    linear-gradient(160deg, #D3A671, #C2925A 45%, #CB9C66);
  border: 14px solid #8A5528;
  border-image: linear-gradient(180deg, #A96C3B, #7E4C22 50%, #9E6435) 1;
  box-shadow: 0 22px 40px rgba(70, 45, 18, .3), inset 0 3px 8px rgba(70, 42, 14, .38);
}
.idcard { position: relative; background: var(--paper); padding: 30px 24px 22px; transform: rotate(-1.5deg); box-shadow: 0 8px 18px rgba(70, 45, 18, .3); }
.idcard-tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(250, 236, 192, .92); transform: rotate(-2deg); box-shadow: 0 2px 4px rgba(120, 95, 45, .24); }
.idcard h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid #DDF2F6; line-height: 1.2; }
.kai-en { display: block; font-family: var(--logo); font-weight: 400; color: var(--deep); font-size: 1.9rem; }
.kai-local { display: block; color: #7FAFBC; font-size: .85rem; font-weight: 700; margin-top: 4px; }
.idcard dl { margin: 0; }
.idcard dl > div { border-left: 4px solid var(--bar); padding-left: 11px; margin-bottom: 12px; }
.idcard dt { font-size: .66rem; font-weight: 900; letter-spacing: .32em; color: #8FBAC6; }
.idcard dd { margin: 0; font-size: 1rem; line-height: 1.55; }
.idcard-yolo { position: absolute; right: 14px; bottom: 6px; margin: 0; font-family: 'Caveat', cursive; font-weight: 700; font-size: 2rem; line-height: 1; color: #E2683A; transform: rotate(-9deg); }
.kai-pics { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.kai-pics .k1 { grid-column: 1 / -1; width: 78%; justify-self: center; --r: 2deg; --tr: 4deg; }
.kai-pics .k2 { --r: -3deg; }
.kai-pics .k3 { --r: 2.5deg; --tr: -6deg; }
@media (max-width: 760px) {
  .board { grid-template-columns: 1fr; border-width: 10px; }
  .idcard { max-width: 360px; justify-self: center; width: 100%; }
}

/* ---------------- アルバム ---------------- */
.album { padding: 80px var(--pad) 90px; }
.album-head { text-align: center; margin-bottom: 26px; }
.album-head h2 { margin: 0; font-family: var(--hand); font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.1; color: #fff; text-shadow: 0 3px 0 rgba(11, 110, 133, .35); font-weight: 700; }

.chalk {
  max-width: 1180px; margin: 0 auto; padding: 18px 20px 16px; color: #F4F1E6;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .06), transparent 60%), var(--chalk);
  border: 10px solid #9E6435; border-bottom: 0;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .35);
}
.route { list-style: none; margin: 0; padding: 0 0 12px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; }
.route li { flex: 0 0 auto; display: flex; align-items: center; }
.route li + li::before { content: ''; width: 18px; border-top: 2px dashed rgba(244, 241, 230, .4); margin: 0 2px; }
.route button {
  background: none; border: 0; cursor: pointer; padding: 6px 10px; border-radius: 0; font-family: var(--hand); font-size: 1.35rem; line-height: 1.1;
  color: rgba(244, 241, 230, .78); display: flex; flex-direction: column; align-items: center; min-width: 64px;
}
html:lang(ja) .route button { font-size: 1.2rem; }
.route button small { font-family: var(--body); font-size: .7rem; opacity: .7; margin-top: 2px; }
.route button:hover { color: #fff; }
.route button.on { color: var(--sun); box-shadow: inset 0 -3px 0 var(--sun); }
.kinds { display: flex; flex-wrap: wrap; gap: 4px 22px; border-top: 1px dashed rgba(244, 241, 230, .25); padding-top: 12px; }
.kinds button {
  display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: rgba(244, 241, 230, .7); cursor: pointer;
  padding: 4px 6px; font-family: var(--hand); font-size: 1.15rem; line-height: 1.2; min-height: 40px;
}
.kinds button .n { font-family: var(--body); opacity: .6; font-size: .72rem; }
.kinds .box { position: relative; flex: 0 0 auto; width: 17px; height: 17px; border: 2px solid currentColor; transform: rotate(-3deg); }
.kinds button.on { color: #F4F1E6; }
.kinds button.on .box::after { content: ''; position: absolute; left: 3px; top: -5px; width: 8px; height: 15px; border: solid var(--sun); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.kinds button:hover { color: #fff; }

.cork {
  max-width: 1180px; margin: 0 auto; padding: clamp(26px, 4vw, 48px) clamp(16px, 3vw, 40px) 40px;
  border: 10px solid #9E6435; border-top: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(120, 72, 30, .35) 0 1px, transparent 1.6px) 0 0 / 9px 11px,
    radial-gradient(circle at 70% 60%, rgba(90, 52, 18, .3) 0 1.2px, transparent 2px) 3px 4px / 13px 10px,
    radial-gradient(circle at 50% 50%, rgba(240, 200, 140, .35) 0 1px, transparent 1.6px) 6px 2px / 7px 13px,
    linear-gradient(160deg, #C99A5E, #B88648 50%, #C4935A);
  box-shadow: 0 22px 40px rgba(70, 45, 18, .3), inset 0 4px 14px rgba(60, 32, 10, .35);
}
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); gap: clamp(18px, 3vw, 34px) clamp(14px, 2.4vw, 28px); }
.grid li { opacity: 0; animation: pin .45s cubic-bezier(.2, .8, .3, 1.2) forwards; animation-delay: var(--d, 0s); }
@keyframes pin { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.grid .pol { transition: transform .2s ease, box-shadow .2s ease; }
.grid button:hover .pol, .grid button:focus-visible .pol { transform: rotate(0deg) translateY(-4px) scale(1.03); z-index: 3; box-shadow: 0 2px 3px rgba(60, 40, 10, .2), 0 24px 34px -12px rgba(60, 40, 10, .5); }
.grid .pol figcaption { font-size: 1.12rem; display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
html:lang(ja) .grid .pol figcaption, html:lang(zh-TW) .grid .pol figcaption, html:lang(ko) .grid .pol figcaption { font-size: .95rem; }
.grid .cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid .no { flex: 0 0 auto; font-family: 'Caveat', cursive; font-size: 1.05rem; color: #9C8A6C; }
.grid .adult .cap { color: #B0552A; }
.grid .pin { position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; z-index: 2; background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--pc, #FF9F5A) 30%, rgba(0, 0, 0, .25) 100%); box-shadow: 0 3px 3px rgba(0, 0, 0, .3); }
.grid .divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 18px 0 -4px; }
.grid .divider:first-child { margin-top: 0; }
.grid .divider::before, .grid .divider::after { content: ''; flex: 1; border-top: 2px dashed rgba(60, 32, 10, .35); }
.grid .divider span { background: var(--chalk); color: #F4F1E6; padding: 2px 20px 4px; font-size: 1.5rem; line-height: 1.2; box-shadow: 0 4px 10px rgba(40, 20, 5, .3); transform: rotate(-1.5deg); }
.empty { text-align: center; font-size: 1.5rem; color: #4A3410; margin: 30px 0; }
.more {
  position: relative; display: block; margin: 40px auto 0; padding: 14px 30px 12px; border: 0; cursor: pointer;
  background: var(--paper); color: var(--deep); font: 400 1.25rem/1.2 var(--hand); transform: rotate(-1.5deg);
  box-shadow: 0 1px 2px rgba(60, 40, 10, .25), 0 10px 18px -8px rgba(60, 40, 10, .45);
}
.more::before { content: ''; position: absolute; top: -6px; left: 50%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, #35C2DE 30%, rgba(0,0,0,.25) 100%); box-shadow: 0 3px 3px rgba(0,0,0,.3); }
.more:hover { transform: rotate(0deg) translateY(-2px); }
.more small { font-family: var(--body); font-size: .72rem; color: #9C8A6C; margin-left: 6px; }

/* ---------------- 曲 ---------------- */
.song { padding: 90px var(--pad); color: #fff; }
.song-wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 64px); align-items: start; }
.record { grid-row: span 2; position: relative; }
.record img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.song-text h2 { margin: 0; font-family: var(--logo); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.1; color: var(--sun); }
/* 見出しの小見出しは使わない */
.song-text h2 small { display: block; font-family: var(--body); font-weight: 700; font-size: .95rem; color: rgba(255, 255, 255, .8); margin-bottom: 6px; }
.song-text h2 + .btn { margin-top: 18px; }
.lyrics {
  position: relative; list-style: none; margin: 0; padding: 18px 0; height: min(52vh, 420px); overflow-y: auto; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  scrollbar-width: none;
}
.lyrics::-webkit-scrollbar { display: none; }
.lyrics li { padding: 3px 0; }
.lyrics li.gap { padding-top: 26px; }
.lyrics button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: 'Caveat', cursive; font-weight: 600; font-size: clamp(1.45rem, 3vw, 1.85rem); line-height: 1.25; color: rgba(255, 255, 255, .42); transition: color .25s, transform .25s; transform-origin: left center; }
.lyrics button:hover { color: rgba(255, 255, 255, .75); }
.lyrics li.now button { color: #fff; transform: scale(1.06); }
@media (max-width: 520px) { .grid .pol { padding: 7px 7px 0; } }
@media (max-width: 760px) {
  .song-wrap { grid-template-columns: 1fr; }
  .record { grid-row: auto; max-width: 260px; }
}

/* ---------------- おわり ---------------- */
.end { padding: 70px var(--pad) 90px; text-align: center; color: #fff; }
.end-line { font-size: clamp(1.4rem, 3.6vw, 1.95rem); margin: 0; line-height: 1.7; }

/* ---------------- プレーヤー ---------------- */
.player {
  position: fixed; z-index: 60; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(560px, calc(100% - 20px)); height: var(--player-h); display: flex; align-items: center; gap: 10px; padding: 0 16px 0 10px;
  background: rgba(255, 253, 246, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 3px; box-shadow: 0 1px 2px rgba(5, 40, 60, .2), 0 12px 28px -6px rgba(5, 40, 60, .35); overflow: hidden;
}
html.gate-on .player { display: none; }
.pl-btn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sun); cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 #D9962A; }
.ico { display: block; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #4A3410; margin-left: 3px; }
.playing .ico { width: 13px; height: 15px; border: 0; margin: 0; background: linear-gradient(90deg, #4A3410 0 35%, transparent 35% 65%, #4A3410 65%); }
.btn .ico { border-left-color: #4A3410; }
.pl-cover { width: 40px; height: 40px; border-radius: 0; object-fit: cover; flex: 0 0 auto; }
.pl-mid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pl-title { font-weight: 900; color: var(--deep); font-size: .9rem; }
.pl-line { font-size: .82rem; color: #6B5A3E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.pl-lyrics { flex: 0 0 auto; font-size: .82rem; font-weight: 700; color: var(--deep); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; padding: 6px 4px; }
.pl-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(11, 110, 133, .12); cursor: pointer; }
.pl-bar i { display: block; height: 100%; width: 0; background: var(--sea); }

/* ---------------- 拡大表示 ---------------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(7, 28, 40, .9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 64px calc(var(--player-h) + 34px); }
.lb-pol { margin: 0; background: var(--paper); padding: 12px 12px 0; max-width: min(1100px, 100%); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); transform: rotate(-.6deg); }
.lb-img { position: relative; }
.lb-img img { height: auto; max-height: calc(100svh - 230px); width: auto; max-width: 100%; margin: 0 auto; }
#lbFull { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .4s; }
#lbFull.ready { opacity: 1; }
.lb-load { position: absolute; right: 10px; bottom: 8px; background: rgba(255, 253, 246, .85); padding: 0 10px; border-radius: 2px; font-size: 1.1rem; color: var(--deep); }
.lb-pol figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 4px 12px; color: var(--brown); }
.lb-pol figcaption .hand { font-size: 1.4rem; line-height: 1.3; }
html:lang(ja) .lb-pol figcaption .hand, html:lang(ko) .lb-pol figcaption .hand, html:lang(zh-TW) .lb-pol figcaption .hand { font-size: 1.1rem; }
.lb-meta { flex: 0 0 auto; display: flex; gap: 10px; font-size: .8rem; color: #9C8A6C; font-weight: 700; }
.lb-x, .lb-arrow { position: absolute; border: 0; background: none; color: rgba(255, 255, 255, .8); cursor: pointer; display: grid; place-items: center; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.lb-x { top: 12px; right: 12px; width: 46px; height: 46px; font-size: 1.6rem; }
.lb-arrow { top: 50%; width: 52px; height: 72px; margin-top: -36px; font-size: 3rem; line-height: 1; }
.lb-arrow.prev { left: 10px; }
.lb-arrow.next { right: 10px; }
.lb-x:hover, .lb-arrow:hover { color: var(--sun); }
@media (max-width: 600px) {
  .lb-stage { padding: 60px 10px calc(var(--player-h) + 80px); }
  .lb-arrow { top: auto; bottom: calc(var(--player-h) + 24px); margin: 0; }
  .lb-arrow.prev { left: 24%; }
  .lb-arrow.next { right: 24%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid li { animation: none; opacity: 1; }
  .lyrics { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
