/* ===================================================================
   Grouping × AI — Stylesheet
   既存サイトのカラー（桜ピンク #fa4f7d / ネイビー #1a2a6d / #fadcf4）を継承
   =================================================================== */

:root {
  --sakura: #fa4f7d;
  --sakura-soft: #f8d0d7;
  --sakura-pale: #fadcf4;
  --navy: #1a2a6d;
  --navy-deep: #0f1a45;
  --blue: #6464ff;
  --ink: #26263a;
  --muted: #6b6b80;
  --line: #e7e7ef;
  --bg: #ffffff;
  --bg-tint: #fbf7fb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(26, 42, 109, 0.06);
  --shadow: 0 10px 34px rgba(26, 42, 109, 0.1);
  --shadow-lg: 0 24px 60px rgba(26, 42, 109, 0.16);
  --font-jp: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', var(--font-jp);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
.accent { color: var(--sakura); }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sp-only { display: none; }

/* ============ カスタムカーソル ============ */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; user-select: none; z-index: 9999;
  opacity: 0; transition: opacity .3s;
}
.cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--sakura); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(250, 79, 125, .5);
  transition: opacity .3s, width .25s, height .25s, margin .25s, background-color .25s;
}
body.cursor-ready .cursor, body.cursor-ready .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  background: rgba(250, 79, 125, .1);
}
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ============ ヘッダー ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  z-index: 200; transition: box-shadow .3s, background .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .94); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 38px; height: 38px; object-fit: contain; }
.brand__name {
  font-family: var(--font-en); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -.02em; color: var(--navy);
}

.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--navy);
  transition: background .25s, color .25s;
}
.site-nav a:hover { background: var(--sakura-pale); color: var(--sakura); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ============ ヒーロー ============ */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }

.circles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: var(--sakura-pale); overflow: hidden;
}
.circle { position: absolute; border-radius: 50%; will-change: transform; }
.circle1 { background: var(--blue); width: 630px; height: 630px; margin: -315px 0 0 -315px; }
.circle2 { background: rgb(255, 158, 227); width: 420px; height: 420px; margin: -210px 0 0 -210px; z-index: 1; }
.circle3 { background: #0000ff; width: 200px; height: 200px; margin: -100px 0 0 -100px; z-index: 2; }

.hero__content {
  position: absolute; inset: 0; z-index: 15;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--header-h) 24px 0;
  background: #fff; mix-blend-mode: screen;
}
.hero__eyebrow {
  font-family: var(--font-en); font-weight: 600; font-size: .85rem;
  letter-spacing: .3em; text-transform: uppercase; color: #333;
  margin-bottom: 8px;
}
.hero__title {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(3.6rem, 13vw, 11rem); line-height: 1;
  letter-spacing: -.04em; color: #000;
}
.hero__lead {
  margin-top: 18px; font-size: clamp(1rem, 2.6vw, 1.6rem);
  font-weight: 700; line-height: 1.6; color: #111;
}
.hero__sub {
  margin-top: 14px; max-width: 620px;
  font-size: clamp(.84rem, 1.8vw, 1rem); line-height: 1.9; color: #333;
}
.hero__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 16; width: 26px; height: 42px; border: 2px solid rgba(26, 42, 109, .35);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 2px; background: var(--navy);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ============ ボタン ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  transition: transform .2s, box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--sakura), #ff7aa2);
  color: #fff; box-shadow: 0 8px 24px rgba(250, 79, 125, .32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(250, 79, 125, .42); }
.btn--primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--ghost { background: rgba(255, 255, 255, .9); color: var(--navy); border: 1.5px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--full { width: 100%; }
.btn--add {
  width: 100%; margin-top: 10px; padding: 11px;
  border: 1.5px dashed var(--sakura-soft); border-radius: var(--radius-sm);
  color: var(--sakura); font-weight: 700; font-size: .88rem;
  transition: background .2s, border-color .2s;
}
.btn--add:hover { background: #fff5f8; border-color: var(--sakura); }

/* ============ セクション共通 ============ */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--tint { background: var(--bg-tint); }
.section--ai {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(250, 220, 244, .7), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(100, 100, 255, .09), transparent 60%),
    #fdfcff;
}
.section__eyebrow {
  font-family: var(--font-en); font-size: .76rem; font-weight: 600;
  letter-spacing: .28em; color: var(--sakura); text-align: center;
  text-transform: uppercase; margin-bottom: 10px;
}
.section__title {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem); font-weight: 900;
  color: var(--navy); text-align: center; line-height: 1.35;
  letter-spacing: -.01em;
}
.section__desc {
  margin: 18px auto 0; max-width: 680px; text-align: center;
  color: var(--muted); font-size: clamp(.9rem, 1.9vw, 1.02rem);
}

/* ============ イントロ ============ */
.intro-grid {
  margin-top: 54px; display: grid; gap: clamp(28px, 5vw, 60px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.intro-grid__text p { margin-bottom: 14px; font-size: 1.02rem; }
.intro-grid__text strong { color: var(--sakura); font-weight: 700; }
.intro-points { margin-top: 28px; display: grid; gap: 12px; }
.intro-points li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  font-size: .95rem; font-weight: 500;
}
.intro-points span {
  flex-shrink: 0; font-family: var(--font-en); font-weight: 800;
  font-size: 1.05rem; color: var(--sakura);
}
.intro-grid__image button { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.intro-grid__image img { width: 100%; transition: transform .5s; }
.intro-grid__image button:hover img { transform: scale(1.04); }

/* ============ AIラボ タブ ============ */
.tabs {
  margin: 44px auto 0; display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center; padding: 7px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  border-radius: 999px; width: fit-content; max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 700; color: var(--muted);
  transition: background .25s, color .25s, box-shadow .25s;
}
.tab:hover { color: var(--navy); }
.tab.is-active {
  background: linear-gradient(135deg, var(--sakura), #ff85a8);
  color: #fff; box-shadow: 0 6px 18px rgba(250, 79, 125, .3);
}
.tab__icon { font-size: 1.05rem; }

.panel { display: none; margin-top: 40px; }
.panel.is-active { display: block; animation: panelIn .45s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.panel__intro { text-align: center; margin-bottom: 30px; }
.panel__intro h3 { font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: var(--navy); font-weight: 800; }
.panel__intro p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

.panel__grid {
  display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 28px; align-items: start;
}

/* ============ フォームカード ============ */
.form-card {
  min-width: 0; width: 100%; grid-template-columns: minmax(0, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow);
  display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 20px);
}
.form-card label {
  display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0;
  gap: 6px; font-size: .82rem; font-weight: 700; color: var(--navy);
}
.form-card > *, .form-row > *, .member-row > * { min-width: 0; }
.form-full { width: 100%; }
.form-card label em {
  font-style: normal; font-size: .68rem; color: var(--sakura);
  background: #fff0f4; padding: 1px 7px; border-radius: 4px; margin-left: 6px;
}
.form-card input[type='text'],
.form-card input[type='number'],
.form-card select,
.form-card textarea {
  width: 100%; min-width: 0; max-width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fcfcfe; font-size: .92rem;
  font-weight: 400; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--sakura); background: #fff;
  box-shadow: 0 0 0 3px rgba(250, 79, 125, .12);
}
.form-card textarea { resize: vertical; line-height: 1.7; }
.form-row { display: grid; gap: 12px; }
.form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-note { font-size: .74rem; color: var(--muted); line-height: 1.7; }

/* ============ メンバー入力 ============ */
.members {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.members__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.members__head h4 { font-size: .9rem; color: var(--navy); font-weight: 800; }
.members__count {
  display: inline-block; min-width: 22px; padding: 0 6px; margin: 0 2px;
  background: var(--sakura); color: #fff; border-radius: 999px;
  font-family: var(--font-en); font-size: .78rem; text-align: center;
}
.members__tools { display: flex; gap: 6px; }
.chip {
  padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  background: var(--navy); color: #fff; transition: opacity .2s, transform .2s;
}
.chip:hover { opacity: .85; transform: translateY(-1px); }
.chip--ghost { background: #f0f0f6; color: var(--muted); }

.members__legend {
  display: grid; grid-template-columns: 1.3fr 1.1fr 1.3fr 28px;
  gap: 8px; margin: 14px 0 6px; padding-inline: 2px;
}
.members__legend span { font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

.members__list { display: grid; gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 2px; }
.member-row {
  display: grid; grid-template-columns: 1.3fr 1.1fr 1.3fr 28px;
  gap: 8px; align-items: center;
  animation: rowIn .3s ease both;
}
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.member-row input, .member-row select { padding: 8px 10px !important; font-size: .85rem !important; }
.member-row__del {
  width: 28px; height: 28px; border-radius: 8px; color: #c9c9d4;
  font-size: 1.1rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.member-row__del:hover { background: #ffecf1; color: var(--sakura); }
.members__list::-webkit-scrollbar { width: 6px; }
.members__list::-webkit-scrollbar-thumb { background: #e0e0ea; border-radius: 3px; }

/* ============ 結果カード ============ */
.result-card {
  min-height: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}
.result-card__empty {
  min-height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: #b4b4c4; text-align: center; font-size: .9rem; line-height: 1.9;
}
.result-card__empty-icon { font-size: 2.6rem; opacity: .5; }

.result-loading {
  min-height: 380px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
}
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--sakura-soft); border-top-color: var(--sakura);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-loading p { color: var(--muted); font-size: .9rem; }
.result-loading .dots::after {
  content: ''; animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

.result-error {
  padding: 22px; background: #fff5f7; border: 1px solid #ffd4de;
  border-radius: var(--radius-sm); color: #c2325a; font-size: .9rem; line-height: 1.9;
}
.result-error strong { display: block; margin-bottom: 6px; font-size: .95rem; }

/* --- 結果の中身 --- */
.res-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 2px solid var(--sakura-pale); }
.res-head h3 { font-size: 1.2rem; color: var(--navy); font-weight: 900; line-height: 1.5; }
.res-head p { margin-top: 8px; font-size: .9rem; color: var(--muted); line-height: 1.9; }

.res-block { margin-top: 24px; }
.res-block__title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em;
  color: var(--sakura); text-transform: uppercase;
}
.res-block__title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.group-card {
  margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
  animation: cardIn .4s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.group-card__head {
  padding: 13px 18px; background: linear-gradient(135deg, rgba(250, 220, 244, .55), rgba(100, 100, 255, .07));
  border-bottom: 1px solid var(--line);
}
.group-card__head h4 { font-size: 1rem; font-weight: 900; color: var(--navy); }
.group-card__head p { margin-top: 3px; font-size: .8rem; color: var(--muted); line-height: 1.7; }
.group-card__members { padding: 6px 18px; }
.group-member {
  display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.group-member:last-child { border-bottom: none; }
.group-member__avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  color: #fff; background: linear-gradient(135deg, var(--sakura), #ff9ab5);
}
.group-member__name { font-weight: 700; font-size: .93rem; color: var(--ink); }
.group-member__role {
  display: inline-block; margin-left: 8px; padding: 1px 9px;
  background: var(--navy); color: #fff; border-radius: 999px;
  font-size: .68rem; font-weight: 700; vertical-align: middle;
}
.group-member__reason { font-size: .8rem; color: var(--muted); line-height: 1.75; margin-top: 2px; }
.group-card__boost {
  padding: 11px 18px; background: #fcfbff; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--navy); line-height: 1.75;
}
.group-card__boost::before { content: '💡 '; }

.tip-list { display: grid; gap: 9px; }
.tip-list li {
  display: flex; gap: 10px; padding: 11px 15px; background: var(--bg-tint);
  border-left: 3px solid var(--sakura); border-radius: 0 10px 10px 0;
  font-size: .87rem; line-height: 1.8;
}
.tip-list li::before { content: '✓'; color: var(--sakura); font-weight: 800; flex-shrink: 0; }

.callout {
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(250, 220, 244, .5), rgba(100, 100, 255, .06));
  font-size: .9rem; line-height: 1.9; color: var(--navy);
}
.callout strong { display: block; font-size: .78rem; letter-spacing: .08em; color: var(--sakura); margin-bottom: 5px; }

.res-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.res-table th, .res-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.res-table th { background: var(--bg-tint); font-weight: 800; color: var(--navy); font-size: .78rem; white-space: nowrap; }
.res-table td { line-height: 1.75; }
.res-table .mins { font-family: var(--font-en); font-weight: 700; color: var(--sakura); white-space: nowrap; }

.pair-list { display: grid; gap: 12px; }
.pair-list li { padding: 13px 16px; background: var(--bg-tint); border-radius: var(--radius-sm); }
.pair-list b { display: block; font-size: .87rem; color: var(--navy); margin-bottom: 4px; }
.pair-list span { font-size: .83rem; color: var(--muted); line-height: 1.8; }

.quote-list { display: grid; gap: 10px; }
.quote-list li {
  padding: 12px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: .87rem; line-height: 1.8;
  color: var(--ink); position: relative; padding-left: 38px;
}
.quote-list li::before {
  content: '"'; position: absolute; left: 14px; top: 6px;
  font-family: var(--font-en); font-size: 1.7rem; font-weight: 800;
  color: var(--sakura-soft); line-height: 1;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 5px 13px; background: #fff; border: 1px solid var(--sakura-soft);
  border-radius: 999px; font-size: .79rem; color: var(--sakura); font-weight: 600;
}

.res-actions { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.res-actions button {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .8rem; font-weight: 700; color: var(--navy);
  transition: border-color .2s, background .2s;
}
.res-actions button:hover { border-color: var(--sakura); background: #fff5f8; color: var(--sakura); }

/* ============ 特徴ギャラリー ============ */
.feature-gallery {
  margin-top: 50px; display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.feature-gallery__item button {
  display: block; width: 100%; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.feature-gallery__item img { width: 100%; transition: transform .5s; }
.feature-gallery__item button:hover img { transform: scale(1.05); }

/* ============ ステップカード ============ */
.step-heading {
  display: flex; align-items: center; gap: 14px;
  margin: 56px 0 6px; font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 900; color: var(--navy);
}
.step-heading__num {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sakura), #ff8fae);
  color: #fff; font-family: var(--font-en); font-weight: 800; font-size: 1.05rem;
}

.step-scroller {
  display: flex; gap: 18px; overflow-x: auto; padding: 22px 4px 26px;
  scroll-snap-type: x mandatory;
}
.step-scroller::-webkit-scrollbar { height: 7px; }
.step-scroller::-webkit-scrollbar-track { background: #f1f1f6; border-radius: 4px; }
.step-scroller::-webkit-scrollbar-thumb { background: var(--sakura-soft); border-radius: 4px; }
.step-scroller::-webkit-scrollbar-thumb:hover { background: var(--sakura); }

.step-card {
  flex: 0 0 min(360px, 82vw); scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-card__thumb { position: relative; display: block; width: 100%; overflow: hidden; background: #f6f6fa; }
.step-card__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.step-card__thumb:hover img { transform: scale(1.06); }
.step-card__zoom {
  position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(26, 42, 109, .72); color: #fff;
  display: grid; place-items: center; font-size: .85rem;
  opacity: 0; transition: opacity .25s;
}
.step-card__thumb:hover .step-card__zoom { opacity: 1; }
.step-card__body { padding: 16px 18px 20px; flex: 1; }
.step-card__title { font-size: .97rem; font-weight: 800; color: var(--navy); line-height: 1.6; }
.step-card__title small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.step-card__body ul { margin-top: 10px; display: grid; gap: 6px; }
.step-card__body li {
  display: flex; gap: 7px; font-size: .81rem; color: var(--muted); line-height: 1.75;
}
.step-card__body li::before { content: '•'; color: var(--sakura); font-weight: 800; flex-shrink: 0; }
.step-card__link {
  display: inline-block; margin-top: 12px; font-size: .79rem;
  font-weight: 700; color: var(--sakura); border-bottom: 1px solid currentColor;
}

/* ============ 料金 ============ */
.pricing-banner {
  margin-top: 20px; text-align: center;
  font-size: clamp(1.1rem, 3vw, 1.7rem); font-weight: 900; color: var(--sakura);
}
.plan-grid {
  margin-top: 44px; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.plan-card {
  position: relative; padding: 32px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card--featured { border-color: var(--sakura); box-shadow: 0 12px 36px rgba(250, 79, 125, .16); }
.plan-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(135deg, var(--sakura), #ff85a8);
  color: #fff; font-size: .72rem; font-weight: 800;
}
.plan-card__name { font-size: 1.02rem; font-weight: 800; color: var(--navy); text-align: center; }
.plan-card__price {
  margin: 12px 0 20px; text-align: center;
  font-family: var(--font-en); font-size: 2.3rem; font-weight: 800; color: var(--sakura);
  line-height: 1;
}
.plan-card__price span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.plan-card ul { display: grid; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan-card li { display: flex; gap: 8px; font-size: .86rem; color: var(--muted); line-height: 1.7; }
.plan-card li::before { content: '✓'; color: var(--sakura); font-weight: 800; flex-shrink: 0; }
.plan-card li strong { color: var(--ink); }

/* ============ フォーム埋め込み ============ */
.form-embed {
  margin-top: 36px; display: flex; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.form-embed iframe { width: 100%; max-width: 760px; height: 820px; border: none; }

/* ============ フッター ============ */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .8); padding: 56px 0 24px; }
.site-footer__inner {
  display: grid; gap: 34px;
  grid-template-columns: 1.6fr 1fr 1fr;
}
.site-footer__brand img { width: 42px; margin-bottom: 10px; }
.site-footer__brand p {
  font-family: var(--font-en); font-size: 1.5rem; font-weight: 800; color: #fff;
}
.site-footer__brand small { display: block; margin-top: 8px; font-size: .8rem; line-height: 1.8; }
.site-footer__col h3 { font-size: .82rem; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: .06em; }
.site-footer__col ul { display: grid; gap: 9px; }
.site-footer__col a { font-size: .85rem; transition: color .2s; }
.site-footer__col a:hover { color: var(--sakura); }
.site-footer__copy {
  margin-top: 40px; padding-top: 20px; text-align: center;
  font-size: .78rem; color: rgba(255, 255, 255, .5);
  border-top: 1px solid rgba(255, 255, 255, .1);
}

/* ============ チャットウィジェット ============ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--sakura), #ff7aa2);
  color: #fff; font-weight: 800; font-size: .9rem;
  box-shadow: 0 10px 30px rgba(250, 79, 125, .4);
  transition: transform .25s, box-shadow .25s, opacity .25s;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px rgba(250, 79, 125, .5); }
.chat-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.85); }
.chat-fab__icon { font-size: 1.15rem; }

.chat-window {
  position: fixed; right: 22px; bottom: 22px; z-index: 301;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 44px));
  display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(26, 42, 109, .3);
  opacity: 0; pointer-events: none; transform: translateY(20px) scale(.96);
  transition: opacity .3s, transform .3s;
}
.chat-window.is-open { opacity: 1; pointer-events: auto; transform: none; }
.chat-window__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: linear-gradient(135deg, var(--navy), #2d3f8f); color: #fff;
}
.chat-window__title { display: flex; align-items: center; gap: 11px; }
.chat-window__title img { width: 34px; height: 34px; background: #fff; border-radius: 50%; padding: 3px; }
.chat-window__title strong { display: block; font-size: .92rem; line-height: 1.4; }
.chat-window__title small { font-size: .72rem; opacity: .75; }
.chat-window__close { font-size: 1.5rem; line-height: 1; width: 32px; height: 32px; border-radius: 50%; transition: background .2s; }
.chat-window__close:hover { background: rgba(255, 255, 255, .15); }

.chat-window__body {
  flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-tint);
}
.chat-window__body::-webkit-scrollbar { width: 6px; }
.chat-window__body::-webkit-scrollbar-thumb { background: #dcdce6; border-radius: 3px; }

.msg { max-width: 86%; padding: 11px 15px; font-size: .87rem; line-height: 1.8; animation: msgIn .3s ease both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg--bot {
  align-self: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px; color: var(--ink);
}
.msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--sakura), #ff85a8);
  color: #fff; border-radius: 16px 4px 16px 16px;
}
.msg--err { align-self: center; background: #fff5f7; color: #c2325a; border-radius: 12px; font-size: .82rem; }
.msg strong { font-weight: 800; }
.msg ul { margin: 6px 0 0 2px; display: grid; gap: 4px; }
.msg li { display: flex; gap: 7px; }
.msg li::before { content: '•'; color: var(--sakura); flex-shrink: 0; }
.msg--user li::before { color: rgba(255, 255, 255, .8); }
.msg a { text-decoration: underline; color: var(--sakura); }
.msg--user a { color: #fff; }

.typing { display: inline-flex; gap: 4px; align-items: center; height: 18px; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--sakura-soft);
  animation: typing 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-suggest {
  display: flex; gap: 6px; padding: 10px 14px; overflow-x: auto;
  background: #fff; border-top: 1px solid var(--line);
}
.chat-suggest::-webkit-scrollbar { height: 0; }
.chat-suggest button {
  flex-shrink: 0; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--sakura-soft); background: #fff;
  font-size: .76rem; color: var(--sakura); font-weight: 600;
  transition: background .2s;
}
.chat-suggest button:hover { background: #fff5f8; }
.chat-suggest.is-hidden { display: none; }

.chat-window__form {
  display: flex; gap: 9px; padding: 12px 14px;
  background: #fff; border-top: 1px solid var(--line);
}
.chat-window__form input {
  flex: 1; padding: 11px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; background: var(--bg-tint); font-size: .88rem;
  transition: border-color .2s, background .2s;
}
.chat-window__form input:focus { outline: none; border-color: var(--sakura); background: #fff; }
.chat-window__form button {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--sakura), #ff85a8);
  color: #fff; font-size: .95rem; transition: transform .2s, opacity .2s;
}
.chat-window__form button:hover { transform: scale(1.07); }
.chat-window__form button:disabled { opacity: .5; transform: none; cursor: not-allowed; }

/* ============ ライトボックス ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; padding: 5vh 5vw;
  background: rgba(10, 14, 40, .88); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%; max-height: 90vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.7rem; line-height: 1;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .28); }

/* ============ しくみセクション（本体アプリの実仕様） ============ */
.sub-heading {
  margin: 56px 0 6px; text-align: center;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 900; color: var(--navy);
}
.sub-desc { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }

.axis-grid {
  margin-top: 46px; display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.axis-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.axis-card__head { padding-bottom: 14px; border-bottom: 2px solid var(--sakura-pale); }
.axis-card__badge {
  display: inline-block; padding: 2px 11px; border-radius: 999px;
  font-family: var(--font-en); font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; color: #fff;
}
.axis-card__badge--curiocity { background: var(--sakura); }
.axis-card__badge--efficacy { background: var(--blue); }
.axis-card__head h3 { margin-top: 8px; font-size: 1.22rem; font-weight: 900; color: var(--navy); }
.axis-card__meta { margin-top: 4px; font-size: .78rem; color: var(--muted); }
.axis-card__meta code {
  background: var(--bg-tint); padding: 1px 6px; border-radius: 4px;
  font-size: .72rem; color: var(--muted);
}
.axis-card__private { margin-top: 14px; font-size: .86rem; line-height: 1.9; color: var(--muted); }

.criteria-grid {
  margin-top: 22px; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.criteria-card {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sakura);
  border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.criteria-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.criteria-card--curiocity { border-top-color: var(--blue); }
.criteria-card--random { border-top-color: #9aa0b5; }
.criteria-card__name { font-size: 1.1rem; font-weight: 900; color: var(--navy); }
.criteria-card__key { margin-top: 2px; }
.criteria-card__key code {
  background: var(--bg-tint); padding: 1px 7px; border-radius: 4px;
  font-size: .7rem; color: var(--muted);
}
.criteria-card__desc { margin-top: 10px; font-size: .84rem; line-height: 1.85; color: var(--muted); }

.role-grid { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.role-card {
  min-width: 170px; padding: 18px 24px; text-align: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.role-card__chip {
  display: inline-block; padding: 5px 20px; border-radius: 999px;
  background: var(--role-color); color: #fff; font-weight: 800; font-size: .95rem;
}
.role-card__max { margin-top: 10px; font-size: .78rem; color: var(--muted); }
.role-card__max strong { color: var(--ink); font-size: .95rem; }

.status-flow {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center; counter-reset: st;
}
.status-flow li { display: flex; align-items: center; gap: 10px; }
.status-flow li span {
  display: inline-block; padding: 9px 18px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--sakura-soft);
  font-size: .84rem; font-weight: 700; color: var(--navy);
}
.status-flow li:not(:last-child)::after { content: '→'; color: var(--sakura); font-weight: 800; }

/* ============ 編成設定フィールドセット ============ */
.config {
  min-inline-size: 0; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px 18px; display: grid; gap: 14px;
}
.config legend {
  padding: 0 8px; font-size: .76rem; font-weight: 800;
  color: var(--sakura); letter-spacing: .06em;
}
.config__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.config__row--stack { flex-direction: column; align-items: stretch; }
.config__label { font-size: .8rem; font-weight: 700; color: var(--navy); flex-shrink: 0; }
.config__hint { font-size: .75rem; line-height: 1.75; color: var(--muted); }

.seg { display: inline-flex; min-width: 0; max-width: 100%; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--bg-tint); border-radius: 999px; }
.seg--wide { width: 100%; }
.seg--wide .seg__btn { flex: 1; }
.seg__btn {
  padding: 7px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--muted); transition: background .22s, color .22s, box-shadow .22s;
  white-space: nowrap;
}
.seg__btn:hover { color: var(--navy); }
.seg__btn.is-active {
  background: #fff; color: var(--sakura);
  box-shadow: 0 1px 5px rgba(26, 42, 109, .12);
}

.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper__btn {
  width: 32px; height: 32px; border-radius: 9px; background: var(--bg-tint);
  font-size: 1rem; font-weight: 800; color: var(--navy);
  transition: background .2s, color .2s;
}
.stepper__btn:hover { background: var(--sakura); color: #fff; }
.stepper input {
  width: 58px; flex: 0 1 58px; text-align: center; padding: 7px 4px !important;
  font-weight: 800 !important; color: var(--navy);
  border: 1.5px solid var(--line); border-radius: 9px; background: #fff;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============ 名簿行（出席・性別・2軸スライダー） ============ */
.members__legend { grid-template-columns: 24px minmax(0, 1.25fr) 60px minmax(0, 1fr) minmax(0, 1fr) 28px !important; }
.members__legend .lg-curiocity { color: var(--sakura); }
.members__legend .lg-efficacy { color: var(--blue); }

.member-row { grid-template-columns: 24px minmax(0, 1.25fr) 60px minmax(0, 1fr) minmax(0, 1fr) 28px !important; }
.member-row.is-absent { opacity: .45; }
.member-row.is-absent .m-name { text-decoration: line-through; }

.m-attend-wrap { position: relative; display: grid; place-items: center; cursor: pointer; }
.m-attend-wrap input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.m-attend-wrap span {
  width: 19px; height: 19px; border-radius: 6px;
  border: 1.5px solid #d6d6e2; background: #fff;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.m-attend-wrap input:checked + span { background: var(--sakura); border-color: var(--sakura); }
.m-attend-wrap input:checked + span::after {
  content: '✓'; color: #fff; font-size: .72rem; font-weight: 900; line-height: 1;
}

.m-score { display: flex; min-width: 0; align-items: center; gap: 6px; }
.m-score input[type='range'] {
  flex: 1; min-width: 0; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px; background: #e7e7ef; cursor: pointer; padding: 0 !important;
}
.m-score input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--sakura); border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer;
}
.m-score input[type='range']::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid #fff;
  background: var(--sakura); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer;
}
.m-score--eff input[type='range']::-webkit-slider-thumb { background: var(--blue); }
.m-score--eff input[type='range']::-moz-range-thumb { background: var(--blue); }
.m-score output {
  width: 22px; flex-shrink: 0; text-align: right;
  font-family: var(--font-en); font-size: .76rem; font-weight: 700; color: var(--muted);
}

/* ============ 結果：チップ・統計・ポジションマップ ============ */
.res-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.res-chip {
  padding: 3px 12px; border-radius: 999px; background: var(--bg-tint);
  border: 1px solid var(--line); font-size: .74rem; font-weight: 700; color: var(--muted);
}
.res-chip--main { background: var(--sakura); border-color: var(--sakura); color: #fff; }
.res-chip--absent { background: #fff0f3; border-color: #ffd4de; color: #c2325a; }

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.stat-box {
  padding: 14px 16px; border-radius: var(--radius-sm); text-align: center;
  background: var(--bg-tint); border: 1px solid var(--line);
}
.stat-box span { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); }
.stat-box strong {
  display: block; margin-top: 2px; font-family: var(--font-en);
  font-size: 1.9rem; font-weight: 800; line-height: 1.1;
}
.stat-box small { font-size: .68rem; color: #b4b4c4; }
.stat-box--cur { border-top: 3px solid var(--sakura); }
.stat-box--cur strong { color: var(--sakura); }
.stat-box--eff { border-top: 3px solid var(--blue); }
.stat-box--eff strong { color: var(--blue); }

.position-map { display: grid; gap: 10px; justify-items: center; }
.position-map svg { width: 100%; max-width: 330px; height: auto; }
.pm-dot circle { transition: r .2s; cursor: pointer; }
.pm-dot:hover circle { r: 9; }
.pm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.pm-legend__item { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); }
.pm-legend__item i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ============ 結果：班カード ============ */
.group-card__head h4 small { font-size: .74rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.group-card__avg { display: flex; gap: 6px; margin-top: 6px; }
.avg {
  padding: 2px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  font-family: var(--font-en);
}
.avg--cur { background: rgba(250, 79, 125, .13); color: var(--sakura); }
.avg--eff { background: rgba(100, 100, 255, .13); color: var(--blue); }

.role-pill {
  display: inline-block; flex-shrink: 0; padding: 3px 13px; border-radius: 999px;
  background: var(--c); color: #fff; font-size: .74rem; font-weight: 800;
  white-space: nowrap;
}
.group-member__main { flex: 1; min-width: 0; }
.gender {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px;
  font-size: .64rem; font-style: normal; font-weight: 700; vertical-align: middle;
}
.gender--male { background: #e6efff; color: #3a63b8; }
.gender--female { background: #ffeaf2; color: #c2457a; }

.score-bars { display: grid; gap: 4px; margin-top: 6px; }
.score-bar {
  position: relative; display: block; height: 15px; border-radius: 8px;
  background: #f1f1f7; overflow: hidden;
}
.score-bar i {
  position: absolute; inset: 0 auto 0 0; display: block;
  border-radius: 8px; background: var(--sakura); opacity: .3;
}
.score-bar--eff i { background: var(--blue); }
.score-bar b {
  position: relative; display: block; padding: 0 8px; line-height: 15px;
  font-family: var(--font-en); font-size: .64rem; font-weight: 700; color: var(--muted);
}

.res-note {
  margin-top: 18px; padding: 11px 15px; border-radius: 10px;
  background: var(--bg-tint); font-size: .78rem; color: var(--muted); line-height: 1.75;
}
.tag--muted { border-color: var(--line); color: var(--muted); }

.policy-box {
  padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--bg-tint); border-left: 3px solid var(--sakura);
}
.policy-box p { margin-top: 8px; font-size: .87rem; line-height: 1.85; color: var(--muted); }
.policy-box__timing { color: var(--navy) !important; font-weight: 600; }

.axis-insight { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.axis-insight__box {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-tint); border-top: 3px solid var(--sakura);
}
.axis-insight__box--eff { border-top-color: var(--blue); }
.axis-insight__box span {
  display: block; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; color: var(--sakura); margin-bottom: 5px;
}
.axis-insight__box--eff span { color: var(--blue); }
.axis-insight__box p { font-size: .84rem; line-height: 1.8; color: var(--muted); }

/* ============ スクロールリビール ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ レスポンシブ ============ */
@media (max-width: 1024px) {
  .panel__grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .intro-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .sp-only { display: inline; }
  .container { width: calc(100% - 32px); }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(16px);
    box-shadow: var(--shadow); padding: 10px 16px 20px;
    transform: translateY(-120%); transition: transform .35s ease;
  }
  .site-nav.is-open { transform: none; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 13px 16px; border-radius: 10px; font-size: .95rem; }
  .nav-toggle { display: block; }

  .circle1 { width: 400px; height: 400px; margin: -200px 0 0 -200px; }
  .circle2 { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
  .circle3 { width: 130px; height: 130px; margin: -65px 0 0 -65px; }

  .form-row--2, .form-row--3 { grid-template-columns: 1fr; }
  .members__legend { display: none !important; }
  .member-row {
    grid-template-columns: 26px 1fr 54px 26px !important;
    grid-template-areas: 'att name gen del' 'cur cur cur cur' 'eff eff eff eff';
    gap: 7px 8px;
    padding: 11px; background: var(--bg-tint); border-radius: 10px;
  }
  .m-attend-wrap { grid-area: att; }
  .member-row .m-name { grid-area: name; }
  .member-row .m-gender { grid-area: gen; }
  .m-score--cur { grid-area: cur; }
  .m-score--eff { grid-area: eff; }
  .member-row__del { grid-area: del; }
  .m-score::before {
    content: '効力感'; flex-shrink: 0; width: 42px;
    font-size: .66rem; font-weight: 700; color: var(--sakura);
  }
  .m-score--eff::before { content: '好奇心'; color: var(--blue); }

  .stat-row { grid-template-columns: 1fr; }
  .axis-insight { grid-template-columns: 1fr; }
  .status-flow li:not(:last-child)::after { content: '↓'; }
  .status-flow { flex-direction: column; }
  .criteria-grid, .axis-grid { grid-template-columns: 1fr; }
  .config__row { flex-direction: column; align-items: stretch; }
  .seg { width: 100%; }
  .seg__btn { flex: 1; }

  .tabs { width: 100%; border-radius: var(--radius); }
  .tab { flex: 1; min-width: 0; padding: 10px 8px; flex-direction: column; gap: 3px; border-radius: 12px; }
  .tab__label { font-size: .72rem; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .form-embed iframe { height: 760px; }

  .chat-fab { right: 14px; bottom: 14px; padding: 12px 18px; }
  .chat-fab__label { font-size: .84rem; }
  .chat-window { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: min(80vh, calc(100vh - 16px)); }

  .res-table { font-size: .8rem; }
  .res-table th, .res-table td { padding: 8px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
