/* ==========================================================================
   Japan City Tour — サイト共通スタイル
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   旧「Custom CSS & JS」プラグインに散らばっていたスニペットを統合したもの。
   各ブロックの見出しが元のスニペット名です。
   移設日: 2026-08-31
   ========================================================================== */


/* --------------------------------------------------------------------------
   フォント
   -------------------------------------------------------------------------- */
/* =========================
   Global Typography (Final)
   ========================= */

/* 本文・UI */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: #111;
}

/* 見出し（ブランド） */
h1, h2, h3, h4, h5 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 大見出しだけ少し強調 */
h1 {
  letter-spacing: 0.04em;
}

/* ボタン・ナビ・UI要素は本文側 */
button,
.wp-block-button__link,
.wp-block-navigation,
input,
select,
textarea {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


/* --------------------------------------------------------------------------
   試作
   -------------------------------------------------------------------------- */
/* Hero title font (luxury serif) */
.hero-title {
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 28px
}

/* Hero cover: force true full-bleed (fix side gap) */
.hero-cover {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  width: 100vw !important;
  max-width: 100vw !important;

  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

/* Remove inner gutters */
.hero-cover > .wp-block-cover__inner-container {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Gutenberg cover inner wrapper */
.hero-cover > .wp-block-cover__inner-container {
  max-width: none;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 下側フェード用 */
.hero-cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 60%,
    rgba(255,255,255,1) 100%
  );
  pointer-events: none;
}

/* Fit section: two columns as soft cards */
.hub-fit-cols {
  gap: 24px;
}

.hub-fit-col {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 24px;
}

/* Make subheadings look premium */
.hub-fit-col h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-weight: 600;
}

/* =========================
   Explore Japan Your Way cards
   ========================= */

/* カード本体 */
.hub-card {
  height: 100%;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* カード見出し */
.hub-card h3 {
  font-weight: 600;
}

/* H2 with horizontal lines */
.hub-heading-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.hub-heading-line {
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 28px
  content
}
/* 左右の線 */
.hub-heading-line::before{
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.15);
}
.hub-heading-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.15);
}

/* モバイルで線を短く */
@media (max-width: 768px) {
  .hub-heading-line {
    gap: 16px;
  }
}

/* =========================
   Horizontal scroll on mobile
   ========================= */

/* デフォルト（PC）はそのまま */
.hub-paths {
  overflow: visible;
}

/* =========================
   Horizontal scroll on mobile (no overlap)
   ========================= */

@media (max-width: 768px) {
  /* Columnsコンテナを横スクロール化 */
  .hub-paths.wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 16px;

    /* テーマのColumns余白・マイナスマージン対策 */
    margin: 0 !important;
    padding: 0 16px 8px;
  }

  /* 各カラム（=カードの外枠）を固定幅にする */
  .hub-paths.wp-block-columns > .wp-block-column {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;          /* これが効くことが多い */
    max-width: none !important;
  }

  /* カード自体の幅（ここで決まる） */
  .hub-paths.wp-block-columns .hub-card {
    min-width: 260px;
    max-width: 280px;
  }

  /* スクロールバー非表示（任意） */
  .hub-paths.wp-block-columns::-webkit-scrollbar {
    display: none;
  }
}

/* =========================
   Read More button (final version)
   ========================= */

details.read-more {
  margin-top: 16px;
  text-align: center;
}

/* summary を完全にボタン化 */
details.read-more > summary {
  list-style: none !important;
  display: inline-block !important;
  cursor: pointer;

  /* ★ 左右の空白を増やす */
  padding: 12px 36px !important;

  /* ★ 四角ボタン */
  border-radius: 0 !important;

  background: #005A8B !important;
  color: #ffffff !important;
  border: 1px solid #005A8B !important;

  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;

  transition: background 0.25s ease, border-color 0.25s ease, transform 0.1s ease;
}

/* 三角マーカー完全削除 */
details.read-more > summary::-webkit-details-marker {
  display: none !important;
}
details.read-more > summary::marker {
  content: "" !important;
}
details.read-more > summary::before,
details.read-more > summary::after {
  content: none !important;
}

/* hover */
details.read-more > summary:hover {
  background: #004a72 !important;
  border-color: #004a72 !important;
}

/* active（押した感） */
details.read-more > summary:active {
  transform: translateY(1px);
}

/* open 状態 */
details.read-more[open] > summary {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
}

/* ===== 表記切り替え ===== */
details.read-more .less {
  display: none;
}
details.read-more[open] .more {
  display: none;
}
details.read-more[open] .less {
  display: inline;
}

/* 中身のテキスト */
details.read-more > p {
  margin-top: 20px;
  line-height: 1.6;
  text-align: left;
}

/* =========================
   Reviews layout (final, stable version)
   ========================= */

/* ---------- PC / Tablet ---------- */
.hub-reviews.wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;

  margin: 0 !important;
  padding: 0 !important;
}

/* Columns 内部の指定を無効化 */
.hub-reviews.wp-block-columns > .wp-block-column {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  flex: initial !important;
}

/* ---------- Mobile: horizontal scroll ---------- */
@media (max-width: 768px) {

  /* 横スクロールコンテナ */
  .hub-reviews.wp-block-columns {
    display: flex !important;
    flex-wrap: nowrap !important;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    gap: 16px;
    padding: 0 16px 16px;
    margin: 0 !important;
  }

  /* Columns レイヤーを横並び要素として固定 */
  .hub-reviews.wp-block-columns > .wp-block-column {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* ★ レビューカードは 85% 幅で安定させる */
  .hub-reviews.wp-block-columns .hub-card {
    width: 85vw;
    min-width: 85vw;
    max-width: 85vw;
  }
}

/* ---------- Scrollbar visible (intentional) ---------- */
.hub-reviews.wp-block-columns {
  scrollbar-width: auto; /* Firefox */
}

.hub-reviews.wp-block-columns::-webkit-scrollbar {
  height: 8px;
}

.hub-reviews.wp-block-columns::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
}
/* =========================
   Reviews: restore "card feel"
   ========================= */

.hub-reviews .hub-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 14px 38px rgba(0,0,0,0.10);
  padding: 22px;
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   ヘッダー調整
   -------------------------------------------------------------------------- */
/* =========================
   Header: prevent clipping + keep one row on mobile
   ========================= */

/* ヘッダー左右の安全余白（はみ出し防止） */
header.wp-block-template-part,
.jct-site-header {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* ここで“切らない”のが重要 */
header.wp-block-template-part,
.jct-site-header {
  overflow: visible !important;
}

/* ナビを含むヘッダー行っぽいグループ/カラムを1行固定（モダンブラウザ前提） */
header .wp-block-group:has(.wp-block-navigation),
header .wp-block-columns:has(.wp-block-navigation) {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap !important;
  gap: 8px;
  min-width: 0;
}

/* 子要素が縮められるように */
header .wp-block-group:has(.wp-block-navigation) > *,
header .wp-block-columns:has(.wp-block-navigation) > * {
  min-width: 0;
}

/* Header logo only (DO NOT affect all template images) */
header img {
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* SNSアイコン：詰める＆少し小さく（途切れ対策の本丸） */
@media (max-width: 768px) {
  header .wp-block-social-links {
    gap: 4px;
    flex: 0 1 auto;      /* ←縮める */
    min-width: 0;
    overflow: visible;
  }

  header .wp-block-social-links .wp-social-link {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* アイコン自体を少し縮小（見た目はほぼ変わらず、収まりが良くなる） */
  header .wp-block-social-links .wp-social-link a {
    transform: scale(0.88);
    transform-origin: right center;
  }

  /* ハンバーガー周りの詰め */
  header .wp-block-navigation__responsive-container-open {
    margin-left: 4px;
  }
}

/* =========================
   Sticky header
   ========================= */

/* サイトヘッダーだけを固定する。
   
   かつては `header, .wp-block-template-part` という広すぎるセレクタだった。
   ブロックテンプレート（archive.html など）では記事一覧も
   <!-- wp:template-part {"slug":"posts"} --> で出力されるため、
   記事一覧にも sticky・z-index:9999・白背景が当たっていた。
   DOM上あとに来る記事一覧が同じ z-index で勝ち、ヘッダーのプルダウンを
   覆い隠していたのがカテゴリーページで起きていた不具合の原因。
   
   対象をサイトヘッダー2種（ブロックテンプレート側とPHPテンプレート側）に限定する。 */
header.wp-block-template-part,
.jct-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* 固定時にアンカーリンクがヘッダーに隠れないように（任意） */
:root {
  scroll-padding-top: 90px;
}


/* --------------------------------------------------------------------------
   フッター横幅調整
   -------------------------------------------------------------------------- */
/* 1) フッター内部だけ、はみ出しを切る（止血） */
footer {
  overflow-x: clip !important; /* もし効かなければ hidden に変更 */
}

/* 2) Kadence Row / Navigation が 100vw / alignfull で膨らむ対策 */
footer .alignfull,
footer [class*="alignfull"],
footer .wp-block-kadence-rowlayout,
footer .wp-block-kadence-navigation,
footer .kadence-navigation,
footer .kadence-navigation-container,
footer .kadence-navigation-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* 3) 横並びが折り返さず伸び続ける対策 */
footer .wp-block-kadence-navigation ul {
  flex-wrap: wrap !important;
}

footer .wp-block-kadence-navigation a,
footer .wp-block-kadence-navigation li {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* フッター：PC時はナビを横並び＆詰める */
@media (min-width: 1024px) {
  .footer-nav-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  /* ナビを均等割りせず、コンテンツ幅で詰める */
  .footer-nav-row > * {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  /* Kadence Navigation が幅100%を持っている場合の対策 */
  .footer-nav-row .wp-block-kadence-navigation {
    width: auto !important;
  }
}


/* --------------------------------------------------------------------------
   トップページ実績
   -------------------------------------------------------------------------- */
/* =========================
   Metrics / Benefits: 4 independent cards
   (outer has 2 columns, each contains 2 items)
   ========================= */

/* 外側2カラムの“カード化”をやめる（まとめカード防止） */
.wp-block-columns.hub-metrics-cols > .wp-block-column {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* 外側の入れ子Columnsの余白を整える */
.wp-block-columns.hub-metrics-cols > .wp-block-column > .wp-block-columns {
  margin: 0;
  gap: 24px; /* 2枚の間隔（好みで調整） */
}

/* ★ここが本体：内側の各項目（=4つ）をカード化 */
.wp-block-columns.hub-metrics-cols
> .wp-block-column
> .wp-block-columns
> .wp-block-column {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  margin: 0;
}

/* タイトル */
.wp-block-columns.hub-metrics-cols
> .wp-block-column
> .wp-block-columns
> .wp-block-column
h2,
.wp-block-columns.hub-metrics-cols
> .wp-block-column
> .wp-block-columns
> .wp-block-column
h3,
.wp-block-columns.hub-metrics-cols
> .wp-block-column
> .wp-block-columns
> .wp-block-column
h4 {
  margin: 0 0 8px 0;
  font-weight: 600;
}

/* 説明文 */
.wp-block-columns.hub-metrics-cols
> .wp-block-column
> .wp-block-columns
> .wp-block-column
> p:last-child {
  margin: 0;
  line-height: 1.6;
  opacity: 0.9;
}

/* =========================
   Metrics: mobile side padding adjustment
   ========================= */

@media (max-width: 768px) {

  /* 外側全体に左右の余白を作る */
  .wp-block-columns.hub-metrics-cols {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 中央（カード同士）の間隔は少し詰める */
  .wp-block-columns.hub-metrics-cols
  > .wp-block-column
  > .wp-block-columns {
    gap: 12px;
  }
}


/* --------------------------------------------------------------------------
   ツアー種類見せ方調整
   -------------------------------------------------------------------------- */
/* =========================
   Tour type image grid (2x2) - revised
   - Hover: scale the whole card (not just image)
   - Title + description never overlap
   - Mobile: description hidden (no hover)
   - Overlay uses elegant navy / brand tint (not pure black)
   ========================= */

.tour-type-grid {
  margin-top: 24px;
}

/* 2x2 spacing */
.tour-type-grid .wp-block-columns {
  gap: 18px;
  margin-bottom: 18px;
}

/* Card */
.tour-type-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f6f7f8; /* fallback (not black) */

  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);

  transition: transform .25s ease, box-shadow .25s ease;
  transform-origin: center;
}

/* Hover: scale the whole card */
@media (hover: hover) {
  .tour-type-card:hover {
    transform: scale(1.02);
    box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  }
}

/* Image */
.tour-type-card img {
  width: 100%;
  height: 320px;          /* PC height */
  object-fit: cover;
  display: block;
}

/* Elegant overlay (navy + slight brand tint) */
.tour-type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 28, 43, 0.72) 0%,
    rgba(0, 90, 139, 0.22) 45%,
    rgba(0, 0, 0, 0.00) 72%
  );
  z-index: 1;
}

/* Title (always visible) */
.tour-type-card h3,
.tour-type-card h4 {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  margin: 0;
  z-index: 2;

  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.20);
}

/* Description (hidden by default, shown on hover only) */
.tour-type-card p {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 52px; /* sits above title */
  margin: 0;
  z-index: 2;

  color: rgba(255,255,255,0.92);
  line-height: 1.55;

  opacity: 0;
  transform: translateY(6px);
  transition: opacity .20s ease, transform .20s ease;
}

/* Show description on hover (PC) */
@media (hover: hover) {
  .tour-type-card:hover p {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .tour-type-card img {
    height: 220px;
  }

  /* Mobile: keep description hidden (no hover UX) */
  .tour-type-card p {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   1-day tour 調整
   -------------------------------------------------------------------------- */
/* =========================
   Itinerary cards (vertical, premium)
   ========================= */

.itinerary-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 28px;
  margin-bottom: 24px;

  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

/* 見出し */
.itinerary-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}

/* 導入文 */
.itinerary-card > p:first-of-type {
  margin-bottom: 16px;
  opacity: 0.9;
}

/* 本文 */
.itinerary-card p {
  line-height: 1.7;
  margin-bottom: 12px;
}

/* 最後の余白を詰める */
.itinerary-card p:last-child {
  margin-bottom: 0;
}

/* モバイル微調整 */
@media (max-width: 768px) {
  .itinerary-card {
    padding: 22px;
  }
}


/* --------------------------------------------------------------------------
   カードのリンク化
   -------------------------------------------------------------------------- */
/* =========================
   Clickable card (works + no blank space)
   ========================= */

.hub-card.is-clickable-card {
  position: relative;
}

/* カード内のボタン（リンク）を“透明の全面リンク”にする */
.hub-card.is-clickable-card .wp-block-button {
  margin: 0 !important; /* 空白の原因を消す */
}

.hub-card.is-clickable-card .wp-block-button__link {
  position: absolute;
  inset: 0;
  z-index: 10;

  /* 透明リンク化（見た目は消えるがクリックは生きる） */
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;

  /* レイアウトを崩さない */
  padding: 0 !important;

  /* ボタンっぽい挙動を抑える */
  text-decoration: none !important;
  font-size: 0 !important;
}

/* カード全体でカーソルをリンクっぽく */
.hub-card.is-clickable-card {
  cursor: pointer;
}

/* キーボード操作用（フォーカスが見えるように） */
.hub-card.is-clickable-card .wp-block-button__link:focus-visible {
  outline: 2px solid rgba(0, 90, 139, 0.6);
  outline-offset: 4px;
}


/* --------------------------------------------------------------------------
   コンタクトフォームCSS
   -------------------------------------------------------------------------- */
/* 横並び2カラム対応 */
.cf7-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0px;
}

.cf7-col-half {
  flex: 1 1 48%;
  min-width: 150px;
}

/* ラベル上に、間隔調整 */
.wpcf7-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0px;
  font-size: 18px;
  margin-top: 0px;
}

/* 共通フィールドスタイル（input, select, textarea） */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  background-color: #f5f5f5;
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

/* ラジオボタン横並び */
.wpcf7-form .wpcf7-radio {
  display: flex;
  gap: 30px;
  margin-top: 5px;
}
.wpcf7-form .wpcf7-radio .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: center;
}
.wpcf7-form .wpcf7-radio input[type="radio"] {
  margin-right: 6px;
}

/* 送信ボタン中央配置＋スタイル */
.cf7-submit-wrapper {
  text-align: center;
  margin-top: 30px;
}
.cf7-submit-wrapper input[type="submit"] {
  display: block;           /* ← インラインからブロックに */
  margin: 0 auto;           /* ← 中央揃えを確実にする */
  background-color: #0073e6;
  color: white;
  border: none;
  padding: 14px 36px;
  font-size: 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.cf7-submit-wrapper input[type="submit"]:hover {
  background-color: #005bb5;
}


/* --------------------------------------------------------------------------
   画像ホバー時拡大
   -------------------------------------------------------------------------- */
.zoom-effect a img {
    transition: transform 0.3s ease !important; /* スムーズな拡大 */
	overflow: hidden; /* 拡大時に画像が切り取られないようにする */
    display: inline-block; /* 画像の範囲を正しく制限 */

}

.zoom-effect a:hover img {
    transform: scale(1.2) !important; /* 画像を1.2倍に拡大 */
}


/* --------------------------------------------------------------------------
   アバターガイドページ　画像の上に文字
   -------------------------------------------------------------------------- */
/* 画像と文字を重ねるカスタムCSS */
/* モバイルでも2カラムを維持 */
.mobile {
    display: flex;
    flex-wrap: nowrap;
}

.mobile {
    flex: 1 1 50%; /* 各カラムを50%に設定 */
    max-width: 50%;
}


/* --------------------------------------------------------------------------
   文字サイズ明記
   -------------------------------------------------------------------------- */
h1 {
  font-size: 40px;
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 28px;
}
h4 {
  font-size: 22px;
}
h5 {
  font-size: 18px;
}
h6 {
  font-size: 16px;
}


/* --------------------------------------------------------------------------
   メイン画像CSS
   -------------------------------------------------------------------------- */
.wp-image-118371 {
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   ヘッダーの重なり順とプルダウン
   
   問題だったこと
     ・上の "Sticky header" の指定が `header` という裸のセレクタで書かれており、
       PHPテンプレート側で使っていた <header class="jct-head">（ページ見出し）にも
       position:sticky と z-index:9999 と白背景が当たっていた。
       その結果、ページ見出しのブロックがヘッダーのプルダウンより前面に来て、
       メニューが下に潜り込んで見えた。
     ・さらにブロックテンプレートを直接出力していたため、サイトヘッダー側には
       <header> も .wp-block-template-part も存在せず、重なり順の指定が
       一切効いていなかった。

   対処
     ・ページ見出しは <div> に変更（上のルールに巻き込まれないように）
     ・サイトヘッダーを <header class="jct-site-header"> で明示的に包む
     ・プルダウンの重なり順と、閉じてしまう隙間をここで解決する
   -------------------------------------------------------------------------- */
.jct-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

/* プルダウンは常にページ内容より前面に */
.wp-block-navigation .wp-block-navigation__submenu-container {
  z-index: 100;
}

/* 親項目とプルダウンの間に隙間があると、カーソルを下ろす途中で
   hover が切れて閉じてしまう。隙間を透明な帯で埋めて渡れるようにする */
.wp-block-navigation .has-child > .wp-block-navigation__submenu-container::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

/* 画面の下にはみ出したときにスクロールできるように */
.wp-block-navigation .wp-block-navigation__submenu-container {
  max-height: min(70vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}


/* --------------------------------------------------------------------------
   モバイルの横方向のはみ出しを止める
   
   スマホでスワイプすると縦と一緒に横にも動いてしまう、という状態は
   ページのどこかが画面幅より広いために起きる。
   .alignfull（100vw指定）や、横長のテーブル・埋め込みが原因になりやすい。
   
   overflow-x: hidden ではなく clip を使う。
   hidden は position:sticky を無効化してしまい、固定ヘッダーが壊れるため。
   -------------------------------------------------------------------------- */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100%;
  /* 端まで来たときにブラウザ側の横スクロールへ連鎖させない */
  overscroll-behavior-x: none;
}

@media (max-width: 768px) {
  /* 100vw はスクロールバー幅を含むため、環境によって数px はみ出す */
  .alignfull,
  .wp-block-group.alignfull {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* 横に長くなりがちな要素は、それ自身の中でスクロールさせる */
  .entry-content table,
  .wp-block-table,
  .wp-block-embed {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }
}


/* --------------------------------------------------------------------------
   予約カレンダー: 出発日が決まっているツアー
   -------------------------------------------------------------------------- */

/* カレンダーの上に出す説明。日付が飛び飛びになる理由を先に伝える */
.jct-dates-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

/* 選べる出発日に印を付ける。押せない日と見分けがつくように */
.jct-cal-d.is-departure:not(:disabled) {
  font-weight: 700;
  position: relative;
}
.jct-cal-d.is-departure:not(:disabled)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
/* 選択中の日は下の点が邪魔になるので消す */
.jct-cal-d.is-departure.is-start::after,
.jct-cal-d.is-departure.is-end::after {
  display: none;
}
