/* 東洋大学写真研究会 ポータル
   基調: 薄茶/クリーム + 方眼グリッド / 差し色: 紺 #26355e / フォント: Zen Kaku Gothic New, 数字のみ EB Garamond */
:root {
  --bg: #f3ecdd;
  --bg-grid: rgba(38, 53, 94, 0.07);
  --surface: #fffdf8;
  --ink: #2b2620;
  --muted: #8a7d68;
  --navy: #26355e;
  --navy-dark: #1a2543;
  --amber: #b07d2b;
  --sage: #7d8b6a;
  --red: #c0392b;
  --line: rgba(38, 53, 94, 0.16);
  --shadow: 0 12px 32px rgba(101, 80, 46, 0.13), 0 2px 8px rgba(101, 80, 46, 0.07);
  --bar-h: 52px;
  --tab-h: 60px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: var(--ink);
  background:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; }
a { color: var(--navy); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: 'EB Garamond', serif; }

/* ---------- スプラッシュ ---------- */
#splash {
  position: fixed; inset: 0; z-index: 200; background: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center;
  transition: opacity .3s ease;
}
#splash[hidden] { display: none; }
#splash.leaving { opacity: 0; pointer-events: none; }
.splash-logo-wrap { position: relative; width: 176px; margin: 0 auto; animation: splash-logo-in .45s ease-out both; }
.splash-logo { width: 100%; display: block; }
.splash-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: splash-flash 1.5s ease-out both; pointer-events: none; }
@keyframes splash-flash { 0%, 40% { opacity: 0; } 47% { opacity: .55; } 58%, 100% { opacity: 0; } }
@keyframes splash-logo-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.splash-name { font-weight: 700; font-size: 1.125rem; letter-spacing: .2em; color: var(--navy); margin-top: 28px; white-space: nowrap; }
.splash-tap { margin-top: 40px; font-size: .75rem; color: #a3a3a3; animation: splash-pulse 1.6s ease-in-out infinite; }
@keyframes splash-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .splash-logo-wrap, .splash-flash, .splash-tap { animation: none; }
}

/* ---------- ブランドバー ---------- */
#brandbar {
  position: sticky; top: 0; z-index: 90; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo { height: 36px; width: auto; }
.brand-name { font-weight: 900; font-size: 0.98rem; letter-spacing: 0.04em; white-space: nowrap; }
.bell-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 9px; font-size: 0.66rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- 共通 ---------- */
#view { max-width: 680px; margin: 0 auto; }
.section { padding: 26px 18px 6px; }
h2.sec-title {
  font-weight: 900; font-size: 1.28rem; letter-spacing: 0.03em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
h2.sec-title .picto { width: 24px; height: 24px; color: var(--navy); flex: none; }
h2.sec-title .picto svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid var(--navy); color: var(--navy); background: transparent; text-decoration: none;
}
.btn.primary { background: var(--navy); color: #fff; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 0.85rem; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: 0.5; }
.text-btn { color: var(--navy); font-weight: 700; font-size: 0.85rem; padding: 6px 8px; }
.muted { color: var(--muted); font-size: 0.85rem; }
.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  background: rgba(38,53,94,0.1); color: var(--navy);
}
.chip.urgent { background: var(--red); color: #fff; }
.chip.soon { background: var(--amber); color: #fff; }
.chip.important { background: var(--navy); color: #fff; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field input[type="password"],
.field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 84px; resize: vertical; }
.note { font-size: 0.8rem; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.radio-pill input { flex: none; margin: 0; }
.radio-pill:has(input:checked) { border-color: var(--navy); background: rgba(38,53,94,0.07); }
.consent-list { display: flex; flex-direction: column; gap: 10px; }
.consent-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; text-align: left;
}
.consent-row input { flex: none; margin: 0; }
.consent-row:has(input:checked) { border-color: var(--navy); background: rgba(38,53,94,0.07); }
.menu-card { padding: 6px 18px; }
.menu-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 15px 0; text-align: left; background: none; border: none; cursor: pointer;
}
.menu-row + .menu-row { border-top: 1px solid var(--line); }
.menu-texts { display: block; min-width: 0; }
.menu-title { display: block; font-weight: 700; font-size: 1rem; color: var(--ink); }
.menu-desc { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--muted); }
.menu-arrow { color: var(--muted); font-size: 1.1rem; flex: none; }

/* ラジオ/チェックの○と文字の縦位置をそろえる（自前描画にしてズレをなくす） */
.consent-row input[type="radio"], .opt-row input[type="radio"], .radio-pill input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border: 2px solid #b7ad9c; border-radius: 50%;
  background: #fff; display: inline-grid; place-content: center; cursor: pointer;
}
.consent-row input[type="radio"]:checked, .opt-row input[type="radio"]:checked, .radio-pill input[type="radio"]:checked { border-color: var(--navy); }
.consent-row input[type="radio"]:checked::before, .opt-row input[type="radio"]:checked::before, .radio-pill input[type="radio"]:checked::before {
  content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--navy);
}
.opt-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px; border: 2px solid #b7ad9c; border-radius: 5px;
  background: #fff; display: inline-grid; place-content: center; cursor: pointer;
}
.opt-row input[type="checkbox"]:checked { background: var(--navy); border-color: var(--navy); }
.opt-row input[type="checkbox"]:checked::before { content: '✓'; color: #fff; font-size: 14px; font-weight: 900; line-height: 1; }
.consent-row span, .opt-row span { line-height: 1.4; }

/* スクロールリビール */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.strong { transform: translateY(40px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; }
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: clamp(420px, 72vh, 560px); overflow: hidden; background: var(--navy-dark); }
.hero-slide { position: absolute; inset: -5% 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; will-change: transform; }
.hero-slide.active { opacity: 1; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,20,34,0.72) 0%, rgba(16,20,34,0.12) 45%, transparent 70%); }
.hero-grain { position: absolute; inset: 0; z-index: 2; opacity: 0.5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 22px 20px 20px; color: #fff; }
.hero-headline { font-weight: 900; font-size: clamp(1.7rem, 7.4vw, 2.5rem); line-height: 1.35; letter-spacing: 0.01em; white-space: pre-line; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero-sub { margin-top: 10px; font-size: 0.88rem; line-height: 1.7; opacity: 0.92; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.hero-progress { flex: 1; height: 2px; background: rgba(255,255,255,0.35); overflow: hidden; border-radius: 2px; }
.hero-progress i { display: block; height: 100%; background: #fff; width: 0; }
.hero-label { font-size: 0.75rem; letter-spacing: 0.14em; }
.hero-react { position: absolute; z-index: 4; right: 14px; bottom: 118px; display: flex; align-items: center; gap: 6px;
  background: rgba(20,24,40,0.42); color: #fff; border-radius: 999px; padding: 6px 12px; backdrop-filter: blur(4px); font-size: 0.85rem; }
.hero-react .heart { font-size: 1rem; line-height: 1; }
.hero-react.liked { background: rgba(192,57,43,0.75); }

/* ---------- 次の活動カルーセル ---------- */
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 18px 20px; margin: 0 -18px; scrollbar-width: none; align-items: stretch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { flex: 0 0 19rem; max-width: 85vw; scroll-snap-align: center; margin-bottom: 0; padding: 24px; display: flex; flex-direction: column; }
.spot-label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.spot-label.warm { color: #a8642f; }
.spot-main { display: flex; gap: 20px; align-items: flex-start; margin-top: 12px; }
.spot-date { flex: none; }
.spot-month { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.spot-num { font-family: 'EB Garamond', serif; font-size: 76px; line-height: 0.95; color: var(--navy); font-weight: 700; }
.spot-dow { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.spot-body { flex: 1; min-width: 0; padding-top: 12px; }
.spot-title { font-size: 1.25rem; font-weight: 900; line-height: 1.35; }
.spot-foot { margin-top: auto; padding-top: 24px; }
.btn.block { width: 100%; padding: 14px; font-size: 1rem; border-radius: 6px; }
.btn.warm { background: #a8642f; color: #fff; }
.answered-chip { background: rgba(168, 100, 47, 0.14); color: #a8642f; padding: 2px 8px; font-size: 11px; font-weight: 700; border-radius: 4px; }
.big-date { display: flex; align-items: baseline; gap: 10px; }
.big-date .num { font-family: 'EB Garamond', serif; font-size: 4.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.big-date .dow { font-weight: 700; color: var(--muted); }
.event-card-head { border-left: 5px solid var(--navy); padding-left: 10px; }
.survey-card-head { border-left: 5px solid var(--amber); padding-left: 10px; }
.invite-card-head { border-left: 5px solid var(--sage); padding-left: 10px; }

/* ---------- 写真ストリーム ---------- */
.stream-wrap { overflow: hidden; margin: 0 -18px; }
.stream { display: flex; gap: 10px; width: max-content; animation: streammove 46s linear infinite; padding: 2px 0; }
.stream.paused { animation-play-state: paused; }
@keyframes streammove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.stream button { flex: none; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: #fff; padding: 6px 6px 7px; text-align: left; }
.stream img { width: 148px; height: 110px; object-fit: cover; display: block; }
.stream-name { display: block; width: 148px; padding-top: 5px; font-size: 0.78rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) {
  .stream { animation: none; overflow-x: auto; width: auto; }
  .stream-wrap { overflow-x: auto; }
}

/* ---------- お知らせ / 予定リスト ---------- */
.list-item { padding: 15px 2px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item h3 { font-size: 1.02rem; font-weight: 900; margin: 4px 0 5px; }
.list-item .body { font-size: 0.9rem; line-height: 1.75; white-space: pre-wrap; }
.date-line { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.05em; }

/* ---------- アルバム ---------- */
.month-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.month-chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 0.85rem; background: var(--surface); }
.month-chip.active { background: var(--navy); color: #fff; }
.cheki-row { display: flex; gap: 18px; overflow-x: auto; padding: 30px 20px 20px; margin: 0 -18px; scrollbar-width: none; }
.cheki-row::-webkit-scrollbar { display: none; }
.cheki-scene { position: relative; flex: none; width: 172px; }
.cheki-string { position: absolute; top: -24px; left: -14px; right: -14px; height: 34px; border-top: 2px solid rgba(90,74,52,0.55); border-radius: 50%; }
.cheki-clip { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); width: 12px; height: 20px; background: #c9b894; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.25); z-index: 2; }
.cheki { background: #fff; padding: 9px 9px 0; box-shadow: 0 12px 24px rgba(60,48,30,0.2); position: relative; transform-origin: top center; animation: sway 5.5s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(var(--tilt, -2deg)); } to { transform: rotate(calc(var(--tilt, -2deg) * -0.6)); } }
.cheki img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #ddd; }
.cheki .develop { filter: grayscale(0.9) blur(7px) brightness(1.35); transition: filter 2.8s ease; }
.cheki.developed .develop { filter: none; }
.cheki .future { filter: grayscale(1) brightness(0.92); }
.cheki figcaption { padding: 9px 2px 11px; text-align: center; }
.cheki .c-date { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; }
.cheki .c-title { font-weight: 700; font-size: 0.9rem; margin-top: 2px; }
.stamp {
  position: absolute; right: 8px; bottom: 52px; width: 46px; height: 46px; border: 3px solid var(--navy); border-radius: 50%;
  color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: 1.25rem;
  transform: rotate(-14deg) scale(2.2); opacity: 0; background: rgba(255,253,248,0.35);
}
.cheki.stamped .stamp { animation: stampin 0.45s ease forwards; }
@keyframes stampin { to { transform: rotate(-14deg) scale(1); opacity: 0.92; } }
.season-motif { text-align: center; color: rgba(38,53,94,0.35); padding: 2px 0 0; }
.season-motif svg { width: 54px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* ---------- みんなの写真 ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g-item { background: #fff; padding: 6px 6px 8px; box-shadow: 0 8px 20px rgba(60,48,30,0.14); }
.g-item:first-child { grid-column: 1 / -1; }
.g-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.g-item:first-child img { aspect-ratio: 16/10; }
.g-cap { padding: 7px 3px 0; }
.g-name { font-weight: 700; font-size: 0.85rem; }
.g-comment { font-size: 0.8rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; }
.heart-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.85rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.heart-pill.on { border-color: var(--red); color: var(--red); }

/* リアクション */
.reactions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.react-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 0.95rem; font-weight: 700; }
.react-btn.on { border-color: var(--navy); background: rgba(38,53,94,0.08); }

/* ---------- ビューア ---------- */
#viewer { position: fixed; inset: 0; z-index: 150; background: var(--navy-dark); color: #fff; display: flex; align-items: center; justify-content: center; }
#viewer[hidden] { display: none; }
.viewer-fig { width: min(94vw, 640px); max-height: 92vh; overflow-y: auto; }
.viewer-fig img { width: 100%; max-height: 62vh; object-fit: contain; background: #10142a; }
.viewer-fig figcaption { padding: 14px 4px; }
.viewer-meta { color: rgba(255,255,255,0.7); font-size: 0.82rem; margin-top: 3px; }
.viewer-close { position: absolute; top: 12px; right: 14px; font-size: 2rem; color: #fff; width: 46px; height: 46px; z-index: 2; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.4rem; color: #fff; width: 48px; height: 64px; z-index: 2; }
.viewer-nav.prev { left: 2px; } .viewer-nav.next { right: 2px; }
#viewer .react-btn { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35); color: #fff; }
#viewer .react-btn.on { background: rgba(255,255,255,0.28); border-color: #fff; }
#viewer-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
#viewer-actions .btn { border-color: rgba(255,255,255,0.6); color: #fff; }
#viewer-actions .btn.primary { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- 通知 / シート ---------- */
.sheet { position: fixed; inset: 0; z-index: 140; background: rgba(26,30,46,0.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-card { background: var(--surface); width: min(100%, 680px); max-height: 78vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px; }
.sheet-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.sheet-head h2 { font-weight: 900; flex: 1; }
.notif-item { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 0.92rem; cursor: pointer; }
.notif-item.unread { font-weight: 700; }
.notif-item.unread::before { content: '●'; color: var(--red); font-size: 0.6rem; margin-right: 7px; vertical-align: 2px; }

/* ---------- サンクス ---------- */
#thanks { position: fixed; inset: 0; z-index: 160; background: rgba(26,30,46,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
#thanks[hidden] { display: none; }
.thanks-card { background: var(--surface); border-radius: 20px; padding: 30px 24px; width: min(100%, 420px); text-align: center; box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; }
.thanks-picto { display: inline-block; width: 58px; height: 58px; color: var(--navy); }
.thanks-picto svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.thanks-big { font-family: 'EB Garamond', serif; font-weight: 700; font-size: 3rem; line-height: 1.05; color: var(--navy); margin: 10px 0 8px; letter-spacing: 0.04em; }
.thanks-msg { font-weight: 700; line-height: 1.8; }
.thanks-trivia { margin: 18px 0 20px; padding: 14px; background: rgba(38,53,94,0.05); border-radius: 12px; text-align: left; }
.thanks-trivia-head { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; color: var(--navy); margin-bottom: 6px; }
.thanks-trivia-head span:first-child { width: 19px; height: 19px; display: inline-block; }
.thanks-trivia-head svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#thanks-trivia-text { font-size: 0.9rem; line-height: 1.8; }
.thanks-author { font-size: 0.78rem; color: var(--muted); margin-top: 5px; text-align: right; }

/* ---------- 幹部 ---------- */
.admin-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: none; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 0.85rem; position: relative; }
.admin-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-tab .bdot { position: absolute; top: 5px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.overview-cell { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; text-align: center; }
.overview-cell .num { font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.overview-cell.alert .num { color: var(--red); }
.overview-cell p { font-size: 0.8rem; font-weight: 700; margin-top: 6px; }
.status-chip { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.status-draft { background: #ddd5c2; color: #6b5f45; }
.status-published { background: rgba(125,139,106,0.25); color: #4c5a3c; }
.status-closed { background: rgba(38,53,94,0.14); color: var(--navy); }
.sns-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.sns-ok { background: rgba(125,139,106,0.3); color: #41512f; }
.sns-ng { background: rgba(192,57,43,0.14); color: var(--red); }
.sns-un { background: #e7dfc9; color: #6b5f45; }
.thumb-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.thumb-row img { width: 86px; height: 86px; object-fit: cover; border-radius: 8px; flex: none; }
.thumb-row .grow { flex: 1; min-width: 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.save-bar { position: sticky; bottom: calc(var(--tab-h) + 10px); background: var(--surface); padding: 10px; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: 8px; z-index: 5; }
.bar-wrap { height: 10px; background: rgba(38,53,94,0.1); border-radius: 5px; overflow: hidden; margin: 4px 0 10px; }
.bar-fill { height: 100%; background: var(--navy); border-radius: 5px; }

/* ---------- 下部ナビ ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
  display: flex; max-width: 680px; margin: 0 auto;
}
.tab { flex: 1; position: relative; font-size: 0.74rem; font-weight: 700; color: var(--muted); white-space: nowrap; padding: 0 2px; }
.tab.active { color: var(--navy); }
.tab.active::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; background: var(--navy); border-radius: 0 0 3px 3px; }
.tab .dot { position: absolute; top: 9px; right: calc(50% - 21px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 18px); z-index: 180;
  background: var(--navy-dark); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 700; box-shadow: var(--shadow); }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; font-size: 0.9rem; line-height: 1.8; }
.qa-cat { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.1em; color: var(--navy); margin: 18px 0 6px; }
.footer-note { text-align: center; color: var(--muted); font-size: 0.75rem; padding: 30px 18px 8px; line-height: 1.9; }

/* ---------- アンケート（元版デザインに合わせたカード・ボタン） ---------- */
.btn-warm {
  display: inline-flex; align-items: center; justify-content: center;
  background: #a8642f; color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 12px 24px; border: none; border-radius: 4px; min-height: 46px; cursor: pointer;
}
.btn-warm:disabled { opacity: 0.5; }
.survey-meta { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-row {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  border: 1.5px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 1rem; background: var(--bg); cursor: pointer;
}
.opt-row input { flex-shrink: 0; margin: 0; }
.opt-row:has(input:checked) { border-color: var(--navy); background: rgba(38,53,94,0.07); }
.rating-row { display: flex; gap: 8px; }
.rating-btn { flex: 1; cursor: pointer; }
.rating-btn input { display: none; }
.rating-btn span {
  display: block; text-align: center; padding: 12px 0;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 1.1rem; font-weight: 700; background: var(--bg);
}
.rating-btn:has(input:checked) span { background: var(--navy); border-color: var(--navy); color: #fff; }
.rating-caps { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.q-num { color: var(--muted); margin-right: 8px; }
.q-type { font-size: 0.75rem; color: var(--muted); margin: 4px 0 12px; }
.req-badge { color: var(--red); font-size: 0.72rem; font-weight: 700; margin-left: 8px; }

/* ---------- 活動予定リスト（元版デザインのカード行） ---------- */
.event-row { display: flex; align-items: center; gap: 18px; cursor: pointer; position: relative; }
.event-row .er-date { width: 62px; flex-shrink: 0; }
.event-row .er-month { display: block; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.event-row .er-num { font-family: 'EB Garamond', serif; font-size: 3rem; line-height: 1; color: var(--navy); }
.event-row .er-main { flex: 1; min-width: 0; }
.event-row .er-chev { flex-shrink: 0; font-size: 1.3rem; color: var(--muted); }
.event-row.past .er-main, .event-row.past .er-date { opacity: 0.5; }
.er-stamp {
  position: absolute; right: 44px; top: 50%; margin-top: -23px;
  width: 46px; height: 46px; border: 3px solid var(--navy); border-radius: 50%;
  color: var(--navy); display: grid; place-items: center; font-weight: 900; font-size: 1.25rem;
  transform: rotate(-14deg); opacity: 0.92; background: rgba(255,253,248,0.35); pointer-events: none;
}
.insta-block { text-align: center; }
.insta-block .ig-icon { width: 42px; height: 42px; margin: 0 auto 8px; color: var(--navy); }
.insta-block .ig-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
