/* =====================================================
   テーマ（色はここだけ変えればOK）
   ===================================================== */
:root {
  /* テーマ：ピンク×紫。--c-blue* は名前だけ旧配色の名残で、値は紫 */
  --c-pink: #ffb6d6;
  --c-pink-soft: #ffe3f0;
  --c-pink-deep: #ec5c9c;
  --c-blue: #cdb4ff;
  --c-blue-soft: #f1e9ff;
  --c-blue-deep: #9b6bd6;
  --c-lav: #e9c4f3;
  --c-ink: #4b3a5a;
  --c-ink-soft: #7d6a8c;
  --c-white: #fff;
  --c-bg: #fff8fc;

  --grad-main: linear-gradient(135deg, var(--c-pink) 0%, var(--c-lav) 50%, var(--c-blue) 100%);
  --grad-btn: linear-gradient(135deg, #ff8cc0 0%, #f56aa8 45%, #a985ee 100%);
  --grad-soft: linear-gradient(160deg, var(--c-pink-soft) 0%, #f8e8fb 50%, var(--c-blue-soft) 100%);

  --font-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-script: "Dancing Script", "Segoe Script", cursive;

  --radius: 22px;
  --shadow: 0 10px 30px rgba(236, 92, 156, .18);
  --shadow-soft: 0 6px 18px rgba(120, 90, 160, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

/* =====================================================
   ボタン
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.6em;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; letter-spacing: .04em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .tab:focus-visible, .tool:focus-visible, .swatch:focus-visible, .seg button:focus-visible {
  outline: 3px solid var(--c-blue-deep); outline-offset: 3px;
}
.btn--primary { color: #fff; background: var(--grad-btn); box-shadow: 0 8px 20px rgba(245, 106, 168, .35); }
.btn--ghost { color: var(--c-pink-deep); background: #fff; box-shadow: inset 0 0 0 2px var(--c-pink); }
.btn--sub { color: var(--c-blue-deep); background: #fff; box-shadow: inset 0 0 0 2px var(--c-blue); }
.btn--lg { min-height: 56px; font-size: 1.05rem; padding: .8em 2em; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  cursor: not-allowed; opacity: .5; box-shadow: none; filter: grayscale(.4);
}

/* =====================================================
   入口ゲート
   ===================================================== */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: none; place-items: center; padding: 20px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .65), transparent 40%),
    linear-gradient(160deg, rgba(255, 214, 233, .82), rgba(216, 200, 255, .78) 50%, rgba(226, 208, 255, .82));
}
.is-locked .gate { display: grid; }
.is-locked, .is-locked body { overflow: hidden; } /* WebKit は body だけだと拡大したぼかし本文で横スクロールが出る */
.is-locked .site {
  filter: blur(28px) saturate(1.2);
  transform: scale(1.06);       /* ぼかしの縁が見えないように */
  user-select: none; pointer-events: none;
}
.gate__card {
  width: min(100%, 420px);
  padding: 36px 26px 30px; border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 60px rgba(120, 80, 160, .25);
  position: relative;
}
.gate__card::before, .gate__card::after {
  content: "✦"; position: absolute; color: var(--c-pink); font-size: 22px;
}
.gate__card::before { top: 14px; left: 18px; }
.gate__card::after { bottom: 12px; right: 18px; color: var(--c-blue); }
.gate__panel { animation: pop .35s ease both; }
.gate__eyebrow { margin: 0 0 6px; font-size: .85rem; color: var(--c-ink-soft); letter-spacing: .1em; }
.gate__q:focus { outline: none; }
.gate__q { margin: 0 0 26px; font-size: 1.35rem; line-height: 1.6; font-weight: 900; }
.gate__q--small { font-size: 1.2rem; margin-bottom: 12px; }
.gate__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gate__note { margin: 16px 0 0; font-size: .78rem; line-height: 1.6; color: var(--c-ink-soft); }
.gate__icon { font-size: 2.6rem; margin: 0 0 6px; }
.gate__msg { margin: 0 0 22px; color: var(--c-ink-soft); font-size: .95rem; }
.gate__retry {
  background: none; border: 0; padding: 6px 8px; cursor: pointer;
  font-size: .78rem; color: var(--c-ink-soft); text-decoration: underline; opacity: .8;
}

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* =====================================================
   ヒーロー
   ===================================================== */
.site { transition: filter .6s ease, transform .6s ease; }
.hero {
  position: relative; overflow: hidden;
  padding: 28px 18px 72px;
  background: var(--grad-soft);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 45%, rgba(205, 180, 255, .25) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
  animation: floatUp 14s linear infinite;
  bottom: -80px;
}
.b1 { left: 6%; width: 38px; height: 38px; animation-duration: 13s; }
.b2 { left: 22%; width: 18px; height: 18px; animation-duration: 9s; animation-delay: -3s; }
.b3 { left: 48%; width: 54px; height: 54px; animation-duration: 17s; animation-delay: -8s; }
.b4 { left: 70%; width: 24px; height: 24px; animation-duration: 11s; animation-delay: -5s; }
.b5 { left: 86%; width: 42px; height: 42px; animation-duration: 15s; animation-delay: -2s; }
.b6 { left: 34%; width: 14px; height: 14px; animation-duration: 8s; animation-delay: -6s; }
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-55vh) translateX(14px); }
  100% { transform: translateY(-110vh) translateX(-10px); opacity: 0; }
}
.twinkle { position: absolute; color: #fff; text-shadow: 0 0 12px rgba(236, 92, 156, .6); animation: twinkle 2.6s ease-in-out infinite; }
.t1 { top: 8%; left: 8%; font-size: 22px; }
.t2 { top: 18%; right: 10%; font-size: 28px; animation-delay: -.8s; color: var(--c-pink); }
.t3 { top: 52%; left: 4%; font-size: 18px; animation-delay: -1.4s; }
.t4 { bottom: 16%; right: 6%; font-size: 20px; animation-delay: -.4s; color: var(--c-blue-deep); }
.t5 { top: 36%; right: 40%; font-size: 14px; animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }

.hero__inner { position: relative; max-width: 1080px; margin: 0 auto; display: grid; gap: 18px; }
.hero__photo { position: relative; width: min(82%, 360px); margin: 0 auto; }
.hero__frame {
  border-radius: 999px 999px 32px 32px;
  padding: 8px; background: #fff;
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 182, 214, .45);
  overflow: hidden;
  animation: floaty 6s ease-in-out infinite;
}
.hero__frame img { border-radius: 999px 999px 26px 26px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; height: auto; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__date-pill {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  margin: 0; padding: 4px 26px;
  border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft), inset 0 0 0 2px var(--c-pink);
  font-family: var(--font-script); font-size: 2rem; font-weight: 700; color: var(--c-pink-deep); line-height: 1.3;
}
.hero__text { text-align: center; padding-top: 18px; }
.hero__script {
  margin: 0; font-family: var(--font-script); font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1.1;
  background: linear-gradient(90deg, var(--c-pink-deep), #b77ce8 55%, var(--c-blue-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #fff);
}
.hero__name { margin: 4px 0 0; line-height: 1.3; }
.hero__name-ja { display: block; font-size: clamp(2rem, 9vw, 3rem); font-weight: 900; letter-spacing: .08em; }
.hero__name-en { display: block; font-size: .85rem; letter-spacing: .3em; color: var(--c-ink-soft); text-transform: uppercase; }
.hero__lead { margin: 10px 0 0; font-weight: 700; color: var(--c-pink-deep); }
.hero__cta { margin-top: 18px; }

.countdown {
  margin: 18px auto 0; max-width: 360px; padding: 12px 10px 14px;
  border-radius: var(--radius); background: rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-soft); backdrop-filter: blur(6px);
}
.countdown__label { margin: 0 0 4px; font-size: .8rem; color: var(--c-ink-soft); }
.countdown__nums { display: grid; grid-template-columns: repeat(4, 1fr); }
.countdown__nums span { display: flex; flex-direction: column; align-items: center; }
.countdown__nums b { font-size: 1.7rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--c-ink); }
.countdown__nums small { font-size: .7rem; color: var(--c-ink-soft); }
.countdown.is-today .countdown__nums { display: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 40px; border: 2px solid var(--c-pink-deep); border-radius: 14px; opacity: .6; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--c-pink-deep); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

@media (min-width: 820px) {
  .hero { padding: 64px 32px 100px; min-height: 92vh; display: flex; align-items: center; }
  .hero__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; width: 100%; }
  .hero__photo { width: min(100%, 420px); order: 2; }
  .hero__text { text-align: left; padding-top: 0; }
  .countdown { margin-left: 0; }
}

/* =====================================================
   セクション共通
   ===================================================== */
.section { max-width: 880px; margin: 0 auto; padding: 64px 18px; }
.section__head { text-align: center; margin-bottom: 22px; }
.section__en { margin: 0; font-family: var(--font-script); font-size: 1.8rem; font-weight: 700; color: var(--c-blue-deep); line-height: 1; }
.section__title {
  display: inline-block; position: relative; margin: 6px 0 0;
  font-size: 1.45rem; font-weight: 900; letter-spacing: .08em;
}
.section__title::after {
  content: ""; display: block; height: 6px; margin-top: 4px; border-radius: 3px;
  background: var(--grad-main);
}
.placeholder-note {
  margin: 0 auto 14px; padding: 8px 14px; max-width: 560px;
  border: 2px dashed var(--c-pink); border-radius: 12px;
  font-size: .85rem; color: var(--c-pink-deep); background: #fff; text-align: center;
}
.about__lead { text-align: center; margin: 0 0 24px; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative; padding: 26px 20px 20px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--c-pink);
}
.plan:nth-child(2) { border-top-color: var(--c-lav); }
.plan:nth-child(3) { border-top-color: var(--c-blue); }
.plan__icon { position: absolute; top: -20px; right: 16px; font-size: 2rem; }
.plan__title { margin: 0 0 6px; font-size: 1.05rem; }
.plan__text { margin: 0; font-size: .92rem; color: var(--c-ink-soft); }

/* ギャラリー（装飾） */
.gallery {
  display: flex; justify-content: center; align-items: center;
  padding: 36px 12px 48px; background: var(--grad-soft);
  overflow: hidden;
}
.polaroid {
  margin: 0 -14px; padding: 8px 8px 30px; width: min(36vw, 230px);
  background: #fff; border-radius: 6px; box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.p1 { transform: rotate(-8deg) translateY(10px); }
.p2 { transform: rotate(3deg) translateY(-8px); z-index: 1; }
.p3 { transform: rotate(9deg) translateY(12px); }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; }

/* メセカ募集 */
.msg-card {
  display: grid; gap: 18px; padding: 16px; border-radius: 28px;
  background: #fff; box-shadow: var(--shadow);
  position: relative;
}
.msg-card::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 31px;
  background: var(--grad-main);
}
.msg-card__thumb { border-radius: 16px; width: 100%; height: auto; box-shadow: var(--shadow-soft); }
.msg-card__body { text-align: center; }
.msg-card__body p { margin: 0 0 12px; }
.msg-card__info { margin: 0 0 18px; padding: 10px 14px; border-radius: 14px; background: var(--c-pink-soft); text-align: left; font-size: .9rem; }
.msg-card__info div { display: flex; gap: 10px; }
.msg-card__info dt { flex: none; font-weight: 700; color: var(--c-pink-deep); }
.msg-card__info dd { margin: 0; }
@media (min-width: 820px) {
  .msg-card { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 24px; }
  .msg-card__body { text-align: left; }
}

/* チケット */
#ticket { text-align: center; }
.ticket__text { margin: 0 0 18px; }
.ticket__btn .btn { min-width: min(100%, 320px); }

/* フッター */
.footer {
  padding: 40px 18px calc(40px + env(safe-area-inset-bottom));
  text-align: center; font-size: .85rem; color: var(--c-ink-soft);
  background: var(--grad-soft);
}
.footer p { margin: 0 0 8px; }
.footer__script { font-family: var(--font-script); font-size: 1.8rem; color: var(--c-pink-deep); }
.footer__small { font-size: .75rem; opacity: .85; }

/* スクロール出現 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =====================================================
   メセカ投稿ダイアログ
   ===================================================== */
.card-dialog {
  width: 100%; max-width: 640px; height: 100%; max-height: 100%;
  margin: 0 auto; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--c-bg); color: var(--c-ink);
}
.card-dialog::backdrop { background: rgba(90, 60, 110, .45); backdrop-filter: blur(4px); }
@media (min-width: 680px) {
  .card-dialog { height: auto; max-height: calc(100% - 48px); margin: 24px auto; border-radius: 28px; box-shadow: 0 30px 80px rgba(80, 40, 120, .35); }
}
body.dialog-open { overflow: hidden; }
.cd { display: flex; flex-direction: column; min-height: 100%; }
.cd__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--grad-main); color: #fff;
}
.cd__title { margin: 0; font-size: 1.1rem; font-weight: 900; text-shadow: 0 1px 6px rgba(200, 70, 140, .4); }
.cd__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--c-pink-deep); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cd__form { padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-soft); margin-bottom: 14px; }
.tab { min-height: 44px; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--c-ink-soft); }
.tab[aria-selected="true"] { background: var(--grad-btn); color: #fff; box-shadow: 0 4px 12px rgba(245, 106, 168, .3); }

.panel__hint { margin: 0 0 8px; font-size: .85rem; color: var(--c-ink-soft); }
.draw-stage {
  position: relative; width: 100%;
  border-radius: 14px; overflow: hidden;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-soft), inset 0 0 0 2px var(--c-pink);
}
#draw-canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }

.toolbar { display: grid; gap: 10px; margin: 12px 0 6px; }
.toolbar__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), var(--shadow-soft);
}
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--c-ink); transform: scale(1.08); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--c-pink-soft); }
.seg--wrap { flex-wrap: wrap; border-radius: 16px; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: .9rem; }
.seg button[aria-pressed="true"] { background: var(--c-pink-deep); color: #fff; }
.tool {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 2px var(--c-blue); font-size: .88rem; font-weight: 700; color: var(--c-ink);
}
.tool[aria-pressed="true"] { background: var(--c-blue-deep); color: #fff; box-shadow: none; }
.tool--warn { box-shadow: inset 0 0 0 2px var(--c-pink); }
.tool:disabled { opacity: .4; cursor: not-allowed; }

.preview-label { margin: 12px 0 4px; font-size: .8rem; color: var(--c-ink-soft); }
.preview { display: block; width: 100%; height: auto; aspect-ratio: 91 / 55; border-radius: 12px; box-shadow: var(--shadow-soft); background: #fff; }
#draw-preview { width: 60%; }
.preview--main { margin-bottom: 14px; }

.field { display: block; margin: 0 0 14px; }
.field__label { display: block; margin-bottom: 4px; font-weight: 700; font-size: .92rem; }
.field__help { display: block; margin-top: 4px; font-size: .78rem; color: var(--c-ink-soft); }
.field__counter { display: block; text-align: right; font-size: .8rem; color: var(--c-ink-soft); margin-top: 2px; }
.field__counter.is-warn { color: var(--c-pink-deep); font-weight: 700; }
.req { font-style: normal; font-size: .7rem; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--c-pink-deep); color: #fff; vertical-align: 2px; }
input[type="text"], textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--c-pink-soft); border-radius: 14px;
  font: inherit; font-size: 16px; /* iOSのズーム防止 */ color: var(--c-ink); background: #fff;
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--c-pink); box-shadow: 0 0 0 4px rgba(255, 182, 214, .35); }
textarea { resize: vertical; min-height: 110px; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps > li { position: relative; padding: 16px 16px 16px 56px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: #fff; background: var(--grad-btn);
}
.steps__title { margin: 0 0 2px; font-weight: 900; }
.steps__text { margin: 0 0 10px; font-size: .88rem; color: var(--c-ink-soft); }
.steps__note { margin: 6px 0 0; font-size: .75rem; color: var(--c-ink-soft); }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; cursor: pointer; }
.upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload input:focus-visible + .btn { outline: 3px solid var(--c-blue-deep); outline-offset: 3px; }
.upload__name { font-size: .82rem; color: var(--c-ink-soft); word-break: break-all; }
.upload__preview { margin-top: 12px; max-height: 320px; width: auto; max-width: 100%; border-radius: 12px; box-shadow: var(--shadow-soft); }

.common { margin-top: 18px; padding-top: 18px; border-top: 2px dotted var(--c-pink); }
.notice {
  margin: 4px 0 14px; padding: 14px; border-radius: 16px;
  background: #fffbea; border: 2px solid #ffe08a; font-size: .88rem;
}
.notice p { margin: 0 0 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--c-pink-deep); }
.error { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: #ffeaf0; color: #c2185b; font-size: .85rem; font-weight: 700; }
.mock-note { margin: 10px 0 0; font-size: .78rem; color: var(--c-ink-soft); text-align: center; }
.mock-note--strong { padding: 10px; border-radius: 12px; background: #fffbea; border: 2px dashed #ffcf4d; color: #8a5a00; font-weight: 700; font-size: .85rem; }

.cd__done { padding: 40px 22px calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.cd__done-icon { font-size: 3.4rem; margin: 0; animation: pop .5s ease both; }
.cd__done-title { margin: 8px 0; font-size: 1.3rem; font-weight: 900; color: var(--c-pink-deep); }
.cd__done-file code { font-size: .85rem; word-break: break-all; background: #fff; padding: 2px 8px; border-radius: 6px; }
.cd__done-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 200; }

/* =====================================================
   動きを減らす設定を尊重
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bubble { display: none; }
}

/* ---- X ID ---- */
.opt { font-style: normal; font-size: .7rem; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--c-blue-soft); color: var(--c-blue-deep); vertical-align: 2px; }
.error--inline { margin: 6px 0 0; padding: 4px 10px; font-size: .8rem; display: inline-block; }
.field__help--privacy { font-size: .72rem; opacity: .9; }
.xid__preview {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft);
  font-weight: 700; font-size: .92rem;
}
.xid__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--grad-main);
}
.xid__avatar canvas { width: 100%; height: 100%; display: block; }
.xid__avatar.is-loading { animation: xidPulse 1s ease-in-out infinite; }
.xid__avatar.is-none { background: var(--c-blue-soft); }
@keyframes xidPulse { 50% { opacity: .4; } }
.xid__state { font-size: .72rem; font-weight: 400; color: var(--c-ink-soft); }
.xid__note { margin: 4px 0 0; font-size: .75rem; color: var(--c-ink-soft); }
.save-local { margin-top: 10px; }
.xid__row { display: flex; gap: 8px; align-items: stretch; }
.xid__row input { flex: 1; min-width: 0; }
.xid__fetch { flex: none; min-height: 44px; padding: 0 14px; font-size: .85rem; }
.closed-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff4f8; color: var(--c-pink-deep); font-weight: 700; font-size: .9rem; }

/* ゲートのボタン：「実は本人です」などを狭い画面でも 1 行に */
.gate__btns .btn { white-space: nowrap; padding-inline: .6em; font-size: clamp(.86rem, 4.2vw, 1rem); letter-spacing: .02em; }
@media (max-width: 374px) {
  .gate__card { padding-inline: 18px; }
  .gate__btns { gap: 8px; }
}
.steps__base { display: block; width: 100%; max-width: 360px; height: auto; margin-top: 10px; border-radius: 10px; box-shadow: var(--shadow-soft); -webkit-touch-callout: default; }
.cd__done-thanks { margin: 12px 0 0; font-size: .9rem; color: var(--c-ink-soft); }
