@charset "UTF-8";
/* ==========================================================================
   common.css — 全ページ共通
   並び：変数 → ベース → 共通パーツ → ヘッダー → メニュー → CONTACT → フッター → 設計図モード
   各ブロックの中で「ベース → 768px以下 → 480px以下」
   ========================================================================== */

:root {
  --c-bg: #0D0D0F;
  --c-bg-2: #16161A;
  --c-panel: #1B1B1F;
  --c-line: #2E2E34;
  --c-line-2: #3A3A40;
  --c-text: #F2F2F2;
  --c-sub: #D8D8DC;
  --c-gray: #B5B5BA;
  --c-mute: #8A8A92;
  --c-dim: #5A5A62;
  --c-accent: #FFE000;
  --c-on-accent: #0D0D0F;

  --font-en: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;

  --m: clamp(20px, 4.4vw, 64px);          /* 左右の余白 */
  --sec: clamp(72px, 9vw, 140px);         /* セクションの上下余白 */
  --header-h: 92px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.8, 0, .2, 1);
  --ease-snap: cubic-bezier(.7, 0, .3, 1);
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
small { font-size: inherit; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

main:focus { outline: none; }

/* ---------- 共通パーツ：文字分割（JSで生成） ---------- */
.char { display: inline-block; overflow: hidden; vertical-align: top; }
.word { display: inline-block; white-space: nowrap; vertical-align: top; }
.char > span { display: inline-block; }

/* ---------- 共通パーツ：ラベル「01 ── PHILOSOPHY」 ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .24em;
  color: var(--c-accent);
}
.label__line { width: 28px; height: 1px; background: currentColor; flex: none; }
.js .label__line { transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.js .label__text { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease-io) .3s; }
.label.is-inview .label__line { transform: none; }
.label.is-inview .label__text { clip-path: inset(0 -1px 0 0); }

/* ---------- 共通パーツ：英字の大見出し（1文字ずつ押し上げ） ---------- */
.sec-title {
  margin-top: 14px;
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.04em;
}
.js .sec-title .char > span { transform: translateY(105%); transition: transform .8s var(--ease-out) calc(var(--i) * 28ms); }
.sec-title.is-inview .char > span { transform: none; }

/* ---------- 共通パーツ：セクションの枠と見出し行（全ページ） ---------- */
.sec { padding: var(--sec) var(--m); border-top: 1px solid var(--c-line); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head__note { font-size: 14px; letter-spacing: .06em; color: var(--c-gray); }
.sec-head__link { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.sec-title--mb { margin-bottom: clamp(32px, 4vw, 56px); }

/* ---------- 共通パーツ：パンくず（子ページ） ---------- */
.crumb { margin-bottom: clamp(24px, 3vw, 40px); font-size: 12px; letter-spacing: .16em; color: var(--c-mute); }
.crumb ol { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.crumb li + li::before { content: "/"; margin-right: 14px; color: var(--c-dim); }
.crumb [aria-current] { color: var(--c-text); }
.crumb a { text-decoration: none; }
/* 長いページ名（記事タイトル）は1行で省略 */
.crumb li[aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb ol { min-width: 0; }

/* ---------- 共通パーツ：画像のない記事のマーク（ロゴを白黒で。隠しかけらと見分けがつくよう黄色は使わない） ---------- */
.noimg-mark { color: var(--c-dim); --c-accent: currentColor; }

/* ---------- 共通パーツ：隠し要素「黄色いかけら」の置き場所（5つ集めの実装時に動かす） ---------- */
.piece-spot {
  position: absolute;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .9;
}
.piece-spot svg { width: 10px; height: 14px; transform: rotate(18deg); }
/* 専用カーソル：黄色いかけら＋キラッ（マウス操作のときだけ。読み込めなければ通常の指の形） */
@media (hover: hover) and (pointer: fine) {
  .piece-spot, .js-piece-cursor { cursor: url("../img/common/cursor-piece.svg") 12 14, url("../img/common/cursor-piece.png") 12 14, pointer; }
}

/* ---------- 共通パーツ：日本語見出し（行ごとにせり上がる） ---------- */
.js-lines .line { display: block; }
.js .js-lines .line { overflow: hidden; }
.js .js-lines .line > span { display: block; transform: translateY(105%); transition: transform .9s var(--ease-out) calc(var(--i, 0) * 120ms); }
.js-lines.is-inview .line > span { transform: none; }

/* ---------- 共通パーツ：リンクの下線 ---------- */
/* 下線あり → hoverで右へ抜けて左から引き直す */
.u-link { position: relative; text-decoration: none; padding-bottom: 3px; }
.u-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--c-accent);
}
@media (hover: hover) {
  .u-link:hover::after { animation: u-line .7s var(--ease-io); }
}
@keyframes u-line {
  0%    { transform: scaleX(1); transform-origin: right; }
  50%   { transform: scaleX(0); transform-origin: right; }
  50.1% { transform: scaleX(0); transform-origin: left; }
  100%  { transform: scaleX(1); transform-origin: left; }
}
/* 下線なし → hoverで左から引かれ、離すと右へ抜ける */
.u-hover { position: relative; text-decoration: none; }
.u-hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-io);
}
@media (hover: hover) {
  .u-hover:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- 共通パーツ：ボタン ---------- */
.btn-line {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 0 28px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .5s var(--ease-out), color .4s;
}
.btn-line::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--ease-io);
}
.btn-line__arrow { transition: transform .4s var(--ease-out); }
@media (hover: hover) {
  .btn-line:hover::before { transform: scaleX(1); transform-origin: left; }
  .btn-line:hover .btn-line__arrow { transform: translateX(6px); }
}
.btn-line--sm { min-height: 56px; padding: 0 22px; font-size: 15px; }

.btn-outline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 0 28px;
  border: 1px solid var(--c-line-2);
  font-weight: 700;
  text-decoration: none;
  transition: border-color .3s, color .3s, background-color .3s;
}
@media (hover: hover) {
  .btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); }
}
.btn-outline--sm { min-height: 52px; padding: 0 22px; font-size: 15px; }
.btn-outline--accent { display: inline-flex; min-height: 56px; border-color: var(--c-accent); letter-spacing: .06em; }
.btn-outline--accent span { color: var(--c-accent); transition: transform .4s var(--ease-out); }
@media (hover: hover) {
  .btn-outline--accent:hover { background: var(--c-accent); color: var(--c-on-accent); }
  .btn-outline--accent:hover span { color: inherit; transform: translateX(6px); }
}

.circle-btn {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-line-2);
  border-radius: 50%;
  text-decoration: none;
  transition: border-color .3s, color .3s, transform .4s var(--ease-out);
}
.circle-btn svg { width: 18px; height: 18px; }
.circle-btn--accent { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); font-weight: 700; }
@media (hover: hover) {
  .circle-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
  .circle-btn--accent:hover { color: var(--c-on-accent); transform: translateY(-4px); }
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--m);
  transition: transform .5s var(--ease-out), background-color .4s, opacity .6s ease;
}
.site-header.is-scrolled { background: rgba(13, 13, 15, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__logo { display: block; width: 48px; height: 48px; color: var(--c-text); }
.site-header__logo svg { width: 100%; height: 100%; transition: transform .8s var(--ease-out); }
@media (hover: hover) {
  .site-header__logo:hover svg { transform: rotate(360deg); }
}

.site-header__actions { display: flex; align-items: center; gap: 24px; }
.header-cta { font-size: 13px; font-weight: 700; letter-spacing: .06em; transition: opacity .3s; }

.menu-btn { display: flex; align-items: center; gap: 14px; padding: 0; background: none; border: 0; cursor: pointer; }
.menu-btn__word { width: 52px; font-size: 12px; letter-spacing: .24em; text-align: right; }
.menu-btn__icon { position: relative; width: 56px; height: 56px; }
.menu-btn__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-45deg); transition: transform 1.1s var(--ease-out); }
.menu-btn__ring circle { fill: none; }
.menu-btn__ring .ring-base { stroke: var(--c-line-2); stroke-width: 1; }
.menu-btn__ring .ring-arc { stroke: var(--c-accent); stroke-width: 2.5; stroke-dasharray: 26 144; }
.menu-btn__bar {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  margin-left: -9px;
  background: var(--c-text);
  transition: transform .5s var(--ease-out);
}
.menu-btn__bar:nth-of-type(1) { transform: translateY(-3px); }
.menu-btn__bar:nth-of-type(2) { transform: translateY(3px); }
@media (hover: hover) {
  .menu-btn:hover .menu-btn__ring { transform: rotate(135deg); }
}
.is-menu-open .site-header { transform: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-menu-open .header-cta { opacity: 0; pointer-events: none; }
.is-menu-open .menu-btn__ring { transform: rotate(225deg); }
.is-menu-open .menu-btn__bar:nth-of-type(1) { transform: rotate(45deg); }
.is-menu-open .menu-btn__bar:nth-of-type(2) { transform: rotate(-45deg); }

@media (max-width: 768px) {
  .site-header__logo { width: 40px; height: 40px; }
  .menu-btn__word { display: none; }
  .menu-btn__icon { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
}

/* ==========================================================================
   メニュー（ボタン位置から円形に展開）
   ========================================================================== */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #111114;
  clip-path: circle(0px at var(--menu-x, calc(100% - 92px)) var(--menu-y, 46px));
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.is-menu-open .site-menu {
  clip-path: circle(150vmax at var(--menu-x, calc(100% - 92px)) var(--menu-y, 46px));
  visibility: visible;
  transition: clip-path .9s var(--ease-io), visibility 0s;
}
.site-menu__deco {
  position: fixed;
  right: -6%; bottom: -10%;
  width: min(55vw, 80vh);
  height: min(55vw, 80vh);
  color: var(--c-text);
  opacity: .06;
  transform: rotate(-90deg);
  transition: transform 1.6s var(--ease-out);
  pointer-events: none;
}
.is-menu-open .site-menu__deco { transform: none; }

.site-menu__inner {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: 150px var(--m) 90px;
}
.site-menu__nav ul { display: flex; flex-direction: column; gap: 10px; }
.site-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .4s, transform .8s var(--ease-out);
}
.is-menu-open .site-menu__nav a {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease calc(300ms + var(--i) * 90ms), transform .8s var(--ease-out) calc(300ms + var(--i) * 90ms);
}
.site-menu__no { flex: none; font-size: 12px; letter-spacing: .2em; color: var(--c-accent); }
/* 英語と日本語のまとまり。日本語が改行されても英語の左端に揃う */
.site-menu__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.site-menu__en {
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  transition: color .3s, letter-spacing .5s var(--ease-out);
}
.site-menu__ja { font-size: 13px; letter-spacing: .1em; color: var(--c-gray); }
.site-menu__nav a[aria-current] .site-menu__en { color: var(--c-accent); }
@media (hover: hover) {
  .site-menu__nav a:hover .site-menu__en { color: var(--c-accent); letter-spacing: -.01em; }
}

.site-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, 320px);
  opacity: 0;
  transition: opacity .4s;
}
.is-menu-open .site-menu__contact { opacity: 1; transition: opacity .5s ease .6s; }
.site-menu__cap { font-size: 11px; letter-spacing: .24em; color: var(--c-mute); }
.site-menu__info { font-size: 13px; line-height: 1.9; color: var(--c-gray); }
.site-menu__info a { text-decoration: none; }
.site-menu__policy { align-self: flex-start; font-size: 12px; color: var(--c-mute); }

@media (max-width: 768px) {
  .site-menu__inner { padding: 110px var(--m) 60px; }
  .site-menu__nav ul { gap: 22px; }
  .site-menu__en { font-size: 15vw; }
  .site-menu__deco { width: min(110vw, 70vh); height: min(110vw, 70vh); }
}
@media (max-width: 480px) {
  .site-menu__ja { width: 100%; }
}

/* ==========================================================================
   CONTACT（全ページ共通）
   ========================================================================== */
.contact { padding: var(--sec) var(--m); border-top: 1px solid var(--c-line); overflow-x: clip; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-top: 20px;
}
.contact__title {
  font-size: clamp(64px, 9.5vw, 150px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.04em;
  transform-origin: left bottom;
}
.contact__title em { font-style: normal; color: var(--c-accent); }
.js .contact__title { opacity: 0; transform: scale(1.35) translateY(40px); transition: transform 1.4s var(--ease-out), opacity .9s ease; }
.contact__title.is-inview { opacity: 1; transform: none; }
.contact__lead { margin-top: 24px; font-size: 16px; line-height: 2; color: var(--c-sub); }

.contact__list { display: flex; flex-direction: column; gap: 12px; }
.mail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 12px 8px 28px;
  border: 1px solid var(--c-line-2);
  font-size: 15px;
}
/* 入りきらないときは、まず「MAIL」とアドレスの間で改行。アドレスだけでも入りきらないときは、アドレスの途中で改行（コピーボタンと重ならない） */
.mail-row p { min-width: 0; }
.mail-row .js-mail { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.mail-row a { text-decoration: none; }
.mail-row__label { margin-right: 14px; font-size: 12px; letter-spacing: .16em; color: var(--c-mute); }
.copy-btn {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  background: var(--c-panel);
  border: 1px solid var(--c-line-2);
  font-size: 12px;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.copy-btn.is-copied { background: var(--c-accent); color: var(--c-on-accent); }
.contact__tel { margin-top: 8px; font-size: 13px; line-height: 1.9; color: var(--c-mute); }
.contact__tel a { color: var(--c-sub); }

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .btn-line { min-height: 64px; padding: 0 20px; font-size: 16px; }
  .btn-outline { padding: 0 20px; }
  .mail-row { padding-left: 20px; font-size: 14px; }
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 72px);
  padding: clamp(40px, 5vw, 72px) var(--m) 28px;
  border-top: 1px solid var(--c-accent);
  overflow: hidden;
}
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; letter-spacing: .1em; }
.site-footer__policy { color: var(--c-mute); }
.site-footer__nav a[aria-current] { color: var(--c-accent); }
.site-footer__sns { display: flex; gap: 12px; }

.footer-word {
  position: relative;
  font-size: 16.4vw;
  font-weight: 700;
  line-height: .8;
  letter-spacing: -.05em;
  white-space: nowrap;
}
.footer-word span { display: block; }
.footer-word__outline { color: transparent; -webkit-text-stroke: 1px var(--c-line-2); }
.footer-word__fill {
  position: absolute;
  inset: 0;
  color: var(--c-accent);
  clip-path: inset(0 calc((1 - var(--fill, 1)) * 100%) 0 0);
}
.js .footer-word__fill { clip-path: inset(0 calc((1 - var(--fill, 0)) * 100%) 0 0); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-mute);
}
.site-footer__anniv { color: var(--c-accent); }

/* ==========================================================================
   設計図モード（隠し機能）
   ========================================================================== */
.is-blueprint body * { outline: 1px dashed rgba(255, 224, 0, .3); outline-offset: -1px; }
.is-blueprint body::before {
  content: "";
  position: fixed;
  inset: 0 var(--m);
  z-index: 90;
  pointer-events: none;
  background-image: repeating-linear-gradient(to right, rgba(255, 224, 0, .14) 0 1px, transparent 1px calc(100% / 12));
  border-right: 1px solid rgba(255, 224, 0, .14);
}
.is-blueprint .char, .is-blueprint .char > span, .is-blueprint .num__col, .is-blueprint .num__col span { outline: none; }
.is-blueprint [data-bp] { position: relative; }
.is-blueprint .site-header, .is-blueprint .site-menu { position: fixed; }
.is-blueprint [data-bp]::before {
  content: attr(data-bp);
  position: absolute;
  left: 4px; top: 4px;
  z-index: 5;
  padding: 2px 6px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font: 700 10px/1.4 var(--font-en);
  letter-spacing: .12em;
  pointer-events: none;
}
.is-blueprint .reel__screen, .is-blueprint .tpl__screen, .is-blueprint img { filter: grayscale(1) opacity(.3) !important; }

.blueprint-bar {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 14px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font: 700 11px/1 var(--font-en);
  letter-spacing: .16em;
}
.blueprint-bar[hidden] { display: none; }
.blueprint-bar button {
  min-height: 36px;
  padding: 0 12px;
  background: var(--c-on-accent);
  color: var(--c-accent);
  border: 0;
  font-size: 12px;
  letter-spacing: .04em;
  cursor: pointer;
}
.secret-toast {
  position: fixed;
  left: 50%; top: 50%;
  z-index: 96;
  padding: 18px 28px;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font: 700 clamp(20px, 3vw, 32px)/1 var(--font-en);
  letter-spacing: .08em;
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), opacity .3s;
}
.secret-toast.is-show { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* ==========================================================================
   動きを減らす設定：すべての動きを止め、最終状態で表示
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
