/* ==========================================================
   LARFフィットネス スタイルシート
   構成：
   1. 全体設定（色・フォント・共通パーツ）
   2. ヘッダー
   3. ヒーロー
   4. お悩みセクション
   5. 選ばれる理由セクション
   6. 体験の流れ＋アクセス
   7. FAQ＋CTA
   8. フッター
   9. スマートフォン対応（メディアクエリ）
   ========================================================== */

/* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
body { word-break: auto-phrase; }

/* ---------- 1. 全体設定 ---------- */

/* 色を変えたいときは、ここの値を書き換えるだけで全体に反映される */
:root {
  --color-dark: #14171c;        /* 濃い背景（かっこよさの土台） */
  --color-dark-sub: #1e232b;    /* 濃い背景の中のカード用 */
  --color-light: #f7f6f3;       /* 明るい背景（親しみやすさ） */
  --color-white: #ffffff;
  --color-text: #2b2f36;        /* 明るい背景での文字色 */
  --color-text-light: #f2f2f2;  /* 濃い背景での文字色 */
  --color-accent: #e63946;      /* アクセントの赤 */
  --color-line: #06c755;        /* LINEの緑 */
  --font-base: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* ページ内リンクをなめらかに移動させる */
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
}

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

/* セクション共通 */
.section {
  padding: 80px 20px;
}

.section--light {
  background: var(--color-light);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.section__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 48px;
}

/* 見出しの下に赤いラインを引いて引き締める */
.section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* 見出し内の改行はスマートフォンでのみ効かせる（パソコンでは1行で表示） */
.section__title br {
  display: none;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* LINEボタン（緑） */
.btn--line {
  background: var(--color-line);
  color: var(--color-white);
}

.btn--large {
  font-size: 1.15rem;
  padding: 18px 44px;
}

.btn--small {
  font-size: 0.9rem;
  padding: 10px 20px;
}

.btn .lucide {
  width: 22px;
  height: 22px;
}

/* スクロールで要素がふわっと現れる演出（JavaScriptと連動） */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 2. ヘッダー ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(20, 23, 28, 0.9); /* 半透明の黒。下の写真がうっすら透ける */
  backdrop-filter: blur(6px);
}

.header__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.header__logo span {
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 6px;
  color: var(--color-accent);
}

/* ---------- 3. ヒーロー ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* 背景写真。縦に間延びしないようcoverで切り抜く */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 写真の上に黒いグラデーションを重ねて文字を読みやすくする */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 23, 28, 0.55),
    rgba(20, 23, 28, 0.75)
  );
}

.hero__content {
  position: relative;
  color: var(--color-white);
  padding: 120px 20px 60px;
  max-width: 800px;
}

.hero__tagline {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- 4. お悩みセクション ---------- */

.worries__list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto 40px;
}

.worries__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  font-size: 1.05rem;
}

.worries__item .lucide {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  margin-top: 4px;
}

.worries__answer {
  text-align: center;
  font-size: 1.1rem;
}

.worries__answer strong {
  color: var(--color-accent);
}

/* ---------- 5. 選ばれる理由セクション ---------- */

.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.reason-card {
  background: var(--color-dark-sub);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 写真の縦横比をそろえる。縦長写真もここで切り抜かれる */
.reason-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.reason-card__body {
  padding: 24px 22px 28px;
}

.reason-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.reason-card__icon .lucide {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

.reason-card__title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.reason-card__text {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ---------- 6. 体験の流れ＋アクセス ---------- */

.flow {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 80px;
}

.flow__step {
  flex: 1;
  background: var(--color-white);
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.flow__title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.flow__text {
  font-size: 0.92rem;
  text-align: left;
}

.flow__arrow {
  display: flex;
  align-items: center;
  color: var(--color-accent);
}

.flow-access__access-title {
  margin-top: 20px;
}

.access {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.access__img {
  border-radius: 16px;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.access__name {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.access__address,
.access__station {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.access__address .lucide,
.access__station .lucide {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  margin-top: 5px;
}

.access__note {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ---------- 7. FAQ＋CTA ---------- */

.faq {
  max-width: 720px;
  margin: 0 auto 80px;
}

.faq__item {
  background: var(--color-dark-sub);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

/* 質問部分はボタンにして、クリックで開閉できるようにする */
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--color-text-light);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  line-height: 1.6;
}

.faq__question .lucide {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  transition: transform 0.3s;
}

/* 開いているときは矢印を上向きに回転させる */
.faq__question[aria-expanded="true"] .lucide {
  transform: rotate(180deg);
}

/* 回答部分。JavaScriptでis-openを付け外しして開閉する */
.faq__answer {
  display: none;
  padding: 0 22px 20px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.faq__answer.is-open {
  display: block;
}

.cta {
  text-align: center;
}

.cta__title {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cta__title br {
  display: none;
}

.cta__text {
  margin-bottom: 32px;
}

.cta__note {
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ---------- 8. フッター ---------- */

.footer {
  background: #0e1013;
  color: #9aa1ab;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
}

.footer__name {
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.footer__copy {
  margin-top: 12px;
}

/* ---------- 9. スマートフォン対応 ---------- */

@media (max-width: 768px) {

  .section {
    padding: 60px 18px;
  }

  .section__title {
    font-size: 1.5rem;
  }

  /* スマートフォンでは見出しの<br>を有効にして2行で見せる */
  .section__title br,
  .cta__title br {
    display: inline;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__lead {
    font-size: 0.95rem;
  }

  /* 理由カードを縦1列に並べる */
  .reasons__grid {
    grid-template-columns: 1fr;
  }

  /* 流れを縦並びにして、矢印を下向きに回転させる */
  .flow {
    flex-direction: column;
    gap: 8px;
  }

  .flow__arrow {
    justify-content: center;
    transform: rotate(90deg);
    padding: 4px 0;
  }

  /* アクセスは写真の下に住所が来る縦並びにする */
  .access {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta__title {
    font-size: 1.4rem;
  }

  .btn--large {
    font-size: 1rem;
    padding: 16px 32px;
  }
}
