/* 会員プラットフォーム(BE FREE Partners)と同じ、黒白基調のリキッドグラス。
   差し色はロゴのグラデ(coral → peach → sky)をごく一部だけに使う */
:root {
  --ink: #161616;
  --muted: #6e6e6b;
  --line: rgba(22, 22, 22, 0.08);
  --soft: rgba(22, 22, 22, 0.045);
  --field: rgba(22, 22, 22, 0.22);
  --grad: linear-gradient(90deg, #fc575f, #fcad8f 55%, #89d6ea);
  --en: 'Manrope', 'Noto Sans JP', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { height: 100%; background: #f1f1ef; }
body {
  height: 100%;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Sans', system-ui, sans-serif;
  font-feature-settings: 'palt';
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 36% at 90% 4%, rgba(137, 214, 234, 0.4), transparent 70%),
    radial-gradient(36% 34% at 4% 96%, rgba(252, 173, 143, 0.36), transparent 70%),
    radial-gradient(28% 26% at 60% 64%, rgba(252, 87, 95, 0.1), transparent 70%),
    radial-gradient(30% 30% at 30% 18%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #f3f3f1, #ebebe8);
}
button, input, textarea { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }

.glass, .row, .opt, .advice, .top, .foot {
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, 0.6), transparent 55%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    0 1px 2px rgba(22, 22, 22, 0.04),
    0 14px 34px -14px rgba(22, 22, 22, 0.14);
}

.app {
  max-width: 480px;
  height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.top {
  flex: none;
  height: 56px;
  margin: 8px 8px 0;
  padding: 0 6px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  border-radius: 22px;
}
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.brand img { display: block; width: 76px; height: auto; }
.brand span { padding-left: 10px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.icon-btn {
  width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.progress { flex: none; padding: 14px 22px 0; display: flex; align-items: center; gap: 12px; }
.bar { flex: 1; height: 5px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--grad); border-radius: 3px; transition: width .2s; }
.progress p { font-family: var(--en); font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.body { flex: 1; min-height: 0; overflow-y: auto; }
.screen { padding: 22px 16px 24px; display: flex; flex-direction: column; gap: 18px; }
.screen.tight { gap: 14px; padding-top: 18px; }
h1 { font-size: 22px; line-height: 1.45; font-weight: 700; letter-spacing: .02em; }
h1.large { font-size: 23px; }
.kicker { margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.lead { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 10px; }

.row {
  width: 100%; min-height: 60px;
  padding: 12px 14px 12px 18px;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
  border-radius: 22px;
  cursor: pointer;
}
.row .main { flex: 1; min-width: 0; }
.row .name { display: block; font-size: 15px; font-weight: 700; }
.row .sub { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.row .chev { flex: none; color: var(--muted); }

.opt {
  width: 100%; min-height: 60px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  border-radius: 22px;
  cursor: pointer;
}
.opt[aria-pressed='true'] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink), 0 14px 34px -14px rgba(22, 22, 22, 0.14);
}
.opt .mark {
  flex: none; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid var(--field); border-radius: 50%;
  color: #fff;
}
.opt.multi .mark { border-radius: 7px; }
.opt[aria-pressed='true'] .mark { background: var(--ink); border-color: var(--ink); }
.opt .mark svg { visibility: hidden; }
.opt[aria-pressed='true'] .mark svg { visibility: visible; }
.opt .name { display: block; font-size: 14.5px; font-weight: 700; }
.opt .sub { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.tag { padding: 1px 7px; background: var(--soft); border-radius: 999px; color: var(--muted); font-size: 10.5px; font-weight: 500; }
.tag.required { background: var(--ink); color: #fff; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 16px;
  font-size: 16px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field textarea { resize: none; line-height: 1.6; }
.hint { font-size: 12px; line-height: 1.7; color: var(--muted); }

.foot {
  flex: none;
  margin: 0 8px calc(8px + env(safe-area-inset-bottom));
  padding: 10px 10px 12px;
  border-radius: 26px;
}
.primary, .cta {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #2c2c2c, #121212);
  color: #fff;
  border: 0; border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 18px -8px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.primary { height: 50px; font-size: 15px; }
.primary:disabled { opacity: .6; cursor: default; }
.cta { height: 52px; font-size: 16px; }
.foot .small { margin-top: 7px; text-align: center; font-size: 12px; color: var(--muted); }

.total {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    linear-gradient(150deg, rgba(26, 26, 26, 0.97), rgba(10, 10, 10, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 44px -16px rgba(0, 0, 0, 0.45);
}
.total::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.total::after {
  content: '';
  position: absolute;
  top: -64px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(137, 214, 234, 0.2);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.total .label { font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }
.total .amount { margin-top: 8px; font-family: var(--en); font-size: 38px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.total .amount.text { font-family: inherit; font-size: 23px; line-height: 1.4; letter-spacing: 0; }
.total .amount span { margin-left: 4px; font-family: 'Noto Sans JP', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.total .tax { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.total .monthly { position: relative; z-index: 1; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.total .monthly strong { font-family: var(--en); font-size: 17px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.lines { padding: 16px 18px 8px; border-radius: 22px; }
h2 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.line { padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.line strong { font-family: var(--en); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.advice { padding: 16px 18px; border-radius: 22px; }
.advice p { font-size: 13px; line-height: 1.75; }
.link {
  min-height: 44px; padding: 0;
  background: none; border: 0;
  font-size: 13px; font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}
.error { padding: 10px 14px; background: rgba(252, 87, 95, 0.1); border-radius: 16px; font-size: 13px; }
