/* =========================================================
   Utano姓名鑑定 — style.css
   和モダン / 生成り × 藍 × 朱
   ========================================================= */

:root {
  --ink: #1d2a3f;
  --ink-soft: #3b4a63;
  --ink-mute: #6b7688;
  --paper: #f7f4ec;
  --paper-2: #fffdf8;
  --line: #ddd6c6;
  --line-soft: #e9e3d5;
  --shu: #b0473c;        /* 朱 */
  --shu-light: #d4786a;
  --ai: #2c4a6e;         /* 藍 */
  --kin: #b8974e;        /* 金茶 */
  --midori: #5b7358;
  --shadow-sm: 0 1px 2px rgba(29, 42, 63, .06), 0 4px 12px rgba(29, 42, 63, .05);
  --shadow: 0 2px 4px rgba(29, 42, 63, .05), 0 12px 32px rgba(29, 42, 63, .09);
  --shadow-lg: 0 6px 12px rgba(29, 42, 63, .06), 0 24px 60px rgba(29, 42, 63, .12);
  --radius: 14px;
  --radius-sm: 9px;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(176, 71, 60, .045), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(44, 74, 110, .05), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='1' cy='1' r='.6' fill='%231d2a3f' fill-opacity='.05'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 236, .88);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mincho);
  font-size: 19px;
  line-height: 1;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--mincho);
  font-size: 17px;
  letter-spacing: .12em;
  font-weight: 600;
}
.brand-text small {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.site-nav { display: flex; gap: 22px; }
.site-nav a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: .06em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--shu); border-bottom-color: var(--shu-light); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 68px;
  background:
    linear-gradient(170deg, #fffdf8 0%, #f2ede1 55%, #eee7d8 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .5;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(44, 74, 110, .06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(-45deg, rgba(176, 71, 60, .05) 0 1px, transparent 1px 22px);
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: .32em;
  color: var(--shu);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--mincho);
  font-size: clamp(28px, 5.6vw, 46px);
  line-height: 1.45;
  letter-spacing: .04em;
  font-weight: 600;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 .accent {
  position: relative;
  color: var(--shu);
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .08em;
  height: .18em;
  background: linear-gradient(90deg, rgba(176, 71, 60, .28), rgba(176, 71, 60, .06));
  border-radius: 2px;
  z-index: -1;
}
.hero-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 640px;
}
.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points span { color: var(--midori); font-size: 11px; }

/* ---------- フォーム ---------- */
.form-section { padding: 0 0 ; margin-top: -34px; position: relative; z-index: 2; }
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 34px clamp(20px, 4vw, 42px) 30px;
}
.form-head { margin-bottom: 24px; }
.form-head h2 {
  font-family: var(--mincho);
  font-size: clamp(20px, 3.4vw, 26px);
  letter-spacing: .08em;
  margin: 0 0 6px;
  font-weight: 600;
}
.form-head p { margin: 0; font-size: 13.5px; color: var(--ink-mute); }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--shu);
  padding: 0;
  margin-bottom: 10px;
}
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field > label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.name-field .field { margin-bottom: 0; }
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
input[type="text"], textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}
input[type="text"]:hover, textarea:hover, select:hover { border-color: #c9c0ac; }
input[type="text"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ai);
  box-shadow: 0 0 0 3px rgba(44, 74, 110, .13);
  background: #fff;
}
input::placeholder, textarea::placeholder { color: #a9a396; }
textarea { resize: vertical; min-height: 108px; line-height: 1.7; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7688' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--shu);
  background: #fdf5f3;
}
.hint {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 7px 0 0;
  line-height: 1.6;
}
.birth-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.birth-row select { width: auto; flex: 1 1 84px; min-width: 84px; }
.birth-row .unit { font-size: 13px; color: var(--ink-mute); margin-right: 6px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  background: #f4f0e6;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: all .16s;
}
.chip:hover {
  background: #fff;
  border-color: var(--shu-light);
  color: var(--shu);
  transform: translateY(-1px);
}
.chip:active { transform: translateY(0); }

.form-error {
  margin: 18px 0 0;
  padding: 13px 16px;
  font-size: 13.5px;
  color: #8f3227;
  background: #fcf0ed;
  border: 1px solid #efc9c1;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--shu);
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn-primary {
  position: relative;
  flex: 1 1 260px;
  font-family: var(--mincho);
  font-size: 17px;
  letter-spacing: .12em;
  color: #fff;
  background: linear-gradient(135deg, #25364e 0%, #16202f 100%);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 17px 26px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 32, 47, .28);
  transition: transform .16s, box-shadow .16s, background .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(22, 32, 47, .34);
  background: linear-gradient(135deg, #2d4160 0%, #1a2535 100%);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary[disabled] { opacity: .65; cursor: progress; }
.btn-label { font-weight: 600; }
.btn-sub {
  font-family: var(--gothic);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .62);
}
.btn-ghost {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 20px;
  cursor: pointer;
  transition: all .18s;
}
.btn-ghost:hover { background: #fff; border-color: #c9c0ac; color: var(--ink); }

.privacy-note {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 16px 0 0;
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

/* ---------- 結果共通 ---------- */
.result { padding-bottom: 10px; }
.result-hero {
  margin: 44px 0 26px;
  padding: 30px clamp(20px, 4vw, 38px);
  background: linear-gradient(135deg, #223148 0%, #17202e 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.result-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 20px);
  pointer-events: none;
}
.result-hero .eyebrow { color: var(--kin); margin-bottom: 8px; }
.result-hero h2 {
  font-family: var(--mincho);
  font-size: clamp(22px, 4.2vw, 33px);
  margin: 0 0 8px;
  letter-spacing: .06em;
  font-weight: 600;
  line-height: 1.4;
}
.result-hero h2 span { color: #f0d6a6; }
.result-meta {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .68);
  letter-spacing: .04em;
}
.result-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}
.badge {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  padding: 9px 14px;
  min-width: 92px;
  text-align: center;
}
.badge b {
  display: block;
  font-family: var(--mincho);
  font-size: 19px;
  letter-spacing: .06em;
  line-height: 1.3;
  color: #fff;
}
.badge small {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .1em;
}

.jump-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all .16s;
}
.jump-nav a span {
  font-family: var(--mincho);
  font-size: 10.5px;
  color: var(--shu);
  letter-spacing: .1em;
}
.jump-nav a:hover { border-color: var(--ai); color: var(--ai); transform: translateY(-1px); }

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 3.6vw, 40px);
  margin-bottom: 26px;
  scroll-margin-top: 80px;
}
.card-head { margin-bottom: 26px; }
.card-num {
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--shu);
  margin: 0 0 6px;
}
.card-head h3 {
  font-family: var(--mincho);
  font-size: clamp(19px, 3.2vw, 25px);
  letter-spacing: .06em;
  margin: 0 0 8px;
  font-weight: 600;
  line-height: 1.5;
}
.card-sub { margin: 0; font-size: 13px; color: var(--ink-mute); }
.card h4 {
  font-family: var(--mincho);
  font-size: 15.5px;
  letter-spacing: .08em;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--shu);
  line-height: 1.5;
  font-weight: 600;
}
.subsection { margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--line); }

/* ---------- 五格カード ---------- */
.grid5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.kaku {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px 14px;
  text-align: center;
  background: #fff;
  position: relative;
  transition: transform .18s, box-shadow .18s;
}
.kaku:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.kaku.is-main {
  border-color: var(--ai);
  background: linear-gradient(180deg, #fbfcfe, #f3f6fa);
  box-shadow: 0 0 0 1px rgba(44, 74, 110, .14);
}
.kaku-name {
  font-family: var(--mincho);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--ink-mute);
  margin: 0 0 4px;
}
.kaku-num {
  font-family: var(--mincho);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: .02em;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.kaku-num small { font-size: 12px; color: var(--ink-mute); margin-left: 2px; }
.kaku-role {
  font-size: 10.5px;
  color: var(--ink-mute);
  margin: 4px 0 8px;
  letter-spacing: .04em;
}
.kaku-sei {
  display: inline-block;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 10px;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.kaku-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-soft);
}
/* 吉凶カラー */
.g-kichi { background: #eaf3ea; color: #35623a; }
.g-daikichi { background: #dfeedd; color: #275a2c; }
.g-chukichi { background: #eff4e9; color: #4a6b39; }
.g-kakichi { background: #f6f1e3; color: #7a6220; }
.g-hankichi { background: #faf0ea; color: #8a5b20; }
.g-kyo { background: #fbe9e6; color: #9a3a2e; }
.kaku.is-g-kyo { border-color: #ecc9c2; }
.kaku.is-g-daikichi { border-color: #b9d5b6; }

/* ---------- 三才配置 ---------- */
.sansai-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.sansai-note p { margin: 0 0 10px; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.sansai-note p:last-child { margin-bottom: 0; }
.sansai-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  min-width: 74px;
}
.sansai-node b {
  font-family: var(--mincho);
  font-size: 17px;
  line-height: 1.2;
}
.sansai-node small { font-size: 10px; color: var(--ink-mute); letter-spacing: .1em; }
.sansai-arrow { color: var(--ink-mute); font-size: 13px; letter-spacing: .02em; }
.s-element[data-el="木"] { color: #3f7a4a; }
.s-element[data-el="火"] { color: #b0473c; }
.s-element[data-el="土"] { color: #96702c; }
.s-element[data-el="金"] { color: #7b7f8c; }
.s-element[data-el="水"] { color: #2c4a6e; }

/* ---------- 文字リスト ---------- */
.char-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px;
}
.char-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #fff;
}
.char-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.char-glyph {
  font-family: var(--mincho);
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  min-width: 40px;
  text-align: center;
}
.char-info { font-size: 12px; color: var(--ink-mute); line-height: 1.6; }
.char-info b { color: var(--ink); font-size: 13px; }
.char-item p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-soft); }
.char-item .char-el {
  display: inline-block;
  font-size: 10.5px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-top: 6px;
}

/* ---------- 読み解き文 ---------- */
.reading p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-soft);
}
.reading p:last-child { margin-bottom: 0; }
.reading strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(184, 151, 78, .28) 62%);
}
.reading-lead {
  font-family: var(--mincho);
  font-size: 16.5px !important;
  color: var(--ink) !important;
  line-height: 1.9 !important;
  padding: 16px 18px;
  background: #f6f2e7;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--kin);
}

/* ---------- 画数調整 ---------- */
.adjust {
  margin-top: 30px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  background: #faf8f2;
}
.adjust summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 0;
  color: var(--ink-soft);
  list-style: none;
}
.adjust summary::-webkit-details-marker { display: none; }
.adjust summary::before {
  content: "＋";
  display: inline-block;
  margin-right: 8px;
  color: var(--shu);
  font-weight: 400;
}
.adjust[open] summary::before { content: "－"; }
.adjust-lead {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin: 0 0 16px;
  line-height: 1.8;
}
.adjust-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding-bottom: 16px;
}
.adjust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 8px 10px;
}
.adjust-item .g { font-family: var(--mincho); font-size: 22px; line-height: 1; }
.adjust-item label { font-size: 11px; color: var(--ink-mute); display: block; line-height: 1.3; }
.adjust-item input {
  width: 60px;
  padding: 6px 8px;
  font-size: 14px;
  text-align: center;
  border-radius: 6px;
}
.adjust-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 16px; }
.btn-small {
  font-family: inherit;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: opacity .16s;
}
.btn-small:hover { opacity: .85; }
.btn-small-ghost { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.btn-small-ghost:hover { background: #f4f0e6; }

/* ---------- お悩み ---------- */
.worry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.wtag {
  font-size: 12px;
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ai);
  border: 1px solid #d6dfea;
}
.wtag.is-main { background: var(--ai); color: #fff; border-color: var(--ai); }

.actions { padding: 0; margin: 0; list-style: none; counter-reset: act; }
.actions li {
  counter-increment: act;
  position: relative;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.actions li::before {
  content: counter(act, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 15px;
  font-family: var(--mincho);
  font-size: 14px;
  color: var(--shu);
  letter-spacing: .04em;
}
.actions li b { color: var(--ink); display: block; margin-bottom: 2px; }
.actions li:last-child { margin-bottom: 0; }

.menu-box {
  margin-top: 26px;
  padding: 22px clamp(16px, 3vw, 26px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f3efe4, #eae4d5);
  border: 1px solid #ded6c3;
}
.menu-box h4 { border-left-color: var(--kin); margin-bottom: 10px; }
.menu-box p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }
.menu-box p:last-child { margin-bottom: 0; }
.menu-box .menu-note { font-size: 11.5px; color: var(--ink-mute); }

/* ---------- 2027 ---------- */
.year-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.ybadge {
  flex: 1 1 132px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.ybadge small {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.ybadge b {
  font-family: var(--mincho);
  font-size: 16px;
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--ink);
  display: block;
}
.ybadge span { font-size: 11.5px; color: var(--shu); }

.chart-wrap { margin-bottom: 26px; }
.chart-box {
  position: relative;
  height: 340px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.chart-fallback {
  display: none;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
  padding: 20px;
}

.months {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 9px;
}
.month {
  border: 1px solid var(--line-soft);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
}
.month b {
  font-family: var(--mincho);
  font-size: 13.5px;
  display: block;
  line-height: 1.4;
  letter-spacing: .02em;
}
.month small { font-size: 11px; color: var(--ink-mute); line-height: 1.6; display: block; margin-top: 3px; }
.month[data-tone="good"] { border-left-color: #6b9a6f; background: #f8fbf6; }
.month[data-tone="mid"] { border-left-color: var(--kin); background: #fdfbf4; }
.month[data-tone="care"] { border-left-color: var(--shu-light); background: #fdf7f5; }

.lucky {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.lucky-item {
  background: #f6f2e7;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border: 1px solid #e6dfcd;
}
.lucky-item small {
  display: block;
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--ink-mute);
  margin-bottom: 3px;
}
.lucky-item b { font-family: var(--mincho); font-size: 14.5px; line-height: 1.5; color: var(--ink); }

/* ---------- 根拠テーブル ---------- */
.detail-block { margin-bottom: 26px; }
.detail-block:last-child { margin-bottom: 0; }
.detail-block h4 { margin-bottom: 12px; }
.detail-block p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.9; }
.formula {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #f4f1e8;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 10px 13px;
  color: var(--ink-soft);
  overflow-x: auto;
  white-space: pre;
  margin: 0 0 12px;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 420px;
}
table.data th, table.data td {
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}
table.data thead th {
  background: #f4f1e8;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-mute);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody tr:hover { background: #fbf9f3; }
table.data td.num { font-family: var(--mincho); font-size: 15px; text-align: center; width: 54px; }
.small-note { font-size: 11.5px; color: var(--ink-mute); line-height: 1.75; }

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0 56px;
}
.result-actions .btn-primary { flex: 1 1 300px; }

/* ---------- about / howto ---------- */
.section { padding: 64px 0; }
.about { background: #fffdf8; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--mincho);
  font-size: clamp(21px, 3.6vw, 29px);
  letter-spacing: .06em;
  line-height: 1.55;
  margin: 0 0 14px;
  font-weight: 600;
}
.section-head > p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.95; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}
.about-num {
  position: absolute;
  right: 14px;
  top: 6px;
  font-family: var(--mincho);
  font-size: 46px;
  color: rgba(44, 74, 110, .07);
  line-height: 1;
  margin: 0;
  pointer-events: none;
}
.about-card h3 {
  font-family: var(--mincho);
  font-size: 16.5px;
  letter-spacing: .04em;
 margin: 0 0 10px;
  line-height: 1.5;
}
.about-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.95; }
.about-card strong { color: var(--shu); font-weight: 700; }
.about-note {
  background: #f6f2e7;
  border-radius: var(--radius);
  padding: 24px clamp(18px, 3vw, 28px);
  border: 1px solid #e6dfcd;
}
.about-note h3 {
  font-family: var(--mincho);
  font-size: 15px;
  letter-spacing: .06em;
  margin: 0 0 12px;
  padding-left: 11px;
  border-left: 3px solid var(--shu);
  line-height: 1.5;
}
.about-note ul { margin: 0; padding-left: 1.2em; }
.about-note li { font-size: 13px; color: var(--ink-soft); line-height: 1.95; margin-bottom: 7px; }
.about-note li:last-child { margin-bottom: 0; }

.howto { background: var(--paper); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--shu);
  display: block;
  margin-bottom: 10px;
}
.steps h3 {
  font-family: var(--mincho);
  font-size: 15.5px;
  margin: 0 0 8px;
  line-height: 1.6;
  letter-spacing: .03em;
}
.steps p { margin: 0; font-size: 13px; color: var(--ink-mute); line-height: 1.9; }

/* ---------- 鑑定してもらう（鑑定書） ---------- */
.kantei {
  background: linear-gradient(180deg, #fffdf8 0%, #f7f2e4 100%);
  border-top: 1px solid var(--line-soft);
}
.kantei .section-head { max-width: 760px; }
.kantei-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.6vw, 24px);
  margin: 0 0 34px;
}
.kantei-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: 0 6px 22px rgba(29, 42, 63, .07);
}
.kantei-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 4px);
}
.kantei-gallery figcaption {
  font-family: var(--mincho);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  text-align: center;
  padding: 9px 4px 3px;
}
.kantei-lead {
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--kin);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 32px);
}
.kantei-lead h3 {
  font-family: var(--mincho);
  font-size: clamp(16px, 2.6vw, 19px);
  letter-spacing: .05em;
  line-height: 1.6;
  margin: 0 0 14px;
}
.kantei-lead p { font-size: 14px; color: var(--ink-soft); line-height: 2; margin: 0 0 10px; }
.kantei-lead .kantei-contact {
  font-family: var(--mincho);
  color: var(--ink);
  font-size: 14.5px;
  letter-spacing: .05em;
  margin: 20px 0 12px;
}
.kantei-actions { margin: 0 !important; }
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  padding: 13px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(6, 199, 85, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-line:hover, .btn-line:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(6, 199, 85, .34);
}
.official-link {
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.official-link a {
  font-family: var(--mincho);
  font-size: clamp(15px, 2.4vw, 17px);
  letter-spacing: .05em;
  color: var(--ai-2);
  text-decoration: none;
  border-bottom: 1px solid var(--kin);
  padding-bottom: 2px;
}
.official-link a:hover, .official-link a:focus-visible { color: var(--shu); border-bottom-color: var(--shu); }
.official-url { font-size: 12px; color: var(--ink-mute); letter-spacing: .03em; }

/* ---------- 右端の上下スクロールボタン ---------- */
.scroll-nav {
  position: fixed;
  right: clamp(8px, 1.6vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.scroll-nav.is-visible { opacity: 1; visibility: visible; }
.scroll-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  color: var(--ai);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 12px rgba(29, 42, 63, .14);
  backdrop-filter: blur(4px);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.scroll-nav button:hover, .scroll-nav button:focus-visible {
  background: var(--ai);
  color: #fff;
  transform: scale(1.06);
}
.scroll-nav button[disabled] { opacity: .34; cursor: default; transform: none; }
.scroll-nav button[disabled]:hover { background: rgba(255, 255, 255, .92); color: var(--ai); }

/* ---------- フッター ---------- */
.site-footer {
  background: #17202e;
  color: rgba(255, 255, 255, .72);
  padding: 46px 0 34px;
  font-size: 13px;
}
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .1); color: #f0d6a6; }
.footer-brand strong {
  font-family: var(--mincho);
  color: #fff;
  font-size: 15.5px;
  letter-spacing: .1em;
  display: block;
  margin-bottom: 6px;
}
.footer-brand p { margin: 0; font-size: 12.5px; line-height: 1.85; color: rgba(255, 255, 255, .6); max-width: 560px; }
.footer-note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .5);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 18px;
  margin: 0;
  line-height: 1.8;
}
.copyright { font-size: 11px; color: rgba(255, 255, 255, .38); letter-spacing: .1em; margin: 0; }

/* ---------- アニメーション ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .result-hero, .jump-nav { animation: rise .5s ease both; }
.card:nth-of-type(2) { animation-delay: .06s; }
.card:nth-of-type(3) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .grid5 { grid-template-columns: repeat(3, 1fr); }
  .grid5 .kaku:nth-child(4), .grid5 .kaku:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .hero { padding: 48px 0 56px; }
  .form-section { margin-top: -24px; }
  .form-card { padding: 24px 18px; border-radius: 16px; }
  .name-row { grid-template-columns: 1fr; gap: 18px; }
  .grid5 { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .grid5 .kaku:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kaku { padding: 12px 8px 11px; }
  .sansai-flow { gap: 6px 4px; }
  .sansai-node { padding: 7px 11px; min-width: 62px; }
  .sansai-node b { font-size: 15px; }
  .sansai-node small { font-size: 9px; letter-spacing: .04em; }
  .sansai-arrow { font-size: 11px; }
  .kaku-num { font-size: 28px; }
  .kaku-role { font-size: 10px; }
  .kaku-title { font-size: 11.5px; }
  .card { padding: 22px 18px; border-radius: 15px; }
  .result-hero { padding: 24px 20px; }
  .result-badges { width: 100%; }
  .badge { flex: 1 1 0; min-width: 0; padding: 8px 6px; }
  .badge b { font-size: 16px; }
  .chart-box { height: 300px; }
  .section { padding: 46px 0; }
  .form-submit { flex-direction: column; align-items: stretch; }
  .form-submit .btn-primary { flex: 0 0 auto; }
  .btn-ghost { width: 100%; }
  .chip { padding: 9px 14px; }
  .result-actions { flex-direction: column; }
  .result-actions .btn-ghost { width: 100%; }
  .months { grid-template-columns: repeat(2, 1fr); }
  .reading p { font-size: 14px; line-height: 1.95; }
  .reading-lead { font-size: 15px !important; }
  .jump-nav a { flex: 1 1 calc(50% - 8px); justify-content: center; font-size: 11.5px; padding: 8px 10px; }
  .birth-row select { flex: 1 1 62px; min-width: 62px; padding-left: 9px; padding-right: 26px; font-size: 15px; }
  .birth-row .unit { margin-right: 2px; font-size: 12px; }
  .hero-points { font-size: 12px; gap: 8px 14px; }
}
@media (max-width: 400px) {
  .grid5 { grid-template-columns: repeat(2, 1fr); }
  .kaku-num { font-size: 25px; }
  .months { grid-template-columns: 1fr; }
}

/* ---------- 印刷 ---------- */
@media print {
  body { background: #fff; font-size: 11.5pt; }
  .site-header, .hero, .form-section, .jump-nav, .result-actions,
  .about, .howto, .site-footer, .adjust, .skip-link { display: none !important; }
  #result { display: block !important; }
  .result-hero {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #999;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .result-hero h2, .result-hero h2 span { color: #000 !important; }
  .result-hero .eyebrow { color: #444 !important; }
  .result-meta { color: #333 !important; }
  .badge { border-color: #bbb; background: #f5f5f5; }
  .badge b { color: #000 !important; }
  .badge small { color: #444 !important; }
  .card { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; padding: 14px; margin-bottom: 12px; }
  .kaku { break-inside: avoid; }
  .chart-box { height: 260px; }
  .wrap { padding: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
}
