/* ============================================================
   あそびミックス 公式サイト
   デザインは開発ポートフォリオ（kt-labs-portfolio/projects/asobi-mix）
   の水彩世界観を踏襲した消費者向けリメイク。
   ============================================================ */

:root {
  --cream: #FBF4E6;
  --cream-2: #F4E9D2;
  --paper: #FFFFFF;
  --ink: #2C2A23;
  --ink-muted: #6B6656;
  --ink-soft: #5D5847;
  --green: #59A84A;
  --green-deep: #408533;
  --blue: #3D8AD1;
  --orange: #E08A2B;
  --coral: #ED7359;
  --teal: #2E9C99;
  --line: #E9E1CE;
  --shadow-soft: 0 4px 16px rgba(60, 50, 20, 0.07);
  --shadow-card: 0 6px 18px rgba(60, 50, 20, 0.09);
  --font-round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* hiddenだとbodyがスクロールコンテナ化するためclipを使う */
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style-position: inside; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }

@keyframes pinFloat {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); }
  50% { transform: rotate(-45deg) translate(-6px, -6px); }
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 9px); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(89, 168, 74, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(89, 168, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(89, 168, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- 多色ワードマーク ---------- */
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--font-round); font-weight: 900; letter-spacing: 0.02em; }
.wordmark span { display: inline-block; text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55); }
.wordmark span:nth-child(1) { color: #5FB54E; transform: rotate(-3deg); }
.wordmark span:nth-child(2) { color: #9FA05F; transform: rotate(2deg); }
.wordmark span:nth-child(3) { color: #3F9BD2; transform: rotate(-2deg); }
.wordmark span:nth-child(4) { color: #EF725B; transform: rotate(3deg); }
.wordmark span:nth-child(5) { color: #F1A145; transform: rotate(-4deg) translateY(1px); }
.wordmark span:nth-child(6) { color: #687D94; transform: rotate(2deg); }
.wordmark span:nth-child(7) { color: #E88E2F; transform: rotate(-2deg); }
.wordmark--dark span { text-shadow: none; }
.wordmark--dark span:nth-child(1) { color: #86C95F; }
.wordmark--dark span:nth-child(2) { color: #C4B56D; }
.wordmark--dark span:nth-child(3) { color: #65B5E3; }
.wordmark--dark span:nth-child(4) { color: #F79A78; }
.wordmark--dark span:nth-child(5) { color: #FFC56F; }
.wordmark--dark span:nth-child(6) { color: #8798A9; }
.wordmark--dark span:nth-child(7) { color: #F3AC52; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 244, 230, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 207, 186, 0.55);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.site-header .wordmark { font-size: 17px; flex: 0 0 auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--ink-muted);
  padding: 6px 12px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--cream-2); color: var(--ink); }
.site-nav .nav-cta {
  background: var(--green); color: #FFFFFF; font-family: var(--font-round); font-weight: 800;
}
.site-nav .nav-cta:hover { background: var(--green-deep); color: #FFFFFF; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(251,244,230,0.92) 0%, rgba(251,244,230,0.5) 26%, rgba(251,244,230,0.32) 55%, rgba(251,244,230,0.85) 88%, #FBF4E6 100%); }
.hero-glow { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 60% 46% at 50% 47%, rgba(251,244,230,0.9) 0%, rgba(251,244,230,0.55) 55%, rgba(251,244,230,0) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.hero .wordmark { justify-content: center; font-size: clamp(42px, 8vw, 68px); line-height: 1.25; margin: 0 0 18px; filter: drop-shadow(0 4px 12px rgba(60, 50, 20, 0.16)); }
.hero h1 { font-family: var(--font-round); font-size: clamp(23px, 4.3vw, 39px); font-weight: 900; line-height: 1.55; margin: 0 0 18px; }
.hero h1 .part { display: inline-block; }
.hero-lead { color: var(--ink-soft); font-size: clamp(14px, 2.1vw, 17px); font-weight: 500; max-width: 620px; margin: 0 auto 30px; line-height: 2; }
.marker { background: linear-gradient(180deg, rgba(0,0,0,0) 58%, rgba(245,196,69,0.55) 58%); border-radius: 4px; padding: 0 3px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, 0.92); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 18px; font-size: 12.5px; font-weight: 700; color: var(--ink-muted);
  box-shadow: 0 4px 14px rgba(60, 50, 20, 0.08); margin-bottom: 28px;
}
.status-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: pulse 2.4s ease-out infinite; }

.hero-pin {
  position: absolute; z-index: 1; width: 46px; height: 46px;
  border-radius: 50% 50% 50% 8px; transform: rotate(-45deg);
  border: 3px solid #FFFFFF; box-shadow: 0 8px 18px rgba(60, 50, 20, 0.22);
  display: flex; align-items: center; justify-content: center;
  animation: pinFloat 6s ease-in-out infinite;
}
.hero-pin span { transform: rotate(45deg); font-size: 20px; }
.only-desktop { display: none; }
@media (min-width: 821px) { .only-desktop { display: block; } }

.scroll-hint {
  position: absolute; bottom: clamp(40px, 6vw, 64px); left: 50%; z-index: 2;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.3em;
  color: #8A8470; animation: bob 2.4s ease-in-out infinite;
}
.wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; }
.wave svg, .wave-divider svg { display: block; width: 100%; height: clamp(26px, 4.5vw, 60px); }
.wave-divider { line-height: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-round); font-size: 15px; font-weight: 800;
  padding: 14px 32px; border-radius: 999px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn-primary { background: var(--green); color: #FFFFFF; box-shadow: 0 8px 22px rgba(89, 168, 74, 0.38); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(89, 168, 74, 0.45); }
.btn-ghost { background: rgba(255, 255, 255, 0.94); color: var(--ink); border: 2px solid #E3DBC9; box-shadow: 0 4px 14px rgba(60, 50, 20, 0.08); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 50, 20, 0.14); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store-note { display: block; margin-top: 12px; font-size: 12px; color: var(--ink-muted); }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 100px); background: var(--cream); }
.section-alt { background: var(--cream-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.eyebrow i { width: 26px; height: 3px; border-radius: 2px; background: var(--coral); }
.eyebrow span { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--coral); }
.eyebrow--green i { background: var(--green); }
.eyebrow--green span { color: var(--green-deep); }
.eyebrow--blue i { background: var(--blue); }
.eyebrow--blue span { color: var(--blue); }
.eyebrow--teal i { background: var(--teal); }
.eyebrow--teal span { color: var(--teal); }
.section h2 { font-family: var(--font-round); font-size: clamp(26px, 4.2vw, 40px); font-weight: 900; line-height: 1.45; margin: 0 0 14px; }
.section-lead { color: var(--ink-muted); font-size: clamp(15px, 1.9vw, 17px); max-width: 720px; margin: 0 0 44px; line-height: 2; }

/* ---------- 悩みカード ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.pain-card { background: var(--paper); border-radius: 24px; padding: 28px 26px; box-shadow: var(--shadow-soft); }
.pain-card .icon { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }
.icon--coral { background: rgba(237, 115, 89, 0.13); }
.icon--blue { background: rgba(61, 138, 209, 0.12); }
.icon--orange { background: rgba(224, 138, 43, 0.13); }
.pain-card h3 { font-family: var(--font-round); font-size: 17.5px; font-weight: 800; margin: 0 0 8px; }
.pain-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.9; }

.kpi-band {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center;
  background: linear-gradient(135deg, rgba(89, 168, 74, 0.1), rgba(46, 156, 153, 0.1));
  border: 2px dashed rgba(89, 168, 74, 0.45); border-radius: 26px;
  padding: 30px clamp(22px, 4vw, 44px);
}
.kpi-band .num { flex: 0 0 auto; text-align: center; }
.kpi-band .num b { display: block; font-family: var(--font-round); font-size: clamp(46px, 7vw, 62px); font-weight: 900; color: var(--green-deep); line-height: 1.1; }
.kpi-band .num small { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; color: var(--green-deep); }
.kpi-band .body { flex: 1 1 320px; }
.kpi-band .body h3 { font-family: var(--font-round); font-size: 18px; font-weight: 900; color: var(--green-deep); margin: 0 0 8px; }
.kpi-band .body p { font-size: 14.5px; line-height: 1.95; }
.kpi-band strong { color: var(--green-deep); font-weight: 800; }

/* ---------- アプリ画面（実スクリーンショット） ---------- */
.phone {
  width: min(280px, 78vw); background: #17171A; border-radius: 54px; padding: 11px;
  box-shadow: 0 30px 70px rgba(50, 40, 15, 0.32), 0 6px 18px rgba(50, 40, 15, 0.18);
  margin: 0 auto; flex: 0 0 auto;
}
.phone-screen { border-radius: 44px; overflow: hidden; background: var(--cream); }
.phone-screen img { display: block; width: 100%; height: auto; }
.phone--sm { width: min(240px, 70vw); }
.phone--sm .phone-screen { border-radius: 38px; }
.phone-caption { text-align: center; font-size: 12px; color: var(--ink-muted); margin: 14px 0 0; }

.feature-row {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 60px);
  align-items: center; justify-content: center;
  padding: clamp(28px, 4vw, 44px) 0;
}
.feature-row + .feature-row { border-top: 1px dashed rgba(139, 129, 101, 0.3); }
.feature-row .text { flex: 1 1 340px; min-width: min(100%, 300px); max-width: 480px; }
.feature-row .text .num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--green-deep); display: block; margin-bottom: 8px; }
.feature-row .text h3 { font-family: var(--font-round); font-size: clamp(20px, 2.6vw, 25px); font-weight: 900; line-height: 1.5; margin: 0 0 12px; }
.feature-row .text p { font-size: 14.5px; color: var(--ink-muted); line-height: 2; }
.feature-row .text .tips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.feature-row .text .tips span {
  font-size: 11.5px; font-weight: 800; background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(214, 205, 183, 0.9); color: var(--ink-muted);
  padding: 4px 12px; border-radius: 999px;
}
.feature-row .shots { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 900px) {
  .feature-row--flip { flex-direction: row-reverse; }
}

/* ---------- 使い方 3 ステップ ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 20px; counter-reset: step; }
.step-card { position: relative; background: var(--paper); border-radius: 24px; padding: 30px 26px 26px; box-shadow: var(--shadow-soft); }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 22px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #FFFFFF;
  font-family: var(--font-round); font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(89, 168, 74, 0.4);
}
.step-card h3 { font-family: var(--font-round); font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.step-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.9; }

/* ---------- 水彩シーンギャラリー ---------- */
.figure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.figure-grid figure { background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.25s, box-shadow 0.25s; }
.figure-grid figure:nth-child(1) { transform: rotate(-1.2deg); }
.figure-grid figure:nth-child(2) { transform: rotate(1deg); }
.figure-grid figure:nth-child(3) { transform: rotate(-0.9deg); }
.figure-grid figure:nth-child(4) { transform: rotate(1.2deg); }
.figure-grid figure:hover { transform: translateY(-6px) rotate(0deg); box-shadow: 0 18px 40px rgba(60, 50, 20, 0.15); }
.figure-grid img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; display: block; }
.figure-grid figcaption { padding: 12px 16px 14px; }
.figure-grid figcaption b { font-family: var(--font-round); font-size: 13.5px; font-weight: 800; }
.figure-grid figcaption small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-muted); margin-top: 2px; }
.gallery-note { margin-top: 20px; font-size: 13px; color: var(--ink-muted); text-align: center; }

/* ---------- 安心セクション / FAQ ---------- */
.assure-card { background: var(--paper); border-radius: 24px; padding: 28px 26px; box-shadow: var(--shadow-soft); }
.assure-card .icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; background: rgba(46, 156, 153, 0.12); }
.assure-card h3 { font-family: var(--font-round); font-size: 16.5px; font-weight: 800; margin: 0 0 8px; }
.assure-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.9; }
.assure-note { margin-top: 22px; font-size: 13.5px; color: var(--ink-muted); }
.assure-note a { color: var(--green-deep); font-weight: 700; border-bottom: 1.5px solid rgba(64, 133, 51, 0.4); }

.faq-list { display: grid; gap: 14px; max-width: 780px; }
.faq-list details {
  background: var(--paper); border-radius: 18px; padding: 18px 22px;
  box-shadow: var(--shadow-soft);
}
.faq-list summary {
  cursor: pointer; font-family: var(--font-round); font-weight: 800; font-size: 15.5px;
  list-style: none; display: flex; align-items: baseline; gap: 10px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "Q"; flex: 0 0 auto; font-family: var(--font-mono); color: var(--coral); font-weight: 600; }
.faq-list details p { margin-top: 10px; font-size: 14px; color: var(--ink-muted); line-height: 1.95; padding-left: 24px; }

/* ---------- CTAバンド ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band .section-lead { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- フッター ---------- */
.footer { background: #2C2A23; color: rgba(255, 255, 255, 0.85); padding: 60px 0 44px; text-align: center; }
.footer .wordmark { font-size: 22px; margin-bottom: 16px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); }
.footer-links a:hover { color: #FFFFFF; }
.footer .copyright { font-size: 12px; color: rgba(255, 255, 255, 0.42); }

/* ---------- 下層ページ（サポート / プライバシー / 問い合わせ） ---------- */
.subpage-main { padding: 108px 0 clamp(60px, 8vw, 100px); }
.policy-layout { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .policy-layout { grid-template-columns: 1fr; } }
.policy-nav { position: sticky; top: 84px; display: grid; gap: 4px; }
@media (max-width: 760px) { .policy-nav { position: static; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.policy-nav a {
  font-size: 13px; font-weight: 700; color: var(--ink-muted);
  padding: 8px 14px; border-radius: 12px; transition: background 0.2s, color 0.2s;
}
.policy-nav a:hover { background: var(--cream-2); color: var(--ink); }
.doc { background: var(--paper); border-radius: 26px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-soft); min-width: 0; }
.doc .eyebrow-text { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--green-deep); }
.doc h1 { font-family: var(--font-round); font-size: clamp(26px, 4vw, 34px); font-weight: 900; margin: 6px 0 14px; }
.doc h2 { font-family: var(--font-round); font-size: 19px; font-weight: 800; margin: 38px 0 12px; padding-top: 8px; border-top: 1px dashed rgba(139, 129, 101, 0.3); }
.doc p { font-size: 14.5px; line-height: 2; color: var(--ink-soft); }
.doc p + p { margin-top: 10px; }
.doc ul { display: grid; gap: 8px; margin: 12px 0; list-style: none; }
.doc ul li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.95; color: var(--ink-soft); }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.doc .updated { font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }
.doc .button {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-round); font-size: 14.5px; font-weight: 800;
  padding: 12px 26px; border-radius: 999px; background: var(--green); color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(89, 168, 74, 0.35); transition: transform 0.18s, box-shadow 0.18s;
}
.doc .button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(89, 168, 74, 0.42); }
.doc .button.secondary { background: rgba(255, 255, 255, 0.94); color: var(--ink); border: 2px solid #E3DBC9; box-shadow: 0 4px 12px rgba(60, 50, 20, 0.08); }
.support-list { display: grid; gap: 12px; margin: 14px 0; }
.support-list > div, .support-list > a {
  background: var(--cream); border-radius: 16px; padding: 16px 20px;
  font-weight: 700; font-size: 14.5px; line-height: 1.8;
}
.support-list small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.support-list > a { transition: background 0.2s; }
.support-list > a:hover { background: var(--cream-2); }
