/* Barlow（Q/Aラベル用） */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@700&display=swap');

/* ===================================================
   Reset & Base
=================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: #f0f0f0;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================================
   Layout
=================================================== */
.l-page {
  width: 100%;
  max-width: 375px;
  margin: 0 auto;
  background-color: #fff;
  overflow: hidden;
  position: relative;
  /* 追従CTAの高さ分の余白（コンテンツが隠れないよう） */
  padding-bottom: 130px;
}

@media (max-width: 767px) {
  .l-page {
    max-width: 100%;
  }
}

/* ===================================================
   Section Image
   img_ 命名フレームは画像として配置
=================================================== */
.c-section-img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===================================================
   CTA Section
   Figma Node ID: 7218:5007（インライン） / 7218:7335（追従）
=================================================== */

/* 追従CTA：画面下部に固定・デフォルトは非表示 */
.c-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 375px;
  background-color: #fff;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  z-index: 100;
  box-shadow: 0px -2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
  visibility: hidden;
}

/* is-visible 付与で追従CTAをスライドアップ表示 */
.c-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

@media (max-width: 767px) {
  .c-cta {
    max-width: 100%;
  }
}

/* インラインCTA（KV直下）：静的配置 */
.c-cta--inline {
  position: static;
  transform: none;
  box-shadow: none;
  max-width: 100%;
  visibility: visible;
  padding: 16px 16px 24px;
}

.c-cta__heading {
  font-weight: 700;
  font-size: 14px;
  color: #333;
  text-align: center;
  letter-spacing: 0.8px;
  line-height: 1.25;
  font-feature-settings: 'palt' 1;
}

/* インラインCTAの見出しは少し大きく */
.c-cta--inline .c-cta__heading {
  font-size: 16px;
}

.c-cta__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  /* Figma: rgb(255,102,68) */
  background-color: #ff6644;
  border: 2px solid #fff;
  border-radius: 100px;
  padding: 12px 20px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease;
}

.c-cta__button:hover {
  opacity: 0.9;
}

.c-cta__button:active {
  opacity: 0.8;
  transform: translateY(1px);
}

.c-cta__badge {
  flex-shrink: 0;
  background-color: #fff;
  /* Figma: rgb(255,102,68) */
  color: #ff6644;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  line-height: 1.25;
  font-feature-settings: 'palt' 1;
}

.c-cta__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #fff;
  min-width: 0;
}

.c-cta__text-sub {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.6px;
  line-height: 1.25;
  font-feature-settings: 'palt' 1;
  white-space: nowrap;
}

.c-cta__text-main {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.9px;
  line-height: 1.25;
  font-feature-settings: 'palt' 1;
  white-space: nowrap;
}

.c-cta__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ===================================================
   FAQ Section
   Figma: 7218:7182 / faq_close（閉） 7218:7237 / faq_open（開）
   HTMLで実装（アコーディオン形式）
=================================================== */

/* セクション全体
   Figma: bg rgb(251,240,225) padding:40/40 px:16/16 layout:VERTICAL gap:24
   counterAxisAlignItems:CENTER → align-items:center */
.c-faq {
  background-color: #fbf0e1;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* タイトル
   Figma: Noto Sans JP Bold 28px #333 */
.c-faq__title {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  letter-spacing: 1.5px;
  line-height: 1.25;
}

/* FAQ一覧
   Figma: Frame 38 layout:VERTICAL gap:16
   width:100% でalign-items:centerの影響を受けず全幅を維持 */
.c-faq__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* FAQアイテム
   Figma: bg white r:4 padding:16/24 layout:VERTICAL gap:10
   ※gap:0にしてアニメーション用paddingを回答側で管理 */
.c-faq__item {
  background-color: #fff;
  border-radius: 4px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 質問ボタン
   Figma: Frame 31 layout:HORIZONTAL gap:24 align:center */
.c-faq__question {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

/* Q + テキストの横並びエリア
   Figma: Frame 1321316332 layout:HORIZONTAL gap:12 flex:1 */
.c-faq__q-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* Q ラベル
   Figma: Barlow Bold 24px rgb(255,102,68) w:21 h:36 */
.c-faq__q-label {
  flex-shrink: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #ff6644;
  line-height: 1.5;
  letter-spacing: 1.2px;
}

/* 質問テキスト
   Figma: Noto Sans JP Regular 16px #333 */
.c-faq__q-text {
  flex: 1;
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
  letter-spacing: 0.8px;
}

/* 開閉アイコン
   Figma: Frame 32 bg rgb(255,102,68) w:24 h:24 r:100
   閉じ：白い横線(11×2)+縦線(2×11) = プラス
   開き：白い横線(11×2)のみ = マイナス */
.c-faq__icon {
  flex-shrink: 0;
  position: relative;
  width: 24px;
  height: 24px;
  background-color: #ff6644;
  border-radius: 50%;
}

/* 横線（常に表示） */
.c-faq__icon::before {
  content: '';
  position: absolute;
  width: 11px;
  height: 2px;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 縦線（閉じているとき表示 → 開いたら非表示） */
.c-faq__icon::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 11px;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

.c-faq__question[aria-expanded="true"] .c-faq__icon::after {
  opacity: 0;
}

/* 回答エリア
   Figma: Frame 1321316791 layout:HORIZONTAL gap:12 align:flex-start
   アコーディオンアニメーション：max-height + padding-topでスライド表示 */
.c-faq__answer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  /* max-heightとpadding-topを同時にアニメーション */
  transition: max-height 0.35s ease, padding-top 0.35s ease;
}

/* 開いた状態：Figma gap:10 分のpadding-topを付加 */
.c-faq__answer.is-open {
  max-height: 400px;
  padding-top: 10px;
}

/* A ラベル
   Figma: Barlow Bold 24px rgb(17,85,187) w:21 h:36 */
.c-faq__a-label {
  flex-shrink: 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1155bb;
  line-height: 1.5;
}

/* 回答テキスト
   Figma: Noto Sans JP Regular 16px #333 */
.c-faq__a-text {
  flex: 1;
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  line-height: 1.5;
}
