/* =========================================================
   自分推し布教委員会 LP
   ========================================================= */
:root {
  --sky: #e8f2fb;
  --sky-2: #d3e6f8;
  --sky-3: #b9d6f2;
  --paper: #fffdf8;
  --white: #ffffff;
  --ink: #1f3263;
  --ink-2: #4a5878;
  --pink: #dc3f76;          /* CTAの塗り。白文字 5.0:1 */
  --pink-dark: #c02f63;
  --pink-soft: #ffe3ee;
  --pink-mid: #ffb3cd;
  --yellow-soft: #fff4c4;
  --yellow: #ffd24d;
  --mint-soft: #d9f5ec;
  --mint: #6fd6be;
  --lav-soft: #ece4ff;
  --lav: #a98bef;
  --blue-btn: #3f73b8;       /* 白文字 4.9:1 */
  --line: #c9d6e6;

  --f-head: "Yusei Magic", "Zen Maru Gothic", sans-serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --f-hand: "Yomogi", "Zen Maru Gothic", cursive;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --shadow: 0 10px 28px rgba(31, 50, 99, .12);
  --shadow-sm: 0 4px 12px rgba(31, 50, 99, .12);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--sky);
  line-height: 1.8;
  word-break: auto-phrase;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.3; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; position: relative; }
.wrap-narrow { width: min(760px, 100% - 32px); }
.hand { font-family: var(--f-hand); color: var(--ink); line-height: 1.45; }
.mini-heart { color: var(--pink); font-family: var(--f-hand); margin-left: .15em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.6em;
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.3;
  text-decoration: none; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 6px 0 var(--pink-dark), 0 12px 24px rgba(220, 63, 118, .28); }
.btn-pink:hover { background: var(--pink-dark); }
.btn-blue { background: var(--blue-btn); color: #fff; box-shadow: var(--shadow-sm); }
.btn-outline { background: #fff; color: var(--blue-btn); border: 2px solid var(--blue-btn); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: .45em 1.2em; font-size: .88rem; box-shadow: 0 4px 0 var(--pink-dark); }
.btn-lg { min-height: 58px; font-size: 1.12rem; padding: .8em 2em; }
.btn-block { width: 100%; }
.heart { font-size: .95em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 214, 230, .6);
}
.header-inner {
  width: min(1320px, 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; gap: 16px; min-height: 64px;
}
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); flex: none; }
.logo-text { font-family: var(--f-head); font-size: 1.15rem; line-height: 1.05; }
.logo-mega { width: 34px; height: 28px; color: var(--ink); transform: rotate(-10deg); }
.header-tag { display: none; font-size: .72rem; color: var(--ink-2); line-height: 1.5; }
.gnav { display: none; }
.header-cta { margin-left: auto; font-size: .8rem; padding-inline: 1em; }
.header-cta .arrow { display: none; }
@media (min-width: 1100px) {
  .header-tag { display: block; }
  .gnav { display: flex; gap: 22px; margin-left: auto; font-size: .82rem; font-weight: 700; }
  .gnav a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
  .gnav a:hover { background-size: 100% 2px; }
  .header-cta { margin-left: 12px; font-size: .88rem; padding-inline: 1.3em; }
  .header-cta .arrow { display: inline; }
}
@media (max-width: 380px) { .header-cta .heart { display: none; } }

/* ---------- paper / tape ---------- */
.paper {
  background: var(--paper);
  border-radius: 6px;
  box-shadow: var(--shadow);
  position: relative;
}
.paper::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px;
  translate: -50% 0; rotate: -3deg;
  background: repeating-linear-gradient(90deg, rgba(185, 214, 242, .75) 0 10px, rgba(210, 230, 250, .75) 10px 20px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 64px; isolation: isolate; }
.hero-sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 30% 18% at 18% 22%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(ellipse 26% 14% at 60% 12%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(ellipse 34% 16% at 88% 60%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(ellipse 40% 20% at 40% 92%, rgba(255, 255, 255, .8), transparent 70%),
    radial-gradient(circle at 80% 30%, rgba(255, 214, 230, .55), transparent 40%),
    linear-gradient(180deg, #a9cff2 0%, #cfe5f8 45%, #eef6fd 100%);
}
.hero-sky::after { /* きらきら */
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, #fff 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 1px, transparent 1.5px);
  background-size: 140px 120px, 90px 70px;
  background-position: 20px 30px, 60px 10px;
  opacity: .7;
}
.hero-inner {
  width: min(1240px, 100% - 32px); margin-inline: auto;
  display: grid; gap: 8px; position: relative; z-index: 2;
}
.hero-copy { text-align: left; position: relative; z-index: 3; }
.hero-badge {
  display: inline-block; background: #fff; padding: 2px 14px; border-radius: 4px;
  font-family: var(--f-head); font-size: .95rem; box-shadow: var(--shadow-sm); rotate: -2deg;
}
.hero-title { font-family: var(--f-head); margin-top: 14px; line-height: 1.15; }
.hero-title span { display: block; }
.hero-title .l1 { font-size: clamp(1.25rem, 4.6vw, 2.1rem); }
.hero-title .l2 { font-size: clamp(2.6rem, 11.5vw, 4.9rem); margin-top: .1em; }
.hero-title .l3 {
  font-size: clamp(2.6rem, 11.5vw, 4.9rem); position: relative; width: fit-content; padding-left: .7em;
  background: linear-gradient(transparent 82%, rgba(255, 143, 181, .55) 82% 92%, transparent 92%);
}
.h1-heart { position: absolute; right: -.9em; top: .05em; width: .8em; height: .72em; rotate: 12deg; }
.hero-lead {
  margin-top: 18px; font-size: .92rem; line-height: 1.9;
  background: rgba(255, 255, 255, .72); padding: 12px 16px; border-radius: var(--r-sm); width: fit-content;
}
.hero-cta { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.love-myself { font-size: 1.1rem; rotate: -14deg; opacity: .8; }

.hero-visual { position: relative; margin-top: 28px; padding-bottom: 8px; }
.hero-aki {
  position: relative; z-index: 2; width: min(88%, 520px); margin-inline: auto 0;
  -webkit-mask: linear-gradient(#000 80%, transparent 99%); mask: linear-gradient(#000 80%, transparent 99%);
  animation: floaty 5s ease-in-out infinite;
}
.hero-mokeru {
  position: absolute; z-index: 3; width: clamp(92px, 26vw, 170px);
  left: -6px; top: 42%;
  filter: drop-shadow(0 10px 14px rgba(31, 50, 99, .18));
  animation: bob 3.2s ease-in-out infinite;
}
.mokeru-say {
  position: absolute; z-index: 3; left: 16%; top: 30%;
  background: #fff; border-radius: 50%; padding: 6px 12px; font-size: 1rem;
  box-shadow: var(--shadow-sm); display: none;
}
.hero-shout {
  position: absolute; z-index: 3; left: 0; top: -24px;
  font-size: clamp(1.05rem, 4vw, 1.6rem); rotate: -6deg; line-height: 1.3;
  text-shadow: 0 0 10px #fff, 0 0 4px #fff;
}
.love-myself { display: none; }
.hero-ribbon {
  position: relative; z-index: 4; width: fit-content; margin: 18px auto 0; text-align: center;
  font-family: var(--f-hand); font-size: .98rem; line-height: 1.6;
}

/* かけ声の帯（電光掲示ふう） */
.cheer-ticker {
  position: relative; z-index: 3; margin-top: 30px; overflow: hidden; display: flex;
  background: rgba(255, 255, 255, .92); rotate: -1.2deg; width: 104%; margin-left: -2%;
  box-shadow: 0 6px 18px rgba(31, 50, 99, .1);
  border-block: 2px dashed rgba(220, 63, 118, .35);
}
.cheer-track {
  display: flex; flex: none; gap: 0; padding: 8px 0;
  font-family: var(--f-hand); font-size: 1.05rem; white-space: nowrap;
  animation: ticker 36s linear infinite;
}
.cheer-track li { padding-inline: 18px; }
.cheer-track li::after { content: "♡"; color: var(--pink); margin-left: 36px; }
.hero-ribbon span { display: block; background: #fff; padding: 2px 14px; box-shadow: var(--shadow-sm); width: fit-content; margin-inline: auto; }
.hero-ribbon span:first-child { rotate: -2deg; }
.hero-ribbon span:last-child { rotate: 1.5deg; margin-top: 4px; background: var(--pink-soft); }

.hero-collage { display: none; }
.edge { position: absolute; left: 0; width: 100%; height: 48px; display: block; }
.edge-bottom { bottom: -1px; }
.edge-top { top: -1px; }

/* polaroid */
.polaroid {
  margin: 0; background: #fff; padding: 10px 10px 14px; box-shadow: var(--shadow);
  position: absolute; border-radius: 3px;
}
.polaroid::before { /* tape */
  content: ""; position: absolute; top: -10px; left: 50%; translate: -50% 0; rotate: 4deg;
  width: 70px; height: 20px; background: rgba(255, 179, 205, .75);
}
.pol-img { overflow: hidden; display: grid; place-items: end center; }
.pol-img img { width: 70%; }
.pol-sky { background: linear-gradient(180deg, #bcdcf6, #eaf5ff); }
.pol-pink { background: linear-gradient(180deg, #ffd6e5, #fff1f6); }
.polaroid figcaption { font-family: var(--f-hand); font-size: .9rem; text-align: center; margin-top: 6px; line-height: 1.4; }

@media (min-width: 900px) {
  .hero { padding: 36px 0 70px; }
  .hero-inner { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 0; min-height: 600px; }
  .hero-copy { padding-left: 170px; }
  .hero-title .l2, .hero-title .l3 { font-size: clamp(3rem, 5vw, 4.3rem); white-space: nowrap; }
  .hero-title .l1 { white-space: nowrap; }
  .hero-visual { margin-top: 0; padding-bottom: 0; }
  .hero-aki { width: 100%; max-width: 560px; margin: 96px 0 0; }
  .hero-shout { left: 16%; top: 4px; }
  .hero-mokeru { left: -10%; top: auto; bottom: -18px; width: 160px; }
  .mokeru-say { display: block; left: 4%; top: auto; bottom: -46px; }
  .love-myself { display: block; }
  .hero-ribbon { position: absolute; left: 30%; bottom: -44px; margin: 0; }
  .cheer-ticker { margin-top: 70px; }
  .hero-collage { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .pol-1 { left: 1.5%; top: 70px; width: 140px; rotate: -6deg; }
  .pol-1 .pol-img { height: 140px; }
  .note-1 { position: absolute; left: 2.5%; top: 290px; font-size: .98rem; rotate: -8deg; }
  .pol-2 { left: 2.5%; top: 410px; width: 140px; rotate: 4deg; }
  .pol-2 .pol-img { height: 110px; }
  .pol-2 .pol-img img { width: 60%; }
  .balloon { position: absolute; left: 14%; top: 560px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .hero-copy { padding-left: 130px; }
  .pol-1, .pol-2 { width: 110px; }
  .pol-1 .pol-img { height: 110px; }
  .note-1, .balloon { display: none; }
}
@media (min-width: 1400px) {
  .hero-copy { padding-left: 120px; }
}
.balloon {
  width: 120px; height: 110px; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, #ffd3e4 40%, #f7a9c7 100%);
  clip-path: path("M60 105 C20 78 2 58 6 34 C10 12 36 2 60 24 C84 2 110 12 114 34 C118 58 100 78 60 105Z");
  font-family: var(--f-hand); color: #fff; text-align: center; font-size: 1rem; line-height: 1.1; rotate: -10deg;
  text-shadow: 0 1px 2px rgba(192, 47, 99, .5);
}

/* ---------- section common ---------- */
.h-hand { font-family: var(--f-head); font-size: clamp(1.6rem, 5.4vw, 2.3rem); line-height: 1.35; }
.h-hand small { display: block; font-size: .6em; }
.h-md { font-size: clamp(1.4rem, 4.4vw, 1.8rem); }
.uline { background: linear-gradient(transparent 70%, rgba(255, 210, 77, .7) 70%); }
.sec-head { position: relative; margin-bottom: 28px; }
.small-note { font-size: .78rem; color: var(--ink-2); text-align: center; margin-top: 22px; }

/* ---------- CONCEPT ---------- */
.concept { background: var(--paper); padding: 40px 0 90px; position: relative; }
.concept-grid { display: grid; gap: 56px; }
.ask .h-hand { text-align: center; }
.ask-panels { display: grid; gap: 16px; margin-top: 20px; }
.panel { border-radius: var(--r-md); padding: 20px 18px 20px; position: relative; min-height: 250px; overflow: hidden; }
.panel-mono { background: #eef1f5; }
.panel-pink { background: linear-gradient(160deg, #ffe7f0, #ffd2e2); }
.panel-tag { display: inline-block; font-size: .84rem; font-weight: 700; background: #dde3ec; padding: 4px 14px; border-radius: 999px; line-height: 1.5; }
.tag-pink { background: var(--pink); color: #fff; }
.bubbles { margin-top: 14px; display: grid; gap: 10px; justify-items: start; width: 62%; margin-left: auto; }
.bubbles li {
  background: #fff; border-radius: 16px; padding: 6px 14px; font-size: .86rem; line-height: 1.55;
  border: 1.5px solid #c3cad6; position: relative;
}
.panel-mono .bubbles li { color: #515a6b; }
.bubbles-pink li { border-color: #f2a7c2; font-weight: 700; }
.panel-aki { position: absolute; left: 4px; bottom: -8px; width: 34%; max-width: 130px; }
.panel-pink .panel-aki { max-width: 100px; }
.panel-mono .panel-aki { filter: grayscale(1) contrast(1.05); opacity: .85; }
.ask-foot { text-align: center; margin-top: 18px; font-family: var(--f-head); font-size: 1.2rem; }

.what { padding: 36px 22px 28px; text-align: center; rotate: .6deg; }
.what-title { font-family: var(--f-head); font-size: clamp(1.6rem, 5vw, 2.1rem); }
.what-lead { font-size: .9rem; margin-top: 6px; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.rules li { display: grid; justify-items: center; gap: 6px; font-size: .8rem; line-height: 1.55; padding: 10px 4px; border-radius: 12px; background: #f6f9fd; }
.rules li:last-child { grid-column: 1 / -1; }
.rules svg { width: 44px; height: 44px; }
.what-foot { margin-top: 24px; position: relative; padding-right: 90px; text-align: left; min-height: 150px; }
.what-key { font-family: var(--f-head); font-size: 1.12rem; line-height: 1.6; }
.what-key em { font-style: normal; background: linear-gradient(transparent 72%, rgba(255, 143, 181, .55) 72%); }
.what-oshi { color: var(--pink); font-size: 1.35rem; margin-top: 6px; rotate: -4deg; width: fit-content; }
.what-aki { position: absolute; right: -6px; bottom: -14px; width: 96px; }

@media (min-width: 700px) {
  .ask-panels { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: repeat(5, 1fr); }
  .rules li:last-child { grid-column: auto; }
}
@media (min-width: 1100px) {
  .concept-grid { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 40px; }
  .ask .h-hand { text-align: left; padding-left: 40px; }
  .what { margin-top: 10px; }
}

/* ---------- SHINDAN ---------- */
.shindan {
  position: relative; padding: 90px 0 80px;
  background:
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, #d3e6f8, #e6f1fb);
}
.shindan .sec-head { text-align: center; }
.sec-aside { font-size: .92rem; margin-top: 10px; }
.sec-aki { display: none; }
.quiz-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
.qcard {
  width: 100%; height: 100%; min-height: 220px; border: 0; cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 10px 18px; border-radius: 14px; box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
}
.qcard:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 18px 32px rgba(31, 50, 99, .18); }
.qcard-label { position: absolute; top: 8px; left: 10px; font-family: var(--f-hand); font-size: .72rem; letter-spacing: .08em; opacity: .75; rotate: -8deg; }
.qcard-title { font-family: var(--f-head); font-size: clamp(1.2rem, 4.4vw, 1.55rem); line-height: 1.25; }
.qcard-sub { font-size: .76rem; line-height: 1.6; margin-top: 8px; flex: 1; }
.qcard-go { margin-top: 12px; font-size: .8rem; font-weight: 700; color: #fff; border-radius: 999px; padding: 6px 16px; }
/* チケット（切り込み） */
.q-pink, .q-yellow, .q-lav {
  -webkit-mask: radial-gradient(circle 11px at 0 58%, #0000 98%, #000) , radial-gradient(circle 11px at 100% 58%, #0000 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.q-pink { background: linear-gradient(160deg, #ffe6ef, #ffcadd); }
.q-pink .qcard-go { background: var(--pink); }
.q-yellow { background: linear-gradient(160deg, #fff8d6, #ffe98f); }
.q-yellow .qcard-go { background: #8a5f00; }
.q-lav { background: linear-gradient(160deg, #f1ebff, #d9cbff); }
.q-lav .qcard-go { background: #6c4cc9; }
.q-mint { background: radial-gradient(circle at 50% 42%, #e9fbf5, #a9ead8); }
.q-mint .qcard-go { background: #1f7e68; }
.q-uchiwa { border-radius: 50% 50% 46% 46% / 52% 52% 44% 44%; padding-top: 34px; margin-bottom: 26px; overflow: visible; }
.uchiwa-handle { position: absolute; bottom: -30px; left: 50%; translate: -50% 0; width: 14px; height: 40px; border-radius: 6px; background: linear-gradient(90deg, #f0d49a, #e2bb70); z-index: -1; }
.side-note { display: none; }
@media (min-width: 900px) {
  .quiz-cards { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .qcard { min-height: 236px; }
  .quiz-cards li:nth-child(1) .qcard { rotate: -3deg; }
  .quiz-cards li:nth-child(2) .qcard { rotate: 2deg; }
  .quiz-cards li:nth-child(4) .qcard { rotate: 3deg; }
  .sec-aki { display: block; position: absolute; right: 4%; top: -30px; width: 88px; }
  .side-note { display: block; position: absolute; left: -110px; top: 40%; font-size: .95rem; rotate: -8deg; }
}
@media (max-width: 1399px) { .side-note { display: none; } }

/* ---------- CARD MAKER ---------- */
.cardmaker {
  padding: 70px 0 80px; position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px) 0 0 / 28px 28px,
    #eef5fc;
}
.cardmaker .sec-head { text-align: center; }
.cm-grid { display: grid; gap: 28px; }
.cm-preview { position: relative; }
.cm-preview canvas {
  width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 18px 40px rgba(31, 50, 99, .2); rotate: -1.5deg; background: #fff;
  transition: rotate .4s ease;
}
.cm-preview:hover canvas { rotate: 0deg; }
.cm-caption { text-align: right; margin-top: 10px; font-size: .95rem; }
.cm-form { display: grid; gap: 10px; }
.cm-lead { font-weight: 700; line-height: 1.8; margin-bottom: 6px; }
.cm-label { font-weight: 700; font-size: .9rem; }
.cm-label small { font-weight: 500; color: var(--ink-2); }
.cm-input {
  width: 100%; min-height: 52px; padding: 10px 16px; font: inherit; font-size: 1rem; color: var(--ink);
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
.cm-input:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 4px rgba(220, 63, 118, .15); }
.swatches { border: 0; margin: 6px 0 8px; padding: 0; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
@media (min-width: 420px) { .swatch-row { gap: 10px; } }
.swatch {
  width: 37px; height: 37px; border-radius: 50%; border: 3px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1.5px var(--line), var(--shadow-sm); transition: transform .2s;
  appearance: none; -webkit-appearance: none; margin: 0;
}
.swatch:hover { transform: scale(1.1); }
@media (min-width: 420px) { .swatch { width: 44px; height: 44px; } }
.swatch:checked { box-shadow: 0 0 0 3px var(--ink), var(--shadow-sm); transform: scale(1.12); }
.swatch:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.swatch-name { font-size: .88rem; margin-top: 8px; min-height: 1.6em; }

.cm-done {
  position: relative; background: #fff; border-radius: var(--r-lg); padding: 24px 20px; box-shadow: var(--shadow);
  overflow: hidden;
}
.done-title { font-family: var(--f-head); font-size: 1.7rem; }
.done-list { margin-top: 8px; display: grid; gap: 4px; font-size: .92rem; }
.done-list li::before { content: "✓"; color: #2d9f84; font-weight: 900; margin-right: .5em; }
.done-free { color: var(--pink-dark); font-size: 1.1rem; margin-top: 8px; }
.done-actions { display: grid; gap: 10px; margin-top: 16px; position: relative; z-index: 2; }
.save-hint { font-size: .8rem; color: var(--ink-2); margin-top: 8px; min-height: 1.4em; position: relative; z-index: 2; }
.done-aki { display: none; }
.done-oshi { display: none; }
@media (min-width: 900px) {
  .cm-grid { grid-template-columns: 1.15fr .9fr; align-items: center; column-gap: 48px; }
  .cm-done { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 150px; gap: 4px 36px; align-items: center; padding: 26px 32px 22px; }
  .cm-done[hidden] { display: none; }
  .done-title { grid-column: 1; grid-row: 1; }
  .done-list { grid-column: 1; grid-row: 2; }
  .done-free { grid-column: 1; grid-row: 3; }
  .done-actions { grid-column: 2; grid-row: 1 / 3; align-self: end; grid-template-columns: 1fr 1fr; margin-top: 0; }
  .save-hint { grid-column: 2; grid-row: 3; align-self: start; }
  .done-aki { display: block; grid-column: 3; grid-row: 1 / 4; width: 140px; margin-bottom: -40px; }
  .done-oshi { display: block; position: absolute; right: 170px; top: 18px; rotate: 6deg; }
}

/* ---------- MEMBERS ---------- */
.members { padding: 70px 0 70px; background: var(--paper); }
.members-grid { display: grid; gap: 48px; }
.members-lead { font-size: .9rem; margin-top: 4px; }
.member-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }
.member { position: relative; text-align: center; }
.member-photo {
  aspect-ratio: 4 / 5; background: #fff; padding: 6px 6px 0; box-shadow: var(--shadow-sm);
  border-radius: 3px; overflow: hidden; display: grid; place-items: end center;
}
.is-aki .member-photo { background: linear-gradient(180deg, #ffd6e5, #fff4f8); }
.is-aki .member-photo img { width: 72%; }
.is-empty .member-photo {
  background: repeating-linear-gradient(-45deg, #f3f7fb 0 8px, #eaf1f8 8px 16px);
  border: 2px dashed #b6c7db; box-shadow: none; place-items: center;
  font-family: var(--f-hand); font-size: .85rem; color: var(--ink-2); line-height: 1.4;
}
.kanji {
  position: absolute; right: -4px; top: 46%; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-family: var(--f-head); font-size: 1.35rem;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.is-empty .kanji { opacity: .55; }
.k-pink { background: #e64a82; } .k-rose { background: #f07aa2; } .k-mint { background: #2aa98b; }
.k-lav { background: #8a6de0; } .k-blue { background: #4a78c8; } .k-teal { background: #2e9bb0; }
.member-name { font-weight: 900; margin-top: 8px; font-size: .95rem; }
.is-empty .member-name { color: var(--ink-2); font-weight: 700; }
.member-word { font-family: var(--f-hand); font-size: .78rem; line-height: 1.4; }
.member-sns { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 700; color: var(--blue-btn); }

.join { padding: 30px 22px 26px; }
.join-title { font-family: var(--f-head); font-size: 1.5rem; margin-bottom: 12px; }
.join p:not(.join-note) { font-size: .92rem; margin-bottom: 10px; }
.join .btn { margin-top: 10px; font-size: .92rem; }
.join-note { font-size: .78rem; color: var(--ink-2); text-align: center; margin-top: 10px; }
.join-mokeru { position: absolute; right: 12px; top: 18px; width: 70px; animation: bob 3.6s ease-in-out infinite; }
@media (min-width: 700px) { .member-list { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
@media (min-width: 1100px) {
  .members-grid { grid-template-columns: 1fr 340px; align-items: center; gap: 40px; }
  .sec-head-row { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
}

/* ---------- FAQ ---------- */
.faq { padding: 60px 0 80px; background: var(--paper); }
.faq .h-hand { text-align: center; margin-bottom: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); border: 1.5px solid #e3ebf4; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 52px; font-weight: 700; position: relative; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 18px; top: 14px; font-family: var(--f-head); color: var(--pink); font-size: 1.2rem; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--ink-2); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 20px 18px 52px; font-size: .92rem; }

/* ---------- FINALE ---------- */
.finale { position: relative; overflow: hidden; min-height: 660px; color: #fff; isolation: isolate; padding: 70px 0 0; }
.finale-sky {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 190, 220, .6), transparent 70%),
    linear-gradient(180deg, #9ec7ee 0%, #b6b4ec 38%, #d7a9d9 62%, #5c4a93 100%);
}
.finale-sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .9) 0 1.2px, transparent 1.8px);
  background-size: 80px 60px; opacity: .5;
  -webkit-mask: linear-gradient(#000, transparent 60%); mask: linear-gradient(#000, transparent 60%);
}
.finale-inner {
  position: relative; z-index: 3; width: min(1180px, 100% - 32px); margin-inline: auto;
  display: grid; gap: 14px; color: var(--ink); text-shadow: 0 0 14px rgba(255, 255, 255, .85), 0 0 3px rgba(255, 255, 255, .9);
}
.finale-big { font-family: var(--f-head); font-size: clamp(2rem, 8vw, 3.4rem); rotate: -4deg; width: fit-content; }
.finale-big em { font-style: normal; font-size: 1.15em; }
.finale-mid { font-family: var(--f-head); font-size: clamp(1.15rem, 4.2vw, 1.6rem); line-height: 1.6; }
.finale-mid em { font-style: normal; font-size: 1.2em; background: linear-gradient(transparent 72%, rgba(255, 143, 181, .6) 72%); }
.finale-small { font-family: var(--f-hand); font-size: 1.1rem; }
.finale-yours { font-family: var(--f-hand); font-size: 1rem; background: rgba(255, 255, 255, .7); padding: 4px 14px; border-radius: 999px; width: fit-content; }
.finale-aki { position: absolute; z-index: 2; left: 50%; bottom: -60px; translate: -50% 0; width: 150px; filter: drop-shadow(0 0 30px rgba(255, 220, 240, .6)); }
.finale-mokeru { position: absolute; z-index: 2; left: calc(50% + 50px); bottom: 10px; width: 80px; animation: bob 3.2s ease-in-out infinite; }
.finale-sign {
  position: absolute; z-index: 4; left: 16px; bottom: 18px; font-family: var(--f-head); font-size: 1rem; text-align: left; line-height: 1.3;
  text-shadow: 0 2px 8px rgba(40, 20, 90, .6);
}
.finale-sign span { display: block; font-family: var(--f-hand); font-size: .8rem; rotate: -6deg; }

.penlights { position: absolute; inset: auto 0 0 0; height: 62%; z-index: 1; pointer-events: none; }
.penlights::after { /* 客席 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background:
    radial-gradient(ellipse 5% 40% at 5% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 46% at 14% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 38% at 23% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 44% at 32% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 40% at 41% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 42% at 59% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 38% at 68% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 46% at 77% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 40% at 86% 100%, #2a1f55 70%, transparent 72%),
    radial-gradient(ellipse 5% 44% at 95% 100%, #2a1f55 70%, transparent 72%),
    linear-gradient(transparent 40%, #2a1f55 100%);
}
.pl {
  position: absolute; bottom: 0; width: 12px; height: var(--h, 110px); border-radius: 7px;
  background: linear-gradient(180deg, #fff 0%, var(--c) 18%, var(--c) 72%, #2d2b40 72%, #1a1930 100%);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--c) 70%, transparent), 0 0 44px 10px color-mix(in srgb, var(--c) 35%, transparent);
  transform-origin: 50% 100%; rotate: var(--r, 0deg);
  animation: sway var(--d, 2.4s) ease-in-out var(--delay, 0s) infinite alternate;
}
@media (min-width: 900px) {
  .finale { min-height: 600px; padding-top: 90px; }
  .finale-inner { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .finale-big { grid-column: 1; }
  .finale-mid { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .finale-small { grid-column: 2; justify-self: end; margin-right: 6%; }
  .finale-yours { grid-column: 1; }
  .finale-aki { width: 190px; }
  .finale-mokeru { left: calc(50% + 70px); width: 96px; }
  .finale-sign { left: auto; right: 5%; bottom: 40px; font-size: 1.35rem; text-align: right; }
}

/* ---------- FOOTER ---------- */
.site-footer { background: #fff; padding: 24px 0 28px; font-size: .78rem; }
.footer-inner { width: min(1320px, 100% - 32px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.f-logo { font-family: var(--f-head); font-size: 1rem; }
.f-tag { color: var(--ink-2); }
.f-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.f-nav a { text-decoration: none; padding: 4px 0; }
.f-nav a:hover { text-decoration: underline; }
.f-sns { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.f-sns svg { width: 20px; height: 20px; }
.f-copy { color: var(--ink-2); margin-left: auto; }
@media (max-width: 899px) { .footer-inner { flex-direction: column; align-items: flex-start; } .f-copy { margin-left: 0; } }

/* ---------- QUIZ DIALOG ---------- */
.quiz {
  border: 0; padding: 0; background: transparent; width: min(560px, 100% - 24px); max-height: calc(100dvh - 24px);
  color: var(--ink); overflow: visible;
}
.quiz::backdrop { background: rgba(31, 50, 99, .45); backdrop-filter: blur(3px); }
.quiz-box {
  position: relative; background: #fff; border-radius: 24px; padding: 30px 22px 24px;
  box-shadow: 0 30px 60px rgba(20, 30, 70, .3); max-height: calc(100dvh - 24px); overflow-y: auto;
  border-top: 10px solid var(--qc, var(--pink));
}
.quiz[open] .quiz-box { animation: popIn .35s cubic-bezier(.3, 1.5, .5, 1); }
.quiz-close {
  position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 1.6rem; cursor: pointer; color: var(--ink-2); border-radius: 50%;
}
.quiz-close:hover { background: #f1f4f8; }
.quiz-kicker { font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.quiz-title { font-family: var(--f-head); font-size: 1.6rem; margin-top: 2px; }
.quiz-progress { display: flex; gap: 6px; margin: 14px 0 18px; }
.quiz-progress span { flex: 1; height: 6px; border-radius: 3px; background: #e7edf4; }
.quiz-progress span.on { background: var(--qc, var(--pink)); }
.quiz-q { font-weight: 900; font-size: 1.12rem; line-height: 1.6; margin-bottom: 14px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt {
  width: 100%; text-align: left; min-height: 52px; padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: .95rem; line-height: 1.5;
  background: #f6f9fc; border: 2px solid #e1e9f2; border-radius: 14px; transition: background .15s, border-color .15s, transform .15s;
}
.quiz-opt:hover { background: var(--qs, var(--pink-soft)); border-color: var(--qc, var(--pink)); transform: translateX(3px); }
.quiz-intro-aki { width: 110px; margin: 10px auto 0; }
.quiz-start { margin-top: 18px; }
.quiz-desc { font-size: .92rem; margin-top: 10px; }
.quiz-result { text-align: center; }
.result-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.result-name { font-family: var(--f-head); font-size: clamp(1.6rem, 6vw, 2rem); line-height: 1.35; margin-top: 4px; }
.result-sub { font-weight: 700; margin-top: 4px; }
.result-text { font-size: .95rem; margin-top: 12px; text-align: left; background: #f7fafd; border-radius: 14px; padding: 14px 16px; }
.result-tip { font-size: .9rem; margin-top: 10px; text-align: left; }
.result-tip b { color: var(--pink-dark); }
.result-art { margin: 14px auto 0; width: 180px; }
.result-mokeru { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 14px; font-family: var(--f-hand); }
.result-mokeru img { width: 56px; }
.result-actions { display: grid; gap: 10px; margin-top: 18px; }
.result-swatch { width: 120px; height: 120px; border-radius: 50%; margin: 14px auto 0; border: 6px solid #fff; box-shadow: 0 0 0 2px #e1e9f2, var(--shadow); }

/* ---------- motion ---------- */
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bob { 0%, 100% { translate: 0 0; scale: 1 1; } 45% { translate: 0 -6px; scale: .98 1.03; } 55% { translate: 0 -6px; } }
@keyframes sway { from { rotate: calc(var(--r, 0deg) - 12deg); } to { rotate: calc(var(--r, 0deg) + 12deg); } }
@keyframes ticker { to { translate: -100% 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
