/* ========================================================
   Movesty — 玄関スタイル
   トーン: 暗幕（粒子と作品の壁）→ 和紙の明パート
   カラー: 深紺 / 和紙背景 / 墨テキスト / 臙脂 / 金
   ======================================================== */

:root {
  --bg: #faf8f3;
  --bg-alt: #f2ede2;
  --dark: #0a0e1a;
  --dark-2: #0d1220;
  --ink: #1a1815;
  --ink-sub: #56534e;
  --ink-mute: #8a857c;
  --line: #e6dfd1;
  --line-soft: #efe9dd;
  --accent: #b13b3f;       /* 臙脂 */
  --accent-hover: #8f2f33;
  --gold: #b4923a;
  --peach: #f2b98a;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "游明朝", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Inter", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1080px;
  --pad-x: clamp(20px, 4vw, 40px);
  --sec-pad-y: clamp(80px, 12vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: rgba(255,255,255,0.9);
  transition: background .4s ease, border-color .4s ease, color .4s ease, backdrop-filter .4s ease;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom-color: var(--line-soft);
  color: var(--ink);
}
.site-header .brand-mark {
  border-color: rgba(255,255,255,0.7);
  color: rgba(255,255,255,0.95);
  transition: border-color .4s ease, color .4s ease;
}
.site-header.is-scrolled .brand-mark {
  border-color: var(--ink);
  color: var(--ink);
}
.brand-name .ink { color: rgba(255,255,255,0.95); transition: color .4s ease; }
.brand-name .gold { color: #d4b075; transition: color .4s ease; letter-spacing: 0.14em; }
.site-header.is-scrolled .brand-name .ink { color: var(--ink); }
.site-header.is-scrolled .brand-name .gold { color: var(--gold); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0;
}
.brand-name {
  font-family: var(--en);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: 15px;
}
.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
}
.site-nav a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding: 6px 0;
  transition: color .25s ease;
}
.site-header.is-scrolled .site-nav a { color: var(--ink-sub); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}
.site-nav a:hover { color: #fff; }
.site-header.is-scrolled .site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ========== Hero — 粒子がタグラインを組む ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #ffffff;
  height: 100svh;
  min-height: 560px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  opacity: 0.95;
}
.hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  padding: 0 var(--pad-x);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-align: center;
  transition: opacity 1.4s ease;
  transition-delay: 1.1s;
}
.hero-title span { display: inline-block; }
/* GLが動いたら、HTMLの題字は粒子にバトンを渡して消える */
body.gl-on .hero-title { opacity: 0; }

.hero-foot {
  position: absolute;
  left: 0;
  bottom: clamp(28px, 5vh, 56px);
  z-index: 2;
  padding: 0 var(--pad-x);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.34em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 14px;
}
.hero-lead {
  font-size: clamp(13px, 1.3vw, 15px);
  color: rgba(255,255,255,0.74);
  margin: 0;
  line-height: 2;
  letter-spacing: 0.06em;
  font-family: var(--serif);
}
.hero-hint {
  margin: 18px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.34);
  letter-spacing: 0.12em;
}
body.no-gl .hero-hint { display: none; }

/* CTA 右上 */
.hero-cta {
  position: absolute;
  top: 84px;
  right: clamp(20px, 4vw, 40px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  border-radius: 999px;
  background: var(--peach);
  color: #1a1815;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
  box-shadow: 0 8px 24px rgba(242, 185, 138, 0.18);
}
.hero-cta:hover {
  background: #f5c79c;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(242, 185, 138, 0.28);
}

/* 下スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 56px;
  overflow: hidden;
  opacity: 0.7;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8));
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(180%); }
}

/* ========== Sections common ========== */
section { padding: var(--sec-pad-y) 0; }
.section-eyebrow {
  font-family: var(--en);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 24px;
  letter-spacing: 0.04em;
}
.section-lead {
  color: var(--ink-sub);
  max-width: 680px;
  margin: 0 0 64px;
  font-size: 15px;
  line-height: 2;
}
.section-eyebrow--dark { color: var(--peach); }
.section-title--dark { color: #fff; }
.section-lead--dark { color: rgba(255,255,255,0.66); }

/* 罫線セパレータ */
.hairline { padding: 0; }
.hairline .wrap { padding-top: 0; padding-bottom: 0; }
.hairline span {
  display: block;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%, var(--line) 20%, var(--line) 80%, transparent 100%);
}

/* ========== 作品の壁 ========== */
.wall {
  background: linear-gradient(to bottom, var(--dark) 0%, var(--dark-2) 60%, var(--dark) 100%);
  color: #fff;
  padding: clamp(90px, 12vw, 150px) 0 clamp(80px, 10vw, 130px);
  overflow: hidden;
}
.wall-head { margin-bottom: clamp(40px, 6vw, 72px); }
.wall-head .section-lead { margin-bottom: 0; }

.wall-rows {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  transform: rotate(-1.2deg) scale(1.03);
}
.wall-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.wall-track {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  width: max-content;
  animation: wallDrift var(--dur, 80s) linear infinite;
  will-change: transform;
}
.wall-row.is-rev .wall-track { animation-direction: reverse; }
.wall-row:hover .wall-track { animation-play-state: paused; }
.wall-row.is-static .wall-track { animation: none; }
.wall-row.is-static { overflow-x: auto; }
@keyframes wallDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.wall-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 320px);
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #141a2c;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  transition: transform .45s cubic-bezier(.19,1,.22,1), box-shadow .45s ease;
}
.wall-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.19,1,.22,1), filter .45s ease;
  filter: brightness(0.92);
}
.wall-card .wall-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 14px 12px;
  background: linear-gradient(to top, rgba(6,9,18,0.88), rgba(6,9,18,0));
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0.94;
}
.wall-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.wall-cat {
  font-family: var(--en);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--peach);
  text-transform: uppercase;
}
.wall-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 18px 44px rgba(0,0,0,0.6), 0 0 0 1px rgba(242,185,138,0.35);
  z-index: 2;
}
.wall-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.04);
}

/* 数字帯 */
.wall-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 6vw, 88px);
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.wall-stats > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wall-stats .num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  color: #fff;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.wall-stats .lbl {
  font-family: var(--en);
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.wall-more {
  margin-top: clamp(40px, 5vw, 56px);
  text-align: center;
}

/* ========== 思想 ========== */
.philosophy-body {
  max-width: 720px;
  font-family: var(--serif);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 2.2;
  color: var(--ink);
}
.philosophy-body p { margin: 0 0 28px; }
.philosophy-body p:last-child { margin-bottom: 0; }

/* ========== 事業領域 ========== */
.field-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 60px;
}
.field {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
  overflow: hidden;
  isolation: isolate;
}
.field::before {
  content: attr(data-glyph);
  position: absolute;
  right: -0.08em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(220px, 32vw, 460px);
  line-height: 1;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  letter-spacing: 0;
}
.field > * { position: relative; z-index: 1; }
.field-no {
  font-family: var(--en);
  font-weight: 300;
  font-size: 32px;
  color: var(--gold);
  margin: 0;
  letter-spacing: 0.05em;
}
.field-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}
.field-name .field-sub {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.field-catch {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 20px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.field-desc {
  color: var(--ink-sub);
  margin: 0 0 28px;
  line-height: 2;
  max-width: 620px;
}
.field-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.field-brands a,
.field-brands span {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink);
  background: transparent;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
  letter-spacing: 0.04em;
}
.field-brands a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* ========== 運営中のプロダクト ========== */
.works-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.work {
  background: var(--bg);
  transition: background .3s ease;
}
.work a {
  display: block;
  padding: 32px 28px 36px;
  height: 100%;
}
.work-cat {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.work-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: 0.03em;
  transition: color .25s ease;
}
.work-en {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--en);
  font-weight: 400;
  font-size: 11.5px;
  color: var(--gold);
  letter-spacing: 0.2em;
  vertical-align: middle;
}
.work-desc {
  color: var(--ink-sub);
  font-size: 13.5px;
  line-height: 1.9;
  margin: 0;
}
.work:hover { background: var(--bg-alt); }
.work:hover .work-name { color: var(--accent); }

.ghost-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  padding: 14px 32px;
  border: 1px solid var(--ink);
  transition: background .3s ease, color .3s ease;
}
.ghost-link:hover {
  background: var(--ink);
  color: var(--bg);
}
.ghost-link--dark {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.4);
}
.ghost-link--dark:hover {
  background: var(--peach);
  border-color: var(--peach);
  color: #1a1815;
}

/* ========== 会社情報 ========== */
.company-info {
  display: grid;
  gap: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.company-info > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.company-info dt {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-sub);
  margin: 0;
  letter-spacing: 0.1em;
}
.company-info dd {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
}
.company-info dd a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}
.company-info dd a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ========== お問い合わせ ========== */
.contact .section-lead { margin-bottom: 40px; }
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.contact-button {
  display: inline-flex;
  align-items: center;
  padding: 18px 44px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 28px rgba(177, 59, 63, 0.22);
}
.contact-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(177, 59, 63, 0.3);
}
.contact-note {
  margin: 0;
  color: var(--ink-mute);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* ========== Footer ========== */
.site-footer {
  padding: 80px 0 60px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: var(--ink-sub);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-mark { border-color: var(--ink-sub); }
.footer-brand .brand-name {
  font-family: var(--en);
  letter-spacing: 0.14em;
  font-size: 14px;
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 12.5px;
  color: var(--ink-sub);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.footer-nav a:hover { color: var(--accent); border-color: var(--accent); }
.footer-copy {
  font-family: var(--en);
  font-size: 11.5px;
  color: var(--ink-mute);
  margin: 0;
  letter-spacing: 0.08em;
  width: 100%;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ========== 動き（reveal） ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s cubic-bezier(.19,1,.22,1), transform 1.1s cubic-bezier(.19,1,.22,1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .site-header .wrap { justify-content: center; }
  .field {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .field-no { font-size: 24px; }
  .company-info > div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }
  .company-info dt { font-size: 12px; letter-spacing: 0.14em; }
  .hero-cta { top: 78px; }
}
@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
  .footer-nav { gap: 18px; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .wall-card { width: 66vw; }
  .wall-stats .num { font-size: 28px; }
}

/* ========== 印刷用ちょい最適化 ========== */
@media print {
  .site-header, .site-footer, .site-nav, script { display: none; }
}
