/* ============================================================
   PSD Delivery™ — style.css
   デザインカンプ準拠 / PC基準 + SP(〜767px)対応
   ============================================================ */

:root {
  --bg: #f1f0ee;
  --ink: #111111;
  --gray: #8a8a88;
  --line: #c9c8c4;
  --accent: #d7ff00;           /* 蛍光イエロー(アクティブ表示・ハイライト) */
  --font-sans: "Archivo", "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans JP", monospace;
  --pad: clamp(16px, 2.5vw, 40px);   /* 左右余白 */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* 紙のような微細ノイズ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- ヘッダー ---------- */
.site-header {
  padding: 18px var(--pad) 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-row + .header-row { margin-top: 14px; }

.logo {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo sup { font-size: 0.55em; }

.header-copy { color: var(--ink); font-family: var(--font-mono); font-size: 11px; }

.header-icons { display: flex; gap: 10px; align-items: center; }
.header-icons svg { width: 18px; height: 18px; }

.sns-link {
  font-family: var(--font-mono);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sns-link svg { width: 11px; height: 11px; }

.header-nav-row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.tagline { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; }

.global-nav {
  display: flex;
  gap: clamp(10px, 2vw, 28px);
  font-family: var(--font-mono);
  font-size: 12px;
}
.global-nav a { padding: 1px 3px; }
.global-nav a:hover { background: var(--ink); color: var(--bg); }
.global-nav a[aria-current="page"] { background: var(--accent); }

/* ---------- TOP: ヒーロー ---------- */
.hero {
  position: relative;
  padding: 0 var(--pad);
}

.hero-title {
  font-size: clamp(64px, 12.5vw, 190px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 8px;
}
.hero-title sup { font-size: 0.28em; font-weight: 700; }

.hero-visual {
  margin-top: -6vw;
  position: relative;
  z-index: 1;
}
.hero-visual img { width: 100%; object-fit: cover; }

/* イラストスクロール帯(右→左の無限ループ、ホバーでABOUT US) */
.art-strip {
  display: block;
  position: relative;
  overflow: hidden;
  height: 195px;
  margin-top: 24px;
}
.art-strip-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: strip-scroll 60s linear infinite;
}
.art-strip-track img {
  height: 100%;
  width: auto;
  max-width: none;
}
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.art-strip-overlay {
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.08em;
  transform: translateX(100%);
  transition: transform 0.45s ease;
}
.art-strip:hover .art-strip-overlay,
.art-strip:focus-visible .art-strip-overlay { transform: translateX(0); }

/* ---------- セクション共通(ラベル+本文の2カラム) ---------- */
.section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 72px var(--pad);
  border-top: 1px dashed var(--line);
}
.section:first-of-type { border-top: 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lead-en {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.55;
  font-weight: 500;
  max-width: 50em;
}

.lead-ja {
  margin-top: 36px;
  font-size: 13px;
  line-height: 2.1;
  color: #333;
  max-width: 62em;
}

/* ---------- WORKS ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.work-card figure { overflow: hidden; }
.work-card img {
  width: 100%;
  aspect-ratio: 600 / 850;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-card a:hover img { transform: scale(1.03); }

.work-cat {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 1px 3px;
}
.work-card a:hover .work-cat { background: var(--accent); }

.work-title { font-size: 13px; font-weight: 600; margin-top: 4px; }
.work-credit {
  font-size: 10px;
  color: var(--gray);
  margin-top: 4px;
  line-height: 1.6;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.arrow-link:hover { background: var(--accent); }

/* ---------- SHOP / RECRUIT バナー ---------- */
.banner-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 var(--pad) 88px;
}

.banner {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.banner:hover > img { transform: scale(1.03); }

.banner-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  z-index: 2;
}
.banner--shop { background: #e4e4e0; }
.banner--recruit { background: #1c1c1c; color: #fff; }
.banner--recruit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.banner-copy {
  position: relative;
  z-index: 2;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.banner-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 16px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.banner-btn:hover { background: var(--accent); }

/* ---------- マーキー帯 ---------- */
.marquee {
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 0.6em;
  align-items: center;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  animation: marquee 28s linear infinite;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 0.6em; }
.marquee-track svg { width: 0.85em; height: 0.85em; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .art-strip-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- フッター ---------- */
.site-footer {
  margin: 56px var(--pad) 24px;
  background: #0d0d0d;
  color: #f4f4f2;
  padding: 36px 40px 28px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 40px 64px;
}

.footer-logo { font-weight: 800; font-size: 17px; }
.footer-sns { margin-top: 10px; display: inline-flex; }

.footer-nav { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-nav a:hover,
.footer-corp:hover { color: var(--accent); }

.footer-top-link {
  font-size: 14px;
  display: inline-flex;
  gap: 6px;
  align-self: start;
}
.footer-top-link:hover { color: var(--accent); }

.footer-member { grid-column: 1 / -1; margin-top: 64px; }
.footer-member-label { font-family: var(--font-mono); font-size: 11px; margin-bottom: 10px; }

.member-list { display: flex; flex-wrap: wrap; gap: 6px; }
.member-list a {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid #4a4a4a;
  padding: 2px 8px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.member-list a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.footer-copy {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9a9a98;
  margin-top: 24px;
}

/* ---------- WORKSページ ---------- */
.works-page {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 40px var(--pad) 72px;
  border-top: 1px solid var(--line);
}

.works-filter { display: flex; flex-direction: column; gap: 10px; align-items: start; }
.works-filter button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 1px 3px;
  color: var(--ink);
}
.works-filter button:hover { background: var(--ink); color: var(--bg); }
.works-filter button.is-active { background: var(--accent); color: var(--ink); }
.works-filter button.is-active::before { content: "→ "; }

.pagination {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.pagination a:hover { background: var(--accent); }
.pagination .is-current { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- RECRUITページ ---------- */
.page-title {
  font-size: clamp(64px, 11vw, 170px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 16px var(--pad) 80px;
}

/* フォーム */
.form-block { max-width: 810px; }

.form-field { margin-bottom: 34px; }

.form-label {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-label .ja { font-size: 11px; color: var(--gray); letter-spacing: 0.1em; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  border-radius: 0;
}
.form-field textarea {
  border: 1px solid var(--line);
  padding: 14px;
  min-height: 160px;
  resize: vertical;
}
.form-field select { appearance: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.form-field ::placeholder { color: #b3b3b0; }

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 2px 0 var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.submit-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 16px 34px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}
.submit-btn:hover { background: var(--accent); color: var(--ink); }

.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  line-height: 1.9;
  margin-top: 20px;
  max-width: 68em;
}

/* ---------- SP対応(〜767px) ---------- */
@media (max-width: 767px) {
  .header-nav-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .global-nav { flex-wrap: wrap; }

  .hero-title { flex-direction: column; }
  .hero-visual { margin-top: -4vw; }
  .art-strip { height: 112px; }

  .section { grid-template-columns: 1fr; gap: 14px; padding: 48px var(--pad); }
  .lead-ja { margin-top: 24px; }

  .works-grid { grid-template-columns: 1fr; gap: 32px; }
  .banner-duo { grid-template-columns: 1fr; padding-bottom: 56px; }
  .banner { min-height: 320px; }

  .works-page { grid-template-columns: 1fr; }
  .works-filter { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding: 28px 24px 24px;
    gap: 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-member { margin-top: 32px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

/* RECRUIT単独バナー */
.banner-duo--single { grid-template-columns: 1fr; }
.banner-duo--single .banner { min-height: 380px; }

/* ヒーロー画像上のクレジットボタン */
.hero-visual { position: relative; }
.hero-credit {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  background: rgba(13, 13, 13, 0.92);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  border-radius: 999px;
}
.hero-credit:hover { background: var(--accent); color: var(--ink); }

/* メンバー個別ページ: 作品履歴 */
.history-list { max-width: 810px; }
.history-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.history-list .h-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; }
.history-list .h-role { color: var(--gray); font-size: 12px; margin-top: 2px; }
.history-empty { font-family: var(--font-mono); font-size: 12px; color: var(--gray); }

@media (max-width: 767px) {
  .hero-credit { right: 10px; bottom: 10px; font-size: 11px; padding: 7px 14px; }
  .history-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   Motion design — 緩急のあるイージングとリビール演出
   ============================================================ */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* 勢いよく出て静かに止まる */
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);    /* 溜めてから一気に */
}

::selection { background: var(--accent); color: var(--ink); }

/* ---------- スクロールリビール ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- ヒーロー登場演出(初回ロード時) ---------- */
html.js .hero-title span {
  opacity: 0;
  transform: translateY(0.4em);
  animation: hero-rise 1s var(--ease-out) forwards;
}
html.js .hero-title span:nth-child(2) { animation-delay: 0.1s; }
@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}
html.js .hero-visual {
  opacity: 0;
  animation: hero-fade 1.2s var(--ease-out) 0.3s forwards;
}
@keyframes hero-fade {
  from { opacity: 0; transform: scale(1.015); }
  to   { opacity: 1; transform: none; }
}
html.js .hero-credit {
  opacity: 0;
  animation: credit-pop 0.6s var(--ease-out) 1.1s forwards;
}
@keyframes credit-pop {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- スクロール帯: 黒帯に緩急 ---------- */
.art-strip-overlay {
  transition: transform 0.6s var(--ease-inout);
}
.art-strip-overlay > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.4s ease, transform 0.55s var(--ease-out);
}
.art-strip:hover .art-strip-overlay > span,
.art-strip:focus-visible .art-strip-overlay > span {
  opacity: 1;
  transform: none;
  transition-delay: 0.18s;   /* 帯が走り込んでから文字が追いつく */
}

/* ---------- マイクロインタラクション ---------- */
.global-nav a,
.footer-nav a,
.member-list a,
.work-cat,
.banner-btn,
.submit-btn,
.hero-credit,
.arrow-link { transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }

.arrow-link { transition: background 0.25s ease, padding-left 0.35s var(--ease-out); }
.arrow-link:hover { padding-left: 8px; }

.work-card img { transition: transform 0.7s var(--ease-out); }
.work-card a:hover img { transform: scale(1.04); }

.banner > img { transition: transform 0.8s var(--ease-out); }
.banner-btn { transition: background 0.25s ease, color 0.25s ease, transform 0.4s var(--ease-out); }
.banner:hover .banner-btn { transform: translateX(-50%) translateY(-4px); }

.footer-top-link { transition: color 0.25s ease; }

/* ---------- reduced-motion: 演出をすべて停止 ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero-title span,
  html.js .hero-visual,
  html.js .hero-credit { opacity: 1; animation: none; }
  .art-strip-overlay,
  .art-strip-overlay > span { transition: none; }
  .art-strip-overlay > span { opacity: 1; transform: none; }
}

.art-strip-overlay em { font-style: normal; color: var(--accent); }

/* ABOUT以下〜フッター手前: 上グレー→下白のグラデーション */
.grad-bg {
  background: linear-gradient(to bottom, #d9d8d4 0%, var(--bg) 65%);
}

/* PC: キービジュアルを横長トリミングで表示(圧迫感の軽減) */
@media (min-width: 768px) {
  .hero-visual img {
    width: 100%;
    max-height: clamp(420px, 60vh, 640px);
    object-fit: cover;
    object-position: center 28%;
  }
}

/* 説明文: 下から大きめにふわっと */
html.js .reveal--up {
  transform: translateY(48px);
  transition-duration: 1.1s;
}
