:root {
  --navy: #1f365c;
  --navy-deep: #142843;
  --coral: #ff7f73;
  --coral-dark: #f1685c;
  --sky: #5fa8ff;
  --sky-soft: #eaf4ff;
  --green: #06c755;
  --white: #ffffff;
  --surface: #f3f6fa;
  --text: #26384f;
  --muted: #6f7d90;
  --border: #dce7f3;
  --shadow: 0 18px 40px rgba(31, 54, 92, 0.10);
  --shadow-soft: 0 10px 24px rgba(31, 54, 92, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.container.narrow { width: min(calc(100% - 40px), 900px); }

.section { padding: 104px 0; }
.section-soft {
  background:
    radial-gradient(circle at 10% 10%, rgba(95,168,255,.09), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, var(--surface) 100%);
}
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h2,
.app-copy h2,
.final-cta h2 {
  margin: 6px 0 14px;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.35;
  letter-spacing: .02em;
}
.section-heading p { margin: 0; color: var(--muted); }
.section-kicker,
.eyebrow {
  color: var(--sky);
  font-weight: 800;
  letter-spacing: .16em;
  font-size: .76rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,231,243,.75);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  font-family: "Playfair Display", serif;
  color: var(--navy);
  font-size: 1.72rem;
  letter-spacing: .1em;
}
.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--navy);
  font-size: .94rem;
  font-weight: 600;
}
.global-nav a:not(.button):hover { color: var(--sky); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.button {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding: 0 18px; font-size: .85rem; }
.button-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(255,127,115,.22);
}
.button-coral:hover { background: var(--coral-dark); }
.button-line {
  color: var(--white);
  background: linear-gradient(135deg, #10cf5c, #04b94c);
  box-shadow: 0 14px 28px rgba(6,199,85,.22);
}
.line-badge,
.line-icon {
  display: inline-grid;
  place-items: center;
  font-size: .66rem;
  font-weight: 800;
}
.line-badge {
  background: #fff;
  color: var(--green);
  padding: 5px 7px;
  border-radius: 6px;
}
.button-outline {
  color: var(--navy);
  border-color: #aabdd3;
  background: rgba(255,255,255,.75);
}

.hero {
  position: relative;
  padding-top: 84px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background:
    radial-gradient(circle at 80% 10%, rgba(95,168,255,.12), transparent 24%),
    radial-gradient(circle at 65% 70%, rgba(255,127,115,.08), transparent 26%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 72px;
  align-items: center;
}
.hero-copy h1 {
  color: var(--navy);
  font-size: clamp(2.8rem, 2vw, 5.2rem);
  line-height: 1.18;
  margin: 10px 0 24px;
  letter-spacing: -.03em;
}
.hero-copy h1 span { color: var(--navy); }
.hero-lead {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 26px;
}
.hero-lead > .parents{
 color:rgb(247,103,94);
 font-size:120%;
 margin-right:4px;
}
/*
.hero-lead > .parents-after{
 text-decoration:underline;
 text-underline-offset: 4px;
 color:rgb(247,03,04);
 font-size:120%;
 margin-right:4px;
 color: rgb(72 146 197);
 font-size: 120%;
 margin-right: 4px;
}
*/
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}
.hero-points li {
  padding: 8px 13px 8px 34px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-size: .84rem;
  font-weight: 600;
  position: relative;
}
.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  color: var(--sky);
}
.hero-actions { display: flex; /*gap: 12px;*/ flex-wrap: wrap; }

.hero-visual {
  min-height: 600px;
  position: relative;
}
.soft-blob {
  position: absolute;
  border-radius: 45% 55% 58% 42% / 45% 42% 58% 55%;
  filter: blur(.2px);
}
.blob-one {
  width: 420px; height: 340px; right: 20px; top: 50px;
  background: #fff0ea;
}
.blob-two {
  width: 290px; height: 250px; left: 35px; top: 130px;
  background: #e8f3ff;
}
.card {
  background: rgba(255,255,255,.93);
  border: 1px solid rgba(220,231,243,.9);
  box-shadow: var(--shadow);
  border-radius: var(--radius-md);
}
.family-scene {
  position: absolute;
  left: 0;
  top: 110px;
  width: 235px;
  min-height: 240px;
  padding: 28px;
}
.family-receiver {
  left: auto;
  right: 0;
  top: 255px;
  width: 205px;
  min-height: 210px;
}
.scene-illustration { position: relative; height: 130px; }
.person-head {
  width: 72px; height: 72px; border-radius: 50%;
  position: absolute; left: 50%; transform: translateX(-50%);
  background: #f2d2bf;
  border: 8px solid #d8dce5;
}
.person-head.child { border-color: #7a5547; background: #efc4aa; }
.person-body {
  width: 110px; height: 76px; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  border-radius: 46% 46% 18% 18%;
}
.elderly-body { background: #d9c8ea; }
.child-body { background: #ffb9ae; }
.phone-cord {
  position: absolute;
  width: 44px; height: 76px;
  border: 5px solid var(--coral);
  border-left: 0;
  border-radius: 0 28px 28px 0;
  right: 12px; top: 22px;
}
.scene-copy { display: grid; gap: 4px; text-align: center; }
.scene-copy strong { color: var(--navy); }
.scene-copy span { font-size: .78rem; color: var(--muted); }

.phone-mockup {
  width: 248px;
  height: 500px;
  border: 10px solid #172536;
  border-radius: 38px;
  background: #172536;
  box-shadow: 0 26px 58px rgba(20,40,67,.24);
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%) rotate(4deg);
  z-index: 3;
  overflow: hidden;
}
.phone-speaker {
  position: absolute;
  z-index: 5;
  width: 74px; height: 12px;
  background: #0b1520;
  border-radius: 0 0 10px 10px;
  top: 0; left: 50%; transform: translateX(-50%);
}
.phone-screen {
  height: 100%;
  padding: 40px 15px 20px;
  background: linear-gradient(180deg, #31527c, #dbe9f5 38%, #edf5fb);
}
.phone-header { color: white; font-weight: 700; margin-bottom: 30px; }
.chat-bubble {
  display: grid;
  gap: 8px;
  background: white;
  border-radius: 14px;
  padding: 16px;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}
.chat-bubble small { color: var(--muted); }
.chat-bubble strong, .chat-bubble span { font-size: .76rem; }
.chat-bubble .risk { color: #c9564c; font-weight: 700; }
.chat-bubble button {
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: #eef4fb;
  color: var(--navy);
  font-weight: 700;
  padding: 10px;
}
.hero-flow {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: min(100%, 560px);
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}
.hero-flow div { display: grid; justify-items: center; /*gap: 5px;*/ }
.hero-flow b {
  width: 34px; height: 34px; display: grid; place-items: center;
  color: white; background: var(--sky); border-radius: 50%;
  font-size: 1rem;
}
.hero-flow span { /*font-size: .72rem;*/font-size:1.3rem; font-weight: 700; color: var(--navy); }
.hero-flow i { color: var(--sky); font-size: 1.8rem; font-style: normal; }

.card-grid {
  display: grid;
  gap: 22px;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.info-card,
.feature-card,
.reason-card,
.flow-card,
.price-card,
.ui-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
}
.info-card {
  text-align: center;
 /* padding: 34px 26px;*/
  display: flex;
  flex-direction: column;
}
.info-card h3,
.feature-card h3,
.reason-card h3,
.flow-card h3,
.ui-card h3 {
  color: var(--navy);
  line-height: 1.55;
}
.info-card p{
 display:none;
 padding: 0 30px;
}
.info-card p,
.feature-card p,
.reason-card p,
.flow-card p,
.ui-card p {
  color: var(--muted);
  font-size: .9rem;
}
.icon-circle,
.feature-icon,
.flow-icon {
  display: grid;
  place-items: center;
  margin-inline: auto;
  color: var(--sky);
  background: var(--sky-soft);
  border-radius: 50%;
  font-weight: 800;
}
.icon-circle { width: 72px; height: 72px; font-size: 1.7rem; }
.problem-summary {
  margin: 34px 0 0;
  text-align: center;
  color: var(--navy);
  font-weight: 700;
}
.problem-summary span { color: var(--coral); }

.feature-card {
  position: relative;
  padding: 34px 24px 28px;
  text-align: center;
}
.feature-number {
  position: absolute;
  left: 18px; top: 18px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sky);
  color: white;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 700;
}
.feature-icon { width: 64px; height: 64px; margin-bottom: 14px; }

.section-app {
  background: linear-gradient(135deg, #f7fbff 0%, #edf6ff 55%, #fff 100%);
}
.app-grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 58px;
  align-items: center;
}
.app-copy p { color: var(--muted); max-width: 440px; }
.app-preview {
  display: grid;
  grid-template-columns: .85fr 1fr 1fr;
  gap: 18px;
  align-items: center;
}
.phone-large {
  position: relative;
  left: auto; top: auto;
  transform: none;
  width: 220px;
  height: 440px;
}
.ui-card {
  padding: 24px;
  min-height: 330px;
}
.ui-card h3 { margin-top: 0; }
.ui-card > a {
  color: var(--sky);
  font-weight: 700;
  font-size: .85rem;
}
.history-list { list-style: none; padding: 0; margin: 0 0 20px; }
.history-list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.history-list b { font-size: .84rem; color: var(--navy); }
.history-list span { font-size: .74rem; color: var(--muted); }
.tabs { display: flex; gap: 12px; font-size: .72rem; color: var(--muted); margin-bottom: 16px; }
.tabs .active { color: var(--sky); font-weight: 700; border-bottom: 2px solid var(--sky); }
.audio-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 12px; background: var(--surface);
}
.audio-row button { border: 0; color: white; background: var(--navy); width: 34px; height: 34px; border-radius: 50%; }

.reason-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.reason-card {
  text-align: center;
  padding: 28px 18px;
}
.reason-card > div {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--sky);
  font-weight: 800;
}
.reason-card > div.line-icon { background: var(--green); color: #fff; border-radius: 16px; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.flow-card { 
  /*padding: 28px;*/
 padding-top:20px;
 text-align: center;
 position: relative;
 display: flex;
 flex-direction: column;
 align-items: center;
 }
.flow-card > h3 {
 padding:0;
 margin: 0;
}
.flow-card > p {
 padding: 0 20px;
}
.flow-card > span {
  display: inline-block;
  background: var(--sky);
  color: white;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
}
.flow-icon { width: 68px; height: 68px; margin-top: 18px; }
.flow-icon.line-icon { background: var(--green); color: white; border-radius: 18px; }
.flow-note { text-align: center; color: var(--muted); margin-top: 26px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card { padding: 34px 30px; text-align: center; position: relative; }
.price-card h3 { color: var(--navy); font-size: 1.2rem; }
.price { color: var(--navy); display: flex; justify-content: center; align-items: baseline; gap: 5px; }
.price strong { font-size: 3rem; letter-spacing: -.04em; }
.price span { font-weight: 700; }
.price-target { color: var(--muted); }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  color: var(--text);
}
.price-card li { padding: 9px 0; border-bottom: 1px solid var(--border); }
.price-card .button { width: 100%; }
.price-card.recommended {
  border: 2px solid var(--coral);
  transform: translateY(-10px);
  box-shadow: 0 22px 48px rgba(255,127,115,.16);
}
.recommended-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--coral);
  color: white;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}
.pricing-note { text-align: center; margin-top: 26px; color: var(--navy); font-weight: 600; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 0 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  color: var(--navy);
  font-weight: 700;
  padding: 20px 42px 20px 42px;
  position: relative;
}
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sky-soft);
  color: var(--sky);
  display: grid;
  place-items: center;
}
.faq-item summary::after {
  content: "＋";
  position: absolute;
  right: 0;
  color: var(--sky);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 42px 20px; color: var(--muted); }

.final-cta { 
  /*padding-top: 70px;*/
  padding-top: 0;
  padding-bottom: 0;
 }
.final-cta-inner {
  min-height: 330px;
  background: linear-gradient(120deg, #ff9c8f, #ff746a);
  border-radius: 30px;
  padding: 52px 64px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 46px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.final-cta h2, .final-cta p { color: white; }
.final-cta p { margin-bottom: 24px; }
.final-cta-art {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: end;
}
.mini-family {
  width: 120px; height: 170px;
  display: grid; place-items: center;
  color: var(--navy);
  background: #f7d7c4;
  border-radius: 60px 60px 28px 28px;
  font-weight: 800;
  border: 8px solid rgba(255,255,255,.5);
}
.child-mini { height: 200px; background: #ffd0c8; }

.site-footer {
 /* margin-top: 80px;*/
  background: var(--navy-deep);
  color: rgba(255,255,255,.85);
  padding: 48px 0 22px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.brand-light { color: white; }
.footer-inner p { margin: 8px 0 0; color: rgba(255,255,255,.58); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 26px; font-size: .84rem; }
.footer-nav a:hover { color: white; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.48);
}
.floating-cta {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: none;
  background: var(--green);
  color: white;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(6,199,85,.28);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .hero-grid, .app-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-points, .hero-actions { justify-content: center; }
  .hero-visual { max-width: 670px; width: 100%; margin-inline: auto; }
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .reason-grid { grid-template-columns: repeat(3, 1fr); }
  .app-copy { text-align: center; }
  .app-copy p { margin-inline: auto; }
}

@media (max-width: 820px) {
  .section { padding: 78px 0; }
  .menu-toggle { display: block; }
  .global-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 24px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.98);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .global-nav.is-open { display: flex; }
  .global-nav a { text-align: center; }

  .card-grid.three,
  .pricing-grid,
  .flow-grid { grid-template-columns: 1fr; }
  .app-preview { grid-template-columns: 1fr 1fr; }
  .phone-large { grid-column: 1 / -1; margin-inline: auto; }
  .price-card.recommended { transform: none; }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .final-cta-inner { grid-template-columns: 1fr; text-align: center; padding: 42px 28px; }
  .final-cta-art { order: 2; }
  .footer-inner { flex-direction: column; }
  .floating-cta { display: inline-flex; }
}

@media (max-width: 640px) {
  .container, .container.narrow { width: min(calc(100% - 28px), var(--container)); }
  .hero { padding-top: 56px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 1vw, 3.5rem); }
  .hero-lead br { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 560px; }
  .family-scene { width: 190px; left: -6px; }
  .family-receiver { width: 172px; right: -8px; }
  .phone-mockup { width: 210px; height: 430px; }
  .hero-flow { padding: 14px 10px; }
  .hero-flow span { font-size: .62rem; }
  .card-grid.four,
  .reason-grid,
  .app-preview { grid-template-columns: 1fr; }
  .feature-card, .info-card, .price-card { padding-inline: 22px; }
  .phone-large { grid-column: auto; }
  .final-cta-art { transform: scale(.82); margin: -20px 0; }
  .footer-nav { flex-direction: column; gap: 10px; }
}

/* ===== 画像パーツ組み込み調整 ===== */

/* --- ヒーロー：統合イラスト1枚＋4ステップカード --- */
.hero-visual {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-main-image {
  width: 120%;
  height: auto;
}
.hero-flow {
  position: static;
  transform: none;
  margin-inline: auto;
}
.hero-flow-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
}

/* --- お悩み3カード：上部イラスト --- */
.nayami-illustration {
  height: 185px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
 /* margin: 0 auto 18px;*/
}

/* --- できること4カード：アイコン画像 --- */
.feature-icon-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 14px;
}

/* --- LINE通知セクション：スクリーンショット3枚 --- */
.app-phone-image {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-inline: auto;
}
/* お手本どおり下部をセクション境界で切り落とす（.section-appのoverflow:hiddenとセット）。
   820px以下は縦積みになり下のカードと重なるためデスクトップ幅のみ適用 */
@media (min-width: 821px) {
  .app-phone-image { margin-bottom: -150px; }
}
.app-ui-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
    margin-left: 40px;
    border: solid 1px;
}
.app-phone-image{
    width: 128%;
    margin-right: 200px;
}

/* --- 選ばれる理由5カード：イラスト（横長）とアイコンの高さを揃える --- */
.reason-illustration-img {
  height: 120px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 14px;
}
.reason-icon-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 14px; /* flowアイコン(120px)と同スケールに統一 */
}

/* --- ご利用の流れ4カード：アイコン画像 --- */
.flow-icon-img {
  height: 120px;
  width: 120px;
  object-fit: contain;
  /*margin: 18px auto 0;*/
}
.flow-icon-family {
  width: auto;
  max-width: 100%;
}

/* --- 最終CTA：焼き込みバナー＋透明リンク --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.final-cta-inner {
  display: block;
  min-height: 0;
  background: none;
  border-radius: 0;
  padding: 0;
}
.final-cta-banner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}
.final-cta-banner img {
  width: 100%;
  height: auto;
}
/* バナー内の緑LINEボタン位置（横32%〜75%・縦63%〜83%）に重ねる透明リンク */
.final-cta-hotspot {
  position: absolute;
  left: 32%;
  top: 63%;
  width: 43%;
  height: 20%;
  border-radius: 999px;
}
.final-cta-hotspot:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  /* スマホ画像は1行目いっぱいに（旧 .phone-large と同じ扱い） */
  .app-phone-image { grid-column: 1 / -1; }
  .final-cta-mobile-button {
    display:none;
   }
}

@media (max-width: 640px) {
  .app-phone-image { grid-column: auto; }
  .hero-flow-icon { width: 44px; height: 44px; }
  .nayami-illustration { height: 120px; }
  /* バナー内の文字が小さくなるためボタン画像を併設 */
  .final-cta-mobile-button {
    display: block;
    width: min(100%, 360px);
    margin: 18px auto 0;
  }
}

/* --- CTAボタン画像（cta_line.png）と特徴ボタン --- */
.cta-image-link {
  display: inline-block;
  width: min(420px, 100%);
  border-radius: 999px;
  transition: transform .18s ease, filter .18s ease;
}
.cta-image-link img {
  display: block;
  width: 100%;
  height: auto;
}
.cta-image-link:hover { transform: translateY(-2px); filter: brightness(1.04); }
.cta-image-link:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.button-more::after { content: "›"; margin-left: 8px; font-size: 1.1em; line-height: 1; }

/* --- ヒーロー画像を大きく（右カラムを拡大）。1040px以下の1カラム化を壊さないようmin-widthで限定 --- */
@media (min-width: 1041px) {
  .hero-grid {
    grid-template-columns: .86fr 1.14fr;
    gap: 44px;
  }
  .final-cta-mobile-button{
    display:none;
  }
}
.hero-main-image { max-width: none; }

/* --- LINE通知セクション：スマホを大きく＆下端で切る --- */
.section-app {
  overflow: hidden;
  padding-bottom: 0;
}
@media (max-width: 820px) {
  /* 縦積み時は切り落としをやめるため下余白を戻す */
  .section-app { padding-bottom: 64px; }
}
/* デスクトップのみ3カラム（モバイルのメディアクエリを上書きしないようmin-widthで限定） */
@media (min-width: 821px) {
  .app-preview {
    grid-template-columns: 1.05fr 1fr 1fr;
    align-items: center;
  }
}
/* 820px以下: 横スクロールのカルーセルで1枚ずつ大きく見せる */
@media (max-width: 820px) {
  .app-preview {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 16px;
  }
  .app-preview > img {
    width: min(80vw, 330px);
    max-width: none;
    height: auto;
    flex: 0 0 auto;
    scroll-snap-align: center;
    margin: 0;
  }
  .app-phone-image { margin-bottom: 0; }
}

/* --- ヘッダー左上ロゴ（reclassアプリと共通のlogo-header.png） --- */
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .brand-logo { height: 36px; }
}

/* --- 最終CTAのモバイル併設ボタン: PC/タブレットでは非表示（.cta-image-linkのdisplay上書き対策で詳細度を上げる） --- */
.cta-image-link.final-cta-mobile-button { display: none; }
@media (max-width: 640px) {
  .cta-image-link.final-cta-mobile-button { display: block; width: min(100%, 360px); margin: 18px auto 0; }
}
