/* アプリ紹介ページ (app.php)。JP / EN 共通 (en.vietcafe-learning.com/css/app_page.css と同一内容)
   法人サイトとは別の表情にする: ストア画像と同じクリーム地 + セージの丘 + 手描きの落書き、丸ゴシック見出し。
   サイト共通CSSと衝突しないよう .app-page 配下に限定。グラデーション不使用・赤は使わない */
.app-page {
  --ap-green: #376439;
  --ap-green-dark: #264a28;
  --ap-cream: #fdf9e6;
  --ap-sage: #c6cec5;
  --ap-sage-soft: #e9ebdf;
  --ap-mint: #eef3ee;
  --ap-sky: #eaf6fb;
  --ap-peach: #fef3e2;
  --ap-orange: #F29C38;
  --ap-ink: #26302a;
  --ap-text: #4a4f4b;
  --ap-muted: #6f7770;
  --ap-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--ap-text);
  line-height: 1.8;
  overflow: hidden;
  background: #fff;
}
.app-page *, .app-page *::before, .app-page *::after { box-sizing: border-box; }
.app-page h1, .app-page h2, .app-page h3 { font-family: var(--ap-round); color: var(--ap-ink); line-height: 1.45; margin: 0; text-wrap: balance; word-break: auto-phrase; }
.app-page p { margin: 0; }
.app-page ul, .app-page ol { margin: 0; padding: 0; list-style: none; }
.app-page img { max-width: 100%; height: auto; display: block; }
.ap-wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.ap-kicker { display: inline-block; font-family: var(--ap-round); font-weight: 700; font-size: 14px; color: var(--ap-green); background: #fff; border: 2px solid var(--ap-green); border-radius: 999px; padding: 2px 14px; margin-bottom: 14px; }

/* ストアバッジ */
.ap-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ap-badges a { display: block; line-height: 0; border-radius: 10px; transition: transform .15s; }
.ap-badges a:hover { transform: translateY(-2px); }
.ap-badges a:focus-visible { outline: 3px solid #6FBEDB; outline-offset: 3px; }
.ap-badges img { height: 52px; width: auto; }

/* 手描きの落書き (装飾) */
.ap-doodle { position: absolute; width: 340px; height: 340px; background: url("/images/app/doodles.svg") no-repeat center / contain; opacity: .22; pointer-events: none; }

/* ---------- ヒーロー ---------- */
.ap-hero { position: relative; overflow: hidden; background: var(--ap-cream); }
/* セージの丘 (ストア画像の背景と同じ形) */
.ap-hero::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 46%; background: var(--ap-sage-soft); border-radius: 50% 50% 0 0 / 38% 38% 0 0; }
.ap-hero::after { content: ""; position: absolute; right: -140px; bottom: -300px; width: 760px; height: 760px; background: var(--ap-sage); opacity: .5; border-radius: 50%; }
.ap-hero .ap-doodle--a { left: -40px; bottom: -60px; }
.ap-hero .ap-doodle--b { right: 2%; top: 20px; width: 240px; height: 240px; opacity: .16; transform: rotate(18deg); }
.ap-hero__inner { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: end; padding-top: 64px; }
.ap-hero__copy { padding-bottom: 88px; }
.ap-hero__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.ap-hero__icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 16px rgba(38, 74, 40, .22); }
.ap-hero__brand-text { font-size: 13px; line-height: 1.5; color: var(--ap-muted); }
.ap-hero__brand-text strong { display: block; font-size: 16px; color: var(--ap-ink); }
.ap-hero__title { font-size: clamp(32px, 4.6vw, 50px); font-weight: 900; color: var(--ap-green); letter-spacing: .02em; }
/* マーカー風の下線 (手描きの波線) */
.ap-hero__title .ap-mark { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='16' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 10c30-6 60-6 98-2s70 4 98-2' fill='none' stroke='%23F29C38' stroke-width='7' stroke-linecap='round' stroke-opacity='.55'/%3E%3C/svg%3E") no-repeat left bottom / 100% .42em; padding-bottom: .08em; }
.ap-hero__sub { margin-top: 14px; font-family: var(--ap-round); font-weight: 700; font-size: clamp(17px, 2vw, 21px); color: var(--ap-ink); }
.ap-hero__lead { margin-top: 12px; font-size: 16px; max-width: 30em; }
.ap-hero__badges { margin-top: 28px; }
.ap-hero__note { margin-top: 12px; font-size: 13px; color: var(--ap-muted); }

/* 実際のアプリ画面 (ストア画像から切り抜いたスマホ) */
.ap-phone-stage { position: relative; align-self: end; }
.app-page .ap-phone-shot { position: relative; width: 100%; max-width: 280px; margin: 0 auto; filter: drop-shadow(0 26px 34px rgba(38, 48, 42, .26)); transform: translateY(40px) rotate(3deg); }

/* ロゴ入りのスマホ (EN など実画面が無い場合) */
.ap-phone { position: relative; width: 230px; margin: 0 auto 60px; aspect-ratio: 9 / 19; border-radius: 40px; background: #3a3f3b; padding: 11px; box-shadow: 0 24px 50px rgba(38, 48, 42, .22); transform: rotate(3deg); }
.ap-phone__screen { position: relative; height: 100%; border-radius: 30px; background: var(--ap-green); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ap-phone__screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 70px; height: 20px; border-radius: 12px; background: #3a3f3b; transform: translateX(-50%); }
.ap-phone__screen img { width: 74%; }

/* ---------- 特長 ---------- */
.ap-features { position: relative; padding-block: 96px 88px; }
.ap-hero { z-index: 2; }
.ap-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.ap-head__title { font-size: clamp(26px, 3.2vw, 34px); font-weight: 900; }
.ap-head__lead { margin-top: 10px; }
.ap-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ap-feature { border-radius: 28px; padding: 30px 22px 28px; text-align: center; }
.ap-feature:nth-child(1) { background: var(--ap-mint); }
.ap-feature:nth-child(2) { background: var(--ap-sky); transform: translateY(18px); }
.ap-feature:nth-child(3) { background: var(--ap-peach); }
.ap-feature:nth-child(4) { background: var(--ap-cream); transform: translateY(18px); }
.ap-feature__icon { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.ap-feature__icon img { width: 58px; height: 58px; }
.ap-feature h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; }
.ap-feature p { font-size: 14px; text-align: left; }

/* ---------- はじめ方 (点線でつながるタイムライン) ---------- */
.ap-steps-sec { position: relative; padding-block: 88px; background: var(--ap-cream); }
.ap-steps-sec .ap-doodle { right: -60px; top: -40px; opacity: .14; transform: rotate(-12deg); }
.ap-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ap-steps::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 3px dashed var(--ap-sage); }
.ap-step { position: relative; text-align: center; }
.ap-step__no { position: relative; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ap-green); color: var(--ap-green); font-family: var(--ap-round); font-weight: 900; font-size: 28px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.ap-step h3 { font-size: 19px; font-weight: 900; }
.ap-step p { margin: 8px auto 0; max-width: 20em; font-size: 14px; }
.ap-step a { color: var(--ap-green); font-weight: 700; }

/* ---------- ダウンロード帯 ---------- */
.ap-cta { position: relative; background: var(--ap-sage-soft); }
.ap-cta .ap-doodle { left: 3%; top: -30px; opacity: .2; }
.ap-cta .ap-doodle--r { left: auto; right: 2%; top: auto; bottom: -80px; transform: rotate(160deg); }
.ap-cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-block: 72px; }
.ap-cta__icon { width: 96px; height: 96px; border-radius: 23px; box-shadow: 0 10px 24px rgba(38, 74, 40, .25); }
.ap-cta h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--ap-green); }
.ap-cta p { color: var(--ap-text); }
.ap-cta .ap-badges { justify-content: center; margin-top: 6px; }

@media (max-width: 960px) {
  .ap-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ap-feature:nth-child(n) { transform: none; }
}
@media (max-width: 860px) {
  .ap-hero__inner { grid-template-columns: 1fr; padding-top: 40px; gap: 8px; }
  .ap-hero__copy { padding-bottom: 8px; }
  .app-page .ap-phone-shot { max-width: 240px; transform: translateY(30px) rotate(3deg); }
  .ap-steps { grid-template-columns: 1fr; gap: 28px; }
  .ap-steps::before { top: 0; bottom: 0; left: 34px; right: auto; border-top: 0; border-left: 3px dashed var(--ap-sage); }
  .ap-step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; }
  .ap-step__no { margin: 0; grid-row: span 2; }
  .ap-step p { margin: 4px 0 0; }
}
@media (max-width: 560px) {
  .ap-wrap { padding-inline: 16px; }
  .ap-feature-grid { grid-template-columns: 1fr; }
  .ap-feature { text-align: left; display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; padding: 22px 18px; border-radius: 22px; }
  .ap-feature__icon { width: 72px; height: 72px; margin: 0; grid-row: span 2; }
  .ap-feature__icon img { width: 44px; height: 44px; }
  .ap-features, .ap-steps-sec { padding-block: 60px; }
  .ap-badges img { height: 46px; }
  .ap-doodle { width: 220px; height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-badges a { transition: none; }
}
