/* ============================================
   Ryusuke Koshiba Photography Portfolio
   Minimal black-background photo-first design
   ============================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-elev: #161616;
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #fff;
  --border: #2a2a2a;
  --max: 1400px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .65; }

img { max-width: 100%; display: block; }

/* ===== Header / Nav (元サイト合わせ) =====
   左上: 言語トグル / 右上: SNSアイコン / 右下: ナビ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #2c2c2c;
  border-bottom: 1px solid #1a1a1a;
}
.nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 28px 16px;
  position: relative;
  min-height: 90px;
}
/* サイトロゴ：地球儀＋飛行機の軌跡＋rk サイン（ヘッダー左上） */
.brand {
  position: absolute;
  top: 8px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  /* グレー背景の上で見やすくするため、黒線画ロゴを白に反転＋微発光 */
  filter: invert(1) brightness(1.05) drop-shadow(0 0 1px rgba(255,255,255,0.15));
  transition: transform 0.25s ease, opacity 0.2s ease;
  z-index: 2;
  line-height: 0;
}
.brand:hover { transform: scale(1.05); opacity: 0.9; }
.brand img {
  height: 70px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .brand { left: 14px; top: 6px; }
  .brand img { height: 50px; }
}
.lang-toggle {
  position: absolute;
  /* ロゴをヘッダー左上に置いたため、言語トグルは左下に移動 */
  bottom: 12px;
  left: calc(28px + 100px);  /* ロゴ右側に十分なスペースを確保 */
  display: flex;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 2px;
  font-size: 11px;
  gap: 0;
}
@media (max-width: 720px) {
  .lang-toggle { left: calc(14px + 70px); }
}
.lang-toggle span,
.lang-toggle a,
.lang-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #333;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  line-height: 1;
}
.lang-toggle button:hover { color: #000; }
.lang-toggle .active { background: #fff; color: #000; }
.lang-toggle .flag-icon {
  width: 20px;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.social-icons {
  position: absolute;
  top: 12px;
  right: 28px;
  display: flex;
  gap: 10px;
}
.social-icons a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-icons img,
.social-icons svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  position: absolute;
  bottom: 12px;
  right: 28px;
  list-style: none;
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* ===== Travel dropdown menu ===== */
.nav-links li.has-dropdown { position: relative; }
.nav-links li.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 12px;
  display: none;
}
.nav-links li.has-dropdown:hover::after,
.nav-links li.has-dropdown:focus-within::after { display: block; }
.nav-links .nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  background: #2c2c2c;
  border: 1px solid #1a1a1a;
  padding: 10px 0;
  min-width: 180px;
  list-style: none;
  display: none;
  z-index: 1100;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown:focus-within .nav-dropdown { display: block; }
.nav-links .nav-dropdown li { display: block; padding: 0; }
.nav-links .nav-dropdown a {
  display: block;
  padding: 6px 20px;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 1.2px;
  font-weight: 500;
  text-transform: none;
  text-align: left;
}
.nav-links .nav-dropdown a:hover { color: #fff; background: #3a3a3a; }

/* ===== Hamburger button (mobile only) ===== */
.nav-toggle {
  display: none;
  position: absolute;
  top: 8px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .25s ease, top .25s ease, background .2s ease;
}
.nav-toggle .hamburger { position: relative; }
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after  { top: 0; transform: rotate(-45deg); }

/* Backdrop scrim shown while drawer is open */
.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: 95;
}
.nav-scrim.visible { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  /* Compact header */
  .nav {
    min-height: 62px;
    padding: 8px 12px;
  }
  /* モバイルではロゴが左上、ハンバーガーが右上にあるので、言語トグルはハンバーガーの左に置く */
  .lang-toggle {
    top: 18px;
    left: auto;
    right: 64px;
    bottom: auto;
    font-size: 11px;
  }
  .lang-toggle .flag-icon { width: 16px; }
  .lang-toggle button { padding: 2px 8px; font-size: 10px; }
  .social-icons { display: none; }
  .nav-toggle { display: inline-flex; }
  /* ロゴはモバイルでも左上に維持。サイズを抑えて 50px → 44px に */
  .brand img { height: 44px; }
  .brand { top: 9px; left: 12px; }

  /* Drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 84%;
    max-width: 320px;
    background: #1a1a1a;
    flex-direction: column;
    gap: 0;
    padding: 70px 0 32px;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.2, 0.7, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 24px rgba(0,0,0,0.55);
    z-index: 100;
    border: none;
    list-style: none;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    color: #e8e8e8;
    letter-spacing: 2px;
    font-weight: 500;
  }
  .nav-links a.active { color: #fff; }
  .nav-links a:hover { opacity: 1; background: rgba(255,255,255,0.04); }

  /* Travel sub-menu: shown inline below TRAVEL on mobile (no hover needed) */
  .nav-links li.has-dropdown::after { display: none; }
  .nav-links .nav-dropdown {
    position: static;
    display: block;
    background: rgba(255,255,255,0.03);
    border: none;
    box-shadow: none;
    padding: 4px 0 8px;
    min-width: 0;
    list-style: none;
  }
  .nav-links .nav-dropdown li { border-bottom: none; }
  .nav-links .nav-dropdown a {
    padding: 10px 24px 10px 40px;
    font-size: 13px;
    color: #a0a0a0;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 400;
  }
  .nav-links .nav-dropdown a:hover { color: #fff; background: rgba(255,255,255,0.04); }

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

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 200;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Slideshow (HOME) — フィルムストリップ式 =====
   設計：
   - 5セルが横一列に並ぶトラックを作り、translateX で平行移動する
   - 各セルは slides 幅の 56.52% (= 旧 grid の中央 2.6fr / 4.6fr)
   - トラック総幅 = 5 × 56.52% = 282.6%（slides 比）
   - 初期位置：中央セル(index=2)を中央に置くため、トラックを translateX(-32.3%) で配置
     (32.3% = 91.3%(slides) / 282.6%(track total) × 100)
   - 「次へ」進む度に -20% (= 1セル分／トラック比) ずつシフト
   - アニメ完了後に画像srcを再ラベル＋トラックを基準位置に戻す（見た目連続）*/
.slideshow {
  background: #000;
  margin: 0 auto;
  max-width: 100%;
  padding: 0;
}
.slides {
  position: relative;
  width: 100%;
  aspect-ratio: 2.65 / 1;
  max-height: calc(100vh - 90px - 88px);
  overflow: hidden;
  background: #000;
}

.slide-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  width: 282.6%;             /* 5 × 56.52% */
  transform: translateX(-32.3%);
  will-change: transform;
}
.slide-track.is-animated {
  transition: transform 0.9s cubic-bezier(0.45, 0, 0.15, 1);
}
/* 「次へ」進行中：左に1セル分ずらす (-32.3% - 20% = -52.3%) */
.slide-track.is-shift-left  { transform: translateX(-52.3%); }
/* 「前へ」進行中：右に1セル分戻す (-32.3% + 20% = -12.3%) */
.slide-track.is-shift-right { transform: translateX(-12.3%); }

.slide-cell {
  flex: 0 0 20%;             /* トラックの1/5 = slides の 56.52% */
  height: 100%;
  background: #000;
  overflow: hidden;
  position: relative;
}
.slide-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
/* 端のセル(prev/next 位置)はホバーでクリッカブルに */
.slide-cell:nth-child(2),
.slide-cell:nth-child(4) { cursor: pointer; }
.slide-watermark {
  position: absolute;
  bottom: 28px;
  right: 36px;
  font-size: 18px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  z-index: 4;
  pointer-events: none;
  font-weight: 400;
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.35;
  transition: opacity 0.3s, background 0.2s;
}
.slides:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: rgba(0,0,0,0.7); }
.slide-prev { left: 16px; }
.slide-next { right: 16px; }

/* Thumbnails — 中央メイン画像と同じ幅に制限。スクロールバーは非表示、
   マウスポインタの位置に応じて自動スライド（Wix風の挙動）。 */
.thumbs {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
  /* グリッドが 1fr : 2.6fr : 1fr なので、中央メイン画像は全幅の 2.6/4.6 ≒ 56.52% */
  width: 56.52%;
  margin: 10px auto 0;
  padding: 4px 0 16px;
  background: #000;

  /* 1行に並べる。はみ出しは見えない範囲に隠す（JSでscrollLeftを制御） */
  flex-wrap: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;

  /* スクロールバー完全非表示 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.thumbs::-webkit-scrollbar { display: none; }

/* 大画面でもスクロールを優先したいので justify-content は flex-start のままに固定。
   （以前 center にしていたが、コンテンツが幅を超える時にスクロール位置が狂う原因になっていた） */

.thumb {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;

  flex: 0 0 auto;
  width: 90px;
  height: 60px;
  padding: 0;
  background: #000;
  border: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  /* 暗くフィルタ（フィルタは button でも確実に適用される） */
  filter: brightness(0.55);
  transition: filter 0.25s ease, outline-color 0.2s ease, transform 0.25s ease;
  outline: 0 solid transparent;
  outline-offset: -2px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb:hover { filter: brightness(0.85); }
.thumb.is-active,
.thumb.active {
  filter: brightness(1) !important;
  outline: 2px solid #c9a96e !important;
  z-index: 2 !important;
}

@media (max-width: 720px) {
  .slides { aspect-ratio: 4 / 3; }
  .thumb { width: 80px; height: 53px; }
  .slide-arrow { width: 36px; height: 36px; font-size: 20px; opacity: 1; }
}

/* ===== News / Update history ===== */
.news-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
  line-height: 1.3;
}
.news-list li {
  display: flex;
  gap: 20px;
  padding: 4px 4px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  line-height: 1.3;
}
.news-date {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  min-width: 90px;
  font-family: "Courier New", monospace;
  line-height: 1.3;
}
.news-text {
  color: var(--text);
  font-size: 13px;
  flex: 1;
  line-height: 1.3;
}
.news-text:hover { opacity: 0.6; }
@media (max-width: 540px) {
  .news-list li { flex-direction: column; gap: 4px; align-items: flex-start; }
  .news-date { min-width: 0; }
}

/* ===== Sections ===== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
}
.section-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-align: center;
}
.section h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 200;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}
.section .lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 60px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section .body { font-size: 16px; line-height: 1.9; }
.section .body p { margin-bottom: 18px; }

/* ===== Projects — sophisticated portfolio grid ===== */
.projects-section {
  padding: 90px 32px 120px;
  background: #0a0a0a;
}
.projects-eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #888;
  text-align: center;
  margin: 0 0 12px;
}
.projects-title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 300;
  text-align: center;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: 1px;
  font-family: "Bookman Old Style", "Cambria", "Georgia", serif;
  font-style: italic;
}
.projects-lead {
  text-align: center;
  color: #999;
  font-size: 13px;
  letter-spacing: 1.5px;
  max-width: 540px;
  margin: 0 auto 64px;
  line-height: 1.7;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  max-width: 1500px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; gap: 24px; }
}
.project-card {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--bg-elev);
  display: block;
}
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter .6s ease;
  filter: brightness(0.85) saturate(0.95);
}
.project-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.5) saturate(1);
}

/* 番号インデックス（左上） */
.project-num {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 2;
  font-family: "Bookman Old Style", "Cambria", "Georgia", serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.project-num::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.55);
}

/* オーバーレイ：グラデーションのみ（矩形撤去）。タイトル常時表示、説明文はホバー時 */
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 28px 28px 28px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.40) 30%,
    rgba(0, 0, 0, 0) 65%
  );
  transition: background .55s ease, padding .35s ease;
  z-index: 1;
}
.project-card:hover .project-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.65) 60%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.project-title {
  color: #fff;
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 400;
  letter-spacing: 0.4px;
  line-height: 1.25;
  font-family: "Bookman Old Style", "Cambria", "Georgia", serif;
  margin: 0 0 6px;
  text-align: left;
  transform: translateY(0);
  transition: transform .45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  margin-top: 12px;
  transform: scaleX(1);
  transform-origin: left;
  transition: width .4s ease, background .4s ease;
}
.project-card:hover .project-title { transform: translateY(-4px); }
.project-card:hover .project-title::after { width: 48px; background: rgba(255,255,255,0.85); }

.project-desc {
  color: rgba(255,255,255,0.88);
  font-size: 12.5px;
  letter-spacing: 0.2px;
  line-height: 1.7;
  margin: 0;
  max-width: 100%;
  text-align: left;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .55s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity .35s ease,
              margin .5s ease;
}
.project-card:hover .project-desc {
  max-height: 120px;
  opacity: 1;
  margin: 12px 0 16px;
}
.project-btn {
  background: transparent;
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0;
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.project-btn::after {
  content: "→";
  font-size: 14px;
  display: inline-block;
  transition: transform .3s ease;
  letter-spacing: 0;
}
.project-card:hover .project-btn {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover .project-btn::after { transform: translateX(5px); }

/* ===== TRAVEL — 正方形サムネイル、画像下にタイトル+説明 ===== */
.travel-section { padding: 60px 32px 100px; }
.cardgrid-travel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1500px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .cardgrid-travel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .cardgrid-travel { grid-template-columns: 1fr; }
}
.travel-card {
  display: block;
  background: transparent;
  text-align: center;
}
.travel-card .img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elev);
}
.travel-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.travel-card:hover img { transform: scale(1.04); }
.travel-card .travel-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}
.travel-card .travel-sub {
  color: #c8c8c8;
  font-size: 12px;
  margin-top: 5px;
  letter-spacing: 0.2px;
  line-height: 1.55;
  padding: 0 8px;
}

/* ===== Photo Gallery (detail pages) ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
}
.gallery a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-elev);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, opacity .3s;
}
.gallery a:hover img { transform: scale(1.04); opacity: 0.85; }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 1500;        /* ヘッダー(1000)より前面に */
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* タッチデバイスでピンチズーム/ダブルタップズームを許可 */
  touch-action: manipulation;
}
/* PC（広い画面）では拡大画像を 85% に抑えて余白を作る */
@media (min-width: 769px) {
  .lightbox img { max-width: 85%; max-height: 85%; }
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  background: transparent;
  border: none;
  line-height: 1;
  /* タップ領域を確保 */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 2px;
}
.lightbox-rotate-hint {
  display: none;                      /* JSが縦持ち時のみ表示 */
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(201, 169, 110, 0.18);
  border: 1px solid rgba(201, 169, 110, 0.5);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
  pointer-events: none;
  animation: hintPulse 2.5s ease-in-out infinite;
}
@keyframes hintPulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 0.55; }
}
@media (max-width: 768px) {
  .lightbox { padding: 12px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-counter { bottom: 14px; font-size: 11px; }
}

/* ===== About / Contact ===== */
.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 32px;
  display: block;
}
.profile-text {
  font-size: 15px;
  line-height: 2;
  text-align: center;
  margin-bottom: 40px;
}
.awards-list {
  list-style: none;
  font-size: 14px;
  color: var(--text-muted);
}
.awards-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.awards-list li:last-child { border: none; }

.contact-info {
  text-align: center;
  font-size: 15px;
  margin-bottom: 40px;
}
.contact-info a { display: block; margin: 8px 0; }
.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}
.social-links a {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===== Project intro ===== */
.project-intro {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.project-intro h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 200;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.project-intro .concept {
  font-size: 15px;
  line-height: 2;
  color: var(--text-muted);
  white-space: pre-wrap;
}

/* ===== Project detail page ===== */
.project-detail { padding: 0 0 80px; }
.project-hero {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 36px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
/* 本文が長いプロジェクト用：縦長め（テキストがゆったり収まる） */
.project-hero.project-hero-tall { aspect-ratio: 3 / 2; }
.project-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  /* 左側を暗く落として右側は写真をそのまま見せるグラデーション */
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0.62) 0%,
      rgba(0,0,0,0.45) 38%,
      rgba(0,0,0,0.18) 62%,
      rgba(0,0,0,0) 82%),
    linear-gradient(180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0) 35%,
      rgba(0,0,0,0) 70%,
      rgba(0,0,0,0.25) 100%);
}
.project-detail-title {
  position: absolute;
  top: 50%;
  left: 6%;
  right: auto;
  max-width: 56%;
  transform: translateY(-50%);
  color: #fff;
  font-size: clamp(22px, 3.2vw, 40px);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 18px rgba(0,0,0,0.4);
  margin: 0;
  text-align: left;
  text-transform: none;
  font-family: "Bookman Old Style", "Cambria", "Georgia", serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
}
/* 本文：ヒーロー画像の中、下端寄せで配置（HTMLで .project-hero-overlay の中に置いた場合に有効） */
.project-hero-overlay .project-detail-body {
  position: absolute;
  top: auto;
  left: 6%;
  right: auto;
  bottom: 7%;
  max-width: 56%;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(11px, 1.05vw, 15.5px);
  line-height: 1.85;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 10px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55em;
}
.project-hero-overlay .project-detail-body p { margin: 0; }
@media (max-width: 720px) {
  /* モバイルではタイトル＋本文が画像内で重なるため、
     ヒーロー画像と文字を縦に分離（画像が上、テキストが下） */
  .project-hero {
    aspect-ratio: 3 / 2;             /* 普通の写真比率に */
    margin-bottom: 0;
  }
  .project-hero-overlay {
    background: none;                /* 暗い覆いは不要、画像をクリアに見せる */
  }
  .project-detail-title {
    position: static;
    transform: none;
    max-width: 100%;
    margin: 18px 18px 8px;
    color: #fff;
    text-shadow: none;
    font-size: clamp(20px, 5.5vw, 26px);
    line-height: 1.3;
    left: auto;
    right: auto;
    top: auto;
  }
  .project-hero-overlay .project-detail-body {
    position: static;
    display: block;
    max-width: 100%;
    margin: 0 18px 24px;
    padding: 0;
    color: #d4d4d4;                  /* 黒背景で読みやすい明るいグレー */
    text-shadow: none;
    font-size: 13.5px;
    line-height: 1.85;
    bottom: auto;
    left: auto;
    right: auto;
  }
  .project-hero-overlay .project-detail-body p { margin: 0 0 0.8em; }
}
/* 本文：ヒーローの外（従来配置）— 旧構造のページが残っている場合のフォールバック */
.project-detail > .project-detail-body {
  max-width: 820px;
  margin: 0 auto 60px;
  padding: 0 24px;
  color: #ddd;
  font-size: 17px;
  line-height: 2;
}
.project-detail > .project-detail-body p { margin: 0 0 8px; }
.project-gallery-title {
  text-align: center;
  color: #f5d142;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 8px 0 28px;
  text-transform: none;
  border: none;
  padding: 0;
}

/* Project Feature image — 本文と Project Gallery の間に配置する大判フィーチャー画像 */
.project-feature {
  max-width: 760px;          /* Galleryグリッドより大きく、画面に対して圧迫感の少ないサイズ */
  margin: 48px auto 56px;
  padding: 0 16px;
  text-align: center;
}
.project-feature-link {
  display: block;
  cursor: zoom-in;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
}
.project-feature-link img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease, opacity 0.3s ease;
}
.project-feature-link:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}
.project-feature-caption {
  margin: 22px auto 0;
  max-width: 640px;
}
.project-feature-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.4;
}
.project-feature-desc {
  font-size: 14px;
  color: #b8b8b8;
  line-height: 1.95;
  margin: 0;
}
@media (max-width: 720px) {
  .project-feature { margin: 32px auto 36px; padding: 0 12px; }
  .project-feature-title { font-size: 17px; letter-spacing: 1px; }
  .project-feature-desc { font-size: 13px; line-height: 1.85; }
}
.project-detail .gallery {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.project-detail .gallery a { aspect-ratio: 3 / 2; }
@media (max-width: 760px) {
  .project-detail .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .project-detail .gallery { grid-template-columns: 1fr; }
}
/* 縦写真用ギャラリー（bajau-portrait など）— 本家準拠：3列 / 縦長 ~0.7:1 */
.project-detail .gallery.gallery-portrait {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1000px;
}
.project-detail .gallery.gallery-portrait a {
  aspect-ratio: 294 / 416;
}
@media (max-width: 760px) {
  .project-detail .gallery.gallery-portrait { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 460px) {
  .project-detail .gallery.gallery-portrait { grid-template-columns: 1fr; }
}
.project-back {
  text-align: center;
  margin-top: 48px;
}
.project-back a {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 2px;
}
.project-back a:hover { background: rgba(255,255,255,0.08); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.5px;
  background: #2c2c2c;
}
.site-footer .footer-line {
  display: inline-block;
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.spacer { height: 40px; }

/* ===== ABOUT — 元サイトに合わせた本文+写真の段落構成 ===== */
.about-page {
  background: #1a1a1a;
  padding: 60px 24px 80px;
}
.about-inner {
  max-width: 1080px;
  margin: 0 auto;
  color: #e8e8e8;
}
.about-head {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  margin-bottom: 70px;
}
@media (max-width: 720px) {
  .about-head { grid-template-columns: 1fr; gap: 24px; }
  .about-head-photo { order: -1; }
}
.about-name {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 26px;
  letter-spacing: 2px;
  color: #fff;
}
.about-bio {
  font-size: 16px;
  line-height: 2;
  margin-bottom: 32px;
  color: #e0e0e0;
}
.about-block { margin-top: 18px; }
.about-block h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
  border: none;
  padding: 0;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
}
.about-list {
  list-style: none;
  font-size: 15px;
  color: #d8d8d8;
  padding-left: 14px;
  line-height: 1.9;
}
.about-list li {
  padding: 0;
  border: none;
}
.about-list li > span:first-child {
  display: inline-block;
  width: 70px;
  color: #d8d8d8;
}
.about-list-cont {
  display: inline-block;
  margin-left: 70px;
  color: #bcbcbc;
}
.about-head-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  margin: 28px 0 48px;
}
.about-row-reverse {
  grid-template-columns: 1fr 340px;
}
.about-row-reverse .about-row-photo { order: 2; }
@media (max-width: 720px) {
  .about-row,
  .about-row-reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-row-reverse .about-row-photo { order: 0; }
}
.about-row-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.about-row-text h3 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  letter-spacing: 0;
}
.about-row-text p {
  font-size: 15px;
  line-height: 2.05;
  color: #dcdcdc;
  margin: 0 0 12px;
}

/* ===== CONTACT — Elegant editorial design matching site aesthetic ===== */
.contact-hero {
  position: relative;
  height: 56vh;
  min-height: 380px;
  overflow: hidden;
  background: #0a0a0a;
}
.contact-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.05) grayscale(0.15);
}
.contact-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.25) 45%,
    rgba(10,10,10,0.95) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 24px;
}
.contact-eyebrow {
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 22px;
}
.contact-hero-title {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 300;
  letter-spacing: 8px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
  margin: 0;
  line-height: 1.2;
}
.contact-hero-sub {
  margin-top: 24px;
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 12px;
  letter-spacing: 5px;
  color: #d4d4d4;
}

.contact-section {
  background: #0a0a0a;
  padding: 100px 24px 120px;
}
.contact-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 560px;
  }
  .contact-section { padding: 70px 22px 90px; }
}

/* Left info panel */
.contact-info-panel {
  position: relative;
  padding-left: 28px;
}
.contact-info-panel::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 1px; height: 64px;
  background: linear-gradient(180deg, #c9a96e 0%, transparent 100%);
}
.contact-eyebrow-sm {
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 14px;
}
.contact-name {
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 2px;
  color: #fff;
  margin: 0 0 26px;
  line-height: 1.2;
  border: none;
  padding: 0;
  text-transform: none;
  text-align: left;
}
.contact-lead {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 2;
  color: #c8c8c8;
  margin: 0 0 36px;
}
.contact-meta {
  list-style: none;
  margin: 0; padding: 0;
  border-top: 1px solid #2a2a2a;
}
.contact-meta li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #2a2a2a;
  font-size: 13px;
  color: #d8d8d8;
}
.contact-meta-label {
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 10.5px;
  letter-spacing: 3px;
  color: #888;
  text-transform: uppercase;
}
.contact-meta a {
  color: #e8e8e8;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s, opacity .2s;
}
.contact-meta a:hover {
  color: #c9a96e;
  border-bottom-color: rgba(201,169,110,0.5);
  opacity: 1;
}
.contact-social .dot {
  margin: 0 10px;
  color: #555;
}

/* Right form panel */
.contact-form-panel {
  background: #111;
  border: 1px solid #232323;
  padding: 48px 44px 44px;
  position: relative;
}
.contact-form-panel::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 36px; height: 36px;
  border-top: 1px solid #c9a96e;
  border-left: 1px solid #c9a96e;
}
.contact-form-panel::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 36px; height: 36px;
  border-bottom: 1px solid #c9a96e;
  border-right: 1px solid #c9a96e;
}
@media (max-width: 540px) {
  .contact-form-panel { padding: 36px 26px 32px; }
}

.contact-form .field {
  position: relative;
  margin-bottom: 26px;
}
.contact-form label {
  display: block;
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
  transition: color .2s;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #2e2e2e;
  color: #f0f0f0;
  font-size: 14px;
  padding: 8px 0 10px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
  transition: border-color .25s;
}
.contact-form textarea {
  min-height: 120px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #c9a96e;
}
.contact-form .field:focus-within label {
  color: #c9a96e;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #555;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  background: transparent;
  color: #f0f0f0;
  border: 1px solid #c9a96e;
  padding: 14px 32px;
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
  border-radius: 0;
  transition: background .25s, color .25s, letter-spacing .25s;
}
.contact-submit svg {
  width: 16px; height: 16px;
  transition: transform .25s;
}
.contact-submit:hover {
  background: #c9a96e;
  color: #0a0a0a;
  letter-spacing: 5px;
}
.contact-submit:hover svg { transform: translateX(4px); }

.contact-thanks {
  display: none;
  margin-top: 22px;
  padding: 14px 18px;
  border-left: 2px solid #c9a96e;
  background: rgba(201,169,110,0.08);
  font-size: 13px;
  color: #e8e0cf;
  letter-spacing: 0.5px;
}
.contact-thanks.is-visible { display: block; }

/* ===== Section title (PROJECTS等で使用) ===== */
.section-title {
  font-size: 38px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  letter-spacing: 1px;
  border: none;
  padding: 0;
  text-transform: none;
}

/* News section spacer */
.news-section { padding: 30px 24px 24px; max-width: 800px; }
.news-section .news-list { border: none; }

/* ===== Travel detail page (本家準拠: 左にメイン+thumb帯、右にタイトル/本文/Back) =====
   画像を画面中央に配置するため、左に同幅のスペーサ列を入れた3列グリッド構成。
   画像はビューポート高 - ヘッダ - フッタ - thumb帯 を埋める。 */
.travel-detail {
  display: grid;
  /* 画像を小さくした分、右側の文字エリアを広げて余白感を解消 */
  grid-template-columns: 200px minmax(0, 1fr) 420px;
  grid-template-areas: ". slideshow side";
  column-gap: 32px;
  padding: 14px 24px 16px;
  margin: 0;
  max-width: 100%;
  align-items: start;
}
.travel-slideshow {
  grid-area: slideshow;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* 個別国ページの画像を 15% 小さく表示（メイン画像とサムネ帯の両方が同比率で縮小）
     右寄せにして「画像と文字の間の余白」を詰める */
  width: 85%;
  margin-left: auto;
  margin-right: 0;
}
.travel-main {
  position: relative;
  background: #000;
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
}
.travel-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}
.travel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s, background .2s;
  padding: 0;
}
.travel-main:hover .travel-arrow { opacity: 1; }
.travel-arrow:hover { background: rgba(0,0,0,0.7); }
.travel-prev { left: 16px; }
.travel-next { right: 16px; }
.travel-watermark {
  position: absolute;
  bottom: 12px;
  right: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  pointer-events: none;
  letter-spacing: 0.5px;
}
.travel-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  margin-top: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.travel-thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 51px;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
  background: #000;
  opacity: 0.55;
  transition: opacity .2s, border-color .2s;
}
.travel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.travel-thumb:hover { opacity: 0.85; }
.travel-thumb.active { opacity: 1; border-color: rgba(255,255,255,0.85); }

.travel-side { grid-area: side; color: #ddd; align-self: center; }
.travel-side h1 {
  font-size: 22px;
  color: #abe0f7;
  font-weight: 300;
  margin: 0 0 14px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.travel-side p {
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 12px;
  color: #d8d8d8;
}
.travel-side .back-btn {
  display: inline-block;
  margin-top: 18px;
  background: #383838;
  color: #fff;
  padding: 8px 30px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1px solid #555;
}
.travel-side .back-btn:hover { background: #525252; }

@media (max-width: 800px) {
  .travel-detail {
    grid-template-columns: 1fr;
    grid-template-areas: "slideshow" "side";
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 18px;
    min-height: 0;
    padding: 0 0 16px;
  }
  /* タブレット〜モバイルでは画像エリアを画面いっぱいに */
  .travel-slideshow { width: 100%; margin: 0; }
  .travel-side { padding: 0 16px; }
  .travel-main { height: 60vh; flex: 0 0 auto; }
}

/* ===== Travel world map (TRAVEL index) ===== */
.travel-map-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 24px 28px;
}
.travel-map-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
#travel-world-map {
  width: 100%;
  height: 520px;
  background: #0e1a2c;
  border: 1px solid #1f2a3a;
}
@media (max-width: 720px) {
  #travel-world-map { height: 360px; }
}
/* === ピン：金色のドット + パルスする外周 === */
.leaflet-marker-icon.travel-pin {
  background: transparent;
  border: none;
  width: 16px !important;
  height: 16px !important;
}
.travel-pin .pin-dot,
.travel-pin .pin-pulse {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.travel-pin .pin-dot {
  width: 10px; height: 10px;
  background: #c9a96e;
  box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.85), 0 0 12px rgba(201, 169, 110, 0.6);
  z-index: 2;
}
.travel-pin .pin-pulse {
  width: 10px; height: 10px;
  border: 2px solid rgba(201, 169, 110, 0.7);
  animation: pinPulse 2.2s ease-out infinite;
  z-index: 1;
}
.travel-pin:hover .pin-dot {
  background: #fff;
  box-shadow: 0 0 0 2px #c9a96e, 0 0 16px rgba(255,255,255,0.55);
}
@keyframes pinPulse {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(3.6); opacity: 0;    }
}

/* === ホバー時に表示されるカード === */
.leaflet-popup.travel-popup .leaflet-popup-tip-container { display: none; }
.leaflet-popup.travel-popup .leaflet-popup-content-wrapper {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.leaflet-popup.travel-popup .leaflet-popup-content {
  margin: 0;
  width: 220px !important;
  line-height: 1.45;
}
.travel-map-card {
  display: block;
  text-decoration: none;
  color: #f0f0f0;
  background: #111;
  border: 1px solid #232323;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.travel-map-card:hover {
  transform: translateY(-2px);
  border-color: #c9a96e;
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}
.travel-map-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 28px;
  border-top: 1px solid #c9a96e;
  border-left: 1px solid #c9a96e;
  z-index: 3;
  pointer-events: none;
}
.travel-map-card::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-bottom: 1px solid #c9a96e;
  border-right: 1px solid #c9a96e;
  z-index: 3;
  pointer-events: none;
}
.travel-map-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;       /* 3:2 から 16:9 に。縦の見切れを軽減 */
  overflow: hidden;
  background: #000;
}
.travel-map-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s ease, filter .4s ease;
  filter: brightness(0.85) contrast(1.05);
}
.travel-map-card:hover .travel-map-card-img img {
  transform: scale(1.06);
  filter: brightness(1) contrast(1.08);
}
.travel-map-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(10,10,10,0.85) 100%);
  pointer-events: none;
}
.travel-map-card-body {
  padding: 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.travel-map-card .card-eyebrow {
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 9px;
  letter-spacing: 3px;
  color: #c9a96e;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.travel-map-card .card-title {
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.2;
  display: block;
}
.travel-map-card .card-sub {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #bdbdbd;
  line-height: 1.5;
  margin-top: 3px;
  display: block;
}
.travel-map-card .card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c9a96e;
  border-top: 1px solid rgba(201,169,110,0.25);
  padding-top: 8px;
  transition: color .2s;
}
.travel-map-card .card-cta svg {
  width: 14px; height: 14px;
  transition: transform .25s;
}
.travel-map-card:hover .card-cta { color: #fff; }
.travel-map-card:hover .card-cta svg { transform: translateX(4px); }

/* ============================================================
   ABOUT — Cinematic Story redesign
   ============================================================ */
:root {
  --serif: "Bookman Old Style", "Bookman", "Cambria", "Georgia", serif;
  --jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans-jp: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --gold: #c9a96e;
}

.va-page { background: #0a0a0a; color: #ececec; }

.va-hero {
  position: relative;
  height: 88vh; min-height: 560px;
  overflow: hidden;
}
.va-hero img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.62) contrast(1.05);
}
.va-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 45%, rgba(10,10,10,.95) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 24px;
}
.va-eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.va-hero h1 {
  font-family: var(--jp);
  font-size: clamp(28px, 4.6vw, 56px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
  max-width: 900px;
}
.va-hero-sub {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 4px;
  color: #d4d4d4;
}
.va-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 11px; letter-spacing: 3px;
  color: #b8b8b8; opacity: .8;
}
.va-scroll::after {
  content: ""; display: block; width: 1px; height: 38px;
  background: linear-gradient(#b8b8b8, transparent);
  margin: 10px auto 0;
}

.va-intro {
  max-width: 880px;
  margin: 0 auto;
  padding: 110px 24px 90px;
  text-align: center;
}
.va-intro .name {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.va-intro .name-jp {
  font-family: var(--jp);
  font-size: 30px;
  letter-spacing: 6px;
  color: #fff;
  margin-bottom: 28px;
}
.va-intro p {
  font-family: var(--sans-jp);
  font-size: 16px;
  line-height: 2.2;
  color: #d8d8d8;
}

.va-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: #2a2a2a;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
}
@media (max-width: 880px) { .va-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .va-stats { grid-template-columns: 1fr; } }
.va-stat {
  background: #0a0a0a;
  text-align: center;
  padding: 38px 24px;
}
.va-stat .num {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.va-stat .lbl {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c8c8c8;
}

.va-chapter {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.va-chapter.reverse { grid-template-columns: 1fr 1.1fr; }
.va-chapter.reverse .va-chap-photo { order: 2; }
@media (max-width: 880px) {
  .va-chapter, .va-chapter.reverse {
    grid-template-columns: 1fr;
    gap: 32px; padding: 70px 24px;
  }
  .va-chapter.reverse .va-chap-photo { order: 0; }
}
.va-chap-photo img {
  width: 100%; height: auto;
  display: block;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
}
.va-chap-num {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 14px;
}
.va-chap-title {
  font-family: var(--jp);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.5;
}
.va-chap-text p {
  font-family: var(--sans-jp);
  font-size: 15.5px;
  line-height: 2.1;
  color: #d6d6d6;
  margin-bottom: 16px;
}

.va-stories {
  background: #0e0e0e;
  border-top: 1px solid #2a2a2a;
  padding: 100px 24px 110px;
}
.va-stories-inner { max-width: 1280px; margin: 0 auto; }
.va-stories h2 {
  font-family: var(--serif);
  font-size: 12px; letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}
.va-stories h2::after {
  content: ""; display: block;
  width: 36px; height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}
.va-story-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .va-story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .va-story-grid { grid-template-columns: 1fr; } }
.va-story { display: block; }
.va-story .img-wrap { overflow: hidden; }
.va-story img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: opacity .3s, transform .55s ease;
}
.va-story:hover img { opacity: .9; transform: scale(1.04); }
.va-story h3 {
  font-family: var(--serif);
  font-size: 14px; letter-spacing: 3px;
  color: #fff; margin-top: 14px;
}
.va-story p {
  font-family: var(--sans-jp);
  font-size: 12.5px; color: #999;
  margin-top: 4px; line-height: 1.6;
}

.va-cta {
  background:
    linear-gradient(rgba(10,10,10,.84), rgba(10,10,10,.92)),
    url('/assets/images/top/full/007.jpg') center/cover;
  padding: 110px 24px;
  text-align: center;
}
.va-cta .eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.va-cta h2 {
  font-family: var(--jp);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.55;
}
.va-cta p {
  max-width: 640px; margin: 0 auto 40px;
  font-family: var(--sans-jp);
  font-size: 15px; line-height: 2;
  color: #cfcfcf;
}
.va-btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid var(--gold);
  padding: 16px 38px;
  transition: background .25s, color .25s;
}
.va-btn:hover { background: var(--gold); color: #0a0a0a; opacity: 1; }

.va-credits {
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 24px 110px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
@media (max-width: 720px) { .va-credits { grid-template-columns: 1fr; gap: 36px; } }
.va-credit-block h3 {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 10px;
}
.va-credit-block ul { list-style: none; }
.va-credit-block li {
  font-family: var(--sans-jp);
  font-size: 14px;
  line-height: 1.8;
  color: #d2d2d2;
  padding: 8px 0;
  border-bottom: 1px dashed #1f1f1f;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
}
.va-credit-block li > span:first-child { color: var(--gold); font-family: var(--serif); }

/* ===== Mobile readability ===== */
@media (max-width: 768px) {
  /* HOME スライドショー：モバイルではメイン1枚だけを画面幅いっぱいに見せる */
  .slideshow { padding: 0; }
  .slides {
    aspect-ratio: 3 / 2;            /* 元画像の比率に合わせて余白なし */
    max-height: 60vh;
  }
  /* トラック幅とセル幅を再計算：5セル×100% = 500%、中央セル(index=2)を表示するため -200%/500% = -40% シフト */
  .slide-track  { width: 500%; transform: translateX(-40%); }
  .slide-track.is-shift-left  { transform: translateX(-60%); }
  .slide-track.is-shift-right { transform: translateX(-20%); }
  .slide-cell   { flex: 0 0 20%; }  /* 各セルがトラックの1/5 = slides幅100% */
  .slide-watermark { font-size: 12px; bottom: 10px; right: 14px; }
  .thumbs {
    /* モバイルではサムネ列をメイン画像と同じ100%幅で */
    width: 100%;
    gap: 4px;
    padding: 6px 8px 12px;
    margin-top: 0;
  }
  .thumb { width: 56px; height: 38px; border: 1px solid transparent; }
  .thumb.is-active, .thumb.active { outline-width: 1.5px; }

  /* News list */
  .news-section { padding: 24px 16px 18px; }
  .news-list li { padding: 8px 4px; }
  .news-date { font-size: 11px; min-width: 78px; }
  .news-text { font-size: 13px; line-height: 1.5; }

  /* PROJECTS index — single column, ample card height */
  .projects-section { padding: 56px 18px 80px; }
  .projects-eyebrow { font-size: 10px; letter-spacing: 4px; }
  .projects-title { font-size: clamp(28px, 8vw, 38px); }
  .projects-lead { font-size: 12.5px; line-height: 1.7; margin-bottom: 36px; padding: 0 8px; }
  .projects-grid { gap: 22px; }
  .project-card { aspect-ratio: 4 / 5; }
  .project-num { top: 14px; left: 16px; font-size: 11px; }
  .project-overlay { padding: 22px 22px 22px; }
  .project-title { font-size: 19px; }
  /* On mobile, always show full description and button (no hover available) */
  .project-desc { max-height: none; opacity: 1; margin: 10px 0 14px; font-size: 12.5px; }
  .project-btn { opacity: 1; transform: none; }

  /* TRAVEL cards */
  .travel-section { padding: 32px 16px 64px; }
  .cardgrid-travel { gap: 18px; }
  .travel-card .travel-title { font-size: 18px; margin-top: 10px; }
  .travel-card .travel-sub { font-size: 13px; line-height: 1.55; padding: 0 6px; }
  .travel-map-section { padding: 24px 14px 18px; }
  .travel-map-title { font-size: 15px; }

  /* PROJECT DETAIL — モバイルでは画像と文字を縦に分離（重なり解消）
     アスペクト比と overflow:hidden を解除して、画像→タイトル→本文 と縦に流す */
  .project-hero {
    aspect-ratio: auto !important;
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
  }
  .project-hero img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
    object-fit: cover !important;
    display: block !important;
  }
  .project-hero-overlay {
    background: none !important;     /* 暗い覆いを撤去、画像クリアに */
    position: static !important;     /* 絶対配置を解除 */
    inset: auto !important;
    display: block !important;
    padding: 0 !important;
  }
  .project-detail-title {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
    margin: 18px 18px 8px !important;
    color: #fff !important;
    text-shadow: none !important;
    font-size: clamp(20px, 5.8vw, 26px) !important;
    line-height: 1.3 !important;
  }
  .project-hero-overlay .project-detail-body,
  .project-detail-body {
    position: static !important;
    display: block !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    max-width: 100% !important;
    margin: 0 18px 24px !important;
    padding: 0 !important;
    color: #d4d4d4 !important;       /* 黒背景で読みやすい明るいグレー */
    text-shadow: none !important;
    font-size: 13.5px !important;
    line-height: 1.85 !important;
  }
  .project-detail-body p { margin: 0 0 0.8em !important; }
  .project-gallery-title { font-size: 22px; margin: 20px 0 22px; }
  .project-detail .gallery { padding: 0 16px; gap: 8px; }

  /* TRAVEL detail (mongolia etc.) */
  .travel-detail {
    grid-template-columns: 1fr;
    grid-template-areas: "slideshow" "side";
    grid-template-rows: auto auto;
    column-gap: 0;
    row-gap: 18px;
    padding: 0 0 16px;             /* 左右の padding を 0 に。フル幅で画像を見せる */
  }
  /* PCで設定していた width:85% は不要。モバイルでは画像エリア全幅を使う */
  .travel-slideshow {
    width: 100%;
    margin: 0;
  }
  .travel-main { aspect-ratio: 3 / 2; height: auto; }
  /* 本文セクションだけは左右のパディングを戻す */
  .travel-side {
    padding: 0 16px;
  }
  .travel-side h1 { font-size: 19px; margin-bottom: 12px; }
  .travel-side p { font-size: 14px; line-height: 1.8; }
  .travel-side .back-btn { padding: 10px 28px; font-size: 13px; }

  /* CONTACT */
  .contact-section { padding: 24px 16px; min-height: auto; }
  .contact-card { max-width: 100%; }

  /* Footer: stack lines for legibility */
  .site-footer {
    padding: 20px 16px;
    font-size: 11.5px;
    line-height: 1.7;
  }
  .site-footer .footer-line {
    display: block;
    margin: 2px 0;
  }
}

/* Even smaller phones — squeeze further */
@media (max-width: 380px) {
  .lang-toggle { font-size: 11px; }
  .lang-toggle .flag-icon { width: 16px; }
  .projects-title { font-size: 26px; }
  .news-date { min-width: 70px; font-size: 10.5px; }
  .news-text { font-size: 12.5px; }
}

