:root {
    --bg: #f3f6f6;
    --surface: #ffffff;
    --surface-soft: #f7fafa;
    --ink: #121516;
    --text: #1f2526;
    --muted: #687879;
    --line: #d8e2e1;
    --primary: #0f7f82;
    --primary-dark: #0d5f62;
    --primary-soft: #d9f4f1;
    --accent: #4abeb8;
    --accent-strong: #20a7a0;
    --danger: #b95b5b;
    --danger-bg: #fff0f0;
    --warning-bg: #fff7e7;
    --warning-border: #f1c981;
    --shadow: 0 10px 30px rgba(20, 30, 30, 0.08);
    --radius: 16px;
    /* 見出し用の琥珀色。写真の街灯の色。青緑（操作の色）と役割を分ける */
    --amber: #e3b25c;
    --amber-dark: #a9781f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* ページ内のリンクは、切り替わるのではなく滑って移動する（2026-09-16 佐藤の指示）。
   動きを減らす設定にしている人には効かせない */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
/* 上に固定のヘッダーがあるので、着地点をその分だけ下げる */
:target, [id] { scroll-margin-top: 64px; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(243, 246, 246, 0.90);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* お試し中の印。ロゴの中に入れているので全ページに出る（2026-09-16 佐藤の指示） */
.test-badge { font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 7px; border-radius: 999px; border: 1px solid currentColor; opacity: 0.6; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo svg { height: 22px; width: auto; display: block; }
.logo .logo-short { display: none; }
.logo-m { fill: var(--primary); }
.home .site-header .logo-m { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; }
.nav-button { padding: 5px 10px; border-radius: 8px; background: var(--primary); color: #fff; }

/* Hero (トップ) */
.home .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom: 0; color: #fff; }
.home .site-header .nav a:not(.nav-button) { color: rgba(255, 255, 255, 0.86); }
.hero {
    position: relative;
    min-height: clamp(480px, 70vh, 660px);
    display: flex;
    align-items: center;
    padding: 104px 20px 80px;
    color: #fff;
    /* 横長の画面では上下が削られる。顔（写真の上から約3割）が残るよう、縦位置は 28% に合わせる */
    background: var(--ink) url(../img/hero.webp?v=2026090502) right 28% / cover no-repeat;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(10, 12, 13, 0.82) 0%, rgba(10, 12, 13, 0.55) 42%, rgba(10, 12, 13, 0.12) 72%, rgba(10, 12, 13, 0) 100%);
}
.hero::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1;
    background: linear-gradient(180deg, rgba(18, 21, 22, 0) 0%, var(--ink) 100%);
}
.hero-inner { position: relative; width: 100%; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.hero .lead { color: rgba(255, 255, 255, 0.78); }
.hero .button.secondary { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.hero .button.secondary:hover { background: rgba(255, 255, 255, 0.14); }
.hero .button.primary { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
/* 写真の炭色を受けて、徐々に明るいページへ */
/* トップは写真から下を、だんだん黒くして最後は真っ黒にする（2026-09-08 佐藤の指示） */
.home { background: #000; }
/* 写真の下から、カードの行に着くまでに真っ黒になりきる */
.home .concept { background: linear-gradient(180deg, var(--ink) 0%, #000 200px); padding: 56px 0 72px; }
.home .concept h2 { color: #fff; }
.home .public-entries { background: #000; padding: 8px 0 20px; }
.home .public-entries h2 { color: #fff; }
.home .public-entries .section-title-row p { color: rgba(255, 255, 255, 0.5); }
.home .public-entries .empty-box { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); }
.home .site-footer { background: #000; border-top-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45); }
.home .wall-item { background: #14181a; }
.concept-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: -12px 0 26px; color: rgba(255, 255, 255, 0.66); font-size: 13px; }
.concept-stats strong { color: var(--accent); font-size: 18px; font-weight: 900; margin-right: 3px; letter-spacing: -0.02em; }
.concept-icon { margin: 0; }
/* アイコンの右に小見出しを並べる。文章はその下に幅いっぱい（2026-09-16 佐藤の指示） */
.concept-card { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.concept-card > .concept-icon { grid-column: 1; grid-row: 1; }
.concept-card > h3 { grid-column: 2; grid-row: 1; }
.concept-card > p { grid-column: 1 / -1; grid-row: 2; }
.ci { width: 60px; height: 44px; display: block; fill: none; stroke: var(--line); stroke-width: 2.5; stroke-linecap: round; }
.ci line, .ci rect { stroke: var(--line); }
.ci .dot, .ci .fill-on { fill: var(--primary); stroke: none; }
.ci .knob { fill: #fff; stroke: none; }
.ci .knob-off { fill: var(--muted); stroke: none; }
.ci .faint { stroke: var(--line); opacity: .5; }
.concept-card { transition: border-color .15s, transform .15s; }
.concept-card:hover { border-color: var(--accent); transform: translateY(-2px); }
/* 黒地の上のカード */
.home .concept-card { background: rgba(255, 255, 255, 0.055); border-color: rgba(255, 255, 255, 0.13); box-shadow: none; backdrop-filter: blur(6px); }
.home .concept-card h3 { color: var(--amber); }
.home .concept-card p { color: rgba(255, 255, 255, 0.68); }
.home .ci line, .home .ci rect { stroke: rgba(255, 255, 255, 0.3); }
.home .ci .dot, .home .ci .fill-on { fill: var(--accent); }
.home .ci .knob-off { fill: rgba(255, 255, 255, 0.45); }
.home .concept-card:hover .ci line, .home .concept-card:hover .ci rect { stroke: var(--accent); }
.hero-inner, .section-inner, .timeline-hero, .timeline-wrap { max-width: 1080px; margin: 0 auto; }
.eyebrow { color: var(--accent-strong); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 900; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.12; letter-spacing: -0.04em; margin: 0 0 24px; }
.lead, .auth-lead { max-width: 760px; font-size: 17px; color: var(--muted); margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    border: 0;
    cursor: pointer;
}
.button.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(15, 127, 130, 0.22); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.button.danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #efc1c1; }

.section-inner { padding: 0 20px; }
.concept, .public-entries { padding: 40px 0 72px; }
.concept h2, .public-entries h2, .hot h2 { font-size: 27px; line-height: 1.3; margin: 0 0 24px; }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.concept-card, .entry-card, .empty-box, .auth-card, .stat-card, .detail-card, .private-note-box, .timeline-card, .timeline-cta-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.entry-card h3 { margin: 0 0 10px; font-size: 17px; }
.concept-card h3 { margin: 0; font-size: 17px; }
.concept-card { padding: 26px 24px 28px; }
.short-comment { margin: 0; color: var(--muted); font-size: 14px; }
.concept-card p { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-title-row h2 { margin: 0; }
.section-title-row p { margin: 0; color: var(--muted); font-size: 13px; }
.entry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.entry-meta span { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; font-weight: 800; }
.short-comment.muted { color: #9aa; }
.posted-by { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.empty-box { text-align: center; color: var(--muted); }
.empty-box.warning { background: var(--warning-bg); border-color: var(--warning-border); color: #7b4d00; }
.empty-box p { margin: 4px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 20px; text-align: center; color: var(--muted); font-size: 12px; }

.auth-page, .dashboard-page, .detail-page, .timeline-page { min-height: calc(100vh - 72px); padding: 64px 20px 88px; }
.auth-card { max-width: 560px; margin: 0 auto; padding: 34px; }
.entry-form-card { max-width: 820px; }
.page-title { margin: 0 0 4px; font-size: clamp(22px, 3vw, 29px); line-height: 1.3; letter-spacing: -0.02em; }
.auth-title { margin: 0 0 14px; font-size: clamp(29px, 5vw, 48px); line-height: 1.18; letter-spacing: -0.04em; }
.form { display: grid; gap: 12px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-label { font-weight: 800; font-size: 13px; margin-top: 8px; }
.form-input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 16px; background: #fff; color: var(--text); }
.textarea { padding-top: 12px; resize: vertical; }
.form-input:focus { outline: 3px solid rgba(74, 190, 184, 0.22); border-color: var(--accent); }
/* プルダウンはブラウザが独自に描くので、文字の入力欄と高さがずれて見える（Safari で顕著）。
   描画を止めて、矢印だけこちらで置く（2026-09-17 佐藤の指摘） */
select.form-input {
    -webkit-appearance: none; appearance: none; box-sizing: border-box;
    line-height: 42px; padding-right: 34px; text-overflow: ellipsis;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237b8487' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center; background-size: 11px 8px;
}
select.form-input::-ms-expand { display: none; }
/* iPhone の Safari は日付・時刻の入力を独自に描く。そのままだと中身が中央寄せで箱からはみ出すので、左に寄せて幅を箱に合わせる（2026-09-15） */
input.form-input[type="date"], input.form-input[type="month"], input.form-input[type="time"] {
    -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%;
    display: block; text-align: left; box-sizing: border-box;
}
input.form-input[type="date"]::-webkit-date-and-time-value,
input.form-input[type="month"]::-webkit-date-and-time-value,
input.form-input[type="time"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-width: 0; }
input.form-input[type="date"]::-webkit-datetime-edit,
input.form-input[type="month"]::-webkit-datetime-edit,
input.form-input[type="time"]::-webkit-datetime-edit { padding: 0; }
.form-help { margin: -4px 0 0; color: var(--muted); font-size: 12px; }
.form-submit { margin-top: 14px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.split-actions { justify-content: space-between; align-items: center; }
.auth-switch { margin: 24px 0 0; color: var(--muted); text-align: center; }
.auth-switch a, .section-title-row a, .mini-actions a { color: var(--primary-dark); font-weight: 800; }
.alert { border-radius: 14px; padding: 14px 16px; margin: 0 0 22px; }
.alert ul { margin: 0; padding-left: 20px; }
.alert.error { background: #fff0f0; border: 1px solid #f2b8b8; color: #8a1f1f; }

.dashboard-hero { max-width: 1080px; margin: 0 auto 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.stats-grid { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stat-card { padding: 22px; }
.stat-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.stat-card strong { font-size: 27px; line-height: 1; }
.dashboard-section { margin-top: 28px; }
.disabled { opacity: 0.55; pointer-events: none; }

.detail-page { max-width: 980px; margin: 0 auto; }
.detail-card { padding: 34px; }
.detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; margin-top: 24px; }
.detail-grid h2, .private-note-box h2 { font-size: 18px; margin: 0 0 12px; }
.detail-list { margin: 0; }
.detail-list dt { color: var(--muted); font-size: 12px; font-weight: 800; margin-top: 12px; }
.detail-list dd { margin: 2px 0 0; font-weight: 700; }
.detail-text { color: var(--muted); margin: 0 0 14px; }
.private-note-box { margin-top: 20px; background: var(--surface-soft); }
.private-note-box p { color: var(--muted); margin: 0; }
.mini-actions { margin-top: 14px; display: flex; gap: 14px; font-size: 13px; }

/* 項目ごとの公開スイッチ */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: #c9d4d3; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid rgba(74,190,184,.35); }
.master-switch { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; margin: 18px 0 10px; border-radius: 12px; background: var(--primary-soft); border: 1px solid #bfe3df; }
.master-switch strong { display: block; font-size: 14px; }
.master-switch .form-help { margin: 2px 0 0; }
.fields.is-private .master-switch { background: var(--surface-soft); border-color: var(--line); }
.fld { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.fld .switch, .fld-lock { margin-top: 4px; }
.fld-lock { display: inline-flex; width: 44px; justify-content: center; font-size: 17px; }
.fld-body { display: grid; gap: 8px; }
.fld-label { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 13px; }
.fld-state { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.fld-state.on { background: var(--primary-soft); color: var(--primary-dark); }
.fld-state.off { background: #eceff0; color: var(--muted); }
.fields.is-private .fld:not(.fld-private) .switch { opacity: .35; pointer-events: none; }
.fld .form-help { margin: 0; }
.fld .date-fields .form-label { display: none; }
.spoiler-row { display: flex; align-items: center; gap: 10px; }
.spoiler-row .form-input { width: auto; min-height: 36px; }
.vis-badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-right: 8px; vertical-align: middle; }
.vis-badge.on { background: var(--primary-soft); color: var(--primary-dark); }
.vis-badge.off { background: #eceff0; color: var(--muted); }
.detail-visibility { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.detail-visibility a { color: var(--primary-dark); font-weight: 800; margin-left: 8px; }
.detail-list-wide { margin: 0 0 20px; }
.detail-row { display: grid; grid-template-columns: 160px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.detail-row dt { margin: 0; font-size: 12px; color: var(--muted); font-weight: 800; }
.detail-row dd { margin: 0; font-weight: 700; }
.detail-block { margin: 0 0 20px; }
.detail-block h2 { font-size: 15px; margin: 0 0 8px; }
.detail-block h2 small { font-weight: 400; color: var(--muted); font-size: 11px; margin-left: 8px; }
.detail-text.strong { font-weight: 800; }
.muted { color: var(--muted); font-weight: 400; }
.memory-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line); }
.memory-facts div { display: grid; grid-template-columns: 56px 1fr; gap: 8px; }
.memory-facts dt { color: var(--muted); font-size: 12px; font-weight: 800; }
.memory-facts dd { margin: 0; font-weight: 700; font-size: 13px; }
.memory-situation h2 { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.memory-situation p { margin: 0 0 22px; line-height: 1.9; }

/* 質問のグループ（畳める） */
.qgroup { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 14px 0 0; }
.qgroup summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.qgroup summary::-webkit-details-marker { display: none; }
.qgroup summary::before { content: "▸"; color: var(--primary); font-size: 13px; margin-right: 2px; }
.qgroup[open] summary::before { content: "▾"; }
.qgroup-title { font-weight: 900; font-size: 14px; }
.qgroup-lead { color: var(--muted); font-size: 12px; }
.qgroup-count { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--primary-dark); }
.qgroup-body { padding: 0 16px 6px; }
.qgroup-body .fld:first-child { border-top: 0; }
.memory-qa { margin: 0 0 22px; }
.memory-qa h2 { font-size: 12px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.memory-qa dl { margin: 0; display: grid; gap: 8px; }
.memory-qa dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 10px; }
.memory-qa dl > div.qa-long { grid-template-columns: 1fr; gap: 4px; margin-top: 4px; }
.memory-qa dl > div.qa-long dt { padding-top: 0; }
.memory-qa dl > div.qa-long dd { padding-left: 2px; }
.memory-qa dt { color: var(--muted); font-size: 12px; font-weight: 800; padding-top: 2px; }
.memory-qa dd { margin: 0; font-weight: 600; line-height: 1.7; }

/* 触れた日の入力 */
.date-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
/* グリッドの子は既定で「中身より狭くならない」。iPhone の日付入力は中身が広いので、これが無いと枠から溢れる */
.date-row > * { min-width: 0; }
.date-row [hidden] { display: none; }

/* 年表 */
.birth-head { flex-basis: 100%; display: flex; align-items: baseline; gap: 12px; }
.birth-head strong { font-size: 13px; }
.birth-now { color: var(--muted); font-size: 12px; font-weight: 700; }
.birth-parts { display: flex; flex-wrap: wrap; gap: 14px; }
.birth-part { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 8px; }
.birth-part .birth-label { font-weight: 800; font-size: 12px; }
.birth-part .form-input { width: 88px; min-height: 36px; }
.birth-part .sub-check { grid-column: 1 / -1; margin-top: 2px; font-size: 11px; font-weight: 700; }
.birth-part .sub-check input { width: 15px; height: 15px; }
.birth-public { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }



.flash { margin: 18px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.tl { position: relative; }
.tl-decade { margin: 0 0 56px; }
.tl-decade-label { font-size: 13px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tl-year { margin: 0 0 28px; }
.tl-year-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0 0 10px; }
.tl-year-head h2 { margin: 0; font-size: 28px; line-height: 1; letter-spacing: -0.03em; color: var(--text); }
.tl-year-head h2 small { font-size: 15px; margin-left: 2px; color: var(--muted); letter-spacing: 0; }
.tl-age { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; }
.tl-counts { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.tl-counts i { font-style: normal; opacity: .5; margin: 0 2px; }
.tl-month { margin: 0 0 14px; }
.tl-month-label { margin: 0 0 7px 0; font-size: 13px; color: var(--primary-dark); }
.tl-list { position: relative; display: grid; gap: 8px; }
.tl-list::before { content: ""; position: absolute; left: 119px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 106px 22px 1fr; gap: 10px; align-items: start; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); margin-top: 8px; z-index: 1; }
.tl-date { color: var(--muted); font-weight: 800; font-size: 11px; padding-top: 4px; text-align: right; white-space: nowrap; }
.tl-card { background: rgba(255, 255, 255, 0.88); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: none; }
.tl-card h3 { font-size: 16px; line-height: 1.3; margin: 0 0 3px; }
.tl-item.is-new .tl-card { border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(74, 190, 184, 0.25), var(--shadow); animation: tl-pop 1.2s ease-out; }
.tl-item.is-new .tl-dot { background: var(--primary); transform: scale(1.25); }
@keyframes tl-pop { from { transform: translateY(6px); opacity: .4; } to { transform: none; opacity: 1; } }
.tl-gap { position: relative; margin: -4px 0 18px 119px; padding-left: 20px; color: var(--muted); font-size: 12px; font-weight: 700; }
.tl-gap::before { content: ""; position: absolute; left: 0; top: -6px; bottom: -6px; border-left: 2px dashed var(--line); }

/* 作品サムネ（引用表示） */
.work-thumb { display: block; flex: none; overflow: hidden; background: var(--surface-soft); border: 1px solid var(--line); }
.work-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.work-thumb.thumb-s { width: 44px; height: 60px; }
.work-thumb.thumb-m { width: 60px; height: 80px; }
.work-thumb.thumb-l { width: 100%; aspect-ratio: 3 / 4; height: auto; }
.entry-card.has-thumb, .tl-card.has-thumb { display: flex; gap: 12px; align-items: flex-start; }
.entry-card-link { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.entry-card-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.entry-card-link h3 { color: var(--text); }
.entry-body, .tl-card-body { min-width: 0; flex: 1; }
.public-entries .entry-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.public-entries .entry-card { padding: 14px; }
.public-entries .entry-card.has-thumb { display: block; }
.public-entries .entry-card.has-thumb .work-thumb { margin-bottom: 12px; }
.public-entries .entry-card h3 { font-size: 15px; line-height: 1.4; }
.public-entries .entry-meta span { font-size: 10px; min-height: 22px; padding: 0 8px; }
.public-entries .short-comment { font-size: 12px; }
.public-entries .posted-by { font-size: 11px; margin-top: 8px; }
.detail-head { display: flex; gap: 20px; align-items: flex-start; }
.detail-head .work-thumb.thumb-l { width: 140px; }
.work-source-link { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.public-entries .entry-card h3 a:hover { color: var(--primary-dark); }
.site-footer .credit { margin: 6px 0 0; font-size: 11px; opacity: .8; }
/* 候補を探す */
.work-picker { margin: 8px 0 4px; }
.work-picker-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.work-picker-row .button { min-height: 36px; padding: 0 12px; }
.work-picker-row .form-help { margin: 0; }
.work-picked { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.work-picked img { width: 56px; height: 74px; object-fit: contain; background: #fff; }
.work-picked strong { display: block; font-size: 13px; }
.work-picked .form-help { display: block; margin: 2px 0 4px; }
.link-button { background: none; border: 0; padding: 0; color: var(--primary-dark); font-weight: 800; font-size: 12px; cursor: pointer; }
.work-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.work-results button { display: flex; width: 100%; gap: 12px; align-items: center; text-align: left; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.work-results button:hover { border-color: var(--accent); }
.work-results img { width: 48px; height: 64px; object-fit: contain; background: var(--surface-soft); flex: none; }
.work-results strong { display: block; font-size: 13px; line-height: 1.35; }
.work-results small { color: var(--muted); font-size: 11px; }

/* トップ: サムネの壁 */
.memory-wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.wall-item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #e9eeee; }
.wall-item img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 5%; display: block; }
/* 触ると持ち上がって、少し大きくなる */
@media (hover: hover) {
    .wall-item { transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s; }
    .wall-item:hover, .wall-item:focus-visible { transform: scale(1.14); z-index: 3; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
}
/* 既定は10行分だけ。残りは「更に見る」で開く */
.memory-wall .wall-item:nth-child(n + 81) { display: none; }
.memory-wall.is-open .wall-item:nth-child(n + 81) { display: block; }
.wall-more { display: flex; justify-content: center; margin-top: 32px; }
.button.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; min-height: 38px; padding: 0 18px; }
.button.ghost:hover { border-color: var(--amber); color: var(--amber); }
.wall-empty { display: flex; align-items: center; justify-content: center; height: 100%; padding: 10px; font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.wall-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 8px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%); opacity: 0; transition: opacity .2s; }
.wall-item:hover .wall-cap, .wall-item:focus-visible .wall-cap { opacity: 1; }
.wall-cap strong { display: block; font-size: 11px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wall-cap small { display: flex; align-items: center; gap: 4px; font-size: 10px; opacity: .85; margin-top: 3px; }
.brain-ico { width: 13px; height: 13px; flex: none; opacity: .9; }

/* 注目されている記憶。ゆっくり右から左へ流れ続ける。触れると止まる */
.hot { background: #000; padding: 4px 0 40px; }
.hot h2 { color: #fff; margin-bottom: 18px; }
.hot-marquee { overflow: hidden; }
.hot-lane { display: flex; width: max-content; animation: hot-flow var(--flow, 420s) linear infinite; }
.hot-marquee:hover .hot-lane, .hot-marquee:focus-within .hot-lane { animation-play-state: paused; }
@keyframes hot-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hot-card {
    flex: 0 0 420px; height: 124px; margin-right: 12px; display: flex; align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.045);
    color: inherit; transition: border-color .2s, background .2s;
}
.hot-card:hover { border-color: var(--amber); background: rgba(255, 255, 255, 0.08); }
.hot-cover { width: 122px; height: 122px; flex: none; object-fit: cover; object-position: 50% 5%; background: #14181a; display: block; }
.hot-body { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 16px; }
.hot-text {
    color: #fff; font-size: 15px; line-height: 1.55; letter-spacing: -0.01em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hot-card:hover .hot-text { color: var(--amber); }
.hot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; color: rgba(255, 255, 255, 0.5); font-size: 10px; font-weight: 700; }
.hot-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.hot-who { display: inline-flex; align-items: center; gap: 4px; color: var(--amber); }
@media (prefers-reduced-motion: reduce) {
    .hot-lane { animation: none; }
    .hot-marquee { overflow-x: auto; }
}

/* トップは、触れると琥珀色になる（「更に見る」と同じ演出）
   見出しは押せないので、色が変わるだけの飾り */
.home .site-header .nav a:not(.nav-button) { transition: color .2s; }
.home .site-header .nav a:not(.nav-button):hover { color: var(--amber); }
.hero .button.secondary { transition: border-color .2s, color .2s, background .2s; }
.hero .button.secondary:hover { border-color: var(--amber); color: var(--amber); background: rgba(255, 255, 255, 0.06); }
.home .concept h2, .hot h2, .home .public-entries h2, .closing h2 { transition: color .2s; }
.home .concept h2:hover, .hot h2:hover, .home .public-entries h2:hover, .closing h2:hover { color: var(--amber); }

/* トップの締め */
.closing { background: #000; padding: 4px 0 30px; text-align: center; }
.closing-inner { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.closing h2 { color: #fff; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.45; letter-spacing: -0.02em; margin: 0 0 16px; }
.closing p { color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 1.9; margin: 0 0 34px; }
.closing .button.primary { min-height: 44px; padding: 0 22px; font-size: 15px; }
.closing-note { margin: 18px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.closing-note a { color: rgba(255, 255, 255, 0.7); font-weight: 800; }

/* コメントとメッセージ */
.nav-dm { position: relative; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 900; vertical-align: 1px; }
.sub-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.sub-check input { width: 18px; height: 18px; }

.comments { max-width: 1080px; margin: 0 auto; padding: 8px 20px 72px; }
.comments h2 { font-size: 17px; margin: 0 0 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.comment { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comment.is-deleted { background: var(--surface-soft); border-style: dashed; }
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment-who { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.comment-who strong { font-size: 13px; }
.comment-when { color: var(--muted); font-size: 11px; }
.comment-head form { margin-left: auto; }
.comment-body { margin: 0; line-height: 1.8; }
.comment-form { display: grid; gap: 10px; justify-items: start; }
.comment-form .textarea { width: 100%; }

.dm-threads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-thread { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; }
.dm-thread:hover { border-color: var(--accent); }
.dm-thread.is-unread { border-color: var(--primary); background: var(--primary-soft); }
.dm-thread-body { min-width: 0; flex: 1; }
.dm-thread-body strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dm-thread-body small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 900; }
.dm-when { color: var(--muted); font-size: 11px; flex: none; }

.dm-page .section-inner { max-width: 780px; }
.dm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dm-person { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.dm-person strong { display: block; font-size: 16px; }
.dm-person small { display: block; color: var(--muted); font-size: 11px; }
.dm-head-actions { display: flex; gap: 16px; }
.dm-log { display: grid; gap: 12px; margin-bottom: 22px; }
.dm-msg { max-width: 78%; padding: 12px 16px; border-radius: 14px; }
.dm-msg p { margin: 0; line-height: 1.75; }
.dm-msg span { display: block; margin-top: 6px; font-size: 10px; opacity: .7; }
.dm-msg.mine { justify-self: end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.dm-msg.theirs { justify-self: start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.dm-form { display: grid; gap: 10px; justify-items: start; }
.dm-form .textarea { width: 100%; }
.settings-form { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 4px; justify-items: start; }
.settings-form .button { margin-top: 12px; }
.settings-sub { font-size: 14px; margin: 24px 0 10px; }
.block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.block-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 700; }

/* 記憶の公開ページ */
.memory-page { max-width: 1080px; margin: 0 auto; padding: 48px 20px 88px; }
.memory { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 40px; align-items: start; }
.memory-visual { position: sticky; top: 90px; }
.memory-cover { display: block; width: 100%; height: auto; box-shadow: var(--shadow); background: #fff; }
.memory-cover-empty { aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; background: var(--surface-soft); border: 1px solid var(--line); color: var(--muted); font-weight: 800; }
.memory-title { font-size: clamp(25px, 4vw, 39px); line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 8px; }
.memory-creator { margin: 0 0 14px; color: var(--muted); font-weight: 700; }
/* 記憶 → 作品のページへ戻る道（2026-09-17 佐藤の指示）。ここから他の人の記憶へ広がる */
.memory-title a { color: inherit; text-decoration: none; }
.memory-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.memory-work-link { display: inline-block; margin: 0 0 16px; padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface-soft); color: var(--primary-dark);
    font-size: 13px; font-weight: 800; text-decoration: none; transition: border-color .15s, background .15s; }
.memory-work-link:hover { border-color: var(--primary-dark); background: var(--surface); }
.memory-stars { margin: 0 0 22px; font-size: 20px; color: var(--primary); letter-spacing: 2px; }
.memory-stars span { color: var(--line); }
.memory-review { margin: 0 0 22px; }
.memory-short { font-size: 20px; line-height: 1.6; font-weight: 800; margin: 0 0 14px; }
.memory-text { font-size: 15px; line-height: 1.9; color: var(--text); }
.memory-none { color: var(--muted); margin: 0 0 22px; }
.memory-method { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.spoiler-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px dashed var(--warning-border); background: var(--warning-bg); color: #7b4d00; font-weight: 800; cursor: pointer; font-size: 13px; }
.author-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 28px; }
.author-card:hover { border-color: var(--accent); }
.author-meta strong { display: block; font-size: 15px; }
.author-meta small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.memory-owner-actions { margin-top: 18px; flex-wrap: wrap; }

/* 画像で共有 */
.share-page { max-width: 1080px; margin: 0 auto; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.share-preview { position: sticky; top: 90px; }
.card-img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.card-img.square { max-width: 440px; margin: 0 auto; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 18px 0 10px; }
.share-options { max-width: none; margin: 0; }
/* 設定の箱が2つになったので、どちらも右の列に積む。
   そうしないと2つめが左の列（貼り付いた画像の下）に入り込んで重なる（2026-09-17 佐藤の指摘） */
.share-grid > .share-options { grid-column: 2; }
/* 「拡大して確認」は画面が狭いときだけ。PC は元の大きさで見えている（2026-09-17 佐藤の指示） */
@media (min-width: 761px) { #zoom-btn { display: none; } }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.choice { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice.is-on { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,127,130,.18); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid transparent; }

/* Timeline (旧) */
.timeline-hero { padding: 0 20px 32px; }
.timeline-wrap { padding: 0 20px; }
.timeline-month { margin: 0 0 42px; }
.timeline-month h2 { font-size: 22px; margin: 0 0 18px; color: var(--primary-dark); }
.timeline-list { position: relative; display: grid; gap: 18px; }
.timeline-list::before { content: ""; position: absolute; left: 135px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 120px 24px 1fr; gap: 14px; align-items: start; }
.timeline-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); margin-top: 8px; z-index: 1; }
.timeline-date { color: var(--muted); font-weight: 800; font-size: 12px; padding-top: 5px; text-align: right; }
.timeline-card h3 { font-size: 20px; line-height: 1.35; margin: 0 0 8px; }
.tl-card .timeline-creator, .tl-card .timeline-method { margin: 0 0 2px; font-size: 12px; line-height: 1.5; }
.timeline-creator, .timeline-method { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.timeline-private-preview { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--surface-soft); border: 1px dashed var(--line); color: var(--muted); }
.timeline-private-preview strong { display: block; color: var(--primary-dark); margin-bottom: 4px; }
.timeline-private-preview p { margin: 0; }
.timeline-item.public .timeline-private-preview { display: none; }
.timeline-cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.timeline-cta-card { display: block; }
.timeline-cta-card span { display: inline-flex; color: var(--primary-dark); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.timeline-cta-card strong { display: block; font-size: 22px; margin-bottom: 8px; }
.timeline-cta-card p { margin: 0; color: var(--muted); }

@media (max-width: 1100px) and (min-width: 761px) {
    .memory-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .memory-wall .wall-item:nth-child(n + 61) { display: none; }
    .memory-wall.is-open .wall-item:nth-child(n + 61) { display: block; }
}
@media (max-width: 760px) {
    .header-inner { padding: 14px 16px; }
    .nav { gap: 10px; white-space: nowrap; }
    .nav .nav-sub { display: none; }
    .logo .logo-full { display: none; }
    .logo .logo-short { display: block; }
    /* サムネの壁は画面いっぱいに */
    .public-entries .memory-wall { margin-left: -20px; margin-right: -20px; gap: 1px; }
    .memory-wall .wall-item:nth-child(n + 31) { display: none; }
    .memory-wall.is-open .wall-item:nth-child(n + 31) { display: block; }
    .hero {
        min-height: 88vh;
        align-items: flex-end;
        padding: 120px 18px 28px;
        background-image: url(../img/hero-mobile.webp?v=2026090502);
        background-position: center top;
    }
    .hero::before { background: linear-gradient(180deg, rgba(10, 12, 13, 0.10) 0%, rgba(10, 12, 13, 0.25) 40%, rgba(10, 12, 13, 0.88) 78%, rgba(10, 12, 13, 0.96) 100%); }
    .hero::after { display: none; }
    .hero h1 { font-size: clamp(27px, 8.6vw, 36px); }
    .concept h2, .public-entries h2, .hot h2 { font-size: 20px; }
    .home .concept { background: linear-gradient(180deg, var(--ink) 0%, #000 175px); }
    .concept-stats { gap: 4px 18px; margin: -8px 0 20px; font-size: 12px; }
    .concept-stats strong { font-size: 17px; }
    /* スマホでは3枚が縦積みになるので、1枚ずつ小さくして全体を短くする（2026-09-17 佐藤の指示） */
    .concept-card { padding: 14px 14px 15px; column-gap: 10px; }
    .concept-card h3 { font-size: 15px; }
    .concept-card p { margin-top: 9px; font-size: 12px; line-height: 1.65; }
    .concept-grid { gap: 10px; }
    .home .concept { padding: 34px 0 40px; }
    .closing { padding: 28px 0 64px; }
    .hot { padding: 0 0 28px; }
    .hot-card { flex-basis: 300px; height: 96px; margin-right: 8px; }
    .hot-cover { width: 94px; height: 94px; }
    .hot-body { padding: 10px 12px; gap: 6px; }
    .hot-text { font-size: 13px; }
    .hot-meta { font-size: 10px; gap: 2px 8px; }
    .closing { padding: 4px 0 14px; }
    .ci { width: 42px; height: 31px; }
    .hero .lead { font-size: 15px; }
    .concept-grid, .entry-list, .stats-grid, .detail-grid, .form-grid.two, .form-grid.three, .timeline-cta-grid { grid-template-columns: 1fr; }
    .section-title-row, .dashboard-hero { display: block; }
    .section-title-row p { margin-top: 6px; }
    .auth-card, .detail-card { padding: 26px 20px; }
    .split-actions { align-items: flex-start; }
    .timeline-list::before { left: 7px; }
    .timeline-item { grid-template-columns: 16px 1fr; gap: 12px; }
    .timeline-date { grid-column: 2; text-align: left; padding-top: 0; }
    .timeline-dot { grid-row: 1 / span 2; margin-top: 4px; }
    .timeline-card { grid-column: 2; }
    .tl-list::before { left: 7px; }
    .tl-item { grid-template-columns: 14px 1fr; gap: 8px; }
    .tl-date { grid-column: 2; text-align: left; padding-top: 0; }
    .tl-dot { grid-row: 1 / span 2; margin-top: 4px; }
    .tl-card { grid-column: 2; padding: 11px 12px; }
    .tl-year-head h2 { font-size: 24px; }
    .tl-gap { margin-left: 7px; }
    .date-row { grid-template-columns: 1fr; }
    .share-grid { grid-template-columns: 1fr; }
    .memory-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; }
    .memory { grid-template-columns: 1fr; gap: 24px; }
    .memory-visual { position: static; max-width: 260px; }
    .memory-page { padding-top: 28px; }
    .public-entries .entry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .work-thumb.thumb-m { width: 64px; height: 86px; }
    .detail-head { flex-direction: column; }
    .detail-row { grid-template-columns: 1fr; gap: 2px; }
    .memory-facts { grid-template-columns: 1fr; }
    .memory-qa dl > div { grid-template-columns: 1fr; gap: 2px; }
    .dm-msg { max-width: 88%; }
    .comments { padding-bottom: 48px; }
    /* スマホでは、カードを縮めて画面の上に貼り付けたまま、下の項目をいじれるようにする（2026-09-16 佐藤の指示）。
       貼り付きは「親の箱の中」でしか効かないので、格子をやめて share-preview の箱も畳み、
       画像の帯を share-grid 直下の子にする。こうすると項目の最後まで付いてくる */
    .share-grid { display: block; }
    .share-preview { display: contents; }
    .share-options { margin-top: 16px; }
    .share-stick {
        position: sticky; top: 46px; z-index: 6;
        margin: 0 -14px; padding: 8px 14px 10px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 16px -12px rgba(20, 30, 30, 0.45);
    }
    /* 画像を左、ボタンを右に縦積み。帯の高さを抑えつつ、3つのボタンを並べる */
    .share-stick { display: flex; align-items: center; gap: 12px; }
    .share-stick .card-img { max-height: 26vh; width: auto; max-width: 52%; margin: 0; flex: none; }
    .share-stick .share-buttons { flex: 1 1 0; min-width: 0; flex-direction: column; margin: 0; gap: 8px; justify-content: center; }
    .share-stick .share-buttons .button { width: 100%; min-height: 36px; padding: 0 10px; font-size: 12px; }
    .share-preview #share-help { margin-top: 10px; }
}

/* ── 顔アイコン（既定は脳の絵） ───────────────────────────── */
.avatar-img { flex: none; display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--surface-soft); border: 1px solid var(--line); vertical-align: middle; }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-img.is-default { background: var(--primary-soft); border-color: transparent; }
.avatar-img.is-default .avatar-brain { width: 62%; height: 62%; opacity: .85; color: var(--primary-dark); }
.av-xs { width: 18px; height: 18px; border-width: 0; }
.av-xs.is-default { background: transparent; }
.av-xs.is-default .avatar-brain { width: 100%; height: 100%; color: inherit; opacity: .9; }
.av-sm { width: 30px; height: 30px; }
.av-md { width: 48px; height: 48px; }
.av-lg { width: 96px; height: 96px; }

/* ── プロフィール ─────────────────────────────────────── */
.page-head { max-width: 1080px; margin: 0 auto 22px; padding: 0 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.page-head .page-title { margin: 0; }
.dashboard-page > .section-inner > .flash { max-width: 1080px; margin: 0 auto 18px; }
.profile-grid { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.panel { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel-title { margin: 0 0 18px; font-size: 16px; letter-spacing: .04em; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.profile-form { display: grid; gap: 10px; }
.profile-form .birth-head { margin-top: 8px; }
.avatar-edit { display: flex; align-items: flex-start; gap: 20px; }
.avatar-edit > div { flex: 1 1 auto; min-width: 0; display: grid; gap: 10px; }
.avatar-form { display: grid; gap: 10px; justify-items: start; }
.avatar-form .form-input { padding: 8px 10px; font-size: 12px; }
.birth-vis .form-input { width: 150px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 28px; }
.stats-row strong { font-size: 23px; line-height: 1.2; }
.hero-who { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-who .auth-title { margin: 0; }

@media (max-width: 820px) {
    .profile-grid { grid-template-columns: minmax(0, 1fr); }
    .panel { padding: 22px 18px 24px; }
    .avatar-edit { gap: 14px; }
    .av-lg { width: 72px; height: 72px; }
}

/* ── 通報・運営 ───────────────────────────────────────── */
.report-link { font-size: 11px; color: var(--muted); text-decoration: underline; }
.report-row { margin: 10px 0 0; text-align: right; }
.comment-head .report-link { margin-left: auto; }
.dm-msg .report-link { margin-left: 8px; color: inherit; opacity: .75; }
.dm-head-actions .report-link { align-self: center; }
.report-box { max-width: 640px; margin: 0 auto; }
.report-target { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 18px; }
.report-target small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.report-target p { margin: 6px 0 0; white-space: pre-wrap; color: var(--muted); font-size: 13px; }
.choice-list { display: grid; gap: 8px; margin: 6px 0 16px; }
.choice-list label { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.choice-list input { width: 18px; height: 18px; }
/* 5つ以上並ぶと折り返して字が縦に割れるので、縮ませず横に流す（2026-09-16） */
.admin-tabs { max-width: 1080px; margin: 0 auto 18px; padding: 0 20px; display: flex; gap: 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: none; white-space: nowrap; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 800; font-size: 12px; background: var(--surface); }
.admin-tabs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.report-card { max-width: 1080px; margin: 0 auto 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; }
.report-card .meta { color: var(--muted); font-size: 11px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.report-card .report-detail { margin: 0; font-size: 13px; }
.report-card .quote { padding: 10px 12px; background: var(--surface-soft); border-radius: 10px; white-space: pre-wrap; font-size: 13px; }
.report-card .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.report-card .actions .form-input { min-height: 36px; padding: 6px 10px; font-size: 12px; width: 260px; }
.report-card .actions .button { min-height: 36px; padding: 0 14px; font-size: 12px; }
.mod-notice { margin: 12px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--danger-bg); border: 1px solid #f2b8b8; color: #8a1f1f; font-weight: 700; }

/* ── 規約・プライバシー ───────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; line-height: 1.9; }
.legal h2 { font-size: 17px; margin: 32px 0 8px; }
.legal ul { padding-left: 20px; margin: 0; }
.legal li { margin: 4px 0; }
.foot-links { margin: 6px 0 0; font-size: 11px; }
.foot-links a { text-decoration: underline; }
.auth-foot { text-align: center; color: var(--muted); margin-top: 10px; }
.agree { margin: 18px 0 6px; font-size: 12px; }
.agree a { text-decoration: underline; color: var(--primary-dark); }

/* ── スマホの管理画面（2026-09-12）───────────────────────────
   ログイン中のナビは下に固定したタブにし、ヘッダーはロゴと「記憶を残す」だけにする。
   .nav:has(.nav-dm) = ログイン中のナビ（メッセージのリンクがあるとき）。古いブラウザは横スクロールに落ちる */
@media (max-width: 760px) {
    .nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .header-inner { min-height: 45px; padding: 8px 16px; }
    /* backdrop-filter があると fixed の基準がヘッダーになってしまうので、ログイン中は外す */
    .site-header:has(.nav-dm) { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(243, 246, 246, 0.97); }
    /* トップは写真の上に白抜きで重ねるので、上の白い下地を付けない（2026-09-16 ログイン中のスマホで見えなくなっていた） */
    .home .site-header:has(.nav-dm) { background: transparent; }
    /* 下のタブ。白だと画面に溶けてメニューに見えないので、濃い帯にして絵記号を付ける（2026-09-16 佐藤の指示） */
    .nav:has(.nav-dm) {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; overflow: visible;
        gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: 0 -10px 26px rgba(10, 16, 16, 0.22);
        justify-content: space-around;
    }
    /* タブの帯には backdrop-filter を付けない（付けると「記憶を残す」の fixed の基準が帯になり、右上に置けない） */
    .nav:has(.nav-dm) > a:not(.nav-button) { flex: 1 1 0; text-align: center; font-size: 10px; line-height: 1.2; padding: 4px 2px 2px; color: rgba(255, 255, 255, 0.72); font-weight: 700; letter-spacing: 0; }
    .home .nav:has(.nav-dm) > a:not(.nav-button) { color: rgba(255, 255, 255, 0.72); }
    .nav:has(.nav-dm) > a:not(.nav-button)::before {
        content: ""; display: block; width: 20px; height: 20px; margin: 0 auto 2px;
        background-color: currentColor;
        -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
        -webkit-mask-position: center; mask-position: center;
        -webkit-mask-size: 20px 20px; mask-size: 20px 20px;
    }
    .nav:has(.nav-dm) > a[href*="profile.php"]::before { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3.8'/><path d='M4.2 20.5c0-4 3.5-6 7.8-6s7.8 2 7.8 6'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3.8'/><path d='M4.2 20.5c0-4 3.5-6 7.8-6s7.8 2 7.8 6'/></svg>"); }
    .nav:has(.nav-dm) > a[href*="timeline.php"]::before { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='5.5' cy='6' r='1.9'/><circle cx='5.5' cy='12' r='1.9'/><circle cx='5.5' cy='18' r='1.9'/><path d='M10.5 6h9M10.5 12h6.5M10.5 18h7.8'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='5.5' cy='6' r='1.9'/><circle cx='5.5' cy='12' r='1.9'/><circle cx='5.5' cy='18' r='1.9'/><path d='M10.5 6h9M10.5 12h6.5M10.5 18h7.8'/></svg>"); }
    .nav:has(.nav-dm) > a[href*="messages.php"]::before { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2.5'/><path d='m3.8 7.2 8.2 5.6 8.2-5.6'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2.5'/><path d='m3.8 7.2 8.2 5.6 8.2-5.6'/></svg>"); }
    .nav:has(.nav-dm) > a[href*="admin.php"]::before { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3.2 19 6v5.2c0 4.4-2.9 7.9-7 9.6-4.1-1.7-7-5.2-7-9.6V6z'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3.2 19 6v5.2c0 4.4-2.9 7.9-7 9.6-4.1-1.7-7-5.2-7-9.6V6z'/></svg>"); }
    .nav:has(.nav-dm) > .nav-button { position: fixed; top: 8px; right: 16px; padding: 8px 12px; font-size: 12px; line-height: 1.3; }
    .nav:has(.nav-dm) .nav-badge { position: absolute; margin: -4px 0 0 2px; }
    body:has(.nav .nav-dm) { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }

    /* ページの余白を詰める */
    .auth-page, .dashboard-page, .detail-page, .timeline-page { min-height: auto; padding: 20px 14px 40px; }
    .dashboard-page .section-inner, .auth-page .section-inner { padding: 0; }
    .page-head { padding: 0; margin-bottom: 12px; gap: 8px 12px; }
    .page-head .page-title { font-size: 22px; }
    .page-head .button { min-height: 38px; padding: 0 12px; font-size: 12px; }
    .dashboard-page > .section-inner > .flash { margin: 0 0 12px; }
    .timeline-hero { padding: 0 0 18px; }
    .auth-card { padding: 22px 18px; }
    .auth-title { font-size: 25px; }

    /* プロフィール */
    .profile-grid { padding: 0; gap: 12px; }
    .panel { padding: 16px 16px 18px; box-shadow: none; }
    .panel-title { font-size: 14px; margin-bottom: 12px; padding-bottom: 8px; }
    .avatar-edit { align-items: center; gap: 14px; }
    .av-lg { width: 64px; height: 64px; }
    .avatar-form { width: 100%; grid-template-columns: 1fr; }
    .avatar-form .form-input { width: 100%; min-height: 40px; }
    .avatar-form .button { width: 100%; min-height: 40px; padding: 0 12px; font-size: 13px; }
    .avatar-edit .form-help { grid-column: 1 / -1; font-size: 11px; }
    .profile-form { gap: 8px; }
    .form-label { font-size: 12px; margin-top: 6px; }
    .form-input { min-height: 44px; }
    .birth-parts { gap: 8px 10px; }
    .birth-part .form-input { width: 76px; min-height: 42px; }
    .birth-vis { flex-basis: 100%; }
    .birth-vis .form-input { width: 100%; }
    .settings-form { padding: 12px 14px; }
    .sub-check { font-size: 12px; }
    .stats-row { gap: 14px 22px; }
    .stats-row strong { font-size: 20px; }

    /* 運営・通報 */
    /* 端まで流せるように、左右の余白ぶんだけ広げて内側に戻す */
    .admin-tabs { padding: 0 14px; margin: 0 -14px 12px; }
    .report-card { padding: 14px; }
    .report-card .actions .form-input { width: 100%; }
    .report-box .form-actions .button { flex: 1 1 auto; }

    /* メッセージ */
    .dm-head { gap: 10px; margin-bottom: 14px; padding-bottom: 12px; }
    .dm-head-actions { gap: 12px; flex-wrap: wrap; }
}

/* 期間カードの日付送り */
.period-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.period-nav .button { min-height: 48px; padding: 0; font-size: 18px; }

/* 記憶の写真（カード用） */
.photo-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.photo-box .panel-title { margin-bottom: 4px; border: 0; padding: 0; }
.photo-thumb { display: block; width: 100%; max-width: 280px; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.style-row .choice { min-width: 96px; justify-content: center; }

/* 触れ方・場所のプルダウン＋自由記入 */
.pick-row { display: grid; gap: 8px; }
.pick-row [hidden] { display: none; }

/* 記憶の写真（最大5枚）。選んだ1枚がカードに載る */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--surface-soft); padding: 0; cursor: pointer; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell.is-on { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,127,130,.22); }
.photo-cell .del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 22px; text-align: center; cursor: pointer; padding: 0; }
.photo-add { display: grid; place-items: center; aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); font-weight: 800; font-size: 23px; cursor: pointer; background: #fff; }
.photo-add:hover { border-color: var(--primary); color: var(--primary); }
.photo-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.photo-box[hidden] { display: none; }

/* 載せる情報 */
.extra-list { display: grid; gap: 6px; margin-bottom: 6px; }
.extra-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; cursor: pointer; }
.extra-item input { width: 16px; height: 16px; flex: none; }
.extra-item strong { flex: none; }
.extra-item span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-cell { cursor: default; }

/* 作品の評価（項目ごとの★5段階） */
.params { display: grid; gap: 4px; }
.param-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13px; }
.param-label { font-weight: 700; }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars .star { cursor: pointer; font-size: 20px; line-height: 1; color: #d3dbdb; padding: 2px; }
.stars .star.on { color: var(--amber); }
.stars .star input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-clear { border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0 4px; visibility: hidden; }
.param-row.has-score .star-clear { visibility: visible; }
.param-show { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.param-show input { width: 15px; height: 15px; }
.param-row.has-score .param-show { color: var(--primary-dark); }
.param-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 28px; }
.param-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.param-list dt { font-weight: 700; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.param-list dd { margin: 0; flex: none; }
.param-list .is-shown dt::after { content: ' ●'; color: var(--primary); font-size: 9px; vertical-align: 2px; }
.stars-txt { color: var(--amber); letter-spacing: 1px; font-size: 12px; white-space: nowrap; }
.stars-txt .dim { color: #d3dbdb; }
@media (max-width: 760px) { .param-row { grid-template-columns: minmax(0, 1fr) auto; } .param-show { grid-column: 1 / -1; justify-content: flex-end; margin-top: -2px; } }

/* 記憶ページの公開日時 */
.memory-published { margin: -8px 0 12px; color: var(--muted); font-size: 11px; }

/* bot 対策の見えない欄 */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 運営: アクセス数 */
.stat-cards { max-width: 1080px; margin: 0 auto 6px; padding: 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-cards-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.period-tabs { margin-top: -10px; }
.bar-chart-s { height: 108px; }
.stat-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-box strong { display: block; font-size: 25px; line-height: 1.1; }
.stat-box small { color: var(--muted); font-size: 11px; font-weight: 700; }
.dashboard-page .section-inner > .form-help { max-width: 1080px; margin: 0 auto 18px; padding: 0 20px; }
.stat-panel { max-width: 1080px; margin: 0 auto 16px; }
.stat-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-grid .stat-panel { max-width: none; margin: 0 0 16px; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 6px; }
.bar-col { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.bar { width: 100%; background: var(--primary); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-col:hover .bar { background: var(--accent-strong); }
.bar-day { font-size: 9px; color: var(--muted); margin-top: 4px; }
/* 時間帯の目盛りは3時間おきにしか字を入れていない。空のままだと高さが0になって、
   棒の下端が1本おきにずれる。見えない字を入れて高さを揃える（2026-09-16） */
.bar-day:empty::before { content: "\00a0"; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stat-table tr { border-bottom: 1px dashed var(--line); }
.stat-table th { text-align: left; font-weight: 700; padding: 7px 0; }
.stat-table td { text-align: right; padding: 7px 0 7px 12px; white-space: nowrap; }
.stat-table .dim { color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-table a { color: var(--primary-dark); }
@media (max-width: 760px) {
    .stat-cards, .stat-cards-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; gap: 8px; }
    .stat-grid { grid-template-columns: minmax(0, 1fr); }
    .dashboard-page .section-inner > .form-help { padding: 0; }
    .bar-day { display: none; }
}

/* 運営: 会員 */
.admin-search { max-width: 1080px; margin: 0 auto 16px; padding: 0 20px; display: flex; gap: 8px; align-items: center; }
.admin-search .form-input { max-width: 320px; }
.user-card { max-width: 1080px; margin: 0 auto 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.user-card.is-suspended { background: var(--danger-bg); border-color: #f2b8b8; }
.user-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.user-name { flex: 1 1 auto; min-width: 0; }
.user-name strong { font-size: 15px; }
.user-name small { display: block; color: var(--muted); font-size: 11px; }
.tag-admin, .tag-stop { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.tag-admin { background: var(--primary-soft); color: var(--primary-dark); }
.tag-stop { background: #f7dcdc; color: #8a1f1f; }
.user-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.user-actions form { display: flex; align-items: center; gap: 8px; }
.user-actions .form-input.note { min-height: 34px; padding: 4px 10px; font-size: 12px; width: 190px; }
.user-actions a { color: var(--primary-dark); font-weight: 800; font-size: 12px; }
.user-facts { margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 24px; }
.user-facts div { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 12px; min-width: 0; }
.user-facts dt { color: var(--muted); font-weight: 700; flex: none; min-width: 84px; }
.user-facts dd { margin: 0; min-width: 0; }
.user-facts .dim { color: var(--muted); }
@media (max-width: 760px) {
    .admin-search { padding: 0; }
    .user-facts { grid-template-columns: minmax(0, 1fr); }
    .user-actions { width: 100%; }
    .user-actions form { flex-wrap: wrap; }
}

/* 10周年特集（注目されている記憶と同じ流れ方。ここだけ琥珀色と青緑で少し目立たせる） */
.anni { position: relative; padding: 30px 0 32px; background: linear-gradient(180deg, rgba(15, 127, 130, 0.22) 0%, rgba(0, 0, 0, 0) 280px), #000; }
.anni::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--amber) 0%, var(--accent) 45%, rgba(0, 0, 0, 0) 85%); }
.anni-badge { display: inline-block; margin: 0 0 10px; padding: 3px 13px; border-radius: 999px; border: 1px solid rgba(227, 178, 92, 0.5); color: var(--amber); font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.anni h2 { margin-bottom: 6px; }
.anni h2 em { font-style: normal; color: var(--amber); }
.anni-lead { color: rgba(255, 255, 255, 0.55); font-size: 13px; margin: 0 0 18px; }
.anni-card { flex-basis: 330px; border-color: rgba(227, 178, 92, 0.3); background: rgba(227, 178, 92, 0.05); }
.anni-card:hover { border-color: var(--amber); background: rgba(227, 178, 92, 0.1); }
.anni-card .hot-text { font-size: 16px; -webkit-line-clamp: 2; }
.anni-card .hot-who { color: var(--accent); }
.anni-card:hover .hot-who { color: var(--amber); }
@media (max-width: 760px) {
    .anni { padding: 22px 0 24px; }
    .anni-lead { font-size: 12px; margin-bottom: 14px; }
    .anni-card { flex-basis: 260px; }
    .anni-card .hot-text { font-size: 13px; }
}

/* 周年特集: ボタンと一覧ページ */
.anni-more { text-align: center; margin-top: 22px; }
.anni-more .button.ghost { border-color: rgba(227, 178, 92, 0.55); color: var(--amber); gap: 12px; }
.anni-more .button.ghost:hover { background: rgba(227, 178, 92, 0.1); border-color: var(--amber); }
.anni-count { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.55); }
.anni-page .section-inner { max-width: 1080px; margin: 0 auto; }
.anni-head { margin-bottom: 28px; }
.anni-head .anni-badge { border-color: rgba(169, 120, 31, 0.5); color: var(--amber-dark); }
.anni-head .page-title { font-size: clamp(25px, 4vw, 36px); margin: 6px 0 10px; }
.anni-head .page-title em { font-style: normal; color: var(--amber-dark); }
.anni-head .auth-lead { margin: 0 0 16px; }
.anni-head .dim { color: var(--muted); font-size: 12px; margin-left: 10px; }
.anni-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.anni-tabs a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-size: 12px; }
.anni-tabs a span { color: var(--muted); font-weight: 700; margin-left: 4px; }
.anni-tabs a:hover { border-color: var(--amber-dark); color: var(--amber-dark); }
.anni-group { margin: 0 0 36px; }
.anni-group h2 { font-size: 18px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--amber); display: inline-block; }
.anni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.anni-item { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.anni-cover { display: block; aspect-ratio: 1; background: #14181a; }
.anni-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 5%; display: block; }
.anni-body { padding: 12px 14px 14px; display: grid; gap: 6px; align-content: start; }
.anni-body strong { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anni-body small { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anni-people { font-size: 11px; font-weight: 800; color: var(--primary-dark); }
.anni-people.dim { color: var(--muted); font-weight: 700; }
.anni-btn { min-height: 38px; font-size: 12px; margin-top: 4px; box-shadow: none; }
@media (max-width: 760px) {
    .anni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .anni-body { padding: 10px 10px 12px; }
    .anni-body strong { font-size: 12px; }
    .anni-more .button.ghost { width: 100%; }
}

/* 題名の後ろの「Apple電子版」 */
.edition-note { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.5; white-space: nowrap; }
.memory-title .edition-note, .auth-title .edition-note { font-size: 11px; margin-left: 12px; vertical-align: 6px; }
.anni-body .edition-note { display: block; width: max-content; margin: 4px 0 0; }

/* 運営: 仮ユーザー宛 */
.inbox-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.inbox-item .meta { color: var(--muted); font-size: 11px; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.inbox-item p { margin: 6px 0; font-size: 13px; white-space: pre-wrap; }
.inbox-item a { color: var(--primary-dark); font-size: 11px; font-weight: 800; }

/* 新着情報（2026-09-16）。トップのヒーローのすぐ下。3件まで */
.news { background: #000; }
.news-inner { max-width: 1080px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 20px; align-items: start; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.news-title { margin: 2px 0 0; font-size: 11px; letter-spacing: 0.14em; color: var(--amber); font-weight: 800; }
.news-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.news-list li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 16px; align-items: start; }
.news-list time { color: rgba(255, 255, 255, 0.42); font-size: 12px; font-weight: 700; padding-top: 2px; }
.news-list p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 13px; line-height: 1.75; }

/* 運営の新着情報の一覧 */
.notice-row { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.notice-row .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.notice-row p { margin: 6px 0 0; font-size: 13px; white-space: pre-wrap; }
.notice-row .mini-actions { margin-top: 8px; align-items: center; }
.notice-row .mini-actions form { display: inline; margin: 0; }
.tag-on { background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 2px 8px; }
.tag-off { background: var(--warning-bg); color: var(--amber-dark); border-radius: 999px; padding: 2px 8px; }
.link-button.danger-link { color: var(--danger); }

@media (max-width: 760px) {
    .news-inner { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px; }
    .news-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* タイムラインを詰めて、一度に見える量を増やす（2026-09-16 佐藤の指示） */
.tl-card .entry-meta { margin-bottom: 4px; gap: 4px; }
.tl-card .entry-meta span { min-height: 20px; padding: 0 8px; font-size: 11px; }
.tl-card .short-comment { font-size: 13px; line-height: 1.6; margin-top: 3px; }
.tl-card .mini-actions { margin-top: 6px; font-size: 12px; gap: 12px; }

/* サムネで並べる表示。トップの「注目されている記憶」と同じ見せ方 */
.tl-wall { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.tl-wall .wall-item { background: var(--surface-soft); border-radius: 4px; }
.tl-wall .wall-item.is-new { outline: 3px solid var(--accent-strong); outline-offset: -3px; z-index: 2; }
.tl-view { display: flex; gap: 6px; align-items: center; }
.tl-view a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 800; color: var(--muted); }
.tl-view a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 1100px) { .tl-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 760px) { .tl-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 拡大して確認（2026-09-16 佐藤の指示）。プレビューを画面いっぱいに出す */
.card-zoom { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px; background: rgba(8, 12, 12, 0.92); }
.card-zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); background: #fff; }
.card-zoom-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.card-zoom-close:hover { background: rgba(255, 255, 255, 0.28); }

/* 作品のページ（2026-09-17）。記憶を募るリンクの着地点 */
.work-head { max-width: 1080px; margin: 0 auto 26px; padding: 0 20px; display: flex; gap: 22px; align-items: flex-start; }
.work-head-thumb { flex: none; width: 150px; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-soft); }
.work-head-body { min-width: 0; }
.work-head-count { margin: 6px 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.work-head-count strong { color: var(--primary-dark); font-size: 17px; }
.work-memories { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.work-memory { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.work-memory .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.work-memory .meta a { color: var(--primary-dark); }
.work-memory p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }
.work-memory-link { display: inline-block; margin-top: 8px; color: var(--primary-dark); font-size: 12px; font-weight: 800; }
@media (max-width: 760px) {
    .work-head { flex-direction: column; gap: 14px; padding: 0; }
    .work-head-thumb { width: 108px; }
    .work-memories { grid-template-columns: minmax(0, 1fr); padding: 0; }
}

/* 今日が記念日の作品（2026-09-17 佐藤の指示）。流れる帯とちがって、固定で目立たせる */
.today-anni { background: #000; padding: 6px 0 10px; }
.today-anni-inner { max-width: 1080px; margin: 0 auto; padding: 18px 20px 20px; border: 1px solid rgba(227, 178, 92, 0.35); border-radius: 16px; background: rgba(227, 178, 92, 0.06); }
.today-anni-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.today-anni-head h2 { margin: 0; font-size: 20px; color: #fff; }
.today-anni-head h2 em { font-style: normal; color: var(--amber); }
.today-anni-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.today-anni-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.10); transition: border-color .15s, transform .15s; }
.today-anni-card:hover { border-color: var(--amber); transform: translateY(-2px); }
.today-anni-main { flex: 1 1 auto; display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
/* 記憶募集（2026-09-17 佐藤の指示）。ここにだけ置く */
.today-anni-ask { flex: none; width: 56px; height: 56px; padding: 0; border-radius: 10px; cursor: pointer;
    border: 1px solid rgba(227, 178, 92, 0.55); background: rgba(227, 178, 92, 0.12); color: var(--amber);
    font-size: 13px; font-weight: 800; line-height: 1.25; letter-spacing: 0.06em; transition: background .15s, color .15s; }
.today-anni-ask:hover { background: var(--amber); color: #1a1408; }
.today-anni-card img { flex: none; width: 52px; height: 70px; object-fit: cover; border-radius: 6px; background: #14181a; }
.today-anni-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.today-anni-years { color: var(--amber); font-size: 22px; line-height: 1; letter-spacing: -0.02em; }
.today-anni-years small { font-size: 11px; margin-left: 2px; }
.today-anni-title { color: #fff; font-size: 13px; font-weight: 800; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.today-anni-body small { color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.today-anni-people { color: rgba(227, 178, 92, 0.85) !important; font-weight: 700; }
@media (max-width: 1100px) { .today-anni-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .today-anni-inner { padding: 14px; border-radius: 12px; }
    .today-anni-head { margin-bottom: 10px; }
    .today-anni-head h2 { font-size: 17px; }
    .today-anni-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .today-anni-card img { width: 44px; height: 60px; }
    .today-anni-years { font-size: 19px; }
    .today-anni-ask { width: 52px; height: 52px; font-size: 12px; }
}

/* 通りすがりの記憶（2026-09-17）。会員の記憶とは見た目で分ける。仮のもの、という感じを残す */
.guest-box { max-width: 1080px; margin: 28px auto 0; padding: 18px 20px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.guest-box .section-title-row { margin-top: 0; }
.guest-list { display: grid; gap: 10px; margin: 14px 0 18px; }
.guest-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.guest-item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 11px; font-weight: 700; }
.guest-item .meta strong { color: var(--text); }
.guest-item p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.guest-left { color: var(--amber-dark); }
.guest-form { margin-top: 4px; }
@media (max-width: 760px) { .guest-box { padding: 14px; margin-top: 20px; } }
.guest-after { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; font-weight: 700; }
/* 通りすがりの印。会員の記憶と見分けがつくように（2026-09-17） */
.guest-tag { display: inline-block; padding: 1px 6px; margin-right: 5px; border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: 0.04em;
    background: rgba(227, 178, 92, 0.22); color: var(--amber); border: 1px solid rgba(227, 178, 92, 0.45); }
.hot-card.is-guest, .wall-item.is-guest { outline: 1px solid rgba(227, 178, 92, 0.35); outline-offset: -1px; }

/* 通りすがりのカード用の項目（2026-09-17 佐藤の指示）。5つの枠をプルダウンで選ぶ */
.guest-params { display: grid; gap: 8px; margin: 6px 0 4px; }
.guest-param-row { display: flex; align-items: center; gap: 8px; }
.guest-param-row .form-input { margin: 0; }
.guest-param-row > select:first-child { flex: 1 1 auto; min-width: 0; }
/* ★5つと開閉の矢印が入る幅。狭いと5つめが切れる */
.guest-param-score { flex: none; width: 132px; letter-spacing: -0.06em; padding-left: 12px; padding-right: 28px; background-position: right 10px center; }
@media (max-width: 760px) { .guest-param-score { width: 122px; font-size: 14px; padding-left: 10px; padding-right: 26px; } }

/* 記憶を置いたあとの案内（2026-09-17 佐藤の指示）。ここでカード作りへ誘う */
.guest-done { margin: 0 0 18px; padding: 18px 20px; border-radius: var(--radius);
    border: 1px solid var(--primary-dark); background: var(--surface); }
.guest-done-flash { margin: 0 0 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.guest-done h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.35; }
.guest-done-lead { margin: 0 0 14px; font-size: 13px; line-height: 1.8; }
.guest-done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.guest-done-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
    .guest-done { padding: 15px; }
    .guest-done h3 { font-size: 17px; }
    .guest-done-actions .button { flex: 1 1 100%; text-align: center; }
}

/* 画像にする画面をぎゅっと詰める（2026-09-17 佐藤の指示）。設定の縦幅が長すぎた */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 色は名前を出さず、丸だけで選ぶ。6色でも1行に収まる */
.choice-row.dots { gap: 6px; }
.choice-dot { min-height: 0; width: 36px; height: 36px; padding: 0; border-radius: 9px; justify-content: center; }
.choice-dot .swatch { width: 20px; height: 20px; }
.choice-dot.is-on { border-width: 2px; }
/* 余白と当たりを小さく。選びやすさは残す */
.share-options .form-label { margin-top: 12px; margin-bottom: 4px; }
.share-options .choice-row { margin-bottom: 0; gap: 6px; }
.share-options .choice { min-height: 34px; padding: 0 11px; font-size: 12px; border-radius: 7px; }
.share-options .choice-dot { padding: 0; }
.share-options .style-row .choice { min-width: 84px; }
.share-options .form-input { min-height: 38px; font-size: 15px; }
.share-options .form-help { margin: 4px 0 0; }
.share-options .page-title, .share-options .auth-title { margin-bottom: 4px; }
.share-options .eyebrow { margin-bottom: 2px; }
/* 「カードに載せる」も詰める（2026-09-17 佐藤の指示） */
.share-options .form-grid { gap: 8px; }
.share-options .form-actions { margin-top: 10px; }
.share-options .section-title-row { font-size: 18px; margin-bottom: 4px; }
.share-options .guest-params { gap: 6px; }
.share-options .guest-param-row { gap: 6px; }
.share-options .alert { padding: 8px 12px; margin: 8px 0; }
/* 見出しと、その下の選択欄の隙間を詰める（2026-09-17 佐藤の指示）。
   label は既定で inline なので、block にしないと margin-bottom が効かない */
.share-options .form-label { display: block; margin-top: 14px; margin-bottom: 1px; }
.share-options .form-label + .choice-row,
.share-options .form-label + .form-input,
.share-options .form-label + select { margin-top: 2px; }

/* 画像にする画面の隙間（2026-09-17 佐藤の指示）。
   .form は grid（gap:12px）なので余白の相殺が効かず、見出しと選択欄の間にも 12px 入っていた。
   gap を 0 にして、間の空けかたは見出しの margin-top だけで決める */
.share-options .form { gap: 0; }
.share-options .form-label { display: block; margin-top: 13px; margin-bottom: 2px; }
.share-options .form > :first-child, .share-options .form-label:first-child { margin-top: 0; }
.share-options .form-grid { gap: 8px; margin-top: 2px; }
.share-options .form-help { margin: 3px 0 0; }
.share-options .guest-params { margin-top: 3px; }
.share-options .form-actions { margin-top: 12px; }
/* 見出しが大きすぎたので、この画面だけ小さく */
.share-options .auth-title, .share-options .page-title { font-size: 26px; margin: 0 0 6px; letter-spacing: -0.03em; }
.share-options .eyebrow { margin-bottom: 1px; }
/* 「カード内容」「画像形式」の見出し。2つとも同じ大きさに（2026-09-17 佐藤の指示） */
.share-panel-title { margin: 0 0 8px; font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; }
@media (max-width: 760px) { .share-panel-title { font-size: 20px; } }
/* 枠のすぐ内側の余白を詰める（2026-09-17 佐藤の指示）。34px は広すぎた */
.share-options.auth-card { padding: 18px 20px 20px; }
@media (max-width: 760px) { .share-options.auth-card { padding: 16px; } }

/* 記念日カードの操作（2026-09-17 佐藤の指示）。
   「記憶を置く」＝アカウント無しで書く入口／「記憶募集」＝SNS へ配る文章 */
.today-anni-acts { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.today-anni-write {
    display: grid; place-items: center; min-height: 30px; padding: 0 10px; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 800;
    text-decoration: none; letter-spacing: 0.02em; white-space: nowrap;
    transition: background .15s;
}
.today-anni-write:hover { background: var(--accent-strong); }
.today-anni-acts .today-anni-ask { width: 56px; height: 44px; margin: 0 auto; }
@media (max-width: 760px) {
    .today-anni-acts .today-anni-ask { width: 52px; height: 40px; }
    .today-anni-write { min-height: 32px; font-size: 12px; }
}

/* ── 目標の画面（2026-09-19 佐藤の指示） ── */
.goal-diag { border-left: 4px solid var(--line); }
.goal-diag-stop { border-left-color: var(--danger); background: var(--danger-bg); }
.goal-diag-warn { border-left-color: var(--warning-border); background: var(--warning-bg); }
.goal-diag-fix { border-left-color: var(--primary); }
.goal-diag-tag { margin: 0 0 4px; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: var(--muted); }
.goal-diag h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }
.goal-diag-body { margin: 0; font-size: 13px; line-height: 1.8; }
.goal-diag-todo { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13px; }
.goal-diag-todo strong { display: block; font-size: 11px; color: var(--muted); letter-spacing: .06em; margin-bottom: 2px; }
.goal-behind { color: var(--danger); }
.goal-ahead { color: var(--primary-dark); }

/* 積み上げの図 */
.goal-chart { display: flex; align-items: flex-end; gap: 1px; height: 140px; margin: 10px 0 6px; }
.goal-col { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.goal-col > span { position: absolute; left: 0; right: 0; bottom: 0; display: block; border-radius: 1px 1px 0 0; }
.goal-goal { background: var(--line); }
.goal-col.is-future .goal-goal { background: var(--surface-soft); border-top: 1px solid var(--line); }
.goal-real { background: var(--primary); opacity: .85; }
.goal-col.is-today .goal-real { background: var(--accent-strong); opacity: 1; }
.goal-col.is-today::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 1px; background: var(--amber-dark); }

/* 段ごとの落ち方 */
.goal-funnel { display: grid; gap: 12px; margin-top: 8px; }
.goal-step { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; }
.goal-step.is-worst { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: var(--danger-bg); }
.goal-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.goal-step-name { font-size: 13px; font-weight: 800; }
.goal-step-n { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.goal-step-n small { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.goal-bar { height: 7px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); overflow: hidden; }
.goal-bar span { display: block; height: 100%; background: var(--primary); }
.goal-step.is-worst .goal-bar span { background: var(--danger); }
.goal-step-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); font-weight: 700; }
.goal-step.is-worst .goal-rate { color: var(--danger); }
.goal-form { margin-top: 6px; }
@media (max-width: 760px) {
    .goal-chart { height: 110px; }
    .goal-diag h2 { font-size: 17px; }
    .goal-step-n { font-size: 17px; }
}

/* ── 配りもの（2026-10-12）。運営ページ。毎朝ここだけ見れば配れる ── */
.stat-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-panel.is-pick { border-color: color-mix(in srgb, var(--primary) 50%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent); }
.post-row { display: flex; gap: 14px; align-items: flex-start; }
.post-thumb { width: 80px; height: auto; border-radius: 8px; border: 1px solid var(--line); flex: 0 0 auto; }
.post-body { flex: 1 1 auto; min-width: 0; }
.post-title { margin: 0 0 8px; font-size: 14px; font-weight: 800; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.post-title .dim { font-size: 11px; font-weight: 700; color: var(--muted); }
.post-text { font-size: 13px; line-height: 1.8; resize: vertical; }
.post-count { margin: 6px 0 0; }
.post-acts { margin: 10px 0 0; align-items: center; }
.post-cal { display: flex; flex-wrap: wrap; gap: 4px; }
.post-cal-day { width: 18px; height: 18px; border-radius: 4px; background: var(--line); }
.post-cal-day.is-on { background: var(--primary); }
.post-cal-day.is-today { outline: 2px solid var(--primary-dark); outline-offset: 1px; }

@media (max-width: 760px) {
    .stat-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .post-row { gap: 10px; }
    .post-thumb { width: 56px; }
}
