/* ================================================
   tamamaru portfolio v3
   ターコイズブルー基調 / 明るく、奥行きのあるデザイン
================================================ */

:root {
  --bg: #f4faf9;
  --bg-tint: #e4f2f0;
  --teal: #22a99c;        /* ターコイズ(メイン) */
  --teal-soft: #7fcfc6;
  --teal-deep: #128377;
  --teal-dark: #0d4f48;   /* 濃色はここぞという時だけ */
  --ink: #21403b;
  --ink-soft: #64827d;
  --gold: #b8923f;        /* 高級感アクセント(控えめに使う) */
  --gold-soft: #d9bd7a;
  --card: #ffffff;
  --radius: 16px;
  --serif: "Shippori Mincho", serif;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  /* 奥行き用の影(近いものほど濃く大きく) */
  --shadow-far:  0 2px 8px rgba(13, 79, 72, 0.06);
  --shadow-mid:  0 10px 28px rgba(13, 79, 72, 0.12);
  --shadow-near: 0 22px 48px rgba(13, 79, 72, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--maru);
  background: var(--bg);
  color: var(--ink);
  line-height: 2;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ページ全体にごく薄い粒子感を重ねて、のっぺり見えるのを防ぐ */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }

/* ============ 転がる玉(スクロール進捗) ============ */
.scroll-track { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1000; }
.scroll-ball {
  position: absolute; top: 4px; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(34, 169, 156, 0.7);
}

/* ============ ヘッダー ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(16px, 4vw, 48px);
  z-index: 900;
  background: rgba(244, 250, 249, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(13, 79, 72, 0.06);
  transition: box-shadow 0.4s ease;
}
/* スクロール後はヘッダーを浮かせる */
.header.is-scrolled { box-shadow: 0 8px 28px rgba(13, 79, 72, 0.12); }
.header__logo { font-family: var(--serif); font-size: 20px; letter-spacing: 0.12em; color: var(--teal-dark); }
.header__nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); font-size: 13px; font-weight: 500; }
.header__nav a { position: relative; padding: 4px 0; }
.header__nav a:not(.header__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; border-radius: 2px; background: var(--teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s ease;
}
.header__nav a:not(.header__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta {
  background: var(--teal);
  color: #fff;
  padding: 8px 22px; border-radius: 999px;
  box-shadow: var(--shadow-far);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.header__cta:hover { background: var(--teal-deep); box-shadow: var(--shadow-mid); transform: translateY(-1px); }

/* ハンバーガーメニュー(スマホ用トグルボタン、PCでは非表示) */
.header__toggle {
  display: none;
  position: relative;
  z-index: 950;
  width: 40px; height: 40px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.header__toggle span {
  position: absolute; left: 8px;
  width: 24px; height: 2px;
  border-radius: 2px;
  background: var(--teal-dark);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.25s ease, top 0.35s ease;
}
.header__toggle span:nth-child(1) { top: 14px; }
.header__toggle span:nth-child(2) { top: 19px; }
.header__toggle span:nth-child(3) { top: 24px; }
.header__toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ============ HERO(奥行きレイヤー) ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 20px clamp(190px, 26vh, 260px); /* 下部の流れる帯のぶん空けておく */
  background: linear-gradient(180deg, #dff0ee 0%, var(--bg) 70%);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 5; }
.hero__en {
  font-size: 12px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--teal-deep); font-weight: 700; margin-bottom: 10px;
}
.hero__logo { display: flex; justify-content: center; margin-bottom: 14px; }
.hero__name {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--teal-dark);
  /* ロゴサイズに縮小したので落ち影も控えめに */
  text-shadow: 0 4px 10px rgba(13, 79, 72, 0.2);
}
.hero__copy { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.4; margin-bottom: 24px; }
.hero__sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 50px; }
.hero__scroll {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em;
  padding: 14px 36px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-mid);
  transition: box-shadow 0.3s, transform 0.3s;
}
.hero__scroll:hover { box-shadow: var(--shadow-near); transform: translateY(-3px); }
.hero__scroll-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* 奥行きレイヤーの丸:
   遠い丸 = 大きい・ぼんやり・ゆっくり動く
   近い丸 = 小さい・くっきり・速く動く(JSの視差と連動) */
.hero__bg-circle { position: absolute; border-radius: 50%; will-change: transform; }
.hero__bg-circle--1 { /* いちばん遠い */
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(127, 207, 198, 0.35), rgba(127, 207, 198, 0));
  filter: blur(14px);
  top: -6%; left: -140px;
}
.hero__bg-circle--2 { /* 中間 */
  width: 260px; height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(34, 169, 156, 0.3), rgba(34, 169, 156, 0.08));
  filter: blur(4px);
  bottom: 8%; right: -60px;
}
.hero__bg-circle--3 { /* いちばん手前 */
  width: 40px; height: 40px;
  background: var(--teal);
  box-shadow: var(--shadow-near);
  top: 24%; right: 18%;
}
.hero__bg-circle--4 { /* 遠め */
  width: 150px; height: 150px;
  background: radial-gradient(circle at 35% 35%, rgba(127, 207, 198, 0.45), rgba(127, 207, 198, 0.1));
  filter: blur(6px);
  top: 16%; left: 12%;
}
.hero__bg-circle--5 { /* 手前寄り */
  width: 20px; height: 20px;
  background: var(--teal-soft);
  box-shadow: var(--shadow-mid);
  bottom: 22%; left: 22%;
}

/* ブラウザ風の窓枠(モーダルの画像上部で使用) */
.browser-frame { display: flex; gap: 5px; padding: 7px 9px; background: var(--bg-tint); }
.browser-frame span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-soft); }
.browser-frame span:nth-child(2) { background: var(--teal); }
.browser-frame span:nth-child(3) { background: var(--teal-deep); }

/* 作品スクリーンショットが流れる帯(ヒーロー下部)。中身はworks-data.jsから自動生成 */
.hero__marquee {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  overflow: hidden;
  padding: 16px 0 30px;
  /* 左右の端をふわっと消す */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.hero__marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.hero__marquee-item {
  width: clamp(170px, 20vw, 260px);
  margin-right: clamp(16px, 2vw, 26px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-mid);
  background: var(--card);
}
.hero__marquee-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
/* 同じ並びを2周入れてあるので、半分ぶん流れたら最初に戻って無限ループに見える */
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ セクション共通 ============ */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 20px; }
/* 色付きセクションは「浮いた紙のパネル」風にして、ページ全体を層構造に見せる */
.section--tinted {
  background: var(--bg-tint);
  border-radius: clamp(32px, 5vw, 60px);
  margin: 0 clamp(10px, 2vw, 28px);
  box-shadow: var(--shadow-far), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.section__inner { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; }
.section__inner--narrow { max-width: 760px; }

/* セクションの背景にぼんやりした円を1つ置いて、フラットに見えるのを防ぐ(ヒーローと同じ手法) */
#services, #flow, #about { overflow: hidden; }
#services::before, #flow::before, #about::before {
  content: "";
  position: absolute;
  width: clamp(320px, 40vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 1;
  pointer-events: none;
}
#services::before { background: radial-gradient(circle, rgba(34, 169, 156, 0.16), rgba(34, 169, 156, 0)); top: -12%; right: -10%; }
#flow::before      { background: radial-gradient(circle, rgba(127, 207, 198, 0.22), rgba(127, 207, 198, 0)); bottom: -14%; left: -12%; }
#about::before     { background: radial-gradient(circle, rgba(18, 131, 119, 0.15), rgba(18, 131, 119, 0)); top: -16%; left: 50%; transform: translateX(-50%); }
.section__title {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); align-self: center; flex-shrink: 0; }
.section__title-ja { font-family: var(--maru); font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.15em; }

/* 出現時に奥からピントが合うように(ぼかし+わずかな縮小からスタート) */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  filter: blur(4px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1), filter 0.9s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* セクション内を漂う小さな玉(ヒーローの奥行きを全ページに引き継ぐ) */
.deco { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; will-change: transform; }
.deco--dot-s { width: 14px; height: 14px; background: var(--teal-soft); box-shadow: var(--shadow-mid); }
.deco--dot-m { width: 30px; height: 30px; background: var(--teal); box-shadow: var(--shadow-near); opacity: 0.85; }
.deco--ring { width: 90px; height: 90px; border: 2px solid rgba(34, 169, 156, 0.3); }

/* ============ WORKS(横スクロールカルーセル) ============ */
.works-wrap { position: relative; }
.works {
  display: flex;
  gap: clamp(22px, 3vw, 40px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 10px 6px 30px;
  margin: -10px -6px -30px;
  cursor: grab;
  perspective: 1200px; /* 子要素の3D回転に奥行きを持たせる */
}
.works.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.works::-webkit-scrollbar { height: 6px; }
.works::-webkit-scrollbar-thumb { background: var(--teal-soft); border-radius: 999px; }
.works::-webkit-scrollbar-track { background: transparent; }

.work {
  position: relative;
  flex: 0 0 clamp(260px, 30vw, 340px);
  scroll-snap-align: start;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-far);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.4s;
  will-change: transform;
}
.work:hover { box-shadow: var(--shadow-near); }
.work__thumb, .work__body { transform: translateZ(20px); }

.works__arrow {
  position: absolute; top: 40%; z-index: 6;
  width: 46px; height: 46px;
  border: none; border-radius: 50%;
  background: var(--card);
  color: var(--teal-deep);
  font-size: 15px;
  box-shadow: var(--shadow-mid);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.works__arrow:hover { background: var(--teal); color: #fff; transform: translateY(-52%) scale(1.08); box-shadow: var(--shadow-near); }
.works__arrow--prev { left: -14px; transform: translateY(-50%); }
.works__arrow--next { right: -14px; transform: translateY(-50%); }
@media (max-width: 640px) { .works__arrow { display: none; } }
.work__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s ease; }
.work:hover .work__thumb img { transform: scale(1.05); }
.work__thumb-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 27px);
  letter-spacing: 0.14em;
  text-align: center;
  line-height: 1.6;
}
.work__thumb--azura   { background: linear-gradient(150deg, #16323e, #2e6475); color: #f0ece0; }
.work__thumb--kuro    { background: linear-gradient(150deg, #191512, #40352c); color: #e9dfc8; }
.work__thumb--yururi  { background: linear-gradient(150deg, #e9e2d2, #cfd9c4); color: #4c5a44; }
.work__thumb--komuten { background: linear-gradient(150deg, #f0e8d8, #d9c9a8); color: #5c4a2e; }

.work__body { padding: 24px 26px 28px; border-top: 3px solid var(--teal); }
.work__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 6px; }
.work__name { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.work__desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.9; }

/* ホバーで「みる」がぽん */
.work__stamp {
  position: absolute; top: 16px; right: 16px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-mid);
  opacity: 0; transform: scale(0.5);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.work:hover .work__stamp { opacity: 1; transform: scale(1); }

.works__note { margin-top: 30px; font-size: 12px; color: var(--ink-soft); text-align: center; }

/* ============ SERVICES ============ */
/* 2件構成: 中央寄せの2カラムで、それぞれ少し横幅にゆとりを持たせる */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: clamp(24px, 3.5vw, 40px);
}
.service {
  background: var(--card);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-far);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-mid); }
.service__icon {
  width: 74px; height: 74px;
  margin: 0 auto 22px; padding: 17px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--teal-deep);
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.service__icon svg { width: 100%; height: 100%; }
.service:hover .service__icon { transform: translateY(-6px) rotate(-6deg); }
.service__name { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0.06em; }
.service__desc { font-size: 13.5px; color: var(--ink-soft); text-align: left; }

/* ============ FLOW(重なりで奥行き) ============ */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.flow__step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px 22px 26px;
  box-shadow: var(--shadow-far);
  transition: transform 0.3s, box-shadow 0.3s;
}
.flow__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-mid); }
.flow__num {
  position: absolute; top: -16px; left: 18px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--serif); font-size: 16px;
  box-shadow: var(--shadow-mid);
}
.flow__name { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.flow__desc { font-size: 13px; color: var(--ink-soft); }

/* ============ ABOUT ============ */
.about {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(30px, 4vw, 48px);
  box-shadow: var(--shadow-mid);
}
.about__text p { font-size: 14.5px; }
.about__text p + p { margin-top: 14px; }
.about__name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.1em; color: var(--teal-dark); }
.about__name-ja { font-family: var(--maru); font-size: 12px; color: var(--ink-soft); margin-left: 10px; }

/* ============ CONTACT ============ */
.contact { text-align: center; }
.contact__lead { font-size: 15.5px; margin-bottom: 40px; }
.contact__btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--teal);
  color: #fff;
  padding: 18px 52px; border-radius: 999px;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-mid);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.contact__btn:hover { background: var(--teal-deep); border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-near), 0 0 0 1px rgba(184, 146, 63, 0.35); }
.contact__btn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); }

/* ============ 作品詳細モーダル(クリックで奥に潜る演出) ============ */
/* 開くと、後ろのページが少し縮んで奥に下がり、パネルが手前にせり出してくる */
main { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
body.modal-open { overflow: hidden; }
body.modal-open main { transform: scale(0.96); }

.work-modal {
  position: fixed; inset: 0;
  z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  visibility: hidden;
  transition: visibility 0s linear 0.5s;
}
.work-modal.is-open { visibility: visible; transition-delay: 0s; }
.work-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 79, 72, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.work-modal.is-open .work-modal__backdrop { opacity: 1; }
.work-modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-near);
  transform: scale(0.55) translateY(46px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 1.1, 0.3, 1), opacity 0.35s ease;
}
.work-modal.is-open .work-modal__panel { transform: scale(1) translateY(0); opacity: 1; }
.work-modal__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--card);
  color: var(--teal-deep);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-mid);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.work-modal__close:hover { background: var(--teal); color: #fff; transform: scale(1.08); }
.work-modal__img-wrap { background: var(--bg-tint); }
.work-modal__img-wrap img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work-modal__body { padding: 26px 30px 34px; }
.work-modal__name { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 2px 0 10px; }
.work-modal__desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.work-modal__link {
  display: inline-flex; align-items: center;
  background: var(--teal); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  padding: 13px 34px; border-radius: 999px;
  box-shadow: var(--shadow-mid);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.work-modal__link:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-near); }

/* ============ FOOTER ============ */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 48px 20px 40px;
  background: var(--teal-dark);
  color: rgba(244, 250, 249, 0.75);
}
.footer__copy { font-size: 11px; letter-spacing: 0.25em; }

/* ============ レスポンシブ ============ */
.pc-only { display: inline; }
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .pc-only { display: none; }

  .header__toggle { display: block; }
  .header__nav {
    position: fixed;
    top: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: min(78vw, 320px);
    height: 100svh;
    padding: 100px 36px 40px;
    background: var(--bg);
    box-shadow: var(--shadow-near);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1);
  }
  .header__nav.is-open { transform: translateX(0); }
  .header__nav a:not(.header__cta) {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(34, 169, 156, 0.15);
  }
  .header__nav a:not(.header__cta)::after { display: none; }
  .header__nav .header__cta { margin-top: 24px; }

  .header__overlay {
    position: fixed; inset: 0;
    z-index: 890;
    background: rgba(13, 79, 72, 0.25);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .header__overlay.is-open { opacity: 1; pointer-events: auto; }

  /* メニュー展開中はページ側のスクロールと視差演出を止める */
  body.nav-open { overflow: hidden; }
}
@media (min-width: 821px) {
  .header__overlay { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero__scroll-dot { animation: none; }
  .parallax, .deco { transform: none !important; }
  .hero__marquee-track { animation: none; }
  main, .work-modal__panel, .work-modal__backdrop { transition: none; }
  body.modal-open main { transform: none; }
}
