/*
Theme Name: Tan.San.Sui.
Theme URI:
Author: Watanabe Lab.
Description: アイドルグループ「Tan.San.Sui.」公式サイト用オリジナルテーマ（ソーダデザイン）。ライブ・メンバーを管理画面から更新できます。
Version: 3.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tansansui
*/

/* =========================================================
   基本
   ========================================================= */
:root {
  --teal: #74c6be;
  --yellow: #facd6a;
  --blue: #5bbcee;
  --ink: #1f3440;
  --sub: #6f8590;
  --line: #dfecf0;
  --soda: #eaf7fb;
  --deep: #14353f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Zen Maru Gothic", sans-serif; color: var(--ink); background: #fff; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* 見出し部品 */
.sec-label { display: flex; align-items: center; gap: 12px; font: 700 13px "Quicksand", sans-serif; letter-spacing: .26em; color: var(--teal); }
.sec-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.sec-title { font: 700 clamp(40px, 6vw, 80px)/1.05 "Quicksand", "Zen Maru Gothic", sans-serif; letter-spacing: -.02em; margin-top: 14px; }
.sec-sub { color: var(--sub); font-size: 14px; margin-top: 10px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 34px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 13px "Quicksand", sans-serif; letter-spacing: .16em; transition: background .3s; }
.btn:hover { background: var(--teal); }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font: 700 13px "Quicksand", sans-serif; letter-spacing: .16em; }
.more::after { content: "→"; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; transition: .3s; }
.more:hover::after { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateX(4px); }
footer .more:hover::after { background: #fff; border-color: #fff; color: var(--deep); }

/* スクロールで出てくる（JSが動く時だけ隠す） */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   ヘッダー
   ========================================================= */
header { position: fixed; inset: 0 0 auto 0; z-index: 40; }
/* 半透明の背景は ::before に（ヘッダー本体に付けると全画面メニューが閉じ込められるため） */
header::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); opacity: 0; transition: opacity .3s; }
header.scrolled::before, body:not(.home) header::before { opacity: 1; }
.head-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.head-left { display: flex; align-items: center; }
.head-logo { display: block; max-width: 200px; margin-right: 20px; overflow: hidden; transition: opacity .3s, max-width .4s, margin .4s; }
.head-logo img { height: 30px; width: auto; }
body.home header:not(.scrolled) .head-logo { opacity: 0; max-width: 0; margin-right: 0; }
.sns-icons { list-style: none; display: flex; align-items: center; }
.sns-icons a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: color .25s, transform .25s, background .3s; }
.sns-icons svg { width: 18px; height: 18px; display: block; flex: none; }
.bar-sns { gap: 16px; padding-left: 20px; border-left: 1px solid var(--line); transition: padding .4s, border-color .4s; }
body.home header:not(.scrolled) .bar-sns { padding-left: 0; border-left-color: transparent; }
.bar-sns a:hover { color: var(--teal); transform: translateY(-2px); }
.head-sns { display: none !important; }
header nav { display: flex; align-items: center; }
header nav > ul { list-style: none; display: flex; gap: 30px; }
header nav a { font: 700 13px "Quicksand", sans-serif; letter-spacing: .14em; position: relative; }
header nav > ul a::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--teal); transform: scale(0); transition: transform .25s; }
header nav > ul a:hover::after, header nav > ul a.is-current::after { transform: scale(1); }
.menu-btn { display: none; background: none; border: 0; font: 700 13px "Quicksand", sans-serif; letter-spacing: .14em; position: relative; z-index: 12; }

/* =========================================================
   開幕：キャップが開いて泡が駆け上がる（TOP・初回のみ）
   ========================================================= */
/* JSが動く時だけ表示（2回目以降・動きを減らす設定の人には出さない） */
#opening { display: none; }
.js #opening { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #fff; transition: opacity .5s ease .2s, visibility 0s linear .7s; }
#opening.done { opacity: 0; visibility: hidden; }
.js.js-seen #opening { display: none; }
/* 万一JSが途中で止まっても、4秒後には必ず消える */
.js #opening { animation: openingSafety .4s ease 4s forwards; }
@keyframes openingSafety { to { opacity: 0; visibility: hidden; } }
.cap { position: relative; width: 132px; height: 132px; }
.cap-top { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(var(--teal) 0 10deg, #8fd3cc 10deg 20deg); box-shadow: inset 0 0 0 14px var(--teal), 0 14px 30px rgba(116,198,190,.35); display: grid; place-items: center; }
.cap-top span { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 12px "Quicksand", sans-serif; letter-spacing: .1em; color: var(--teal); }
.cap-mouth { position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(circle, #dff4fa, #a8dcef); box-shadow: inset 0 6px 14px rgba(20,53,63,.18); }
#opening.pop .cap-top { animation: capOff .7s cubic-bezier(.3,.6,.3,1) forwards; }
@keyframes capOff { 20% { transform: translateY(6px) rotate(-8deg); } 100% { transform: translate(140px, -70vh) rotate(260deg); opacity: 0; } }
.pshh { position: absolute; top: calc(50% - 130px); font: 700 22px "Quicksand", sans-serif; letter-spacing: .2em; color: var(--blue); opacity: 0; }
#opening.pop .pshh { animation: pshh .8s ease forwards; }
@keyframes pshh { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: translateY(-30px); } }
.rush { position: fixed; inset: 0; z-index: 101; pointer-events: none; width: 100%; height: 100%; }

/* =========================================================
   TOP：メンバーが泡になって昇っていく
   ========================================================= */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: radial-gradient(120% 80% at 50% 110%, #c9ecf6 0%, #eaf7fb 45%, #fff 80%); }
.floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero .floaters { pointer-events: auto; }
.mb { position: absolute; left: 0; top: 0; will-change: transform; }
.mb a, .mb .ring { display: block; width: 100%; height: 100%; border-radius: 50%; position: relative; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.mb a { overflow: hidden; background: #cdeefa; box-shadow: 0 14px 34px rgba(91,188,238,.22); }
.mb a img { position: absolute; max-width: none; height: auto; }
.mb a::after, .mb .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 20% 17%, rgba(255,255,255,.9) 0 4%, rgba(255,255,255,0) 9%), radial-gradient(circle at 50% 50%, rgba(255,255,255,0) 62%, rgba(255,255,255,.55) 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); }
.mb .ring { border: 2px solid rgba(91,188,238,.45); background: radial-gradient(circle, rgba(255,255,255,0) 55%, rgba(116,198,190,.18) 100%); }
.mb .ring.y { border-color: rgba(250,205,106,.6); }
.mb .ring.t { border-color: rgba(116,198,190,.6); }
.mb:hover a { transform: scale(1.12); }
.mb .tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px); white-space: nowrap; padding: 4px 14px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px rgba(31,52,64,.12); font: 700 12px "Quicksand", sans-serif; letter-spacing: .12em; opacity: 0; transition: .3s; pointer-events: none; }
.mb .tag i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.mb:hover .tag { opacity: 1; transform: translate(-50%, 12px); }
.hero-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; text-align: center; pointer-events: none; width: min(640px, 86vw); }
.hero-center .hero-logo { width: 100%; filter: drop-shadow(0 0 22px #fff) drop-shadow(0 0 10px #fff); animation: logoIn 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.hero-center p { margin-top: 18px; font: 700 13px "Quicksand", sans-serif; letter-spacing: .4em; color: var(--sub); animation: fadeUp 1s .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; font: 700 11px "Quicksand", sans-serif; letter-spacing: .3em; color: var(--sub); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.scroll-hint span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue); animation: hintUp 1.8s ease-in infinite; }
@keyframes hintUp { 0% { transform: translateY(18px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

/* スクロールで注がれていくグラス（右下） */
/* 本文の右端に重ならないよう、左右に余白がある広い画面（1360px以上）でだけ表示 */
.glass { position: fixed; right: 26px; bottom: 26px; z-index: 30; width: 34px; height: 64px; pointer-events: none; display: none; }
@media (min-width: 1360px) { .glass { display: block; } }
.glass-body { position: absolute; inset: 0; border: 2px solid rgba(31,52,64,.5); border-top: 0; border-radius: 3px 3px 12px 12px; overflow: hidden; background: rgba(255,255,255,.65); }
.glass-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; transform: scaleY(var(--lv, 0)); transform-origin: bottom; background: linear-gradient(180deg, #9ad9ef, var(--blue)); }
.glass-fill i { position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.9); animation: gBub 1.6s linear infinite; }
.glass-fill i:nth-child(1) { left: 6px; }
.glass-fill i:nth-child(2) { left: 15px; animation-delay: .5s; width: 3px; height: 3px; }
.glass-fill i:nth-child(3) { left: 22px; animation-delay: 1s; }
@keyframes gBub { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60px); opacity: 0; } }
.glass small { position: absolute; right: 44px; bottom: 2px; font: 700 10px "Quicksand", sans-serif; letter-spacing: .18em; color: var(--sub); white-space: nowrap; }

/* コンセプト：文字が浮き沈みし、触るとはじける */
.concept { padding: 150px 0 140px; background: linear-gradient(180deg, #fff, var(--soda)); text-align: center; }
.concept .sec-label { justify-content: center; }
.fizz-text { margin-top: 36px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; }
.fizz-text .l1 { display: block; font-size: clamp(30px, 5.4vw, 72px); }
.fizz-text .l2 { display: block; font-size: clamp(18px, 2.6vw, 32px); margin-top: 18px; color: var(--sub); font-weight: 700; }
.fizz-text .ch { display: inline-block; animation: bob var(--d, 3s) ease-in-out var(--dl, 0s) infinite alternate; }
.fizz-text.paused .ch { animation-play-state: paused; }
.fizz-text .ch.pop { animation: popch .55s cubic-bezier(.2,.8,.2,1); }
@keyframes bob { from { transform: translateY(-.05em); } to { transform: translateY(.06em); } }
@keyframes popch { 0% { transform: scale(1); } 35% { transform: scale(1.5) translateY(-.2em); color: var(--blue); opacity: .2; } 36% { transform: scale(.4) translateY(.1em); opacity: 0; } 100% { transform: none; opacity: 1; } }
.concept-note { margin: 44px auto 0; max-width: 640px; color: var(--sub); font-size: 15px; line-height: 2.1; }
.nick { display: inline-block; margin-top: 30px; padding: 8px 22px; border-radius: 999px; background: #fff; box-shadow: 0 8px 20px rgba(91,188,238,.15); font-weight: 700; font-size: 14px; }

/* =========================================================
   チケット（NEXT LIVE・スケジュール）
   ========================================================= */
.live { padding: 130px 0; background: var(--soda); }
.ticket { display: grid; grid-template-columns: 1fr 230px; border-radius: 26px; background: #fff; box-shadow: 0 24px 50px rgba(91,188,238,.16); position: relative; }
.live .ticket { margin-top: 40px; }
.t-main { padding: 46px 52px; min-width: 0; }
.t-date { font: 700 clamp(72px, 10vw, 136px)/.9 "Quicksand", sans-serif; letter-spacing: -.04em; background: linear-gradient(100deg, var(--teal), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-date small { font-size: .2em; letter-spacing: .08em; -webkit-text-fill-color: var(--sub); margin-left: .4em; }
.t-year { font: 700 13px "Quicksand", sans-serif; letter-spacing: .2em; color: var(--sub); margin-bottom: 6px; display: block; }
.t-main h2, .t-main h3 { font-size: clamp(18px, 2.2vw, 24px); margin-top: 20px; line-height: 1.5; }
.t-main h2 a:hover, .t-main h3 a:hover { color: var(--teal); }
.t-main p { color: var(--sub); margin-top: 8px; font-size: 14px; }
.t-stub { position: relative; border-left: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; transform-origin: left center; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.t-stub::before, .t-stub::after { content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--notch, var(--soda)); }
.t-stub::before { top: -14px; }
.t-stub::after { bottom: -14px; }
.page-body .t-stub { --notch: #fff; }
.ticket:hover .t-stub { transform: rotate(4deg) translateX(6px); }
.t-stub .adm { font: 700 12px "Quicksand", sans-serif; letter-spacing: .3em; color: var(--sub); writing-mode: vertical-rl; }
.t-stub .soon { font: 700 12px "Quicksand", sans-serif; letter-spacing: .2em; color: var(--sub); }
.ticket.is-soon .t-date { font-size: clamp(56px, 8vw, 104px); }
.page-body .ticket { box-shadow: 0 2px 0 var(--line), 0 20px 44px rgba(91,188,238,.14); }

/* スケジュール一覧：チケットを縦に並べる */
.tickets { display: grid; gap: 28px; }
.tickets .ticket { grid-template-columns: 1fr 200px; }
.tickets .t-main { padding: 34px 40px; }
.tickets .t-date { font-size: clamp(56px, 7vw, 92px); }
.past-list { list-style: none; border-top: 1px solid var(--line); }
.past-list a { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); color: var(--sub); transition: color .3s, padding .3s; }
.past-list a:hover { color: var(--ink); padding-left: 12px; }
.past-list .d { font: 700 15px/1.8 "Quicksand", sans-serif; }
.live-group + .live-group { margin-top: 110px; }
.live-group > .sec-label { margin-bottom: 28px; }
.empty { color: var(--sub); padding: 40px 0; }

/* ライブ詳細 */
.live-detail .ticket { margin-bottom: 56px; }
.live-spec { border-top: 1px solid var(--line); max-width: 780px; }
.live-spec div { display: grid; grid-template-columns: 120px 1fr; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.live-spec dt { font: 700 13px/1.9 "Quicksand", sans-serif; letter-spacing: .14em; color: var(--sub); }

/* =========================================================
   メンバー：たんさん組の出席簿（席替えできる）
   ========================================================= */
.class { padding: 140px 0 150px; }
/* NEXT LIVEを出していない時は、コンセプトの水色から白へなめらかにつなぐ */
.concept + .class { background: linear-gradient(180deg, var(--soda), #fff 260px); padding-top: 40px; }
.class-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.shuffle { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; transition: background .3s, color .3s; }
.shuffle svg { width: 18px; height: 18px; transition: transform .6s; }
.shuffle:hover { background: var(--ink); color: #fff; }
.shuffle:hover svg { transform: rotate(180deg); }
.board { margin-top: 18px; color: var(--sub); font-size: 13px; }
.desks { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.card { display: block; border-radius: 22px; background: #fff; padding: 14px 14px 20px; position: relative; box-shadow: 0 2px 0 var(--line), 0 18px 40px rgba(31,52,64,.08); transform: rotate(var(--r, 0deg)); transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 22px 22px 0 0; background: var(--c); }
.desk:hover .card { transform: rotate(0) translateY(-6px); box-shadow: 0 2px 0 var(--line), 0 26px 50px rgba(31,52,64,.14); }
.card figure { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; margin-top: 6px; background: var(--soda); }
.card figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .6s; }
.desk:hover .card figure img { transform: scale(1.05); }
.card .no { position: absolute; top: 26px; left: 26px; z-index: 2; padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font: 700 11px "Quicksand", sans-serif; letter-spacing: .14em; }
.card .row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 0 4px; }
.card strong { font: 700 24px/1 "Quicksand", sans-serif; letter-spacing: .02em; }
.card .ja { font-size: 13px; color: var(--sub); }
.card .fav { margin: 12px 4px 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--sub); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card .fav b { color: var(--ink); font-weight: 700; }
/* カード全体のリンクは下に敷き、SNSアイコンだけ上に出す */
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.card-sns { position: relative; z-index: 2; list-style: none; display: flex; gap: 8px; margin: 14px 4px 0; }
.card-sns a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soda); color: var(--ink); transition: background .25s, color .25s, transform .25s; }
.card-sns a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.card-sns svg { width: 16px; height: 16px; }
.card .dot, .ms-color .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(31,52,64,.12); margin-right: 8px; vertical-align: -1px; }

/* メンバー詳細：学生証を大きく */
.member-single { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 64px; align-items: start; }
.ms-photo { position: relative; border-radius: 26px; background: #fff; padding: 16px; box-shadow: 0 2px 0 var(--line), 0 24px 50px rgba(31,52,64,.1); transform: rotate(-1.5deg); }
.ms-photo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: 26px 26px 0 0; background: var(--c); }
.ms-photo figure { border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; margin-top: 8px; background: var(--soda); }
.ms-photo figure img { width: 100%; height: 100%; object-fit: cover; }
.ms-photo .no { position: absolute; top: 34px; left: 34px; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.92); font: 700 12px "Quicksand", sans-serif; letter-spacing: .14em; }
.ms-en { font: 700 clamp(52px, 7vw, 92px)/1 "Quicksand", sans-serif; letter-spacing: -.02em; }
.ms-name { font-size: 24px; margin-top: 18px; line-height: 1.5; }
.ms-kana { font-size: 13px; color: var(--sub); letter-spacing: .08em; margin-top: 6px; }
.ms-color { display: inline-flex; align-items: center; margin-top: 18px; padding: 6px 16px; border-radius: 999px; background: var(--soda); font-size: 13px; font-weight: 700; }
.member-single .entry { margin: 36px 0 0; max-width: none; }
.member-sns { margin-top: 22px; }
.member-sns ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.member-sns a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--ink); font: 700 13px "Quicksand", sans-serif; letter-spacing: .06em; transition: background .3s, color .3s; }
.member-sns a:hover { background: var(--ink); color: #fff; }
.member-sns svg { width: 16px; height: 16px; }
.ms-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--line); font: 700 13px "Quicksand", sans-serif; letter-spacing: .1em; }
.ms-nav a { color: var(--sub); transition: color .3s; }
.ms-nav a:hover { color: var(--ink); }

/* =========================================================
   お知らせ
   ========================================================= */
.news { padding: 120px 0 140px; background: linear-gradient(180deg, #fff, var(--soda)); }
.news-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.news-list { list-style: none; }
.news-list a { display: flex; gap: 24px; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: padding .3s, color .3s; }
.news-list li:first-child a { border-top: 1px solid var(--line); }
.news-list a:hover { padding-left: 14px; color: var(--teal); }
.news-list .date { font: 700 14px/1.9 "Quicksand", sans-serif; color: var(--sub); flex: none; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; font: 700 15px "Quicksand", sans-serif; }
.pager .page-numbers { min-width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line); background: #fff; }
.pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* =========================================================
   下層ページの上部：ソーダの水面
   ========================================================= */
.page-head { position: relative; overflow: hidden; padding: 170px 0 84px; background: radial-gradient(120% 120% at 50% 120%, #c9ecf6 0%, #eaf7fb 50%, #fff 85%); }
.page-head .wrap { position: relative; z-index: 1; }
.ph-title { font-weight: 700; }
.ph-en { display: block; font: 700 clamp(56px, 10vw, 128px)/1 "Quicksand", sans-serif; letter-spacing: -.03em; animation: logoIn 1s cubic-bezier(.2,.8,.2,1) both; }
.ph-ja { display: block; font-size: 14px; color: var(--sub); margin-top: 16px; letter-spacing: .04em; animation: fadeUp 1s .25s both; }
.page-body { padding: 90px 0 160px; }

/* 本文（WordPressのエディタで書いた内容） */
.entry { max-width: 780px; margin: 0 auto; }
.entry > * + * { margin-top: 1.4em; }
.entry h2 { font-size: 26px; line-height: 1.5; margin-top: 2.4em; display: flex; align-items: center; gap: 12px; }
.entry h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--teal); flex: none; }
.entry h3 { font-size: 20px; margin-top: 2em; }
.entry a { color: var(--blue); text-decoration: underline; }
.entry img { border-radius: 16px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry table { width: 100%; border-collapse: collapse; border: 0; }
.entry th, .entry td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 8px; text-align: left; vertical-align: top; }
.entry .wp-block-table th, .entry .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); }
.entry .wp-block-table thead, .entry .wp-block-table tfoot { border: 0; }
.entry table tr:first-child > th, .entry table tr:first-child > td { border-top: 1px solid var(--line); }
.entry th { white-space: nowrap; width: 8em; font-size: 14px; color: var(--sub); }
.entry figure.wp-block-table { margin-left: 0; margin-right: 0; margin-bottom: 0; }
/* WordPressがグループを包む「中箱」を無いものとして扱う */
.entry .wp-block-group > .wp-block-group__inner-container { display: contents; }
.entry-meta { max-width: 780px; margin: 0 auto 20px; font: 700 14px "Quicksand", sans-serif; color: var(--sub); }
.entry-title { max-width: 780px; margin: 0 auto 48px; font-size: clamp(24px, 3vw, 34px); line-height: 1.5; }
.back { max-width: 780px; margin: 80px auto 0; }

/* GOODS */
.entry .goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; margin-top: 32px; }
.entry .goods-item > * + * { margin-top: 0; }
.entry .goods-item figure { margin: 0 0 16px; aspect-ratio: 4 / 3; border-radius: 22px; background: #fff; box-shadow: 0 2px 0 var(--line), 0 16px 34px rgba(31,52,64,.07); display: grid; place-items: center; padding: 20px; overflow: hidden; transition: transform .4s; }
.entry .goods-item:hover figure { transform: translateY(-4px) rotate(-.6deg); }
.entry .goods-item figure img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.entry .goods-item h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; }
.entry .goods-price { font: 700 24px/1.3 "Quicksand", sans-serif; color: var(--teal); }
.entry .goods-note { font-size: 12px; color: var(--sub); margin-top: 6px; }
.entry figure.benefit-table { margin-top: 24px; }
.entry .benefit-table td { padding: 18px 8px; font-size: 16px; }
.entry .benefit-table td:last-child { text-align: right; white-space: nowrap; font: 700 20px "Quicksand", sans-serif; color: var(--teal); }
.entry .goods-caution { font-size: 12px; color: var(--sub); margin-top: 40px; }

/* ABOUT */
.entry.about-entry { max-width: 1000px; }
.entry .about-block { margin-top: 0; }
.entry .about-block + .about-block { margin-top: 112px; }
.entry .about-block > * + * { margin-top: 0; }
.entry .about-label { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font: 700 13px "Quicksand", sans-serif; letter-spacing: .26em; color: var(--teal); }
.entry .about-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.entry .about-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.entry .about-name { font: 700 clamp(40px, 6.5vw, 76px)/1.1 "Quicksand", sans-serif; letter-spacing: -.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.entry .about-nick { font: 700 15px "Zen Maru Gothic", sans-serif; letter-spacing: .04em; padding: 8px 18px; border-radius: 999px; background: #fff; box-shadow: 0 8px 20px rgba(91,188,238,.15); color: var(--ink); }
.entry .about-lead { margin-top: 32px; font-size: clamp(17px, 1.9vw, 20px); line-height: 2.2; font-weight: 500; }
.entry .about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.entry .about-card { margin: 0; padding: 40px 36px 44px; border-radius: 28px; background: linear-gradient(135deg, rgba(116,198,190,.18), rgba(91,188,238,.14)); }
.entry .about-card:nth-child(2) { background: linear-gradient(135deg, rgba(250,205,106,.24), rgba(116,198,190,.12)); }
.entry .about-card > * + * { margin-top: 0; }
.entry .about-card-num { font: 700 44px/1 "Quicksand", sans-serif; color: var(--teal); opacity: .8; }
.entry .about-card:nth-child(2) .about-card-num { color: #e8b440; }
.entry .about-card-text { margin-top: 18px; font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; line-height: 1.6; }
/* ギャラリー：高さの違う写真をすき間なく（WordPress標準ギャラリーの配置を上書き） */
.entry .about-gallery.wp-block-gallery { display: block !important; columns: 3 220px; column-gap: 14px; margin: 0; }
.entry .about-gallery.wp-block-gallery figure.wp-block-image { width: 100% !important; margin: 0 0 14px !important; display: block !important; break-inside: avoid; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--soda); }
.entry .about-gallery.wp-block-gallery figure.wp-block-image img { width: 100% !important; height: auto !important; object-fit: initial !important; border-radius: 0; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.entry .about-gallery figure.wp-block-image:hover img { transform: scale(1.04); }

/* お問い合わせフォーム */
.cf { position: relative; }
.cf-row { margin-top: 26px; border: 0; min-width: 0; }
.cf-row > label, .cf-row > legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; padding: 0; }
.req { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.cf input[type="text"], .cf input[type="email"], .cf input[type="tel"], .cf textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.cf textarea { resize: vertical; min-height: 180px; line-height: 1.8; }
.cf input:focus, .cf textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91,188,238,.16); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.cf-types { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-chip { position: relative; }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip span { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cf-chip span:hover { border-color: var(--ink); }
.cf-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.cf-chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.cf-row > label.cf-check { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 13px; font-weight: 500; color: var(--sub); line-height: 1.8; cursor: pointer; }
.cf-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--teal); }
.cf-error { color: #d14b4b; font-size: 13px; margin-top: 8px; }
.cf-error-top { margin: 0 0 6px; padding: 14px 18px; border-radius: 14px; background: #fdeeee; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit { margin-top: 36px; padding: 18px 60px; font-size: 15px; border: 0; cursor: pointer; }
.cf-done { padding: 52px 40px; border-radius: 26px; background: var(--soda); text-align: center; }
.cf-done-title { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.cf-done .cf-note { font-size: 12px; color: var(--sub); margin-top: 14px; }

/* 拡大表示 */
.tss-lightbox { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; background: rgba(20,53,63,.94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.tss-lightbox.is-open { opacity: 1; visibility: visible; }
.tss-lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; width: auto; height: auto; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); transform: scale(.96); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.tss-lightbox.is-open img { transform: none; }
.tss-lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font: 700 20px "Quicksand", sans-serif; transition: background .2s; }
.tss-lightbox button:hover { background: rgba(255,255,255,.3); }
.tss-lightbox .lb-close { top: 20px; right: 20px; }
.tss-lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tss-lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.tss-lightbox .lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font: 700 13px "Quicksand", sans-serif; letter-spacing: .14em; }
body.lb-open { overflow: hidden; }

/* =========================================================
   フッター：ソーダの底
   ========================================================= */
footer { position: relative; background: var(--deep); color: #fff; padding: 140px 0 40px; overflow: hidden; }
footer::before { content: ""; position: absolute; left: -5%; right: -5%; top: -60px; height: 120px; border-radius: 50%; background: var(--wave, var(--soda)); }
body:not(.home) footer::before { --wave: #fff; }
.deep-bubbles { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }
footer .wrap { position: relative; }
.follow { font: 700 clamp(52px, 10vw, 150px)/1 "Quicksand", sans-serif; letter-spacing: -.03em; }
.foot-sns { margin-top: 36px; gap: 12px; flex-wrap: wrap; }
.foot-sns a { padding: 14px 26px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.3); font: 700 14px "Quicksand", sans-serif; letter-spacing: .08em; }
.foot-sns a:hover { background: #fff; color: var(--deep); }
.foot-bottom { margin-top: 100px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.foot-bottom img { width: 180px; }
.foot-bottom .more { margin: 0; }
.foot-bottom small { width: 100%; font: 500 12px "Quicksand", sans-serif; opacity: .5; }

/* =========================================================
   その他
   ========================================================= */
body.admin-bar header { top: 32px; }
@media (max-width: 782px) { body.admin-bar header { top: 46px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* ページ切り替えをふわっと（対応ブラウザのみ） */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: tss-vt-out .22s ease both; }
::view-transition-new(root) { animation: tss-vt-in .38s ease both; }
@keyframes tss-vt-out { to { opacity: 0; } }
@keyframes tss-vt-in { from { opacity: 0; } }

/* =========================================================
   スマホ
   ========================================================= */
@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .head-logo img { height: 24px; }
  .head-logo { margin-right: 14px; }
  .bar-sns { gap: 13px; padding-left: 14px; }
  .bar-sns svg { width: 17px; height: 17px; }
  .menu-btn { display: block; }
  /* 全画面メニュー：ふわっと開閉し、項目が順番に現れる */
  body.menu-open { overflow: hidden; }
  header nav { position: fixed; inset: 0; z-index: 11; background: #fff; flex-direction: column; justify-content: center; gap: 44px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
  body.menu-open header nav { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
  header nav > ul:not(.sns-icons) { flex-direction: column; align-items: center; gap: 26px; }
  header nav a { font-size: 26px; }
  header nav li, .head-sns { opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
  body.menu-open header nav li, body.menu-open .head-sns { opacity: 1; transform: none; }
  body.menu-open header nav > ul > li:nth-child(1) { transition-delay: .06s; }
  body.menu-open header nav > ul > li:nth-child(2) { transition-delay: .1s; }
  body.menu-open header nav > ul > li:nth-child(3) { transition-delay: .14s; }
  body.menu-open header nav > ul > li:nth-child(4) { transition-delay: .18s; }
  body.menu-open header nav > ul > li:nth-child(5) { transition-delay: .22s; }
  body.menu-open header nav > ul > li:nth-child(6) { transition-delay: .26s; }
  body.menu-open .head-sns { transition-delay: .3s; }
  .head-sns { display: flex !important; gap: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
  .head-sns li { opacity: 1 !important; transform: none !important; }
  .head-sns svg { width: 26px; height: 26px; }
  header nav a.is-going { color: var(--teal); }

  .concept { padding: 104px 0 96px; }
  .live, .class { padding: 96px 0; }
  .concept + .class { padding-top: 24px; }
  .ticket, .tickets .ticket { grid-template-columns: 1fr; }
  .t-main, .tickets .t-main { padding: 32px 26px 24px; }
  .t-stub { border-left: 0; border-top: 2px dashed var(--line); flex-direction: row; padding: 22px 26px 26px; justify-content: space-between; }
  .t-stub::before, .t-stub::after { top: -15px; bottom: auto; }
  .t-stub::before { left: -14px; }
  .t-stub::after { left: auto; right: -14px; }
  .t-stub .adm { writing-mode: horizontal-tb; }
  .ticket:hover .t-stub { transform: none; }
  .past-list a { grid-template-columns: 1fr; gap: 2px; }
  .live-spec div { grid-template-columns: 90px 1fr; }
  .desks { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; margin-top: 36px; }
  .card { padding: 10px 10px 14px; border-radius: 18px; }
  .card .no { top: 20px; left: 20px; font-size: 10px; padding: 2px 9px; }
  .card strong { font-size: 18px; }
  .card .ja { display: none; }
  .card .fav { font-size: 11px; flex-direction: column; gap: 0; }
  .card-sns { gap: 6px; margin-top: 10px; }
  .card-sns a { width: 30px; height: 30px; }
  .card-sns svg { width: 14px; height: 14px; }
  .member-single { grid-template-columns: 1fr; gap: 40px; }
  .ms-photo { max-width: 340px; }
  .news-grid { grid-template-columns: 1fr; gap: 28px; }
  .news-list a { flex-direction: column; gap: 2px; }
  .page-head { padding: 128px 0 56px; }
  .page-body { padding: 64px 0 110px; }
  .entry .goods-grid, .entry .about-cards { grid-template-columns: 1fr; gap: 28px; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-submit { width: 100%; }
  .cf-done { padding: 40px 24px; }
  .entry .about-block + .about-block { margin-top: 80px; }
  .entry .about-card { padding: 28px 24px 32px; border-radius: 22px; }
  .entry .about-gallery.wp-block-gallery { columns: 2; column-gap: 8px; }
  .entry .about-gallery.wp-block-gallery figure.wp-block-image { margin-bottom: 8px !important; border-radius: 12px; }
  .tss-lightbox button { width: 44px; height: 44px; }
  .tss-lightbox .lb-prev { left: 8px; }
  .tss-lightbox .lb-next { right: 8px; }
  footer { padding: 110px 0 32px; }
  .foot-bottom { margin-top: 70px; }
  .foot-bottom img { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .fizz-text .ch, .glass-fill i, .scroll-hint span { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
