/***********************************************************
  Camera Course（page-watchcourse）
  スコープ：body.page-template-page-watchcourse 以下のみ
***********************************************************/
body.page-template-page-watchcourse {
  --orange: #D96A22;
  --orange-weak: #F6EAE2;   /* カード背景の砂色 */
  --orange-line: rgba(217,106,34,.35);
  --sand-line: rgba(0,0,0,.06);
  --pill-radius: 999px;
  --radius: 16px;
  --shadow: 0 5px 16px rgba(0,0,0,.04);
  --text: #222;
  --muted: #6b6b6b;
}

/* -------------------------
  共通（見出し・ピル）
------------------------- */
body.page-template-page-watchcourse .pill,
body.page-template-page-watchcourse [data-pill]{
  display:inline-block;
  padding:10px 22px;
  border-radius:var(--pill-radius);
  background:var(--orange);
  color:#fff;
  font-weight:800;
  font-size:18px;
  line-height:1;
}

body.page-template-page-watchcourse .headline.--big{
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  margin: 0;
  letter-spacing: .02em;
}
body.page-template-page-watchcourse .headline.--black{
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.35;
  margin: 0;
  letter-spacing: .02em;
}
body.page-template-page-watchcourse .headline.--black.--center{
  text-align:center;
}

/* -------------------------
  ページヘッダー（左ラベル＋h1）
------------------------- */
body.page-template-page-watchcourse .page-header{
  margin: 28px 0 18px;
}
body.page-template-page-watchcourse .page-header__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items:center;
}
body.page-template-page-watchcourse .page-header .pill{
  margin: 0 0 14px;
}
body.page-template-page-watchcourse .page-header__text{
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

/* =========================================================
  ABOUT
========================================================= */
body.page-template-page-watchcourse .about{
  margin-top: 48px;
}
body.page-template-page-watchcourse .about__inner{
  display:grid;
  grid-template-columns: minmax(0,560px) minmax(0,1fr);
  gap:48px;
  align-items:center;
}
body.page-template-page-watchcourse .about__img{
  border-radius: var(--radius);
  overflow: hidden;
}
body.page-template-page-watchcourse .about__body .pill{ margin-bottom:14px; display:inline-block; }
body.page-template-page-watchcourse .about__text{
  margin: 10px 0 0;
  line-height: 1.9;
  letter-spacing:.01em;
}

/* =========================================================
  PRODUCT
========================================================= */
body.page-template-page-watchcourse .product{ margin-top: 72px; }
body.page-template-page-watchcourse .product > .pill{ display:inline-block; margin-bottom:10px; }
body.page-template-page-watchcourse .product__grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
body.page-template-page-watchcourse .product__images{
  display:grid;
  gap: 20px;
}
body.page-template-page-watchcourse .product__images > div{
  border-radius: var(--radius);
  overflow: hidden;
}
body.page-template-page-watchcourse .product__title{
  color: var(--orange);
  font-weight: 800;
  margin: 0 0 6px;
}
body.page-template-page-watchcourse .product__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
body.page-template-page-watchcourse .product__text{
  margin: 0;
  line-height: 1.9;
}

/* =========================================================
  COURSE / details card
========================================================= */
body.page-template-page-watchcourse .details{ margin-top: 92px; }

/* 見出しを中央に（Pill + H2） */
body.page-template-page-watchcourse .details__head{
  text-align: center;
  margin-bottom: 16px;
}
body.page-template-page-watchcourse .details__head .pill{ margin-bottom: 12px; }

/* カード本体 */
body.page-template-page-watchcourse .details__card{
  background: var(--orange-weak);
  border-radius: var(--radius);
  padding: 36px 34px;
  max-width: 1180px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* 上段 2カラム */
body.page-template-page-watchcourse .details__top{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}
/* 中央のドット罫線 */
body.page-template-page-watchcourse .details__top::before{
  content:"";
  position:absolute;
  top:6px; bottom:6px;
  left:50%;
  transform: translateX(-1px);
  border-left: 2px dotted var(--orange-line);
}

/* 2カラムの内容を中央揃え（赤字指示） */
body.page-template-page-watchcourse .details__col{
  text-align: center;
}
body.page-template-page-watchcourse .details__col-title{
  margin: 0 0 14px;
  color: var(--orange);
  font-weight: 800;
  font-size: 18px;
}

body.page-template-page-watchcourse .badge{
  display:inline-block;
  background: var(--orange);
  color:#fff;
  border-radius: var(--pill-radius);
  padding:7px 14px;
  font-weight:700;
  font-size:13px;
  line-height:1;
}
body.page-template-page-watchcourse .details__value{ margin:8px 0 18px; }
body.page-template-page-watchcourse .details__price{
  margin:0;
  font-weight:800;
  font-size: 24px;
}
body.page-template-page-watchcourse .details__note{
  margin:6px 0 0;
  color: var(--muted);
  font-size:.95em;
}

/* 含まれるもの（赤字：中央揃え） */
body.page-template-page-watchcourse .details__included{
  text-align: center;
  margin: 28px 0 0;
}
body.page-template-page-watchcourse .details__included-title{
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 10px;
}
body.page-template-page-watchcourse .details__included-text{
  margin: 0;
  line-height: 1.9;
  letter-spacing:.01em;
}

/* オプション（タイトル中央／本文は見やすく左寄せ） */
body.page-template-page-watchcourse .details__options{
  background:#fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top:22px;
  border:1px solid var(--sand-line);
  text-align: center;            /* 親は中央 */
}
body.page-template-page-watchcourse .details__options-title{
  font-weight:700;
  margin:0 0 12px;
  color: var(--orange);
  text-align: center;            /* タイトル中央 */
}
body.page-template-page-watchcourse .details__options-list{
  list-style: disc;
  margin: 0 auto;
  padding-left: 1.25em;
  text-align: left;              /* リストの文は左揃え */
  display: inline-block;         /* 親中央 × 子左寄せ */
  line-height: 1.9;
}
body.page-template-page-watchcourse .details__options-list .price{
  float: right;
}

/* 返金（赤字：色 #c16b3b & 太字） */
body.page-template-page-watchcourse .details__refund{
  background:#FBEADB;
  border:1px solid rgba(217,106,34,.15);
  border-radius:12px;
  padding:16px 18px;
  margin-top:16px;
  text-align:center;
}
body.page-template-page-watchcourse .details__refund-title{
  margin:0 0 8px;
  color:#D96A22;
  font-weight:700;
}

/* ==== Page Header 修正 ==== */
.page-template-page-watchcourse .page-header .pill {
  display: none; /* BUSINESSピル非表示 */
}

.page-template-page-watchcourse .page-header__left {
  text-align: center; /* 見出し中央寄せ */
  width: 100%;
}

.page-template-page-watchcourse .page-header__text {
  margin: 0 auto;
  font-weight: 800;
}


/* =========================================================
  Responsive
========================================================= */
@media (max-width: 1024px){
  body.page-template-page-watchcourse .about__inner{ grid-template-columns:1fr; gap:24px; }
  body.page-template-page-watchcourse .product__grid{ grid-template-columns:1fr; }
  body.page-template-page-watchcourse .details__top{ grid-template-columns:1fr; }
  body.page-template-page-watchcourse .details__top::before{ display:none; }
  body.page-template-page-watchcourse .details__card{ padding:28px 20px; }
}

/* さらにSP寄せ（中央に気持ち寄せて美しく） */
@media (max-width: 640px){
  body.page-template-page-watchcourse .page-header__text{ white-space:normal; }
  body.page-template-page-watchcourse .product .headline{ line-height:1.4; }
  /* 含まれるもの・返金の横幅を読みやすく調整 */
  body.page-template-page-watchcourse .details__included-text{
    max-width: 46ch;
    margin-inline: auto;
  }
  body.page-template-page-watchcourse .details__refund-text{
    max-width: 46ch;
    margin-inline: auto;
    line-height: 1.8;
  }
}

/* =========================
   SP 調整（〜767px）
   ========================= */
   @media (max-width: 767px){

    /* ヘッダー：BUSINESSピル非表示＋タイトル2行＆中央 */
    .page-template-page-watchcourse .page-header__inner { text-align: center; }
    .page-template-page-watchcourse .page-header .pill { display: none; }
    .page-template-page-watchcourse .page-header__text{
      display:inline-block;
      font-size: clamp(26px, 6.2vw, 32px);
      line-height: 1.25;
      letter-spacing: .04em;
      margin: 8px 0 0;
      text-align:center;
    }
  
    /* ABOUT：画像→本文の縦並び、見出し中央 */
    .page-template-page-watchcourse .about__inner{
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .page-template-page-watchcourse .about__img{ order: 1; }
    .page-template-page-watchcourse .about__body{
      order: 2;
      text-align: center;
    }
    .page-template-page-watchcourse .about [data-pill]{ margin-inline:auto; }
  
    /* PRODUCT：ピル＆見出しを中央、画像は1列で中央に */
    .page-template-page-watchcourse .product [data-pill]{ margin-inline:auto; }
    .page-template-page-watchcourse .product .headline.--black{ text-align:center; }
    .page-template-page-watchcourse .product__grid{
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .page-template-page-watchcourse .product__points{ order: 1; }
    .page-template-page-watchcourse .product__images{
      order: 2;
      width: min(360px, 100%);
      margin: 0 auto;
      grid-template-columns: 1fr;
    }
  .page-template-page-watchcourse .product{
    text-align: center;
  }
  .page-template-page-watchcourse .product [data-pill]{
    display: inline-block;
    margin: 0 auto 8px;
  }
  .page-template-page-watchcourse .product .headline{
    text-align: center;
    margin-top: 8px;
  }
  
    /* COURSE：1カラム化＋中央寄せ＋2区間の点線仕切り */
    .page-template-page-watchcourse .details__head .pill{ margin-inline:auto; }
    .page-template-page-watchcourse .details__head .headline{ text-align:center; }
  
    .page-template-page-watchcourse .details__top{
      grid-template-columns: 1fr;
    }
    .page-template-page-watchcourse .details__col{
      text-align: center;
    }
    /* 2つ目のブロックの先頭に点線 */
    .page-template-page-watchcourse .details__col + .details__col{
      border-top: 2px dotted rgba(217,106,34,.35);
      padding-top: 24px;
      margin-top: 16px;
    }
  
    /* “コースに含まれるもの／オプション”の見出し中央 */
    .page-template-page-watchcourse .details__included-title,
    .page-template-page-watchcourse .details__options-title{
      text-align: center;
    }
  
    /* 返金：タイトル強調（#c16b3b 太字・中央） */
    .page-template-page-watchcourse .details__refund-title{
      color:#c16b3b;
      font-weight: 800;
      text-align:center;
    }
  }

  /* 余白を作ってるヒーロー高さいらない */
  .page-template-page-watchcourse .page-header{
    min-height: 0 !important;
    padding: 24px 0 !important;   /* 必要分だけに再設定 */
    background: none !important;
  }
  /* 内側のコンテナが余白を増やしている可能性を削る */
  .page-template-page-watchcourse .page-header__inner{
    padding: 0 !important;
    margin: 0 auto !important;
    overflow: hidden;              /* margin collapse対策 */
  }
  /* テーマの飾り（擬似要素）で高さが出てる保険 */
  .page-template-page-watchcourse .page-header::before,
  .page-template-page-watchcourse .page-header::after{
    content: none !important;
  }
  
  /* 見出し行を縦積みにして中央寄せ */
  .page-template-page-watchcourse .details__head{
    display: block !important;
    text-align: center !important;
  }
  .page-template-page-watchcourse .details__head .headline{
    display: block !important;
    width: 100% !important;
    margin: 8px auto 0 !important;
    text-align: center !important;
  }
  
  /* ===== PCのページヘッダー余白を殺す ===== */
  @media (min-width: 1024px) {
    .page-template-page-watchcourse .page-header{
      height: auto !important;
      min-height: 0 !important;
      padding: 24px 0 !important;   /* 好きな値に調整 */
      background: none !important;
    }
    .page-template-page-watchcourse .page-header__inner{
      padding: 0 !important;        /* containerの上下パディングを無効化 */
      margin: 0 auto !important;
      overflow: hidden;              /* margin折り畳み対策 */
    }
    .page-template-page-watchcourse .page-header__grid{
      display: block !important;     /* flex由来の高さが出る場合の保険 */
      min-height: 0 !important;
      align-items: initial !important;
    }
    .page-template-page-watchcourse .page-header::before,
    .page-template-page-watchcourse .page-header::after{
      content: none !important;      /* 擬似要素の飾りで高さが出ている場合を無効化 */
    }
    .page-template-page-watchcourse .page-header .headline{
      margin-top: 0 !important;      /* 子要素の上マージンで膨らむのを防ぐ */
    }
  }


/* ===== 留意事項 ===== */
.page-template-page-watchcourse  .notice {
  text-align: center;
  font-size: 100%;
  margin-top: 24px !important;   /* 適度な余白を確保 */
}
.page-template-page-watchcourse  .notice-text {
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
}

/* ===== CTA（LINE） ===== */
.page-template-page-watchcourse  #line-cta {
  text-align: center;
  background: none !important;   /* 背景画像をリセット */
  background-color: #fff !important;  /* 白地にしたい場合 */
  padding: 16px 0 !important;   /* 好みで 12〜24 に調整 */
  margin: 16px 0 !important;
}
.page-template-page-watchcourse  #line-cta .lead {
  max-width: 980px;
  margin: 0 auto 16px;
  line-height: 1.9;
}
.page-template-page-watchcourse  .btn--line img {
  display: inline-block;
  max-width: 320px; /* 画像が大きい場合はここで調整 */
  height: auto;
}

.page-template-page-watchcourse  #line-cta .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-template-page-watchcourse #line-cta.cta .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.page-template-page-watchcourse  #line-cta.cta {
  padding: 16px 0 !important;    /* ここだけで上下余白を管理 */
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  background: none !important;
  background-color: #fff !important;
}
