@charset "utf-8";

/* =========================================================
   LP「八丈島 自分と出会える安心の旅」固有スタイル
   style.css を読み込んだ上で追加で読み込む。
   ========================================================= */

/* ---------------------------------------------------------
   ヒーロー（CS とは構成が違うので上書き）
   --------------------------------------------------------- */
.p-hero--lp .p-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.p-hero__eyebrow {
  margin-bottom: 24px;
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.4038; /* 52px / lh73 */
}

.p-hero--lp .p-hero__title span.is-gold {
  color: var(--gold);
}

/* ---------------------------------------------------------
   セクション見出し（LP は小見出しなしの 40px 一本）
   --------------------------------------------------------- */
.p-lp-title {
  color: var(--gold);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4; /* 40px / lh56 */
  text-align: center;
}

.p-lp-subtitle {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.p-lp-note {
  font-size: 16px;
  line-height: 1.375;
  text-align: center;
}

/* 32px の見出し（参加費・申し込みの流れ・主催者） */
.p-lp-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.40625; /* 32px / lh45 */
  text-align: center;
}

/* 36px の強調行 */
.p-lp-strong {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3889; /* 36px / lh50 */
  text-align: center;
}

/* 申し込みボタンの直前に置く応募締切の案内。
   日付を目立たせ、催行判断の一文は一段落として添える。 */
.p-deadline {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.p-deadline__note {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
}

/* CTA をセクション内で中央に置く */
/* ボタンは 1 個のことも複数のこともある。
   PC は横並び。3 つのときは上段に 2 つ、お問い合わせは下段に落とす。 */
.p-lp-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* 高さ 0 の要素で行を折り返し、お問い合わせを必ず下段へ置く。
   幅の合計で自然に折り返させると、端数で並びが変わってしまうため。 */
.p-lp-cta__break {
  flex-basis: 100%;
  height: 0;
}

/* ---------------------------------------------------------
   SP の追従 CTA
   ヘッダーのボタンを外す代わりに、画面下部へ常時出す。
   PC では出さない。
   --------------------------------------------------------- */
.p-fixed-cta {
  display: none;
}

/* ---------------------------------------------------------
   監修者プロフィール（丸写真＋テキスト）
   --------------------------------------------------------- */
.p-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.p-profile__photo {
  flex: none;
  width: 260px;
  height: 260px;
  border-radius: 50%;
}

.p-profile__body {
  width: 600px;
}

.p-profile__name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3929; /* 28px / lh39 */
}

.p-profile__role {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.p-profile__text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.375;
}

/* ---------------------------------------------------------
   枠付きラベル（先着順 / 定員 10名 / DAY 1 など）
   --------------------------------------------------------- */
.c-chips {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.c-chip {
  /* Figma のボーダーは内側描画。border 1px 分を padding から引いて
     全体を Figma と同じ高さ 58px に合わせる */
  padding: 11px 23px;
  border: 1px solid var(--navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4167; /* 24px / lh34 */
  text-align: center;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   参加費
   --------------------------------------------------------- */
.p-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.p-price__label {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.p-price__value {
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}

/* 「（税込）」は金額に添えるだけなので一段小さく */
.p-price__tax {
  font-size: 24px;
}

/* ---------------------------------------------------------
   画面幅いっぱいに広がる横並び（両端が見切れる）
   Figma では 1440px の枠から左右にはみ出した状態で中央寄せされている。
   実装では横スクロール可能にして、初期位置を JS で中央に合わせる。
   --------------------------------------------------------- */
.p-bleed {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.p-bleed::-webkit-scrollbar {
  display: none;
}

.p-bleed > * {
  flex: none;
  scroll-snap-align: center;
}

/* 収まるときは中央寄せ、はみ出すときは左端始まり。
   単なる center だとスクロール時に左側が掴めなくなる。 */
.p-bleed--center {
  justify-content: safe center;
}

/* ---------------------------------------------------------
   スライダーの矢印
   絶対配置なのでセクションの高さには影響しない。
   --------------------------------------------------------- */
.c-slider {
  position: relative;
}

/* 影の逃げ場（.p-bleed--cards の padding-block: 30px）を打ち消して、
   レイアウト上の位置と高さを Figma どおりに保つ。
     上: margin 2px + padding 30px = 前の要素との間隔 32px
     下: padding 30px を負マージンで相殺 */
.c-slider--cards {
  margin-top: 2px;
  margin-bottom: -30px;
}

.c-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  color: var(--navy);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.c-slider__btn svg {
  width: 24px;
  height: 24px;
}

.c-slider__btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.c-slider__btn:focus-visible {
  outline: 3px solid var(--cta);
  outline-offset: 2px;
}

.c-slider__btn[hidden] {
  display: none;
}

.c-slider__btn--prev {
  left: 24px;
}

.c-slider__btn--prev svg {
  transform: rotate(180deg);
}

.c-slider__btn--next {
  right: 24px;
}

/* タッチ端末でもボタンの見た目を変えない（押し込みの色残りだけ抑える） */
@media (hover: none) {
  .c-slider__btn:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  }

  .c-slider__btn:active {
    background: #fff;
  }
}

.p-bleed--cards {
  gap: 32px;
  /* 横スクロール領域はオーバーフローを切るため、カードの影が上下で欠ける。
     padding で影の逃げ場を作る。打ち消しは外側の .c-slider--cards 側で行う。 */
  padding-block: 30px;
}

/* 体験カード（写真＋キャプション） */
.p-exp {
  width: 400px;
}

.p-exp__photo {
  width: 400px;
  height: 250px;
  object-fit: cover;
  background: #d9d9d9;
}

.p-exp__label {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

/* ---------------------------------------------------------
   写真つきカード（コーチ紹介・体験できること）
   --------------------------------------------------------- */
.p-pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 344px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.p-pcard__photo {
  width: 312px;
  height: 229px;
  object-fit: cover;
  background: #d9d9d9;
}

.p-pcard__name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3929;
  text-align: center;
}

.p-pcard__role {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.p-pcard__note {
  font-size: 16px;
  line-height: 1.375;
  text-align: center;
}

/* 体験できることカードの本文ブロック
   カード幅 344 −（左右 padding 16）= 312 だが、
   Figma の本文枠は 280 固定なので折り返し位置を合わせる */
.p-pcard__body {
  width: 280px;
  max-width: 100%;
  padding: 16px 0;
}

.p-pcard__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4167;
  text-align: center;
}

.p-pcard__text {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.4;
  /* 「OK！）」のように禁則で改行位置が見つからない行が
     枠からはみ出すのを防ぐ（Figma の折り返しにも近くなる） */
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   写真の帯（テキストなし）
   --------------------------------------------------------- */
.p-band {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.p-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------------------------
   丸写真を 2 枚並べる（一人一部屋）
   --------------------------------------------------------- */
.p-circles {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.p-circles img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
}

/* ---------------------------------------------------------
   チェックリスト（含まれるもの／含まれないもの／申し込みの流れ）
   --------------------------------------------------------- */
.c-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 974px;
  max-width: 100%;
  margin-inline: auto;
}

.c-checklist__row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.c-checklist__icon {
  flex: none;
  width: 42px;
  height: 42px;
  fill: var(--navy);
}

.c-checklist__text {
  font-size: 24px;
  line-height: 1.4167; /* 24px / lh34 */
}

/* ---------------------------------------------------------
   3 日間のスケジュール
   --------------------------------------------------------- */
.p-schedule__day + .p-schedule__day {
  margin-top: 32px;
}

.p-schedule__head {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.p-schedule__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3889;
  text-align: center;
}

.p-schedule__rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-schedule__row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.p-schedule__time {
  flex: none;
  width: 62px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3333; /* 24px / lh32 */
}

.p-schedule__dot {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
}

.p-schedule__body {
  flex: 1;
  min-width: 0;
  padding: 16px 24px;
  border-radius: 40px;
  background: #fff;
  color: #333;
  font-size: 16px;
  line-height: 1.5; /* 16px / lh24 */
}

.p-schedule__notes {
  font-size: 16px;
  line-height: 1.375;
}

/* ---------------------------------------------------------
   主催者情報
   --------------------------------------------------------- */
.p-org__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.p-org__detail {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.375;
  text-align: center;
}

.p-org__detail + .p-org__detail {
  margin-top: 16px;
}

/* =========================================================
   タブレット（〜1200px）
   ========================================================= */
@media (max-width: 1200px) {
  .p-hero__eyebrow {
    font-size: 36px;
  }
}

/* =========================================================
   スマートフォン（〜767px）
   ========================================================= */
@media (max-width: 767px) {
  /* ---- ヒーロー ---- */
  .p-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 20px;
  }

  /* ---- 見出し ---- */
  .p-lp-title {
    font-size: 24px;
  }

  .p-lp-heading {
    font-size: 22px;
  }

  .p-lp-strong {
    font-size: 24px;
  }

  .p-deadline {
    font-size: 19px;
  }

  .p-deadline__note {
    font-size: 14px;
  }

  .p-lp-subtitle {
    font-size: 16px;
  }

  .p-lp-note {
    text-align: left;
  }

  /* ---- CTA ---- */
  .c-cta {
    min-width: 0;
    width: 100%;
    max-width: 348px;
    padding: 18px 16px;
    font-size: 17px;
  }

  /* SP でも申し込みボタンより一回り小さく保つ
     （.c-cta の SP 指定が後勝ちで効くため、ここで上書きする） */
  .c-cta--sub {
    max-width: 300px;
    padding: 14px 16px;
    font-size: 15px;
  }

  /* ヘッダーのボタンは追従 CTA に役割を移したので出さない */
  .p-header__cta {
    display: none;
  }

  /* お問い合わせを下段に落とすための改行は、
     縦に積む SP では余分な隙間になるだけなので消す */
  .p-lp-cta__break {
    display: none;
  }

  /* ---- 追従 CTA ---- */
  .p-fixed-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95; /* 本文とページトップボタンより手前、ヘッダー（100）より奥 */
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    /* iPhone のホームバー分を足す */
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  }

  .p-fixed-cta .c-cta {
    flex: 1;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 13px 6px;
    border-width: 1px;
    box-shadow: none;
    font-size: 13px;
  }

  /* 追従 CTA の分だけ本文の下に余白を作る（フッターが隠れないように） */
  body {
    padding-bottom: 74px;
  }

  /* ページトップボタンは追従 CTA の上へ逃がす */
  .c-pagetop {
    bottom: 86px;
  }

  /* ---- プロフィール ---- */
  .p-profile {
    flex-direction: column;
    gap: 24px;
  }

  .p-profile__photo {
    width: 200px;
    height: 200px;
  }

  .p-profile__body {
    width: 100%;
  }

  .p-profile__name,
  .p-profile__role {
    text-align: center;
  }

  /* ---- ラベル ---- */
  .c-chips {
    flex-wrap: wrap;
    gap: 12px;
  }

  .c-chip {
    padding: 8px 16px;
    font-size: 16px;
  }

  /* ---- 参加費 ---- */
  .p-price {
    flex-direction: column;
    gap: 8px;
  }

  .p-price__label {
    font-size: 24px;
  }

  .p-price__value {
    font-size: 40px;
  }

  .p-price__tax {
    font-size: 18px;
  }

  /* ---- 横並び ---- */
  .p-bleed {
    gap: 16px;
    padding-inline: var(--gutter);
  }

  .p-bleed--cards {
    gap: 16px;
  }

  .p-exp,
  .p-exp__photo {
    width: 280px;
  }

  .p-exp__photo {
    height: 175px;
  }

  .p-pcard {
    width: 280px;
  }

  .p-pcard__photo {
    width: 248px;
    height: 182px;
  }

  .p-pcard__body {
    width: 100%;
  }

  /* ---- スライダーの矢印 ---- */
  .c-slider__btn {
    /* 指で押せる最小サイズは確保しつつ、中央のカードに重ならない位置に */
    width: 44px;
    height: 44px;
  }

  .c-slider__btn svg {
    width: 20px;
    height: 20px;
  }

  .c-slider__btn--prev {
    left: 6px;
  }

  .c-slider__btn--next {
    right: 6px;
  }

  .p-pcard__name {
    font-size: 22px;
  }

  .p-pcard__title {
    font-size: 20px;
  }

  .p-pcard__text {
    font-size: 16px;
  }

  /* ---- 帯 ---- */
  .p-band {
    height: 200px;
  }

  /* ---- 丸写真 ---- */
  .p-circles {
    gap: 16px;
  }

  .p-circles img {
    width: 150px;
    height: 150px;
  }

  /* ---- チェックリスト ---- */
  .c-checklist__row {
    align-items: flex-start;
    gap: 16px;
  }

  .c-checklist__icon {
    width: 28px;
    height: 28px;
    margin-top: 2px;
  }

  .c-checklist__text {
    font-size: 16px;
    line-height: 1.5;
  }

  /* ---- スケジュール ---- */
  .p-schedule__head {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .p-schedule__title {
    font-size: 20px;
  }

  .p-schedule__row {
    gap: 8px;
  }

  .p-schedule__time {
    width: 44px;
    font-size: 15px;
    line-height: 1.4;
  }

  .p-schedule__dot {
    width: 12px;
    height: 12px;
  }

  .p-schedule__body {
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
  }

  .p-schedule__notes {
    font-size: 13px;
  }

  /* ---- 主催者 ---- */
  /* 「／」区切りの改行と項目ごとの表示は style.css の .c-inline-list__* 側で行う */
  .p-org__detail {
    font-size: 14px;
  }
}
