/* ===== Minimal modern reset (project-safe) ===== */
/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}
p {
  font-size: 30px;
  text-align: center;
}
/* Remove default margins */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Lists */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.lp_body {
  scroll-behavior: smooth;
}
/* 必要なら見切れ対策 */
#feelings,
#support,
#about,
#flow,
#faq,
#entry {
  scroll-margin-top: 80px; /* 固定ヘッダー分は適宜 */
}

/* Media */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Forms */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
}

/* Anchors */
a {
  text-decoration: none;
  color: inherit;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === LP layout CSS (960px以下は中央のみ) === */
:root {
  --bg: #fffaeb;
  --paper: #fff;
  --ink: #ff9824;
  --brand: #1b49a1;
  --accent: #1e3a8a;
  --muted: #fffaeb;
  --radius-lg: 20px;
  --radius-md: 14px;
}
html,
body {
  height: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, system-ui, -apple-system, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
.wrapper {
  width: min(1200px, 100%);
  margin-inline: auto;
}

/* 3カラム（左ナビ / 中央ボディ / 右スタック）
.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr 360px;
  gap: 24px;
  align-items: start;
  justify-content: center;
} */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto minmax(0, 960px) auto 1fr;
  grid-template-areas: ". left main right .";
  gap: 24px;
  align-items: start;
  width: 100%; /* 画面幅いっぱい */
  margin: 0 auto; /* 念のため中央 */
}

.left {
  grid-area: left;
  justify-self: end;
} /* 右寄せ */
.main {
  grid-area: main;
  justify-self: stretch;
} /* 中央列にピタッと */
.right {
  grid-area: right;
  justify-self: start;
} /* 左寄せ */

/* 左：ナビ（5項目） */
.side-nav {
  position: fixed;
  z-index: 1;
  top: 8rem;
  left: 6%;
  width: 15rem;
  margin-left: 100px;
  margin-top: 150px;
}
.side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3rem;
}
.side-nav__link {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.side-nav__link:hover {
  color: var(--accent);
  font-weight: 700;
}

/* 中央：LP本文（幅430pxで縦スクロール） */
.lp_body {
  max-width: 40rem;
  margin: 0 auto;
  height: 100vh; /* ← ビューポートいっぱい */
  overflow-y: auto; /* ← メインだけスクロール可能に */
  box-shadow: 0 8px 18px rgba(97, 87, 43, 0.3);
  position: relative;
  background: var(--paper);
  /* 追加：各ブラウザのスクロールバー非表示 */
  -ms-overflow-style: none; /* IE/旧Edge */
  scrollbar-width: none; /* Firefox */
}

.lp_body::-webkit-scrollbar {
  width: 0;
  height: 0; /* Chrome/Safari */
}

.lp_body .inner {
  width: 100%;
  margin: 0 auto;
}
.lp_body img {
  box-shadow: var(--shadow);
}

/* すべての本文画像を親幅100%で表示（アイコン等は除外） */
#fv img,
.lp_body > img,
.btn-fixed > img {
  display: block;
  width: 100%;
  height: auto;
}

/* lp_body内の画像は原則フル幅。ただしアイコン類(.qa-icon)は除外 */
.lp_body img:not(.qa-icon) {
  width: 100%;
  height: auto;
  display: block;
}

/* 右：CTA + スライダー */
.stack {
  position: fixed;
  z-index: 1;
  width: 25.5rem;
  height: 100vh;
  top: 0;
  left: 70%;
  padding-top: 14rem;

  overflow: visible;
}

.cta-card {
  padding: 22px;
  text-align: center;
}

.btn-cta {
  position: relative;
  display: inline-block;
  text-align: center;
  border-radius: 50px;
  overflow: hidden;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
}

/* シャイニーの光 */
.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: shinyshiny 3s ease-in-out infinite;
}

/* 光が流れるアニメーション */
@keyframes shinyshiny {
  0% {
    left: -75%;
  }
  50% {
    left: 125%;
  }
  100% {
    left: 125%;
  }
}

.slider-card {
  padding: 14px;
}

.btn-cta.floating-cta {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 1000;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: clamp(350px, 40vw, 600px);
  padding: 1.5rem 3rem;
  font-weight: 700;
  box-sizing: border-box;
}
.cta_position {
  background-image: url(../images/body_sp1_mv_2.webp);
  background-position: center top;
  background-size: 100%;
}
.cta_position_btm {
  position: relative;
}
.cta_p {
  padding-bottom: 10px;
}
.cta_size {
  width: 90%;
  margin: 0 auto;
  padding-bottom: clamp(1.125rem, 1.068rem + 0.24vw, 1.25rem);
}

.cta_size_btm {
  position: absolute;
  bottom: 30px;
  left: 4%;
  width: 90%;
  margin: 0 auto;
  padding-bottom: clamp(1.125rem, 1.068rem + 0.24vw, 1.25rem);
}
.navy {
  bottom: 40px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 0 #0e1a3d, 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 1rem 5rem;
}
.navy2 {
  bottom: 10px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 0 #0e1a3d, 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 1rem 5rem;
}
.navy3 {
  bottom: 10px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 0 #0e1a3d, 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px; /* PC時の上限（必要に応じて調整） */
  aspect-ratio: 5 / 1.3; /* 縦横比を固定（比率は見た目に合わせて） */

  font-size: clamp(0.9rem, 2vw, 1.3rem);
}

@media (max-width: 768px) {
  .btn-cta.floating-cta {
    left: 50%;
  }
}

.btn-cta.floating-cta.active {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* 押したときのアクション */
.btn-cta:hover {
  transform: translateY(4px);
  box-shadow: 0 0 0 #0e1a3d, 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* hover時：下に少し押し込む */
.btn-cta.floating-cta.active:hover {
  transform: translate(-50%, 4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 左右を固定（自然な追従 sticky） */
@media (min-width: 961px) {
  .side-nav,
  .stack {
    position: sticky;
    align-self: start;
    height: fit-content;
  }

  html,
  body {
    height: 100%;
    overflow: hidden;
  }
}

/* 960px以下は中央のみ表示（左右は非表示） */
@media (max-width: 960px) {
  html,
  body {
    height: auto; /* 必要なら auto に */
    min-height: 100%;
    overflow: auto; /* ← これでウィンドウがスクロールできる */
    overflow-x: hidden; /* 横だけ抑止 */
  }

  .lp_body {
    max-width: none;
    width: 100%;
    margin: 0;
    height: auto;
    overflow: visible; /* ← ウィンドウスクロールに委譲 */
    box-shadow: none;
  }
  /* グリッドをオフ＝1カラム化（gapの横余白も消える） */
  .hero-grid {
    display: block; /* ← これで grid の横方向の振る舞いを無効化 */
    width: 100%;
    margin: 0;
  }

  /* 左右は消す */
  .left,
  .right,
  .side-nav,
  .stack {
    display: none !important;
  }

  /* メインだけ100%幅に */
  .main {
    width: 100%;
  }
  .lp_body {
    max-width: none; /* 30rem を無効化 */
    width: 100%;
    margin: 0;
    height: auto;
    overflow: visible; /* スクロールバーも出さない */
    box-shadow: none; /* 影のはみ出し防止（任意） */
  }

  /* 念のため横スクロール殺し */
  html,
  body {
    overflow-x: hidden;
  }
}

/* Swiper微調整（使う場合） */
.swiper {
  --swiper-theme-color: var(--brand);
}
.swiper-slide {
  border-radius: 12px;
  overflow: hidden;
}

/* FAQ */
/* ===============================
   Accordion 全体レイアウト
================================ */
.accordion {
  width: 100%;
  font-family: "Noto Sans JP", sans-serif;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  overflow: hidden; /* はみ出し防止 */
}

/* ===============================
   タイトル部分（Qと矢印）
================================ */
.accordion-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf7f2;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  transition: background-color 0.3s;
}

.accordion-title:hover {
  background: #fff2e0;
}

.accordion-title .qa-icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

.accordion-title span {
  flex: 1;
  text-align: left;
}

.accordion-title .arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-title.active .arrow {
  transform: rotate(180deg);
}

/* ===============================
   コンテンツ部分（Gridアニメーション）
================================ */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  background: #f9f9f9;
  padding: 0 18px; /* 横方向のみ固定 */
  overflow: hidden; /* はみ出し防止 */
  contain: layout paint; /* サブピクセルブリード防止 */
}

.accordion-content.open {
  grid-template-rows: 1fr;
}

/* ===============================
   アンサー（padding削除済・安定化）
================================ */
.accordion-content > .answer-box {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  /* padding削除 → はみ出し防止 */
}

/* ===============================
   Aアイコンと本文（1行目揃え調整）
================================ */
.answer-box .qa-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  margin-top: 3px;
}

.answer-box-margin p {
  color: #333;
  line-height: 1.8;
  font-size: 15px;
  margin: 0;
  padding-top: 2px;
  text-align: left;
}

/* ===============================
   パフォーマンス補助
================================ */
.accordion-content {
  will-change: grid-template-rows;
}

.answer-box-margin {
  margin: 10px 0;
}

/* ===============================
   FAQ崩れ修正：アイコン除外を強制
================================ */
.lp_body img:not(.qa-icon):not(.arrow) {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* FAQアイコンはサイズを固定 */
.accordion-title .qa-icon {
  width: 28px !important;
  height: 28px !important;
  display: inline-block !important;
}
.accordion-title .arrow {
  width: 20px !important;
  height: 20px !important;
  display: inline-block !important;
}

/* 768px以下：FAQを親幅いっぱいに */
@media (max-width: 768px) {
  .accordion {
    max-width: none;
    width: 100%;
  }
  .accordion-title {
    padding-left: 16px;
    padding-right: 16px;
  }
  .accordion-content {
    padding-left: 16px;
    padding-right: 16px;
  }
  .accordion-item {
    border-left: 0;
    border-right: 0;
    width: 100%;
  }
}

/* ── 1024px だけ：左右を圧縮＆中央ワイド ───────────────── */
@media (width: 1024px) {
  .hero-grid {
    /* 両サイドをやや広く、中央を少し小さめに */
    grid-template-columns: 1fr 180px minmax(0, 920px) 220px 1fr;
    grid-template-areas: ". left main right .";
    gap: 24px;
  }

  .side-nav {
    max-width: 180px;
    margin: 0;
  }
  .stack {
    max-width: 220px;
  }
  .main {
    max-width: 920px;
  }
  .stack .btn-cta {
    font-size: 16px; /* 少しだけ文字を小さく */
    padding: 0.8rem 2.5rem; /* ←上下を短く、左右を少なく */
    border-radius: 40px; /* 丸みを調整してバランス */
    width: 100%; /* コンテナ幅いっぱいに伸ばす */
    max-width: 240px; /* ←最大幅を制限（横長に見える） */
    margin: 0 auto; /* 中央寄せ */
    display: block; /* 中央揃え安定 */
  }

  /* 影と高さも軽く調整（任意） */
  .stack .btn-cta.navy,
  .stack .btn-cta.white {
    box-shadow: 0 6px 0 #0e1a3d, 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

#footer {
  margin: 10px auto;
  background-color: #fff;
  text-align: center;
}
