:root {
  --bg: #FFFDFB;
  --main: #F5D8DC;
  --sub: #FAF1EB;
  --accent: #A96776;
  --accent-deep: #8C5262;
  --text: #42383B;
  --muted: #8E8083;
  --line: #EADCD8;
  --error: #B8405A;
  --white: #FFFFFF;

  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --en: "Cormorant Garamond", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sub);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }

/* PCではスマホ幅のカラムを中央に */
.app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(169, 103, 118, .08);
}
.screen { flex: 1; }

/* ---------- 設定バナー ---------- */
.config-banner {
  position: fixed;
  z-index: 50;
  bottom: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  background: rgba(66, 56, 59, .78);
  color: #fff;
  pointer-events: none;
}
.config-banner.is-error {
  position: static;
  transform: none;
  border-radius: 0;
  white-space: normal;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  background: #FDE4E8;
  color: #8A1F35;
}

/* ---------- アニメーション ---------- */
.fade-in { animation: fadeUp .7s var(--ease) both; }
.screen.is-leaving { animation: fadeOut .18s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; } }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
 * トップ
 * ======================================================= */
.hero { position: relative; }
.hero__photo {
  position: relative;
  height: 76vh;
  height: 76svh;
  min-height: 460px;
  max-height: 640px;
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  animation: heroZoom 1.6s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(66, 56, 59, .28) 0%, rgba(66, 56, 59, 0) 22%),
    linear-gradient(180deg, rgba(255, 253, 251, 0) 48%, rgba(255, 253, 251, .82) 78%, var(--bg) 100%);
}
.hero__logo {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .18em;
}
.hero__vertical {
  position: absolute;
  z-index: 2;
  top: 64px;
  right: 18px;
  writing-mode: vertical-rl;
  font-family: var(--en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .92);
}
.hero__stamp {
  position: absolute;
  z-index: 2;
  top: 58%;
  right: 20px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: .1em;
  box-shadow: 0 8px 24px rgba(140, 82, 98, .35);
}
.hero__stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
}
.hero__stamp small { display: block; font-size: 10px; letter-spacing: .12em; opacity: .9; }

.hero__body {
  position: relative;
  z-index: 3;
  margin-top: -150px;
  padding: 0 24px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--accent);
}
.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 33px;
  line-height: 1.5;
  letter-spacing: .08em;
}
.hero__title .em {
  color: var(--accent);
  background: linear-gradient(transparent 70%, var(--main) 70%);
  padding: 0 2px;
}
.hero__lead {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 2;
  color: var(--text);
}

.hero__cta { margin-top: 24px; text-align: center; }

.section__head--merits { margin: 44px 0 18px; }
.merits {
  list-style: none;
  margin: 0 24px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.merits li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.merits__num {
  font-family: var(--en);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.merits__title {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.5;
}
.merits li:first-child .merits__title { color: var(--accent-deep); }
.merits__text { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-top: 2px; }

.tips {
  margin: 36px 24px 0;
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
}
.tips__label {
  margin: 0 0 8px;
  font-family: var(--en);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--accent);
}
.tips__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .08em;
}
.tips__text { margin: 14px 0 0; font-size: 13px; line-height: 1.9; color: var(--text); }
.tips__em {
  color: var(--accent-deep);
  font-weight: 700;
  background: linear-gradient(transparent 65%, var(--main) 65%);
}

.cta-block { padding: 32px 24px 8px; text-align: center; }
.cta-block__lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .1em;
}
.cta-block__lead::before, .cta-block__lead::after {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}
.cta-block__lead::before { transform: rotate(60deg); }
.cta-block__lead::after { transform: rotate(-60deg); }
.cta-block__note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* ご利用者の声 */
.section { padding: 56px 24px 8px; }
.section__head { text-align: center; margin-bottom: 26px; }
.section__en {
  display: block;
  font-family: var(--en);
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: .04em;
}
.section__ja {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--muted);
}
.voice {
  position: relative;
  background: var(--white);
  padding: 26px 22px 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.voice::before {
  content: "“";
  position: absolute;
  top: -14px;
  left: 16px;
  font-family: var(--en);
  font-size: 64px;
  line-height: 1;
  color: var(--main);
}
.voice__text { margin: 0; font-family: var(--serif); font-size: 14.5px; line-height: 2; }
.voice__who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.voice__who::before { content: ""; width: 18px; height: 1px; background: var(--muted); }

/* 追従CTA */
.sticky-cta {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  transform: translate(-50%, 110%);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 251, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-shown { transform: translate(-50%, 0); }
.sticky-cta .btn { min-height: 54px; }

/* =========================================================
 * 質問画面
 * ======================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  height: 54px;
  padding: 0 8px;
  background: rgba(255, 253, 251, .96);
}
.topbar[hidden] { display: none; }
.topbar__back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  color: var(--text);
}
.topbar__logo {
  text-align: center;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .18em;
  color: var(--accent);
}
.topbar__count {
  text-align: center;
  font-family: var(--en);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.progress {
  height: 2px;
  background: var(--line);
}
.progress[hidden] { display: none; }
.progress__fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .6s var(--ease);
}

.q { padding: 36px 24px 24px; }
.q__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 6px;
  font-family: var(--en);
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.q__num b { font-weight: 400; font-size: 54px; letter-spacing: .02em; }
.q__num span { font-size: 16px; color: var(--muted); }
.q__title {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.6;
  letter-spacing: .08em;
}
.q__desc { margin: 0 0 26px; font-size: 13px; color: var(--muted); }

.options { display: grid; gap: 10px; }
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 62px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  transition: border-color .2s, background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.option__mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #CDB7BB;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .2s, background .2s;
}
.option__mark::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.option.is-selected { border-color: var(--accent); background: #FBF3F2; color: var(--accent-deep); }
.option.is-selected .option__mark { background: var(--accent); border-color: var(--accent); }
.option.is-selected .option__mark::after { transform: scale(1); }
@media (hover: hover) { .option:hover { border-color: var(--accent); } }
.option:focus-visible, .btn:focus-visible, .field__input:focus-visible, .topbar__back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.option__body { display: block; }
.option__note {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
}
.notice {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--line);
  background: var(--sub);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}
.notice.is-active { border-left-color: var(--accent); color: var(--accent-deep); }

/* ---------- 入力 ---------- */
.field + .field { margin-top: 22px; }
.field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.req {
  font-size: 10px;
  padding: 0 6px;
  line-height: 18px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: .08em;
}
.field__input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  font-size: 17px; /* iOSのズーム防止のため16px以上 */
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 216, 220, .7); }
.field__input::placeholder { color: #C9BBBE; }
.field__input.is-invalid { border-color: var(--error); background: #FFF8F9; }
.field__hint { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.field__error { margin: 6px 0 0; font-size: 12.5px; color: var(--error); font-weight: 600; }
.field__error:empty { display: none; }

select.field__input {
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.age-input {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 6px;
}
.age-input .field__input {
  width: 140px;
  height: 76px;
  border: none;
  border-bottom: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-family: var(--en);
  font-size: 52px;
  line-height: 1;
  padding: 0;
}
.age-input .field__input:focus { box-shadow: none; border-bottom: 2px solid var(--accent); }
.age-input .field__input.is-invalid { background: transparent; border-bottom-color: var(--error); }
.age-input__unit { font-family: var(--serif); font-size: 20px; padding-bottom: 10px; }

.consent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 16px;
  background: var(--sub);
  border-radius: 4px;
  font-size: 13.5px;
  line-height: 1.6;
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--accent);
}

/* ボット対策用の見えない入力欄 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 14px 24px;
  border: none;
  border-radius: 99px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, box-shadow .2s, opacity .2s, background .2s;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(140, 82, 98, .65);
}
.btn--primary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
}
.btn--primary:active { transform: scale(.98); }
.btn--shine { overflow: hidden; }
.btn--shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn:disabled { background: #D9C3C7; box-shadow: none; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn-area { margin-top: 30px; }
.btn-area__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-loading::after { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: #FDECEF;
  color: #8A1F35;
  font-size: 12.5px;
  border-radius: 4px;
}
.form-error:empty { display: none; }
.secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
}

/* =========================================================
 * 完了
 * ======================================================= */
.done { padding: 56px 24px 24px; text-align: center; }
.done__mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
}
.done__en {
  display: block;
  font-family: var(--en);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: .08em;
}
.done__title {
  margin: 8px 0 22px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.6;
  letter-spacing: .08em;
}
.done__body { margin: 0; text-align: left; font-size: 14.5px; line-height: 2; }
.flow {
  margin-top: 36px;
  padding: 28px 22px;
  background: var(--sub);
  text-align: left;
}
.flow__title {
  margin: 0 0 18px;
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .14em;
}
.flow ol { margin: 0; padding: 0; list-style: none; counter-reset: f; }
.flow li {
  counter-increment: f;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.flow li::before {
  content: "0" counter(f);
  font-family: var(--en);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 24px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
}
.footer__logo { display: block; font-family: var(--serif); letter-spacing: .2em; font-size: 14px; color: var(--accent); }
.footer__company {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__company[hidden] { display: none; }
.footer__company + .footer__company { margin-left: 14px; }
.footer__credit { display: block; margin-top: 6px; font-size: 10px; opacity: .7; }
.is-intro .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

@media (max-width: 359px) {
  .hero__title { font-size: 28px; }
  .q__title { font-size: 20px; }
  .hero__stamp { width: 74px; height: 74px; font-size: 13px; }
}
