/* 色は、hanaco.floristの写真から拾った色（1つ目のアプリと同じ） */
:root {
  --bg: #fbf8f6;        /* ほんのり温かい白 */
  --surface: #ffffff;   /* カード */
  --line: #ebe2dc;      /* 罫線。包み紙のグレージュ */
  --ink: #4a4340;       /* 文字。やわらかい焦茶 */
  --ink-soft: #9a908a;  /* 補足の文字 */
  --rose: #92666c;      /* ボタン。モーヴ */
  --rose-dark: #7c555a; /* ボタンを押したとき */
  --blush: #f7ecec;     /* やわらかい面。淡いピンク */
  --ornament: #c9a9ad;  /* 飾り線。淡いモーヴ */
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* 言葉のまとまり。折り返すときは、このまとまりの切れ目で折り返す */
.nw { display: inline-block; }

.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 48px; }

/* ───── いちばん上 ───── */
.site-header { text-align: center; padding: 36px 0 20px; }
.brand {
  margin: 0;
  font-family: "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: 32px;
  letter-spacing: 0.12em;
  font-weight: 400;
}
.catch { margin: 8px 0 0; font-size: 15px; color: var(--ink); letter-spacing: 0.02em; }

/* 飾り線 ✼••┈┈┈┈••✼ */
.divider {
  margin: 12px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ornament);
  text-align: center;
  white-space: nowrap;
}
.section-divider { margin: 36px 0 20px; }

/* プロポーズを選んだときだけ出すところ（見出し・オーダーメイドの例） */
.proposal-only { display: none; }
#choose:has(input[name="purpose"][value="proposal"]:checked) .proposal-only { display: block; }
/* 例）のところだけは、出すときも横並びのままにする */
#choose:has(input[name="purpose"][value="proposal"]:checked) .ordermade-examples { display: flex; }

.section-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--rose);
  text-align: center;
  letter-spacing: 0.04em;
}

/* ───── 質問 ───── */
.q { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.q legend {
  display: flex; align-items: center; gap: 8px;
  padding: 0; margin-bottom: 10px;
  font-size: 16px; font-weight: 600;
}
.hint { margin: -4px 0 10px; font-size: 13px; color: var(--ink-soft); }

.choices { display: grid; gap: 8px; }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choices.cols-2 { grid-template-columns: repeat(2, 1fr); }

.choice { display: block; cursor: pointer; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s, background-color 0.15s;
}
.cols-3 .choice-body, .cols-2 .choice-body { text-align: center; padding: 14px 4px; font-weight: 600; }
.choice input:checked + .choice-body {
  border-color: var(--rose);
  background: var(--blush);
  box-shadow: inset 0 0 0 1px var(--rose);
}
.choice input:focus-visible + .choice-body { outline: 2px solid var(--rose); outline-offset: 2px; }

.choice-title { font-weight: 600; }
.swatch {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  margin-right: 8px; vertical-align: -2px;
  border: 1px solid rgba(74, 67, 64, 0.15);
}
.badge {
  display: inline-block; margin-left: 8px; padding: 0 8px;
  border-radius: 999px; background: var(--rose); color: #fff;
  font-size: 11px; font-weight: 500; vertical-align: 2px;
}
.choice-note { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); }

.count-row { display: flex; align-items: baseline; gap: 8px; }
.count-num { font-weight: 600; min-width: 3.2em; }
.count-meaning { flex: 1; font-size: 15px; line-height: 1.5; }
.count-price { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }

/* ───── ボタン ───── */
.btn {
  display: block; width: 100%;
  padding: 15px 20px; border: 0; border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:active { background: var(--rose-dark); }
/* LINEのボタン。LINEブランドの緑 */
.btn-line { background: #06c755; color: #fff; border: 1.5px solid #06c755; }
.btn-line:active { background: #05a948; border-color: #05a948; }
.btn-ghost { background: transparent; color: var(--ink-soft); font-weight: 500; text-decoration: underline; }
.btn-small { width: fit-content; margin: 0 auto; padding: 9px 22px; font-size: 14px; }

.other-flower { margin: 14px 0 8px; font-size: 13px; color: var(--ink-soft); text-align: center; }

.box {
  margin: 0 0 28px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  text-align: center;
}
.box p { margin: 0 0 10px; font-size: 14px; }
.ordermade { margin-top: 0; background: transparent; border-style: dashed; }

/* オーダーメイドの例（プロポーズのときだけ）。2行におさめる。
   「例）」と箇条書きを横に並べて、2行目の「・」の位置をそろえる */
.ordermade-examples {
  display: flex; align-items: flex-start;
  margin: 0 auto 12px; width: fit-content; max-width: 100%;
  font-size: 13px; line-height: 1.7; color: var(--ink-soft); text-align: left;
}
.ordermade-examples .example-label { flex: none; }

/* ───── 画面2：提案 ───── */
.result-title { margin: 4px 0 16px; font-size: 20px; text-align: center; }
.lead { margin: -8px 0 16px; font-size: 14px; color: var(--ink-soft); text-align: center; }

.bouquet {
  margin-bottom: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.bouquet-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--blush); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.bouquet-body { padding: 16px 18px 18px; }
.bouquet-name { margin: 0; font-size: 18px; font-weight: 600; }
.bouquet-meaning { margin: 2px 0 8px; font-size: 16px; color: var(--rose); }
.bouquet-price { margin: 8px 0 0; font-size: 18px; font-weight: 600; }
.tax { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.photo-caption { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.is-alt .photo-caption { margin-bottom: 2px; font-size: 11.5px; }
.shipping-plus { display: inline-block; margin-left: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.bouquet .btn { margin-top: 14px; padding-left: 16px; padding-right: 16px; }

.alt-title { margin: 24px 0 10px; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-align: center; }
.bouquet.is-alt { display: block; }
.is-alt .bouquet-body { padding: 14px 18px 16px; }
.is-alt .bouquet-name { font-size: 16px; }
.is-alt .bouquet-meaning { margin-bottom: 4px; font-size: 14px; }
.is-alt .bouquet-price { font-size: 16px; }
.is-alt .shipping-plus { margin-left: 0; }

details.shipping { margin-top: 6px; font-size: 13px; }
details.shipping summary {
  display: inline-block; padding: 4px 0;
  color: var(--rose); cursor: pointer; list-style: none;
}
details.shipping summary::-webkit-details-marker { display: none; }
details.shipping summary::before {
  content: "▶"; display: inline-block; margin-right: 6px;
  font-size: 10px; transition: transform 0.15s;
}
details.shipping[open] summary::before { transform: rotate(90deg); }
.shipping table { width: 100%; margin-top: 6px; border-collapse: collapse; }
.shipping th, .shipping td {
  padding: 8px 4px; border-top: 1px solid var(--line);
  text-align: left; vertical-align: top; line-height: 1.6;
}
.shipping th { padding-right: 10px; white-space: nowrap; font-weight: 600; }
.shipping td { font-weight: 400; }
.shipping-note { margin: 6px 0 0; font-size: 12px; color: var(--ink-soft); }

/* かすみそう白：S・M・Lの値段を並べる */
.size-prices { margin: 10px 0 0; padding: 0; list-style: none; }
.size-prices li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.size-prices .size-name { font-weight: 600; }
.size-prices .size-price { font-size: 16px; font-weight: 600; }

/* かすみそうの花言葉 */
.meanings-label { margin: 14px 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.meanings { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.meanings li {
  padding: 4px 12px; border-radius: 999px;
  background: var(--blush); color: var(--rose);
  font-size: 13px;
}

.result-stores { margin: 4px 0 8px; }
.result-actions { margin: 24px 0 8px; text-align: center; }
.small { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-soft); }

.notice { margin: 20px 0; padding: 14px 16px; background: var(--blush); border-radius: 12px; font-size: 14px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 4px; }
