/* ============================================
   みまもり LP スタイルシート
   配色は 06_juku-checkin の Mimamori Design System に準拠
   ============================================ */
:root {
  --c-forest: #2E7D5B;
  --c-forest-dark: #1F5A41;
  --c-forest-light: #6BAE8D;
  --c-ink: #1C2B26;
  --c-ink-soft: rgba(28, 43, 38, .68);
  --c-paper: #F7F9F8;
  --c-sand: #EEF1F0;
  --c-sage: #EAF3EE;
  --c-amber: #C9862A;
  --c-amber-dark: #B8730F;
  --c-line: rgba(28, 43, 38, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--c-paper);
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 行末に1〜2文字だけ残る泣き別れを防ぐ。
   見出しは行長を揃え(balance)、本文は最終行が短くなりすぎないようにする(pretty)。
   未対応ブラウザでは単に通常折り返しになるだけで副作用はない */
h1, h2, h3,
.flip-keyword,
.hero-sub,
.hero-chip,
.price-desc,
.campaign-tag { text-wrap: balance; }

p, li,
.faq-q > div,
.faq-a > div,
.price-features div,
.talk-bubble,
.talk-note,
.sheet-note,
.voice-note { text-wrap: pretty; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.rounded { font-family: 'M PLUS Rounded 1c', sans-serif; }

/* 数字・時刻はプロダクト本体と揃えて Inter の等幅数字 */
.num {
  font-family: 'Inter', sans-serif;
  font-feature-settings: "tnum" 1;
}

.grad-text {
  background: linear-gradient(90deg, var(--c-forest) 0%, var(--c-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 全面グレインテクスチャ（うっすら質感を足すだけ） */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
@media (max-width: 560px) {
  body::after { display: none; }
}

/* ---------- keyframes ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- scroll reveal (.rv / JS有効時のみ初期非表示) ---------- */
html.has-js .rv {
  opacity: 0;
  transition: opacity .85s cubic-bezier(.16, 1, .3, 1), transform .85s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
html.has-js .rv-up    { transform: translateY(52px); }
html.has-js .rv-left  { transform: translateX(-70px); }
html.has-js .rv-right { transform: translateX(70px); }
html.has-js .rv-scale { transform: scale(.85); }
html.has-js .rv-var   { transform: var(--rv0); }
html.has-js .rv.rv-in {
  opacity: 1;
  transform: var(--rv1, none);
}
.price-card.left,
.price-card.right { transform: var(--rv1, none); }
.voice-card.rv-var { transform: var(--rv1, none); }
/* モーション抑制時は「移動」だけをやめ、フェードは残す。
   （WCAG が抑制対象とするのは動きであり、不透明度の変化は許容範囲）
   html.has-js .rv 系より詳細度を上げないと opacity:0 のまま残って
   コンテンツが一切見えなくなるため、セレクタを合わせている */
/* モーション抑制時に止めるのは「延々と動き続ける装飾」だけにする。
   スクロールリビール（1回きり・0.85秒）とヒーローの入場は QR勤怠 と同じく残す。
   .rv を opacity:1 で上書きしてしまうと、リビールが一切再生されなくなる */
@media (prefers-reduced-motion: reduce) {
  .float-deco { animation: none !important; }
}

/* ---------- micro-interactions (JS駆動) ---------- */
[data-magnetic] { transition: transform .25s cubic-bezier(.2, 1, .3, .1); }
[data-tilt] { transition: transform .15s ease, box-shadow .3s ease; will-change: transform; }
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  [data-magnetic], [data-tilt] { transition: none; }
}

/* ---------- decorations ---------- */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px dashed rgba(28, 43, 38, .12);
  pointer-events: none;
}
.float-deco {
  position: absolute;
  pointer-events: none;
  animation: floatY 5s ease-in-out infinite;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 56px;
  background: rgba(247, 249, 248, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
.site-nav .nav-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--c-ink);
  transition: color .2s ease;
}
.site-nav .nav-link:hover { color: var(--c-forest); }
.nav-cta {
  padding: 13px 28px;
  background: var(--c-forest);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--c-forest-dark); }

/* ハンバーガー（モバイルのみ表示） */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--c-ink);
  background: rgba(28, 43, 38, .05);
}
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

.mobile-menu {
  position: sticky;
  top: 62px;
  z-index: 49;
  background: rgba(247, 249, 248, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 16px 30px -22px rgba(28, 43, 38, .4);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 20px;
}
.mobile-menu nav a {
  padding: 15px 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.mobile-menu nav a:last-child { border-bottom: none; }
.mobile-menu-cta {
  margin-top: 16px;
  text-align: center;
  background: var(--c-forest);
  color: #fff !important;
  border-radius: 999px;
  padding: 15px 20px !important;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 88px 56px 170px;
  background: var(--c-paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background:
    radial-gradient(38% 45% at 15% 20%, rgba(46, 125, 91, .3), transparent 70%),
    radial-gradient(32% 40% at 88% 12%, rgba(201, 134, 42, .22), transparent 70%),
    radial-gradient(45% 50% at 60% 92%, rgba(28, 43, 38, .1), transparent 70%);
  filter: blur(60px);
  animation: meshDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-2.5%, 3%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}
.hero-inner {
  max-width: 1328px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 9px 18px;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-forest-dark);
  transform: rotate(-1.5deg);
  animation: fadeInUp .7s ease both;
  box-shadow: 0 4px 14px rgba(28, 43, 38, .06);
  white-space: nowrap;
}
.hero h1 {
  margin: 26px 0 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1.25;
  color: var(--c-ink);
  animation: fadeInUp .7s ease .1s both;
}
.hero-sub {
  margin: 14px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-forest-dark);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  animation: fadeInUp .7s ease .16s both;
}
.hero-desc {
  margin: 26px 0 0;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--c-ink-soft);
  max-width: 470px;
  animation: fadeInUp .7s ease .22s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeInUp .7s ease .3s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 19px 36px;
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-forest-dark) 100%);
  background-size: 165% 165%;
  background-position: 0% 50%;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 14px 28px -10px rgba(28, 43, 38, .4);
  transition: background-position .5s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(46, 125, 91, .45);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-ink);
  font-weight: 700;
  font-size: 15.5px;
  border-bottom: 2px solid var(--c-ink);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow:hover { color: var(--c-forest-dark); border-color: var(--c-forest-dark); }

/* hero phones */
.hero-visual { position: relative; height: 560px; }
.phone { position: absolute; width: 232px; height: 478px; }
.phone-1 { left: 8px; top: 20px; transform: rotate(6deg); }
.phone-2 { right: 10px; bottom: 0; transform: rotate(-5deg); }
.phone-body {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--c-ink);
  border-radius: 48px;
  padding: 14px;
  box-shadow: 0 26px 50px -18px rgba(28, 43, 38, .3);
}
.phone-2 .phone-body { box-shadow: 0 30px 60px -16px rgba(28, 43, 38, .4); }
.phone-btn { position: absolute; width: 3px; background: var(--c-ink); }
.phone-btn.l1 { left: -3px; top: 110px; height: 32px; border-radius: 2px 0 0 2px; }
.phone-btn.l2 { left: -3px; top: 154px; height: 50px; border-radius: 2px 0 0 2px; }
.phone-btn.r1 { right: -3px; top: 130px; height: 64px; border-radius: 0 2px 2px 0; }
.phone-screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch-wrap { flex: none; height: 30px; display: flex; align-items: center; justify-content: center; }
.phone-notch { width: 66px; height: 19px; background: var(--c-ink); border-radius: 10px; }
.phone-content {
  flex: 1;
  padding: 10px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
}
.phone-content.checkin { background: linear-gradient(180deg, #fff 0%, var(--c-sage) 100%); }
.phone-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-icon.forest {
  background: var(--c-forest);
  animation: checkPop .5s cubic-bezier(.34, 1.56, .64, 1) .7s both;
}
.phone-icon.forest svg {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: checkDraw .4s ease .95s forwards;
}
@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-icon.forest { animation: none; }
  .phone-icon.forest svg { animation: none; stroke-dashoffset: 0; }
}
.phone-title {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--c-ink);
  white-space: nowrap;
}
.phone-msg { font-size: 12px; color: var(--c-ink-soft); text-align: center; line-height: 1.6; }
.phone-stamp {
  padding: 6px 15px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.phone-stamp.forest { color: var(--c-forest-dark); }

/* hero phone 1：保護者のトーク画面 */
.phone-content.talk {
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  gap: 0;
  background: var(--c-sand);
}
.talk-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.talk-avatar {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--c-sage);
  color: var(--c-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.talk-title { font-size: 11.5px; font-weight: 700; color: var(--c-ink); }
.talk-body {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 0;
}
.talk-day {
  align-self: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(28, 43, 38, .12);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.talk-bubble {
  max-width: 92%;
  padding: 10px 12px;
  background: #fff;
  border-radius: 4px 14px 14px 14px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--c-ink);
  box-shadow: 0 4px 12px -8px rgba(28, 43, 38, .4);
}
.talk-time { font-size: 9px; color: var(--c-ink-soft); padding-left: 4px; }
.talk-foot {
  flex: none;
  padding: 9px 12px;
  background: #fff;
  border-top: 1px solid var(--c-line);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--c-forest-dark);
  text-align: center;
}
/* 2台のスマホの間を通知が飛んでいく演出。
   生徒のスマホ（手前・右）から保護者のスマホ（奥・左）へ向かうよう左右反転させている */
.hero-plane {
  position: absolute;
  left: 42%;
  top: 34%;
  z-index: 4;
  color: var(--c-forest);
  pointer-events: none;
  animation: planeFly 5s ease-in-out infinite;
}
.hero-plane svg { transform: scaleX(-1); }
@keyframes planeFly {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-12px, -14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-plane { animation: none; }
}

.hero-chip {
  position: absolute;
  padding: 10px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 26px -10px rgba(28, 43, 38, .25);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink);
  border: 1px dashed var(--c-line);
}
.hero-chip.c1 { left: -6px; bottom: 36px; transform: rotate(-4deg); }
.hero-chip.c2 { right: -6px; top: 10px; transform: rotate(4deg); }
.hero-chip.c3 { right: -6px; bottom: 26px; transform: rotate(10deg); }

/* ---------- section 共通 ---------- */
.section { position: relative; padding: 130px 56px; overflow: hidden; }
.section-head { max-width: 640px; margin: 0 auto; text-align: center; position: relative; }
.section-label {
  color: var(--c-forest-dark);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
}
.section-title {
  margin: 14px 0 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--c-ink);
  line-height: 1.5;
}

/* ---------- problems ---------- */
.problems { background: var(--c-sand); padding: 100px 56px 132px; }
/* 見出しが長く、既定の 640px だと最終行に数文字だけ残るため広げる */
.problems .section-head { max-width: 800px; }
.problems-grid {
  margin: 64px auto 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.flip-card { position: relative; overflow: hidden; height: 240px; border-radius: 20px; }
.flip-card.light { background: #fff; box-shadow: 0 14px 30px -14px rgba(28, 43, 38, .18); }
.flip-card.dark { background: var(--c-ink); box-shadow: 0 22px 44px -18px rgba(28, 43, 38, .35); }
.flip-inner {
  width: 100%;
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}
.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner { transform: translateY(-240px); }
.flip-face {
  width: 100%;
  height: 240px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.flip-face.front { align-items: center; text-align: center; }
.flip-face.back { gap: 10px; border-top: 1px solid var(--c-line); }
.flip-card.dark .flip-face.back { border-top: 1px solid rgba(255, 255, 255, .12); }
.flip-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.flip-card.light .flip-icon-lg { background: var(--c-sage); color: var(--c-amber-dark); }
.flip-card.dark .flip-icon-lg { background: rgba(255, 255, 255, .1); color: var(--c-forest-light); }
.flip-card:hover .flip-icon-lg { transform: scale(1.08) rotate(-4deg); }
.flip-keyword {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 19px;
}
.flip-card.light .flip-keyword { color: var(--c-ink); }
.flip-card.dark .flip-keyword { color: #fff; }
.flip-card h3 { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.flip-card.light h3 { color: var(--c-ink); }
.flip-card.dark h3 { color: #fff; }
.flip-card p { margin: 0; font-size: 14.5px; line-height: 1.9; }
.flip-card.light p { color: var(--c-ink-soft); }
.flip-card.dark p { color: rgba(255, 255, 255, .8); }

/* ---------- features ---------- */
/* position:sticky は祖先の overflow:hidden で無効化されるため、
   このセクションだけは overflow を解除し、装飾は専用ラッパーで個別にクリップする */
.features { background: var(--c-paper); padding-top: 148px; padding-bottom: 108px; overflow: visible; }
.features-deco-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.features-list { max-width: 1140px; margin: 64px auto 0; position: relative; }
.features-sticky {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.features-sticky-media {
  position: sticky;
  top: 100px;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(28, 43, 38, .28);
  background: var(--c-sage);
}
.sticky-media-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1);
}
.sticky-media-item.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.sticky-media-item .feature-mock { height: 100%; }

/* グリッド項目の既定 min-width:auto だと、中の固定幅モックがカラムを
   コンテナ幅より広げてしまう（狭い画面で横スクロールが出る）ため 0 にする */
.features-sticky-text { display: flex; flex-direction: column; min-width: 0; }
html.has-js .sticky-text-block {
  opacity: .38;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
html.has-js .sticky-text-block.is-active { opacity: 1; transform: translateY(0); }
.sticky-text-block {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.mobile-feature-img { display: none; }

.feature-num {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--c-forest);
}
.feature-text h3 { margin: 10px 0; font-size: 22px; font-weight: 700; color: var(--c-ink); }
.feature-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-ink-soft);
  max-width: 440px;
}

/* feature mock 共通 */
.feature-mock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 100%;
  background: linear-gradient(160deg, var(--c-sage) 0%, #fff 100%);
}

/* feature 01（QR掲示 → 生徒のテンキー） */
.feature-mock .qr-board {
  width: 120px;
  height: 150px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--c-line);
  box-shadow: 0 10px 22px -12px rgba(28, 43, 38, .3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: rotate(-4deg);
  flex: none;
}
.feature-mock .qr-board svg { color: var(--c-ink); }
.feature-mock .qr-board span { font-size: 10.5px; font-weight: 700; color: var(--c-ink); }
.feature-mock .mock-arrow { color: var(--c-forest); flex: none; }
.feature-mock .mini-phone {
  width: 110px;
  height: 210px;
  flex: none;
  background: var(--c-ink);
  border-radius: 24px;
  padding: 7px;
  transform: rotate(4deg);
  box-shadow: 0 14px 28px -12px rgba(28, 43, 38, .4);
}
.feature-mock .mini-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, var(--c-sage) 100%);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mini-screen.keypad { gap: 7px; padding: 12px 10px; justify-content: center; }
.keypad-display {
  width: 100%;
  padding: 6px 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--c-ink);
}
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}
.keypad-grid span {
  padding: 5px 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-ink);
}
.keypad-btn {
  width: 100%;
  padding: 6px 0;
  text-align: center;
  background: var(--c-forest);
  color: #fff;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
}

/* feature 02（保護者へのトーク通知） */
.feature-mock.talk-scene { padding: 28px; }
.talk-card {
  width: 100%;
  max-width: 330px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 16px 32px -16px rgba(28, 43, 38, .28);
  transform: rotate(-1.2deg);
}
.talk-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--c-line);
}
.talk-line { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 12px; }
.talk-bubble.lg {
  max-width: 84%;
  padding: 11px 13px;
  background: var(--c-sage);
  border-radius: 4px 14px 14px 14px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--c-ink);
  box-shadow: none;
}
.talk-stamp { font-size: 9px; color: var(--c-ink-soft); flex: none; }
.talk-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(201, 134, 42, .14);
  color: var(--c-amber-dark);
  font-size: 10px;
  font-weight: 700;
}

/* feature 03（管理ダッシュボード） */
.feature-mock.board-scene { padding: 26px; }
.board-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 32px -16px rgba(28, 43, 38, .28);
  transform: rotate(1deg);
}
.board-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--c-line);
}
.board-date { font-size: 10.5px; color: var(--c-ink-soft); font-weight: 500; }
.board-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.board-stat {
  padding: 8px 4px;
  border-radius: 8px;
  background: var(--c-sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.board-stat.accent { background: var(--c-sage); }
.board-stat-label { font-size: 8.5px; color: var(--c-ink-soft); font-weight: 700; }
.board-stat-num { font-size: 17px; font-weight: 700; color: var(--c-ink); line-height: 1.1; }
.board-stat.accent .board-stat-num { color: var(--c-forest-dark); }
.board-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-line);
}
.board-row:last-child { border-bottom: none; }
.board-chip {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.board-chip.c1 { background: #5B8A72; }
.board-chip.c2 { background: #6E8CA8; }
.board-chip.c3 { background: #A8826E; }
.board-name { flex: 1; font-size: 11.5px; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.board-time { flex: none; font-size: 10.5px; color: var(--c-ink-soft); }
.board-badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.board-badge.active { background: #E7F0FA; color: #2563A8; }
.board-badge.done { background: #EAF3EE; color: #2E7D5B; }
.board-badge.pending { background: #EEF1F0; color: #6B7B74; }

/* feature 04（CSV書き出し） */
.feature-mock.sheet-scene { padding: 26px; }
.sheet-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 32px -16px rgba(28, 43, 38, .28);
  transform: rotate(-1deg);
}
.sheet-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-ink);
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px dashed var(--c-line);
}
.sheet-card-head svg { color: var(--c-forest); flex: none; }
.sheet-grid { display: flex; flex-direction: column; }
.sheet-row {
  display: grid;
  grid-template-columns: 38px 1fr 44px 44px;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  font-size: 10.5px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}
.sheet-row:last-child { border-bottom: none; }
.sheet-row.head {
  font-weight: 700;
  color: var(--c-forest-dark);
  background: var(--c-sage);
  border-radius: 8px;
  padding: 7px 6px;
  border-bottom: none;
}
.sheet-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--c-sage);
  color: var(--c-forest-dark);
  font-size: 10px;
  font-weight: 700;
}

/* feature mini cards */
.feature-cards {
  border-top: 1px dashed var(--c-line);
  padding-top: 44px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mini-card {
  padding: 28px 22px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 24px -16px rgba(28, 43, 38, .15);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mini-card:hover { box-shadow: 0 18px 34px -16px rgba(46, 125, 91, .3); }
.mini-card .icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  background: var(--c-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-forest);
}
.mini-card h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--c-ink); }
.mini-card p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--c-ink-soft); }

/* ---------- flow ---------- */
.flow { background: var(--c-sand); padding-top: 140px; padding-bottom: 118px; }
.flow .section-title { font-size: 33px; line-height: 1.55; }
.flow-list { max-width: 720px; margin: 72px auto 0; position: relative; }
.flow-step {
  position: relative;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 52px;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-step.indent { margin-left: 64px; }
.flow-num {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  background: var(--c-forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 24px;
  box-shadow: 0 12px 24px -8px rgba(46, 125, 91, .5);
  position: relative;
  z-index: 1;
}
.flow-body { padding-top: 14px; }
.flow-body h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--c-ink); }
.flow-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-ink-soft);
  max-width: 420px;
}

/* ---------- security ---------- */
.security { background: var(--c-ink); color: #fff; padding-top: 108px; padding-bottom: 108px; }
.security-inner {
  max-width: 1328px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.security .section-label { color: var(--c-forest-light); }
.security h2 {
  margin: 14px 0 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: #fff;
  line-height: 1.55;
}
.security-lead {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .65);
}
.security-items { display: flex; flex-direction: column; gap: 18px; }
.security-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  /* rgba(255,255,255,.06) を --c-ink 上で合成した色。
     半透明のままだと背後の装飾円が透けてカードを横切ってしまうため、
     見た目を変えずに不透明化している */
  background: #2A3833;
  border-radius: 16px;
}
.security-item .icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: rgba(107, 174, 141, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-forest-light);
}
.security-item h3 {
  margin: 4px 0 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
}
.security-item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
}

/* ---------- pricing ---------- */
.pricing { background: var(--c-paper); padding-top: 108px; padding-bottom: 122px; }
.pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 30%, rgba(46, 125, 91, .15), transparent 70%),
    radial-gradient(35% 45% at 82% 72%, rgba(201, 134, 42, .13), transparent 70%);
}
.pricing > *:not(.deco-circle):not(.float-deco) { position: relative; z-index: 1; }
.pricing .section-title { font-size: 34px; line-height: 1.55; }
.pricing-cards {
  margin: 64px auto 0;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.price-card {
  width: 280px;
  padding: 38px 30px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 22px;
  box-shadow: 0 20px 40px -18px rgba(28, 43, 38, .2);
  position: relative;
  z-index: 1;
}
.price-card.left  { margin-right: -24px; --rv1: rotate(-5deg) translateY(18px); }
.price-card.right { margin-left: -24px; --rv1: rotate(5deg) translateY(18px); }
.price-card.featured {
  width: 300px;
  padding: 44px 34px;
  background: linear-gradient(160deg, rgba(28, 43, 38, .94), rgba(16, 30, 25, .97));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 26px;
  box-shadow: 0 30px 60px -16px rgba(28, 43, 38, .4);
  z-index: 3;
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 18px;
  background: var(--c-amber);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.price-card h3 { margin: 0; font-size: 19px; font-weight: 800; color: var(--c-ink); }
.price-card.featured h3 { font-size: 21px; color: #fff; }
.price-desc { margin: 8px 0 0; font-size: 13.5px; color: var(--c-ink-soft); }
.price-card.featured .price-desc { font-size: 14px; color: rgba(255, 255, 255, .65); }
.price-divider { margin: 20px 0; height: 1px; background: var(--c-line); }
.price-card.featured .price-divider { margin: 22px 0; background: rgba(255, 255, 255, .15); }
.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-ink);
}
.price-card.featured .price-features { gap: 13px; font-size: 14px; color: #fff; }
.price-amount {
  display: block;
  text-align: center;
  margin-top: 28px;
  padding: 15px;
  border-radius: 999px;
  background: var(--c-sage);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--c-forest-dark);
  transition: background .25s ease, transform .25s ease;
}
.price-amount .num { font-size: 17px; }
.price-amount:not(.cta):hover { background: #DCEAE2; transform: translateY(-2px); }
.price-amount.cta {
  background: linear-gradient(135deg, var(--c-forest) 0%, var(--c-forest-dark) 55%, var(--c-amber) 140%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
  transition: background-position .5s ease;
}
.price-amount.cta:hover { background-position: 100% 50%; }
.pricing-note {
  text-align: center;
  margin: 56px auto 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--c-ink-soft);
}

/* campaign banner */
.campaign {
  max-width: 920px;
  margin: 48px auto 0;
  padding: 44px 48px;
  background: var(--c-amber);
  border-radius: 28px;
  box-shadow: 0 26px 50px -20px rgba(201, 134, 42, .5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.campaign-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, .25);
  color: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.campaign h3 {
  margin: 14px 0 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}
.campaign-btn {
  flex: none;
  padding: 18px 40px;
  background: #fff;
  color: var(--c-amber-dark);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  box-shadow: 0 10px 20px -8px rgba(28, 43, 38, .25);
  transition: transform .25s ease;
}
.campaign-btn:hover { transform: translateY(-3px); }

/* ---------- voices（三者の体験） ---------- */
.voices { background: var(--c-sand); padding-top: 112px; padding-bottom: 112px; }
.voices .section-title { font-size: 34px; line-height: 1.55; }
.voice-grid {
  margin: 64px auto 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  padding: 32px 30px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 30px -16px rgba(28, 43, 38, .15);
  display: flex;
  flex-direction: column;
}
.voice-head { display: flex; align-items: center; gap: 14px; }
.voice-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.voice-avatar.forest { background: var(--c-sage); color: var(--c-forest-dark); }
.voice-avatar.amber { background: rgba(201, 134, 42, .16); color: var(--c-amber-dark); }
.voice-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-forest-dark);
  letter-spacing: .04em;
}
.voice-head h3 {
  margin: 4px 0 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--c-ink);
  line-height: 1.35;
}
.voice-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.voice-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-ink);
}
.voice-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-forest);
}
.voice-note {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--c-line);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--c-ink-soft);
}

/* ---------- FAQ ---------- */
.faq { background: var(--c-paper); padding-top: 118px; padding-bottom: 168px; }
.faq .section-title { font-size: 34px; line-height: 1.55; }
.faq-list {
  max-width: 700px;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-q { display: flex; justify-content: flex-end; }
.faq-q > div {
  max-width: 78%;
  padding: 16px 22px;
  background: var(--c-ink);
  color: #fff;
  border-radius: 20px 20px 4px 20px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.6;
}
.faq-a { display: flex; justify-content: flex-start; }
.faq-a > div {
  max-width: 78%;
  padding: 16px 22px;
  background: var(--c-sage);
  color: var(--c-ink);
  border-radius: 20px 20px 20px 4px;
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- contact ---------- */
.contact { padding: 0 56px 130px; background: var(--c-paper); }
.contact-box {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--c-ink);
  border-radius: 40px;
  padding: 88px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-box h2 {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: #fff;
  position: relative;
  line-height: 1.4;
}
.contact-box p {
  margin: 18px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, .75);
  position: relative;
}
.contact-btn {
  display: inline-flex;
  margin-top: 36px;
  padding: 18px 42px;
  background: var(--c-paper);
  color: var(--c-ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  transition: background .25s ease, transform .25s ease;
}
.contact-btn:hover { background: #fff; transform: translateY(-2px); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: 70px 56px 32px;
  background: var(--c-paper);
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 800;
  font-size: 150px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(28, 43, 38, .08);
  white-space: nowrap;
  pointer-events: none;
}
.footer-inner {
  max-width: 1328px;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand img { height: 44px; width: auto; }
.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-ink-soft);
}
.footer-nav a { transition: color .2s ease; }
.footer-nav a:hover { color: var(--c-forest-dark); }
.footer-bottom {
  max-width: 1328px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--c-line);
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--c-ink-soft);
}

/* ---------- 改行制御 ---------- */
.br-mobile { display: none; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .hero h1 { font-size: 50px; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .security-inner { grid-template-columns: 1fr; gap: 40px; }
  .voice-grid { grid-template-columns: 1fr; max-width: 560px; }
  .voice-card.rv-var { --rv1: none !important; }
}

@media (max-width: 900px) {
  /* ヘッダーはロゴ＋ハンバーガーの2要素だけに絞る。
     お問い合わせCTAはドロワー内に同じものがあるため、ここでは出さない */
  .site-header { padding: 8px 18px; }
  .site-nav { gap: 14px; }
  .site-nav .nav-link { display: none; }
  .nav-cta { display: none; }
  .brand img { height: 40px; }
  .nav-toggle { display: flex; width: 40px; height: 40px; }
  /* ドロワーはヘッダーの直下(8+40+8=56px)に吸着させる */
  .mobile-menu { top: 56px; }
  .hero { padding: 56px 24px 100px; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-desc br { display: none; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .section { padding: 90px 24px; }
  .problems { padding: 90px 24px; }
  /* 見出しが長く 36px だと1行に収まりきらないため、この幅から少し落とす */
  .problems .section-title { font-size: 31px; }
  .features { padding-top: 90px; padding-bottom: 90px; }
  .flow { padding-top: 90px; padding-bottom: 90px; }
  .security { padding-top: 90px; padding-bottom: 90px; }
  .pricing { padding-top: 90px; padding-bottom: 90px; }
  .voices { padding-top: 90px; padding-bottom: 90px; }
  .faq { padding-top: 90px; padding-bottom: 110px; }
  .hero::before { display: none; }

  /* スティッキー演出はデスクトップのみ。モバイルはモック+テキストを縦積み */
  .features-sticky { grid-template-columns: 1fr; gap: 12px; }
  .features-sticky-media { display: none; }
  html.has-js .sticky-text-block { opacity: 1; transform: none; }
  .sticky-text-block {
    min-height: auto;
    padding: 32px 0;
    border-top: 1px dashed var(--c-line);
  }
  .sticky-text-block:first-child { border-top: none; }
  /* モックはCSSで描いており高さが中身に依存するため、比率固定にすると内容が切れる。
     高さは中身なりに伸ばし、下限だけ min-height で確保する */
  .mobile-feature-img {
    display: block;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 14px 28px -16px rgba(28, 43, 38, .25);
    background: var(--c-sage);
  }
  .mobile-feature-img .feature-mock { height: auto; min-height: 250px; padding: 26px 22px; }

  .pricing-cards { flex-direction: column; align-items: center; gap: 32px; }
  .price-card.left,
  .price-card.right { margin: 0; --rv1: none; }
  .price-card { width: 100%; max-width: 360px; }
  .price-card.featured { width: 100%; max-width: 380px; }
  .campaign { padding: 36px 28px; justify-content: center; text-align: center; }
  .contact { padding: 0 24px 90px; }
  .contact-box { padding: 64px 28px; }
  .site-footer { padding: 56px 24px 24px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-watermark { font-size: 90px; bottom: -20px; }
}

@media (max-width: 560px) {
  /* 「着いた」が届く。/ 専用機材ゼロ〜 が2文字だけ溢れるため、収まる字送りまで詰める */
  .hero h1 { font-size: 33px; }
  .hero-sub { font-size: 15.5px; letter-spacing: -.01em; }
  .hero-badge { white-space: normal; font-size: 12px; }
  .section-title { font-size: 26px; }
  /* ≤900 で 31px を指定しているので、スマホ幅では上書きして戻す */
  .problems .section-title { font-size: 24px; }
  .flow .section-title,
  .pricing .section-title,
  .voices .section-title,
  .faq .section-title { font-size: 24px; }
  .security h2 { font-size: 23px; }
  .security-lead { font-size: 14px; }
  .security-lead br { display: none; }
  .problems-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feature-cards { grid-template-columns: 1fr; }
  .flow-step { gap: 20px; }
  .flow-step.indent { margin-left: 0; }
  .flow-num { width: 60px; height: 60px; font-size: 19px; }
  .campaign h3 { font-size: 22px; }
  .contact-box h2 { font-size: 25px; }
  .footer-watermark { font-size: 56px; }
  .faq-q > div, .faq-a > div { max-width: 90%; }

  /* 見出しの改行はスマホ幅で切り替え */
  .br-mobile { display: block; }
  .br-desktop { display: none; }

  /* ヒーローのスマホ2枚：transformで縮小し、実機に近い比率を保ったまま重ねる */
  .hero-visual { height: 400px; }
  .phone-1 {
    left: 20px;
    top: 6px;
    transform: rotate(6deg) scale(.66);
    transform-origin: top left;
  }
  .phone-2 {
    right: 8px;
    bottom: 0;
    transform: rotate(-5deg) scale(.9);
    transform-origin: bottom right;
  }
  .hero-chip { display: none; }
  /* スマホ幅では2台の重なりが深く、紙飛行機を置く余白がないため非表示 */
  .hero-plane { display: none; }

  /* 背景の星は文字と重なりやすいのでスマホ版では非表示 */
  .float-deco { display: none; }

  /* PROBLEMカード：スクエア型にし、文字がボックスからはみ出さないよう縮小 */
  .flip-card { height: 158px; }
  .flip-card:hover .flip-inner,
  .flip-card.flipped .flip-inner { transform: translateY(-158px); }
  .flip-face { height: 158px; padding: 14px 12px; gap: 8px; }
  .flip-face.back { gap: 6px; }
  .flip-icon-lg { width: 42px; height: 42px; border-radius: 12px; }
  .flip-icon-lg svg { width: 18px; height: 18px; }
  .flip-keyword { font-size: 13px; line-height: 1.3; }
  .flip-card h3 { font-size: 12.5px; }
  .flip-card p { font-size: 10.5px; line-height: 1.5; }

  /* モバイルのモックは横並びが窮屈なので余白を詰める */
  .feature-mock { gap: 10px; }
  .feature-mock.talk-scene,
  .feature-mock.board-scene,
  .feature-mock.sheet-scene { padding: 18px; }

  /* feature 01 は QRボード＋矢印＋ミニ端末の固定幅横並びなので、
     画面幅に収まるよう段階的に縮める */
  .mobile-feature-img .feature-mock { padding: 20px; }
  .feature-mock .qr-board { width: 104px; height: 132px; }
  .feature-mock .qr-board svg { width: 46px; height: 46px; }
  .feature-mock .mini-phone { width: 96px; height: 184px; border-radius: 20px; }
  .feature-mock .mock-arrow { width: 22px; height: 22px; }

  /* フッターメニューは折り返さず1行に収める */
  .footer-nav {
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 11px;
    justify-content: center;
  }
  .footer-nav a { white-space: nowrap; }
}

/* iPhone SE(第1世代)などの 320px 幅。固定幅のモックがはみ出すのでさらに縮める */
@media (max-width: 380px) {
  .mobile-feature-img .feature-mock { padding: 14px; }
  .feature-mock { gap: 8px; }
  .feature-mock .qr-board { width: 88px; height: 112px; gap: 6px; }
  .feature-mock .qr-board svg { width: 38px; height: 38px; }
  .feature-mock .qr-board span { font-size: 9px; }
  .feature-mock .mini-phone { width: 80px; height: 152px; border-radius: 18px; padding: 5px; }
  .feature-mock .mock-arrow { width: 18px; height: 18px; }
  .keypad-display { font-size: 12px; padding: 4px 0; }
  .keypad-grid span { font-size: 9px; padding: 3px 0; }
  .keypad-btn { font-size: 8.5px; }
  .feature-mock.talk-scene,
  .feature-mock.board-scene,
  .feature-mock.sheet-scene { padding: 12px; }

  /* 6項目を1行に保つため、この幅では左右余白も削る */
  .site-footer { padding-left: 14px; padding-right: 14px; }
  .footer-nav { gap: 4px; font-size: 10px; }

  /* 1行に収まらず1〜2文字だけ溢れる箇所を、収まるサイズまで詰める */
  .hero h1 { font-size: 27px; }
  .flow .section-title { font-size: 19px; }
  .problems .section-title { font-size: 22px; }
  .security h2 { font-size: 19px; }
  .voice-list li { font-size: 11.5px; }
  .price-features { font-size: 12.5px; }
  .price-card.featured .price-features { font-size: 13px; }
  .voice-list li { padding-left: 20px; }
  .voice-list li::before { width: 7px; height: 7px; }
  .mini-card p { font-size: 12px; }
  .voice-card { padding: 26px 22px; }
  .price-card { padding: 32px 24px; }
  .price-card.featured { padding: 38px 26px; }
}
