:root {
  --ink: #171412;
  --text: #5f5650;
  --muted: #958a82;
  --paper: #fffdf8;
  --ivory: #f7f2ea;
  --line: #e7dbc9;
  --gold: #c9a66a;
  --gold-soft: #ead6ac;
  --red: #e94b2e;
  --dark: #080c14;
  --shadow: 0 26px 72px rgba(8, 12, 20, .13);
}

* { box-sizing: border-box; min-width: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wall-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  background: rgba(255,253,248,.94);
  border-bottom: 1px solid rgba(201,166,106,.30);
  backdrop-filter: blur(16px);
}
.wall-brand img { width: 174px; height: auto; }
.wall-nav { display: flex; align-items: center; gap: 20px; color: var(--ink); font-size: 13px; font-weight: 760; }
.wall-nav a { padding: 8px 0; }
.wall-nav .button-mini { padding: 10px 14px; border: 1px solid var(--gold); background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--dark); }

.wall-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 22px 76px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8,12,20,.90), rgba(8,12,20,.70)),
    url("../assets/hero-tokyo-love-promise.png") center / cover no-repeat;
}
.wall-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.wall-hero-inner { width: min(1080px, 100%); margin: 0 auto; }
.kicker { margin: 0 0 16px; color: var(--gold-soft); font-size: 12px; font-weight: 800; letter-spacing: .20em; text-transform: uppercase; }
.wall-hero h1, .page-title h1, .story-detail h1 {
  margin: 0;
  color: inherit;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .98;
  letter-spacing: -.035em;
}
.wall-hero p { max-width: 720px; margin: 22px 0 0; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.button, button.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 780;
  cursor: pointer;
}
.button.primary { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); border-color: transparent; color: var(--dark); }
.button.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.button.ghost { color: #fff; border-color: rgba(234,214,172,.72); }

.page-section { padding: 72px 22px; }
.page-section.soft { background: linear-gradient(180deg, var(--ivory), #fff); }
.container { width: min(1120px, 100%); margin: 0 auto; }
.page-title { max-width: 920px; margin: 0 auto 34px; text-align: center; }
.page-title h1 { color: var(--ink); font-size: clamp(38px, 6vw, 66px); }
.page-title p { margin: 18px auto 0; max-width: 720px; color: var(--text); font-size: 16px; line-height: 1.85; }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 30px; }
.filter-bar button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 760; }
.filter-bar button.active { background: var(--dark); color: #fff; border-color: var(--dark); }

.story-grid { display: grid; gap: 18px; }
.story-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.story-cover { position: relative; aspect-ratio: 4 / 3; background: var(--dark); }
.story-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .86; }
.story-cover .badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 10px;
  background: rgba(8,12,20,.72);
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.story-card-body { padding: 24px; }
.story-card h2 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.05; }
.story-card p { margin: 12px 0 0; line-height: 1.75; }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; color: var(--muted); font-size: 13px; }

.form-shell, .admin-shell, .legal-shell, .story-detail {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 16px; }
.field-grid { display: grid; gap: 14px; }
label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 780; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--ink);
  padding: 14px;
  font: inherit;
  font-size: 15px;
}
textarea { min-height: 128px; resize: vertical; line-height: 1.7; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,166,106,.14); }
.full { grid-column: 1 / -1; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.status-note { margin: 14px 0 0; color: var(--red); font-weight: 760; }
.privacy-cards { display: grid; gap: 10px; }
.privacy-option { padding: 16px; border: 1px solid var(--line); background: #fffdf8; }
.privacy-option strong { display: block; color: var(--ink); margin-bottom: 5px; }

.detail-cover { margin: -28px -28px 28px; aspect-ratio: 16 / 8; background: var(--dark); overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .88; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; color: var(--muted); }
.detail-block { padding: 24px 0; border-top: 1px solid var(--line); }
.detail-block h2 { margin: 0 0 12px; color: var(--ink); font-size: 22px; }
.detail-block p { margin: 0; line-height: 1.9; }
.partner-notes { display: grid; gap: 16px; }
.partner-note { padding: 18px; background: var(--ivory); border: 1px solid var(--line); }

.admin-table { display: grid; gap: 12px; }
.admin-row { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); background: #fff; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions button { min-height: 38px; padding: 0 12px; border: 1px solid var(--line); background: #fffdf8; font-weight: 760; }

.legal-shell h2 { margin: 28px 0 10px; color: var(--ink); }
.legal-shell p, .legal-shell li { line-height: 1.85; }

.wall-footer { padding: 40px 20px; text-align: center; color: rgba(234,214,172,.78); background: var(--dark); border-top: 3px solid var(--red); font-size: 13px; line-height: 1.8; }
.wall-footer a { color: var(--gold-soft); }

@media (min-width: 760px) {
  .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  .wall-header { padding: 16px; align-items: center; }
  .wall-brand img { width: min(176px, 48vw); }
  .wall-nav { gap: 10px; font-size: 12px; }
  .wall-nav a:not(.button-mini) { display: none; }
  .wall-nav .button-mini { padding: 9px 10px; }
  .wall-hero { padding: 64px 18px 58px; }
  .wall-hero h1, .page-title h1 { font-size: clamp(38px, 11vw, 50px); line-height: 1.02; }
  .wall-hero p { font-size: 16px; line-height: 1.78; }
  .hero-actions, .button { width: 100%; }
  .page-section { padding: 58px 18px; }
  .form-shell, .admin-shell, .legal-shell, .story-detail { padding: 22px; }
  .detail-cover { margin: -22px -22px 22px; aspect-ratio: 16 / 10; }
  .story-card h2 { font-size: 28px; }
}
