:root {
  --bg: #ededef;
  --bg-2: #e2e2e4;
  --paper: #ffffff;
  --paper-warm: #fafafa;
  --ink: #14141a;            /* near-black ink */
  --ink-soft: #2e2e34;       /* dark charcoal */
  --muted: #82828a;
  --line: #d4d4d8;
  --line-soft: #e6e6ea;
  --accent: #1a1a20;         /* deep charcoal — premium */
  --accent-soft: #6a6a72;
  --accent-bg: #f3f3f5;       /* warm pearl */
  --shadow-xs: 0 1px 2px rgba(20, 20, 26, 0.05);
  --shadow-sm: 0 4px 12px rgba(20, 20, 26, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 20, 26, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 20, 26, 0.12);
  --radius: 16px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  /* 源ノ角ゴシック系（Noto Sans CJK JP / Hiragino Sans / Yu Gothic）を全面採用 */
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic Pr6N", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(20, 20, 26, 0.06), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(20, 20, 26, 0.05), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.85;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  min-height: 100vh;
}

/* （旧）UI 用フォント指定はサイト全体がゴシックになったため不要だが、
   個別オーバーライドが残っている部分との整合のため空 stack で上書きしておく */
button, input, select, textarea,
.kv dt, .meta-sub, .footnote, .form label, .dob legend, .gender legend,
.today-label, .r-mark, .r-cat, .back a {
  font-family: inherit;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 96px;
}

/* --- header / logo --- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.brand .logo {
  width: 140px;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

@media (max-width: 480px) {
  .brand { margin-bottom: 8px; }
  .brand .logo { width: 100px; }
}

.hero {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
}

.hero h1 {
  font-size: 26px;
  letter-spacing: 0.3em;
  margin: 10px 0 10px;
  color: var(--ink);
  font-weight: 400;
  position: relative;
  display: inline-block;
  text-indent: 0.3em;
}

@media (max-width: 480px) {
  .hero { margin-bottom: 20px; }
  .hero h1 { font-size: 22px; letter-spacing: 0.2em; text-indent: 0.2em; }
}

.hero h1::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink), transparent);
  margin: 18px auto 0;
}

.hero .lead {
  color: var(--ink-soft);
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.meta { margin: 6px 0 2px; font-size: 14px; color: var(--ink-soft); }
.meta strong { color: var(--ink); font-weight: 600; }
.meta-sub { color: var(--muted); margin: 4px 0 0; font-size: 12px; letter-spacing: 0.08em; }

/* --- card --- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px 30px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  animation: cardIn 0.5s ease-out both;
  position: relative;
}
@media (max-width: 480px) {
  .card { padding: 24px 14px; }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.10s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.20s; }
.card:nth-child(6) { animation-delay: 0.25s; }
.card:nth-child(7) { animation-delay: 0.30s; }
.card:nth-child(8) { animation-delay: 0.35s; }

/* --- today's hint card (premium accent) --- */
.quote {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  padding-left: 22px;
  padding-right: 22px;
}

.quote-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.quote-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-weight: 600;
}

.quote-date {
  font-size: 12px;
  color: var(--muted);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.quote-body {
  font-family: "Klee One", "游教科書体 Ma", "HiraMinProN-W3", "ヒラギノ明朝 ProN W3", serif;
  font-size: 13.5px;
  color: var(--ink);
  margin: 0;
  line-height: 2.1;
  letter-spacing: 0.04em;
  white-space: pre-line;
  font-weight: 400;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.punct {
  margin: 0 0.12em;
}
.quote-body .punct {
  margin: 0 0.22em;
}

.today {
  background:
    linear-gradient(135deg, #1a1a20 0%, #2a2a32 100%);
  border: 1px solid #2a2a32;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  color: #f0f0f1;
}

.today::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.today::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(255,255,255,0.04), transparent 50%);
  pointer-events: none;
}

.today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.today-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #c4c4c8;
  font-weight: 500;
}

.today-date {
  font-size: 13px;
  color: #a8a8b0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.today-tagline {
  font-size: 21px;
  font-weight: 500;
  color: #ffffff;
  margin: 10px 0 12px;
  letter-spacing: 0.04em;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.today-body {
  font-size: 14px;
  color: #d6d6da;
  margin: 0;
  line-height: 1.85;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}

.today-caution {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.today-caution-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: #a8a8ae;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  margin-bottom: 6px;
  font-weight: 500;
}

.today-caution-body {
  margin: 0;
  font-size: 13.5px;
  color: #c8c8cd;
  line-height: 1.85;
}

/* --- form --- */
.form label {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.form input[type="text"],
.form input[type="password"],
.form select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  color: var(--ink);
  margin-top: 6px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form input[type="text"]:focus,
.form input[type="password"]:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 111, 74, 0.12);
}

.dob, .gender {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

.dob legend, .gender legend {
  font-size: 12px;
  color: var(--muted);
  padding: 0 0 8px;
  letter-spacing: 0.08em;
}

.dob-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.dob-age {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: right;
}

.dob-age span {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  margin: 0 2px;
}

.gender label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 18px;
  font-size: 14px;
  color: var(--ink);
}

.primary {
  width: 100%;
  padding: 17px;
  font-size: 13px;
  letter-spacing: 0.5em;
  background: linear-gradient(180deg, #2a2a32 0%, var(--ink) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 500;
  transition: transform 0.12s, box-shadow 0.18s, filter 0.18s;
  box-shadow: 0 6px 18px rgba(20,20,26,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  text-indent: 0.5em;
}
.primary:hover { filter: brightness(1.18); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(20,20,26,0.28), inset 0 1px 0 rgba(255,255,255,0.1); }
.primary:active { transform: translateY(0); }

.primary-link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.my-profile-card {
  background: var(--accent-bg);
  border: 1px solid var(--line);
  text-align: center;
  margin-bottom: 32px;
}
.my-profile-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}
.my-profile-summary {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 16px;
}

.sub-menu-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 24px;
  transition: transform 0.12s, box-shadow 0.18s;
}
.sub-menu-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20,20,26,0.10);
}
.sub-menu-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.sub-menu-title::after {
  content: " →";
  color: var(--muted);
  font-weight: 400;
}
.sub-menu-desc {
  font-size: 12.5px;
  color: var(--muted);
}

.save-profile {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  text-align: center;
}
.save-profile-title {
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--ink);
}
.save-profile-lead {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.7;
}

.profile-actions {
  text-align: center;
}
.profile-action-form {
  margin-bottom: 18px;
}
.profile-action-sub {
  font-size: 13px;
  color: var(--muted);
}
.profile-action-sub a {
  color: var(--ink);
}
.link-button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}

/* === HINT スライダー === */
.hint-slider-wrap {
  margin-bottom: 20px;
}
.hint-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 4px 0 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.hint-slider::-webkit-scrollbar { display: none; }

.hint-slider .hint-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin-bottom: 0;
}

.hint-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 4px;
}
.hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 20, 26, 0.18);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hint-dot:hover { background: rgba(20, 20, 26, 0.32); }
.hint-dot.active {
  background: var(--ink);
  transform: scale(1.18);
}

.hint-swipe-hint {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 4px 0 0;
}

/* === プロフィールページの今月・今年カード === */
.profile-flow {
  border-left: 3px solid var(--line);
}
.profile-flow.mark-best   { border-left-color: var(--accent); }
.profile-flow.mark-good   { border-left-color: var(--accent-soft); }
.profile-flow.mark-normal { border-left-color: #c0c0c4; }
.profile-flow.mark-low    { border-left-color: #c4c4c8; }
.profile-flow.mark-worst  { border-left-color: #c4c4c8; }
.profile-flow.mark-caution{ border-left-color: #6e6e76; }

.profile-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.profile-flow-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--muted);
  font-weight: 600;
}
.profile-flow-when {
  font-size: 13px;
  color: var(--ink);
}
.profile-flow-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.profile-flow-mark {
  font-size: 16px;
  color: var(--muted);
}
.profile-flow-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}
.profile-flow-cat {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.profile-flow-tagline {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 8px 0 10px;
  line-height: 1.7;
}
.profile-flow-body {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.85;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.profile-flow-twocol {
  margin-top: 12px;
}

/* === 今日のタスク（HINT カード内）=== */
.day-tasks {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.day-task-block {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px 14px 12px;
}
.day-task-title {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #d6d6da;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
/* タスク項目リスト */
.task-items {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px 8px 8px;
  transition: background 0.18s, border-color 0.18s;
}
.task-item.checked-achieved {
  background: rgba(120, 180, 130, 0.16);
  border-color: rgba(120, 180, 130, 0.45);
}
.task-item.checked-missed {
  background: rgba(190, 110, 110, 0.14);
  border-color: rgba(190, 110, 110, 0.4);
}
.task-check {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.18);
  color: #d6d6da;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.task-check:hover { border-color: rgba(255, 255, 255, 0.6); }
.task-check[data-state="achieved"] {
  background: rgba(120, 180, 130, 0.85);
  border-color: rgba(120, 180, 130, 1);
  color: #fff;
}
.task-check[data-state="missed"] {
  background: rgba(190, 110, 110, 0.85);
  border-color: rgba(190, 110, 110, 1);
  color: #fff;
}
.task-item-input {
  flex: 1;
  background: transparent;
  color: #f0f0f1;
  border: none;
  font-size: 14.5px;
  line-height: 1.6;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  padding: 4px 0;
  min-width: 0;
}
.task-item-input::placeholder { color: #8a8a8e; }
.task-item-input:focus { outline: none; }
.task-item.checked-achieved .task-item-input,
.task-item.checked-missed .task-item-input { color: #d6d6da; }
.task-delete {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  transition: color 0.18s, background 0.18s;
}
.task-delete:hover {
  color: #f0f0f1;
  background: rgba(255, 255, 255, 0.08);
}
.task-add {
  background: transparent;
  color: #d6d6da;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  cursor: pointer;
  width: 100%;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  transition: background 0.18s, border-color 0.18s;
}
.task-add:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 読み取り専用（月から反映）テキスト */
.task-item-text-readonly {
  flex: 1;
  color: #f0f0f1;
  font-size: 14.5px;
  line-height: 1.6;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  padding: 4px 0;
  user-select: text;
}
.task-item.task-item-readonly { padding-right: 12px; }
.task-empty-hint {
  list-style: none;
  text-align: center;
  font-size: 12.5px;
  color: #8a8a8e;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px 12px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

/* === 今日のタスクカード（マイプラン上部・ライトテーマ）=== */
.today-task-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.today-task-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.today-task-label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.today-task-date {
  font-size: 11.5px;
  color: var(--muted);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  white-space: nowrap;
}
.today-task-lead {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
}
.today-task-card .day-task-block {
  background: var(--paper-warm, #f3f3f5);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
}
.today-task-card .day-task-title {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.today-task-card .task-items {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-task-card .task-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px 6px 6px;
  transition: background 0.18s, border-color 0.18s;
}
.today-task-card .task-item.checked-achieved {
  background: rgba(120, 180, 130, 0.12);
  border-color: rgba(120, 180, 130, 0.45);
}
.today-task-card .task-item.checked-missed {
  background: rgba(190, 110, 110, 0.10);
  border-color: rgba(190, 110, 110, 0.4);
}
.today-task-card .task-check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.today-task-card .task-check[data-state="achieved"] {
  background: rgba(120, 180, 130, 0.85);
  border-color: rgba(120, 180, 130, 1);
  color: #fff;
}
.today-task-card .task-check[data-state="missed"] {
  background: rgba(190, 110, 110, 0.85);
  border-color: rgba(190, 110, 110, 1);
  color: #fff;
}
.today-task-card .task-item-input {
  flex: 1;
  background: transparent;
  color: var(--ink);
  border: none;
  font-size: 14px;
  line-height: 1.6;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  padding: 4px 0;
  min-width: 0;
}
.today-task-card .task-item-input::placeholder { color: #b6b6bd; }
.today-task-card .task-item-input:focus { outline: none; }
.today-task-card .task-delete {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.today-task-card .task-delete:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
}
.today-task-card .task-add {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  cursor: pointer;
  width: 100%;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.today-task-card .task-add:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--ink);
  color: var(--ink);
}

/* === メンターモード選択 === */
.ask-mode {
  border: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ask-mode-legend {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 600;
  padding: 0;
}
.ask-mode-option {
  display: block;
  cursor: pointer;
  position: relative;
}
.ask-mode-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ask-mode-card {
  display: block;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.ask-mode-option:hover .ask-mode-card {
  border-color: var(--ink-soft);
}
.ask-mode-option input[type="radio"]:checked + .ask-mode-card {
  border-color: var(--ink);
  background: var(--accent-bg);
  box-shadow: var(--shadow-xs);
}
.ask-mode-option input[type="radio"]:focus-visible + .ask-mode-card {
  outline: 2px solid var(--ink-soft);
  outline-offset: 2px;
}
.ask-mode-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.ask-mode-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* === アコーディオン内の目標フォーム === */
.goal-form {
  margin-top: 16px;
  padding: 14px 10px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.goal-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0 0 6px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.goal-label + .goal-input {
  margin-bottom: 12px;
}
.goal-input {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.7;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  resize: vertical;
  min-height: 50px;
  box-sizing: border-box;
}
.goal-input:focus {
  outline: none;
  border-color: var(--ink-soft);
}

/* === 目標 / やること チェックリスト === */
.checklist {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.checklist:empty { display: none; }
.checklist-item {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 0;
  transition: background 0.18s;
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item.is-open { background: rgba(0, 0, 0, 0.015); }

/* サマリー（折りたたみ時） */
.checklist-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 10px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.checklist-summary-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.checklist-summary-text.is-placeholder { color: var(--muted); }
.checklist-summary-meta {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.checklist-summary-chevron {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.18s;
}
.checklist-item.is-open .checklist-summary-chevron { transform: rotate(180deg); }

/* 詳細（展開時） */
.checklist-detail {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 4px 12px 12px;
  border-top: 1px dashed var(--line-soft);
}
.checklist-item.is-open .checklist-detail { display: flex; }
.checklist-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.checklist-detail-row .checklist-deadline-wrap {
  order: 0;
  flex: 1 1 auto;
}
.checklist-detail-row .checklist-delete {
  order: 1;
}

/* ダーク（人生の大きな目標）バリアント */
.life-goal-card .checklist-summary { color: #f0f0f1; }
.life-goal-card .checklist-summary-text.is-placeholder { color: rgba(240, 240, 241, 0.55); }
.life-goal-card .checklist-summary-meta { color: rgba(240, 240, 241, 0.7); }
.life-goal-card .checklist-summary-chevron { color: rgba(240, 240, 241, 0.7); }
.life-goal-card .checklist-detail { border-top-color: rgba(255, 255, 255, 0.12); }
.checklist-item.no-check {
  /* チェックボタンなしの場合、左側に余白を入れない */
}
.checklist-item.no-check .checklist-text {
  padding-left: 4px;
}
.checklist-item.checked-achieved {
  background: rgba(91, 141, 106, 0.08);
  border-color: rgba(91, 141, 106, 0.45);
}
.checklist-item.checked-missed {
  background: rgba(160, 100, 100, 0.08);
  border-color: rgba(160, 100, 100, 0.4);
}
.checklist-check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 20, 26, 0.32);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.checklist-check:hover { border-color: rgba(20, 20, 26, 0.6); }
.checklist-check[data-state="achieved"] {
  background: rgba(91, 141, 106, 0.85);
  border-color: rgba(91, 141, 106, 1);
  color: #fff;
}
.checklist-check[data-state="missed"] {
  background: rgba(160, 100, 100, 0.85);
  border-color: rgba(160, 100, 100, 1);
  color: #fff;
}
.checklist-text {
  flex: 1 1 60%;
  background: transparent;
  color: var(--ink);
  border: none;
  font-size: 14px;
  line-height: 1.6;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  padding: 4px 0;
  min-width: 0;
}
.checklist-text::placeholder { color: var(--muted); }
.checklist-text:focus { outline: none; }
.checklist-deadline-wrap {
  order: 3;
  flex: 1 1 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px 3px 10px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.checklist-deadline-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  font-weight: 600;
  white-space: nowrap;
}
.checklist-deadline {
  background: transparent;
  border: none;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.checklist-deadline:focus {
  outline: none;
}
.checklist-deadline-wrap:focus-within {
  border-color: var(--ink-soft);
}
.checklist-delete {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  padding: 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  transition: color 0.18s, background 0.18s;
}
.checklist-delete:hover {
  color: var(--ink);
  background: var(--accent-bg);
}
.checklist-add {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  cursor: pointer;
  width: 100%;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  margin-bottom: 14px;
}
.checklist-add:hover {
  background: var(--paper-warm);
  border-color: var(--ink-soft);
  color: var(--ink);
}

/* === 進捗バー === */
.progress-summary {
  margin-bottom: 14px;
}
.progress-summary:empty { display: none; }

.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--accent-bg);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4d4d54 0%, #1f1f23 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.progress-rate {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.progress-detail {
  font-size: 12px;
  color: var(--muted);
}

/* === ふりかえりの達成率カード === */
.history-rate-card {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 14px;
  text-align: center;
}
.history-rate-num {
  font-size: 42px;
  font-weight: 700;
  color: #1f1f23;
  line-height: 1;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.history-rate-pct {
  font-size: 22px;
  font-weight: 600;
  margin-left: 4px;
  color: #4d4d54;
}
.history-rate-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 4px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.history-rate-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* === 月次AIレビュー === */
.monthly-review-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.monthly-review-title {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.06em;
}
.monthly-review-lead {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.7;
}
.monthly-review-btn {
  margin-top: 4px;
}
.monthly-review-locked {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 12px;
  margin: 0;
}
.monthly-review-loading {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 12px;
  margin: 0;
}
.monthly-review-result {
  background: linear-gradient(135deg, #1a1a20 0%, #2a2a32 100%);
  border-radius: var(--radius-sm);
  padding: 22px 22px 18px;
  color: #f0f0f1;
  position: relative;
}
.monthly-review-month {
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #a8a8b0;
  margin: 0 0 16px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.monthly-block {
  margin-bottom: 16px;
}
.monthly-block:last-of-type { margin-bottom: 8px; }
.monthly-block-title {
  font-size: 14px;
  color: #d6d6da;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.monthly-block-body {
  font-size: 14.5px;
  line-height: 1.95;
  color: #f0f0f1;
  margin: 0;
  white-space: pre-line;
}
.monthly-review-clear {
  display: block;
  margin: 18px auto 0;
  background: transparent;
  border: none;
  color: #8a8a8e;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.monthly-review-clear:hover { color: #c4c4c8; }

/* === 目標レビュー（各月・各年のアコーディオン内） === */
.goals-review-area {
  margin-top: 14px;
}
.goals-review-area:empty { display: none; }
.goals-review-btn-mini {
  width: 100%;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  padding: 12px;
}
.goals-review-locked-mini {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* === 12ヶ月 / 12年 セクションの見分け === */
.rhythm-period-badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 600;
}
.rhythm-period-month {
  background: var(--accent-bg);
  color: var(--ink);
  border: 1px solid var(--line);
}
.rhythm-period-year {
  background: var(--ink);
  color: #fff;
}

/* 12ヶ月：ニュートラル */
.rhythm-month-card {
  background: var(--paper);
}

/* 12年：少し暖色寄りの背景 + 左ボーダーアクセント */
.rhythm-year-card {
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f5 100%);
  border-left: 4px solid var(--ink);
}
.rhythm-year-card .rhythm-row {
  background: rgba(255, 255, 255, 0.6);
}
.rhythm-year-card h2 {
  font-weight: 600;
}

/* === ふりかえりバッジ：クリックで状態切り替え === */
button.history-eval-badge {
  cursor: pointer;
  border: 1px solid transparent;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  transition: transform 0.1s, filter 0.18s;
}
button.history-eval-badge:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
button.history-eval-badge:active { transform: translateY(0); }
button.history-eval-badge.state-achieved { border-color: rgba(91, 141, 106, 0.45); }
button.history-eval-badge.state-missed { border-color: rgba(160, 100, 100, 0.45); }
button.history-eval-badge.state-pending { border-color: var(--line); }

/* === バックアップ / 復元 === */
.backup-card {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
}
.backup-title {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.backup-lead {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.8;
}
.backup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.backup-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 16px;
  font-size: 13px;
  letter-spacing: 0.18em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}
.backup-btn:active { transform: translateY(1px); }
.backup-btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink-soft);
}
.backup-btn-secondary:hover {
  background: var(--accent-bg);
}
.backup-status {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink);
  text-align: center;
  min-height: 18px;
  line-height: 1.7;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.backup-status.is-error { color: #6e6e76; }

/* === アンカーリンク：固定ヘッダーぶんスクロール余白 === */
[id="ask"], [id="today-words"], [id="today-hint"], [id="month-rhythm"],
[id="year-rhythm"], [id="history"], [id="life-goal"] {
  scroll-margin-top: 80px;
}

/* === ホーム画面のメニューカード === */
.home-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.home-card,
.home-card-form button.home-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.18s, border-color 0.18s;
  box-shadow: var(--shadow-xs);
}
.home-card:hover,
.home-card-form button.home-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.home-card:active,
.home-card-form button.home-card:active {
  transform: translateY(0);
}
.home-card-title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 6px;
}
.home-card-title::after {
  content: " →";
  color: var(--muted);
  margin-left: 6px;
  font-size: 14px;
  letter-spacing: 0;
}
.home-card-desc {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.02em;
}
.home-card-form {
  margin: 0;
  padding: 0;
}
.home-card-disabled,
.home-card-disabled-look {
  cursor: not-allowed;
  opacity: 0.6;
  background: var(--paper-warm);
}
.home-card-disabled .home-card-title::after,
.home-card-disabled-look .home-card-title::after {
  content: "";
}
.home-card-disabled:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}

/* === ハンバーガーボタン === */
.menu-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 26, 0.85);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  transition: background 0.18s;
}
.menu-toggle:hover { background: rgba(20, 20, 26, 1); }
.menu-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}

/* ステータスバーがある場合の干渉回避：左に余白 */
.status-bar { padding-left: 60px !important; }

/* === ドロワー === */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 80vw;
  background: linear-gradient(180deg, #1a1a20 0%, #2a2a32 100%);
  color: #f0f0f1;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  padding: 24px 0 32px;
  overflow-y: auto;
}
.menu-open .drawer { transform: translateX(0); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.menu-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.drawer-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: transparent;
  color: #d6d6da;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  border-radius: 50%;
  transition: background 0.18s, color 0.18s;
}
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drawer-brand {
  text-align: center;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}
.drawer-logo {
  width: 110px;
  height: auto;
  filter: brightness(1.4) contrast(0.9) invert(1);
  opacity: 0.95;
}

.drawer-section {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.drawer-section:last-child { border-bottom: none; }

.drawer-item {
  display: block;
  width: 100%;
  padding: 12px 24px;
  color: #f0f0f1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s;
}
button.drawer-item { font-size: 15px; }
.drawer-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.drawer-item-parent {
  font-weight: 600;
  letter-spacing: 0.08em;
  position: relative;
  margin: 6px 14px 4px;
  padding: 13px 38px 13px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid #8a8a92;
  border-radius: 4px;
  width: auto;
}
.drawer-item-parent::after {
  content: '›';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-55%);
  color: #c4c4c8;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}
.drawer-item-parent:hover,
.drawer-item-parent:active {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #ffffff;
}
.drawer-item-parent:active::after { transform: translateY(-55%) translateX(2px); }

.drawer-notice {
  margin: 8px 14px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: #e8e8ea;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #c4c4c8;
  border-radius: 0 4px 4px 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.drawer-notice a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}

.drawer-sub {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.drawer-sub li { padding: 0; }

.drawer-form {
  margin: 0;
  padding: 0;
}

.drawer-sub-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 24px 9px 40px;
  color: #c4c4c8;
  text-decoration: none;
  font-size: 13px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.drawer-sub-item::before {
  content: '─';
  position: absolute;
  left: 24px;
  color: #6e6e76;
}
.drawer-sub-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.drawer-disabled {
  color: #6e6e76;
  cursor: default;
  font-style: italic;
}
.drawer-disabled:hover {
  background: transparent;
  color: #6e6e76;
}
.goal-status {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  min-height: 16px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.goal-hint {
  margin: -2px 0 8px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper-warm);
  border-left: 2px solid var(--ink-soft);
  border-radius: 0 4px 4px 0;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* === ふりかえりカード === */
.history-summary {
  margin-bottom: 18px;
}
.history-stats {
  display: flex;
  gap: 10px;
}
.history-stat {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper-warm);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, box-shadow 0.18s, border-color 0.18s;
}
.history-stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.history-stat.is-active {
  border-width: 2px;
  box-shadow: var(--shadow-sm);
}
.history-stat.stat-achieved.is-active { border-color: #1f1f23; }
.history-stat.stat-missed.is-active { border-color: #6e6e76; }
.history-stat.stat-pending.is-active { border-color: var(--ink-soft); }
.history-filter-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.history-filter-note strong { color: var(--ink); }
.history-filter-clear {
  background: none;
  border: none;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12.5px;
  padding: 0;
  font-family: inherit;
  margin-left: 6px;
}
.history-stat-num {
  display: block;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.history-stat-label {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.18em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.history-stat.stat-achieved { border-color: rgba(91, 141, 106, 0.5); background: rgba(91, 141, 106, 0.06); }
.history-stat.stat-achieved .history-stat-num { color: #1f1f23; }
.history-stat.stat-missed { border-color: rgba(160, 100, 100, 0.5); background: rgba(160, 100, 100, 0.06); }
.history-stat.stat-missed .history-stat-num { color: #6e6e76; }
.history-stat.stat-pending { color: var(--muted); }
.history-stat.stat-pending .history-stat-num { color: var(--ink-soft); }

.history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.history-empty {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 24px 12px;
  background: var(--paper-warm);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  margin: 0;
}
.history-row {
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 14px;
}
.history-date {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.history-task {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 8px 10px 8px 12px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-task-kind { display: none; }
.history-eval-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.history-eval-badge.state-achieved {
  background: rgba(91, 141, 106, 0.15);
  color: #1f1f23;
}
.history-eval-badge.state-missed {
  background: rgba(160, 100, 100, 0.15);
  color: #6e6e76;
}
.history-eval-badge.state-pending {
  background: var(--accent-bg);
  color: var(--muted);
}
.history-task-body {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-line;
}
.history-eval-badge { flex: 0 0 auto; }

.history-eval-select {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) center, calc(100% - 7px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 22px 4px 12px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  cursor: pointer;
  color: var(--ink);
}
.history-eval-select:focus { outline: 1px solid var(--ink); }
.history-eval-select.state-achieved {
  background-color: rgba(91, 141, 106, 0.15);
  border-color: rgba(91, 141, 106, 0.45);
  color: #1f1f23;
}
.history-eval-select.state-missed {
  background-color: rgba(160, 100, 100, 0.15);
  border-color: rgba(160, 100, 100, 0.45);
  color: #6e6e76;
}
.history-eval-select.state-pending {
  background-color: var(--accent-bg);
  color: var(--muted);
}

.error {
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
  font-size: 14px;
}

.footnote {
  text-align: center;
  color: var(--muted);
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* --- result summary --- */
.summary {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.ganshi-box {
  text-align: center;
  flex-shrink: 0;
  padding: 14px 30px;
  border-right: 1px solid var(--line);
  position: relative;
}

.ganshi-box .big {
  font-size: 62px;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.05;
  font-weight: 400;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.ganshi-box .label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
  letter-spacing: 0.22em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 500;
}

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 22px;
  margin: 0;
  font-size: 14px;
  flex: 1;
  min-width: 200px;
}

.kv dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  align-self: center;
}
.kv dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

/* --- section --- */
.section h2 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: 0.16em;
  font-weight: 500;
  padding-left: 16px;
  position: relative;
}
.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-soft));
}

.section .subtitle {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 8px 0 22px;
  padding-left: 18px;
  letter-spacing: 0.18em;
  font-weight: 500;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  text-transform: uppercase;
}

.section .body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
  letter-spacing: 0.06em;
}

.subsection {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
}
.subsection:first-of-type {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}
.subsection-heading {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 600;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  position: relative;
  padding-left: 14px;
}
.subsection-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.subsection-body {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  letter-spacing: 0.06em;
  white-space: pre-wrap;
}

/* --- rhythm list --- */
.rhythm h2,
.life-goal-card h2 {
  font-size: 17px;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: 0.16em;
  font-weight: 500;
}

.life-goal-card {
  background: linear-gradient(135deg, #1a1a20 0%, #2a2a32 100%);
  border-color: #2a2a32;
  color: #f0f0f1;
}
.life-goal-card .goal-form {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}
.life-goal-card h2 {
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #fff;
}
.life-goal-card .subtitle {
  font-size: 11px;
  color: rgba(240, 240, 241, 0.7);
  margin: 4px 0 12px;
  line-height: 1.55;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.life-goal-card .checklist {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}
.life-goal-card .checklist-item {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.life-goal-card .checklist-item.is-open { background: rgba(255, 255, 255, 0.04); }
.life-goal-card .checklist-text {
  background: transparent;
  color: #f0f0f1;
}
.life-goal-card .checklist-text::placeholder { color: rgba(240, 240, 241, 0.55); }
.life-goal-card .checklist-delete { color: rgba(255, 255, 255, 0.6); }
.life-goal-card .checklist-delete:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.life-goal-card .checklist-add {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
.life-goal-card .checklist-add:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.life-goal-card .goal-hint { color: rgba(240, 240, 241, 0.7); }
.life-goal-card .goal-status { color: rgba(240, 240, 241, 0.6); }

/* === メンター相談履歴 === */
.mentor-history-list-card { padding: 0; overflow: hidden; }
.mentor-history-empty {
  margin: 0;
  padding: 24px 22px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.mentor-history-item {
  border-bottom: 1px solid var(--line-soft);
}
.mentor-history-item:last-of-type { border-bottom: none; }
.mentor-history-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.mentor-history-summary::-webkit-details-marker { display: none; }
.mentor-history-date {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.mentor-history-question {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mentor-history-chevron {
  flex: 0 0 auto;
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.18s;
}
.mentor-history-item[open] .mentor-history-chevron { transform: rotate(180deg); }
.mentor-history-item[open] .mentor-history-summary { background: rgba(0, 0, 0, 0.02); }
.mentor-history-detail {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mentor-history-block-label {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  margin-bottom: 4px;
}
.mentor-history-block-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
  white-space: pre-wrap;
  letter-spacing: 0.06em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.mentor-history-answer {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.mentor-history-delete {
  align-self: flex-end;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.mentor-history-delete:hover { color: var(--ink); border-color: var(--ink); }
.mentor-history-actions {
  padding: 12px 16px;
  text-align: right;
  border-top: 1px dashed var(--line-soft);
}
.mentor-history-clear {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.mentor-history-clear:hover { color: var(--ink); border-color: var(--ink); }

.mentor-history-followup-wrap {
  margin: 4px 0 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fafafa;
}
.mentor-history-followup-toggle {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.mentor-history-followup-toggle::-webkit-details-marker { display: none; }
.mentor-history-followup-toggle::before {
  content: "+ ";
  color: var(--muted);
}
.mentor-history-followup-wrap[open] .mentor-history-followup-toggle::before {
  content: "− ";
}
.mentor-history-followup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 14px 14px;
}
.mentor-history-followup-form .ask-textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.mentor-history-followup-note {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.mentor-history-followup-disabled {
  margin: 0 14px 8px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.mentor-history-followup-birth {
  background: #f3f3f5;
  border: 1px solid #d8d8dc;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 4px;
}
.mentor-history-followup-birth-note {
  margin: 0 0 8px;
  font-size: 12px;
  color: #1f1f23;
  line-height: 1.6;
}
.mentor-history-followup-birth-row {
  display: flex;
  gap: 8px;
}
.mentor-history-followup-birth-row label {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 11px;
  color: #6e6e76;
  gap: 4px;
}
.mentor-history-followup-birth-row input {
  padding: 6px 8px;
  border: 1px solid #c0c0c4;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  font-family: inherit;
}

/* === ヒントトグル（タップで説明を表示） === */
.hint-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  vertical-align: 1px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hint-toggle:hover,
.hint-toggle[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.life-goal-card .hint-toggle {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}
.life-goal-card .hint-toggle:hover,
.life-goal-card .hint-toggle[aria-expanded="true"] {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.today-task-head .hint-toggle {
  margin-left: auto;
}

.hint-popup {
  margin: 6px 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #f0f0f1;
  font-size: 12px;
  line-height: 1.65;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  position: relative;
  box-shadow: var(--shadow-md, 0 6px 18px rgba(0,0,0,0.18));
}
.hint-popup::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 16px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--ink);
}
.life-goal-card .hint-popup {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.life-goal-card .hint-popup::before { border-bottom-color: #fff; }

/* === 今日のタスクカード：今月・今年の参考表示 === */
.goal-reference {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.goal-reference[hidden] { display: none; }
.goal-reference-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}
.goal-reference-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 600;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goal-reference-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.goal-reference-yeargoal {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.goal-reference-yeargoal-title {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-weight: 700;
}
.goal-reference-yeargoal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.goal-reference-yeargoal li {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
  padding: 1px 0;
  font-weight: 500;
}
.goal-reference-yeargoal li::before {
  content: '・';
  color: var(--muted);
  margin-right: 2px;
}
.goal-reference-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 10px 0;
}
.goal-reference-monthrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}
.goal-reference-block {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.goal-reference-block-title {
  margin: 0 0 2px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.goal-reference-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.goal-reference-block li {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding: 1px 0;
}
.goal-reference-block li::before {
  content: '・';
  color: var(--muted);
}

.rhythm .subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.rhythm-list {
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.rhythm-row {
  border-bottom: 1px solid var(--line-soft);
  border-left: 3px solid transparent;
  transition: background 0.12s;
}

.rhythm-row > summary {
  display: grid;
  grid-template-columns: 1.4fr auto 1.6fr;
  gap: 12px;
  align-items: center;
  padding: 12px 16px 12px 14px;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.rhythm-row > summary::-webkit-details-marker { display: none; }
.rhythm-row > summary::after {
  content: "＋";
  position: absolute;
  right: 6px;
  color: var(--muted);
  font-size: 13px;
  transition: transform 0.18s;
}
.rhythm-row[open] > summary::after { content: "−"; color: var(--accent); }
.rhythm-row > summary:hover { background: rgba(138, 111, 74, 0.05); }

.rhythm-row .r-when { color: var(--ink); }
.rhythm-row .r-when small { color: var(--muted); margin-left: 4px; font-size: 12px; }

.rhythm-row .r-mark {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
  min-width: 48px;
}

.rhythm-row .r-name {
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  padding-right: 20px;
}
.rhythm-row .r-cat {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

.rhythm-row .r-detail {
  padding: 6px 20px 20px 20px;
  border-top: 1px dashed var(--line-soft);
  background: rgba(138, 111, 74, 0.025);
}

.r-tagline {
  margin: 14px 0 10px;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.r-body {
  margin: 0 0 14px;
  font-size: 13.5px;
  white-space: pre-wrap;
  color: var(--ink-soft);
  line-height: 1.85;
  letter-spacing: 0.06em;
}

.r-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.r-col {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.r-col h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
}

.r-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.r-col li { margin-bottom: 4px; line-height: 1.65; }

.r-do h4 { color: var(--accent); }
.r-dont h4 { color: var(--ink-soft); }

.rhythm-row.mark-best   { border-left-color: var(--accent); }
.rhythm-row.mark-good   { border-left-color: var(--accent-soft); }
.rhythm-row.mark-normal { border-left-color: #c0c0c4; }
.rhythm-row.mark-low    { border-left-color: #c4c4c8; background: #fafafa; }
.rhythm-row.mark-worst  { border-left-color: #c4c4c8; background: #f3f3f5; }
.rhythm-row.mark-caution{ border-left-color: #6e6e76; background: #ededea; }

@media (max-width: 480px) {
  .r-twocol { grid-template-columns: 1fr; }
}

.back {
  text-align: center;
  margin-top: 32px;
}

.back a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.15s;
}
.back a:hover { color: var(--accent); }

/* --- index page: links to other tools --- */
.index-links {
  margin-top: 22px;
  text-align: center;
}
.index-links a {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.15em;
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: all 0.15s;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.index-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* --- affinity form --- */
.relation {
  border: none;
  padding: 0;
  margin: 0 0 22px;
}
.relation legend {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 0 0 10px;
}
.relation-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.affinity-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
  margin: 8px 0 24px;
}

.affinity-person {
  background: var(--accent-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
}
.affinity-person-title {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 600;
}
.affinity-divider {
  align-self: center;
  font-size: 22px;
  color: var(--muted);
  font-weight: 300;
  padding-top: 40px;
}

@media (max-width: 560px) {
  .affinity-pair {
    grid-template-columns: 1fr;
  }
  .affinity-divider {
    text-align: center;
    padding: 0;
  }
}

/* --- affinity result --- */
.affinity-summary {
  text-align: center;
}
.affinity-pair-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.affinity-person-card {
  flex: 1;
  min-width: 140px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
}
.affinity-person-name {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.affinity-person-type {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}
.affinity-person-birth {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.05em;
}
.affinity-pair-mark {
  font-size: 22px;
  color: var(--muted);
  font-weight: 300;
}

.affinity-score {
  padding: 18px 0 6px;
  border-top: 1px dashed var(--line);
}
.affinity-score-num {
  font-size: 64px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.02em;
}
.affinity-score-label {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  margin-left: 6px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-verdict {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.affinity-section-title {
  font-size: 15px;
  margin: 0 0 14px;
  color: var(--ink);
  letter-spacing: 0.1em;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.affinity-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.affinity-list li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.85;
}
.affinity-list li:last-child { border-bottom: none; }
.affinity-list li::before {
  position: absolute;
  left: 4px; top: 12px;
  font-size: 13px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-list-good li::before    { content: "◯"; color: var(--accent); }
.affinity-list-caution li::before { content: "△"; color: var(--ink-soft); }
.affinity-list-activity li::before { content: "▷"; color: var(--accent); }

/* --- 相性タイプ（キャラクター）カード --- */
.affinity-character-card {
  background: linear-gradient(135deg, #1a1a20 0%, #2a2a32 100%);
  border-color: #2a2a32;
  color: #f0f0f1;
  position: relative;
}
.affinity-character-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(240, 240, 241, 0.7);
  font-weight: 600;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  margin-bottom: 6px;
}
.affinity-character-name {
  font-size: 22px;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.affinity-character-tagline {
  margin: 0 0 12px;
  font-size: 13px;
  color: rgba(240, 240, 241, 0.85);
  line-height: 1.7;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-character-body {
  margin: 0;
  font-size: 13.5px;
  color: rgba(240, 240, 241, 0.95);
  line-height: 1.85;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* --- コミュニケーションスタイル --- */
.affinity-comm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.affinity-comm-block {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
}
.affinity-comm-name {
  font-size: 13px;
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-comm-headline {
  margin: 0 0 6px;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 600;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-comm-body {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-comm-bridge {
  margin: 0;
  padding: 10px 12px;
  background: var(--accent-bg, rgba(0,0,0,0.04));
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.85;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
@media (max-width: 480px) {
  .affinity-comm-grid { grid-template-columns: 1fr; }
}

.affinity-paragraph {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  white-space: pre-line;
}
.affinity-paragraph-emph {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 14px;
  margin-left: -14px;
}
.affinity-future-card {
  background: linear-gradient(135deg, var(--paper-warm) 0%, #f3f3f5 100%);
  border-color: var(--line);
}

/* === 結果ページの画像保存・共有ボタン === */
.share-fab {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.share-fab:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22); }
.share-fab:disabled { opacity: 0.5; cursor: progress; }
.share-fab-icon { font-size: 16px; line-height: 1; }
@media (max-width: 480px) {
  .share-fab { bottom: 16px; right: 12px; padding: 11px 14px; font-size: 12px; }
  .share-fab-label { display: inline; }
}
.share-fab-toast {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 49;
  padding: 8px 14px;
  background: rgba(20, 20, 26, 0.92);
  color: #fff;
  border-radius: 8px;
  font-size: 12.5px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.share-fab-toast.is-visible { opacity: 1; transform: translateY(0); }
.share-fab-toast.is-error { background: rgba(170, 60, 60, 0.95); }

/* セクション単位の共有ボタン（各カードの右上） */
.share-card-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.share-card-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.share-card-btn:active { transform: scale(0.92); }
/* ダーク背景カードでは反転 */
.life-goal-card .share-card-btn,
.affinity-character-card .share-card-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.life-goal-card .share-card-btn:hover,
.affinity-character-card .share-card-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* --- それぞれの禁止事項 / 求めること / お互いの役割 --- */
.affinity-section-lead {
  margin: -6px 0 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-pair-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .affinity-pair-blocks { grid-template-columns: 1fr; }
}
.affinity-pair-block {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
}
.affinity-pair-name {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-pair-body {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.75;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-pair-role {
  margin: 0;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-roles-flow { margin-top: 14px; }

/* --- 複数人 相性診断（フォーム） --- */
.group-affinity-form #group-people {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}
.group-person-row {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px 10px;
}
.group-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.group-person-title {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.group-person-remove {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
}
.group-person-remove:hover { color: var(--ink); border-color: var(--ink); }
.group-name-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
.group-name-label input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.group-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.group-add-btn {
  background: transparent;
  color: var(--ink);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s;
}
.group-add-btn:hover { background: rgba(0,0,0,0.03); border-color: var(--ink); }
.form-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

/* --- 複数人 相性診断（結果） --- */
.group-summary { padding: 22px 18px 18px; }
.group-element-bar {
  display: flex;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--line-soft);
}
.group-element-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.group-element-segment small { font-size: 9.5px; opacity: 0.8; margin-left: 4px; }
.group-element-segment.elem-木 { background: #6e6e76; }
.group-element-segment.elem-火 { background: #4d4d54; }
.group-element-segment.elem-土 { background: #8a8a92; }
.group-element-segment.elem-金 { background: #8a8a8e; }
.group-element-segment.elem-水 { background: #6e6e76; }

.group-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.group-member-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-left-width: 3px;
}
.group-member-chip.elem-木 { border-left-color: #6e6e76; }
.group-member-chip.elem-火 { border-left-color: #4d4d54; }
.group-member-chip.elem-土 { border-left-color: #8a8a92; }
.group-member-chip.elem-金 { border-left-color: #8a8a8e; }
.group-member-chip.elem-水 { border-left-color: #6e6e76; }
.group-member-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.group-member-meta { font-size: 10.5px; color: var(--muted); }

.group-roles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.group-role-card {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px 11px;
}
.group-role-card.elem-木 { border-left-color: #6e6e76; }
.group-role-card.elem-火 { border-left-color: #4d4d54; }
.group-role-card.elem-土 { border-left-color: #8a8a92; }
.group-role-card.elem-金 { border-left-color: #8a8a8e; }
.group-role-card.elem-水 { border-left-color: #6e6e76; }
.group-role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.group-role-name { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.group-role-label { font-size: 11.5px; letter-spacing: 0.06em; color: var(--accent); font-weight: 600; }
.group-role-meta { margin: 0 0 6px; font-size: 11px; color: var(--muted); }
.group-role-body { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); }

/* --- 子育て版 分析 --- */
.saved-family-banner {
  background: #fafafa;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  padding: 14px 16px;
  margin: 0 0 16px;
}
.saved-family-banner-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.saved-family-banner-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.saved-family-clear-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.saved-family-clear-btn:hover {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}
.parenting-remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 14px;
  padding: 10px 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.parenting-remember-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

.parenting-form .parenting-section {
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.parenting-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}
.parenting-name-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}
.parenting-name-label input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.parenting-h2 {
  font-size: 17px;
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 700;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.parenting-h3 {
  font-size: 13px;
  margin: 18px 0 8px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.parenting-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.parenting-dl dt {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 600;
}
.parenting-dl dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.parenting-career-child {
  padding: 10px 12px;
  background: #fafafa;
  border-left: 2px solid var(--ink);
  border-radius: 4px;
}
.parenting-career-child + .parenting-career-child { margin-top: 6px !important; }
.parenting-career-name {
  display: inline-block;
  margin-right: 8px;
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
}
.parenting-career-body {
  color: var(--ink-soft);
}
.parenting-career-sibling-note {
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  margin-top: 4px !important;
  padding: 4px 12px;
  border-left: 2px dashed #c4c4c8;
  border-radius: 0;
}

/* シュタイナー4気質チェック（フォーム側） */
.steiner-check {
  margin: 16px 0 8px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  background: var(--paper-warm);
}
.steiner-check[open] {
  padding: 0 14px 12px;
}
.steiner-summary {
  cursor: pointer;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  list-style: none;
}
.steiner-summary::-webkit-details-marker { display: none; }
.steiner-summary::before {
  content: "▶ ";
  display: inline-block;
  font-size: 9px;
  color: var(--muted);
  margin-right: 4px;
  transition: transform 0.15s;
  vertical-align: middle;
}
.steiner-check[open] .steiner-summary::before {
  transform: rotate(90deg);
}
.steiner-hint {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}
.steiner-guide {
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #d8d8dc;
  border-radius: 10px;
}
.steiner-guide-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4d4d54;
}
.steiner-guide-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #4a3a1a;
}
.steiner-guide-body strong {
  color: #4d4d54;
  font-weight: 700;
}
.steiner-q {
  border: none;
  padding: 0;
  margin: 0 0 14px;
}
.steiner-q legend {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
  padding: 0 0 6px;
}
.steiner-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}
.steiner-opt input[type="radio"] {
  margin-top: 3px;
  flex: 0 0 auto;
}
.steiner-opt-text {
  flex: 1;
}

/* シュタイナー結果ブロック（結果ページ側） */
.steiner-block {
  margin-top: 18px;
  padding: 14px 16px 12px;
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.steiner-block .parenting-h3 {
  margin: 0 0 8px;
}
.steiner-meta {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: 0.02em;
}
.steiner-result {
  margin: 4px 0 8px;
  font-size: 14px;
  color: var(--ink);
}
.steiner-result strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}
.steiner-secondary {
  color: var(--ink-soft);
  font-weight: 600;
}
.steiner-summary-text {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.steiner-dl {
  gap: 8px;
}
.steiner-secondary-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.mentor-card-form {
  padding: 0;
  margin-bottom: 20px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.mentor-card-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(180deg, #2a2a32 0%, var(--ink) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 22px 22px 24px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 18px rgba(20,20,26,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.12s, filter 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.mentor-card-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20,20,26,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
}
.mentor-card-btn:active { transform: translateY(0); }
.mentor-card-title {
  font-size: 16px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.mentor-card-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
}
.mentor-card-disabled {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  margin-bottom: 20px;
}
.mentor-card-disabled .mentor-card-title {
  color: var(--muted);
  font-size: 15px;
}
.mentor-card-disabled .mentor-card-desc {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
}
.mentor-card-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.mentor-card-link:hover { text-decoration: underline; }

.affinity-deep-cta {
  background: linear-gradient(180deg, #1e1e24 0%, var(--ink) 100%);
  color: #fff;
  border: none;
  text-align: center;
}
.affinity-deep-title {
  font-size: 17px;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  color: #fff;
  font-weight: 600;
}
.affinity-deep-lead {
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.78);
  margin: 0 0 16px;
}
.affinity-deep-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.affinity-deep-btn {
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.12s, filter 0.18s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.affinity-deep-btn:hover { filter: brightness(0.95); transform: translateY(-1px); }
.affinity-deep-btn:active { transform: translateY(0); }
.affinity-deep-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.affinity-deep-body {
  padding: 24px 22px 28px;
}
.deep-text {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.deep-h {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 24px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.deep-h:first-child {
  margin-top: 0;
}
.deep-p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.95;
}
.deep-p:last-child {
  margin-bottom: 0;
}

/* AI ローディングオーバーレイ */
#ai-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 15, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ai-loading-fadein 0.25s ease-out;
}
@keyframes ai-loading-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ai-loading-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  font-family: inherit;
}
.ai-loading-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 6px;
}
.ai-loading-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.ai-loading-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: var(--line-soft, #ececec);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}
.ai-loading-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #2b2b2b 0%, #4d4d54 60%, #6e6e76 100%);
  border-radius: 999px;
  transition: width 0.2s linear;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
}
.ai-loading-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.ai-loading-elapsed {
  font-weight: 600;
  color: var(--ink);
}
.ai-loading-target {
  color: var(--muted);
}
.ai-loading-warning {
  font-size: 12.5px;
  color: #1f1f23;
  background: #f3f3f5;
  border: 1px solid #c4c4c8;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.7;
  margin: 4px 0 12px;
  text-align: center;
  font-weight: 600;
}
.ai-loading-hint {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.ai-loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.ai-loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft, #4d4d54);
  opacity: 0.4;
  animation: ai-loading-pulse 1.2s ease-in-out infinite;
}
.gender {
  border: none;
  padding: 0;
  margin: 8px 0 4px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.gender legend {
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-right: 4px;
}
.gender-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-soft);
}
.gender-opt input[type="radio"] {
  margin: 0;
}

.ai-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-loading-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}
.error-card {
  border-color: #6e6e76;
  color: #6e6e76;
}
.deep-stream-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted, #8a8a92);
  line-height: 1.7;
  padding: 4px 0;
}
.deep-stream-dots {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
}
.deep-stream-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-soft, #4d4d54);
  opacity: 0.4;
  animation: ai-loading-pulse 1.2s ease-in-out infinite;
}
.deep-stream-dots span:nth-child(2) { animation-delay: 0.2s; }
.deep-stream-dots span:nth-child(3) { animation-delay: 0.4s; }
.parenting-pair-card {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px 10px;
  margin-bottom: 14px;
}
.parenting-pair-card:last-child { margin-bottom: 0; }
.parenting-pair-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.parenting-pair-meta {
  margin: 2px 0 10px;
  font-size: 11px;
  color: var(--muted);
}
.parenting-partner-diff {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}
.parenting-milestones {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.parenting-milestones li {
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.parenting-ms-year {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 8px;
}
.parenting-ms-name {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 999px;
}
.parenting-ms-note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.parenting-child-row {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 12px 10px;
  margin-bottom: 12px;
}
.parenting-child-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.parenting-child-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.parenting-rel-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
}
.parenting-rel-name {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.parenting-pair-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* --- 関係性別軸 --- */
.affinity-axes {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.affinity-axes dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.affinity-axes dd {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* --- 今月のアドバイス --- */
.affinity-monthly-card {
  background: var(--paper-warm);
  border-left: 3px solid var(--accent);
}
.affinity-monthly-badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-weight: 600;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  margin-bottom: 6px;
}
.affinity-monthly-theme {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.affinity-monthly-action {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.affinity-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.affinity-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 500;
}
.tag-good    { background: var(--accent); color: #fff; }
.tag-warn    { background: #e7e7ea; color: var(--ink-soft); border: 1px solid var(--line); }
.tag-neutral { background: var(--accent-bg); color: var(--ink-soft); border: 1px solid var(--line); }

.back-sep { color: var(--muted); margin: 0 10px; font-size: 12px; }

/* --- AI ask --- */
.ask-head {
  margin-bottom: 6px;
}
.ask-label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--accent);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
}
.ask-title {
  font-size: 18px;
  margin: 4px 0 8px;
  color: var(--ink);
  letter-spacing: 0.06em;
  font-weight: 500;
}
.ask-lead {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.ask-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ask-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.ask-chip {
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--accent-bg);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.04em;
  transition: all 0.15s;
}
.ask-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.ask-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  resize: vertical;
  min-height: 80px;
  line-height: 1.7;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.ask-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 20, 26, 0.08);
}

.ask-question-card {
  background: var(--accent-bg);
  border-color: var(--line-soft);
}
.ask-question-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--muted);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  margin-bottom: 8px;
  font-weight: 600;
}
.ask-question-body {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.85;
}

/* --- ステータスバー（ログイン中） --- */
.status-bar {
  background: var(--ink);
  color: #c4c4c8;
  padding: 8px 20px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.status-info { color: #c4c4c8; }
.status-info strong { color: #fff; font-weight: 600; }
.status-logout {
  color: #aaa;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border: 1px solid #4a4a50;
  border-radius: 4px;
  transition: all 0.15s;
}
.status-logout:hover {
  color: #fff;
  border-color: #888;
}
@media (max-width: 480px) {
  .status-bar { padding: 8px 12px; font-size: 11px; }
  .status-logout { font-size: 10px; padding: 2px 8px; }
}

/* --- unlock page --- */
.unlock-form input[name="key"] {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.unlock-info {
  margin-top: 18px;
}
.unlock-info-title {
  font-size: 16px;
  margin: 0 0 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-weight: 500;
}
.unlock-info-body {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.unlock-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.unlock-features li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line-soft);
}
.unlock-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.unlock-features li:last-child { border-bottom: none; }
.unlock-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 8px;
}
@media (max-width: 480px) {
  .unlock-plans { grid-template-columns: 1fr; }
}
.unlock-plan {
  background: #f7f7f9;
  border: 1px solid #e7e7ea;
  border-radius: 10px;
  padding: 16px 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.unlock-plan-sub {
  background: #ffffff;
  border-color: #1f1f23;
  border-width: 2px;
}
.unlock-plan-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #6e6e76;
  font-weight: 700;
  text-transform: uppercase;
}
.unlock-plan-sub .unlock-plan-tag { color: #1f1f23; }
.unlock-plan-price {
  margin: 0;
  font-size: 14px;
  color: #1f1f23;
  line-height: 1.5;
}
.unlock-plan-price strong { font-size: 18px; font-weight: 700; }
.unlock-plan-price span { font-size: 12px; color: #6e6e76; }
.unlock-plan-feat {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: #4d4d54;
}
.unlock-plan-feat li::before {
  content: "・";
  color: #8a8a92;
}
.unlock-plan .unlock-buy-link {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1f1f23;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}
.unlock-plan .unlock-buy-link:hover { background: #000; transform: none; filter: none; }
.unlock-plan .unlock-buy-link-alt {
  background: #ffffff;
  color: #1f1f23;
  border: 1px solid #1f1f23;
}
.unlock-plan .unlock-buy-link-alt:hover { background: #f3f3f5; }

.unlock-info-mindset {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: #f3f3f5;
  border: 1px solid #d8d8dc;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #1f1f23;
}
.unlock-info-cta {
  margin: 18px 0 12px;
  padding: 14px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
  color: var(--ink);
}
.unlock-info-cta strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.unlock-info-purchase {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.unlock-buy-link {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  letter-spacing: 0.1em;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 500;
  transition: all 0.15s;
}
.unlock-buy-link:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* --- admin page --- */
.admin-container { max-width: 980px; }
.admin-section-title {
  font-size: 16px;
  margin: 0 0 16px;
  letter-spacing: 0.1em;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.admin-issue-form { display: flex; flex-direction: column; gap: 14px; }
.admin-issue-form label { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.admin-issue-form input { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid var(--line); border-radius: 6px; margin-top: 4px; font-family: inherit; }
.admin-issue-form input:focus { outline: none; border-color: var(--accent); }
/* チェックボックス・ラジオはサイズ・幅・余白の影響を受けないようリセット */
.admin-issue-form input[type="checkbox"],
.admin-issue-form input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.admin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .admin-row { grid-template-columns: 1fr; } }

.admin-issued {
  background: var(--accent-bg);
  border-color: var(--accent);
}
.admin-issued-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 8px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 600;
}
.admin-issued-key {
  font-size: 22px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: 0.05em;
  user-select: all;
}
.admin-issued-note { font-size: 12px; color: var(--muted); margin: 0; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
.admin-table th, .admin-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.admin-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  background: var(--accent-bg);
}
.admin-table small { color: var(--muted); font-size: 11px; }
.admin-key {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  background: #f3f3f5;
  padding: 2px 5px;
  border-radius: 3px;
  user-select: all;
}
.admin-note { color: var(--accent); }
.admin-row-inactive { opacity: 0.5; }
.admin-tag-active { color: #2d7a4a; font-weight: 600; font-size: 11px; }
.admin-tag-inactive { color: var(--muted); font-weight: 600; font-size: 11px; }
.admin-tag-expired { color: #6e6e76; font-weight: 600; font-size: 11px; }
.admin-actions { white-space: nowrap; }
.admin-btn {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  margin-right: 4px;
  margin-bottom: 4px;
}
.admin-btn:hover { background: var(--accent-bg); border-color: var(--accent); }
.admin-btn-danger { color: #6e6e76; }
.admin-btn-danger:hover { background: #f3f3f5; border-color: #6e6e76; }

.admin-grant-quota-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  margin: 2px 4px 4px 0;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 6px;
  vertical-align: middle;
}
.admin-grant-quota-input {
  width: 56px;
  font-size: 12px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  text-align: right;
}
.admin-grant-quota-note {
  width: 130px;
  font-size: 11px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
}
.admin-grant-quota-form .admin-btn { margin: 0; }

/* 有効期限の編集（小さな details パネル） */
.admin-validity-details {
  margin-top: 6px;
  font-size: 11.5px;
}
.admin-validity-details > summary {
  display: inline-block;
  cursor: pointer;
  color: var(--muted);
  font-size: 11.5px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  list-style: none;
}
.admin-validity-details > summary::-webkit-details-marker { display: none; }
.admin-validity-details > summary:hover { color: var(--ink); border-color: var(--ink); }
.admin-validity-details[open] > summary { background: #fafafa; color: var(--ink); }
.admin-validity-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  align-items: center;
}
.admin-validity-input {
  font-size: 12px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
}
.admin-validity-form .admin-btn { margin: 0; }

.admin-search-form {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.admin-search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.admin-search-field input {
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  background: #fff;
}
.admin-search-field input[type="text"] { min-width: 240px; }
.admin-search-field input[type="date"] { min-width: 150px; }
.admin-search-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-search-buttons .admin-btn {
  margin: 0;
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.admin-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
}
.admin-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-status-tab:hover {
  background: #f3f3f5;
  color: var(--ink);
  border-color: var(--ink);
}
.admin-status-tab.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  font-weight: 600;
}
.admin-status-tab-count {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 500;
}
.admin-status-tab.is-active .admin-status-tab-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.admin-group-badge {
  display: inline-block;
  font-size: 11px;
  background: #f3f3f5;
  color: #4d4d54;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
  border: 1px solid #d8d8dc;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .admin-search-field input[type="text"] { min-width: 0; width: 100%; }
  .admin-search-field { flex: 1 1 100%; }
}

/* --- 編集フォーム（顧客情報を後から変更） --- */
.admin-edit-details {
  display: block;
  margin: 6px 0 8px;
}
.admin-edit-details > summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.admin-edit-details > summary::-webkit-details-marker { display: none; }
.admin-edit-details > summary::before {
  content: '✎ ';
  color: var(--accent);
  font-weight: 600;
}
.admin-edit-details[open] > summary { background: var(--accent-bg); border-color: var(--accent); }
.admin-edit-form {
  margin: 10px 0 4px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.admin-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.admin-edit-form input {
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  background: #fff;
}
.admin-edit-form button { align-self: flex-start; }

/* --- スマホ向け：テーブルをカード型に変換 --- */
@media (max-width: 720px) {
  .admin-container { max-width: 100%; padding-left: 14px; padding-right: 14px; }

  /* 検索フォームを縦並びに */
  .admin-search-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .admin-search-field { flex: 1 1 auto; }
  .admin-search-field input { width: 100%; min-width: 0; }
  .admin-search-buttons { justify-content: flex-end; }

  /* 回数追加フォームも縦並び */
  .admin-grant-quota-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .admin-grant-quota-input,
  .admin-grant-quota-note { width: 100%; font-size: 14px; padding: 8px 10px; }
  .admin-grant-quota-form .admin-btn { width: 100%; padding: 10px; font-size: 13px; }

  /* テーブルを完全にブロック化して各 td をラベル付きカード行に */
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table th,
  .admin-table td,
  .admin-table tr { display: block; }
  .admin-table thead { display: none; }
  .admin-table tr {
    margin: 14px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .admin-table td {
    padding: 6px 0;
    border: none;
    text-align: left;
  }
  .admin-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
  }
  .admin-table td[data-label="操作"] {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
  }
  .admin-table td[data-label="操作"]::before { content: '操作'; }
  .admin-actions { white-space: normal; }
  .admin-actions form { display: block; margin-bottom: 6px; }
  .admin-actions .admin-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    margin: 0;
  }
  .admin-edit-details > summary {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 13px;
    text-align: center;
  }
  .admin-edit-form { max-width: none; }

  /* ライセンスキーは長いので折り返し */
  .admin-key {
    display: inline-block;
    word-break: break-all;
    font-size: 12px;
    padding: 4px 6px;
  }

  /* 紹介・発行フォーム */
  .admin-issue-form input,
  .admin-issue-form label { font-size: 14px; }
  .admin-issued-key { font-size: 18px; word-break: break-all; }
  .admin-section-title { font-size: 15px; }

  /* タイトル */
  .admin-container .hero h1 { font-size: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 28px 16px 80px; }
  .ganshi-box {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    width: 100%;
  }
  .ganshi-box .big { font-size: 46px; }
  .hero h1 { font-size: 24px; letter-spacing: 0.22em; }
  .today-tagline { font-size: 17px; }
  .today-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .card { padding: 22px 20px; }
  .affinity-score-num { font-size: 52px; }
}

.ask-continue {
  text-align: center;
}
.ask-continue-note {
  margin: 0 0 14px;
  color: #4d4d54;
  font-size: 14px;
  line-height: 1.6;
}
.ask-continue-form {
  margin: 0;
}
.ask-continue-form .primary {
  min-width: 220px;
}

/* ===== 紹介リンク（マイプロフィール内） ===== */
.referral-card {
  background: linear-gradient(135deg, #f3f3f5 0%, #f3f3f5 100%);
  border: 1px solid #d8d8dc;
}
.referral-title {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1f1f23;
}
.referral-lead {
  margin: 0 0 18px;
  color: #3a3a40;
  font-size: 14px;
  line-height: 1.7;
}
.referral-link-box {
  margin-bottom: 14px;
}
.referral-link-label {
  display: block;
  font-size: 12px;
  color: #6e6e76;
  margin-bottom: 6px;
  font-weight: 600;
}
.referral-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.referral-link-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #c0c0c4;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  color: #333;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.referral-copy-btn {
  padding: 0 14px;
  background: #4d4d54;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.referral-copy-btn:hover { background: #b85d05; }
.referral-copy-btn.copied { background: #16a34a; }

.referral-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
}
.referral-code-label {
  color: #6e6e76;
  font-weight: 600;
}
.referral-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #c4c4c8;
  color: #1f1f23;
}

.referral-stats {
  display: flex;
  gap: 16px;
  margin: 16px 0 12px;
}
.referral-stat {
  flex: 1;
  background: #fff;
  border: 1px solid #ecd4a3;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.referral-stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #4d4d54;
  line-height: 1.2;
}
.referral-stat-label {
  display: block;
  font-size: 11px;
  color: #6e6e76;
  margin-top: 4px;
}
.referral-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #6e6e76;
  line-height: 1.6;
}

/* ====================================================================
   ランディングページ（/）— Brand palette: dark gray / light gray / white
   ==================================================================== */
body.lp-page {
  background: #fafafa;
  margin: 0;
  color: #1f1f23;
}
.lp-main {
  display: flex;
  flex-direction: column;
}
.lp-section {
  padding: 80px 20px;
}
.lp-section-inner {
  max-width: 880px;
  margin: 0 auto;
}
.lp-section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #6e6e76;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.lp-section-title {
  font-size: 28px;
  line-height: 1.55;
  margin: 0 0 24px;
  color: #1f1f23;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* --- Hero --- */
.lp-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f5 100%);
  padding: 70px 20px 80px;
  text-align: center;
  border-bottom: 1px solid #e7e7ea;
}
.lp-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.lp-hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}
.lp-hero-tagline {
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #1f1f23;
  margin: 0 0 20px;
  padding: 6px 18px;
  border: 2px solid #1f1f23;
  border-radius: 999px;
  background: #fff;
}
.lp-hero-title {
  font-size: 32px;
  line-height: 1.5;
  margin: 0 0 24px;
  color: #1f1f23;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lp-hero-sub {
  font-size: 15px;
  line-height: 1.95;
  color: #4d4d54;
  margin: 0 0 14px;
}
.lp-hero-mindset {
  display: inline-block;
  font-size: 13px;
  color: #1f1f23;
  background: #ffffff;
  border: 1px solid #d8d8dc;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0 0 32px;
}
.lp-hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.lp-hero-sub-cta {
  font-size: 12.5px;
  color: #8a8a92;
  margin: 0;
}
.lp-hero-sub-cta a {
  color: #1f1f23;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* --- Buttons --- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.lp-btn-primary {
  background: #1f1f23;
  color: #fff;
}
.lp-btn-primary:hover {
  background: #000;
  transform: translateY(-1px);
}
.lp-btn-ghost {
  background: #ffffff;
  color: #1f1f23;
  border: 1px solid #c4c4ca;
}
.lp-btn-ghost:hover { background: #f3f3f5; }
.lp-btn-large {
  padding: 16px 40px;
  font-size: 16px;
}

/* --- 共感 --- */
.lp-empathy {
  background: #ffffff;
}
.lp-empathy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lp-empathy-list li {
  position: relative;
  padding: 14px 18px 14px 44px;
  background: #f3f3f5;
  border-left: 3px solid #6e6e76;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #1f1f23;
}
.lp-empathy-list li::before {
  content: "“";
  position: absolute;
  left: 14px;
  top: 8px;
  font-size: 28px;
  color: #8a8a92;
  font-family: Georgia, serif;
  line-height: 1;
}

/* --- ソリューション --- */
.lp-solution {
  background: linear-gradient(180deg, #2c2c33 0%, #1f1f23 100%);
  color: #ffffff;
  text-align: center;
}
.lp-solution .lp-section-eyebrow { color: #b8b8c0; }
.lp-solution .lp-section-title { color: #ffffff; }
.lp-solution-body {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 20px;
}

/* --- 機能 --- */
.lp-features {
  background: #ffffff;
}
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.lp-feature-card {
  background: #f7f7f9;
  border: 1px solid #e7e7ea;
  border-radius: 14px;
  padding: 24px 22px;
  position: relative;
}
.lp-feature-card-highlight {
  background: #1f1f23;
  border-color: #1f1f23;
  color: #ffffff;
}
.lp-feature-card-highlight .lp-feature-name { color: #ffffff; }
.lp-feature-card-highlight .lp-feature-desc { color: rgba(255,255,255,0.85); }
.lp-feature-card-deep {
  background: #ffffff;
  border-color: #1f1f23;
  border-width: 2px;
}
.lp-feature-icon {
  font-size: 26px;
  margin-bottom: 10px;
}
.lp-feature-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1f1f23;
}
.lp-feature-desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: #4d4d54;
  margin: 0;
}
.lp-feature-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  color: #1f1f23;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* --- 心構え --- */
.lp-mindset {
  background: #f3f3f5;
}
.lp-mindset-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-mindset-list li {
  background: #ffffff;
  border: 1px solid #e7e7ea;
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.9;
  color: #1f1f23;
}
.lp-mindset-list strong {
  display: block;
  color: #1f1f23;
  font-weight: 700;
  margin-bottom: 4px;
}

/* --- 価格 --- */
.lp-price {
  background: #ffffff;
}
.lp-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 32px 0 28px;
}
.lp-price-card {
  background: #f7f7f9;
  border: 1px solid #e7e7ea;
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
}
.lp-price-card-recommend {
  background: #ffffff;
  border-color: #1f1f23;
  border-width: 2px;
}
.lp-price-tag {
  position: absolute;
  top: -10px;
  left: 20px;
  background: #1f1f23;
  color: #ffffff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.lp-price-name {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1f1f23;
}
.lp-price-amount {
  font-size: 17px;
  margin: 0 0 16px;
  color: #1f1f23;
  line-height: 1.6;
}
.lp-price-amount strong {
  font-size: 32px;
  color: #1f1f23;
  font-weight: 700;
}
.lp-price-amount small {
  font-size: 13px;
  color: #6e6e76;
  display: block;
  margin-top: 6px;
}
.lp-price-amount small strong { font-size: 18px; }
.lp-price-feat {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-price-feat li {
  padding-left: 22px;
  position: relative;
  font-size: 13px;
  color: #1f1f23;
  line-height: 1.7;
}
.lp-price-feat li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f1f23;
  font-weight: 700;
}
.lp-price-cta {
  text-align: center;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.lp-price-note {
  font-size: 12px;
  color: #8a8a92;
  margin: 4px 0 0;
}

/* --- FAQ --- */
.lp-faq {
  background: #f3f3f5;
}
.lp-faq-item {
  background: #ffffff;
  border: 1px solid #e7e7ea;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 0;
}
.lp-faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1f1f23;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #8a8a92;
  font-weight: 400;
}
.lp-faq-item[open] summary::after { content: "−"; }
.lp-faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: #4d4d54;
}

/* --- 最終CTA --- */
.lp-final-cta {
  background: linear-gradient(180deg, #ffffff 0%, #f3f3f5 100%);
  text-align: center;
  border-top: 1px solid #e7e7ea;
}
.lp-final-cta-title {
  font-size: 26px;
  line-height: 1.6;
  margin: 0 0 18px;
  color: #1f1f23;
  letter-spacing: 0.05em;
}
.lp-final-cta-sub {
  font-size: 14px;
  color: #4d4d54;
  margin: 0 0 32px;
}
.lp-final-cta-sub-link {
  font-size: 12.5px;
  color: #8a8a92;
  margin: 22px 0 0;
}
.lp-final-cta-sub-link a {
  color: #1f1f23;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

/* --- フッター --- */
.lp-footer {
  background: #1f1f23;
  color: #b8b8c0;
  padding: 40px 20px;
  text-align: center;
}
.lp-footer-brand {
  font-size: 14px;
  letter-spacing: 0.3em;
  margin: 0 0 16px;
  color: #ffffff;
}
.lp-footer-note {
  font-size: 11.5px;
  line-height: 1.8;
  color: #8a8a92;
  max-width: 560px;
  margin: 0 auto 14px;
}
.lp-footer-copy {
  font-size: 11px;
  color: #6e6e76;
  margin: 0;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
  .lp-section { padding: 56px 18px; }
  .lp-hero { padding: 56px 18px 64px; }
  .lp-hero-logo { width: 100px; }
  .lp-hero-title { font-size: 24px; letter-spacing: 0.04em; }
  .lp-section-title { font-size: 22px; }
  .lp-final-cta-title { font-size: 21px; }
  .lp-solution-body { font-size: 14.5px; }
  .lp-feature-grid { grid-template-columns: 1fr; }
  .lp-price-grid { grid-template-columns: 1fr; }
  .lp-btn { font-size: 14px; padding: 12px 24px; }
  .lp-btn-large { font-size: 15px; padding: 14px 32px; }
}

/* ===== メンター相談チャット画面 ===== */
body.mentor-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f3f3f5 0%, #e7e7ea 100%);
}
.mentor-status-bar { position: sticky; top: 0; z-index: 5; }
.mentor-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mentor-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0 8px;
}
.mentor-back {
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 8px;
  line-height: 1;
}
.mentor-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.mentor-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}

.mentor-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mentor-convo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  flex-wrap: wrap;
}
.mentor-convo-title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.mentor-convo-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 600;
}
.mentor-convo-title {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mentor-convo-actions {
  display: flex;
  gap: 6px;
}
.mentor-convo-btn {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.mentor-convo-btn:hover {
  background: #f3f3f5;
  border-color: #d9c8a5;
}
.mentor-convo-menu-wrap {
  position: relative;
}
.mentor-convo-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 20;
  max-height: 60vh;
  overflow-y: auto;
}
.mentor-convo-menu-empty {
  margin: 0;
  padding: 16px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.mentor-convo-menu-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.mentor-convo-menu-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line-soft);
}
.mentor-convo-menu-item:last-child { border-bottom: none; }
.mentor-convo-menu-item.is-active {
  background: #f3f3f5;
}
.mentor-convo-menu-link {
  flex: 1;
  background: transparent;
  border: none;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
  min-width: 0;
}
.mentor-convo-menu-link:hover {
  background: rgba(0,0,0,0.03);
}
.mentor-convo-menu-title {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mentor-convo-menu-meta {
  font-size: 10.5px;
  color: var(--muted);
}
.mentor-convo-menu-delete {
  background: transparent;
  border: none;
  width: 32px;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.mentor-convo-menu-delete:hover {
  color: #1f1f23;
}

.mentor-mode-row {
  display: flex;
  gap: 8px;
  margin: 4px 0 12px;
}
.mentor-mode-chip {
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s, border-color 0.15s;
}
.mentor-mode-chip[aria-pressed="true"] {
  background: #1f1f23;
  color: #fff;
  border-color: #1f1f23;
}
.mentor-mode-chip[aria-pressed="true"] .mentor-mode-desc {
  color: rgba(255,255,255,0.85);
}
.mentor-mode-name {
  font-size: 13px;
  font-weight: 700;
}
.mentor-mode-desc {
  font-size: 11px;
  color: var(--muted);
}

.mentor-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 16px;
}

.mentor-welcome {
  background: #fff;
  border: 1px solid #d8d8dc;
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  margin: 20px 0;
}
.mentor-welcome-body {
  margin: 0;
  font-size: 14px;
  color: #3a3a40;
  line-height: 1.85;
}

.mentor-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}
.mentor-bubble-wrap.mentor-bubble-user {
  align-self: flex-end;
  align-items: flex-end;
}
.mentor-bubble-wrap.mentor-bubble-assistant,
.mentor-bubble-wrap.mentor-bubble-error {
  align-self: flex-start;
  align-items: flex-start;
}
.mentor-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}
.mentor-bubble-user-body {
  background: #1f1f23;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.mentor-bubble-assistant-body {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.mentor-bubble-error-body {
  background: #f3f3f5;
  color: #1f1f23;
  border: 1px solid #c4c4c8;
  border-bottom-left-radius: 4px;
}
.mentor-bubble-meta {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 4px;
  padding: 0 6px;
}
.mentor-bubble-thinking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mentor-thinking-dots {
  display: inline-flex;
  gap: 4px;
}
.mentor-thinking-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  animation: mentor-blink 1.4s infinite both;
}
.mentor-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.mentor-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mentor-blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}
.mentor-thinking-text {
  font-size: 13px;
  color: var(--muted);
}

.mentor-input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 12px 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  z-index: 10;
}
.mentor-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.6;
  resize: none;
  background: #fff;
  min-height: 40px;
  max-height: 200px;
  box-sizing: border-box;
}
.mentor-input:focus {
  outline: none;
  border-color: #1f1f23;
}
.mentor-send {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1f1f23;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.mentor-send:hover { background: #1f1f23; }
.mentor-send:disabled {
  background: #c5b69e;
  cursor: not-allowed;
}
.mentor-send-icon {
  display: inline-block;
  transform: rotate(-90deg) translateX(1px);
}
.mentor-input-hint {
  position: fixed;
  bottom: 78px;
  left: 16px;
  right: 16px;
  text-align: center;
  font-size: 10.5px;
  color: var(--muted);
  pointer-events: none;
  margin: 0;
  background: rgba(247, 245, 240, 0.85);
  border-radius: 8px;
  padding: 3px 8px;
}

@media (max-width: 480px) {
  .mentor-title { font-size: 16px; }
  .mentor-bubble { font-size: 14px; }
}

/* ===== セルフアナリシスの使い方ページ ===== */
.about-container { max-width: 720px; }
.about-section-title {
  font-size: 18px;
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 700;
}
.about-body {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.about-body:last-child { margin-bottom: 0; }

.about-goal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-goal-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}
.about-goal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4d4d54;
  font-weight: 700;
}

.about-features-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}
.about-feature {
  border-bottom: 1px dashed var(--line-soft);
}
.about-feature:last-child { border-bottom: none; }
.about-feature-title {
  font-size: 15px;
  padding: 14px 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.about-feature-title::-webkit-details-marker { display: none; }
.about-feature-title::before {
  content: "▶ ";
  color: #4d4d54;
  font-size: 12px;
  margin-right: 4px;
}
.about-feature-title::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.about-feature[open] .about-feature-title::after {
  content: "−";
}
.about-feature-body {
  margin: 0 0 10px;
  padding: 0 4px 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.about-feature-sublist {
  margin: 6px 0 14px;
  padding-left: 24px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.about-feature-sublist li { margin-bottom: 4px; }

/* ===== 相性：12年運勢リズム比較グラフ ===== */
.affinity-rhythm-card {
  padding: 20px 18px;
}
.affinity-rhythm-lead {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 14px;
}
.affinity-rhythm-chart-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 0 -4px;
}
.affinity-rhythm-svg {
  display: block;
  width: 100%;
  min-width: 540px;
  height: auto;
}
.rhy-grid { stroke: #e7e7ea; stroke-width: 1; }
.rhy-y-label { font-size: 10.5px; fill: #8a8a92; }
.rhy-x-label { font-size: 10.5px; fill: var(--ink); font-weight: 500; }
.rhy-x-sub { font-size: 9.5px; fill: #8a8a92; }
.rhy-line { stroke-width: 2.2; }
/* A=ネイビー（実線・●）、B=テラコッタ（破線・□）で色分け＋形状でも区別。
   控えめなトーンで原色を避け、グレースケールのページに馴染ませる。 */
.rhy-line-a { stroke: #2a4a78; }
.rhy-line-b { stroke: #a8643c; stroke-dasharray: 6 4; }
.rhy-dot-a { fill: #2a4a78; }
.rhy-dot-b { fill: #fff; stroke: #a8643c; stroke-width: 2; }

.affinity-rhythm-legend {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.affinity-rhythm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.affinity-rhythm-legend-mark {
  width: 28px;
  height: 2px;
  position: relative;
}
.affinity-rhythm-legend-mark.mark-a {
  background: #2a4a78;
}
.affinity-rhythm-legend-mark.mark-a::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2a4a78;
}
.affinity-rhythm-legend-mark.mark-b {
  background: transparent;
  border-top: 2px dashed #a8643c;
}
.affinity-rhythm-legend-mark.mark-b::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: #fff;
  border: 2px solid #a8643c;
}

.affinity-rhythm-details {
  margin: 18px 0 0;
  font-size: 13px;
}
.affinity-rhythm-details > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  padding: 8px 0;
}
.affinity-rhythm-details > summary:hover { color: var(--ink); }
.affinity-rhythm-table-wrap {
  overflow-x: auto;
  margin: 8px 0 0;
}
.affinity-rhythm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.affinity-rhythm-table th,
.affinity-rhythm-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.affinity-rhythm-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.05em;
}
.affinity-rhythm-table td:first-child { color: var(--muted); font-size: 12px; }

/* ===== TODAY'S WORDS お気に入り ===== */
.quote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.quote-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.quote-like:hover { background: #f3f3f5; border-color: var(--ink); }
.quote-like.is-liked {
  background: #fdf2eb;
  border-color: #d9a47a;
  color: #8c4a23;
}
.quote-like-icon {
  font-size: 14px;
  line-height: 1;
}
.quote-like.is-liked .quote-like-icon { color: #c8602a; }
.quote-liked-list-link {
  font-size: 11.5px;
  color: var(--muted);
  text-decoration: none;
}
.quote-liked-list-link:hover { color: var(--ink); text-decoration: underline; }

.liked-quotes-empty {
  text-align: center;
  padding: 40px 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* ===== 質問回数の事前確認モーダル ===== */
#quota-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 31, 35, 0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: quota-confirm-fadein 0.18s ease-out;
}
@keyframes quota-confirm-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.quota-confirm-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px 18px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}
.quota-confirm-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.quota-confirm-body {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.quota-confirm-body strong { color: var(--ink); }
.quota-confirm-buttons {
  display: flex;
  gap: 10px;
  margin: 0 0 12px;
}
.quota-confirm-btn {
  flex: 1;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.08em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.quota-confirm-cancel {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.quota-confirm-cancel:hover { background: #f3f3f5; border-color: var(--ink); }
.quota-confirm-ok {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
}
.quota-confirm-ok:hover { background: #0a0a0e; }
.quota-confirm-skip {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
  padding: 6px 4px;
  margin: 0;
  font-family: inherit;
  text-decoration: underline;
}
.quota-confirm-skip:hover { color: var(--ink); }

.about-mindset-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-mindset-list li {
  background: #f3f3f5;
  border: 1px solid #d8d8dc;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.85;
  color: #3a3a40;
}
.about-mindset-list strong {
  color: #1f1f23;
  font-weight: 700;
}

/* ===== 管理者用PDF出力ボタン ===== */
.admin-pdf-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f3f3f5 0%, #f3f3f5 100%);
  border: 1px solid #c4c4c8;
  border-radius: 10px;
}
.admin-pdf-btn {
  background: #1f1f23;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.admin-pdf-btn:hover { background: #1f1f23; transform: translateY(-1px); }
.admin-pdf-hint {
  font-size: 12px;
  color: #6e6e76;
}

/* ===== 印刷（PDF出力）用スタイル =====
 * body.print-admin-mode が付いている時だけ「綺麗な印刷」を有効にする。
 * このクラスは管理者ログイン時にだけ JS で付与される（_admin_pdf_button.html 参照）。
 * よって、一般ユーザーが Cmd+P / Ctrl+P で印刷しようとしても、
 * メニューや余計な装飾が残った見栄えの悪い印刷になり、PDF出力としては使い物にならない。
 */
@media print {
  @page { margin: 12mm; size: A4; }
  /* 非管理者の場合は分析の本文を印刷から除外（万一印刷されても情報が出ないように） */
  body:not(.print-admin-mode) main,
  body:not(.print-admin-mode) header {
    display: none !important;
  }
  body:not(.print-admin-mode)::before {
    content: "印刷はご利用いただけません。";
    display: block;
    padding: 80px 20px;
    text-align: center;
    font-size: 20px;
    color: #4d4d54;
  }

  /* 以下、管理者モードでだけ適用される「綺麗な印刷」用スタイル */
  body.print-admin-mode { background: #fff !important; color: #000 !important; }
  body.print-admin-mode .no-print,
  body.print-admin-mode .menu-toggle,
  body.print-admin-mode .drawer,
  body.print-admin-mode .drawer-backdrop,
  body.print-admin-mode .status-bar,
  body.print-admin-mode .back,
  body.print-admin-mode .ask,
  body.print-admin-mode .affinity-deep-form,
  body.print-admin-mode .profile-actions,
  body.print-admin-mode .mentor-history-followup-wrap,
  body.print-admin-mode .ask-continue-form,
  body.print-admin-mode .home-card-form,
  body.print-admin-mode #ai-loading-overlay,
  body.print-admin-mode .admin-pdf-bar {
    display: none !important;
  }
  body.print-admin-mode details { page-break-inside: avoid; }
  body.print-admin-mode details > summary { list-style: none; }
  body.print-admin-mode details > summary::-webkit-details-marker { display: none; }
  body.print-admin-mode details:not([open]) > *:not(summary) { display: block !important; }
  body.print-admin-mode .container { padding: 0 !important; max-width: 100% !important; }
  body.print-admin-mode .card {
    box-shadow: none !important; border: 1px solid #e2e2e6 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    page-break-inside: avoid; margin-bottom: 8px !important;
  }
  /* 長い説明セクションはページをまたいで自然に流す（白紙を作らない） */
  body.print-admin-mode .card.section { page-break-inside: auto; }
  /* お客様にお渡しするPDFでは出さない（販促・操作・編集・共有ボタン系） */
  body.print-admin-mode .referral-card,
  body.print-admin-mode .profile-actions,
  body.print-admin-mode .save-profile,
  body.print-admin-mode .share-fab,
  body.print-admin-mode .share-fab-toast,
  body.print-admin-mode .share-card-btn { display: none !important; }
  /* 本文を上品に、少し小さめに整える */
  body.print-admin-mode p,
  body.print-admin-mode li,
  body.print-admin-mode dd,
  body.print-admin-mode dt { font-size: 11px !important; line-height: 1.7 !important; }
  body.print-admin-mode .subtitle { font-size: 10.5px !important; margin: 0 0 6px !important; }
  body.print-admin-mode .body,
  body.print-admin-mode .subsection-body { font-size: 11px !important; line-height: 1.75 !important; }
  body.print-admin-mode .subsection { margin: 8px 0 0 !important; }
  body.print-admin-mode .subsection-heading { font-size: 12.5px !important; margin: 8px 0 4px !important; }
  body.print-admin-mode .affinity-deep-body,
  body.print-admin-mode .affinity-deep-body.card {
    page-break-inside: auto !important;
    border: none !important;
    padding: 0 !important;
  }
  body.print-admin-mode .deep-text {
    font-size: 12.5px !important;
    line-height: 1.85 !important;
    color: #000 !important;
  }
  body.print-admin-mode .deep-h {
    page-break-after: avoid;
    break-after: avoid;
    font-size: 14px !important;
    color: #000 !important;
    margin-top: 18px !important;
    padding-left: 8px !important;
    border-left: 3px solid #4d4d54 !important;
  }
  body.print-admin-mode .deep-p {
    color: #000 !important;
    font-size: 12.5px !important;
    margin-bottom: 10px !important;
    page-break-inside: avoid;
    break-inside: avoid;
    orphans: 3;
    widows: 3;
  }
  body.print-admin-mode .today-tagline,
  body.print-admin-mode .quote-body,
  body.print-admin-mode .r-tagline { color: #000 !important; }
  body.print-admin-mode h1 { font-size: 20px !important; margin: 0 0 4px !important; }
  body.print-admin-mode h2 { font-size: 15px !important; margin: 0 0 6px !important; }
  body.print-admin-mode h3 { font-size: 12.5px !important; }
  body.print-admin-mode .hint-slider { display: block !important; overflow: visible !important; }
  body.print-admin-mode .hint-slide { display: block !important; width: 100% !important; }
  body.print-admin-mode .hint-dots,
  body.print-admin-mode .hint-swipe-hint { display: none !important; }
  body.print-admin-mode a { color: #000 !important; text-decoration: none !important; }

  /* === 別紙：運気リズムをA4にバランスよく収める === */
  @page { size: A4; margin: 12mm; }
  body.print-admin-mode .print-only { display: block !important; }
  body.print-admin-mode .affinity-deep-cta { display: none !important; } /* 印刷では販促CTAを出さない */

  /* 12年の流れ＝別紙の先頭シート、12ヶ月の流れ＝次のシート（年と月を分けてバランス） */
  body.print-admin-mode .rhythm-appendix .ryear { break-before: page; page-break-before: always; }
  body.print-admin-mode .rhythm-appendix .rmonth { break-before: page; page-break-before: always; }
  body.print-admin-mode .print-appendix-title {
    font-size: 16px !important; font-weight: 700; text-align: center; color: #000 !important;
    margin: 0 0 8px; padding-bottom: 5px; border-bottom: 1.5px solid #000;
  }
  body.print-admin-mode .rhythm-appendix .card.rhythm {
    padding: 0 !important; border: none !important; box-shadow: none !important;
    margin: 0 0 4px !important; background: none !important;
    /* タイトル直後から流し込む（カードを丸ごと次ページへ送らない） */
    page-break-inside: auto !important; break-inside: auto !important;
  }
  body.print-admin-mode .rhythm h2 { font-size: 14px !important; margin: 0 0 5px !important; }
  body.print-admin-mode .rhythm .subtitle { display: none !important; }

  /* 各行をコンパクトに（説明文は全部出す） */
  body.print-admin-mode .rhythm-list { margin: 0 !important; border-top: 1px solid #bbb; }
  body.print-admin-mode .rhythm-row {
    break-inside: avoid; page-break-inside: avoid;
    border-bottom: 1px solid #ddd; border-left: 2px solid #999 !important;
  }
  body.print-admin-mode .rhythm-row > summary {
    grid-template-columns: auto auto 1fr !important; gap: 8px !important;
    padding: 4px 6px !important; font-size: 10.5px !important;
  }
  body.print-admin-mode .rhythm-row > summary::after { display: none !important; }
  body.print-admin-mode .rhythm-row .r-mark { min-width: 0 !important; font-size: 10px !important; }
  body.print-admin-mode .rhythm-row .r-name { padding-right: 0 !important; font-size: 10.5px !important; }
  body.print-admin-mode .rhythm-row .r-cat { font-size: 9px !important; margin-top: 0 !important; }
  body.print-admin-mode .rhythm-row .r-detail {
    display: block !important; padding: 2px 8px 7px !important;
    border-top: 1px dotted #ccc; background: none !important;
  }
  body.print-admin-mode .r-tagline {
    font-size: 10.5px !important; font-weight: 700; color: #000 !important;
    margin: 4px 0 2px !important; letter-spacing: 0 !important;
  }
  body.print-admin-mode .r-body {
    font-size: 9.5px !important; line-height: 1.5 !important;
    margin: 0 0 4px !important; letter-spacing: 0 !important; color: #222 !important;
  }
  /* すべきこと／気をつけること は2カラムのまま圧縮 */
  body.print-admin-mode .r-twocol {
    display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; columns: auto !important;
  }
  body.print-admin-mode .r-col {
    display: block !important; padding: 5px 8px !important; background: none !important; border: 1px solid #ccc !important;
  }
  body.print-admin-mode .r-col h4 { font-size: 9.5px !important; margin: 0 0 3px !important; }
  body.print-admin-mode .r-col ul { font-size: 9px !important; padding-left: 14px !important; }
  body.print-admin-mode .r-col li { margin-bottom: 1px !important; line-height: 1.4 !important; }
}

/* 印刷専用要素（画面では非表示、管理者の印刷時のみ表示） */
.print-only { display: none; }

/* 「自分に集中！」シグネチャタグライン共通 */
.unlock-tagline,
.about-tagline {
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: #1f1f23;
  margin: 8px 0 12px;
}
.about-tagline {
  margin: 0 0 16px;
}

.unlock-ref-input-label {
  display: block;
  margin-top: 4px;
}
.unlock-ref-optional {
  font-size: 11px;
  color: #8a8a8a;
  font-weight: 400;
}

.unlock-ref-banner {
  background: #f3f3f5;
  border: 1px solid #d8d8dc;
  color: #1f1f23;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ====================================================================
   Instagram投稿テンプレート（/posts/instagram）
   ==================================================================== */
body.insta-page {
  background: #efefef;
  margin: 0;
  padding: 20px;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}
.insta-header {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
}
.insta-header h1 {
  margin: 0 0 12px;
  font-size: 22px;
  color: #1f1f23;
}
.insta-instructions {
  margin: 0;
  font-size: 13px;
  color: #4d4d54;
  line-height: 1.8;
}
.insta-instructions kbd {
  background: #1f1f23;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.insta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.insta-card-wrap {
  width: 540px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.insta-card-label {
  font-size: 13px;
  color: #6e6e76;
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* === ベース：見た目 540×540（実体は内部 1080×1080 を scale(0.5)） === */
.insta-card {
  width: 540px;
  height: 540px;
  position: relative;
  overflow: hidden;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  border-radius: 4px;
}
.insta-card > .insta-card-content,
.insta-card > .insta-card-bg-text {
  transform: scale(0.5);
  transform-origin: top left;
  width: 1080px;
}

.insta-card-content {
  position: relative;
  z-index: 2;
  padding: 90px 80px;
  height: 1080px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.insta-card-content.insta-center {
  text-align: center;
  align-items: center;
}

.insta-eyebrow {
  font-size: 22px;
  letter-spacing: 0.45em;
  color: #6e6e76;
  font-weight: 700;
  margin: 0 0 36px;
  text-transform: uppercase;
}
.insta-eyebrow.insta-light { color: #b8b8c0; }

.insta-headline {
  font-size: 80px;
  line-height: 1.45;
  margin: 0 0 40px;
  color: #1f1f23;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.insta-headline.insta-light { color: #fff; }

.insta-headline-large {
  font-size: 96px;
  line-height: 1.45;
  margin: 0 0 44px;
  color: #1f1f23;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.insta-headline-large.insta-light { color: #fff; }
.insta-headline-large em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.25) 60%);
  padding: 0 8px;
}
.insta-card-01 em,
.insta-card-08 em {
  background: linear-gradient(180deg, transparent 60%, #e7e7ea 60%);
}

.insta-sub {
  font-size: 32px;
  line-height: 1.85;
  color: #4d4d54;
  margin: 0 0 32px;
}
.insta-sub.insta-light { color: rgba(255,255,255,0.88); }
.insta-sub strong { color: #1f1f23; font-weight: 700; }
.insta-sub.insta-light strong { color: #fff; }

.insta-tag {
  font-size: 24px;
  color: #8a8a92;
  margin: 0;
  letter-spacing: 0.2em;
}

.insta-footer-tag {
  font-size: 28px;
  color: #4d4d54;
  margin: auto 0 0;
  padding-top: 32px;
  border-top: 2px solid #e7e7ea;
  font-weight: 600;
}

.insta-divider {
  width: 80px;
  height: 3px;
  background: #1f1f23;
  margin: 0 0 40px;
}
.insta-card-content.insta-center .insta-divider {
  margin-left: auto;
  margin-right: auto;
}
.insta-card-02 .insta-divider { background: #fff; }

.insta-cta-handle {
  font-size: 36px;
  color: #1f1f23;
  margin: 36px 0 0;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* === Card 01: Hero（ホワイト＋背景に薄い大型テキスト） === */
.insta-card-01 {
  background: #ffffff;
}
.insta-card-bg-text {
  position: absolute;
  top: 40px;
  right: -60px;
  font-size: 280px;
  font-weight: 900;
  color: #f3f3f5;
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: Georgia, serif;
  z-index: 1;
}

/* === Card 02: ダーク === */
.insta-card-02 {
  background: linear-gradient(135deg, #1f1f23 0%, #2c2c33 100%);
}

/* === Card 03: 共感 === */
.insta-card-03 {
  background: #f3f3f5;
}
.insta-pain-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.insta-pain-list li {
  background: #fff;
  border-left: 6px solid #1f1f23;
  padding: 24px 32px;
  font-size: 30px;
  line-height: 1.7;
  color: #1f1f23;
  border-radius: 0 12px 12px 0;
}

/* === Card 04: 9機能 === */
.insta-card-04 {
  background: #ffffff;
}
.insta-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  margin-top: 20px;
}
.insta-feat-item {
  background: #f3f3f5;
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  font-size: 48px;
  line-height: 1.3;
  color: #1f1f23;
}
.insta-feat-item span {
  display: block;
  font-size: 22px;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* === Card 05: チャットモック === */
.insta-card-05 {
  background: #f3f3f5;
}
.insta-chat-mock {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 32px 0 28px;
}
.insta-chat-line {
  padding: 24px 28px;
  border-radius: 24px;
  font-size: 26px;
  line-height: 1.7;
  max-width: 78%;
}
.insta-chat-user {
  background: #1f1f23;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.insta-chat-mentor {
  background: #fff;
  color: #1f1f23;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  border: 1px solid #e7e7ea;
}

/* === Card 06: 心構え === */
.insta-card-06 {
  background: #ffffff;
}
.insta-mindset-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ms;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.insta-mindset-list li {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.insta-mindset-num {
  font-size: 56px;
  font-weight: 900;
  color: #d8d8dc;
  line-height: 1;
  font-family: Georgia, serif;
  flex: 0 0 auto;
}
.insta-mindset-text {
  font-size: 28px;
  line-height: 1.7;
  color: #1f1f23;
}
.insta-mindset-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

/* === Card 07: 価格 === */
.insta-card-07 {
  background: #ffffff;
}
.insta-price-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 32px;
}
.insta-price-block {
  background: #f3f3f5;
  border-radius: 16px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.insta-price-recommend {
  background: #1f1f23;
  color: #fff;
}
.insta-price-tag-mini {
  font-size: 20px;
  letter-spacing: 0.2em;
  color: #6e6e76;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
}
.insta-price-recommend .insta-price-tag-mini { color: #b8b8c0; }
.insta-price-num {
  font-size: 30px;
  margin: 0;
  color: inherit;
}
.insta-price-num strong {
  font-size: 64px;
  font-weight: 800;
  display: inline-block;
}
.insta-price-sub {
  font-size: 22px;
  color: inherit;
  margin: 0;
}
.insta-price-recommend .insta-price-sub { color: rgba(255,255,255,0.88); }
.insta-price-note {
  font-size: 20px;
  color: inherit;
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.insta-price-recommend .insta-price-note { border-top-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.88); }

/* === Card 08: 紹介 === */
.insta-card-08 {
  background: linear-gradient(135deg, #ffffff 0%, #f3f3f5 100%);
}
.insta-gift-icon {
  font-size: 140px;
  margin: 0 0 32px;
  line-height: 1;
}

/* === Card 09: CTA === */
.insta-card-09 {
  background: linear-gradient(180deg, #f3f3f5 0%, #ffffff 100%);
}

/* === プレビュー画面用ヘッダ・フッター === */
.insta-footer {
  text-align: center;
  margin-top: 60px;
  padding: 24px;
  color: #6e6e76;
  font-size: 13px;
}

/* スクショ時にプレビュー要素を隠すヘルパー */
@media print {
  .no-capture { display: none !important; }
}

/* ====================================================================
   LINE配信用カード（/posts/line）
   既存の .insta-card を流用しつつ、LINE専用バリエーション
   ==================================================================== */

.insta-headline-mid {
  font-size: 70px;
  line-height: 1.45;
  margin: 0 0 56px;
  color: #1f1f23;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* === Card LINE 01: 深い分析の場所ガイド === */
.insta-card-line-01 {
  background: #ffffff;
}
.line-step-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 32px;
}
.line-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.line-step-num {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f3f3f5;
  color: #1f1f23;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
}
.line-step-num-cta {
  background: #1f1f23;
  color: #ffffff;
  font-family: inherit;
  font-size: 26px;
}
.line-step-cta .line-step-body {
  background: #1f1f23;
  color: #ffffff;
  padding: 20px 24px;
  border-radius: 12px;
  flex: 1;
}
.line-step-cta .line-step-title { color: #ffffff; }
.line-step-cta .line-step-desc { color: rgba(255,255,255,0.85); }
.line-step-body {
  flex: 1;
  padding-top: 8px;
}
.line-step-title {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1f1f23;
  letter-spacing: 0.03em;
}
.line-step-desc {
  font-size: 22px;
  line-height: 1.7;
  margin: 0;
  color: #4d4d54;
}

/* === Card LINE 02: 質問例集 === */
.insta-card-line-02 {
  background: #f3f3f5;
}
.line-q-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.line-q-item {
  background: #ffffff;
  padding: 22px 26px;
  border-radius: 14px;
  border-left: 6px solid #1f1f23;
}
.line-q-tag {
  display: inline-block;
  font-size: 18px;
  background: #1f1f23;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 12px;
}
.line-q-item p {
  font-size: 26px;
  line-height: 1.7;
  color: #1f1f23;
  margin: 0;
  font-weight: 500;
}

/* === Card LINE 03: ソフトCTA === */
.insta-card-line-03 {
  background: linear-gradient(180deg, #1f1f23 0%, #2c2c33 100%);
  color: #ffffff;
}
.insta-card-line-03 .insta-eyebrow { color: #b8b8c0; }
.insta-card-line-03 .insta-headline-large { color: #ffffff; }
.insta-card-line-03 .insta-headline-large em {
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.18) 60%);
  padding: 0 8px;
}
.insta-card-line-03 .insta-divider {
  background: #ffffff;
}
.insta-card-line-03 .insta-sub {
  color: rgba(255,255,255,0.85);
}
.line-cta-mini {
  font-size: 28px;
  color: #ffffff;
  margin: 40px 0 0;
  font-weight: 700;
  letter-spacing: 0.2em;
}

/* ====================================================================
   管理画面 - 利用状況分析（/admin/analytics）
   ==================================================================== */
.analytics-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.analytics-stat {
  background: #f7f7f9;
  border: 1px solid #e7e7ea;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.analytics-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #1f1f23;
  line-height: 1;
  margin-bottom: 6px;
}
.analytics-stat-label {
  font-size: 12px;
  color: #6e6e76;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.analytics-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.analytics-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.analytics-bar-label {
  flex: 0 0 200px;
  font-size: 13px;
  color: #1f1f23;
  font-weight: 500;
}
.analytics-bar-track {
  flex: 1;
  background: #f3f3f5;
  border-radius: 999px;
  height: 28px;
  position: relative;
  overflow: hidden;
}
.analytics-bar-fill {
  background: linear-gradient(90deg, #2c2c33, #1f1f23);
  color: #fff;
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 12px;
  font-weight: 700;
  min-width: 28px;
  transition: width 0.4s ease;
}

/* === ヒートマップ === */
.heatmap-wrap {
  overflow-x: auto;
}
.heatmap {
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 11px;
}
.heatmap th {
  background: #f3f3f5;
  color: #6e6e76;
  padding: 4px 6px;
  font-weight: 600;
  text-align: center;
  font-size: 10.5px;
}
.heatmap td {
  width: 28px;
  height: 28px;
  text-align: center;
  color: #1f1f23;
  font-weight: 700;
  font-size: 10.5px;
  border-radius: 4px;
  cursor: default;
}
.heatmap .heat-0 { background: #f3f3f5; }
.heatmap .heat-1 { background: #d8d8dc; }
.heatmap .heat-2 { background: #a8a8b2; color: #fff; }
.heatmap .heat-3 { background: #6e6e76; color: #fff; }
.heatmap .heat-4 { background: #3a3a42; color: #fff; }
.heatmap .heat-5 { background: #1f1f23; color: #fff; }

.heatmap-legend {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 14px 0 0;
  font-size: 12px;
  color: #6e6e76;
}
.heatmap-legend span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-right: 2px;
}
.heatmap-legend .heat-0 { background: #f3f3f5; }
.heatmap-legend .heat-1 { background: #d8d8dc; }
.heatmap-legend .heat-3 { background: #6e6e76; }
.heatmap-legend .heat-5 { background: #1f1f23; }

/* === 日別推移バー === */
.analytics-daily-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 180px;
  padding: 10px 0 30px;
  border-bottom: 1px solid #e7e7ea;
  position: relative;
}
.analytics-daily-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  min-width: 0;
  height: 100%;
}
.analytics-daily-fill {
  width: 100%;
  background: linear-gradient(180deg, #2c2c33, #1f1f23);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height 0.4s ease;
}
.analytics-daily-label {
  position: absolute;
  bottom: -22px;
  font-size: 10px;
  color: #6e6e76;
  white-space: nowrap;
}

/* === Instagram カード 00: シグネチャタグライン（自分に集中！） === */
.insta-card-00 {
  background: linear-gradient(135deg, #1f1f23 0%, #2c2c33 100%);
}
.insta-headline-signature {
  font-size: 200px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0 0 40px;
  color: #ffffff;
  text-align: center;
}


/* ============================================================
   BASE 商品ページ用 1080×1080 カード（base_posts.html）
   既存 .insta-card の 540×540 表示・内部 1080 構造を流用しつつ
   BASE 向けに「機能ごと」のクリーンな構成を作る。
   ============================================================ */
.base-card.base-card-light {
  background: #fff;
}
.base-card.base-card-dark {
  background: #1f1f23;
}
.base-card.base-card-cover {
  background: linear-gradient(160deg, #1f1f23 0%, #2c2c33 100%);
}

.base-card .insta-card-content {
  padding: 110px 90px;
}
.base-card .insta-card-content.insta-center {
  padding: 110px 70px;
}

.base-num {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 100px;
  font-weight: 200;
  color: #1f1f23;
  margin: 0 0 24px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.base-num.insta-light { color: #f0f0f1; opacity: 0.85; }

.base-card .insta-eyebrow {
  font-size: 22px;
  letter-spacing: 0.4em;
  margin-bottom: 24px;
  color: #6e6e76;
}
.base-card .insta-eyebrow.insta-light { color: #c4c4c8; }

.base-feature-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 50px;
  color: #1f1f23;
  letter-spacing: 0.03em;
}
.base-feature-title.insta-light { color: #fff; }
.base-feature-title-sub {
  font-size: 38px;
  font-weight: 300;
  display: block;
  margin-top: 16px;
  color: #6e6e76;
  letter-spacing: 0.06em;
}
.base-card-dark .base-feature-title-sub { color: #b8b8c0; }

.base-feature-body {
  font-size: 30px;
  line-height: 1.8;
  color: #1f1f23;
  margin: 0 0 36px;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
.base-feature-body.insta-light { color: #e7e7ea; }

.base-feature-tag {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: #6e6e76;
  border: 1px solid #d8d8dc;
  padding: 12px 24px;
  border-radius: 999px;
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
.base-feature-tag.insta-light {
  color: #c4c4c8;
  border-color: #4d4d54;
}

.base-brand {
  position: absolute;
  bottom: 60px;
  left: 90px;
  font-size: 18px;
  letter-spacing: 0.4em;
  color: #6e6e76;
  font-weight: 600;
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
.base-brand.insta-light { color: #a8a8b0; }
.insta-card-content.insta-center .base-brand {
  position: static;
  margin-top: 70px;
  text-align: center;
}

/* 表紙 */
.base-cover-title {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 140px;
  font-weight: 200;
  letter-spacing: 0.15em;
  color: #fff;
  margin: 24px 0 0;
  line-height: 1.05;
  text-align: center;
}
.base-divider {
  width: 60px;
  height: 1px;
  background: #c4c4c8;
  margin: 60px auto;
}
.base-cover-sub {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 50px;
  text-align: center;
  letter-spacing: 0.06em;
}
.base-cover-foot {
  font-size: 24px;
  line-height: 1.9;
  color: #b8b8c0;
  text-align: center;
  margin: 0;
  letter-spacing: 0.03em;
}

/* プラン */
.base-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 50px 0 0;
  width: 100%;
}
.base-plan-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
}
.base-plan-tag {
  font-size: 22px;
  letter-spacing: 0.15em;
  color: #c4c4c8;
  margin: 0 0 16px;
  font-weight: 600;
}
.base-plan-price {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 52px;
  font-weight: 300;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.1;
}
.base-plan-price small {
  font-size: 18px;
  color: #a8a8b0;
  font-weight: 400;
}
.base-plan-sub {
  font-size: 20px;
  color: #c4c4c8;
  margin: 0 0 14px;
  line-height: 1.6;
}
.base-plan-feat {
  font-size: 18px;
  color: #a8a8b0;
  line-height: 1.7;
  margin: 0;
}

/* 表紙閉じ */
.base-closing {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 76px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  margin: 30px 0 40px;
  letter-spacing: 0.04em;
}
.base-closing-sub {
  font-size: 30px;
  line-height: 1.9;
  color: #e7e7ea;
  margin: 0 0 60px;
  letter-spacing: 0.04em;
}
.base-closing-line {
  font-size: 22px;
  color: #b8b8c0;
  letter-spacing: 0.08em;
  margin: 0 0 40px;
  line-height: 1.8;
}


/* ============================================================
   BASE 商品ページ用 機能画面イメージ（mock）
   ============================================================ */
.base-card.base-card-mock {
  background: #f3f3f5;
}
.base-mock-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 56px;
  font-weight: 400;
  margin: 0 0 36px;
  color: #1f1f23;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.base-mock-cap {
  font-size: 22px;
  color: #4d4d54;
  margin: 32px 0 0;
  line-height: 1.7;
  letter-spacing: 0.04em;
}
.base-mock-legend {
  font-size: 20px;
  color: #6e6e76;
  margin: 16px 0 0;
  letter-spacing: 0.06em;
}

/* スマホ風フレーム */
.base-phone {
  background: #1f1f23;
  border-radius: 50px;
  padding: 18px 14px;
  width: 540px;
  margin: 0 auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.base-phone-screen {
  background: #fafafa;
  border-radius: 36px;
  padding: 28px 22px;
  height: 720px;
  overflow: hidden;
  position: relative;
}

.base-phone-card {
  background: #fff;
  border: 1px solid #e7e7ea;
  border-radius: 14px;
  padding: 20px 18px;
  margin: 0 0 12px;
  text-align: left;
}
.base-phone-card-light { background: #fafafa; }
.base-phone-card-dark {
  background: #1f1f23;
  border-color: #1f1f23;
  color: #fff;
}

.base-phone-eyebrow {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #8a8a92;
  margin: 0 0 6px;
  font-weight: 600;
}
.base-phone-eyebrow.insta-light { color: #b8b8c0; }
.base-phone-h {
  font-size: 22px;
  font-weight: 700;
  color: #1f1f23;
  margin: 0 0 8px;
  line-height: 1.4;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
.base-phone-h.insta-light { color: #fff; }
.base-phone-h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 26px;
  font-weight: 500;
  color: #1f1f23;
  margin: 0 0 16px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.base-phone-p {
  font-size: 14px;
  color: #4d4d54;
  margin: 0;
  line-height: 1.7;
}
.base-phone-p.insta-light { color: #c4c4c8; }

.base-phone-kv {
  list-style: none;
  margin: 0;
  padding: 0;
}
.base-phone-kv li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e7e7ea;
  font-size: 14px;
  color: #1f1f23;
}
.base-phone-kv li:last-child { border-bottom: none; }
.base-phone-kv li span:first-child { color: #6e6e76; font-size: 12.5px; }
.base-phone-kv li span:last-child { font-weight: 600; }

/* 深い分析 (mock) */
.base-phone-deep-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #8a8a92;
  font-weight: 700;
  margin: 0 0 8px;
}
.base-phone-deep-text p {
  font-size: 13.5px;
  line-height: 1.95;
  color: #1f1f23;
  margin: 0 0 8px;
}
.base-phone-deep-h {
  font-size: 14px;
  font-weight: 700;
  color: #1f1f23;
  margin: 16px 0 6px;
}
.base-phone-deep-p {
  font-size: 13px;
  line-height: 1.9;
  color: #4d4d54;
  margin: 0 0 4px;
}

/* チャット (mock) */
.base-phone-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafafa;
  padding: 22px 18px;
}
.base-chat-row {
  display: flex;
  width: 100%;
}
.base-chat-row.base-chat-user { justify-content: flex-end; }
.base-chat-row.base-chat-ai { justify-content: flex-start; }
.base-chat-bubble {
  max-width: 78%;
  padding: 11px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
}
.base-chat-user .base-chat-bubble {
  background: #1f1f23;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.base-chat-ai .base-chat-bubble {
  background: #fff;
  color: #1f1f23;
  border: 1px solid #e7e7ea;
  border-bottom-left-radius: 4px;
}

/* 相性チャート (mock) */
.base-chart-wrap {
  background: #fafafa;
  border-radius: 8px;
  padding: 8px;
  margin: 0;
}
.base-chart-svg { width: 100%; height: auto; }
.base-chart-grid { stroke: #e7e7ea; stroke-width: 1; }
.base-chart-y, .base-chart-x { font-size: 12px; fill: #8a8a92; }
.base-chart-line-a { stroke: #2a4a78; stroke-width: 2.5; }
.base-chart-line-b { stroke: #a8643c; stroke-width: 2.5; stroke-dasharray: 6 4; }
.base-chart-dot-a { fill: #2a4a78; }
.base-chart-dot-b { fill: #fff; stroke: #a8643c; stroke-width: 2; }

/* 今日のじぶん (mock) */
.base-phone-jv-date {
  font-size: 13px;
  color: #8a8a92;
  text-align: center;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}
.base-phone-jv-label {
  font-size: 14px;
  font-weight: 700;
  color: #1f1f23;
  margin: 0 0 12px;
}
.base-phone-jv-label span {
  font-size: 11px;
  color: #8a8a92;
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 0.1em;
}
.base-phone-jv-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e7e7ea;
}
.base-phone-jv-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f3f3f5;
  color: #8a8a92;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.base-phone-jv-line { font-size: 13.5px; color: #1f1f23; line-height: 1.6; }
.base-phone-insight {
  margin-top: 16px;
}
.base-phone-insight-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #a8a8b0;
  margin: 0 0 6px;
}
.base-phone-insight-h {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.base-phone-insight-tag {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: #f0c97a;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}

/* TODAY'S WORDS (mock) */
.base-phone-tw-label {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #8a8a92;
  margin: 0 0 6px;
  font-weight: 600;
}
.base-phone-tw-date {
  font-size: 11.5px;
  color: #8a8a92;
  margin: 0 0 16px;
}
.base-phone-tw-body {
  font-size: 14.5px;
  color: #1f1f23;
  line-height: 1.8;
  margin: 0 0 16px;
}
.base-phone-tw-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e7e7ea;
}
.base-phone-tw-like {
  font-size: 12px;
  background: #fdf2eb;
  color: #8c4a23;
  padding: 6px 14px;
  border: 1px solid #d9a47a;
  border-radius: 999px;
}
.base-phone-tw-like-count {
  font-size: 11px;
  color: #8a8a92;
}

/* === メニュー: モニター向けロック項目 === */
.drawer-item-locked {
  opacity: 0.55;
}
.drawer-sub-locked {
  opacity: 0.55;
}

/* === 深い分析 おすすめポップアップ === */
.deep-popup-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 900;
  opacity: 0; transition: opacity .3s;
}
.deep-popup-backdrop.is-visible { opacity: 1; }

.deep-popup {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 901;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  box-shadow: 0 -4px 32px rgba(0,0,0,.12);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  max-width: 560px;
  margin: 0 auto;
}
.deep-popup.is-visible { transform: translateY(0); }

.deep-popup-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 18px; color: var(--muted);
  cursor: pointer; padding: 4px 8px;
  line-height: 1;
}
.deep-popup-eyebrow {
  font-size: 10.5px; letter-spacing: .2em;
  color: var(--muted); margin: 0 0 10px;
  text-transform: uppercase;
}
.deep-popup-title {
  font-size: 22px; font-weight: 700;
  line-height: 1.4; margin: 0 0 12px;
  letter-spacing: .02em;
}
.deep-popup-body {
  font-size: 13px; color: #3a3a42;
  line-height: 1.8; margin: 0 0 20px;
}
.deep-popup-btn {
  display: block; width: 100%;
  background: var(--ink); color: #fff;
  border: none; border-radius: 999px;
  padding: 14px 20px; font-size: 15px;
  font-weight: 600; letter-spacing: .06em;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.deep-popup-btn:hover { background: #0a0a0e; }
.deep-popup-note {
  font-size: 11px; color: var(--muted);
  text-align: center; margin: 10px 0 0;
}

/* === モニタープレビュー: フェード + 鍵ロック === */
.section-locked-content {
  max-height: 120px;
  overflow: hidden;
  position: relative;
}
.section-locked-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}
.section-locked-overlay {
  padding: 14px 0 4px;
  text-align: center;
}
.section-lock-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.65;
}
.section-lock-msg {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.section-lock-btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 9px 22px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.08em;
}
.section-lock-btn:hover {
  opacity: 0.82;
}
.ai-locked-card {
  text-align: center;
  padding: 28px 22px;
}
.ai-lock-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
  opacity: 0.6;
}
.ai-locked-title {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.ai-locked-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 16px;
}
