@charset "UTF-8";

/* ---------------------------------------------------------------
   ことばの芽 サイト共通スタイル
   アプリ本体の配色（ピンク #FF6B9D、グリーン #22C55E）と、
   ストア用素材のクリーム地を合わせる
   --------------------------------------------------------------- */

:root {
  --cream: #fff9f0;
  --cream-deep: #ffefda;
  --white: #fffdfa;
  --ink: #4a3728;
  --ink-soft: #93806e;
  --line: #f0e2cd;
  --pink: #ff6b9d;
  --pink-deep: #e14c82;
  --green: #22c55e;
  --green-deep: #1b9e4b;
  --max: 1080px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-deep);
  text-underline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- 共通パーツ --- */

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(225, 76, 130, 0.16);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.8;
}

/* 端末フレーム。中身は加工前のスクリーンショット */
.device {
  position: relative;
  width: min(300px, 68vw);
  padding: 11px;
  background: linear-gradient(150deg, #4c4c50 0%, #232326 45%, #131315 100%);
  border-radius: 48px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    0 30px 60px -22px rgba(74, 55, 40, 0.5),
    0 10px 24px -12px rgba(74, 55, 40, 0.3);
}

.device img {
  width: 100%;
  border-radius: 38px;
}

/* 端末の後ろに敷くやわらかい光 */
.shot {
  position: relative;
  display: flex;
  justify-content: center;
}

.shot::before {
  content: "";
  position: absolute;
  inset: 8% -10% 12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 107, 157, 0.22),
    rgba(255, 107, 157, 0)
  );
  filter: blur(30px);
}

.shot.glow-green::before {
  background: radial-gradient(
    closest-side,
    rgba(34, 197, 94, 0.2),
    rgba(34, 197, 94, 0)
  );
}

/* --- ヘッダー --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 249, 240, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 226, 205, 0.8);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.site-header nav a:hover {
  color: var(--ink);
}

/* --- ヒーロー --- */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 9vw, 104px);
  overflow: hidden;
}

/* おもちゃ柄をヒーロー背景に薄く敷く。上端は文字が乗るので消しておく */
.hero-toys {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/toys.webp") center 30% / cover no-repeat;
  opacity: 0.4;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 34%,
    #000 72%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 34%,
    #000 72%,
    transparent 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

/* グリッドの子は min-width: auto のままだと縮まず横にはみ出す */
.hero-grid > *,
.row > * {
  min-width: 0;
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 21px;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px -10px rgba(74, 55, 40, 0.45);
}

.hero h1 {
  margin: 0 0 18px;
}

.h1-name {
  display: block;
  font-size: clamp(38px, 6.4vw, 58px);
  line-height: 1.25;
  letter-spacing: 0.06em;
}

.h1-tag {
  display: block;
  margin-top: 10px;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.7;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.hero .promo {
  margin: 0 0 32px;
  max-width: 30em;
  font-size: 15px;
  color: var(--ink-soft);
}

/* --- ストアバッジ --- */

.badges {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.badges a {
  display: inline-block;
  transition: transform 0.2s;
}

.badges a:hover {
  transform: translateY(-2px);
}

.badge-apple {
  height: 52px;
  margin: 13px 12px;
}

/* Google のバッジ画像は上下左右に余白を含むため、大きめに出して相殺する */
.badge-google {
  height: 78px;
}

.badges.center {
  justify-content: center;
}

/* --- 機能セクション --- */

.features {
  padding: clamp(24px, 5vw, 48px) 0 0;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: 0.05em;
  margin: 0 0 10px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(40px, 6vw, 64px) 0;
}

.row.reverse .row-shot {
  order: 2;
}

.row-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.8vw, 27px);
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.row-copy p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}

.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 6px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%2322c55e'/%3E%3Cpath d='M5.6 10.3l2.9 2.9 5.9-6' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* --- 方針（大切にしていること） --- */

.policy {
  position: relative;
  margin: clamp(48px, 7vw, 88px) auto 0;
  max-width: 860px;
  background: var(--cream-deep);
  border-radius: 32px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 56px);
  overflow: hidden;
}

.policy h2 {
  font-size: clamp(20px, 2.6vw, 24px);
  margin: 0 0 24px;
  text-align: center;
  letter-spacing: 0.05em;
}

.policy ul {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.policy li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15px;
}

.policy li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.82em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.policy li:last-child {
  margin-bottom: 0;
}

/* --- 下部の導線 --- */

.cta {
  text-align: center;
  padding: clamp(64px, 9vw, 104px) 0 clamp(48px, 7vw, 80px);
}

.cta img.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  box-shadow: 0 12px 28px -10px rgba(74, 55, 40, 0.4);
}

.cta h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.cta p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* --- フッター --- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer .copyright {
  margin-left: auto;
}

/* --- 文書ページ（ポリシー、規約、問い合わせ） --- */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) 24px 88px;
}

.doc h1 {
  font-size: clamp(26px, 4vw, 32px);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.doc .updated {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 40px;
}

.doc h2 {
  font-size: 20px;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  letter-spacing: 0.03em;
}

.doc h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

.doc p,
.doc li {
  font-size: 15px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

.doc th,
.doc td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}

.doc th {
  background: var(--cream-deep);
  white-space: nowrap;
}

.doc .table-scroll {
  overflow-x: auto;
}

.doc .callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 26px;
  margin: 26px 0;
}

.doc .callout p:first-child {
  margin-top: 0;
}

.doc .callout p:last-child {
  margin-bottom: 0;
}

.contact-mail {
  font-size: 18px;
  font-weight: 700;
}

/* --- スクロール時のフェードイン --- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- レスポンシブ --- */

@media (max-width: 860px) {
  .hero-grid,
  .row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  /* 縦並びでは文字が柄の上に重なるので、柄をさらに薄くする */
  .hero-toys {
    opacity: 0.26;
  }

  .hero-copy,
  .row-copy {
    max-width: min(34em, 100%);
  }

  .hero .promo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .badges {
    justify-content: center;
  }

  /* 画面の並びに関わらず、スマホでは端末画像を先に見せる */
  .row.reverse .row-shot {
    order: -1;
  }

  .row-shot {
    order: -1;
  }

  .ticks {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .site-header nav {
    gap: 16px;
    font-size: 13px;
  }

  .site-header .wrap {
    height: 60px;
  }

  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .site-footer .copyright {
    margin-left: 0;
  }
}
