/* =========================================================
   バイクの旅人 — prototype stylesheet
   方針：旅雑誌風（大きな写真・広い余白・明朝の見出し）
   配色：曇り空のグレー × 800DEの黄色
   ========================================================= */

:root {
  /* color */
  --paper: #f5f4f0;
  --paper-2: #ebe9e3;
  --white: #ffffff;
  --ink: #17191b;
  --ink-2: #3b3f43;
  --stone: #5f656b; /* 紙色の上で約5.6:1（小さな文字の基準 4.5:1 を満たす） */
  --line: #d9d6ce;
  --accent: #f3c700;
  --accent-ink: #17191b;
  --night: #121416;
  --night-2: #1d2023;

  /* type */
  --font-serif: "Shippori Mincho B1", "Yu Mincho", serif;
  /* 本文はパソコン・スマホに入っている文字を使う（Webフォントを読み込まず、表示を速くする） */
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-display: "Barlow Condensed", var(--font-sans);

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top：目次やリンクで飛んだ先の見出しが、固定ヘッダーの下に隠れないようにする（古い記事の span の飛び先にも効く） */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
/* キーボード操作の位置：墨の線＋黄色の輪の2色で、どの背景でも見える */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--accent); }
.section--night :focus-visible, .site-footer :focus-visible, .yt-cta :focus-visible { outline-color: var(--white); }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

/* ---------- small parts ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--stone);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.35;
  margin: 10px 0 0;
  letter-spacing: .04em;
}
.more-link {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .16em;
  font-size: 14px; text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.more-link span { transition: transform .3s var(--ease); }
.more-link:hover span { transform: translateX(4px); }

.tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  padding: 3px 10px; border-radius: 99px;
  background: var(--ink); color: var(--white);
}
.tag--accent { background: var(--accent); color: var(--accent-ink); }
.date { font-family: var(--font-display); letter-spacing: .1em; color: var(--stone); font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 99px;
  font-weight: 700; font-size: 14px; letter-spacing: .08em;
  background: var(--ink); color: var(--white);
  transition: transform .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--yt { background: #e62117; }
.btn--ghost { background: transparent; color: inherit; border: 1px solid currentColor; }

.img-frame { overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a:hover .img-frame img { transform: scale(1.04); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s, box-shadow .4s, color .4s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header.is-solid, .site-header--solid {
  background: rgba(245, 244, 240, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.logo { display: flex; align-items: baseline; gap: 12px; position: relative; z-index: 2; white-space: nowrap; }
.logo__ja { font-family: var(--font-serif); font-weight: 800; font-size: 22px; letter-spacing: .08em; }
.logo__en { font-family: var(--font-display); font-size: 11px; letter-spacing: .3em; color: var(--stone); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a { position: relative; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: 9px 18px; font-size: 13px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; }
/* スマホのヘッダーに常に出す YouTube ボタン（960px以下で表示） */
.header-tools { display: flex; align-items: center; gap: 6px; }
.header-yt { display: none; width: 36px; height: 36px; border-radius: 50%; background: #e62117; place-items: center; position: relative; z-index: 2; }
.header-yt::before { content: ""; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(100svh, 980px); min-height: 620px; overflow: hidden; background: #9aa0a5; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: heroZoom 14s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,244,240,.78) 0%, rgba(245,244,240,.35) 22%, rgba(245,244,240,0) 42%, rgba(18,20,22,0) 70%, rgba(18,20,22,.55) 100%);
}
.hero__copy {
  position: absolute; z-index: 2; right: var(--gutter); top: clamp(110px, 16vh, 170px);
  text-align: right;
  animation: fadeUp 1.2s .3s var(--ease) both;
}
.hero__en { font-family: var(--font-display); font-weight: 600; letter-spacing: .4em; font-size: 13px; color: var(--ink-2); }
.hero__title {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(44px, 7.4vw, 116px); line-height: 1.05; letter-spacing: .06em;
  margin: 14px 0 18px;
  white-space: nowrap; /* 「バイクの旅人」は改行しない */
}
/* 写真に文字が埋もれないように（縁取りの代案）：
   ・文字の後ろに、空の色をした「やわらかい光のもや」を敷く（.hero__copy::before）
   ・文字のまわりに、ぼかした紙色の光（ハロー）を重ねる
   くっきりした白フチを使わないので、明朝の細い線がつぶれず、雑誌の表紙のように見える */
.hero__copy::before {
  content: ""; position: absolute; z-index: -1;
  inset: -90px -140px -70px -200px;
  background: radial-gradient(closest-side, rgba(245,244,240,.86), rgba(245,244,240,.6) 50%, rgba(245,244,240,0));
  pointer-events: none;
}
.hero__title, .hero__lead, .hero__en {
  text-shadow: 0 0 2px rgba(245,244,240,.95), 0 0 14px rgba(245,244,240,.9), 0 0 32px rgba(245,244,240,.75);
}
.hero__lead { font-family: var(--font-serif); font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .2em; margin: 0; }
.hero__lead::before { content: ""; display: inline-block; width: 40px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 16px; }
.hero__meta {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between; align-items: end; gap: 20px; color: var(--white);
}
.hero__caption { font-size: 12px; letter-spacing: .14em; opacity: .9; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero__caption b { font-family: var(--font-display); letter-spacing: .2em; display: block; font-size: 13px; }
.hero__latest {
  display: flex; align-items: center; gap: 16px; max-width: 460px;
  background: rgba(18,20,22,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px 12px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,.14);
  transition: background .3s;
}
.hero__latest:hover { background: rgba(18,20,22,.75); }
.hero__latest img { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.hero__latest small { display: block; font-family: var(--font-display); letter-spacing: .2em; color: var(--accent); font-size: 12px; }
.hero__latest span { font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 1px; height: 56px; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--white); animation: cue 2.2s infinite var(--ease); }
@keyframes cue { to { top: 100%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--night { background: var(--night); color: var(--white); }
.section--night .eyebrow, .section--night .date { color: #9aa1a8; }
.section--white { background: var(--white); }

/* YouTube */
.yt-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(16px, 2vw, 28px); }
.yt-side { display: grid; gap: clamp(16px, 2vw, 28px); }
.yt-card { position: relative; display: block; }
.yt-card .img-frame { aspect-ratio: 16/9; position: relative; outline: 1px solid rgba(255,255,255,.08); }
/* 再生ボタンはサムネの右下に（サムネのタイトル文字に重ねない） */
.yt-card__play {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  background: var(--accent); display: grid; place-items: center;
  transition: transform .4s var(--ease);
}
.yt-card__play::before { content: ""; margin-left: 3px; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.yt-card:hover .yt-card__play { transform: scale(1.1); }
.yt-card__body { padding-top: 16px; }
.yt-card__route { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: var(--accent); }
.yt-card__title { font-family: var(--font-serif); font-weight: 700; margin: 4px 0 0; line-height: 1.6; font-size: 17px; }
.yt-card--main .yt-card__title { font-size: clamp(19px, 2vw, 24px); }
.yt-card--main .yt-card__play { width: 56px; height: 56px; right: 20px; bottom: 20px; }
.yt-card--main .yt-card__play::before { margin-left: 4px; border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
.yt-series { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.yt-series p { margin: 0; color: #c4c9ce; font-size: 14px; }
.yt-series strong { color: var(--white); font-family: var(--font-display); font-size: 28px; letter-spacing: .06em; margin-right: 6px; }

/* Featured */
.feature-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 3vw, 48px); }
.feature-main .img-frame { aspect-ratio: 16/9; } /* 昔のアイキャッチ（YouTube のサムネイル風・16:9 が多い）の文字が切れないように */
.feature-main__body { padding-top: 24px; }
.feature-main h3 { font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.55; margin: 14px 0 12px; }
.feature-main h3 .sub { display: block; font-size: .62em; color: var(--ink-2); margin-top: 6px; letter-spacing: .04em; }
.feature-main p { color: var(--ink-2); margin: 0; font-size: 15px; }
.feature-side { display: grid; gap: 32px; align-content: start; }
.post-row { display: grid; grid-template-columns: 42% 1fr; gap: 20px; align-items: start; }
.post-row .img-frame { aspect-ratio: 16/9; }
.post-row h3 { font-family: var(--font-serif); font-size: 16px; line-height: 1.65; margin: 8px 0 0; }
.feature-side .post-row + .post-row { padding-top: 32px; border-top: 1px solid var(--line); }

/* Themes */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.theme-card { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); color: var(--white); }
.theme-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.theme-card:hover img { transform: scale(1.06); }
.theme-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.theme-card__body { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 26px; }
.theme-card__no { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--accent); }
.theme-card__ja { font-family: var(--font-serif); font-size: 26px; font-weight: 700; margin: 10px 0 4px; }
.theme-card__desc { font-size: 13px; opacity: .85; margin: 0; line-height: 1.7; }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(20px, 2.4vw, 36px); }
.card .img-frame { aspect-ratio: 16/9; }
.card__meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.card h3 { font-family: var(--font-serif); font-size: 17px; line-height: 1.7; margin: 10px 0 0; }

/* Other topics */
.others { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.others p.lead { color: var(--ink-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; background: var(--white); transition: border-color .3s, background .3s; }
.chip:hover { border-color: var(--ink); }
.chip small { font-family: var(--font-display); color: var(--stone); letter-spacing: .08em; font-size: 13px; }
.mini-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini-list li a { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mini-list .img-frame { aspect-ratio: 16/9; }
.mini-list h4 { margin: 4px 0 0; font-size: 14px; font-weight: 500; line-height: 1.7; }

/* Profile */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.profile__photo { aspect-ratio: 4/5; }
.profile__name { font-family: var(--font-serif); font-size: 34px; margin: 12px 0 4px; }
.profile__name small { font-family: var(--font-display); font-size: 14px; letter-spacing: .24em; color: var(--stone); margin-left: 12px; }
.profile p { color: var(--ink-2); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 28px 0 32px; padding: 24px 0; border-block: 1px solid var(--line); font-size: 14px; }
.spec dt { font-family: var(--font-display); letter-spacing: .16em; color: var(--stone); text-transform: uppercase; }
.spec dd { margin: 0; font-weight: 500; }
.profile__links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--night); color: #c4c9ce; padding: 80px 0 40px; font-size: 13px; }
.site-footer .logo__ja { color: var(--white); font-size: 28px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav h4 { font-family: var(--font-display); color: var(--white); letter-spacing: .2em; font-size: 13px; margin: 0 0 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 12px; color: #8a9096; }

/* Motion Prompt #074 · MIT License (c) 2026 Shohei Ohtaki · https://showheyohtaki.github.io/motion-prompt/#074
   スクロールでフェードイン：0.7秒・下から28px・easeOut（3乗）
   JS が動いた時だけ隠す（html に .js が付く）。JS が失敗しても、写真や商品カードは最初から見える */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.33, 1, .68, 1), transform .7s cubic-bezier(.33, 1, .68, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media print { .js .reveal { opacity: 1; transform: none; } }

/* Motion Prompt #096 · MIT License (c) 2026 Shohei Ohtaki · https://showheyohtaki.github.io/motion-prompt/#096
   ふわふわアニメーション：y = −A·sin(2πt/T + φ)。下端→上端→下端をサイン型のイージングでつなぐ。
   動画欄の再生ボタン3つを、見本の「スマホ・ハート・評価の札」と同じ振れ幅・周期・ずれで動かす */
@keyframes floatY {
  0%, 100% { translate: 0 var(--fa); }
  50% { translate: 0 calc(var(--fa) * -1); }
}
.float { animation: floatY var(--ft) cubic-bezier(.37, 0, .63, 1) infinite; animation-delay: var(--fd); }
/* 遅れ = −(T/4 + φ·T/2π)。キーフレームの始まり（下端）を式の t=3T/4 に合わせるため */
.yt-card--main .float { --fa: 8px; --ft: 2.4s; --fd: -.6s; }                   /* 8px・2.4秒・ずれ 0 */
.yt-side .yt-card:nth-child(1) .float { --fa: 6px; --ft: 1.6s; --fd: -.7056s; } /* 6px・1.6秒・ずれ 1.2 */
.yt-side .yt-card:nth-child(2) .float { --fa: 6px; --ft: 2.4s; --fd: -1.5167s; } /* 6px・2.4秒・ずれ 2.4 */

@media (prefers-reduced-motion: reduce) {
  .float, .scroll-cue::after { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__img, .hero__copy { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Article page
   ========================================================= */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.article-head { padding: 140px 0 48px; }
.breadcrumb { font-size: 12px; color: var(--stone); margin-bottom: 28px; }
.breadcrumb ol { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; } /* 区切りは CSS で描く（読み上げられない） */
.breadcrumb a:hover { color: var(--ink); }
.article-head__inner { max-width: 880px; }
.article-title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.5; letter-spacing: .03em; margin: 18px 0 24px; word-break: auto-phrase; text-wrap: balance; }
/* 昔の長いタイトル（32文字超）は一段小さく。最初の画面が文字だけにならないように */
.article-title.is-long { font-size: clamp(23px, 2.3vw, 31px); }
.article-sub { font-family: var(--font-serif); font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); margin: -8px 0 28px; }
.article-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--stone); }
.article-meta .author { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.article-meta .author img { width: 36px; height: 36px; border-radius: 50%; }
.article-meta .date { font-size: 13px; }

/* 見出しと写真：スマホは縦に並べ、PCは左右に分ける */
.article-cover { margin: 40px 0 0; }
.article-cover .img-frame { aspect-ratio: auto; border-radius: 6px; background: none; }
/* アイキャッチは元の比率のまま表示（3:2・16:9 などが混ざっているため、どれも切れないように）。縦長の写真は高さを抑える */
.article-cover .img-frame img { height: auto; max-height: 75vh; object-fit: contain; }
.article-cover figcaption { font-size: 12px; color: var(--stone); padding-top: 10px; text-align: right; }
@media (min-width: 1000px) {
  .article-head .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "crumb crumb" "text cover";
    column-gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
  .article-head .breadcrumb { grid-area: crumb; }
  .article-head__inner { grid-area: text; max-width: none; }
  .article-cover { grid-area: cover; margin: 0; }
  .article-cover .img-frame { max-width: 760px; } /* 元画像は幅760px前後。引き伸ばしすぎない */
  .article-cover .img-frame { box-shadow: 0 24px 48px -24px rgba(23, 25, 27, .35); }
}

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px) 220px; justify-content: center; gap: 56px; padding: 64px 0 120px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 13px; }
.side-title { font-family: var(--font-display); font-size: 12px; letter-spacing: .28em; color: var(--stone); margin: 0 0 14px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--stone); line-height: 1.6; transition: color .2s, border-color .2s; }
.toc li.sub a { padding-left: 28px; font-size: 12px; }
.toc li a:hover, .toc li a.is-active { color: var(--ink); border-left-color: var(--accent); }
.share { position: sticky; top: 100px; align-self: start; display: grid; gap: 10px; justify-items: start; }
.share a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--white); transition: border-color .2s; }
.share a:hover { border-color: var(--ink); }

/* prose */
.prose { font-size: 17px; line-height: 2.05; overflow-wrap: break-word; } /* 長いURLもはみ出さない */
.prose > * + * { margin-top: 1.6em; }
.prose p { margin: 0; }
.prose h2 { font-family: var(--font-serif); font-size: clamp(23px, 2.6vw, 30px); line-height: 1.5; margin-top: 3.4em; padding-top: 1.2em; border-top: 1px solid var(--line); position: relative; }
/* 見出しの番号は CSS で自動的に数える（既存の1,021本の記事にもそのまま付く） */
.prose { counter-reset: h2; }
.prose h2::before { counter-increment: h2; content: counter(h2, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 14px; letter-spacing: .28em; color: var(--stone); margin-bottom: 8px; }
.prose h2::after { content: ""; position: absolute; top: -1px; left: 0; width: 64px; height: 3px; background: var(--accent); }
.prose h3 { font-family: var(--font-serif); font-size: 21px; line-height: 1.6; margin-top: 2.6em; padding-left: 16px; border-left: 3px solid var(--ink); }
.prose strong { background: linear-gradient(transparent 62%, rgba(243,199,0,.5) 62%); font-weight: 700; }
.prose figure { margin-inline: 0; }
.prose figure .img-frame { border-radius: var(--radius); }
.prose figcaption { font-size: 13px; color: var(--stone); margin-top: 10px; line-height: 1.6; }

/* WordPress の本文画像（既存記事の <img class="alignnone wp-image-…"> など） */
.prose img { border-radius: var(--radius); }
.prose .aligncenter { margin-inline: auto; }
.prose .alignright { float: right; margin: .4em 0 1em 1.5em; max-width: 50%; }
.prose .alignleft { float: left; margin: .4em 1.5em 1em 0; max-width: 50%; }
.prose .wp-caption { max-width: 100%; }
.prose .wp-caption-text { font-size: 13px; color: var(--stone); margin-top: 10px; line-height: 1.6; }

/* 日本語の見出しを文節で折り返す（対応ブラウザのみ） */
.article-title, .section-title, .feature-main h3, .card h3, .yt-card__title, .prose h2, .prose h3 {
  word-break: auto-phrase;
  text-wrap: balance;
}

.lead-text { font-family: var(--font-serif); font-size: 19px; line-height: 2.1; color: var(--ink-2); }

.notice { display: flex; gap: 14px; padding: 16px 20px; background: var(--paper-2); border-radius: var(--radius); font-size: 14px; line-height: 1.8; }
.notice::before { content: "i"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--font-serif); font-weight: 700; display: grid; place-items: center; font-size: 13px; margin-top: 3px; }

.summary { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px 32px; }
.summary__label { margin: 0 0 12px; font-family: var(--font-display); letter-spacing: .24em; font-size: 13px; color: var(--stone); font-weight: 600; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.summary li { padding-left: 30px; position: relative; font-weight: 500; line-height: 1.8; }
.summary li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 9px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* Margin note (旧：吹き出し) */
.note { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.note img { width: 44px; height: 44px; border-radius: 50%; }
.note__body { background: var(--white); border-radius: 4px 16px 16px 16px; padding: 12px 18px; font-size: 15px; line-height: 1.85; box-shadow: 0 1px 0 var(--line); }
.note__name { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--stone); }
.note--right { grid-template-columns: 1fr 44px; }
.note--right img { order: 2; }
.note--right .note__body { border-radius: 16px 4px 16px 16px; background: #fff7cf; }

/* Before / After slider */
.ba { position: relative; overflow: hidden; border-radius: var(--radius); user-select: none; touch-action: pan-y; background: var(--paper-2); }
.ba img { width: 100%; aspect-ratio: var(--ratio, 4/3); object-fit: cover; }
.ba__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.ba__handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.ba__label { position: absolute; top: 14px; font-family: var(--font-display); font-weight: 700; letter-spacing: .2em; font-size: 12px; padding: 3px 10px; background: rgba(18,20,22,.7); color: var(--white); border-radius: 3px; }
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; background: var(--accent); color: var(--ink); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }

/* 購入ボタン：墨色の地に白い文字（コントラスト約17:1）。お店は色の丸で見分ける */
.shop-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-btns a {
  flex: 1 1 0; min-width: 96px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--white);
  transition: background .2s, transform .2s;
}
.shop-btns a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--shop); flex: none; }
.shop-btns a:hover { background: #2c3034; transform: translateY(-1px); }
.shop-btns .amazon { --shop: #ff9900; }
.shop-btns .rakuten { --shop: #ff4d4d; }
.shop-btns .yahoo { --shop: #6aa8ff; }
.text-link { border-bottom: 1px solid currentColor; font-weight: 700; }

/* Tool list */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: tool; }
.tool { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; counter-increment: tool; }
.tool::before { content: counter(tool, decimal-leading-zero); position: absolute; top: -10px; left: 14px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; background: var(--accent); padding: 0 8px; border-radius: 3px; }
.tool img { max-height: 64px; width: auto; margin: auto; }
.tool b { display: block; font-size: 14px; line-height: 1.5; }
.tool small { display: block; font-size: 12px; color: var(--stone); line-height: 1.5; margin-top: 2px; }
.tool .shop-btns a { padding: 6px 8px; font-size: 11px; min-width: 0; min-height: 36px; gap: 5px; }
.tool .shop-btns a::before { width: 6px; height: 6px; }
.tool .shop-btns { margin-top: 8px; gap: 4px; flex-wrap: nowrap; }

/* Link card */
.bt-linkcard { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; transition: border-color .3s, transform .3s var(--ease); }
.bt-linkcard:hover { border-color: var(--ink); transform: translateY(-2px); }
.bt-linkcard .img-frame { aspect-ratio: 16/9; }
.bt-linkcard small { font-family: var(--font-display); letter-spacing: .2em; color: var(--stone); font-size: 11px; }
.bt-linkcard b { display: block; font-size: 15px; line-height: 1.65; margin-top: 2px; }

/* YouTube embed (lite) */
.lite-yt { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.lite-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s; }
.lite-yt:hover img { opacity: 1; }
.lite-yt::after { content: ""; position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%2317191b'/%3E%3C/svg%3E") center/34px no-repeat; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
/* 再生を押すと、ボタンごと YouTube の枠に置き換わる */
.yt-frame { aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #000; }
.yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.yt-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; background: var(--night); color: var(--white); border-radius: 6px; }
.yt-cta small { font-family: var(--font-display); letter-spacing: .24em; color: var(--accent); font-size: 12px; }
.yt-cta b { display: block; font-family: var(--font-serif); font-size: 20px; margin: 4px 0; }
.yt-cta p { margin: 0; color: #b9bfc5; font-size: 13px; line-height: 1.7; }

/* author + related */
.author-box { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 32px; background: var(--white); border-radius: 6px; margin-top: 72px; }
.author-box img { width: 88px; height: 88px; border-radius: 50%; }
.author-box__name { margin: 0; font-weight: 700; font-family: var(--font-serif); font-size: 20px; }
.author-box p { margin: 8px 0 14px; font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.author-box__links { display: flex; gap: 10px; flex-wrap: wrap; }
.related { background: var(--paper-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc, .share { display: none; }
}
@media (max-width: 960px) {
  .yt-grid, .feature-grid, .others, .profile { grid-template-columns: 1fr; }
  .yt-side { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .theme-card { aspect-ratio: 16/9; }
  .profile__photo { aspect-ratio: 16/10; }
  .header-yt { display: grid; }
  .nav { display: none; }
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
    position: fixed; top: 0; left: 0; width: 100vw; height: 100svh; padding: 110px var(--gutter) 40px;
    background: var(--paper); font-family: var(--font-serif); font-size: 24px; font-weight: 700;
  }
  .nav.is-open .btn { font-family: var(--font-sans); font-size: 15px; margin-top: 12px; }
}
@media (max-width: 760px) {
  .logo__en { display: none; }
  .hero { min-height: 560px; height: 88svh; }
  .hero__img { object-position: 64% 60%; }
  .hero__copy { left: var(--gutter); top: 96px; text-align: left; }
  .hero__lead::before { width: 24px; margin-right: 10px; }
  .hero__meta { flex-direction: column; align-items: stretch; }
  .hero__caption { display: none; }
  .hero__latest { max-width: none; }
  .scroll-cue { display: none; }
  .section-head { flex-direction: column; align-items: start; }
  /* 動画の2本目・3本目は横にスクロール（縦の長さを半分に） */
  .yt-side {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .yt-side .yt-card { scroll-snap-align: start; }
  .breadcrumb li:last-child { display: none; }
  .article-meta { gap: 6px 16px; }
  .card-grid { grid-template-columns: 1fr; gap: 40px; }
  .post-row { grid-template-columns: 40% 1fr; gap: 14px; }
  .theme-card__no { font-size: 40px; }
  .article-head { padding-top: 112px; }
  .prose { font-size: 16px; }
  .tools { grid-template-columns: 1fr; }
  .bt-linkcard { grid-template-columns: 110px 1fr; gap: 14px; }
  .bt-linkcard b { font-size: 14px; }
  .yt-cta { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; padding: 24px; }
  .summary { padding: 22px 20px; }
}

/* ---------- concept（#146 スクロールテキストリビール） ---------- */
.concept { padding-block: clamp(96px, 14vw, 200px); background: var(--paper); }
.concept__text {
  font-family: var(--font-serif); font-weight: 800;
  font-size: clamp(20px, 5.2vw, 56px); line-height: 1.6; letter-spacing: .04em;
  word-break: keep-all; overflow-wrap: anywhere;
  margin: 24px 0 0; color: var(--ink);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Xの投稿（公式の埋め込み）。読み込み前・読み込めない時もカード風に見せる */
.x-embed { display: flex; justify-content: center; min-height: 220px; }
.x-embed .twitter-tweet { margin: 0 !important; }
.x-embed blockquote.twitter-tweet:not(.twitter-tweet-rendered) {
  width: min(100%, 500px); padding: 20px 24px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; font-size: 15px; line-height: 1.8;
}
.x-embed blockquote.twitter-tweet:not(.twitter-tweet-rendered) p { margin: 0 0 10px; }

/* 記事の最後：この記事で使った道具（商品をまとめて1つの枠に） */
.gear-list { margin-top: 72px; padding: 28px 32px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.gear-list + .author-box { margin-top: 40px; }
.gear-list__title { margin: 0 0 8px; font-weight: 700; font-family: var(--font-serif); font-size: 19px; display: flex; align-items: center; gap: 12px; }
.gear-list__title::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.gear-list ul { list-style: none; margin: 0; padding: 0; }
.gear-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.gear-row:first-child { border-top: 0; }
.gear-row img { width: 56px; height: 56px; object-fit: contain; }
.gear-row__name small { display: block; font-size: 11px; letter-spacing: .08em; color: var(--stone); line-height: 1.5; }
.gear-row__name b { display: block; font-size: 14px; line-height: 1.6; }
.gear-row .shop-btns { flex-wrap: nowrap; gap: 6px; }
.gear-row .shop-btns a { flex: none; min-width: 0; padding: 7px 12px; font-size: 12px; }
@media (max-width: 760px) {
  .gear-list { padding: 22px 18px 6px; }
  .gear-row { grid-template-columns: 56px 1fr; }
  .gear-row .shop-btns { grid-column: 1 / -1; }
  .gear-row .shop-btns a { flex: 1 1 0; }
}

/* =========================================================
   2回目のレビュー（マーケター・UI/UX）を受けて追加した部品
   ========================================================= */

/* ---------- サイト内検索（ヘッダーの虫めがね → 検索欄が開く） ---------- */
.search-btn { width: 44px; height: 44px; border: 0; background: none; padding: 0; position: relative; z-index: 2; display: grid; place-items: center; }
.search-btn::before { content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 50%; transform: translate(-2px, -2px); }
.search-btn::after { content: ""; position: absolute; width: 2px; height: 8px; background: currentColor; transform: translate(6px, 6px) rotate(-45deg); }
.site-search { border-top: 1px solid var(--line); background: rgba(245, 244, 240, .97); padding: 14px 0 18px; }
.site-search[hidden] { display: none; }
.site-search .wrap { display: flex; gap: 10px; height: auto; flex-wrap: wrap; }
.site-search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 18px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--ink);
}
.site-search button { height: 48px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 700; }
.site-search__hint { flex-basis: 100%; font-size: 12px; color: var(--stone); margin: 0; }

/* ---------- スマホのメニュー：開いたら三本線を × に ---------- */
.menu-btn { width: 44px; height: 44px; }
.menu-btn span { margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-yt { width: 40px; height: 40px; }

/* ---------- 動画カード：カード本体はブログへ、▶ と小さなリンクは YouTube へ ---------- */
.yt-card__media { position: relative; }
.yt-card__media .img-frame { display: block; }
.yt-card__body { display: block; }
.yt-card__more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent); }
.yt-card__more::after { content: " →"; }
.yt-card__ytlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 32px; font-size: 12px; color: #b9bfc5; }
.yt-card__ytlink:hover { color: var(--white); }
.yt-card__ytlink::after { content: "↗"; }
a.yt-card__play { color: inherit; }
.yt-series__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--light { background: var(--white); color: var(--ink); }

/* ---------- 購入ボタン：行き先が分かる文言＋新しいタブの印 ---------- */
.shop-btns a::after { content: "↗"; font-size: .9em; opacity: .7; }
.shop-btns a::before { width: 10px; height: 10px; }
/* 本文の「必要な道具」：ボタンはカードの横幅いっぱいに */
.tool { grid-template-columns: 64px 1fr; align-items: start; }
.tool .shop-btns { grid-column: 1 / -1; margin-top: 4px; gap: 6px; flex-wrap: nowrap; }
.tool .shop-btns a { font-size: 12px; min-height: 44px; padding: 6px 8px; gap: 5px; }
.tool .shop-btns a::before { width: 8px; height: 8px; }
.tool__why { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }

/* ---------- 記事の最後：使ってわかった情報＋費用の合計 ---------- */
.gear-row { align-items: start; }
.gear-row__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--stone); line-height: 1.6; }
.gear-row__meta span::before { content: attr(data-label) "："; font-weight: 700; color: var(--ink-2); }
.gear-row__why { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin-top: 4px; }
.gear-row .shop-btns { align-self: center; }
.todo { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 0 6px; border-radius: 3px; background: var(--paper-2); color: var(--stone); vertical-align: middle; }
.cost-total {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 8px 0 16px; padding: 16px 20px; border-radius: 6px; background: var(--paper);
}
.cost-total b { font-size: 14px; }
.cost-total strong { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; }
.cost-total small { display: block; font-size: 12px; color: var(--stone); }

/* ---------- 古い記事の「更新メモ」 ---------- */
.update-note { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 16px 20px; font-size: 14px; line-height: 1.8; }
.update-note dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.update-note dt { font-weight: 700; white-space: nowrap; }
.update-note dd { margin: 0; color: var(--ink-2); }
.update-note a { border-bottom: 1px solid currentColor; }

.video-lead { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .2em; font-size: 13px; color: var(--stone); }

/* ---------- スマホ・タブレット用の記事内目次（PCは左の固定目次） ---------- */
.toc-inline { background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.toc-inline summary { cursor: pointer; padding: 14px 20px; font-family: var(--font-display); font-weight: 700; letter-spacing: .24em; font-size: 13px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: "＋"; font-family: var(--font-sans); letter-spacing: 0; }
.toc-inline[open] summary::after { content: "－"; }
.toc-inline ol { list-style: none; margin: 0; padding: 0 20px 14px; }
.toc-inline li { border-top: 1px solid var(--line); }
.toc-inline li a { display: block; padding: 10px 0; font-size: 15px; line-height: 1.6; }
.toc-inline li.sub a { padding-left: 18px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 1181px) { .toc-inline { display: none; } }

/* ---------- 北海道一周まとめ（hub）・テーマ別ページ（category） ---------- */
.page-head { padding: 140px 0 40px; }
.page-title { font-family: var(--font-serif); font-weight: 800; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.35; letter-spacing: .03em; margin: 14px 0 16px; word-break: auto-phrase; text-wrap: balance; }
.page-lead { font-size: 16px; color: var(--ink-2); max-width: 760px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; }
.stat small { display: block; font-family: var(--font-display); letter-spacing: .2em; font-size: 12px; color: var(--stone); }
.stat b { display: block; font-family: var(--font-display); font-size: 32px; line-height: 1.2; margin-top: 4px; }
.stat b span { font-size: 14px; margin-left: 4px; }
.hub-section { padding-block: clamp(48px, 7vw, 96px); }
.hub-section + .hub-section { border-top: 1px solid var(--line); }
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.day {
  display: grid; grid-template-columns: 72px 200px 1fr auto; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 14px 20px 14px 14px;
}
.day:target { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.day__no { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; text-align: center; }
.day__no small { display: block; font-size: 11px; letter-spacing: .2em; color: var(--stone); }
.day__thumb { aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.day__thumb img { width: 100%; height: 100%; object-fit: cover; }
.day__title { font-family: var(--font-serif); font-weight: 700; font-size: 16px; line-height: 1.6; margin: 0; }
.day__route { font-size: 13px; color: var(--stone); margin: 2px 0 0; }
.day__links { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 150px; }
.day__links a, .day__links span { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.day__links .is-yt { background: #e62117; color: var(--white); }
.day__links .is-yt::after { content: " ↗"; }
.day__links .is-soon { background: var(--paper-2); color: var(--stone); font-weight: 500; }
.day--upcoming { opacity: .65; }
.cost-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.cost-table th, .cost-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.cost-table td:last-child { text-align: right; }
.cost-table tfoot th, .cost-table tfoot td { font-weight: 700; background: var(--paper-2); }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pillar { position: relative; display: grid; grid-template-columns: 40% 1fr; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; min-height: 180px; }
.pillar .img-frame { border-radius: 0; }
.pillar__body { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; }
.pillar__body small { font-family: var(--font-display); font-weight: 700; letter-spacing: .2em; font-size: 12px; color: var(--stone); }
.pillar__body b { font-family: var(--font-serif); font-size: 19px; line-height: 1.55; margin-top: 6px; }
.pillar__body p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.pillar--soon { cursor: default; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tabs button { min-height: 44px; padding: 8px 20px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 700; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card__vehicle { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--stone); }
.empty-note { padding: 28px; background: var(--white); border: 1px dashed var(--line); border-radius: 6px; color: var(--stone); text-align: center; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .day { grid-template-columns: 64px 140px 1fr; }
  .day__links { grid-column: 1 / -1; flex-direction: row; }
  .day__links a, .day__links span { flex: 1; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-head { padding-top: 104px; }
  .day { grid-template-columns: 52px 1fr; gap: 10px 12px; padding: 12px; }
  .day__thumb { grid-column: 1 / -1; }
  .day__no { font-size: 24px; }
  .pillar { grid-template-columns: 1fr; }
  .pillar .img-frame { aspect-ratio: 16/9; }
  .tool { grid-template-columns: 56px 1fr; }
  .gear-row .shop-btns a { min-height: 44px; }
  .site-header .wrap { height: 60px; }
  .cost-total strong { font-size: 22px; }
  .cost-table th, .cost-table td { padding: 12px 14px; }
}

.section-sub { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }

/* リンクで飛んできた先（#route-03・#gear など）は、ふわっと表示を待たずに最初から表示（位置もずれない） */
.js .reveal:target { opacity: 1; transform: none; transition: none; }
@media (max-width: 760px) {
  /* 北海道まとめの各日：番号と題名を横に、サムネとボタンはその下に */
  .day > :nth-child(3) { grid-column: 2; grid-row: 1; }
  .day__thumb { grid-row: 2; }
  .day__links { grid-row: 3; }
}
@media (max-width: 760px) {
  /* スマホの購入ボタン：3つ横並びでも「〇〇で見る」が1行に収まるように */
  .shop-btns a { white-space: nowrap; font-size: 12px; padding: 6px 4px; gap: 5px; min-width: 0; }
  .shop-btns a::after { display: none; }
  .shop-btns a::before { width: 8px; height: 8px; }
}
@media (max-width: 760px) {
  .gear-row .shop-btns a, .tool .shop-btns a { flex: 1 1 0; white-space: nowrap; font-size: 12px; padding: 6px 4px; gap: 5px; min-width: 0; min-height: 44px; }
  .gear-row .shop-btns a::after, .tool .shop-btns a::after { display: none; }
}
/* 記事の最後の道具一覧：PCでもボタンは商品名の下に並べる（商品名の列を狭くしない） */
.gear-row { grid-template-columns: 56px 1fr; }
.gear-row .shop-btns { grid-column: 2; justify-content: flex-start; }
.gear-row .shop-btns a { flex: 0 1 auto; min-width: 130px; }
/* Xの投稿（写真付き）が読み込まれた時に、下の内容が大きくずれないよう高さを確保 */
.x-embed { min-height: 600px; }
@media (max-width: 760px) { .gear-row .shop-btns { grid-column: 1 / -1; } .x-embed { min-height: 560px; } }

/* 北海道まとめ：全ルート地図と、各日の距離・立ち寄った場所 */
.route-map { margin: 0; }
.route-map img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); background: var(--white); }
.route-map figcaption { font-size: 13px; color: var(--stone); margin-top: 10px; line-height: 1.7; }
.day__spots { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.day__spots b { font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; margin-right: 8px; color: var(--ink); }
