:root {
  --bg: #060b16;
  --bg-2: #0a1426;
  --card: rgba(13, 26, 48, 0.82);
  --card-solid: #0d1a30;
  --ink: #e8f1fb;
  --ink-soft: #93a9c4;
  --accent: #4fd8ff;          /* ネオンシアン */
  --accent-warm: #ffb347;     /* 安心感のゴールド */
  --accent-soft: rgba(79, 216, 255, 0.12);
  --warm-soft: rgba(255, 179, 71, 0.14);
  --line: rgba(79, 216, 255, 0.22);
  --line-warm: rgba(255, 179, 71, 0.35);
  --wood: #35d98a;
  --fire: #ff5f6e;
  --earth: #ffb347;
  --metal: #aebfd6;
  --water: #3fa8ff;
  --danger: #ff6b5e;
  --radius: 16px;
  --glow-cyan: 0 0 12px rgba(79, 216, 255, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  background:
    radial-gradient(1200px 600px at 50% -100px, rgba(38, 90, 160, 0.35), transparent 70%),
    radial-gradient(800px 500px at 85% 110%, rgba(30, 60, 120, 0.25), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.75;
  min-height: 100vh;
}

/* ---- ヘッダー ---- */
.app-header {
  text-align: center;
  padding: 30px 16px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 45, 85, 0.35), transparent);
}

.app-header h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.75rem;
  letter-spacing: 0.14em;
  color: #dff4ff;
  text-shadow: 0 0 14px rgba(79, 216, 255, 0.65), 0 0 42px rgba(79, 216, 255, 0.3);
}

.tagline { font-size: 0.84rem; color: var(--ink-soft); margin-top: 6px; }

/* ---- モード切替タブ(2段構成) ---- */
.mode-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.mode-nav-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 0 12px;
}
.mode-tab {
  flex: 1 1 0;
  max-width: 200px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10, 22, 42, 0.7);
  color: var(--ink-soft);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-align: center;
}
.mode-tab.active {
  color: #06121f;
  background: linear-gradient(135deg, #6fe3ff, #3fa8ff);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(79, 216, 255, 0.5);
  font-weight: 600;
}
.mode-tab-red.active {
  background: linear-gradient(135deg, #ff8a94, #ff5f6e);
  color: #2a0508;
  box-shadow: 0 0 16px rgba(255, 95, 110, 0.55);
}

#app { max-width: 780px; margin: 0 auto; padding: 26px 16px 48px; }

.step.hidden, .mode-panel.hidden { display: none; }

.step-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.15rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eaf6ff;
}

.step-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6fe3ff, #3f7cff);
  color: #06121f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-family: sans-serif;
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

/* ---- カード共通 ---- */
.result-card, .detail-group, .figure-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 0 40px rgba(40, 90, 160, 0.08);
}

/* ---- Step1: 部位選択 ---- */
.region-layout { display: flex; gap: 20px; align-items: flex-start; }
.figure-wrap { flex: 0 0 48%; padding: 10px; overflow: hidden; }

.region-buttons { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.region-btn {
  padding: 13px 10px;
  background: rgba(13, 28, 52, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  color: var(--ink);
}
.region-btn:hover, .region-btn.hover {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
  color: #fff;
}

/* ---- 人体ビューア(回転・ズーム) ---- */
.viewer3d {
  perspective: 900px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.viewer3d.dragging { cursor: grabbing; }
.viewer-stage { transform-style: preserve-3d; will-change: transform; }
.viewer-hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: 0.05em;
}
.face-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 10px;
  margin-left: 6px;
}
.zoom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 36, 0.85);
  color: var(--accent);
  font-size: 0.82rem;
  cursor: pointer;
}
.viewer-holder { position: relative; }

.body-figure { width: 100%; height: auto; display: block; }

/* ネオンの人体 */
.neon-body { fill: rgba(30, 80, 150, 0.22); stroke: #58c8ff; stroke-width: 1.4; }
.neon-limb-glow { stroke: rgba(88, 200, 255, 0.5); fill: none; }
.neon-limb { stroke: rgba(30, 80, 150, 0.55); fill: none; }
.holo-ring {
  fill: none;
  stroke: rgba(79, 216, 255, 0.4);
  stroke-width: 1;
  stroke-dasharray: 5 7;
  animation: ringSpin 14s linear infinite;
}
@keyframes ringSpin { to { stroke-dashoffset: -120; } }

.hotspot { cursor: pointer; }
.hotspot circle.hit { fill: transparent; stroke: none; }
.hotspot circle.dot {
  fill: rgba(255, 179, 71, 0.9);
  stroke: rgba(255, 235, 200, 0.9);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 4px rgba(255, 179, 71, 0.8));
}
.hotspot:hover circle.dot, .hotspot.hover circle.dot {
  fill: #ffd58a;
  filter: drop-shadow(0 0 8px rgba(255, 200, 100, 1));
}
.hotspot text { font-size: 9px; fill: #cfe4f8; pointer-events: none; paint-order: stroke; stroke: rgba(6, 12, 24, 0.9); stroke-width: 2.5px; }

/* ---- 内臓 ---- */
.organ { transition: opacity 0.3s; }
.organ.dim { opacity: 0.12; filter: none !important; }
.organ.hl-root {
  filter: drop-shadow(0 0 5px rgba(255, 107, 94, 0.95)) drop-shadow(0 0 14px rgba(255, 107, 94, 0.6));
  animation: organPulse 1.6s ease-in-out infinite;
}
.organ.hl-window {
  filter: drop-shadow(0 0 4px rgba(255, 179, 71, 0.9)) drop-shadow(0 0 10px rgba(255, 179, 71, 0.5));
  animation: organPulse 2.2s ease-in-out infinite;
}
.organ.hl-extra {
  filter: drop-shadow(0 0 4px rgba(178, 140, 255, 0.95)) drop-shadow(0 0 10px rgba(178, 140, 255, 0.55));
  animation: organPulse 2.2s ease-in-out infinite;
}
@keyframes organPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}
.organ-label {
  font-size: 10.5px;
  font-weight: bold;
  paint-order: stroke;
  stroke: rgba(6, 12, 24, 0.92);
  stroke-width: 3px;
}
.marker-ring {
  fill: none;
  stroke: var(--danger);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(255, 107, 94, 0.9));
  animation: ringPulse 1.6s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.35; }
}

/* 学習レイヤー(骨・血管・経絡・チャクラ) */
.bone { fill: none; stroke: #ffb36b; stroke-width: 2.4; filter: drop-shadow(0 0 4px rgba(255, 160, 80, 0.7)); }
.bone-fill { fill: rgba(255, 179, 107, 0.85); stroke: #ffcf9e; stroke-width: 0.8; filter: drop-shadow(0 0 4px rgba(255, 160, 80, 0.6)); }
.vessel-a {
  fill: none;
  stroke: #ff6b5e;
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(255, 107, 94, 0.8));
  stroke-dasharray: 9 5;
  animation: bloodFlow 1.1s linear infinite;
}
.vessel-v {
  fill: none;
  stroke: #4aa8ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.85;
  filter: drop-shadow(0 0 3px rgba(74, 168, 255, 0.7));
  stroke-dasharray: 7 6;
  animation: bloodFlow 1.6s linear infinite reverse;
}
@keyframes bloodFlow { to { stroke-dashoffset: -14; } }
.meridian-line { fill: none; stroke: rgba(79, 216, 255, 0.4); stroke-width: 1.2; stroke-dasharray: 3 4; }
.acu-point {
  fill: #ffd58a;
  stroke: #fff3dc;
  stroke-width: 1;
  cursor: pointer;
  filter: drop-shadow(0 0 5px rgba(255, 200, 100, 0.95));
  animation: organPulse 2.4s infinite;
}
.acu-label { font-size: 9px; fill: #ffe1ae; paint-order: stroke; stroke: rgba(6,12,24,0.92); stroke-width: 2.5px; pointer-events: none; }
.chakra-point { cursor: pointer; }
.chakra-point circle { stroke: rgba(255, 255, 255, 0.85); stroke-width: 1; }

/* ---- Step2: 症状選択 ---- */
.back-btn {
  background: none; border: none;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0 0 8px -12px;
  padding: 12px;
  min-height: 44px;
}
.back-btn:hover { text-decoration: underline; }

.window-note {
  font-size: 0.85rem;
  color: #cfe4f8;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  margin-bottom: 14px;
}

.symptom-list { display: flex; flex-direction: column; gap: 10px; }

.symptom-btn {
  padding: 14px 16px;
  background: rgba(13, 28, 52, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
  color: var(--ink);
}
.symptom-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
  color: #fff;
}

/* ---- 結果カード ---- */
.result-card { padding: 18px 20px; margin-bottom: 16px; }

.result-card h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.04rem;
  color: var(--accent-warm);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 179, 71, 0.35);
  text-shadow: 0 0 10px rgba(255, 179, 71, 0.35);
}

.urgent-card { background: rgba(80, 20, 18, 0.5); border: 1.5px solid var(--danger); }
.urgent-card h3 { color: #ff9a90; border-bottom-color: rgba(255, 107, 94, 0.4); }

.redflag-card { background: rgba(70, 22, 20, 0.38); border: 1px solid rgba(255, 107, 94, 0.5); }
.redflag-card h3 { color: #ff9a90; border-bottom-color: rgba(255, 107, 94, 0.4); }
.redflag-card p { font-size: 0.88rem; }
.redflag-list { padding-left: 1.4em; font-size: 0.88rem; margin-top: 4px; }
.redflag-list li { margin: 2px 0; }

.redflag-details {
  margin-top: 16px;
  background: rgba(70, 22, 20, 0.38);
  border: 1px solid rgba(255, 107, 94, 0.5);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.88rem;
}
.redflag-details summary { cursor: pointer; color: #ff9a90; font-weight: 600; }
.redflag-details p { margin-top: 8px; }
.redflag-details ul { padding-left: 1.4em; margin-top: 4px; }
.redflag-details li { margin: 2px 0; }

#app section:focus { outline: none; }

.summary-lead { font-size: 0.95rem; margin-bottom: 4px; }

.organ-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  color: #06121f;
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0 2px;
}

.pattern-name {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.4rem;
  margin: 8px 0 2px;
  color: #fff;
  text-shadow: 0 0 12px rgba(79, 216, 255, 0.5);
}
.pattern-reading { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 8px; }

.relation-label {
  display: inline-block;
  background: var(--warm-soft);
  color: var(--accent-warm);
  border: 1px solid var(--line-warm);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.relation-text { font-size: 0.93rem; }

.cycle-wrap { text-align: center; }
#cycle-svg { max-width: 340px; width: 100%; height: auto; }
.cycle-caption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }

.figure-card { text-align: center; }
.figure-result { max-width: 300px; margin: 0 auto; }
.figure-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  max-width: 360px;
  margin: 8px auto 0;
  text-align: left;
}
.legend-item { font-size: 0.82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.legend-swatch { flex: none; width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.swatch-marker { border: 2px solid var(--danger); background: transparent; }
.swatch-root { background: var(--danger); box-shadow: 0 0 6px rgba(255,107,94,0.8); animation: organPulse 1.6s infinite; }
.swatch-window { background: var(--accent-warm); box-shadow: 0 0 6px rgba(255,179,71,0.7); }
.swatch-extra { background: #b28cff; box-shadow: 0 0 6px rgba(178,140,255,0.7); }

.psych-question {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.05rem;
  padding: 10px 14px;
  border-left: 3px solid var(--accent-warm);
  background: var(--warm-soft);
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
  color: #ffe9cd;
}
.psych-tendency { font-size: 0.9rem; color: var(--ink-soft); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.chip {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: #d8ecff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.9rem;
}
.chip.avoid { background: rgba(255, 107, 94, 0.12); border-color: rgba(255, 107, 94, 0.4); color: #ffb1a8; }
.chip.nutrient { background: rgba(53, 217, 138, 0.1); border-color: rgba(53, 217, 138, 0.35); color: #9fe8c4; }
.chip.tea { background: rgba(255, 179, 71, 0.1); border-color: rgba(255, 179, 71, 0.35); color: #ffd9a3; }
.chip.aroma { background: rgba(178, 140, 255, 0.1); border-color: rgba(178, 140, 255, 0.35); color: #d3befa; }

.sub-label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 8px; }

.food-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.lifestyle-list { padding-left: 1.3em; }
.lifestyle-list li { margin: 4px 0; font-size: 0.95rem; }

.also-row { display: flex; flex-wrap: wrap; gap: 8px; }
.also-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: rgba(13, 28, 52, 0.6);
}

.result-actions { text-align: center; margin-top: 22px; }
.primary-btn {
  background: linear-gradient(135deg, #6fe3ff, #3f7cff);
  color: #06121f;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 13px 30px;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(79, 216, 255, 0.45);
  transition: all 0.2s;
}
.primary-btn:hover { box-shadow: 0 0 26px rgba(79, 216, 255, 0.7); }

.disclaimer-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: rgba(13, 28, 52, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}

.app-footer {
  border-top: 1px solid var(--line);
  padding: 18px 16px 32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
  max-width: 780px;
  margin: 0 auto;
}
.version { margin-top: 6px; font-size: 0.72rem; opacity: 0.8; }

/* 五行ノード色 */
.el-wood  { background: var(--wood); }
.el-fire  { background: var(--fire); }
.el-earth { background: var(--earth); }
.el-metal { background: var(--metal); }
.el-water { background: var(--water); }

/* ---- 詳細の絞り込み ---- */
.detail-group { padding: 14px 16px; margin-bottom: 12px; }
.detail-q { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: #eaf6ff; }
.chip-select-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip {
  padding: 9px 17px;
  background: rgba(13, 28, 52, 0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}
.choice-chip:hover { border-color: var(--accent); box-shadow: var(--glow-cyan); }
.choice-chip.selected {
  background: linear-gradient(135deg, #6fe3ff, #3f7cff);
  border-color: transparent;
  color: #06121f;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(79, 216, 255, 0.55);
}
.detail-line { font-size: 0.85rem; color: var(--ink-soft); }

/* ---- 問診 ---- */
.interview-progress {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.interview-opt.selected { border-color: var(--accent); background: var(--accent-soft); }
.interview-skip-row { text-align: center; margin-top: 18px; }
.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px;
}
.link-btn:hover { text-decoration: underline; }

.insight-item { margin-bottom: 12px; }
.insight-item:last-child { margin-bottom: 0; }
.insight-a { font-size: 0.88rem; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.insight-text { font-size: 0.92rem; }

.detail-note-item { font-size: 0.92rem; margin-bottom: 10px; }
.detail-note-label { font-size: 0.8rem; color: var(--ink-soft); }

/* ---- ツボ・マッサージ ---- */
.point-item {
  border-left: 3px solid var(--line-warm);
  padding: 4px 0 4px 12px;
  margin-bottom: 12px;
}
.point-name {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: #ffe1ae;
}
.point-where, .point-link { font-size: 0.9rem; margin: 2px 0; }
.point-tag {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--warm-soft);
  color: var(--accent-warm);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---- 学習モード ---- */
.learn-intro { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 14px; }
.learn-tabs, .diagram-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.learn-layout { display: flex; gap: 18px; align-items: flex-start; }
.learn-figure-col { flex: 0 0 48%; }
.learn-info-col { flex: 1; min-width: 0; }

.learn-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.92rem;
}
.learn-info h4 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: var(--accent-warm);
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.learn-info .reading { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 6px; }
.learn-info .time-badge {
  display: inline-block;
  font-size: 0.76rem;
  border: 1px solid var(--line);
  color: var(--accent);
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 8px;
}
.learn-list { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.learn-list-item {
  text-align: left;
  background: rgba(13, 28, 52, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.learn-list-item:hover { border-color: var(--accent); box-shadow: var(--glow-cyan); }
.learn-list-item .li-name { font-weight: 600; color: #dff4ff; }
.learn-list-item .li-desc { color: var(--ink-soft); font-size: 0.84rem; }

.diagram-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  max-width: 340px;
  margin: 0 auto 14px;
}
.diagram-box svg { width: 100%; height: auto; display: block; }
.diagram-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.mini-outline { fill: rgba(30, 80, 150, 0.22); stroke: #58c8ff; stroke-width: 1.4; }
.mini-detail { fill: none; stroke: rgba(88, 200, 255, 0.5); stroke-width: 1; }
/* 本体の人体図と揃えたネオン輪郭 */
.diag-neon { stroke: #9be9ff; stroke-width: 1.5; filter: drop-shadow(0 0 3px rgba(79, 216, 255, 0.6)); }
.diag-detail { fill: none; stroke: rgba(150, 230, 255, 0.55); stroke-width: 1; stroke-linecap: round; }
.zone-band { opacity: 0.32; filter: blur(0.4px); }
.zone-label { font-size: 9.5px; fill: #cfe4f8; paint-order: stroke; stroke: rgba(6,12,24,0.9); stroke-width: 2.5px; }

.learn-section-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.1rem;
  color: #eaf6ff;
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

@media (max-width: 600px) {
  .region-layout, .learn-layout { flex-direction: column; }
  .figure-wrap, .learn-figure-col { width: 100%; flex: none; }
  .region-buttons { width: 100%; }
}

/* ==== Phase1: シェア・保存・フォーム・広告 ==== */

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.header-link {
  background: rgba(10, 22, 42, 0.7);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.18s;
}
.header-link:hover { color: var(--accent); border-color: var(--accent); box-shadow: var(--glow-cyan); }

.secondary-btn {
  background: rgba(13, 28, 52, 0.8);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.18s;
  margin: 0 4px;
}
.secondary-btn:hover { border-color: var(--accent); box-shadow: var(--glow-cyan); }
.result-subactions { margin-top: 4px; }

/* 保存リスト */
.saved-block { margin-top: 20px; }
.saved-list { display: flex; flex-direction: column; gap: 8px; }
.saved-item { display: flex; gap: 8px; align-items: stretch; }
.saved-open {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  text-align: left;
  background: rgba(13, 28, 52, 0.75);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}
.saved-open:hover { border-color: var(--accent); box-shadow: var(--glow-cyan); }
.saved-date { font-size: 0.76rem; color: var(--ink-soft); }
.saved-label { font-size: 0.9rem; }
.saved-pattern { font-size: 0.85rem; color: var(--accent-warm); }
.saved-del {
  flex: none;
  background: rgba(13, 28, 52, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--ink-soft);
}
.saved-del:hover { border-color: var(--danger); color: var(--danger); }

/* トースト通知 */
#app-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(13, 28, 52, 0.95);
  border: 1px solid var(--accent);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.88rem;
  box-shadow: var(--glow-cyan);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
#app-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 広告枠 */
.ad-slot {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ad-label {
  flex: none;
  font-size: 0.68rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}
.ad-content { flex: 1; }
.ad-content > *, .ad-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  background: var(--warm-soft);
  border: 1px dashed var(--line-warm);
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
}
.ad-content { display: block; }
.ad-content .ad-text { font-size: 0.85rem; color: var(--ink-soft); flex: 1; min-width: 180px; }
.ad-cta {
  flex: none;
  background: none;
  border: 1px solid var(--line-warm);
  color: var(--accent-warm);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}
.ad-cta:hover { background: rgba(255, 179, 71, 0.15); }

/* モーダル */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 15, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 90;
}
.modal-overlay.hidden { display: none; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6), var(--glow-cyan);
}
.modal-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: var(--accent-warm);
  margin-bottom: 14px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}
.modal-close:hover { color: var(--accent); }
.form-label { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 12px; }
.form-label input, .form-label select, .form-label textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: rgba(8, 18, 36, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-label input:focus, .form-label select:focus, .form-label textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.contact-thanks { text-align: center; padding: 20px 0; }
.contact-thanks.hidden, #contact-form.hidden { display: none; }

/* ==== 四柱推命(金色ネオン) ==== */
.mode-tab-gold.active {
  background: linear-gradient(135deg, #ffd98a, #ffb347);
  color: #241505;
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.55);
}
.fortune-title { color: #ffe9cd; text-shadow: 0 0 14px rgba(255, 179, 71, 0.55); }
.gold-btn {
  background: linear-gradient(135deg, #ffd98a, #ffb347);
  color: #241505;
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.45);
}
.gold-btn:hover { box-shadow: 0 0 26px rgba(255, 179, 71, 0.7); }
.fortune-form { border-color: var(--line-warm); }
.fortune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
.fortune-grid select {
  width: 100%;
  background: rgba(8, 18, 36, 0.9);
  border: 1px solid var(--line-warm);
  border-radius: 10px;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 0.98rem;
  font-family: inherit;
}
.fortune-grid select:focus { outline: none; border-color: var(--accent-warm); box-shadow: 0 0 12px rgba(255, 179, 71, 0.4); }

.fortune-last {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--warm-soft);
  border: 1px dashed var(--line-warm);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #ffd9a3;
}
.fortune-last.hidden { display: none; }

.fortune-hero {
  text-align: center;
  border: 1.5px solid var(--line-warm);
  background:
    radial-gradient(80% 70% at 50% 20%, rgba(255, 179, 71, 0.12), transparent 70%),
    var(--card);
}
.fortune-type-label {
  display: inline-block;
  background: var(--warm-soft);
  color: var(--accent-warm);
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  padding: 3px 16px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.fortune-portrait-wrap {
  width: 190px;
  height: 230px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-warm);
  box-shadow: 0 0 26px rgba(255, 179, 71, 0.3), inset 0 0 20px rgba(255, 179, 71, 0.08);
  background: #f7f0e2;
}
.fortune-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.fortune-name {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.7rem;
  color: #fff;
  margin-top: 12px;
  text-shadow: 0 0 16px rgba(255, 179, 71, 0.6);
  letter-spacing: 0.1em;
}
.fortune-catch { color: var(--accent-warm); font-size: 0.95rem; margin-bottom: 10px; }
.fortune-essence { font-size: 0.95rem; color: var(--ink-soft); max-width: 420px; margin: 0 auto; }

.pillar-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pillar-card {
  text-align: center;
  background: rgba(8, 18, 36, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 4px 8px;
}
.pillar-title { font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 4px; }
.pillar-kanji {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.7rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(79, 216, 255, 0.3);
}
.pillar-note { font-size: 0.7rem; color: var(--ink-soft); margin-top: 2px; }
.pillar-empty { opacity: 0.5; }

.el-bar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.el-bar-label { flex: none; width: 1.4em; font-weight: 700; text-align: center; }
.el-bar-track {
  flex: 1;
  height: 12px;
  background: rgba(8, 18, 36, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.el-bar-fill { height: 100%; border-radius: 999px; box-shadow: 0 0 8px rgba(255,255,255,0.25) inset; }
.el-bar-pct { flex: none; width: 3em; text-align: right; font-size: 0.82rem; color: var(--ink-soft); }

#fortune-disclaimer.hidden { display: none; }

/* ==== 五行の村(緑ネオン) ==== */
.mode-tab-green.active {
  background: linear-gradient(135deg, #7fe3a8, #35d98a);
  color: #05200f;
  box-shadow: 0 0 16px rgba(53, 217, 138, 0.55);
}
.village-title { color: #d3f5e2; text-shadow: 0 0 14px rgba(53, 217, 138, 0.55); }
.village-btn {
  background: linear-gradient(135deg, #7fe3a8, #35d98a);
  color: #05200f;
  box-shadow: 0 0 18px rgba(53, 217, 138, 0.45);
}
.village-btn:hover { box-shadow: 0 0 26px rgba(53, 217, 138, 0.7); }
.village-card { border-color: rgba(53, 217, 138, 0.4); }
.village-card h3 {
  color: #9fe8c4;
  border-bottom-color: rgba(53, 217, 138, 0.35);
  text-shadow: 0 0 10px rgba(53, 217, 138, 0.35);
}
/* --- 村の広場 --- */
.village-sub { color: #9fe8c4; }
.village-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(53, 217, 138, 0.08);
  border: 1px solid rgba(53, 217, 138, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #9fe8c4;
  margin-bottom: 12px;
}
.vp-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 1.5px solid rgba(53, 217, 138, 0.6);
  background: #f7f0e2;
}
.village-pending-note {
  background: var(--warm-soft);
  border: 1px dashed var(--line-warm);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #ffd9a3;
  margin-bottom: 10px;
}
.village-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.village-card-item {
  text-align: left;
  background: rgba(13, 28, 52, 0.75);
  border: 1px solid rgba(53, 217, 138, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.18s;
}
.village-card-item:hover { border-color: #35d98a; box-shadow: 0 0 14px rgba(53, 217, 138, 0.35); }
.vc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-name { font-size: 1.02rem; font-weight: 600; color: #d3f5e2; }
.vc-tag {
  flex: none;
  font-size: 0.72rem;
  background: rgba(53, 217, 138, 0.15);
  color: #7fe3a8;
  border: 1px solid rgba(53, 217, 138, 0.4);
  border-radius: 999px;
  padding: 1px 10px;
}
.vc-desc { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }
.vc-meta { font-size: 0.74rem; color: var(--ink-soft); opacity: 0.8; margin-top: 4px; }

/* --- 村内タブ(トーク/さがす/フレンド) --- */
.vtab-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: rgba(8, 18, 36, 0.7);
  border: 1px solid rgba(53, 217, 138, 0.3);
  border-radius: 999px;
  padding: 4px;
}
.vtab {
  flex: 1;
  padding: 9px 6px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}
.vtab-active {
  background: linear-gradient(135deg, #7fe3a8, #35d98a);
  color: #05200f;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(53, 217, 138, 0.4);
}

/* --- トーク一覧 --- */
.talk-list { display: flex; flex-direction: column; gap: 8px; }
.talk-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: rgba(13, 28, 52, 0.75);
  border: 1px solid rgba(53, 217, 138, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}
.talk-row:hover { border-color: #35d98a; box-shadow: 0 0 12px rgba(53, 217, 138, 0.3); }
.talk-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(53, 217, 138, 0.12);
  border-radius: 50%;
}
.talk-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.talk-name { font-size: 1rem; font-weight: 600; color: #d3f5e2; }
.talk-sub { font-size: 0.76rem; color: var(--ink-soft); }
.talk-closed { opacity: 0.55; }
.talk-del { flex: none; color: var(--ink-soft); }

/* --- フレンド --- */
.friend-me { display: flex; align-items: center; gap: 12px; }
.friend-me-nick { font-size: 1.05rem; font-weight: 600; color: #d3f5e2; }
.friend-me-spirit { font-size: 0.82rem; color: var(--ink-soft); }
.friend-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.friend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 28, 52, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.friend-body { flex: 1; min-width: 0; }
.friend-name { font-size: 0.95rem; font-weight: 600; }
.friend-status { font-size: 0.76rem; color: var(--ink-soft); }
.friend-del {
  flex: none;
  background: none;
  border: none;
  color: var(--ink-soft);
  opacity: 0.5;
  cursor: pointer;
  padding: 6px;
}
.friend-del:hover { opacity: 1; color: var(--danger); }
.transfer-code {
  width: 100%;
  margin-top: 10px;
  background: rgba(8, 18, 36, 0.9);
  border: 1px solid rgba(53, 217, 138, 0.4);
  border-radius: 10px;
  color: #9fe8c4;
  padding: 10px;
  font-size: 0.72rem;
  word-break: break-all;
  font-family: monospace;
}
.transfer-code.hidden { display: none; }

/* --- チャット(全画面オーバーレイ・LINE風) --- */
body.chat-open { overflow: hidden; }
#chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 50% -80px, rgba(30, 70, 130, 0.3), transparent 70%),
    #060b16;
}
#chat-overlay.hidden { display: none; }
.chat-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid rgba(53, 217, 138, 0.3);
  background: rgba(8, 18, 36, 0.9);
  backdrop-filter: blur(8px);
}
.chat-top-back {
  flex: none;
  background: none;
  border: none;
  color: #7fe3a8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 10px 4px 0;
  line-height: 1;
}
.chat-top-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.chat-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.1rem;
  color: #d3f5e2;
  text-shadow: 0 0 10px rgba(53, 217, 138, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-online { flex: none; font-size: 0.78rem; color: #7fe3a8; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-row { display: flex; gap: 8px; align-items: flex-start; }
.chat-row.chat-mine { flex-direction: row-reverse; }
.chat-icon {
  flex: none;
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f7f0e2;
}
.chat-body { max-width: 78%; }
.chat-meta { font-size: 0.68rem; color: var(--ink-soft); margin-bottom: 2px; }
.chat-mine .chat-meta { text-align: right; }
.chat-bubble {
  background: rgba(13, 28, 52, 0.9);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 8px 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.chat-mine .chat-bubble {
  background: rgba(23, 66, 46, 0.85);
  border-color: rgba(53, 217, 138, 0.4);
  border-radius: 14px 4px 14px 14px;
}
.chat-report {
  flex: none;
  background: none;
  border: none;
  color: var(--ink-soft);
  opacity: 0.4;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  align-self: center;
}
.chat-report:hover { opacity: 1; color: var(--danger); }
.chat-icon-tappable { cursor: pointer; }
.chat-icon-tappable:hover { box-shadow: 0 0 8px rgba(53, 217, 138, 0.7); }
.chat-img {
  max-width: min(70vw, 280px);
  max-height: 280px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  display: block;
  margin-bottom: 4px;
  background: rgba(8, 18, 36, 0.6);
}
.chat-inputbar {
  flex: none;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(53, 217, 138, 0.3);
  background: rgba(8, 18, 36, 0.9);
  backdrop-filter: blur(8px);
}
.chat-imgbtn {
  flex: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
}
.chat-imgbtn:hover { background: rgba(53, 217, 138, 0.15); }
.chat-inputbar input {
  flex: 1;
  min-width: 0;
  background: rgba(8, 18, 36, 0.9);
  border: 1px solid rgba(53, 217, 138, 0.4);
  border-radius: 999px;
  color: var(--ink);
  padding: 11px 16px;
  font-size: 16px; /* iOSのズーム防止 */
  font-family: inherit;
}
.chat-inputbar input:focus { outline: none; box-shadow: 0 0 12px rgba(53, 217, 138, 0.4); }
.chat-send-btn { flex: none; padding: 11px 20px; }

/* --- 村長パネル --- */
.admin-item {
  background: rgba(8, 18, 36, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 0.88rem;
}
.admin-item .result-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }

#village-meishi { text-align: center; }
#village-meishi .form-label input { text-align: center; }
.meishi-preview { margin-top: 14px; }
.meishi-img {
  max-width: 320px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(53, 217, 138, 0.5);
  box-shadow: 0 0 24px rgba(53, 217, 138, 0.3);
}

/* ==== 診断結果連動の商品(PR) — スマホ画面の約1/7に収まるバナーサイズ ==== */
.pr-card { border-color: var(--line-warm); padding: 9px 12px 10px; line-height: 1.25; }
.pr-card h3 {
  font-size: 0.8rem;
  line-height: 1.25;
  margin-bottom: 3px;
  padding-bottom: 0;
  border-bottom: none;
}
.pr-badge {
  font-size: 0.62rem;
  border: 1px solid var(--line-warm);
  color: var(--accent-warm);
  border-radius: 3px;
  padding: 0 5px;
  margin-left: 5px;
  vertical-align: middle;
}
.pr-note {
  font-size: 0.62rem;
  line-height: 1.3;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.pr-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(13, 28, 52, 0.75);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
}
.pr-item:hover { border-color: var(--accent-warm); box-shadow: 0 0 12px rgba(255, 179, 71, 0.35); }
.pr-img {
  flex: none;
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
}
.pr-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pr-name {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-price { flex: none; font-size: 0.8rem; line-height: 1.2; color: var(--accent-warm); font-weight: 600; }

/* ==== 写真で歪みチェック(赤ネオン) ==== */
.posture-heading { color: #ffc9ce; text-shadow: 0 0 12px rgba(255, 95, 110, 0.5); }
.posture-card { border-color: rgba(255, 95, 110, 0.4); }
.posture-card > p { font-size: 0.92rem; }
.posture-privacy {
  background: rgba(53, 217, 138, 0.08);
  border: 1px solid rgba(53, 217, 138, 0.35);
  color: #9fe8c4;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 0.86rem;
  margin: 10px 0;
}
.posture-tips { margin: 10px 0 4px; }
.posture-tips ul { padding-left: 1.4em; margin-top: 6px; }
.posture-tips li { margin: 5px 0; }
.posture-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.posture-btn {
  background: linear-gradient(135deg, #ff8a94, #ff5f6e);
  color: #2a0508;
  box-shadow: 0 0 18px rgba(255, 95, 110, 0.45);
  cursor: pointer;
  display: inline-block;
}
.posture-btn:hover { box-shadow: 0 0 26px rgba(255, 95, 110, 0.7); }
.posture-status {
  text-align: center;
  color: var(--accent-warm);
  font-size: 0.88rem;
  margin-top: 10px;
  animation: organPulse 1.4s infinite;
}
.posture-status.hidden { display: none; }
.posture-error {
  background: rgba(255, 95, 110, 0.1);
  border: 1px solid rgba(255, 95, 110, 0.4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-top: 12px;
}
.posture-result-inner { margin-top: 14px; text-align: center; }
.posture-canvas {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 0 20px rgba(255, 95, 110, 0.2);
}
.posture-result-inner > div { text-align: left; }
.posture-metric {
  background: rgba(8, 18, 36, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.posture-metric-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.posture-metric-name { font-weight: 600; font-size: 0.92rem; }
.posture-metric-val { font-size: 0.9rem; }
.posture-metric-band { font-size: 0.82rem; margin-top: 2px; }
.posture-metric-note { font-size: 0.82rem; color: var(--ink-soft); }
.posture-ok { color: #7fe3a8; }
.posture-mild { color: #ffd98a; }
.posture-mid { color: #ffb347; }
.posture-strong { color: #ff8a94; }
.posture-advice {
  background: var(--warm-soft);
  border: 1px solid var(--line-warm);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 0.9rem;
}
.posture-advice-title { color: var(--accent-warm); font-weight: 600; margin-bottom: 6px; }
.posture-advice ul { padding-left: 1.3em; }
.posture-advice li { margin: 6px 0; }
.posture-cautions {
  background: rgba(70, 22, 20, 0.35);
  border: 1px solid rgba(255, 107, 94, 0.45);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.84rem;
  margin-top: 12px;
}
.posture-cautions p { color: #ff9a90; font-weight: 600; margin-bottom: 4px; }
.posture-cautions ul { padding-left: 1.4em; }
.posture-cautions li { margin: 4px 0; }
