@charset "UTF-8";
/* ==========================================================
   記事用パーツ(標準ブロックで作るパターン)のスタイル
   サイトの表示と、編集画面の両方で読み込まれます。
   ========================================================== */

/* 注意:グループブロックは、公開ページでは内側にもう1つ div が入ります。
   そのため、グループの中の要素は「>」(直下)ではなく、子孫セレクタで指定しています。 */

/* ---------- ボタンブロック ---------- */
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--tb-accent); color: #fff !important; border: 0; border-radius: 4px;
  font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none;
}
.wp-block-button .wp-block-button__link:hover { opacity: 0.9; }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--tb-ink) !important; border: 1px solid var(--tb-ink); padding: 0 24px;
}

/* ---------- 補足の小さな文字 ---------- */
p.tb-note { font-size: 12px; color: var(--tb-muted); line-height: 1.6; margin: -8px 0 20px; }

/* ---------- 結論ボックス / おすすめできる人 ---------- */
div.wp-block-group.tb-conclusion { border: 2px solid var(--tb-ink); border-radius: 6px; padding: 20px 24px; margin: 0 0 20px; }
p.tb-conclusion__title { font-family: var(--tb-head); font-weight: 900; font-size: 18px; line-height: 1.5; margin: 0 0 12px; }
div.wp-block-columns.tb-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px;
  font-size: 15px; line-height: 1.7; margin: 0 0 20px;
}
div.tb-conclusion div.wp-block-columns.tb-cols { margin-bottom: 0; }
div.tb-cols > .wp-block-column { margin: 0; min-width: 0; }
div.tb-cols.tb-cols--boxed > .wp-block-column { border: 1px solid var(--tb-line); border-radius: 6px; padding: 16px 20px; }
p.tb-cols__head { font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
p.tb-mark-good::before, p.tb-mark-bad::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px; }
p.tb-mark-good::before { border: 3px solid #1D4E89; border-radius: 50%; }
p.tb-mark-bad::before { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid #8A3A0B; }
div.tb-cols ul, div.tb-cols ol { margin: 0; padding-left: 20px; }

/* ---------- 商品リンクボックス ---------- */
div.wp-block-columns.tb-product {
  display: flex; flex-wrap: wrap !important; align-items: center !important; gap: 16px 20px;
  background: var(--tb-ground); border: 1px solid var(--tb-line); border-radius: 6px; padding: 16px; margin: 0 0 20px; line-height: 1.7;
}
div.wp-block-columns.tb-product > .wp-block-column { margin: 0; min-width: 0; }
div.wp-block-columns.tb-product > .wp-block-column:nth-child(1) { flex: 0 0 120px !important; }
div.wp-block-columns.tb-product > .wp-block-column:nth-child(2) { flex: 1 1 200px !important; }
div.wp-block-columns.tb-product > .wp-block-column:nth-child(3) { flex: 1 1 200px !important; }
div.tb-product .wp-block-image { margin: 0; width: 120px; max-width: 100%; aspect-ratio: 1 / 1; background: var(--tb-thumb); border-radius: 4px; overflow: hidden; }
div.tb-product .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
p.tb-product__maker { font-size: 12px; color: var(--tb-muted); font-weight: 700; margin: 0; line-height: 1.7; }
p.tb-product__name { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 2px 0; }
p.tb-product__note { font-size: 13px; color: var(--tb-sub); margin: 0; line-height: 1.7; }
div.tb-product .wp-block-buttons { margin: 0; gap: 8px; }
div.tb-product .wp-block-button { width: 100%; margin: 0; }
div.tb-product .wp-block-button .wp-block-button__link { display: flex; width: 100%; }

/* ---------- 固定ページ:ページ内リンクの一覧 / 締めの案内 ---------- */
ul.tb-jump { list-style: none; padding: 0; margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
ul.tb-jump > li { margin: 0; }
ul.tb-jump > li > a { height: 100%; text-decoration: none; }
ul.tb-jump > li > a::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin: -4px 4px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
div.wp-block-columns.tb-product.tb-product--white { background: #fff; }
div.wp-block-group.tb-cta { background: var(--tb-ink); color: var(--tb-ground); border-radius: 6px; padding: clamp(24px, 4vw, 40px); margin: 48px 0 0; }
p.tb-cta__title { font-family: var(--tb-head); font-weight: 900; font-size: clamp(20px, 2.8vw, 26px); line-height: 1.4; margin: 0 0 6px; }
p.tb-cta__text { font-size: 14px; line-height: 1.7; color: #B9BDB8; margin: 0 0 18px; }
div.tb-cta .wp-block-buttons { margin: 0; }
div.tb-cta .wp-block-button .wp-block-button__link { background: var(--tb-ground); color: var(--tb-ink) !important; border-radius: 999px; padding: 0 36px; font-size: 14px; }

/* ---------- 固定ページ:読む順番つきの記事リスト(番号付きリスト) ---------- */
ol.tb-steplist { list-style: none; counter-reset: tb-step; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ol.tb-steplist > li {
  counter-increment: tb-step; position: relative; margin: 0; padding: 14px 16px 14px 64px; min-height: 64px;
  background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; line-height: 1.5;
}
ol.tb-steplist > li::before {
  content: counter(tb-step); position: absolute; left: 0; top: 50%; width: 64px; transform: translateY(-50%);
  text-align: center; font-family: var(--tb-en); font-weight: 700; font-size: 32px; line-height: 1; color: var(--tb-ink);
}
ol.tb-steplist > li > strong:first-child { font-size: 12px; font-weight: 400; color: var(--tb-muted); }
ol.tb-steplist > li a { font-size: 15px; font-weight: 700; text-decoration: none; }
ol.tb-steplist > li a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; } /* 枠全体を押せるようにする */
p.tb-more { margin: 0 0 20px; font-size: 14px; }
p.tb-more a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 固定ページ:囲み(最初にそろえたい道具など) ---------- */
div.wp-block-group.tb-box { background: var(--tb-ground); border: 1px solid var(--tb-line); border-radius: 6px; padding: clamp(20px, 3vw, 32px); margin: 32px 0 20px; }
div.tb-box h3 { margin: 0 0 8px; padding: 0; border: 0; font-family: var(--tb-head); font-weight: 900; font-size: 20px; line-height: 1.5; }
div.tb-box p.tb-note { margin: 0 0 20px; font-size: 13px; }
div.wp-block-columns.tb-gear3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 16px; margin: 0; }
div.tb-gear3 > .wp-block-column { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
div.tb-gear3 .wp-block-image { margin: 0 0 4px; aspect-ratio: 4 / 3; background: var(--tb-thumb); border-radius: 4px; overflow: hidden; }
div.tb-gear3 .wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
p.tb-gear3__kind { font-size: 12px; font-weight: 700; color: var(--tb-muted); margin: 0; line-height: 1.6; }
p.tb-gear3__name { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 0; }
p.tb-gear3__why { font-size: 13px; color: var(--tb-sub); line-height: 1.7; margin: 0 0 6px; }
div.tb-gear3 .wp-block-buttons { margin: auto 0 0; }
div.tb-gear3 .wp-block-button { width: 100%; }
div.tb-gear3 .wp-block-button .wp-block-button__link { display: flex; width: 100%; min-height: 44px; font-size: 14px; }

/* ---------- 固定ページ:よくある疑問(リンクのリスト) ---------- */
ul.tb-faq { list-style: none; margin: 0 0 20px; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
ul.tb-faq > li { margin: 0; border-bottom: 1px solid var(--tb-line); }
ul.tb-faq > li > a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 8px 0; text-decoration: none; }
ul.tb-faq > li > a::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-right: 6px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- 表:旅のデータ / 車中泊スポット / スペック ---------- */
figure.wp-block-table.tb-facts, figure.wp-block-table.tb-cost { margin: 0 0 20px; }
figure.wp-block-table.tb-facts table, figure.wp-block-table.tb-cost table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
figure.tb-facts td, figure.tb-cost td, figure.tb-cost th { border: 1px solid var(--tb-line); padding: 10px 14px; text-align: left; vertical-align: top; }
figure.tb-facts td:first-child { width: 32%; min-width: 7em; background: var(--tb-ground); font-weight: 700; }

/* ---------- 表:費用の内訳 ---------- */
figure.tb-cost thead { border-bottom: 0; }
figure.tb-cost tfoot { border-top: 0; }
figure.tb-cost th { background: var(--tb-ink); color: var(--tb-ground); font-weight: 700; border-color: var(--tb-ink); }
figure.tb-cost td:nth-child(2), figure.tb-cost th:nth-child(2) { text-align: right; white-space: nowrap; }
figure.tb-cost td:nth-child(3) { font-size: 13px; color: var(--tb-sub); }
figure.tb-cost tfoot td { background: var(--tb-ground); font-weight: 700; border-top: 2px solid var(--tb-ink); }
figure.tb-cost tfoot td:nth-child(2) { font-size: 17px; }

/* ---------- 行程表(タイムライン) ---------- */
div.wp-block-group.tb-day { border: 1px solid var(--tb-line); border-radius: 6px; padding: 20px 20px 8px; margin: 0 0 20px; background: #fff; }
div.tb-day h3 { margin: 0 0 18px; }
ul.tb-timeline { list-style: none; margin: 0 0 12px; padding: 0 0 0 7px; }
ul.tb-timeline > li { position: relative; margin: 0; padding: 0 0 18px 24px; border-left: 2px solid var(--tb-line); line-height: 1.7; }
ul.tb-timeline > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ul.tb-timeline > li::before {
  content: ""; position: absolute; left: -8px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--tb-accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--tb-accent);
}
ul.tb-timeline > li > strong:first-child { font-family: var(--tb-en); font-size: 18px; letter-spacing: 0.04em; margin-right: 10px; }

/* ---------- 立ち寄りスポット ---------- */
div.wp-block-media-text.tb-spot { border: 1px solid var(--tb-line); border-radius: 6px; overflow: hidden; background: #fff; margin: 0 0 20px; align-items: stretch; }
div.tb-spot > .wp-block-media-text__media { background: var(--tb-thumb); min-height: 200px; margin: 0; align-self: stretch; }
div.tb-spot > .wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
div.tb-spot > .wp-block-media-text__content { padding: 20px 24px; align-self: center; }
p.tb-spot__label { font-family: var(--tb-en); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; color: var(--tb-accent); margin: 0; line-height: 1.5; }
div.tb-spot h4 { font-family: var(--tb-head); font-weight: 700; font-size: 19px; line-height: 1.5; margin: 2px 0 8px; }
div.tb-spot .wp-block-media-text__content > p { font-size: 15px; line-height: 1.8; margin: 0 0 14px; }
div.tb-spot .wp-block-media-text__content > p.tb-spot__label { margin: 0; }
ul.tb-spot__info { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; line-height: 1.6; border-top: 1px solid var(--tb-line); }
ul.tb-spot__info > li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--tb-line); display: flex; gap: 12px; }
ul.tb-spot__info > li > strong:first-child { flex: 0 0 6em; font-size: 13px; color: var(--tb-sub); }
div.tb-spot .wp-block-buttons { margin: 0; }
div.tb-spot .wp-block-button .wp-block-button__link { min-height: 44px; font-size: 14px; }

/* ---------- 画像が未設定のときは、公開ページでは画像の枠を出さない ---------- */
.tb-content div.tb-product > .wp-block-column:first-child:not(:has(img)) { display: none; }
.tb-content div.tb-spot:not(:has(.wp-block-media-text__media img, .wp-block-media-text__media video)) { grid-template-columns: 1fr !important; }
.tb-content div.tb-spot > .wp-block-media-text__media:not(:has(img, video)) { display: none; }

/* ---------- 地図(ショートコード [tb_map]) ---------- */
.tb-map { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; background: var(--tb-thumb); border-radius: 6px; overflow: hidden; margin: 0 0 20px; }
.tb-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.tb-map__notice { padding: 16px; font-size: 13px; line-height: 1.7; color: var(--tb-sub); }

/* ---------- 商品比較表(表ブロック) ---------- */
figure.wp-block-table.tb-compare-table { overflow-x: auto; background: #fff; border: 1px solid var(--tb-line); border-radius: 6px; margin: 0 0 20px; }
figure.tb-compare-table table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.6; table-layout: fixed; }
figure.tb-compare-table thead { border-bottom: 0; }
figure.tb-compare-table th, figure.tb-compare-table td {
  border: 0; border-bottom: 1px solid var(--tb-line); border-left: 1px solid var(--tb-line);
  padding: 12px 14px; text-align: center; vertical-align: middle; background: #fff; font-weight: 400;
}
figure.tb-compare-table tr > :first-child {
  position: sticky; left: 0; z-index: 1; width: 104px; border-left: 0; background: var(--tb-ground);
  font-weight: 700; font-size: 13px; text-align: left; box-shadow: 1px 0 0 var(--tb-line);
}
figure.tb-compare-table tbody tr:last-child > * { border-bottom: 0; }
figure.tb-compare-table thead th { font-weight: 700; font-size: 15px; line-height: 1.5; vertical-align: bottom; padding-top: 18px; }
figure.tb-compare-table img { width: 96px; max-width: 100%; height: auto; border-radius: 4px; vertical-align: middle; }
figure.tb-compare-table tbody tr:last-child td a {
  display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px;
  background: var(--tb-accent); color: #fff !important; border-radius: 4px; font-weight: 700; text-decoration: none;
}
/* イチオシの列(表ブロックの「スタイル」で切り替え) */
figure.tb-compare-table.is-style-tb-pick-1 tr > :nth-child(2),
figure.tb-compare-table.is-style-tb-pick-2 tr > :nth-child(3),
figure.tb-compare-table.is-style-tb-pick-3 tr > :nth-child(4) { background: #FFF5EE; }
figure.tb-compare-table.is-style-tb-pick-1 thead th:nth-child(2),
figure.tb-compare-table.is-style-tb-pick-2 thead th:nth-child(3),
figure.tb-compare-table.is-style-tb-pick-3 thead th:nth-child(4) { box-shadow: inset 0 4px 0 var(--tb-accent); }
figure.tb-compare-table.is-style-tb-pick-1 thead th:nth-child(2)::before,
figure.tb-compare-table.is-style-tb-pick-2 thead th:nth-child(3)::before,
figure.tb-compare-table.is-style-tb-pick-3 thead th:nth-child(4)::before {
  content: "イチオシ"; display: block; width: fit-content; margin: 0 auto 8px; padding: 1px 10px;
  background: var(--tb-accent); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px;
}

@media (max-width: 600px) {
  .tb-map { aspect-ratio: 4 / 3; }
  div.wp-block-media-text.tb-spot.is-stacked-on-mobile > .wp-block-media-text__media { min-height: 0; aspect-ratio: 16 / 9; }
}
