/* =====================================================
   cocoiru（ココイル）製品サイト — 紹介ページ用スタイル
   base.css の後に読み込む。法務ページは base.css だけでよい。
   ===================================================== */

/* ---------- 端末フレーム（スクリーンショットの見せ方・LP 踏襲） ---------- */
.phone {
  position: relative;
  border-radius: 34px;
  padding: 9px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  max-width: 300px;
  margin: 0 auto;
}
.phone img { border-radius: 26px; }

.feature-glow {
  position: absolute;
  inset: 12% -8% 12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(123, 124, 232, 0.34), transparent 72%);
  filter: blur(28px);
}

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + 92px) 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: 0.005em;
  margin-bottom: 26px;
}
.hero h1 .line { display: block; }
.hero .lead {
  color: var(--text-soft);
  font-size: 1.04rem;
  margin-bottom: 34px;
  max-width: 30em;
}
.hero .lead strong { color: var(--text); font-weight: 500; }

.hero-visual { position: relative; }

/* 端末を中央に置き、キャラクターを左右の縁にまたがせて浮かべる */
.hero-stage {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 0;
}
.hero-stage .phone { max-width: 280px; }
.hero-charas { list-style: none; }
.hero-chara {
  --size: 104px;
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: hero-float 7s var(--ease) infinite alternate;
}
.hero-chara img {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--ring), 0 18px 40px -14px rgba(0, 0, 0, 0.85), 0 0 36px -8px var(--ring);
}
.hero-chara .tag {
  margin-top: -12px;
  padding: 5px 13px 6px;
  border-radius: 12px;
  background: rgba(22, 24, 41, 0.88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
  line-height: 1.35;
  white-space: nowrap;
}
.hero-chara .tag b { display: block; font-size: 0.8rem; font-weight: 700; }
.hero-chara .tag small { display: block; font-size: 0.64rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* 左右交互・高さ違いに置いて、並びが整いすぎないようにする */
.hero-chara.c1 { --ring: rgba(240, 166, 173, 0.55); top: 5%;  left: 0;  animation-delay: 0s; }
.hero-chara.c2 { --ring: rgba(127, 184, 232, 0.55); top: 22%; right: 0; animation-delay: -2.5s; }
.hero-chara.c3 { --ring: rgba(154, 155, 240, 0.6);  top: 55%; left: 0;  animation-delay: -4.5s; }
.hero-chara.c4 { --ring: rgba(245, 176, 78, 0.5);   top: 70%; right: 0; animation-delay: -1.5s; }

@keyframes hero-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chara { animation: none; }
}

/* ---------- 入手導線（ストアバッジ／先行登録） ---------- */
.get-app { margin-bottom: 18px; }
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.store-badge:hover {
  border-color: var(--iris);
  background: rgba(123, 124, 232, 0.12);
  transform: translateY(-2px);
}
.store-badge .mark { font-size: 1.5rem; line-height: 1; }
.store-badge .txt { display: block; line-height: 1.35; }
.store-badge .txt small {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.store-badge .txt b { font-size: 0.98rem; font-weight: 500; }

.get-note { color: var(--text-muted); font-size: 0.84rem; margin-top: 14px; }

/* 先行登録フォーム（リリース前）・LP と同じ Tally 埋め込み */
.signup {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 24px 12px;
  box-shadow: var(--shadow-soft);
  max-width: 470px;
}
.signup .label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.signup .note {
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.7;
  margin-top: -2px;
  padding-bottom: 10px;
}
.signup .note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.signup .note a:hover { color: var(--iris-soft); }

/* ---------- trust strip ---------- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 18px 0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 42px;
  color: var(--text-muted);
  font-size: 0.87rem;
}
.trust-inner b { color: var(--text-soft); font-weight: 500; }
.trust-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--iris);
  margin-right: 9px;
  vertical-align: middle;
}

/* ---------- 共感パート ---------- */
.problem { text-align: center; }
.big-quote {
  font-size: clamp(1.25rem, 2.9vw, 1.85rem);
  line-height: 2;
  font-weight: 500;
  margin-bottom: 28px;
}
.problem .sub {
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 62px;
  font-size: 0.98rem;
}
.moments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}
.moment {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.moment .icon { font-size: 1.5rem; margin-bottom: 14px; }
.moment p { color: var(--text-soft); font-size: 0.93rem; line-height: 1.95; }
.moment .q { display: block; color: var(--text); font-weight: 500; margin-bottom: 6px; }

/* ---------- 数字 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}
.stat .num {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  background: linear-gradient(120deg, var(--iris-soft), var(--coral-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .num .unit { font-size: 0.5em; margin-left: 3px; }
.stat .cap { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 14px; }
.stat .src { color: var(--text-faint); font-size: 0.74rem; line-height: 1.7; }
.data-foot { text-align: center; color: var(--text-soft); margin-top: 46px; font-size: 0.98rem; }

/* ---------- 機能（詳細行） ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding: 62px 0;
  border-top: 1px solid var(--border);
}
.feature:first-of-type { border-top: 0; }
.feature.reverse .feature-body { order: 2; }
.feature.reverse .feature-visual { order: 1; }
.feature-visual { position: relative; }
.feature .kicker {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--iris-soft);
  margin-bottom: 14px;
}
.feature h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 18px;
}
.feature p { color: var(--text-soft); font-size: 0.97rem; }
.example {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: rgba(123, 124, 232, 0.08);
  border: 1px solid rgba(123, 124, 232, 0.2);
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.9;
}
.example .who {
  display: block;
  color: var(--iris-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  margin-bottom: 3px;
}
/* プラン差の注記。買ってから気づく、を作らないための行。 */
.plan-note {
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 13px;
  border-left: 2px solid var(--border-strong);
  line-height: 1.85;
}
.plan-note a { color: var(--iris-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 機能カード（トップの要約） ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
a.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card .icon { font-size: 1.45rem; margin-bottom: 14px; }
.card h3 { font-size: 1.03rem; font-weight: 700; margin-bottom: 10px; line-height: 1.65; }
.card p { color: var(--text-soft); font-size: 0.9rem; }

/* カードが2枚のとき。3列のままだと右が空いて座りが悪い */
.cards.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }

/* ---------- キャラクター ---------- */
.chara-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.chara {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chara:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.chara img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.chara-body { padding: 18px 20px 22px; }
.chara-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.chara-body .meta { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 10px; }
.chara-body p { color: var(--text-soft); font-size: 0.85rem; line-height: 1.8; }

.shot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 720px;
  margin: 0 auto;
}
.shot-pair figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 14px;
}

/* ---------- 料金 ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.plan.featured {
  border-color: rgba(123, 124, 232, 0.5);
  background: linear-gradient(180deg, rgba(123, 124, 232, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-glow);
}
.plan .tag {
  position: absolute;
  top: -12px; left: 28px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: linear-gradient(120deg, var(--iris-deep), var(--iris));
}
.plan h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.plan .who { color: var(--text-muted); font-size: 0.84rem; margin-bottom: 20px; min-height: 3em; }
.plan .price {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.plan .price .per { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.plan .yearly { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 24px; }
.plan ul { list-style: none; border-top: 1px solid var(--border); padding-top: 20px; }
.plan li {
  color: var(--text-soft);
  font-size: 0.9rem;
  padding-left: 22px;
  position: relative;
  margin-bottom: 11px;
  line-height: 1.8;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--iris);
}
.plan li b { color: var(--text); font-weight: 500; }

.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
.compare th, .compare td {
  border-bottom: 1px solid var(--border);
  padding: 15px 16px;
  text-align: center;
  color: var(--text-soft);
}
.compare thead th {
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom-color: var(--border-strong);
}
.compare tbody th {
  text-align: left;
  color: var(--text);
  font-weight: 400;
  white-space: nowrap;
}
.compare .col-featured { background: rgba(123, 124, 232, 0.07); }
.compare td b { color: var(--text); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { max-width: var(--maxw-narrow); margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 54px 20px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.7;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  color: var(--iris-soft);
  font-size: 1.3rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--iris-soft); }
.faq-body {
  padding: 0 24px 22px;
  color: var(--text-soft);
  font-size: 0.93rem;
}
.faq-body p { margin-bottom: 12px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--iris-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- カウンター ---------- */
.same { text-align: center; }
.same .heart { font-size: 2rem; color: var(--coral); margin-bottom: 18px; }
.same h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 26px; line-height: 1.6; }
.counter-line {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--text-soft);
  margin-bottom: 22px;
}
.counter {
  font-size: 1.55em;
  font-weight: 700;
  color: var(--coral-soft);
  font-variant-numeric: tabular-nums;
}
.same .after { color: var(--text-soft); max-width: 620px; margin: 0 auto; font-size: 0.96rem; }

/* ---------- note カード ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.note-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.note-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.note-thumb img { width: 100%; height: 100%; object-fit: cover; }
.note-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.note-date { color: var(--text-faint); font-size: 0.75rem; letter-spacing: 0.06em; }
.note-body h3 {
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.7;
  margin: 8px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-body p {
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-more { color: var(--iris-soft); font-size: 0.82rem; margin-top: auto; padding-top: 16px; }
.note-more .arrow { margin-left: 6px; }
.notes-cta { text-align: center; margin-top: 44px; }

/* ---------- 哲学 ---------- */
.philosophy-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 62px 54px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.philosophy-card .mark { font-size: 1.9rem; margin-bottom: 20px; }
.philosophy-card h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 26px; line-height: 1.6; }
.philosophy-card p { color: var(--text-soft); font-size: 0.99rem; }

/* ---------- 最終 CTA ---------- */
.final { padding: 104px 0 118px; }
.final-card {
  background: linear-gradient(160deg, rgba(123, 124, 232, 0.16), rgba(240, 166, 173, 0.07) 60%, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 66px 54px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.final-card h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 20px;
}
.final-card .lead { color: var(--text-soft); margin-bottom: 34px; }
.final-card .signup { margin: 0 auto; }
.final-card .store-badges { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero { padding: calc(var(--nav-h) + 64px) 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  /* ⚠ 見出しを先に読ませたいので、スクリーンショットを上に回さない（LP と同じ判断） */
  .hero-copy { max-width: 620px; margin: 0 auto; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .signup { text-align: left; margin: 0 auto; }
  .get-app .store-badges { justify-content: center; }
  .feature,
  .feature.reverse { grid-template-columns: 1fr; gap: 36px; }
  .feature .feature-body,
  .feature.reverse .feature-body { order: 2; }
  .feature .feature-visual,
  .feature.reverse .feature-visual { order: 1; }
  .moments, .stats-grid, .cards, .cards.cards-2, .notes-grid, .plans { grid-template-columns: 1fr; }
  .chara-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .philosophy-card, .final-card { padding: 46px 28px; }
}

@media (max-width: 620px) {
  .signup { padding: 20px 18px 10px; }
  .hero-stage .phone { max-width: 220px; }
  .hero-chara { --size: 70px; }
  .hero-chara .tag { margin-top: -9px; padding: 3px 10px 4px; }
  .hero-chara .tag b { font-size: 0.72rem; }
  /* 狭い画面では職業まで出すと端末に被るので、名前だけにする */
  .hero-chara .tag small { display: none; }
  .shot-pair { grid-template-columns: 1fr; }
  .store-badges { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: center; }
  .chara-grid { grid-template-columns: 1fr; }
  .plan .who { min-height: 0; }
}
