@charset "UTF-8";

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --c-white:      #ffffff;
  --c-off-white:  #f6f6f4;
  --c-line:       #e2e2e0;
  --c-gray:       #8b8b88;
  --c-dark:       #2b2d2f;   /* ダークグレー（基調） */
  --c-darker:     #1e1f21;
  --c-accent:     #2b2d2f;

  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --container: 1140px;
  --gutter: 24px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* 長時間かけてゆっくり減速する動き（ヒーローのズーム用） */
  --ease-slow: cubic-bezier(0.16, 0.6, 0.3, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  color: var(--c-dark);
  background: var(--c-white);
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Custom cursor — 追従する円。マウス環境でのみ JS が有効化する
   mix-blend-mode: difference なので、白地でも黒地でも自動的に反転して見える
   ========================================================================== */
/* カスタムカーソルは Map セクションの中でだけネイティブを隠す */
.has-cursor,
.has-cursor * { cursor: none !important; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.cursor__dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.cursor__ring {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cursor__label {
  font-family: var(--font-jp);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.25s var(--ease);
}

/* リンクやボタンの上：円が開いて、中心の点は消える */
.cursor.is-active .cursor__ring { width: 74px; height: 74px; }
.cursor.is-active .cursor__dot  { opacity: 0; }
.cursor.is-active .cursor__label { opacity: 1; }

/* 押している間：円が縮んで手応えを返す */
.cursor.is-pressed .cursor__ring { width: 26px; height: 26px; background: rgba(255,255,255,0.9); }
.cursor.is-pressed.is-active .cursor__ring { width: 62px; height: 62px; background: none; }
.cursor.is-pressed .cursor__label { opacity: 0; }

/* ==========================================================================
   Page transition — 内部リンクの移動を暗転でつなぐ
   ========================================================================== */
.page-fade {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--c-darker);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.42s var(--ease);
}
.page-fade.is-in  { opacity: 1; }   /* 出ていくとき */
.page-fade.is-out { opacity: 0; }   /* 入ってきたとき */

/* ==========================================================================
   Scroll reveal — スクロールで下からふわっと現れる
   html.js が付いている（＝JS が動く）ときだけ隠す
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 110ms);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   Hero parallax — スクロール量より遅く動かして奥行きを出す
   実際の値は JS が inline style で入れる。ここは土台の設定のみ
   ========================================================================== */
.hero__media,
.hero__inner { will-change: transform; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  /* 最上部ではヒーロー画像に溶け込ませる */
  color: var(--c-white);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: color 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

/* スクロール後は白背景に切り替え */
.header.is-scrolled {
  color: var(--c-dark);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--c-line);
}

.header__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-en);
  font-size: 20px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

/* --- Nav (PC) --- */
.nav__list { display: flex; gap: 36px; }

.nav__link {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* --- Hamburger --- */
.header__toggle {
  display: none;
  position: relative;
  z-index: 110;
  width: 28px;
  height: 20px;
}
.header__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.2s linear;
}
.header__toggle span:nth-child(1) { top: 0; }
.header__toggle span:nth-child(2) { top: 50%; }
.header__toggle span:nth-child(3) { top: 100%; }

.header__toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--c-white);
  background: var(--c-darker);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 横長（3:2）の写真。PCではほぼ全体が入る。
     やや上寄りに置いて、下側に見出しのための余白を残す */
  object-position: 50% 42%;
}
/* 画像がない場合のフォールバック（ダークグレーのグラデーション） */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #3a3d40 0%, #232527 55%, #17181a 100%);
  z-index: -1;
}

/* Ken Burns — 24秒かけてゆっくり寄る。画像・フォールバックの両方に適用 */
.hero__img,
.hero__media::before {
  transform-origin: 50% 42%;
  animation: kenBurns 24s var(--ease-slow) both;
  will-change: transform;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,21,23,0.45) 0%, rgba(20,21,23,0.15) 40%, rgba(20,21,23,0.75) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  /* 下端いっぱいまで下げて、写真中央の人物の顔と重ならないようにする */
  padding: 0 var(--gutter) clamp(28px, 3.5vh, 44px);
}

.hero__sub {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(38px, 8vw, 92px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
}
.hero__scroll-line {
  display: block;
  width: 56px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleX(0); opacity: 0; }
  40%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ==========================================================================
   Section common
   ========================================================================== */
.section { padding-block: clamp(72px, 12vw, 140px); }

.section__head { margin-bottom: clamp(40px, 6vw, 72px); }

.section__num {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--c-gray);
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.section__lead {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-gray);
}

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--c-off-white); }

.about__body {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #d9d9d6, #b9b9b5);
  overflow: hidden;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

.about__name {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.about__name span {
  font-family: var(--font-jp);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-gray);
}

.about__text p + p { margin-top: 1.2em; }

.about__meta {
  margin-top: 36px;
  border-top: 1px solid var(--c-line);
}
.about__meta > div {
  display: flex;
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--c-line);
  font-size: 13px;
}
.about__meta dt {
  flex: 0 0 96px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gray);
  font-size: 11px;
  line-height: inherit;
}

/* ==========================================================================
   Globe — 行った場所を地球儀に落とす（描画と操作は js/globe.js）
   ========================================================================== */
.worldmap {
  background: var(--c-darker);
  color: var(--c-white);
}
.worldmap .section__num  { color: rgba(255, 255, 255, 0.45); }
.worldmap .section__lead { color: rgba(255, 255, 255, 0.55); }

/* 正方形の枠（stage）とボタンは兄弟にしておく。
   ボタンを枠の中に入れると、aspect-ratio の外にはみ出して重なる */
/* 地図ブロック（海外／国内）の共通枠 */
.mapblock + .mapblock {
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mapblock__label {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.globe__box {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

/* --- 日本地図 --- */
.japan {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}
.japan__svg { display: block; width: 100%; height: auto; overflow: visible; }
.japan__land { fill: #34383c; }

.japan__dot { fill: var(--c-white); transition: r 0.3s var(--ease); }
.japan__home-ring { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }

.japan__pulse {
  fill: none;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
  animation: mapPulse 2.8s ease-out infinite;
}
@keyframes mapPulse {
  0%   { r: 4;  opacity: 0.7; }
  100% { r: 15; opacity: 0; }
}

.japan__label {
  fill: rgba(255, 255, 255, 0.72);
  font-family: var(--font-jp);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: fill 0.3s var(--ease);
}
.japan__pin { cursor: pointer; }
.japan__pin:focus-visible { outline: none; }
.japan__pin:focus-visible .japan__dot { r: 6.5; }
.japan__pin:focus-visible .japan__label { fill: var(--c-white); }

.globe__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.globe {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  /* 縦スワイプはページのスクロールに譲り、横ドラッグとピンチだけ受け取る */
  touch-action: pan-y;
  outline: none;
}
.globe:active { cursor: grabbing; }
.globe.is-over-marker { cursor: pointer; }
.globe:focus-visible { box-shadow: 0 0 0 1px rgba(255,255,255,0.4); border-radius: 50%; }

/* 操作のヒント。最初の操作で消える */
.globe__hint {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  white-space: nowrap;
}
.globe__hint.is-gone { opacity: 0; }

.globe__controls {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.globe__controls button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.2s var(--ease);
}
.globe__controls button:hover { color: var(--c-white); border-color: rgba(255,255,255,0.5); }
.globe__controls button:active { transform: scale(0.9); }
.globe__controls button[data-globe="reset"] { font-size: 10px; letter-spacing: 0.06em; }

/* 凡例。地球儀の裏側にある目的地へも、ここから行ける */
.map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.map__legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.map__legend li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.map__legend a {
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.map__legend a:hover { color: var(--c-white); border-bottom-color: var(--c-white); }
/* ==========================================================================
   Works
   ========================================================================== */
/* --- ジャンル絞り込み --- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.filter__btn {
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gray);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
              background 0.3s var(--ease);
}
.filter__btn:hover { color: var(--c-dark); border-color: var(--c-dark); }

.filter__btn.is-active {
  color: var(--c-white);
  background: var(--c-dark);
  border-color: var(--c-dark);
}

.filter__empty {
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--c-gray);
}

.trip-card[hidden],
.gallery__item[hidden] { display: none; }

/* --- 旅の一覧カード --- */
.trips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.trip-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.trip-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(150deg, #35383b, #202224);
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(20, 21, 23, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.trip-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 写真ごとに style="--focus: 50% 74%" で見せたい位置を指定できる */
  object-position: var(--focus, 50% 50%);
  transition: transform 0.7s var(--ease);
}

.trip-card__body {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.trip-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-gray);
  font-variant-numeric: tabular-nums;
}
/* 日付と地名のあいだの区切り */
.trip-card__meta span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--c-line);
}

.trip-card__title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.trip-card__excerpt {
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-gray);
}

.trip-card__count {
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gray);
}

/* ==========================================================================
   Trip page — 旅ごとの個別ページ
   ========================================================================== */
/* 下層ページはヒーローが無いので、固定ヘッダー分の余白を確保する */
.page-sub { padding-top: var(--header-h); }

/* 下層ページのヘッダーは最初から白背景 */
.header--solid {
  color: var(--c-dark);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--c-line);
}

.trip__head { padding-block: clamp(48px, 8vw, 88px) clamp(32px, 5vw, 56px); }

.trip__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gray);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.trip__back:hover { color: var(--c-dark); gap: 16px; }

.trip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-gray);
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}

.trip__title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.trip__lead {
  max-width: 62ch;
  margin-top: 24px;
  font-size: 14px;
}
.trip__lead p + p { margin-top: 1.2em; }

/* --- この旅の一曲（Apple Music） --- */
.trip__song { margin-top: clamp(32px, 4vw, 48px); }

.trip__song-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gray);
  margin-bottom: 14px;
}

.trip__song-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

/* 音源は押すまで読み込まない（preload="none"）。普段はこのボタンだけ */
.song {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 26px 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.song.is-playing { border-color: var(--c-dark); }

/* 再生位置を示す線。ボタン下端を左から右へ伸びる */
.song__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--c-dark);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.2s linear;
}

.song__play {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-dark);
  transition: transform 0.35s var(--ease);
}
/* 三角形の再生マーク */
.song__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--c-white);
}
/* 再生中は一時停止マーク（縦2本）に変える */
.song.is-playing .song__play::before {
  left: 50%;
  border: 0;
  width: 9px;
  height: 11px;
  border-left: 3px solid var(--c-white);
  border-right: 3px solid var(--c-white);
}

.song__text { display: flex; flex-direction: column; gap: 2px; }

.song__title { font-size: 14px; line-height: 1.4; }

.song__artist {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-gray);
}

/* フル尺は Apple Music で、という導線 */
.song__full {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-gray);
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.song__full:hover { color: var(--c-dark); border-bottom-color: var(--c-dark); }

/* 写真グリッド — 横位置は2列ぶん使って流れに変化をつける */
.gallery--trip { gap: clamp(12px, 1.6vw, 20px); }
.gallery--trip .gallery__item--wide { grid-column: span 2; }
/* 5:3 にすると、2列ぶんの幅でも通常セル（4:5）と行の高さがほぼ揃う */
.gallery--trip .gallery__item--wide figure { aspect-ratio: 5 / 3; }

/* 次の旅への導線 */
.trip__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--c-line);
  margin-top: clamp(56px, 8vw, 96px);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.trip__nav a { color: var(--c-gray); transition: color 0.3s var(--ease); }
.trip__nav a:hover { color: var(--c-dark); }

/* 絞り込み直後に、残ったカードを順番に立ち上げる */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}

.gallery__item figure {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #35383b, #202224);
  aspect-ratio: 4 / 5;
  /* ふわっと浮き上がる（初期状態） */
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(20, 21, 23, 0.06);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 写真ごとに style="--focus: 50% 72%" で見せたい位置を指定できる */
  object-position: var(--focus, 50% 50%);
  transition: transform 0.7s var(--ease), opacity 0.4s linear;
}
.gallery__item figure:hover img { transform: scale(1.05); }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  color: var(--c-white);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,21,23,0.72) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__item figure:hover figcaption,
.gallery__item figure:focus-within figcaption { opacity: 1; transform: none; }

.gallery__title {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.06em;
}
.gallery__meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--c-dark);
  color: var(--c-white);
}
.contact .section__lead { color: rgba(255,255,255,0.6); }
.contact .section__num  { color: rgba(255,255,255,0.5); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn--instagram {
  background: var(--c-white);
  color: var(--c-dark);
}
.btn--instagram:hover { background: var(--c-off-white); }

.btn--ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--c-white);
}
.btn--ghost:hover { background: var(--c-white); color: var(--c-dark); border-color: var(--c-white); }


.btn__icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--c-darker);
  color: rgba(255,255,255,0.7);
  padding-block: 48px;
  font-size: 12px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__logo {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.16em;
  color: var(--c-white);
}

.footer__sns { display: flex; gap: 24px; }
.footer__sns a { letter-spacing: 0.1em; transition: color 0.3s var(--ease); }
.footer__sns a:hover { color: var(--c-white); }

.footer__copy { letter-spacing: 0.06em; opacity: 0.7; }

/* ==========================================================================
   Hover interactions — ふわっと浮き上がる演出
   マウス操作の環境でのみ有効（タッチ端末では hover が張り付くため除外）
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {

  /* 作例カード */
  .gallery__item figure:hover,
  .gallery__item figure:focus-within {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px -12px rgba(20, 21, 23, 0.34);
  }

  /* 日本地図の目印。乗せると点が大きくなり、地名が白く浮く */
  .japan__pin:hover .japan__dot { r: 6.5; }
  .japan__pin:hover .japan__label { fill: var(--c-white); }

  /* この旅の一曲 */
  .song:hover { border-color: var(--c-dark); background: rgba(43, 45, 47, 0.03); }
  .song:hover .song__play { transform: scale(1.08); }

  /* 旅の一覧カード */
  .trip-card__link:hover .trip-card__media,
  .trip-card__link:focus-visible .trip-card__media {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px -12px rgba(20, 21, 23, 0.34);
  }
  .trip-card__link:hover .trip-card__media img { transform: scale(1.05); }

  /* 押している間は沈ませる。指で押した感触に近づける */
  .trip-card__link:active .trip-card__media {
    transform: translateY(-3px) scale(0.985);
    box-shadow: 0 8px 20px -10px rgba(20, 21, 23, 0.34);
    transition-duration: 0.12s;
  }
  .gallery__item figure:active {
    transform: translateY(-3px) scale(0.99);
    transition-duration: 0.12s;
  }
  .filter__btn:active { transform: scale(0.95); transition-duration: 0.1s; }

  /* プロフィール写真 */
  .about__photo {
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  }
  .about__photo:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px -14px rgba(20, 21, 23, 0.28);
  }

  /* ボタン */
  .btn {
    transform: translateY(0);
    transition: background 0.35s var(--ease), color 0.35s var(--ease),
                border-color 0.35s var(--ease), transform 0.35s var(--ease),
                box-shadow 0.35s var(--ease);
  }
  .btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.5);
  }
  /* クリック時は少し沈ませて手応えを出す */
  .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.5);
    transition-duration: 0.08s;
  }
}

/* ==========================================================================
   Focus visible
   ========================================================================== */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* ==========================================================================
   Responsive — Tablet (〜1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trips   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__list { gap: 28px; }
}

/* ==========================================================================
   Responsive — Smartphone (〜768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root { --gutter: 20px; --header-h: 60px; }

  body { font-size: 14px; line-height: 1.85; }

  .header__toggle { display: block; }

  /* ドロワーメニュー */
  .nav {
    position: fixed;
    inset: 0;
    background: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .nav__link { font-size: 16px; letter-spacing: 0.18em; }

  body.is-nav-open { overflow: hidden; }

  /* ドロワーを開いている間は白背景なのでロゴ・ボタンを濃色に */
  .header:has(.nav.is-open) { color: var(--c-dark); }

  /* Hero */
  .hero { min-height: 88svh; align-items: flex-end; }
  .hero__scroll { margin-top: 28px; }
  .hero__scroll-line { width: 40px; }

  /* About */
  .about__body { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4 / 5; max-width: 320px; }
  .about__meta dt { flex-basis: 72px; }

  /* Works — フィルターは横スクロールで1行に収める */
  .filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    /* 端が切れて見えるよう画面端まで伸ばす */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .filter::-webkit-scrollbar { display: none; }
  .filter__btn { flex: none; }

  .trips { grid-template-columns: 1fr; gap: 36px; }

  /* 地球儀は画面幅いっぱいに。操作ボタンは重ねずに下へ回す */
  .globe__box { max-width: none; }
  .globe__controls {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 12px;
  }

  /* 旅ページの写真は2列のまま。1列だと縦に長くなりすぎる */
  .gallery--trip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--trip .gallery__item figure { aspect-ratio: 1 / 1; }

  .gallery { grid-template-columns: 1fr; gap: 20px; }
  .gallery__item figure { aspect-ratio: 3 / 4; }
  /* タッチデバイスではキャプションを常時表示 */
  .gallery__item figcaption { opacity: 1; transform: none; }

  /* Contact */
  .contact__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ==========================================================================
   Small phone (〜380px)
   ========================================================================== */
@media (max-width: 380px) {
  .header__logo { font-size: 17px; }
  .hero__sub { letter-spacing: 0.2em; }
}

/* ==========================================================================
   Motion preference
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  /* ヒーローのズームは終点で止めず、等倍のまま固定する */
  .hero__img,
  .hero__media::before { animation: none !important; transform: none !important; }

  /* スクロール表示演出は無効化し、最初から見えている状態にする */
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
