/*
 * style.css — 「型」の見た目レイヤー
 * ベースはワイヤーフレーム（Artifact: mizukiオウンドメディア ワイヤーフレーム）の
 * 配色トークン（アクセント #9c4d5e系）。
 * 2026-07-06追記: ユーザー提示の美容サロン参考サイトから以下3点だけを継承。
 *   1. ごく薄いブラッシュピンク〜クリームのグラデーション背景（白/クリームが支配的、ピンクは差し色程度）
 *   2. 和文はゴシック体で統一。セリフ体は英字ワンポイント（.site-eyebrow）のみに限定使用
 *   3. 曲線＝装飾ブロブ図形＋ボタン/カードのピル型・大きめ角丸
 * レイアウト構成・実写真は継承しない（スマホのQ&A操作が主役の構成を維持）。
 * 2026-07-06再修正: 背景ピンクの彩度・面積が強すぎる／和文見出しのセリフ化が参考サイトと逆
 * （参考サイトはセリフ体を英字ワンポイントのみに使い和文本文はゴシック体）との指摘を受け、
 * 背景を薄く・グラデーション範囲を短く、和文見出しは全てゴシック体に戻した。
 */

:root {
  /* ブラウザのフォーム部品・スクロールバー等もダーク化させないよう明示的にlightへ固定 */
  color-scheme: light;

  /* 背景グラデーション（ごく薄いブラッシュピンク→クリーム。ピンクは差し色程度に抑える） */
  --bg-top: #fbeef0;
  --bg-bottom: #fdf9f6;
  --bg: #fdf9f6;

  --surface: #fffdfb;
  --surface-2: #f8ece9;
  --ink: #352a2c;
  --muted: #8a7a78;
  --line: #ecd9d6;
  --accent: #9c4d5e;
  --accent-2: #b56576;
  --accent-soft: rgba(156, 77, 94, 0.12);
  --accent-ink: #ffffff;

  /* 英字ワンポイントのみに使う繊細な洋風セリフ体（和文見出しには使わない） */
  --font-serif-accent: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
}

/*
 * 2026-07-06: ダークモード（システム追従）を廃止。
 * 「ブラッシュピンク〜クリーム」の配色自体がブランドの核であり、
 * 利用者のOS/ブラウザ設定に関わらず常にこのライトテーマ1本で固定表示する。
 * そのため prefers-color-scheme: dark / data-theme="dark" の上書きブロックは
 * 意図的に用意しない（:root のライト値だけが常に使われる）。
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--bg-bottom);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 25%);
  background-attachment: fixed;
}

#app {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 3rem;
  position: relative;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a { color: var(--accent); }

/* ---------- 装飾ブロブ（写真の代わりの有機的な曲線装飾） ---------- */
.blob {
  position: absolute;
  z-index: -1;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
}
.blob-1 {
  top: -3.5rem;
  right: -2.5rem;
  width: 11rem;
  height: 10rem;
  background: var(--accent-soft);
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}
.blob-2 {
  bottom: -2rem;
  left: -3rem;
  width: 8rem;
  height: 8rem;
  background: var(--surface-2);
  border-radius: 60% 40% 30% 70% / 55% 60% 40% 45%;
  opacity: 0.7;
}

/* ---------- 共通フッター ---------- */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  position: relative;
}
.site-footer p {
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

/* ---------- ホーム画面 ---------- */
.home-header {
  position: relative;
  text-align: center;
  margin-bottom: 1.75rem;
  padding-top: 0.5rem;
}
.site-eyebrow {
  display: block;
  font-family: var(--font-serif-accent);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}
.site-name {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.site-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.search-box {
  margin-bottom: 1.75rem;
}
.search-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  box-shadow: 0 2px 10px rgba(156, 77, 94, 0.06);
}
.search-input-wrap:focus-within {
  border-color: var(--accent);
}
.search-icon { font-size: 0.9rem; opacity: 0.7; }
.search-input-wrap input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
  color: var(--ink);
  width: 100%;
  font-family: inherit;
}
.search-input-wrap input::placeholder { color: var(--muted); }

.search-fallback {
  margin: 0.6rem 0.2rem 0;
  font-size: 0.8rem;
  color: var(--accent);
  line-height: 1.6;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 6px;
  padding: 1.1rem 1rem;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 10px rgba(156, 77, 94, 0.05);
}
.tile:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(156, 77, 94, 0.12);
}
.tile:active { transform: scale(0.98); }
.tile-emoji { font-size: 1.4rem; }
.tile-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.tile-cta {
  font-size: 0.7rem;
  color: var(--accent);
}

/* ---------- Q&A / 結果 共通 ---------- */
.back-link {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1rem;
}
.back-link:hover { color: var(--accent); }

.category-label {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.1rem;
  font-weight: 600;
}

/* ---------- Q&A画面 ---------- */
.qa-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px 28px 28px 8px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 4px 18px rgba(156, 77, 94, 0.07);
  overflow: hidden;
}
.qa-question {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  line-height: 1.6;
}
.qa-reason {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1.3rem;
  line-height: 1.6;
}
.qa-options {
  display: flex;
  gap: 0.75rem;
}
.qa-option {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.qa-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.qa-option:active { transform: scale(0.97); }

/* ---------- 結果画面 ---------- */
.result-comment-card {
  position: relative;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 28px 28px 8px 28px;
  padding: 1.3rem 1.3rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.result-comment {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.result-caveat {
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.result-heading {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
  letter-spacing: 0.02em;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}
.rec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 6px;
  padding: 1.05rem 1.15rem;
  box-shadow: 0 2px 10px rgba(156, 77, 94, 0.05);
}
.rec-title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.rec-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
  line-height: 1.55;
}
.rec-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rec-link {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.rec-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.restart-btn {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.85rem;
  font-size: 0.85rem;
}
.restart-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
