/* =====================================================
  common.css
  - 全テーマ共通の構造・レイアウト
  - テーマ差分は theme-*.css で上書き
===================================================== */

:root{
  --wrap: 980px;
  --pad: 18px;

  /* base */
  --bg: #faf7fb;
  --card-bg: rgba(255,255,255,.82);
  --ink: #1b1f2a;
  --muted: rgba(27,31,42,.78);
  --line: rgba(27,31,42,.12);

  /* theme tokens (theme側で上書き) */
  --accent: #d892a8;
  --accent-deep: #b66b83;
  --accent-ink: #ffffff;

  --btn-bg: var(--accent);
  --btn-ink: #ffffff;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,.12);

  /* optional background image */
  --bg-image: none; /* 例: url("/img/themes/a/bg.jpg") */
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a{ color: inherit; }
img{ max-width: 100%; height: auto; display: block; }

.page{
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 22px);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}

/* うっすらかぶせる（画像が無い場合でも雰囲気が出る） */
.page::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 40% 20%, rgba(255,255,255,.35), transparent 55%),
              radial-gradient(ellipse at 70% 80%, rgba(255,255,255,.25), transparent 60%);
}

.shell{
  width: min(540px, 100%);
  position: relative;
  z-index: 1;
}

.card{
  width: 100%;
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card-inner{
  padding: clamp(18px, 3vw, 26px);
}

/* ribbon */
.ribbon{
  position: relative;
  padding: 18px 20px 0;
}

.ribbon-badge{
  position: relative;
  display: inline-block;
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: clamp(20px, 2.3vw, 28px);
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
}

/* リボンの左右の“羽” */
.ribbon-badge::before,
.ribbon-badge::after{
  content:"";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 18px;
  background: var(--accent);
  transform: translateY(-50%);
}
.ribbon-badge::before{
  left: -22px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.ribbon-badge::after{
  right: -22px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* text */
.lead{
  margin: 10px 0 0;
  line-height: 1.9;
  font-size: 15px;
  color: var(--muted);
  white-space: pre-line;
}

.note{
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-line;
}

/* clinic name (optional) */
.clinic{
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  font-size: 14px;
  color: rgba(27,31,42,.65);
}

/* CTA */
.cta{
  margin-top: 18px;
  padding: 0 20px 22px;
}

.btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 999px;
  background: #92bed8;
  color: var(--btn-ink);
  font-weight: 900;
  letter-spacing: .08em;
  border: 0;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
  transition: transform .08s ease, filter .15s ease;
}

.btn:active{ transform: translateY(1px); }
.btn:hover{ filter: brightness(1.03); }

.btn .arrow{
  font-weight: 900;
  transform: translateY(1px);
}

/* small helper */
.hr{
  height: 1px;
  background: rgba(27,31,42,.10);
  margin: 16px 0;
}

/* review page components */
.form{
  margin-top: 12px;
}

.radio{
  display: block;
  padding: 14px 14px;
  border: 1px solid rgba(27,31,42,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  margin-top: 10px;
}

.radio label{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.6;
}

.radio input{
  margin-top: 3px;
}

.actions{
  margin-top: 14px;
}

.btn-secondary{
  background: rgba(27,31,42,.08);
  color: rgba(27,31,42,.78);
  box-shadow: none;
  border: 1px solid rgba(27,31,42,.12);
}
