/* =========================================================
   Ma Couleur — スタイル
   スマホ（375px前後）を基準に作り、広い画面では中央寄せで少し広げます。
   ========================================================= */

/* ---------- デザインの基本（色・文字・余白） ---------- */
:root {
  color-scheme: light;

  /* 色 */
  --bg: #fdf8f5;
  --surface: #ffffff;
  --surface-2: #faf3f0;
  --ink: #463c45;
  --ink-2: #7b6f78;
  --ink-3: #aa9ea7;
  --line: #efe4e6;
  --line-2: #e4d6da;

  --plum: #9b7aa8;
  --plum-deep: #75568a;
  --rose: #e6a4b4;
  --rose-soft: #fbeaee;
  --lavender-soft: #efe9f7;
  --sage: #9db394;
  --butter: #fbf1d3;

  --brand-grad: linear-gradient(120deg, #eaaebc 0%, #c49bc0 55%, #9b7aa8 100%);

  /* タイプ別ページで上書きされるアクセント */
  --accent: var(--plum);
  --accent-soft: var(--lavender-soft);

  /* 文字 */
  --font-sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;

  /* 形 */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgb(117 86 138 / 0.05), 0 8px 24px -12px rgb(117 86 138 / 0.22);
  --shadow-2: 0 2px 4px rgb(117 86 138 / 0.05), 0 18px 40px -18px rgb(117 86 138 / 0.38);

  /* 動き */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--plum);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- ページの切り替え ---------- */

/* 対応ブラウザでは、ページ移動をふわっとつなぐ */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 0.22s var(--ease) both vt-out;
}
::view-transition-new(root) {
  animation: 0.42s var(--ease) both vt-in;
}
@keyframes vt-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes vt-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* 未対応のブラウザでは、読み込み時にふわっと表示 */
@supports not (view-transition-name: none) {
  main {
    animation: page-in 0.5s var(--ease) both;
  }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(10px); }
}

/* スクロールで現れる要素（JSが有効なときだけ隠す） */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg::before,
.bg::after {
  content: "";
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
}
.bg::before {
  top: -40vmax;
  left: -30vmax;
  background: radial-gradient(circle, #f6cfd8, transparent 62%);
}
.bg::after {
  bottom: -44vmax;
  right: -36vmax;
  background: radial-gradient(circle, #e2d8f2, transparent 62%);
}

/* ---------- レイアウト ---------- */
.wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(253 248 245 / 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo img {
  width: 28px;
  height: 28px;
}
.logo-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.logo-text em {
  font-style: inherit;
  color: var(--plum);
}
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.header-link:hover {
  border-color: var(--rose);
}

main {
  padding-bottom: 24px;
}

.site-footer {
  margin-top: 72px;
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--ink-2);
}
.site-footer .logo-text {
  font-size: 22px;
}
.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 14px 0 10px;
}
.site-footer nav a {
  text-decoration: none;
}
.site-footer nav a:hover {
  color: var(--ink);
}

/* ---------- 見出し ---------- */
.section {
  margin-top: 72px;
}
.section-head {
  margin-bottom: 24px;
  text-align: center;
}
.eyebrow {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--plum);
}
.section-head h2 {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.section-head p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.section-head::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--brand-grad);
}

.sub-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.sub-head:first-child {
  margin-top: 0;
}
.sub-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.lead {
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active {
  transform: scale(0.96);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgb(117 86 138 / 0.7);
}
/* 光がすっと流れる */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.4) 50%, transparent 65%);
  transform: translateX(-100%);
}
.btn-primary:hover::after {
  transform: translateX(100%);
  transition: transform 0.8s var(--ease);
}
.btn-primary:hover {
  box-shadow: 0 14px 28px -10px rgb(117 86 138 / 0.8);
}
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-outline:hover {
  border-color: var(--plum);
}
.btn-soft {
  background: var(--accent-soft);
  color: var(--ink);
}
.btn-sm {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 13px;
}
.btn-block {
  width: 100%;
}
.btn-row {
  display: grid;
  gap: 10px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease;
}
.text-link:hover {
  color: var(--ink);
}

/* ---------- カード・チップ ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 26px 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}
.chip-accent {
  background: var(--accent-soft);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--surface-2);
  color: var(--ink-2);
}
.badge.is-done {
  background: var(--accent-soft);
  color: var(--ink);
}

/* =========================================================
   トップページ
   ========================================================= */
.hero {
  padding: 36px 0 8px;
  text-align: center;
}
.hero-visual {
  position: relative;
  width: 210px;
  height: 190px;
  margin: 0 auto 26px;
}
.hero-visual i {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  mix-blend-mode: multiply;
  opacity: 0.82;
  animation: drift 8s ease-in-out infinite;
}
.hero-visual i:nth-child(1) { background: #f7c8ab; top: 6px; left: 22px; }
.hero-visual i:nth-child(2) { background: #c9d3ef; top: 6px; right: 22px; animation-delay: -2s; }
.hero-visual i:nth-child(3) { background: #e3bc93; bottom: 6px; left: 22px; animation-delay: -4s; }
.hero-visual i:nth-child(4) { background: #d9abc8; bottom: 6px; right: 22px; animation-delay: -6s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3px, -7px) scale(1.03); }
}
.hero h1 {
  margin-top: 8px;
  font-size: clamp(25px, 7vw, 32px);
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero .lead {
  margin-top: 16px;
}

/* 診断メニュー */
.menu {
  display: grid;
  gap: 14px;
}
.menu-card {
  position: relative;
  display: block;
  padding: 24px 22px 22px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.menu-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--card-tint, var(--rose-soft));
  transition: transform 0.6s var(--ease);
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.menu-card:hover::before {
  transform: scale(1.12);
}
.menu-card > * {
  position: relative;
}
.menu-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.menu-card .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.menu-card .en {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
}
.menu-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.menu-card p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.8;
}
.menu-card .meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-3);
}
.menu-card .result-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 13px;
}
.menu-card .result-line .dots {
  display: flex;
}
.menu-card .result-line .dots span {
  width: 16px;
  height: 16px;
  margin-right: -4px;
  border-radius: 50%;
  border: 2px solid var(--surface-2);
}
.menu-card .result-line strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
}
.menu-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.menu-card .actions .btn {
  flex: 1;
}

.total-card {
  --card-tint: #f3ecdf;
  text-align: center;
  padding: 28px 22px;
}
.total-card .en {
  margin-top: 0;
}
.total-card .progress-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 4px;
}
.total-card .progress-dots span {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background 0.4s ease;
}
.total-card .progress-dots span.is-done {
  background: var(--brand-grad);
}
.total-card .btn {
  margin-top: 16px;
}
.total-card.is-locked .btn {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(0.4);
}

/* 説明セクション */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.type-grid.cols-3 {
  grid-template-columns: 1fr;
}
.type-tile {
  padding: 18px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.type-tile .en {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
}
.type-tile .ja {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.type-tile p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
}
.type-tile .bar {
  display: flex;
  gap: 3px;
  margin-top: 12px;
}
.type-tile .bar span {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.type-tile.row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.type-tile.row .icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.type-tile.row .icon svg {
  width: 30px;
  height: 30px;
}

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 0 0 22px;
}
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 1px;
  background: var(--line-2);
}
.steps .n {
  flex: none;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  color: var(--plum);
}
.steps h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 2.4;
}
.steps p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.75;
}

.family {
  display: grid;
  gap: 12px;
}
.family .card {
  padding: 22px;
}
.family h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.family h3 span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  color: var(--plum);
}
.family p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

/* =========================================================
   診断ページ
   ========================================================= */
.quiz {
  padding-top: 18px;
}
.quiz-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}
.quiz-head .eyebrow {
  font-size: 15px;
}
.quiz-head h1 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.quiz-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1;
}
.quiz-count strong {
  font-size: 30px;
  font-weight: 600;
  color: var(--plum);
}
.progress {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--brand-grad);
  transition: width 0.5s var(--ease);
}

.stage {
  position: relative;
  margin-top: 22px;
}
.q {
  padding: 28px 20px 20px;
}
.q.enter-next { animation: q-in-next 0.45s var(--ease) both; }
.q.enter-prev { animation: q-in-prev 0.45s var(--ease) both; }
.q.leave-next { animation: q-out-next 0.22s ease-in both; }
.q.leave-prev { animation: q-out-prev 0.22s ease-in both; }
@keyframes q-in-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes q-in-prev { from { opacity: 0; transform: translateX(-28px); } }
@keyframes q-out-next { to { opacity: 0; transform: translateX(-28px); } }
@keyframes q-out-prev { to { opacity: 0; transform: translateX(28px); } }

.q-label {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.q-title {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.06em;
}
.q-hint {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
.option:hover {
  border-color: var(--rose);
}
.option:active {
  transform: scale(0.98);
}
.option.is-selected {
  border-color: var(--plum);
  background: #fbf7fd;
  box-shadow: 0 0 0 3px rgb(155 122 168 / 0.12);
}
.option .ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--plum);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.05);
}
.option .ic.split {
  background: conic-gradient(var(--c1) 0 50%, var(--c2) 0 100%);
}
.option .ic.emoji {
  font-family: inherit;
  font-style: normal;
  font-size: 18px;
}
.option .tx small {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
}
.option .ck {
  flex: none;
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: all 0.25s var(--ease);
}
.option.is-selected .ck {
  border-color: var(--plum);
  background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
  transform: scale(1.1);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  min-height: 44px;
}
.quiz-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-2);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

.analyzing {
  padding: 96px 0;
  text-align: center;
}
.analyzing .blob {
  width: 116px;
  height: 116px;
  margin: 0 auto 28px;
  background: conic-gradient(#f7c8ab, #eaaebc, #c9d3ef, #c49bc0, #e3bc93, #f7c8ab);
  animation: morph 3s ease-in-out infinite, spin 7s linear infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; }
  50% { border-radius: 60% 40% 38% 62% / 55% 60% 40% 45%; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.analyzing p {
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}

/* =========================================================
   結果ページ（共通）
   ========================================================= */
.result-hero {
  position: relative;
  margin-top: 18px;
  padding: 40px 22px 32px;
  border-radius: var(--r-xl);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.result-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 70%;
  background: radial-gradient(110% 100% at 50% 0%, var(--accent-soft), transparent 72%);
}
.result-hero > * {
  position: relative;
}
.result-hero .caption {
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.14em;
}
.result-hero .type-en {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.05;
  color: var(--accent);
  animation: pop 0.9s var(--ease) 0.1s both;
}
.result-hero .type-ja {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); letter-spacing: 0.12em; }
}
.result-hero .catch {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.result-hero .chips {
  justify-content: center;
  margin-top: 18px;
}
.hero-dots {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
.hero-dots span {
  width: 32px;
  height: 32px;
  margin: 0 -4px;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.05);
  animation: dot-in 0.6s var(--ease) both;
}
.hero-dots span:nth-child(1) { animation-delay: 0.25s; }
.hero-dots span:nth-child(2) { animation-delay: 0.3s; }
.hero-dots span:nth-child(3) { animation-delay: 0.35s; }
.hero-dots span:nth-child(4) { animation-delay: 0.4s; }
.hero-dots span:nth-child(5) { animation-delay: 0.45s; }
.hero-dots span:nth-child(6) { animation-delay: 0.5s; }
@keyframes dot-in {
  from { opacity: 0; transform: scale(0.4); }
}

/* ページ内メニュー（結果ページ） */
.toc {
  display: flex;
  gap: 8px;
  margin: 18px -22px 0;
  padding: 2px 22px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.toc::-webkit-scrollbar {
  display: none;
}
.toc a {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease;
}
.toc a:hover {
  border-color: var(--accent);
}

.prose p {
  font-size: 14px;
}
.prose p + p {
  margin-top: 12px;
}

.bullets {
  display: grid;
  gap: 8px;
}
.bullets li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.bullets.is-ng li::before {
  background: none;
  border: 1.5px solid var(--ink-3);
  width: 8px;
  height: 8px;
  top: 0.68em;
}
.box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}

/* タイプの傾向 */
.scores {
  display: grid;
  gap: 12px;
}
.score {
  display: grid;
  grid-template-columns: 6em 1fr 3em;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.score .nm {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 600;
}
.score .track {
  height: 6px;
  border-radius: 6px;
  background: var(--line);
  overflow: hidden;
}
.score .track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 1.1s var(--ease);
}
.score .pc {
  text-align: right;
  color: var(--ink-2);
}
.score-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-2);
}

/* カラーパレット */
.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 10px;
}
.swatch {
  text-align: center;
}
.swatch .sw {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
  transition: transform 0.3s var(--ease);
}
.swatch:hover .sw {
  transform: scale(1.06);
}
.swatch .nm {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.swatch .hx {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--ink-3);
}
.ng-row {
  display: flex;
  gap: 14px;
}
.ng-row .swatch {
  width: 60px;
}
.ng-row .sw {
  position: relative;
  opacity: 0.9;
}
.ng-row .sw::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: calc(50% - 1px);
  height: 1.5px;
  background: rgb(70 60 69 / 0.5);
  transform: rotate(-40deg);
}
.note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* 服のイラスト */
.illust {
  width: 100%;
  height: auto;
}
.look {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), 1fr);
  gap: 6px;
  margin: 16px 0;
  padding: 18px 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
}
.look figure {
  text-align: center;
}
.look .illust {
  max-width: 84px;
  margin: 0 auto;
}
.look figcaption {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* コーデ */
.coords {
  display: grid;
  gap: 14px;
}
.coord .scene {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.coord h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
}
.coord p {
  font-size: 13px;
  line-height: 1.85;
}
.coord .point {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-size: 12px;
  color: var(--ink-2);
}

/* タブ（ママ / 10代） */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.tabs button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--ink);
}
.tab-panel.is-entering {
  animation: page-in 0.45s var(--ease) both;
}

/* アイテム一覧（総合結果） */
.items {
  display: grid;
  gap: 12px;
}
.item-cat {
  padding: 20px 18px;
}
.item-cat h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.item-cat h3 .eyebrow {
  display: inline;
  font-size: 14px;
}
.item-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.item {
  padding: 14px 10px 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: center;
}
.item .illust {
  max-width: 76px;
  margin: 0 auto;
}
.item .nm {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.item .ds {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ヒント */
.tips {
  display: grid;
  gap: 10px;
}
.tip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tip .ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 17px;
}
.tip h3 {
  font-size: 14px;
  font-weight: 700;
}
.tip p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}
.tip .mini {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.tip .mini span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}

/* 素材 */
.material-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.material {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1.5;
}
.material i {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--tex);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}

/* 次の診断へ */
.next-card {
  --card-tint: var(--accent-soft);
  text-align: center;
}
.next-card .en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}
.next-card p {
  margin: 8px 0 18px;
  font-size: 13px;
  color: var(--ink-2);
}

/* 総合結果のサマリー */
.combo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
}
.combo .half {
  padding: 14px 8px;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.7);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.combo .half:hover {
  border-color: var(--accent);
}
.combo .half small {
  display: block;
  font-size: 10px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}
.combo .half strong {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
.combo .half span {
  font-size: 11px;
}
.combo .x {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink-3);
}
.genre {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}
.genre strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.12em;
  line-height: 1.6;
}

.ng-grid {
  display: grid;
  gap: 12px;
}

/* 結果ページの最後 */
.share {
  text-align: center;
}
.share .btn-row {
  margin-top: 18px;
}
.disclaimer {
  margin-top: 28px;
  font-size: 11px;
  line-height: 1.85;
  color: var(--ink-3);
  text-align: center;
}
.empty {
  padding: 96px 0;
  text-align: center;
}
.empty p {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--ink-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 50;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 広めの画面 ---------- */
@media (min-width: 720px) {
  body {
    font-size: 16px;
  }
  .wrap {
    max-width: 640px;
  }
  .type-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .type-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .type-tile.row {
    display: block;
  }
  .type-tile.row .icon {
    margin-bottom: 10px;
  }
  .family {
    grid-template-columns: 1fr 1fr;
  }
  .palette {
    grid-template-columns: repeat(5, 1fr);
  }
  .btn-row {
    grid-template-columns: 1fr 1fr;
  }
  .item-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .toc {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   会員・ログイン
   ========================================================= */

/* ヘッダーのアカウントボタン */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.header-account:hover {
  border-color: var(--rose);
}
.header-account svg {
  width: 20px;
  height: 20px;
  flex: none;
}
/* スマホではアイコンだけ（名前は読み上げ用に残す） */
.header-account .label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.header-account.is-member::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--brand-grad);
}

/* 会員限定の案内カード */
.lock-card {
  text-align: center;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-grad) border-box;
  border: 1.5px solid transparent;
}
.lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.lock-icon svg {
  width: 24px;
  height: 24px;
}
.lock-card h2 {
  margin-top: 2px;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.lock-lead {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}
.lock-card .bullets {
  display: inline-block;
  margin: 12px 0 4px;
  text-align: left;
  font-size: 13px;
}
.lock-price,
.plan-price {
  margin: 14px 0 16px;
  font-size: 12px;
  color: var(--ink-2);
}
.lock-price strong,
.plan-price strong {
  font-size: 18px;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.lock-card .note a,
.auth-page .note a,
.check a {
  color: var(--plum-deep);
}

/* トップの料金プラン */
.plans {
  display: grid;
  gap: 14px;
}
.plan h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 12px;
  font-size: 16px;
  letter-spacing: 0.1em;
}
.plan h3 .plan-price {
  margin: 0;
}
.plan .bullets {
  font-size: 13px;
}
.plan .btn {
  margin-top: 18px;
}
.plan.is-member {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-grad) border-box;
  border: 1.5px solid transparent;
}

/* ログイン・マイページ */
.auth-page {
  padding-top: 32px;
}
.section-head h1 {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.auth-page .tabs {
  margin-bottom: 14px;
}
.btn-google {
  letter-spacing: 0.06em;
}
.btn-google svg {
  width: 20px;
  height: 20px;
}
.btn:disabled,
.btn.is-busy {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.btn.is-busy {
  cursor: progress;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 6px;
  font-size: 12px;
  color: var(--ink-3);
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.field {
  display: block;
  margin-top: 14px;
}
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.field small {
  font-weight: 500;
  font-size: 11px;
  color: var(--ink-2);
}
.field input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* iPhone で拡大されないように16px以上 */
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--lavender-soft);
}
form .btn-block {
  margin-top: 20px;
}
.form-msg {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--rose-soft);
  color: #a3425a;
  font-size: 13px;
  line-height: 1.7;
}
.auth-page .text-link {
  margin-top: 8px;
}
.done-card {
  text-align: center;
}
.done-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}
.done-card p {
  margin-bottom: 20px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.privacy-box {
  margin-top: 28px;
}
.privacy-box .bullets {
  font-size: 12px;
  color: var(--ink-2);
}

.loading {
  padding: 48px 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
}
.notice {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.8;
}
.notice.is-ok {
  background: #eaf2e6;
}
.notice.is-error {
  background: var(--rose-soft);
  color: #a3425a;
}
.account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.account-row:first-child {
  padding-top: 0;
}
.account-row .label {
  font-size: 12px;
  color: var(--ink-2);
}
.account-row strong {
  overflow-wrap: anywhere;
}
.badge.is-member {
  background: var(--brand-grad);
  color: #fff;
}
.account-card .btn-row {
  margin-top: 20px;
}
.plan-card {
  margin-top: 16px;
  text-align: center;
}
.plan-card h2 {
  font-size: 18px;
  letter-spacing: 0.1em;
}
.plan-card .bullets {
  display: inline-block;
  text-align: left;
  font-size: 13px;
}
.plan-card .note {
  text-align: left;
}
#subscribeArea {
  margin-top: 18px;
  text-align: left;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.7;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--plum);
}
#subscribeArea .btn {
  margin-top: 16px;
}
.account-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 24px;
}

/* 特定商取引法に基づく表記など */
.legal {
  padding-top: 24px;
}
.legal .section:first-of-type {
  margin-top: 32px;
}
.legal-list {
  margin: 0;
  font-size: 13px;
}
.legal-list dt {
  font-weight: 700;
  letter-spacing: 0.06em;
}
.legal-list dd {
  margin: 2px 0 16px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.legal-list dd:last-child {
  margin-bottom: 0;
}
.legal-list small {
  font-size: 11px;
}
.legal-text {
  font-size: 13px;
}
.legal-text h3 {
  margin: 22px 0 6px;
  font-size: 14px;
  letter-spacing: 0.06em;
}
.legal-text h3:first-child {
  margin-top: 0;
}

@media (min-width: 720px) {
  .header-account .label {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

/* 会員限定のブロックの見出しも、前の内容とあいだを空ける */
[data-premium] > .sub-head:first-child {
  margin-top: 28px;
}

/* =========================================================
   会員限定のチラ見せ（paywall.js）
   ぼかした見本の上に、案内カードを重ねる
   ========================================================= */
.paywall {
  margin-top: 56px;
}
.pw-stage {
  display: grid;
}
.pw-stage > * {
  grid-area: 1 / 1;
}
.pw-bg {
  pointer-events: none;
  user-select: none;
}
.pw-bg .pw-chip {
  display: none;
}
.pw-bg .pw-preview + .pw-preview {
  margin-top: 14px;
}
.pw-cta {
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: 250px; /* 見出しと、ぼかした見本の上のほうが見えるように */
  box-shadow: var(--shadow-2);
}
.pw-frame {
  position: relative;
}
.pw-blur {
  filter: blur(6px);
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}
.pw-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: var(--shadow-1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.pw-chip::before {
  content: "🔒";
  font-size: 12px;
}
.pw-more .pw-preview {
  margin-top: 56px;
}
.pw-end {
  margin-top: 28px;
}
.pw-lines span {
  display: block;
  height: 10px;
  margin: 12px 0;
  border-radius: 5px;
  background: var(--line-2);
}
.pw-bar {
  display: block;
  width: 70%;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 4px;
  background: var(--line-2);
}
.pw-coord + .pw-coord {
  margin-top: 24px;
}
.pw-coord .look {
  margin: 12px 0 4px;
}
.pw-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pw-tip + .pw-tip {
  margin-top: 14px;
}
.pw-dot {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.pw-tip .pw-lines {
  flex: 1;
}
.pw-genre {
  padding: 8px 0 14px;
}
.pw-blur .hero-dots span {
  animation: none;
  opacity: 1;
  transform: none;
}

/* 無料・会員限定のバッジ */
.badge-premium {
  background: var(--brand-grad);
  color: #fff;
}
.badge-free {
  background: #eaf2e6;
  color: var(--ink);
}
.total-card .badge {
  margin: 4px 0 2px;
}
.save-note {
  text-align: center;
}

/* =========================================================
   家族の結果（family.html・トップの切りかえ）
   ========================================================= */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 17px;
  line-height: 1;
}

/* トップ：いま診断する人 */
.profile-bar {
  margin: -6px 0 18px;
}
.profile-bar-label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  text-align: center;
}
.profile-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 5px 16px 5px 6px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-chip[aria-pressed="true"] {
  border-color: var(--plum);
  background: var(--lavender-soft);
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--lavender-soft);
}
.profile-chip.is-add {
  border-style: dashed;
  color: var(--ink-2);
}
.profile-chip.is-add .avatar {
  font-size: 14px;
  color: var(--plum);
}

/* 家族の一覧 */
.family-list {
  display: grid;
  gap: 14px;
}
.family-card.is-current {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--brand-grad) border-box;
  border: 1.5px solid transparent;
}
.family-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.family-head .avatar {
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.family-name {
  font-size: 16px;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}
.family-head .text-link {
  margin-left: auto;
}
.family-results {
  margin-top: 12px;
}
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.result-row .label {
  color: var(--ink-2);
}
.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink);
  text-decoration: none;
}
.result-pill strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 600;
}
.result-none {
  color: var(--ink-3);
}
.family-results .btn {
  margin-top: 14px;
}
.family-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.family-actions .btn {
  flex: 1 1 auto;
}
.family-edit {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px dashed var(--line-2);
}
.text-link.danger {
  color: #a3425a;
}

/* アイコンを選ぶ */
.icon-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.icon-pick legend {
  margin-bottom: 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.icon-option {
  position: relative;
  cursor: pointer;
}
.icon-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.icon-option span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  font-size: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.icon-option input:checked + span {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px var(--lavender-soft);
}
.icon-option input:focus-visible + span {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}
.add-card {
  margin-top: 24px;
}

/* 診断ページ：だれの診断か */
.quiz-who {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.quiz-who a {
  color: var(--plum-deep);
}
