/* ==========================================================================
   CREATIVE GOLD — style.css
   色はすべて :root の変数で管理。スプラッシュの粒子色も JS がここから読みます。
   ========================================================================== */

:root {
  --white:       #FFFFFF;
  --orange:      #FF8142;  /* メインカラー */
  --orange-deep: #E96A2C;
  --orange-light:#FFB48B;
  --gold:        #F2C46D;  /* 粒子のきらめき */
  --peach:       #FFF4EC;
  --peach-deep:  #FFD5BF;
  --ink:         #2A2A2E;  /* 文字色 */
  --night:       #121215;  /* スプラッシュの「何もない空間」 */
  --muted:       #8B8580;
  --light:       #F4F2EF;  /* 明るい「息継ぎ」セクションの地色（ABOUT など） */

  /* 黒ベース：ページ全体の地色と文字色 */
  --bg:          var(--night);
  --surface:     #1C1C21;  /* 少し明るい面（画像の下地・入力欄など） */
  --fg:          #ECEAE7;  /* 文字色（真っ白より目にやさしく） */
  --fg-sub:      #A9A5A0;  /* 補足の文字 */
  --line:        rgb(255 255 255 / .12);

  --font-jp: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Outfit", "Noto Sans JP", sans-serif;
  --wrap: min(1120px, calc(100% - 48px));
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; } /* 演出が終わってスクロールバーが出ても、中身が横にずれない */
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.en { font-family: var(--font-en); letter-spacing: .08em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.nb { display: inline-block; } /* 文節の途中で改行させない */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* スプラッシュ中はスクロールさせない */
body.is-splash { overflow: hidden; }

/* ---------- スプラッシュ ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  color: var(--white);
}
/* 演出中の暗幕（ヘッダーなどを隠す）。演出の終わりにフェードで消える */
.splash__bg { position: absolute; inset: 0; background: var(--night); transition: opacity 1s; }
.splash.is-out .splash__bg { opacity: 0; }
.splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.splash__copy {
  position: absolute; left: 0; right: 0; margin: 0;
  text-align: center;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: .2em;
  pointer-events: none;
}
.splash__copy span { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.splash__copy span.is-on { opacity: 1; transform: none; }
.splash__copy { color: var(--fg); } /* FV の見出しとまったく同じ色に */
.splash__copy .seen { color: var(--orange); }
.splash__hint {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 11px; letter-spacing: .3em;
  color: color-mix(in srgb, var(--white) 45%, transparent);
  transition: opacity .6s;
}
.splash__skip {
  position: absolute; right: 24px; top: 20px;
  background: none; border: 1px solid color-mix(in srgb, var(--white) 30%, transparent);
  color: var(--white); border-radius: 99px; padding: 6px 16px;
  font: 500 11px/1 var(--font-en); letter-spacing: .25em; cursor: pointer;
  transition: background .3s, opacity .6s;
}
.splash__skip:hover { background: color-mix(in srgb, var(--white) 12%, transparent); }
.splash.is-out .splash__skip, .splash.is-out .splash__hint { opacity: 0; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: background .4s, transform .5s var(--ease);
}
.header.is-scrolled { background: rgb(18 18 21 / .78); backdrop-filter: blur(10px); }
.header__logo { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font-en); letter-spacing: .14em; }
.header__logo img, .header__logo svg { width: 56px; flex: none; }
.header__logo span { white-space: nowrap; }
.header__nav { display: flex; gap: 28px; align-items: center; }
.header__nav a { font: 500 13px/1 var(--font-en); letter-spacing: .16em; position: relative; }
.header__nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.header__nav a:hover::after, .header__nav a[aria-current]::after { transform: scaleX(1); }


.menu-btn { display: none; }

@media (max-width: 860px) {
  .header { padding: 14px 16px; }
  .header__nav { position: fixed; inset: 0; background: var(--orange); color: var(--white); flex-direction: column; justify-content: center; gap: 32px; opacity: 0; pointer-events: none; transition: opacity .4s; }
  .header__nav a { font-size: 28px; }
  body.is-menu .header__nav { opacity: 1; pointer-events: auto; }
  .menu-btn { display: block; position: relative; z-index: 2; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
  .menu-btn span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--fg); transition: transform .3s, top .3s; }
  .menu-btn span:nth-child(1) { top: 15px; }
  .menu-btn span:nth-child(2) { top: 23px; }
  body.is-menu .menu-btn span { background: var(--white); }
  body.is-menu .menu-btn span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  body.is-menu .menu-btn span:nth-child(2) { top: 19px; transform: rotate(-45deg); }
}

/* ---------- FV ---------- */
.fv {
  min-height: 100svh;
  display: grid; place-items: center; align-content: center; gap: 40px;
  padding: 120px 24px 80px;
  position: relative;
}
.fv__logo { width: min(64vw, 620px); aspect-ratio: 140.7 / 34.5; }
.fv__logo svg { width: 100%; height: 100%; overflow: visible; }
.fv__logo path, .fv__logo circle { fill: var(--orange); transition: transform .8s var(--ease); transform-box: fill-box; transform-origin: center; }
.fv__logo:hover .s1 { transform: translate(-6%, -8%) rotate(-8deg); }
.fv__logo:hover .s2 { transform: translateY(10%) scale(.92); }
.fv__logo:hover .s3 { transform: translate(4%, -10%) rotate(10deg); }
.fv__logo:hover .s4 { transform: translate(6%, 8%); }
.fv__copy { text-align: center; }
.fv__copy h1 { margin: 0; font-size: clamp(22px, 3.2vw, 40px); letter-spacing: .18em; line-height: 1.6; }
.fv__copy h1 .seen { color: var(--orange); }
.fv__copy p, .fv__scroll { transition: opacity .9s; } /* 演出が終わってクラスが外れても、途中から急に出ない */
.fv__copy p { margin: 8px 0 0; font: 500 12px/1 var(--font-en); letter-spacing: .4em; color: var(--fg-sub); }
.fv__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font: 500 10px/1 var(--font-en); letter-spacing: .3em; color: var(--muted); }
.fv__scroll::after { content: ""; display: block; width: 1px; height: 40px; margin: 10px auto 0; background: var(--orange); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 共通セクション ---------- */
.section { padding: 140px 0; position: relative; }
/* 明るい「息継ぎ」セクション（黒ベースの中で、ここだけ明るい地に） */
.section--light, .section--peach { background: var(--light); color: var(--ink); --line: color-mix(in srgb, var(--ink) 12%, transparent); }
.section--orange { background: var(--orange); color: var(--white); }
.section--night { background: var(--night); color: var(--white); }
.sec-head { margin-bottom: 56px; }
.sec-head__num { font: 600 13px/1 var(--font-en); color: var(--orange); letter-spacing: .2em; }
.section--orange .sec-head__num { color: var(--white); }
.sec-head__en { display: block; font: 700 clamp(48px, 9vw, 120px)/1 var(--font-en); letter-spacing: .02em; margin: 10px 0 18px; }
.sec-head__ja { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; margin: 0; line-height: 1.6; }
.sec-head__lead { color: var(--fg-sub); margin: 14px 0 0; }
.section--light .sec-head__lead, .section--peach .sec-head__lead { color: var(--muted); }
.section--orange .sec-head__lead { color: color-mix(in srgb, var(--white) 85%, transparent); }
.more {
  display: inline-flex; align-items: center; gap: 14px;
  font: 600 13px/1 var(--font-en); letter-spacing: .16em;
  padding: 18px 28px; border: 1.5px solid currentColor; border-radius: 99px;
  transition: background .3s, color .3s;
}
.more::after { content: "→"; transition: transform .3s var(--ease); }
.more:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.section--light .more:hover, .section--peach .more:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.more:hover::after { transform: translateX(4px); }
.section--orange .more:hover { background: var(--white); color: var(--orange); border-color: var(--white); }

/* スクロールで出てくる */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- イントロ（表側／裏側） ---------- */
.intro__lines { font-size: clamp(20px, 2.6vw, 32px); font-weight: 700; line-height: 2.1; }
.intro__lines p { margin: 0 0 1.4em; }
.intro__lines .line { display: block; color: color-mix(in srgb, var(--fg) 16%, transparent); transition: color .6s; }
.intro__lines .line.is-lit { color: var(--fg); }
.intro__lines .line.is-lit .hl { color: var(--orange); }
.intro__lines .last { font-size: 1.3em; }

/* ---------- WORKS ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; margin-bottom: 64px; }
.work-card { display: block; }
.work-card__img { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--surface); position: relative; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.work-card:hover .work-card__img img { transform: scale(1.06); }
.work-card__meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 6px; }
.work-card__meta span { font: 500 11px/1.6 var(--font-en); letter-spacing: .08em; color: var(--orange); }
.section--orange .work-card__meta span { color: var(--white); opacity: .8; }
.work-card__title { font-size: 17px; font-weight: 700; line-height: 1.6; margin: 0; }
@media (max-width: 860px) { .works-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; } .work-card__title { font-size: 14px; } }

/* ---------- WORKS：実績の壁（トップ） ---------- */
.wwall { position: relative; height: 260vh; background: var(--night); color: var(--white); }
.wwall__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; cursor: grab; touch-action: pan-y; }
.wwall__stage.is-dragging { cursor: grabbing; }
.wwall__inner { position: absolute; left: 0; top: 0; will-change: transform; }
.wwall__tile {
  position: absolute; display: block; border-radius: 10px; overflow: hidden; background: #222;
  opacity: 0; transform: scale(.85);
  transition: transform .5s var(--ease), filter .45s, box-shadow .45s, opacity .6s;
}
.wwall.is-in .wwall__tile { opacity: 1; transform: none; }
.wwall__tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.wwall__tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
  font: 700 13px/1.5 var(--font-jp); color: var(--white);
  background: linear-gradient(transparent, rgb(0 0 0 / .65));
  opacity: 0; transition: opacity .3s;
}
.wwall__tile small { display: block; font: 500 10px/1.4 var(--font-en); letter-spacing: .1em; color: var(--orange-light); }
.wwall.has-hover .wwall__tile { filter: brightness(.4) saturate(.6); }
.wwall.has-hover .wwall__tile.is-hover { filter: none; transform: scale(1.08); z-index: 2; box-shadow: 0 20px 50px rgb(0 0 0 / .55); }
.wwall__tile.is-hover span { opacity: 1; }
/* 見出しとボタンの後ろに薄い暗がり（作品と重なっても読めるように） */
.wwall__stage::before, .wwall__stage::after { content: ""; position: absolute; z-index: 3; pointer-events: none; }
.wwall__stage::before { left: 0; top: 0; width: min(70vw, 720px); height: min(60vh, 460px); background: radial-gradient(ellipse at 0 0, rgb(18 18 21 / .85), rgb(18 18 21 / .5) 45%, transparent 72%); }
.wwall__stage::after { right: 0; bottom: 0; width: 420px; height: 200px; background: radial-gradient(ellipse at 100% 100%, rgb(18 18 21 / .8), transparent 70%); }
.wwall__head, .wwall__hint, .wwall__more { z-index: 4; }
.wwall__head { position: absolute; left: 28px; top: 84px; pointer-events: none; text-shadow: 0 2px 20px rgb(0 0 0 / .6); }
.wwall__title { font: 700 clamp(56px, 9vw, 120px)/1 var(--font-en); margin: 8px 0 10px; }
.wwall__head p { margin: 0; font-weight: 700; }
.wwall__hint { position: absolute; left: 28px; bottom: 28px; font-size: 11px; letter-spacing: .3em; color: color-mix(in srgb, var(--white) 55%, transparent); pointer-events: none; }
.wwall__more { position: absolute; right: 28px; bottom: 24px; background: var(--night); }
.wwall__more:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
@media (max-width: 767px) {
  .wwall__tile span { opacity: 1; padding: 20px 8px 6px; font-size: 11px; }
  .wwall__head { left: 16px; top: 72px; }
  .wwall__hint { display: none; }
  .wwall__more { right: 16px; bottom: 16px; padding: 14px 20px; }
}

/* 名刺限定の実績につける印 */
.wwall__badge, .work-card__badge {
  position: absolute; left: 10px; top: 10px; z-index: 1;
  font: 700 10px/1 var(--font-jp); font-style: normal; letter-spacing: .08em;
  color: var(--ink); background: var(--gold); padding: 5px 9px; border-radius: 99px;
}

/* ---------- SERVICE：粒子のかたまり（トップ） ---------- */
.svc { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(320px, 40vw) 1fr; align-items: center; padding: 180px 6vw 120px; overflow: hidden; background: var(--bg); } /* 前後のセクションと同じ黒（段差を出さない） */
.svc__title { position: absolute; left: 0; right: 0; top: 72px; text-align: center; pointer-events: none; z-index: 2; }
.svc__title h2 { margin: 6px 0 0; font: 600 clamp(64px, 9vw, 128px)/.9 var(--font-en); letter-spacing: -.02em; }
.svc__side { position: relative; z-index: 2; grid-row: 1; transition: opacity .5s; }
.svc__side--seen { grid-column: 1; }
.svc__side--hid { grid-column: 3; text-align: right; }
.svc__cap { font: 500 12px/1 var(--font-en); letter-spacing: .3em; color: var(--fg-sub); margin: 0 0 22px; }
.svc__cap b { font: 700 13px/1 var(--font-jp); letter-spacing: .12em; margin: 0 8px; color: var(--fg); }
.svc__list { list-style: none; margin: 0; padding: 0; }
.svc__list li { font-size: clamp(22px, 2.6vw, 40px); font-weight: 900; line-height: 1.5; letter-spacing: .04em; text-shadow: 0 0 20px rgb(8 8 11 / .9); transition: color .4s; }
/* 粒が画面中を漂えるよう、描画エリアはセクション全体 */
.svc__canvas { position: absolute; inset: 0; z-index: 0; }
.svc__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* カーソルを寄せた側を強調、反対側は少し引く */
.svc.is-seen .svc__side--hid, .svc.is-hid .svc__side--seen { opacity: .28; }
.svc.is-seen .svc__side--seen li { color: var(--orange); }
.svc.is-hid .svc__side--hid li { color: var(--white); }
.svc__hint { position: absolute; left: 0; right: 0; bottom: 36px; margin: 0; text-align: center; font-size: 11px; letter-spacing: .3em; color: var(--fg-sub); z-index: 2; }
/* スマホ：モチーフを背景に張り付け、その上を文字がスクロールしていく（スクロールで形が変わる） */
@media (max-width: 860px) {
  .svc { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: clip; } /* hidden だと張り付き（sticky）が効かない。clip なら張り付きつつ、背景の粒子が下のセクションにはみ出さない */
  .svc__canvas { order: -1; position: sticky; inset: auto; top: 0; width: 100%; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; }
  .svc__title { position: relative; top: auto; padding: 110px 0 0; }
  .svc__side { min-height: 110svh; display: flex; flex-direction: column; justify-content: center; padding: 0 20px; opacity: 1 !important; }
  .svc__side--hid { align-items: flex-end; }
  .svc__list li { font-size: 26px; }
  /* 粒子の上でも読めるよう、項目の後ろに暗いすりガラスを敷く */
  .svc__side > * { position: relative; }
  .svc__list, .svc__cap { background: rgb(18 18 21 / .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; }
  .svc__cap { display: inline-block; padding: 8px 14px; margin-bottom: 10px; }
  .svc__list { padding: 14px 20px; }
  .svc__hint { display: none; }
}

/* 下層 ABOUT のサービス一覧（シンプルな2列） */
.svc-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.svc-mini ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-mini li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; }
.section--light .svc-mini .svc__cap, .section--peach .svc-mini .svc__cap { color: var(--muted); }
.section--light .svc-mini .svc__cap b, .section--peach .svc-mini .svc__cap b { color: var(--ink); }
@media (max-width: 767px) { .svc-mini { grid-template-columns: 1fr; } }

/* ---------- WORKS 一覧（/works/）：作品名の一覧＋乗せると写真が浮かぶ ---------- */
.filter button small { opacity: .6; margin-left: 5px; font-family: var(--font-en); }
.works-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.works-list li { border-bottom: 1px solid var(--line); }
.works-list li.is-out { display: none; }
.works-list a { display: grid; grid-template-columns: 80px 1fr auto; align-items: baseline; gap: 24px; padding: 26px 8px; transition: color .3s, padding .4s var(--ease); }
.works-list a:hover { color: var(--orange); padding-left: 20px; }
.works-list__year { font-size: 13px; color: var(--fg-sub); }
.works-list__title { font-size: clamp(22px, 2.8vw, 38px); font-weight: 900; line-height: 1.35; letter-spacing: .02em; transition: color .3s; }
.works-list__cats { font-size: 11px; line-height: 1.6; letter-spacing: .1em; color: var(--fg-sub); text-align: right; }
.works-list__thumb { display: none; }
.works-list__badge { display: inline-block; vertical-align: middle; margin-left: 12px; font: 700 10px/1 var(--font-jp); font-style: normal; letter-spacing: .08em; color: var(--ink); background: var(--gold); padding: 5px 9px; border-radius: 99px; }
/* 乗せている行以外は少し引く */
.works-list:hover li:not(:hover) .works-list__title { color: color-mix(in srgb, var(--fg) 35%, transparent); }
.works-list__empty { color: var(--fg-sub); padding: 40px 8px; margin: 0; }
.works-float { position: fixed; left: 0; top: 0; width: min(380px, 30vw); border-radius: 10px; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-3deg); transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 30px 60px rgb(0 0 0 / .5); }
.works-float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.works-float img { width: 100%; height: auto; display: block; }
@media (max-width: 860px), (hover: none) {
  .works-list a { grid-template-columns: 96px 1fr; grid-template-rows: auto auto; align-content: center; align-items: center; gap: 4px 16px; padding: 18px 0; }
  .works-list__title { align-self: end; }
  .works-list__cats { align-self: start; }
  .works-list a:hover { padding-left: 0; }
  .works-list__thumb { display: block; grid-row: span 2; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
  .works-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .works-list__year { display: none; }
  .works-list__title { font-size: 18px; }
  .works-list__cats { text-align: left; }
  .works-float { display: none; }
}

/* ---------- WORKS 詳細（/works/○○/）：左に文章（張り付く）、右に写真 ---------- */
.work-detail { display: grid; grid-template-columns: minmax(320px, .9fr) 1.6fr; gap: 56px; width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding: 140px 0 100px; align-items: start; }
.work-detail__side { position: sticky; top: 110px; display: grid; gap: 28px; }
.work-detail__back { display: inline-block; margin-bottom: 18px; }
.work-detail__title { font-size: clamp(28px, 3vw, 44px); font-weight: 900; line-height: 1.3; letter-spacing: .02em; margin: 0; }
.work-detail__title .works-list__badge { margin-left: 14px; }
.work-detail__sub { color: var(--fg-sub); margin: 14px 0 0; font-size: 15px; }
.work-detail__text { font-size: 15px; line-height: 2.1; }
.work-detail__text p { margin: 0 0 1.4em; }
.work-detail__text a { color: var(--orange); }
.work-detail__meta { margin: 0; display: grid; gap: 18px; font-size: 14px; }
.work-detail__meta dt { font: 600 11px/1 var(--font-en); letter-spacing: .2em; color: var(--fg-sub); margin-bottom: 6px; }
.work-detail__meta dd { margin: 0; }
.work-detail__media { display: grid; gap: 20px; }
.work-detail__media img { display: block; width: 100%; height: auto; border-radius: 10px; cursor: zoom-in; background: var(--surface); }
.work-detail__embed figure { margin: 0; }
.work-detail__embed .wp-block-embed__wrapper { width: 100%; }
.work-detail__embed iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border-radius: 10px; }
@media (max-width: 860px) {
  .work-detail { grid-template-columns: 1fr; gap: 36px; padding-top: 110px; }
  .work-detail__side { position: static; }
}
/* 写真をクリックで拡大 */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(8 8 11 / .92); display: grid; place-items: center; padding: 4vw; opacity: 0; pointer-events: none; transition: opacity .3s; cursor: zoom-out; }
.lightbox.is-on { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; }

/* ---------- NEWS ---------- */
.news-list { list-style: none; padding: 0; margin: 0 0 56px; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li.is-out { display: none; }
.news-list a { display: grid; grid-template-columns: 120px 100px 1fr; gap: 16px; align-items: center; padding: 26px 8px; transition: padding .4s var(--ease), color .3s; }
.news-list a:hover { padding-left: 20px; color: var(--orange); }
.news-list time { font: 500 13px/1 var(--font-en); color: var(--fg-sub); }
.news-list .cat { font-size: 11px; text-align: center; border: 1px solid currentColor; border-radius: 99px; padding: 3px 0; color: var(--orange); }
@media (max-width: 860px) { .news-list a { grid-template-columns: auto auto; } .news-list .title { grid-column: 1 / -1; } }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.about__text p { margin: 0 0 1.4em; }
.about__quote { font-size: 22px; font-weight: 700; color: var(--orange); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- CONTACT ---------- */
.contact-cta { text-align: center; }
.contact-cta .sec-head__en { font-size: clamp(56px, 12vw, 160px); }
.contact-cta p { margin: 0 0 40px; }

/* ---------- ABOUT：焦げ茶寄りの暖かい黒 ---------- */
.section--warm { background: #1E1714; color: #EFE6DE; }
.section--warm .about__text p { color: #D9CCC0; }
.section--warm .about__quote { color: var(--orange); }
.section--warm .more:hover, .section--glow .more:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* ---------- CONTACT：黒地に、オレンジの光がほんのりにじむ ---------- */
.section--glow { background: radial-gradient(60% 70% at 50% 55%, rgb(255 129 66 / .3) 0%, rgb(233 106 44 / .1) 42%, transparent 72%), #0B0B0D; color: var(--white); }
.section--glow .sec-head__en { color: var(--orange); text-shadow: 0 0 40px rgb(255 129 66 / .28); }
.section--glow .sec-head__num { color: var(--orange-light); }

/* ---------- フッター ---------- */
.footer { padding: 64px 0 40px; background: #0B0B0D; color: var(--fg); border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.footer__logo img { width: 120px; filter: brightness(0) invert(1); opacity: .9; }
.footer nav { display: flex; gap: 24px; font: 500 13px/1 var(--font-en); letter-spacing: .16em; }
.footer__links { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.footer__sns { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.footer__sns a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--fg); transition: background .3s, color .3s, border-color .3s; }
.footer__sns a:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.footer__sns svg { width: 18px; height: 18px; }
.footer small { display: block; margin-top: 40px; font: 400 11px/1 var(--font-en); color: var(--muted); letter-spacing: .1em; }

/* ---------- 下層ページ ---------- */
.page-hero { padding: 180px 0 60px; }
.page-hero .sec-head { margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.filter button { font: 500 12px/1 var(--font-jp); padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: none; cursor: pointer; color: inherit; transition: background .3s, color .3s, border-color .3s; }
.filter button[aria-pressed="true"], .filter button:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }
.work-card.is-hidden { display: none; }

.single-hero { padding: 160px 0 40px; }
.single-hero__img { border-radius: 24px; overflow: hidden; margin-top: 40px; background: var(--surface); }
.single-hero__img img { width: 100%; max-height: 72vh; object-fit: contain; margin-inline: auto; }
.single-body { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 40px 0 120px; }
.single-body dl { margin: 0; font-size: 13px; }
.single-body dt { font: 600 11px/1 var(--font-en); letter-spacing: .2em; color: var(--fg-sub); margin-top: 24px; }
.single-body dd { margin: 8px 0 0; }
.single-body__text { white-space: pre-line; }
.pager { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 40px 0 120px; }
.pager a { font-weight: 700; max-width: 45%; }
.pager a small { display: block; font: 500 11px/1 var(--font-en); color: var(--orange); letter-spacing: .2em; margin-bottom: 8px; }
@media (max-width: 860px) { .single-body { grid-template-columns: 1fr; gap: 24px; } }

.profile { width: 100%; border-collapse: collapse; }
.profile th, .profile td { text-align: left; padding: 22px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.profile th { width: 180px; font-weight: 700; font-size: 14px; }

.form { display: grid; gap: 28px; max-width: 720px; }
.form label { display: grid; gap: 10px; font-weight: 700; font-size: 14px; }
.form label small { color: var(--orange); font-weight: 500; margin-left: 8px; }
.form input, .form select, .form textarea { font: inherit; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 200px; resize: vertical; }
.form button { justify-self: start; font: 700 15px/1 var(--font-jp); letter-spacing: .1em; padding: 20px 56px; border-radius: 99px; border: 0; background: var(--orange); color: var(--white); cursor: pointer; transition: background .3s; }
.form button:hover { background: var(--orange-deep); }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* スマホではキャッチコピーを「見えるとこも、／見えないとこも。」の2行に */
@media (max-width: 767px) {
  .fv__copy h1 .nb, .splash__copy span { display: block; }
}

/* ---------- スプラッシュ → FV の受け渡し ---------- */
/* 粒子のロゴがそのまま FV に残る（SVG のロゴは、粒子が使えない環境の予備） */
body.has-particle-logo .fv__logo { visibility: hidden; }
.fv__logo, .fv__copy { position: relative; z-index: 1; }
.fv__scroll { z-index: 1; }
.splash.is-docked { position: absolute; z-index: 0; pointer-events: none; } /* 位置と大きさは JS が入れる。ページの一番上に置かれ、ページと一緒にスクロールする */
body.is-splash .fv__logo, body.is-splash .fv__copy h1, body.is-splash .fv__copy p, body.is-splash .fv__scroll { opacity: 0; }
body.is-splash-out .fv__logo { opacity: 1; transition: opacity .6s .7s; }
body.is-splash-out .fv__copy h1 { opacity: 1; transition: none; } /* 演出用のコピーの真下に、すぐ出す */
body.is-splash-out .fv__copy p, body.is-splash-out .fv__scroll { opacity: 1; transition: opacity .9s 1s; }

/* ---------- CONTACT：頼まれごとが飛んでくる ---------- */
.requests { position: relative; width: var(--wrap); margin: 0 auto; }
.requests__stage { position: relative; height: clamp(360px, 52vh, 560px); border-radius: 20px; overflow: hidden; background: radial-gradient(70% 80% at 50% 60%, rgb(255 129 66 / .12), transparent 70%), var(--surface); }
.requests__stage.is-shake { animation: reqShake .35s linear 2; }
@keyframes reqShake { 0%,100% { transform: none; } 20% { transform: translate(-6px, 3px) rotate(-.5deg); } 40% { transform: translate(5px, -4px) rotate(.4deg); } 60% { transform: translate(-4px, -2px); } 80% { transform: translate(3px, 2px); } }
.req-bubble {
  position: absolute; left: 0; top: 0; white-space: nowrap; border: 0; cursor: default;
  font: 700 clamp(12px, 1.4vw, 16px)/1.3 var(--font-jp); letter-spacing: .04em;
  padding: .6em 1.05em; border-radius: 1.2em;
  background: var(--white); color: var(--ink);
  box-shadow: 0 6px 18px rgb(0 0 0 / .35);
  transform-origin: 20% 100%;
}
.req-bubble::after { content: ""; position: absolute; left: 1em; bottom: -.42em; width: .85em; height: .85em; background: inherit; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.req-bubble.c1 { background: var(--orange); color: var(--white); }
.req-bubble.c2 { background: var(--peach-deep); color: var(--ink); }
.req-bubble.c3 { background: #34343C; color: var(--white); }
.requests.is-tidy .req-bubble { cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s; }
.requests.is-tidy .req-bubble:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 26px rgb(0 0 0 / .45); }
.req-bubble.is-picked { outline: 2px solid var(--orange); outline-offset: 3px; }
.requests__msg { position: absolute; left: 0; right: 0; bottom: 7%; margin: 0; text-align: center; pointer-events: none; font: 900 clamp(20px, 3vw, 34px)/1.3 var(--font-jp); letter-spacing: .08em; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.requests__msg em { font-style: normal; color: var(--orange); }
.requests__msg small { display: block; margin-top: 10px; font: 500 12px/1.6 var(--font-jp); letter-spacing: .06em; color: var(--fg-sub); }
.requests.is-tidy .requests__msg { opacity: 1; transform: none; }
@media (max-width: 767px) { .requests__stage { height: 520px; } }

/* ==========================================================================
   WordPress 用（記事本文・フォーム・ページ送り）
   ========================================================================== */
.wrap--narrow { width: min(780px, calc(100% - 48px)); margin-inline: auto; }
.post-single__meta { display: flex; gap: 14px; align-items: center; margin: 24px 0 12px; }
.post-single__meta time { font: 500 13px/1 var(--font-en); color: var(--fg-sub); }
.post-single__meta .cat { font-size: 11px; border: 1px solid currentColor; border-radius: 99px; padding: 3px 12px; color: var(--orange); }
.entry { font-size: 16px; line-height: 2; }
.entry > * { margin: 0 0 1.6em; }
.entry h2 { font-size: 24px; margin-top: 2.4em; }
.entry h3 { font-size: 19px; margin-top: 2em; }
.entry a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: 12px; height: auto; }
.entry iframe { max-width: 100%; }
.single-body__content { line-height: 2; }
.single-body__content > * { margin: 0 0 1.4em; }
.single-body__content img { border-radius: 12px; height: auto; }
.single-body__content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 12px; }
.single-body__content a { color: var(--orange); }
.news-empty { color: var(--fg-sub); margin: 0 0 56px; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.nav-links .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 99px; font: 500 13px/1 var(--font-en); }
.nav-links .current { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* Contact Form 7 のフォームを、サイトの見た目に合わせる */
.form .wpcf7-form { display: grid; gap: 28px; }
.form .wpcf7-form p { margin: 0; }
.form .wpcf7-form label { display: grid; gap: 10px; font-weight: 700; font-size: 14px; }
.form .wpcf7-form-control-wrap { display: block; margin-top: 10px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="url"], .form select, .form textarea { width: 100%; }
.form .wpcf7-submit { justify-self: start; font: 700 15px/1 var(--font-jp); letter-spacing: .1em; padding: 20px 56px; border-radius: 99px; border: 0; background: var(--orange); color: var(--white); cursor: pointer; transition: background .3s; }
.form .wpcf7-submit:hover { background: var(--orange-deep); }
.form .wpcf7-not-valid-tip { color: var(--orange-light); font-size: 12px; margin-top: 6px; }
.form .wpcf7-response-output { margin: 0 !important; border-radius: 12px; padding: 14px 18px !important; font-size: 14px; }

/* ==========================================================================
   GOLD AI LAB（/lab/）
   ========================================================================== */
.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 48px 32px; }
.lab-card { display: block; }
.lab-card__img { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--surface); }
.lab-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lab-card:hover .lab-card__img img { transform: scale(1.05); }
.lab-card__title { font-size: 22px; font-weight: 900; line-height: 1.4; margin: 18px 0 6px; transition: color .3s; }
.lab-card:hover .lab-card__title { color: var(--orange); }
.lab-card__sub { margin: 0 0 12px; font-size: 14px; color: var(--fg-sub); }
.lab-status { display: inline-block; font: 700 11px/1 var(--font-jp); letter-spacing: .08em; padding: 6px 11px; border-radius: 99px; background: var(--orange); color: var(--white); }
.lab-card__img .lab-status { position: absolute; left: 12px; top: 12px; }
.lab-status--use { background: var(--fg); color: var(--ink); }
.lab-status--wip { background: var(--gold); color: var(--ink); }
.lab-status--exp { background: #5E8BFF; }
.lab-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lab-tags li { font: 500 11px/1 var(--font-en); letter-spacing: .06em; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--fg-sub); }
.lab-single__head { padding: 150px 0 40px; }
.lab-single__meta { display: flex; gap: 14px; align-items: center; margin: 22px 0 14px; }
.lab-single__meta time { font-size: 13px; color: var(--fg-sub); }
.lab-single__title { font-size: clamp(32px, 4.6vw, 60px); font-weight: 900; line-height: 1.3; margin: 0; }
.lab-single__sub { margin: 14px 0 20px; font-size: 17px; color: var(--fg-sub); }
.lab-single__head .lab-tags { margin-bottom: 28px; }
.lab-demo-btn { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--font-jp); letter-spacing: .08em; padding: 18px 32px; border-radius: 99px; background: var(--orange); color: var(--white); transition: background .3s, transform .3s var(--ease); }
.lab-demo-btn:hover { background: var(--orange-deep); transform: translateY(-2px); }
.lab-single__hero img { width: 100%; height: auto; border-radius: 16px; display: block; }
.lab-single__body { padding-top: 64px; }

/* ---------- GOLD AI LAB の入口（トップ）：きっかけのつぶやきが、作品ごとに1行の帯で流れる ---------- */
.lab-band { padding: 140px 0 120px; overflow: hidden; }
.lab-band__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.lab-band__head .sec-head__en { margin-bottom: 0; }
.lab-band__rows { border-top: 1px solid var(--line); }
.lab-band__band { border-bottom: 1px solid var(--line); padding: 18px 0; white-space: nowrap; transition: opacity .4s; }
.lab-band__track { display: inline-flex; align-items: center; animation: lab-flow var(--dur, 30s) linear infinite; }
.lab-band__track.is-reverse { animation-direction: reverse; }
.lab-band__band:hover .lab-band__track { animation-play-state: paused; }
/* 1行に乗せているあいだ、ほかの行を薄くする */
.lab-band__rows:has(.lab-band__band:hover) .lab-band__band:not(:hover) { opacity: .25; }
.lab-band__track a { font: 700 clamp(22px, 3.4vw, 44px)/1.3 var(--font-jp); padding-right: .6em; transition: color .3s; }
.lab-band__track a:hover, .lab-band__track a:focus-visible { color: var(--orange); }
.lab-band__track small { display: none; }
.lab-band__track b { font: 400 clamp(14px, 2vw, 24px)/1 var(--font-en); color: var(--orange); padding-right: 1em; }
@keyframes lab-flow { to { transform: translateX(-50%); } }
.lab-band__float { position: fixed; left: 0; top: 0; z-index: 70; width: 340px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; pointer-events: none; background: var(--surface); opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-3deg); transition: opacity .3s, transform .4s var(--ease); }
.lab-band__float.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.lab-band__float img { width: 100%; height: 100%; object-fit: cover; }
.lab-band__float p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 30px 16px 12px; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--white); background: linear-gradient(to top, rgb(0 0 0 / .7), transparent); }
/* 乗せられない端末：写真は出さず、つぶやきの下に作品名を小さく */
@media (hover: none) {
  .lab-band__float { display: none; }
  .lab-band__track a { display: inline-flex; flex-direction: column; }
  .lab-band__track small { display: block; font-size: 12px; font-weight: 500; color: var(--fg-sub); margin-top: 4px; padding-left: .6em; }
}
@media (max-width: 860px) {
  .lab-band { padding: 100px 0 90px; }
  .lab-band__head { flex-direction: column; align-items: start; }
  .lab-band__band { padding: 14px 0; }
}
/* 動きを減らす設定の人には、流さずに横スクロールで読めるように */
@media (prefers-reduced-motion: reduce) {
  .lab-band__band { overflow-x: auto; }
  .lab-band__track { animation: none; }
}
