/* ==========================================================================
   HOLO — スタイル
   色・フォントはすぐ下の「デザイントークン」を書き換えるだけで全体に反映されます。
   ========================================================================== */

/* メインカラーを「色」として登録しておくと、値が変わったときにフェードできる */
@property --color-hero-panel { syntax: "<color>"; inherits: true; initial-value: #221f4a; }
@property --color-hero-text { syntax: "<color>"; inherits: true; initial-value: #f4f3ff; }

:root {
  /* ---- 色（仮の配色。自由に変更できます） ---- */
  --color-background: #f1f2f8;   /* ページ背景 */
  --color-surface: #ffffff;      /* カード・行の面 */
  --color-text: #1d1b38;         /* 本文 */
  --color-muted: #66657f;        /* 補助テキスト */
  --color-accent: #5646d6;       /* リンク・フォーカス */
  --color-hero-panel: #221f4a;   /* メインカラー。実際の色は config.js の hero.slides の color が使われます */
  --color-profile-panel: #1e1e1e; /* PROFILE の左パネル。メインカラーとは連動しない固定色 */
  --color-profile-text: #f4f4f6;  /* PROFILE の左パネル上の文字 */
  --color-hero-text: #f4f3ff;    /* 左パネル上の文字 */
  --color-overlay: rgba(14, 12, 36, 0.86); /* ライトボックスの暗幕 */
  --color-line: rgba(29, 27, 56, 0.14);

  /* ---- フォント ---- */
  --font-title: "Archivo Black", "Unbounded", sans-serif;   /* TOP の「HOLO」だけに使う太いフォント */
  --font-display: "Unbounded", "Zen Kaku Gothic New", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  /* ---- レイアウト ---- */
  --rail-width: 64px;
  --page-max: 1120px;
  --ease: cubic-bezier(0.3, 0, 0.2, 1);
  --wipe: 0.6s;                  /* TOP の切り替えにかける時間（main.js の WIPE_MS と合わせる） */
  --hero-panel-width: 40%;        /* TOP 左パネルの幅（小さいほど画像が広い） */
  --hero-slant: 72%;             /* 左パネル下端の幅（小さいほど傾きが強い） */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  transition: --color-hero-panel var(--wipe) ease, --color-hero-text var(--wipe) ease;
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  overflow-x: clip;
  animation: page-in 0.5s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } }

img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
main:focus { outline: none; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 8px 16px; background: var(--color-surface); color: var(--color-text);
}
.skip-link:focus { top: 12px; }
.noscript { padding: 24px; text-align: center; }

/* ---------- ImagePlaceholder ---------- */
.placeholder {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: var(--color-muted);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--color-text) 5%, transparent) 14px 15px),
    color-mix(in srgb, var(--color-text) 6%, var(--color-background));
  outline: 1px dashed color-mix(in srgb, var(--color-text) 28%, transparent);
  outline-offset: -10px;
}
.placeholder__label {
  padding: 0.3em 1em;
  font-size: 0.875rem; letter-spacing: 0.12em;
  background: var(--color-background);
  border-radius: 999px;
  white-space: nowrap;
}
.picture { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Navigation: rail + menu ----------
   左の帯は、いまいるセクションに合わせた色（--rail-color）で塗る。
   セクションが変わると、色はフェードで切り替わる。 */
body {
  --rail-color: var(--color-hero-panel);   /* いまいるセクションの帯の色 */
  --rail-text: var(--color-hero-text);
}
body[data-section="profile"] {             /* PROFILE にいるあいだは PROFILE のパネルと同じ色 */
  --rail-color: var(--color-profile-panel);
  --rail-text: var(--color-profile-text);
}
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 40;
  width: var(--rail-width);
  display: flex;
  background-color: var(--rail-color); color: var(--rail-text);
  transition: background-color 0.5s ease, color 0.5s ease; /* 帯の色のフェード */
}
.rail__toggle {
  /* 左の帯ぜんたいがボタン（どこを押しても開閉できる） */
  width: 100%; height: 100%;
  display: grid; justify-items: center; align-items: start;
  padding-top: max(29px, calc(13px + env(safe-area-inset-top)));
  transition: opacity 0.4s var(--ease);
}
/* 白い縦線。ホバーすると色が付いて少しだけ右に膨らむ */
.rail::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: inherit; /* 帯と同じ色 */
  border-right: 2px solid color-mix(in srgb, var(--rail-text) 14%, transparent); /* 白い縦線（太さ・濃さ） */
  transform-origin: left; transition: transform 0.3s var(--ease);
}
/* TOP では白い縦線だけを残す。帯の色と三本線は出さない */
.at-top .rail { background-color: transparent; }
.at-top .rail__toggle { opacity: 0; pointer-events: none; }
.at-top .rail { pointer-events: none; } /* 帯の位置をクリックしても TOP の画像切り替えが効くように */
@media (hover: hover) {
  /* メニューが開いているあいだ・TOP にいるあいだは膨らませない（文字と重なるため） */
  body:not(.menu-open):not(.at-top) .rail:hover::before { transform: scaleX(1.14); }
}
.rail__toggle:focus-visible { outline-color: var(--rail-text); outline-offset: -4px; }
.rail__bars { display: grid; gap: 6px; width: 22px; }
.rail__bars span {
  height: 1.5px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-open .rail__bars span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .rail__bars span:nth-child(2) { opacity: 0; }
.menu-open .rail__bars span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0 auto 0 0; z-index: 30;
  width: min(380px, 100vw);
  padding: 0 32px 0 calc(var(--rail-width) + 32px);
  display: flex; align-items: center;
  background: var(--color-hero-panel); color: var(--color-hero-text);
  transform: translateX(-100%); visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}
.menu-open .menu { transform: none; visibility: visible; }
.menu__list { display: grid; gap: 8px; width: 100%; }
.menu__list a, .hero__nav-list a {
  position: relative;
  display: inline-block;
  font-family: var(--font-display); font-weight: 300;
  letter-spacing: 0.08em; text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s;
}
.menu__list a { font-size: 1.375rem; padding: 10px 0; }
.menu__list a:hover, .hero__nav-list a:hover,
.menu__list a[aria-current], .hero__nav-list a[aria-current] { opacity: 1; }
.menu__list a:focus-visible, .hero__nav-list a:focus-visible { outline-color: var(--color-hero-text); opacity: 1; }
/* 現在のページ：短い線 */
.menu__list a[aria-current]::before, .hero__nav-list a[aria-current]::before {
  content: ""; position: absolute; right: calc(100% + 12px); top: 50%;
  width: 18px; height: 1.5px;
  background: currentColor;
}
.menu-backdrop {
  position: fixed; inset: 0; z-index: 20;
  background: var(--color-overlay);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-open .menu-backdrop { opacity: 0.6; visibility: visible; }

/* ---------- TOP: hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background: var(--hero-panel-bg, var(--color-hero-panel));
}
.hero--switchable { cursor: pointer; }
.hero__visual { position: absolute; inset: 0 0 0 26%; }
.hero__slides:focus-visible { outline-offset: -6px; }

/* 画像：次の画像が上から下へ現れる */
.hero__slides { position: absolute; inset: 0; isolation: isolate; }
.hero__slide { position: absolute; inset: 0; z-index: 0; visibility: hidden; }
.hero__slide.is-active { z-index: 1; visibility: visible; }
.hero__slide.is-entering { z-index: 2; visibility: visible; animation: wipe-down var(--wipe) var(--ease) both; }
@keyframes wipe-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
/* 画像が未設定のあいだは、その画像のメインカラーをうっすら敷いて切り替わりが分かるようにする */
.hero__slide .placeholder {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--color-text) 5%, transparent) 14px 15px),
    color-mix(in srgb, var(--slide-color) 22%, var(--color-background));
}

/* 右端のひし形：いま何枚目かの目印。現在の 1 つだけ外枠が付く */
.hero__dots {
  position: absolute; z-index: 3;
  right: clamp(12px, 2vw, 32px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 2px;
  filter: drop-shadow(0 1px 3px rgba(14, 12, 36, 0.55)); /* 明るい画像の上でも見えるように */
}
.hero__dot { position: relative; display: grid; place-items: center; width: 28px; height: 28px; }
.hero__dot::before, .hero__dot::after { content: ""; transform: rotate(45deg); transition: opacity 0.3s, transform 0.3s var(--ease); }
.hero__dot::before { width: 8px; height: 8px; background: #fff; opacity: 0.7; }
.hero__dot::after {
  position: absolute; width: 17px; height: 17px;
  border: 1.5px solid #fff; opacity: 0;
  transform: rotate(45deg) scale(0.4);
}
.hero__dot:hover::before, .hero__dot[aria-current]::before { opacity: 1; }
.hero__dot[aria-current]::after { opacity: 1; transform: rotate(45deg) scale(1); }
.hero__dot:focus-visible { outline-color: #fff; outline-offset: -2px; }

/* 左パネルの色：次の色が下から上へ現れる */
.hero__panel-fill { position: absolute; inset: 0; z-index: 0; pointer-events: none; clip-path: inset(100% 0 0 0); }
.hero__panel-fill.is-wiping { animation: wipe-up var(--wipe) var(--ease) both; }
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.hero__head, .hero__nav { position: relative; z-index: 1; }
.hero__visual .placeholder { padding-left: 14%; outline-offset: -16px; }
.hero__panel {
  position: absolute; inset: 0 auto 0 0;
  width: var(--hero-panel-width);
  clip-path: polygon(0 0, 100% 0, var(--hero-slant) 100%, 0 100%);
}
.hero__panel {
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: clamp(40px, 7vh, 72px); /* キャッチコピーとナビの間隔 */
  /* 左の余白は、白い縦線（帯の幅）より内側に文字が来ないようにする */
  padding: clamp(40px, 7vh, 88px) 30% clamp(40px, 8vh, 96px) clamp(88px, 6vw, 96px);
  padding-right: calc(var(--hero-panel-width) * 0.3);
  background: var(--hero-panel-bg, var(--color-hero-panel));
  color: var(--hero-panel-text, var(--color-hero-text));
  transition: color var(--wipe) ease;
}
.hero__title {
  font-family: var(--font-title); font-weight: 400; /* Archivo Black は太さが 1 種類（400）だけ */
  font-size: clamp(3.75rem, 9vw, 12rem); /* 「HOLO」の大きさ（最小, 画面幅に対する割合, 最大） */
  line-height: 1; letter-spacing: 0.02em;
  margin-left: -0.04em;
}
.hero__tagline {
  margin-top: 1.6em;
  max-width: 22em;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.hero__nav-list { display: grid; gap: clamp(0px, 0.4vh, 6px); padding-left: 30px; } /* gap = 項目どうしの間隔 */
.hero__nav-list a { font-size: clamp(1.25rem, 2.1vw, 1.875rem); line-height: 1.3; padding: 4px 0; }

/* ---------- sections（1 セクション = 1 画面の高さ） ---------- */
.section--page {
  min-height: 100vh; min-height: 100svh;
  border-left: var(--rail-width) solid var(--color-hero-panel); /* 左の帯のぶん。帯と同じ色で塗っておく */
  display: flex; flex-direction: column;
  padding: clamp(40px, 8vh, 88px) 0 clamp(32px, 6vh, 64px);
}
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-inline: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(24px, 5vh, 56px);
}
/* 見出しの右に置く文字リンク（VIEW MORE / BACK） */
.text-link {
  flex: none; margin-bottom: 0.5em;
  font-family: var(--font-display); font-weight: 400;
  font-size: 0.875rem; letter-spacing: 0.14em; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}
.text-link:hover { opacity: 0.6; }
.page-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1; letter-spacing: 0.04em;
}

/* ---------- PROFILE（TOP と同じ斜め分割。左：プロフィール 6 / 右：画像 4） ---------- */
.split {
  --split-panel-width: 64%;      /* 左パネル下端の幅 */
  --split-slant: 87.5%;          /* 左パネル上端の幅（パネルに対する割合）。境目は右下がり */
  /* 1 画面 + 文字のはみ出し分（--shift は main.js が計測して入れる） */
  height: calc(100vh + var(--shift, 0px)); height: calc(100svh + var(--shift, 0px));
  border-left: var(--rail-width) solid var(--color-profile-panel); /* 左の帯のぶん。PROFILE はパネルと同じ色 */
  background: var(--color-profile-panel);
}
/* 画面に固定される枠（この中に画像とパネルが入る） */
.split__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
}
.split__visual { position: absolute; inset: 0 0 0 54%; }
.split__panel {
  position: relative; z-index: 1;
  width: var(--split-panel-width);
  height: 100vh; height: 100svh;
  clip-path: polygon(0 0, var(--split-slant) 0, 100% 100%, 0 100%);
  background: var(--color-profile-panel); color: var(--color-profile-text);
}
/* 文字の部分。パネルのいちばん狭い幅（上端）に合わせる。
   はみ出した分は隠し、ページのスクロールに合わせて中身（split__content）が上へ流れる */
.split__scroll {
  width: var(--split-slant); height: 100%;
  overflow: clip;
  container-type: inline-size;
}
.split__content {
  padding: clamp(48px, 9vh, 96px) clamp(24px, 3vw, 56px) clamp(48px, 8vh, 88px) clamp(32px, 6vw, 88px);
  will-change: transform;
}
.split__panel .page-title { margin-bottom: clamp(32px, 6vh, 56px); }
.split__panel :focus-visible { outline-color: var(--color-profile-text); }

.slideshow, .slideshow__slide { position: absolute; inset: 0; }
/* スライドの重なり順（z-index）を、この中だけに閉じ込める。
   こうしないとスライドが斜めのパネルより手前に出てしまう */
.slideshow { isolation: isolate; }
.split__visual { z-index: 0; }
/* 次の画像（is-active）が、前の画像（is-leaving）の上にフェードインする */
.slideshow__slide { opacity: 0; z-index: 0; transition: opacity 1.4s ease; }
.slideshow__slide.is-active { opacity: 1; z-index: 2; }
.slideshow__slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
/* 表示中の画像は 100% → 90% の大きさへゆっくり縮小する。
   （枠より小さくなって端が見えないよう、「枠ぴったり」を 90% として 約 1.11 倍から始めている）
   フェードで消えていくあいだ（is-leaving）も止めずに続ける */
.slideshow__slide { overflow: hidden; }
.slideshow__slide.is-active > *, .slideshow__slide.is-leaving > * {
  animation: slide-zoom var(--slide-zoom-time, 6.6s) linear both;
}
@keyframes slide-zoom { from { transform: scale(1.111); } to { transform: scale(1); } }
.slideshow .placeholder { padding-left: 10%; outline-offset: -16px; }

.profile__image {
  width: clamp(140px, 15vw, 200px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
}
.profile__image .placeholder { outline: none; }
.profile__name {
  margin-top: 28px;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 700;
  letter-spacing: 0.06em; line-height: 1.5;
}
.profile__bio { margin-top: 16px; max-width: 34em; white-space: pre-line; opacity: 0.88; }
/* PROFILE の項目（config.js の profile.sections）
   細い英字の見出しを上に、その下に本文（自己紹介文と同じ見た目・同じ左端） */
.profile-section { margin-top: clamp(48px, 8vh, 80px); }
.profile-section__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 300;
  font-size: 1.25rem; letter-spacing: 0.04em; line-height: 1.4;
}
.profile-section__text { margin-top: 16px; max-width: 34em; white-space: pre-line; opacity: 0.88; }
.profile-rows { margin-top: 8px; }
/* 1 行：左に名前、右に小さな説明、下に細い線 */
.profile-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--color-profile-text) 38%, transparent);
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, padding 0.3s var(--ease);
}
.profile-row__label { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.03em; line-height: 1.5; }
.profile-row__note { margin-left: auto; font-size: 0.8125rem; line-height: 1.5; text-align: right; opacity: 0.82; }
.profile-row .icon { flex: none; width: 15px; height: 15px; opacity: 0.82; }
.profile-row .icon svg { width: 100%; height: 100%; }
.profile-row__label + .icon { margin-left: auto; }
a.profile-row:hover {
  padding-left: 14px;
  border-color: var(--color-profile-text);
  background: color-mix(in srgb, var(--color-profile-text) 7%, transparent);
}
.profile-row.is-unset { opacity: 0.55; }
.icon { display: grid; place-items: center; width: 24px; height: 24px; }
.icon--image { object-fit: contain; }

/* ---------- GALLERY（縦スクロールで横に流れる 2 段の帯） ---------- */
.section--gallery {
  /* 1 画面 + 横に流す距離（--shift は main.js が計測して入れる） */
  height: calc(100vh + var(--shift, 0px)); height: calc(100svh + var(--shift, 0px));
  border-left: var(--rail-width) solid var(--color-hero-panel);
}
.gallery-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(32px, 6vh, 64px) 0 clamp(24px, 4vh, 40px);
  overflow: clip;
}
.gallery-sticky .section__head { margin-bottom: clamp(16px, 3vh, 32px); }
.gallery-viewport { flex: 1; min-height: 0; display: flex; align-items: center; overflow: clip; }
.gallery {
  --lane: 33svh;                 /* 1 段の高さ */
  display: flex; flex-direction: column; gap: 3svh;
  width: max-content;
  padding-inline: clamp(24px, 5vw, 72px);
  will-change: transform;
  cursor: grab; touch-action: pan-y;
}
.gallery.is-dragging { cursor: grabbing; user-select: none; }
.gallery__lane { display: flex; gap: clamp(20px, 2.6vw, 44px); height: var(--lane); }
/* 上の段は下ぞろえ、下の段は上ぞろえ。下の段は少し右へずらす */
.gallery__lane:first-child { align-items: flex-end; }
.gallery__lane:last-child { align-items: flex-start; margin-left: clamp(40px, 9vw, 150px); }
.gallery__item { flex: none; --h: calc(var(--lane) * 0.82); }
.gallery__item--l { --h: var(--lane); }
.gallery__item--s { --h: calc(var(--lane) * 0.64); }
.gallery__button {
  display: block; height: var(--h);
  aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden; cursor: zoom-in;
}
.gallery.is-dragging .gallery__button { cursor: grabbing; }
.gallery__button--natural { aspect-ratio: auto; }
.gallery__button--natural .picture { width: auto; height: 100%; }
.gallery__button > * { transition: transform 0.6s var(--ease); }
@media (hover: hover) {
  .gallery__button:hover > * { transform: scale(1.02); }
}
.gallery__title { margin-top: 8px; font-size: 0.8125rem; line-height: 1.4; color: var(--color-muted); }

/* ---------- gallery.html（全画像を縦に並べる） ---------- */
.gallery-grid {
  columns: 3; column-gap: clamp(24px, 3vw, 48px);
  padding-inline: clamp(24px, 5vw, 72px);
}
.gallery-grid__item { break-inside: avoid; margin-bottom: clamp(24px, 3vw, 48px); }
.gallery-grid .gallery__button { width: 100%; height: auto; }
.gallery-grid .gallery__button--natural .picture { width: 100%; height: auto; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--color-overlay);
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: page-in 0.3s var(--ease) both; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage { max-width: 92vw; max-height: 86dvh; display: grid; place-items: center; pointer-events: none; }
.lightbox__stage > * { pointer-events: auto; }
.lightbox__image { max-width: 92vw; max-height: 86vh; max-height: 86dvh; width: auto; height: auto; object-fit: contain; }
.lightbox__placeholder {
  aspect-ratio: var(--ratio);
  width: min(92vw, calc(86vh * (var(--ratio)))); width: min(92vw, calc(86dvh * (var(--ratio))));
  height: auto;
  background-color: var(--color-background);
}
.lightbox__close {
  position: absolute; z-index: 1;
  top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  width: 48px; height: 48px; border-radius: 50%;
  color: #fff; font-size: 2rem; line-height: 1;
  display: grid; place-items: center;
  opacity: 0.85; transition: opacity 0.2s, background-color 0.2s;
}
.lightbox__close:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }
.lightbox__close:focus-visible { outline-color: #fff; }

/* ---------- LINK ----------
   リンクの行のまとまりを上下中央に置き、丸いプロフィール画像はその上に添える。
   （3 段のグリッド：上の余白 / リンク / 下の余白。画像は上の余白の下端に置く） */
/* 見出しは左上に浮かせ、リンクのまとまりは画面の高さ全体に対して中央に置く */
.section--link { position: relative; padding-block: clamp(24px, 4vh, 48px); }
.section--link .section__head { position: absolute; top: clamp(40px, 8vh, 88px); left: 0; margin: 0; }
.link-body {
  flex: 1;
  display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center;
  width: min(760px, 100% - clamp(48px, 10vw, 144px));
  margin: 0 auto;
}
.link-body__image { width: clamp(96px, 16vh, 160px); align-self: end; margin-bottom: clamp(20px, 4vh, 40px); }
.link-list { display: grid; gap: 14px; width: 100%; }
.link-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 24px 18px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
a.link-row:hover { border-color: var(--color-accent); color: var(--color-accent); }
.link-row__icon {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-hero-panel); color: var(--color-hero-text);
}
/* 自分で用意したアイコン画像（iconImage）は、丸いっぱいに表示して丸く切り抜く */
.link-row__icon:has(.icon--image) { overflow: hidden; background: none; border: 0; }
.link-row__icon .icon--image { width: 100%; height: 100%; object-fit: cover; }
.link-row__text { flex: 1; min-width: 0; display: grid; }
.link-row__name { font-size: 1.125rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1.5; }
.link-row__desc { font-size: 0.875rem; color: var(--color-muted); line-height: 1.6; }
.link-row__state { flex: none; font-size: 0.8125rem; color: var(--color-muted); letter-spacing: 0.08em; }
.link-row.is-unset { background: transparent; border-style: dashed; }
.link-row.is-unset .link-row__icon { background: transparent; color: var(--color-muted); border: 1px dashed var(--color-line); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---- tablet ---- */
@media (max-width: 1024px) {
  :root { --hero-panel-width: 50%; --hero-slant: 76%; }
  .hero__visual { left: 34%; }
  .gallery-grid { columns: 2; }
}

/* ---- mobile ---- */
@media (max-width: 720px) {
  /* ナビ：左端の帯 → 左上の丸いボタン */
  .rail {
    inset: max(12px, env(safe-area-inset-top)) auto auto max(12px, env(safe-area-inset-left));
    width: auto; background: none;
  }
  .rail::before { display: none; }
  .rail__toggle { width: 52px; height: 52px; padding: 0; place-items: center; border-radius: 50%; background: var(--rail-color); box-shadow: 0 2px 12px rgba(14, 12, 36, 0.25); transition: opacity 0.4s var(--ease), background-color 0.4s var(--ease); }
  .menu {
    width: min(320px, 86vw);
    padding: calc(88px + env(safe-area-inset-top)) 32px 32px calc(44px + env(safe-area-inset-left));
    align-items: flex-start;
    overflow-y: auto;
  }
  .menu__list a { font-size: 1.25rem; padding: 12px 0; }

  .section--page { border-left: 0; padding: calc(96px + env(safe-area-inset-top)) 0 48px; }
  .section__head { padding-inline: 28px; }

  /* TOP：縦に積む。斜めの境界はパネル下端に残す */
  .hero { display: flex; flex-direction: column; background: var(--color-background); }
  .hero__panel {
    position: relative; inset: auto; width: 100%; order: 1; z-index: 3;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
    gap: 40px;
    padding: calc(56px + env(safe-area-inset-top)) 28px 92px;
  }
  .hero__visual {
    position: relative; inset: auto; order: 2; flex: 1;
    min-height: 28svh; margin-top: -44px;
  }
  .hero__visual .placeholder { padding-left: 0; min-height: inherit; }
  .hero__visual .picture { position: absolute; inset: 0; }
  .hero__title { font-size: clamp(4rem, 22vw, 6.5rem); }
  .hero__nav-list a { font-size: 1.375rem; padding: 5px 0; }

  /* PROFILE：縦に積む（上：プロフィール / 下：画像）。固定はせず、普通に縦へ読む */
  .split { height: auto; border-left: 0; background: var(--color-background); }
  .split__sticky {
    position: static; height: auto; min-height: 100svh; overflow: visible;
    display: flex; flex-direction: column;
  }
  .split__panel {
    width: 100%; height: auto; order: 1;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
  }
  .split__scroll { width: 100%; height: auto; overflow: visible; }
  .split__content { padding: calc(96px + env(safe-area-inset-top)) 28px 100px; }
  .split__visual { position: relative; inset: auto; order: 2; flex: 1; min-height: 28svh; margin-top: -44px; }
  .slideshow .placeholder { padding-left: 0; }

  .section--gallery { border-left: 0; }
  .gallery-sticky { padding: calc(96px + env(safe-area-inset-top)) 0 32px; }
  .gallery { --lane: 24svh; padding-inline: 28px; }
  .gallery__lane { gap: 16px; }
  .gallery__lane:last-child { margin-left: 48px; }

  .gallery-grid { columns: 1; padding-inline: 28px; }
  .section--link { padding-block: 48px; }
  .section--link .section__head { top: calc(96px + env(safe-area-inset-top)); }
  .link-body { width: calc(100% - 56px); }
  .link-row { gap: 14px; padding: 14px 16px 14px 14px; }
  .link-row__icon { width: 44px; height: 44px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .slideshow__slide > * { animation: none !important; }
}
