/* Ester — クリスチャンのための婚活サービス */

:root {
  color-scheme: light;
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F4EFE7;
  --ink: #2A2238;
  --ink-2: #625A70;
  --line: #E7E0D5;
  --primary: #4A3A6B;
  --primary-hover: #3C2F58;
  --primary-soft: #EFEBF6;
  --gold: #A07A43;
  --gold-soft: #F6EEDF;
  --rose: #C2545D;
  --rose-soft: #FBEDEE;
  --ok: #2F7A57;
  --ok-soft: #E8F4EE;
  --warn: #8A5D0E;
  --warn-soft: #FBF2DF;
  --danger: #B23A3A;
  --danger-soft: #FBEAEA;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 34, 56, .05), 0 4px 16px rgba(42, 34, 56, .06);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --brand: "Cormorant Garamond", "Times New Roman", serif;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-member, body.nav-admin { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 248, 243, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; gap: 8px;
  max-width: 1040px; margin: 0 auto; height: 56px; padding: 0 16px;
}
.topbar-back { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; color: var(--ink); border-radius: 50%; }
.topbar-back:active { background: var(--surface-2); }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); text-decoration: none; }
.brand-mark { width: 24px; height: 24px; color: var(--gold); }
.brand-word { font-family: var(--brand); font-size: 26px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---- layout ---- */
.page { max-width: 640px; margin: 0 auto; padding: 16px; }
.is-wide .page { max-width: none; padding: 0; }
.container > * + * { margin-top: 16px; }
.narrow { max-width: 520px; margin: 0 auto; }
.narrow > * + * { margin-top: 16px; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; color: inherit; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: inline; }
.link-button { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link { color: var(--primary); }

.page-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 8px 0 4px; }
.lead { color: var(--ink-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-title-sm { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.greeting { font-family: var(--serif); font-size: 15px; color: var(--ink-2); margin: 4px 0 0; }
.sub-title { font-size: 14px; font-weight: 700; margin: 16px 0 6px; color: var(--ink-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, border-color .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 14px 24px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-like { background: var(--rose); color: #fff; }
.btn-like:hover { background: #A9444C; }
.btn-done { background: var(--surface-2); color: var(--ink-2); cursor: default; }
.btn-danger { background: var(--danger); color: #fff; }
.icon-heart { width: 16px; height: 16px; fill: currentColor; }
.btn-lg .icon-heart { width: 20px; height: 20px; }

/* ---- cards & forms ---- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.form > * + * { margin-top: 14px; }
.form-section-title { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.form-section + .form-section { margin-top: 16px; }
.form-section > * + *, .card.form > * + * { margin-top: 14px; }
.form-section > .field-follow { margin-top: 8px; }
.ib { display: inline-block; }
.field { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.field-label em { font-style: normal; font-size: 11px; color: var(--rose); margin-left: 4px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 16px; /* iOSの自動ズームを防ぐ */
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23625A70' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
textarea { min-height: 0; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.hint { display: block; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--primary); }
.check.small { font-size: 13px; margin-top: 8px; }
.radio-list { display: grid; gap: 10px; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { flex: 1 1 auto; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: block; text-align: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font-size: 14px; white-space: nowrap;
}
.segmented input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.segmented input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.readonly-line { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.readonly-line span { color: var(--ink-2); font-weight: 700; font-size: 13px; }
.photo-edit { display: flex; gap: 16px; align-items: center; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pledge { background: var(--gold-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.pledge-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.pledge ul { margin: 0 0 10px; padding-left: 1.2em; font-size: 14px; }

/* ---- flash / banners ---- */
.flash { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin: 0 0 12px; background: var(--primary-soft); color: var(--primary); }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-match { background: linear-gradient(120deg, var(--rose-soft), var(--gold-soft)); color: var(--rose); font-weight: 700; text-align: center; padding: 14px; }
.banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-size: 14px;
}
.banner-like { background: var(--rose-soft); border-color: #F2D3D6; color: var(--rose); }
.banner-like .icon-heart { width: 20px; height: 20px; flex: none; }
.banner-arrow { margin-left: auto; font-size: 20px; line-height: 1; color: var(--ink-2); }
.empty { text-align: center; padding: 32px 16px; color: var(--ink-2); }
.empty-title { font-family: var(--serif); font-size: 16px; color: var(--ink); font-weight: 600; }
.notice ul { padding-left: 1.2em; }
.notice-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 700; line-height: 1.7;
}
.chip-like { background: var(--rose-soft); color: var(--rose); }
.chip-like .icon-heart { width: 13px; height: 13px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }

/* ---- avatars ---- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-initial {
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; line-height: 1;
  background: linear-gradient(145deg, hsl(var(--hue) 40% 90%), hsl(var(--hue) 35% 80%));
  color: hsl(var(--hue) 30% 32%);
}
.avatar-sm { width: 36px; height: 36px; font-size: 15px; }
.avatar-md { width: 52px; height: 52px; font-size: 20px; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.avatar-xl { width: 96px; height: 96px; font-size: 38px; }
.avatar-fill { width: 100%; height: 100%; border-radius: 0; font-size: 44px; }
.avatar-hero { width: 100%; height: 100%; border-radius: 0; font-size: 96px; }

/* ---- person cards ---- */
.person-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.person {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.person-link { display: block; color: inherit; text-decoration: none; flex: 1; }
.person-photo { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); }
.person-active {
  position: absolute; left: 8px; bottom: 8px; padding: 1px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); font-size: 11px; font-weight: 700; color: var(--ink-2);
}
.person-active.is-online::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3BA776; margin-right: 4px; vertical-align: 1px; }
.person-body { padding: 10px 12px 4px; }
.person-name { font-weight: 700; font-size: 15px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-age { font-weight: 400; font-size: 13px; color: var(--ink-2); margin-left: 6px; }
.person-meta { font-size: 12px; color: var(--ink-2); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-faith { font-size: 11px; color: var(--gold); font-weight: 700; margin: 2px 0 0; }
.person-actions { padding: 8px 12px 12px; }
.person-actions .btn { width: 100%; }

/* ---- profile ---- */
.profile-hero:has(.avatar-initial) { aspect-ratio: 16 / 10; }
.profile-hero { aspect-ratio: 1 / 1; max-height: 62vh; width: calc(100% + 32px); margin: -16px -16px 0; overflow: hidden; background: var(--surface-2); }
@media (min-width: 640px) { .profile-hero { width: 100%; margin: 0; border-radius: var(--radius); } }
.profile-body { position: relative; margin-top: -24px; }
.profile-head { background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; padding: 16px 16px 4px; margin: 0 -16px; }
@media (min-width: 640px) { .profile-head { margin: 0; border-radius: var(--radius); } }
.profile-name { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.profile-name span { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--ink-2); margin-left: 8px; }
.status-dot { font-size: 12px; color: var(--ink-2); }
.status-dot.is-online::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3BA776; margin-right: 6px; }
.profile-section h2 { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.profile-more { text-align: center; }
.verse-card {
  margin: 0; padding: 18px 18px 16px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--gold-soft), #FFF9F0); border: 1px solid #EBDDC4;
}
.verse-card figcaption { font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .08em; margin-bottom: 6px; }
.verse-card blockquote { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.9; }
.info { margin: 0; }
.info-row { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--ink-2); }
.info-row dd { margin: 0; overflow-wrap: anywhere; }
.action-bar {
  position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); z-index: 10;
  margin: 16px 0 0; padding: 8px 0;
}
.action-bar .btn { box-shadow: 0 6px 20px rgba(42, 34, 56, .18); }

/* ---- tab bar ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: space-around;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tab {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; max-width: 120px;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-active { color: var(--primary); }
.tab.is-active svg { fill: var(--primary-soft); }
.tab-badge {
  position: absolute; top: 6px; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--rose); color: #fff; font-size: 10.5px; line-height: 18px; text-align: center;
}
.tabbar-admin .tab { font-size: 12px; }
.tabbar-admin .tab-badge { top: 10px; margin-left: 18px; }

/* ---- matches / chat ---- */
.thread-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thread-list li + li { border-top: 1px solid var(--line); }
.thread { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; }
.thread:active { background: var(--surface-2); }
.thread-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread-top { display: flex; justify-content: space-between; gap: 8px; }
.thread-preview { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-preview.is-unread { color: var(--ink); font-weight: 700; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }

.chat-page .page { padding: 0; max-width: 720px; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 57px); }
.chat-head { display: flex; align-items: center; gap: 4px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-partner { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.chat-partner > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.chat-partner .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--primary); flex: none; }
.icon-btn:active { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.icon-btn svg circle { fill: currentColor; stroke: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.chat-note { align-self: center; max-width: 92%; font-size: 12px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; text-align: center; }
.msg { display: flex; align-items: flex-end; gap: 6px; max-width: 82%; }
.msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble {
  margin: 0; padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--surface);
  border: 1px solid var(--line); overflow-wrap: anywhere; line-height: 1.6;
}
.msg.is-mine .msg-bubble { background: var(--primary); color: #fff; border-color: var(--primary); border-radius: 18px 18px 6px 18px; }
.msg-meta { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.msg-system { align-self: center; font-size: 12px; color: var(--gold); background: var(--gold-soft); padding: 6px 12px; border-radius: 999px; margin: 0; }
.msg-system span { color: var(--ink-2); margin-left: 4px; }
.chat-form {
  display: flex; gap: 8px; align-items: flex-end; padding: 8px 12px calc(8px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--line);
}
.chat-form textarea { flex: 1; min-height: 44px; max-height: 140px; border-radius: 22px; padding: 10px 16px; resize: none; }
.chat-form .btn { flex: none; }

.video-page .page { max-width: 960px; padding: 0; }
.video-wrap { height: calc(100dvh - 57px); background: #111; }
.video-frame { width: 100%; height: 100%; border: 0; }
.video-intro { text-align: center; margin-top: 16px; }
.video-intro .avatar { margin: 8px auto 0; }

/* ---- filters / lists ---- */
.filter summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; list-style: none; }
.filter summary::-webkit-details-marker { display: none; }
.filter summary::after { content: "▾"; color: var(--ink-2); margin-left: 8px; }
.filter[open] summary::after { content: "▴"; }
.filter-form { margin-top: 12px; }
.filter-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.pager { display: flex; justify-content: center; gap: 12px; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: flex; justify-content: space-between; padding: 14px 4px; color: var(--ink); text-decoration: none; }
.menu a::after { content: "›"; color: var(--ink-2); font-size: 20px; line-height: 1; }
.me-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.me-card > span { display: flex; flex-direction: column; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.event-card {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius);
  color: inherit; text-decoration: none; box-shadow: var(--shadow);
}
.event-card .chip { align-self: flex-start; margin-top: 4px; }
.event-date { font-size: 12px; font-weight: 700; color: var(--gold); }

/* ---- admin ---- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--ink-2); }
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.search-inline { display: flex; gap: 8px; }
.tabs-inline { display: flex; gap: 6px; }
.tabs-inline a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.tabs-inline a.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.report .quote { background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; }

/* ---- legal ---- */
.legal h2 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: 4px; }
.draft-note { font-size: 13px; background: var(--warn-soft); color: var(--warn); padding: 8px 12px; border-radius: var(--radius-sm); }

/* ---- landing page ---- */
.lp .topbar { background: rgba(251, 248, 243, .85); }
.hero {
  position: relative; overflow: hidden;
  padding: 44px 20px 40px; text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, #FFFFFF 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--gold-soft) 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: auto -30% 55% -30%; height: 340px;
  background: radial-gradient(closest-side, rgba(160, 122, 67, .16), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 640px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--gold); border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-bottom: 18px; }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 7.4vw, 44px); line-height: 1.55; letter-spacing: .02em; color: var(--ink); }
.hero-lead { margin: 18px auto 0; max-width: 32em; color: var(--ink-2); font-size: 15px; text-align: left; }
@media (min-width: 560px) { .hero-lead { text-align: center; } }
.hero-cta { margin-top: 26px; }
.hero-cta .btn { min-width: min(100%, 320px); }
.hero-sub { font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.price-pill {
  display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
  margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid #EBDDC4; font-size: 13px;
}
.price-pill strong { font-family: var(--serif); font-size: 18px; color: var(--primary); }
.price-pill-label { background: var(--gold); color: #fff; font-weight: 700; font-size: 11px; padding: 2px 10px; border-radius: 999px; }

.lp-section { max-width: 960px; margin: 0 auto; padding: 44px 20px 8px; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: 21px; text-align: center; margin-bottom: 24px; }
.section-title::after { content: ""; display: block; width: 28px; height: 2px; background: var(--gold); margin: 12px auto 0; }
.features { display: grid; gap: 14px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feature h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 12px 0 6px; }
.feature p { color: var(--ink-2); font-size: 14px; margin: 0; }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { list-style: none; counter-reset: step; margin: 0 auto; padding: 0; max-width: 560px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 52px; display: flex; flex-direction: column; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff; font-family: var(--brand); font-size: 20px; font-weight: 600;
}
.steps li::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps strong { font-size: 15px; }
.steps span { font-size: 14px; color: var(--ink-2); }
.price-card {
  max-width: 420px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid #EBDDC4;
  border-radius: 20px; padding: 26px 22px 20px; box-shadow: 0 10px 30px rgba(160, 122, 67, .12);
}
.price-card-label { display: inline-block; background: var(--gold); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 14px; border-radius: 999px; margin: 0; }
.price-card-amount { font-family: var(--serif); margin: 10px 0 0; font-size: 18px; color: var(--ink); }
.price-card-amount .yen { font-size: 46px; font-weight: 600; color: var(--primary); letter-spacing: .01em; }
.price-card-amount small { font-size: 13px; color: var(--ink-2); font-family: var(--font); margin-left: 2px; }
.price-card-sub { font-size: 13px; color: var(--ink-2); margin: 0; }
.price-card-note { font-size: 13px; color: var(--gold); font-weight: 700; margin: 8px 0 0; }
.checklist { list-style: none; text-align: left; margin: 18px auto; padding: 0; max-width: 260px; }
.checklist li { position: relative; padding: 5px 0 5px 28px; font-size: 14px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 14px; height: 8px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.fine { font-size: 12px; color: var(--ink-2); margin: 10px 0 0; }
.safety-list { list-style: none; margin: 0 auto; padding: 0; max-width: 640px; display: grid; gap: 12px; }
.safety-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 14px; color: var(--ink-2); }
.safety-list strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.faq { max-width: 640px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 24px 14px 0; font-weight: 700; font-size: 15px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 20px; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 14px; color: var(--ink-2); padding-bottom: 14px; margin: 0; }
.lp-cta {
  margin: 48px 0 0; padding: 48px 20px; text-align: center; color: #fff;
  background: radial-gradient(100% 120% at 50% 0%, #5D4A84 0%, var(--primary) 60%, #33284A 100%);
}
.lp-cta h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 20px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 0; }
.nav-public:not(.lp) .site-footer { margin-top: 48px; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 28px 20px calc(28px + var(--safe-b)); text-align: center; }
.brand-footer { justify-content: center; margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; }
.footer-links a { color: var(--ink-2); }
.footer-legal { font-size: 12px; color: var(--ink-2); margin: 16px 0 6px; }
.footer-copy { font-size: 12px; color: var(--ink-2); margin: 0; }

/* マイページの折りたたみ(パスワード変更) */
details.card > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "+"; color: var(--ink-2); font-size: 18px; }
details.card[open] > summary::after { content: "−"; }
details.card[open] > summary { margin-bottom: 12px; }
