/**
 * CapeMotion SUPツアー - SWELLスタイル上書き
 * tokens.css の --cm- 変数を使ってSWELLのデフォルトスタイルを調整する
 *
 * 方針:
 *   - !important は最終手段。詳細度で勝てる書き方を優先
 *   - SWELLのクラス名はDevToolsで確認してから使う
 */


/* ============================================================
 * カスタムヘッダー (.cm-header)
 * ============================================================ */

/* 固定ヘッダー分の余白を確保 */
#body_wrap {
  padding-top: var(--cm-header-h) !important;
  margin-top: 0 !important;
}

/* SWELLデフォルトヘッダーを非表示（念のため） */
.l-header {
  display: none !important;
}

@media (max-width: 767px) {
  #body_wrap {
    padding-top: var(--cm-header-h-sp) !important;
  }
}

.cm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(11, 110, 158, 0.08);
  transition: box-shadow 0.3s ease;
}

body.admin-bar .cm-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.cm-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.cm-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: var(--cm-header-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

/* ロゴ */
.cm-header__logo {
  flex-shrink: 0;
}

.cm-header__logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* SWELLカスタマイザーの「ロゴ画像サイズ」をそのまま使用
   外観 → カスタマイズ → ヘッダー → 画像サイズ(PC/SP) で変更可能 */
.cm-header__logo img {
  height: var(--logo_size_pc, 48px);
  width: auto;
  display: block;
}

@media (max-width: 959px) {
  .cm-header__logo img {
    height: var(--logo_size_sp, 48px);
  }
}

.cm-header__logo-text {
  font-family: var(--cm-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cm-text-dark);
  text-decoration: none;
}

/* ナビゲーション */
.cm-header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.cm-header__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-header__menu>li {
  position: relative;
}

.cm-header__menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: var(--cm-transition);
}

.cm-header__menu-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cm-ocean-blue);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.cm-header__menu-link:hover::after,
.cm-header__menu>li.current-menu-item .cm-header__menu-link::after,
.cm-header__menu>li.current-menu-ancestor .cm-header__menu-link::after {
  transform: scaleX(1);
}

.cm-header__menu-ja {
  font-family: var(--cm-font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cm-text-dark);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.cm-header__menu-link:hover .cm-header__menu-ja,
.cm-header__menu>li.current-menu-item .cm-header__menu-ja,
.cm-header__menu>li.current-menu-ancestor .cm-header__menu-ja {
  color: var(--cm-ocean-blue);
}

.cm-header__menu-en {
  font-family: var(--cm-font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cm-text-light);
  text-transform: uppercase;
}

/* 予約ボタン */
.cm-header__actions {
  flex-shrink: 0;
}

.cm-header__reserve-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
}

/* ハンバーガーボタン（PC: 非表示） */
.cm-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.cm-header__burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cm-text-dark);
  border-radius: 2px;
  transition: var(--cm-transition);
}

.cm-header__burger.is-open .cm-header__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.cm-header__burger.is-open .cm-header__burger-bar:nth-child(2) {
  opacity: 0;
}

.cm-header__burger.is-open .cm-header__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
 * SP ドロワー (.cm-drawer)
 * ============================================================ */

.cm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 80vw);
  background: #fff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 80px 2rem 2rem;
}

.cm-drawer.is-open {
  transform: translateX(0);
}

.cm-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cm-drawer__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cm-drawer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.cm-drawer__menu li a {
  display: block;
  padding: 1rem 0;
  font-family: var(--cm-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cm-text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--cm-sky-blue);
  transition: color 0.2s ease;
}

.cm-drawer__menu li a:hover {
  color: var(--cm-ocean-blue);
}

.cm-drawer__cta {
  margin-top: 2rem;
  text-align: center;
}

.cm-drawer__cta .cm-btn-primary {
  display: block;
  text-align: center;
  padding: 1rem;
}


/* ============================================================
 * SP レスポンシブ（1024px以下でドロワー切り替え）
 * ============================================================ */

@media (max-width: 1024px) {

  .cm-header__nav,
  .cm-header__actions {
    display: none;
  }

  .cm-header__burger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .cm-header__inner {
    height: var(--cm-header-h-sp);
  }
}



/* ============================================================
 * フォント / テキスト
 * ============================================================ */

/* SWELLはモバイル(< 600px)で --swl-fz--root: 3.6vw を使うため
   常に 1rem = 16px になるよう上書き */
:root {
  --swl-fz--root: 16px;
}

body {
  font-family: var(--cm-font-body);
  color: var(--cm-text-dark);
}

p {
  font-size: 1rem;
  /* = 16px */
}

h1,
h2,
h3 {
  font-family: var(--cm-font-heading);
}


/* ============================================================
 * ボタン（SWELLボタン + Gutenbergボタン）
 * ============================================================ */

.c-btnBlock a,
.wp-block-button__link {
  background-color: var(--cm-sunset-orange);
  border-radius: var(--cm-radius-button);
  box-shadow: var(--cm-shadow-button);
  transition: var(--cm-transition);
}

.c-btnBlock a:hover,
.wp-block-button__link:hover {
  background-color: var(--cm-golden-hour);
}


/* ============================================================
 * コンテナ幅
 * ============================================================ */

.l-container {
  max-width: 1200px;
  padding-inline: var(--cm-container-px);
  padding-top: 0;
}

.l-content {
  padding-top: 0;
  margin-top: 0;
}

.cm-contact-page .p-breadcrumb {
  padding-top: 0;
}


/* ============================================================
 * フォトギャラリーページ全体
 * ============================================================ */

body.page-gallery {
  background: var(--cm-warm-light);
}


/* ============================================================
 * パスワード保護フォーム上書き
 * ============================================================ */

.post-password-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-password-form p:first-child {
  display: none;
  /* "このコンテンツはパスワードで..." のデフォルトテキストを非表示 */
}

.post-password-form label {
  font-family: var(--cm-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cm-text-medium);
  letter-spacing: 0.05em;
}

.post-password-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--cm-ocean-blue);
  border-radius: var(--cm-radius-image);
  font-family: var(--cm-font-body);
  font-size: 1rem;
  color: var(--cm-text-dark);
  background: #fff;
  outline: none;
  transition: var(--cm-transition);
}

.post-password-form input[type="password"]:focus {
  border-color: var(--cm-deep-sea);
  box-shadow: 0 0 0 3px rgba(11, 110, 158, 0.15);
}

.post-password-form input[type="submit"] {
  padding: 0.85rem 2rem;
  background: var(--cm-sunset-orange);
  color: #fff;
  font-family: var(--cm-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--cm-radius-button);
  box-shadow: var(--cm-shadow-button);
  cursor: pointer;
  transition: var(--cm-transition);
}

.post-password-form input[type="submit"]:hover {
  background: var(--cm-golden-hour);
  transform: translateY(-2px);
}


/* ============================================================
 * ギャラリー: インデックスページ
 * ============================================================ */

.cm-gallery-index {
  padding: var(--cm-section-py) var(--cm-container-px);
}

.cm-gallery-index__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cm-gallery-index__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.cm-gallery-index__label {
  font-family: var(--cm-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cm-sunset-orange);
  margin-bottom: 0.5rem;
}

.cm-gallery-index__title {
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h1);
  font-weight: 800;
  color: var(--cm-text-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.cm-gallery-index__desc {
  color: var(--cm-text-medium);
  font-size: var(--cm-text-small);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.8;
}

.cm-gallery-index__empty {
  text-align: center;
  color: var(--cm-text-light);
  padding: 3rem 0;
}

/* カードグリッド */
.cm-gallery-index__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cm-grid-gap);
}

@media (max-width: 1024px) {
  .cm-gallery-index__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cm-gallery-index__grid {
    grid-template-columns: 1fr;
  }
}

/* ギャラリーカード */
.cm-gallery-card {
  background: #fff;
  border-radius: var(--cm-radius-card);
  box-shadow: var(--cm-shadow-card);
  overflow: hidden;
  transition: var(--cm-transition);
}

.cm-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cm-shadow-hover);
}

.cm-gallery-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cm-warm-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-gallery-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cm-gallery-card:hover .cm-gallery-card__image img {
  transform: scale(1.04);
}

.cm-gallery-card__image-placeholder {
  color: var(--cm-text-light);
  font-size: 0.75rem;
}

.cm-gallery-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.cm-gallery-card__date {
  font-size: 0.78rem;
  color: var(--cm-text-light);
  margin-bottom: 0.35rem;
  letter-spacing: 0.03em;
}

.cm-gallery-card__title {
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h3);
  font-weight: 700;
  color: var(--cm-text-dark);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.cm-gallery-card__btn {
  display: block;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
}


/* ============================================================
 * ギャラリー: 写真ページ
 * ============================================================ */

.cm-gallery-photo {
  padding: var(--cm-section-py) var(--cm-container-px);
}

.cm-gallery-photo__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ロック画面 */
.cm-gallery-photo__lock {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.cm-gallery-photo__lock-icon {
  color: var(--cm-sunset-orange);
  margin-bottom: 1.25rem;
}

.cm-gallery-photo__lock-text {
  color: var(--cm-text-medium);
  font-size: var(--cm-text-small);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* ヘッダー */
.cm-gallery-photo__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.cm-gallery-photo__label {
  font-family: var(--cm-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cm-sunset-orange);
  margin-bottom: 0.5rem;
}

.cm-gallery-photo__title {
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h1);
  font-weight: 800;
  color: var(--cm-text-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.cm-gallery-photo__expiry {
  font-size: var(--cm-text-small);
  color: var(--cm-text-medium);
  margin-bottom: 1.5rem;
}

.cm-gallery-photo__expiry strong {
  color: var(--cm-sunset-orange);
}

/* 一括ダウンロードボタン */
.cm-gallery-photo__download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cm-sunset-orange);
  padding: 0.85rem 2rem;
  margin-bottom: 0.5rem;
}

.cm-gallery-photo__download:hover {
  background: var(--cm-golden-hour);
}

/* 写真グリッド（Masonryライク: column-countで実現） */
.cm-gallery-photo__grid {
  column-count: 3;
  column-gap: clamp(0.75rem, 2vw, 1.25rem);
}

.cm-gallery-photo__grid .wp-block-image,
.cm-gallery-photo__grid figure,
.cm-gallery-photo__grid img {
  break-inside: avoid;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  border-radius: var(--cm-radius-image);
  overflow: hidden;
  display: block;
  width: 100%;
}

@media (max-width: 600px) {
  .cm-gallery-photo__grid {
    column-count: 2;
  }
}

/* 戻るリンク */
.cm-gallery-photo__back {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.cm-gallery-photo__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cm-ocean-blue);
  font-family: var(--cm-font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 2px solid var(--cm-ocean-blue);
  padding-bottom: 2px;
  transition: var(--cm-transition);
}

.cm-gallery-photo__back-link:hover {
  color: var(--cm-deep-sea);
  border-bottom-color: var(--cm-sunset-orange);
  gap: 10px;
}


/* ============================================================
 * Contact Form 7 スタイル上書き
 * ============================================================ */

/* フォーム全体レイアウト */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ラベル */
.wpcf7-form label {
  display: block;
  font-family: var(--cm-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cm-text-dark);
  margin-bottom: 0.4rem;
}

/* 入力フィールド共通 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  border: 2px solid var(--cm-text-light);
  border-radius: var(--cm-radius-image);
  padding: 0.75rem 1rem;
  font-family: var(--cm-font-body);
  font-size: 1rem;
  color: var(--cm-text-dark);
  background: #fff;
  box-sizing: border-box;
  transition: var(--cm-transition);
}

/* フォーカス */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--cm-ocean-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 79, 114, 0.12);
}

/* テキストエリア */
.wpcf7-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--cm-text-small);
  color: #e03131;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid {
  border-color: #e03131;
}

/* 送信中・完了メッセージ */
.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--cm-radius-image);
  font-size: 0.95rem;
  font-family: var(--cm-font-body);
  text-align: center;
  border: 2px solid transparent;
}

.wpcf7-mail-sent-ok {
  background: #e6f4ea;
  border-color: #2e7d32;
  color: #2e7d32;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
  background: #fff0f0;
  border-color: #e03131;
  color: #c92a2a;
}

/* 送信ボタンラッパー（中央揃え） */
.wpcf7-form .wpcf7-submit-wrap,
.wpcf7-form p:has(input[type="submit"]) {
  text-align: center;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
  display: inline-block;
  width: min(100%, 320px);
  background: var(--cm-sunset-orange);
  color: #fff;
  border: none;
  border-radius: var(--cm-radius-button);
  padding: 1rem 2rem;
  font-family: var(--cm-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: var(--cm-shadow-button);
  transition: var(--cm-transition);
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--cm-golden-hour);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* タブレット以上 */
@media (min-width: 768px) {
  .wpcf7-form {
    gap: 1.5rem;
  }

  .wpcf7-form input[type="submit"] {
    width: min(100%, 360px);
    padding: 1.1rem 2.5rem;
  }
}


/* ============================================================
 * お問い合わせページレイアウト
 * ============================================================ */

/* 上部: Airリザーブ予約ブロック */
.cm-contact-reserve {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: var(--cm-section-py) var(--cm-container-px);
  background:
    linear-gradient(rgba(8, 79, 114, 0.62), rgba(8, 79, 114, 0.62)),
    url('/wp-content/uploads/2026/04/94cf1d64-4550-4b56-afa2-fa363b39e45b-e1775104789781.webp') center top / cover no-repeat;
  text-align: center;
  color: #fff;
}

.cm-contact-reserve__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cm-contact-reserve__label {
  font-family: var(--cm-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}

.cm-contact-reserve__heading {
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h1);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.cm-contact-reserve__body {
  font-size: var(--cm-text-small);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
}

.cm-contact-reserve__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
}

/* 下部: CF7フォームセクション */
.cm-contact-form {
  padding: var(--cm-section-py) var(--cm-container-px);
  background: #fff;
}

.cm-contact-form__inner {
  max-width: 720px;
  margin: 0 auto;
}

.cm-contact-form__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.cm-contact-form__label {
  font-family: var(--cm-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cm-sunset-orange);
  margin-bottom: 0.5rem;
}

.cm-contact-form__heading {
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h2);
  font-weight: 800;
  color: var(--cm-text-dark);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.cm-contact-form__desc {
  color: var(--cm-text-medium);
  font-size: var(--cm-text-small);
  line-height: 1.8;
}

.cm-contact-form__fallback {
  text-align: center;
  color: var(--cm-text-medium);
  font-size: var(--cm-text-small);
  line-height: 1.8;
  padding: 2rem 0;
}

.cm-contact-form__fallback a {
  color: var(--cm-ocean-blue);
}


/* ============================================================
 * ユーティリティ: セクション (.cm-section)
 * ============================================================ */

.cm-section {
  padding: var(--cm-section-py) var(--cm-container-px);
}

.cm-section--white {
  background: #fff;
}

.cm-section--sky {
  background: var(--cm-sky-blue);
}

.cm-section--offwhite {
  background: #f7f9fa;
}

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

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

.cm-section__empty {
  text-align: center;
  color: var(--cm-text-medium);
  font-size: var(--cm-text-small);
  padding: 3rem 0;
}


/* ============================================================
 * ツアーページ: カードグリッド (.cm-tours-page-grid)
 * ============================================================ */

.cm-tours-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--cm-grid-gap);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

@media (max-width: 900px) {
  .cm-tours-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .cm-tours-page-grid {
    grid-template-columns: 1fr;
  }
}

.cm-tour-card__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: var(--cm-text-small);
  padding: 0.6rem 1.6rem;
}


/* ============================================================
 * ツアーページ: 料金テーブル (.cm-price-table)
 * ============================================================ */

.cm-price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  border-radius: var(--cm-radius-card);
  box-shadow: var(--cm-shadow-card);
}

.cm-price-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  font-size: var(--cm-text-small);
}

.cm-price-table thead {
  background: var(--cm-ocean-blue);
  color: #fff;
}

.cm-price-table th,
.cm-price-table td {
  padding: 0.9rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(11, 110, 158, 0.1);
  vertical-align: middle;
}

@media (min-width: 768px) {
  .cm-price-table td {
    font-size: 1rem;
  }
}

.cm-price-table th {
  font-family: var(--cm-font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cm-price-table tbody tr:last-child td {
  border-bottom: none;
}

.cm-price-table tbody tr:hover {
  background: var(--cm-sky-blue);
  transition: background 0.2s ease;
}

.cm-price-table__name a {
  color: var(--cm-ocean-blue);
  font-weight: 700;
  text-decoration: none;
}

.cm-price-table__name a:hover {
  text-decoration: underline;
}

.cm-price-table__price {
  font-family: var(--cm-font-heading);
  font-weight: 700;
  color: var(--cm-sunset-orange);
  white-space: nowrap;
}

.cm-price-table__reserve {
  text-align: center;
  white-space: nowrap;
}

.cm-price-table__reserve-note {
  display: block;
  font-size: 0.6875rem;
  color: var(--cm-text-muted, #888);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.cm-table-scroll-hint {
  display: none;
}

@media (max-width: 767px) {
  .cm-table-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--cm-text-muted, #888);
    margin-bottom: 0.5rem;
    justify-content: flex-end;
  }

  /* ヒントとテーブルを近づける */
  .cm-table-scroll-hint + .cm-price-table-wrap {
    margin-top: 0.5rem;
  }
}

.cm-price-table-wrap--child .cm-price-table thead th:first-child {
  border-top-left-radius: var(--cm-radius-card);
}

.cm-price-table-wrap--child .cm-price-table thead th:last-child {
  border-top-right-radius: var(--cm-radius-card);
}

.cm-price-table-wrap--child {
  border-top-left-radius: var(--cm-radius-card);
  border-top-right-radius: var(--cm-radius-card);
  overflow: hidden;
}

.cm-price-table-wrap--child .cm-price-table {
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

.cm-price-table-wrap--child .cm-price-table thead {
  background: transparent;
}

.cm-price-table-wrap--child .cm-price-table thead th {
  background: var(--cm-ocean-blue);
}

.cm-price-table-wrap--child .cm-price-table tbody td {
  background: #fff;
}

@media (max-width: 767px) {
  .cm-price-table-wrap--child .cm-price-table {
    min-width: 0;
    table-layout: fixed;
  }

  .cm-price-table-wrap--child .cm-price-table th,
  .cm-price-table-wrap--child .cm-price-table td {
    padding: 0.8rem 0.75rem;
  }

  .cm-price-table-wrap--child .cm-price-table th:first-child,
  .cm-price-table-wrap--child .cm-price-table td:first-child {
    width: 46%;
  }

  .cm-price-table-wrap--child .cm-price-table th:last-child,
  .cm-price-table-wrap--child .cm-price-table td:last-child {
    width: 54%;
  }
}

.cm-price-table__badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 50px;
  background: var(--cm-sky-blue);
  color: var(--cm-ocean-blue);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}


/* ============================================================
 * ツアーページ: 注意事項 (.cm-notes-list)
 * ============================================================ */

.cm-notes-list {
  list-style: none;
  padding: 0;
  margin: clamp(2.5rem, 4vw, 4rem) auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cm-notes-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.78rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--cm-text-dark);
  background: #fff;
  border-radius: var(--cm-radius-card);
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(11, 110, 158, 0.07);
}

.cm-notes-list__icon {
  flex-shrink: 0;
  margin-top: 0.2em;
  color: var(--cm-ocean-blue);
}

.cm-notes-list__text {
  flex: 1;
  min-width: 0;
}

.cm-price-table__footnote {
  padding: 1rem 1.25rem;

}

/* ============================================================
 * キャンペーン表示
 * ============================================================ */

.cm-campaign-original {
  text-decoration: line-through;
  opacity: 0.55;
  font-size: 0.85em;
  font-weight: 400;
}

.cm-campaign-price {
  color: #e03131;
  font-weight: 800;
  text-decoration: none;
}


.cm-tour-card__price-tag .cm-campaign-original {
  display: block;
  font-size: 0.7em;
  line-height: 1;
}

.cm-tour-card__price-tag .cm-campaign-price {
  font-size: 1.25rem;
}

.cm-campaign-badge-sm {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background: #e03131;
  padding: 0.15em 0.5em;
  border-radius: 2em;
  margin-left: 0.4em;
  vertical-align: middle;
  line-height: 1.4;
}

.cm-price-table__price del {
  display: block;
  font-size: 0.8em;
}

.cm-price-table__price ins {
  text-decoration: none;
}


/* ============================================================
 * ツアーページ: 予約CTAフルブリード (.cm-reserve-cta--full)
 * ============================================================ */

.cm-reserve-cta--full {
  background: var(--cm-ocean-blue);
}


/* ============================================================
 * ユーティリティ: .cm-section--center（テキスト中央揃えセクション）
 * ============================================================ */

.cm-section--center {
  text-align: center;
}


/* ============================================================
 * ボタン: アウトラインブルー (.cm-btn-outline-blue)
 * ============================================================ */

.cm-btn-outline-blue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border: 2px solid var(--cm-ocean-blue);
  border-radius: var(--cm-radius-button);
  color: var(--cm-ocean-blue);
  background: transparent;
  font-weight: 700;
  font-size: var(--cm-text-small);
  text-decoration: none;
  transition: var(--cm-transition);
}

.cm-btn-outline-blue:hover {
  background: var(--cm-ocean-blue);
  color: #fff;
}


/* ============================================================
 * FAQページ (.cm-faq-*)
 * ============================================================ */

.cm-faq-wrap {
  margin-top: clamp(2.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 4vw, 4rem);
}

/* カテゴリブロック */
.cm-faq-category__heading {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h3);
  font-weight: 700;
  color: var(--cm-ocean-blue);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cm-sky-blue);
}

.cm-faq-category__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--cm-ocean-blue);
}

/* QAリスト */
.cm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

/* 各アイテム */
.cm-faq__item {
  border: 1px solid rgba(11, 110, 158, 0.12);
  border-radius: var(--cm-radius-card);
  overflow: hidden;
  background: #fff;
}

/* 質問 */
.cm-faq__question {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  background: var(--cm-sky-blue);
  user-select: none;
  list-style: none;
  transition: background 0.2s ease;
}

.cm-faq__question:hover {
  background: #d6eef8;
}

.cm-faq__q-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cm-ocean-blue);
  color: #fff;
  font-family: var(--cm-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-faq__q-text {
  flex: 1;
  font-size: var(--cm-text-small);
  font-weight: 600;
  color: var(--cm-text-dark);
  line-height: 1.6;
}

.cm-faq__toggle {
  flex-shrink: 0;
  color: var(--cm-ocean-blue);
  transition: transform 0.25s ease;
}

/* 回答（初期非表示） */
.cm-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
  margin: 0;
  padding: 0;
}

.cm-faq__answer-inner {
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0 1.25rem;
  font-size: var(--cm-text-small);
  line-height: 1.8;
  color: var(--cm-text-medium);
  border-left: 4px solid var(--cm-ocean-blue);
}

/* open状態 */
.cm-faq__item.is-open .cm-faq__answer {
  grid-template-rows: 1fr;
}

.cm-faq__item.is-open .cm-faq__answer-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.cm-faq__toggle-v {
  transition: opacity 0.25s ease;
}

.cm-faq__item.is-open .cm-faq__toggle {
  transform: rotate(45deg);
}

.cm-faq__a-mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cm-sunset-orange);
  color: #fff;
  font-family: var(--cm-font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 回答テキスト */
.cm-faq__a-text {
  flex: 1;
  min-width: 0;
}

/* お問い合わせリンクブロック */
.cm-faq-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.cm-faq-contact__text {
  font-size: var(--cm-text-body);
  font-weight: 600;
  color: var(--cm-text-dark);
  margin: 0;
}


/* ============================================================
 * アクセスページ: マップ + 基本情報 (.cm-access-map-row)
 * ============================================================ */

.cm-access-map-row {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (max-width: 767px) {
  .cm-access-map-row {
    grid-template-columns: 1fr;
  }
}

/* マップ埋め込みラップ */
.cm-map-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--cm-radius-card);
  overflow: hidden;
  background: var(--cm-sky-blue);
}

.cm-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cm-map-wrap__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--cm-text-medium);
  font-size: var(--cm-text-small);
  line-height: 1.7;
}

/* 基本情報 */
.cm-access-info__heading {
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h2);
  font-weight: 800;
  color: var(--cm-text-dark);
  margin: 0 0 1.5rem;
}

.cm-access-info__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
}

.cm-access-info__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.75rem;
  align-items: start;
}

.cm-access-info__label {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--cm-text-small);
  font-weight: 700;
  color: var(--cm-ocean-blue);
  white-space: nowrap;
  padding-top: 0.1em;
}

.cm-access-info__value {
  font-size: var(--cm-text-small);
  line-height: 1.8;
  color: var(--cm-text-dark);
  margin: 0;
}

.cm-access-info__tel {
  font-family: var(--cm-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cm-ocean-blue);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.cm-access-info__tel:hover {
  color: var(--cm-deep-sea);
}


/* ============================================================
 * アクセスページ: 交通手段 (.cm-access-transport)
 * ============================================================ */

.cm-access-transport {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

@media (max-width: 767px) {
  .cm-access-transport {
    grid-template-columns: 1fr;
  }
}

.cm-access-transport__heading {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h3);
  font-weight: 700;
  color: var(--cm-text-dark);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--cm-sky-blue);
}

.cm-access-transport__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--cm-ocean-blue);
}

.cm-access-transport__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step-counter;
}

.cm-access-transport__step {
  position: relative;
  padding: 0 0 1.5rem 1rem;
  border-left: 2px solid var(--cm-sky-blue);
}

.cm-access-transport__step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.cm-access-transport__step-label {
  display: inline-block;
  font-family: var(--cm-font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cm-ocean-blue);
  background: var(--cm-sky-blue);
  padding: 0.15em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.cm-access-transport__step-text {
  font-size: var(--cm-text-small);
  line-height: 1.7;
  color: var(--cm-text-dark);
  margin: 0;
}

.cm-access-transport__step-text small {
  color: var(--cm-text-medium);
  font-size: 0.8rem;
}

.cm-access-transport__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: var(--cm-radius-card);
  font-size: var(--cm-text-small);
  font-weight: 700;
  color: var(--cm-ocean-blue);
  box-shadow: var(--cm-shadow-card);
}


/* ============================================================
 * プライバシーポリシーページ (.cm-privacy)
 * ============================================================ */

/* コンテンツ最大幅を絞って読みやすく */
.cm-privacy .cm-section__inner {
  max-width: 800px;
}

/* 本文ラッパー */
.cm-privacy__content {
  background: #fff;
  border: 1px solid rgba(11, 110, 158, 0.1);
  border-radius: var(--cm-radius-card);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--cm-shadow-card);
  line-height: 1.9;
  color: var(--cm-text-dark);
  font-size: var(--cm-text-body);
}

/* ブロックエディタ由来の見出しスタイル */
.cm-privacy__content h2 {
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-h3);
  font-weight: 700;
  color: var(--cm-text-dark);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cm-sky-blue);
  line-height: 1.4;
}

.cm-privacy__content h2:first-child {
  margin-top: 0;
}

.cm-privacy__content h3 {
  font-family: var(--cm-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cm-ocean-blue);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* 段落 */
.cm-privacy__content p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--cm-text-medium);
  line-height: 1.9;
}

/* リスト */
.cm-privacy__content ul,
.cm-privacy__content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.cm-privacy__content li {
  margin-bottom: 0.4rem;
  color: var(--cm-text-medium);
  line-height: 1.8;
}

/* リンク */
.cm-privacy__content a {
  color: var(--cm-ocean-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--cm-transition);
}

.cm-privacy__content a:hover {
  color: var(--cm-deep-sea);
}

/* strong / em */
.cm-privacy__content strong {
  font-weight: 700;
  color: var(--cm-text-dark);
}

/* 改定日などの補足テキスト */
.cm-privacy__content .wp-block-paragraph.has-small-font-size,
.cm-privacy__content p.has-small-font-size {
  font-size: var(--cm-text-small);
  color: var(--cm-text-light);
}

/* 戻るリンク */
.cm-privacy__back {
  margin-top: 2.5rem;
  text-align: center;
}

.cm-privacy__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--cm-font-heading);
  font-size: var(--cm-text-small);
  font-weight: 600;
  color: var(--cm-text-medium);
  text-decoration: none;
  transition: var(--cm-transition);
}

.cm-privacy__back-link:hover {
  color: var(--cm-ocean-blue);
  gap: 0.6rem;
}


/* ============================================================
 * カスタムフッター (.cm-footer)
 * ============================================================ */

/* SWELLデフォルトフッターのスタイルをリセット（カスタムフッターで全置換） */
.l-footer {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ウェーブ装飾（コンテンツ → フッターの境界） */
.cm-footer-wave {
  display: block;
  line-height: 0;
  margin-bottom: -4px;
}

.cm-footer-wave svg {
  display: block;
  width: 100%;
  height: clamp(36px, 5vw, 72px);
}

/* フッター本体 */
.cm-footer {
  background: linear-gradient(160deg, var(--cm-clear-sky) 0%, var(--cm-ocean-blue) 48%, var(--cm-deep-sea) 100%);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--cm-font-body);
}

.cm-footer__inner {
  max-width: var(--cm-content-max);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--cm-container-px) clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* ── ブランド列 ── */
.cm-footer__logo-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

.cm-footer__logo-link:hover {
  opacity: 0.75;
}

.cm-footer__logo-link img,
.cm-footer__logo-link * {
  height: clamp(36px, 4vw, 52px);
  width: auto;
  display: block;
  background: transparent !important;
}

.cm-footer__address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.cm-footer__address-name {
  font-family: var(--cm-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
}

.cm-footer__address-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.cm-footer__address-line svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.cm-footer__tel {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cm-footer__tel:hover {
  color: var(--cm-golden-hour);
}

/* 問い合わせボタン */
.cm-footer__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  background: var(--cm-sunset-orange);
  color: #fff;
  font-family: var(--cm-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: var(--cm-radius-button);
  box-shadow: 0 4px 18px rgba(232, 115, 42, 0.45);
  transition: var(--cm-transition);
}

.cm-footer__contact-btn:hover {
  background: var(--cm-golden-hour);
  box-shadow: 0 6px 24px rgba(232, 115, 42, 0.55);
  transform: translateY(-2px);
  color: #fff;
}

/* ── ナビゲーション列 ── */
.cm-footer__nav {
  padding-top: 0.25rem;
}

.cm-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cm-footer__menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-footer__menu li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-footer__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.cm-footer__menu a::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.cm-footer__menu a:hover {
  color: #fff;
  padding-left: 0.5rem;
}

.cm-footer__menu a:hover::after {
  width: 28px;
  background: var(--cm-golden-hour);
}

.cm-footer__menu li.current-menu-item a {
  color: var(--cm-golden-hour);
}

/* ── コピーライトバー ── */
.cm-footer__copy-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem var(--cm-container-px);
  text-align: center;
}

.cm-footer__copy {
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--cm-font-heading);
  letter-spacing: 0.06em;
  margin: 0;
}

/* ── レスポンシブ（タブレット〜） ── */
@media (max-width: 767px) {
  .cm-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cm-footer__nav {
    padding-top: 0;
  }
}

/* ============================================================
 * ツアーメニュー詳細カード (.cm-tour-card)
 * モダン・アクティビティ・スタイル
 * ============================================================ */

.cm-tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  padding-top: 140px; /* 難易度吹き出し（アイコン+吹き出し全体）の飛び出し分 */
}

@media (min-width: 960px) {
  .cm-tour-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* SP/TAB 1カラム時：難易度吹き出し+三角しっぽが前カードへ被るのを防ぐ */
@media (max-width: 959px) {
  .cm-tour-grid {
    row-gap: 170px !important;
  }
}

.cm-tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(11, 110, 158, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  border: 1px solid rgba(11, 110, 158, 0.05);
}

.cm-tour-card:has(.cm-tour-card__img-wrap) {
  background: transparent;
}

.cm-tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 110, 158, 0.12);
  border-color: rgba(11, 110, 158, 0.15);
}

/* 画像エリア */
.cm-tour-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.cm-tour-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
  transition: transform 0.6s ease;
}

.cm-tour-card:hover .cm-tour-card__img {
  transform: scale(1.05);
}


.cm-tour-card__price-tag {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.4rem 0.8rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cm-tour-card__price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cm-sunset-orange);
  font-family: var(--cm-font-heading);
}

.cm-tour-card__price-unit {
  font-size: 0.65rem;
  color: #777;
  font-weight: 600;
}

/* コンテンツエリア */
.cm-tour-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
}

.cm-tour-card__header {
  margin-bottom: 0.75rem;
}

.cm-tour-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cm-deep-sea);
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
  text-align: left;
}

.cm-tour-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
  text-align: left;
}

.cm-tour-card__time-range {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cm-ocean-blue);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cm-tour-card__lead {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
  margin: 0 0 1.25rem;
  text-align: left;
}

/* 基本情報行（アイコン） */
.cm-tour-card__info-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(11, 110, 158, 0.15);
}

.cm-tour-card__info-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cm-ocean-blue);
}

.cm-tour-card__info-item svg {
  opacity: 0.8;
}

/* 詳細メタ情報（スケジュール・料金・タグ） */
.cm-tour-card__meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.cm-tour-card__meta-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #aaa;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* 価格詳細 */
.cm-tour-card__price-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cm-tour-card__price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #f0f7f9;
}

.cm-tour-card__price-item .label {
  font-weight: 600;
  color: #555;
}

.cm-tour-card__price-item .value {
  font-weight: 800;
  color: var(--cm-sunset-orange);
}

.cm-tour-card__price-item small {
  font-size: 0.75rem;
  color: #999;
  font-weight: 500;
}

/* スケジュール */
.cm-tour-card__timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
}

.cm-tour-card__timeline li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  color: #555;
  display: flex;
  gap: 0.75rem;
}

.cm-tour-card__timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: 4px;
  background: var(--cm-ocean-blue);
  border-radius: 50%;
}

.cm-tour-card__timeline .time {
  font-weight: 700;
  color: var(--cm-ocean-blue);
  min-width: 3rem;
}

/* 料金に含まれるもの */
.cm-price-includes {
  margin-top: 3.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(11, 110, 158, 0.08);
  border-radius: 1rem;
  padding: 2rem 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(11, 110, 158, 0.06);
}

.cm-price-includes__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cm-deep-sea);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cm-price-includes__title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--cm-ocean-blue);
  border-radius: 2px;
}

.cm-price-includes__lead {
  font-size: 0.875rem;
  color: #666;
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 110, 158, 0.08);
}

.cm-price-includes__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .cm-price-includes__list {
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
  }
}

.cm-price-includes__list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444;
  border-bottom: 1px dashed rgba(11, 110, 158, 0.08);
}

.cm-price-includes__list li:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .cm-price-includes__list li:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.cm-price-includes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--cm-ocean-blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

@media (max-width: 767px) {
  .cm-price-includes {
    padding: 1.5rem 1.25rem;
  }
}

/* カード下部の補足情報グリッド */
.cm-tour-footer-info {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(11, 110, 158, 0.05);
}

.cm-tour-footer-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cm-tour-footer-info__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cm-tour-footer-info__box {
  background: rgba(255, 255, 255, 0.6);
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(11, 110, 158, 0.05);
}

.cm-tour-footer-info__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cm-deep-sea);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cm-tour-footer-info__title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--cm-sunset-orange);
  border-radius: 2px;
}

.cm-tour-footer-info__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.7;
}

.cm-tour-footer-info__list li {
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  position: relative;
}

.cm-tour-footer-info__list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--cm-ocean-blue);
  font-weight: 800;
}

.cm-tour-footer-info__list strong {
  color: var(--cm-deep-sea);
}

/* 予約ボタン */
.cm-tour-card__btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--cm-sunset-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

.cm-tour-card__btn:hover {
  background: var(--cm-ocean-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 110, 158, 0.25);
  color: #fff;
}

.cm-tour-card__btn svg {
  transition: transform 0.3s;
}

.cm-tour-card__btn:hover svg {
  transform: translateX(4px);
}

.cm-tour-card__note {
  font-size: 0.65rem;
  color: #999;
  text-align: center;
  margin: 0.75rem 0 0;
}

/* ── SP対応 ── */
@media (max-width: 599px) {
  .cm-tour-grid {
    gap: 1.5rem;
  }
  
  .cm-tour-card__content {
    padding: 1.25rem;
  }

  .cm-tour-card__btn {
    padding: 0.875rem;
  }
}
