/* ═══════════════════════════════════════════════
   HIRAKOU — Global Styles v4
   Concept: Heavy Luxury × Industrial Transport
   Mercedes / LEXUS / PORSCHE — not Progress
═══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --black:    #080808;
  --dark:     #0E0E0E;
  --dark-2:   #141414;
  --dark-3:   #1E1E1E;
  --rule:     #252525;
  --orange:   #F47000;
  --orange-d: #CC5E00;
  --silver:   #B2B2B2;
  --white:    #F8F8F4;
  --text:     rgba(248,248,244,0.86);
  --muted:    rgba(248,248,244,0.44);
  --dim:      rgba(248,248,244,0.20);
  --border:   rgba(255,255,255,0.07);
  --o-glow:   rgba(244,112,0,0.14);

  --ff-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-jp-s:  'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --ff-jp:    'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', sans-serif;
  --ff-en:    'Inter', -apple-system, sans-serif;

  --header-h: 70px;
  --max-w:    1280px;
  --gutter:   52px;
  --sec-v:    120px;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-jp);
  background: var(--black);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body:not(.loaded) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--ff-jp); }
ul, ol { list-style: none; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--sec-v) 0; }
.bg-black { background: var(--black); }
.bg-dark  { background: var(--dark); }
.bg-dark2 { background: var(--dark-2); }

/* ── Section Label (EN, tracked, orange line) ── */
.sec-label {
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.sec-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orange);
  flex-shrink: 0;
}

/* ── Typography ── */
.h-display {
  font-family: var(--ff-jp-s);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: .05em;
  line-height: 1.4;
  color: var(--white);
}
.h-display-en {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: .03em;
  line-height: 1.25;
  color: var(--white);
}
.h-section {
  font-family: var(--ff-jp-s);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: .05em;
  line-height: 1.4;
  color: var(--white);
}
.body-text {
  font-size: 14px;
  line-height: 2.1;
  color: var(--muted);
}
.o-rule {
  width: 32px;
  height: 1px;
  background: var(--orange);
}

/* ── Buttons: outlined, no rounded corners ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: 1px solid var(--orange);
  color: var(--orange);
  background: transparent;
  transition: background 0.26s var(--ease), color 0.26s var(--ease);
  cursor: pointer;
}
.btn::after { content: '→'; font-size: 12px; transition: transform 0.24s; }
.btn:hover  { background: var(--orange); color: var(--black); }
.btn:hover::after { transform: translateX(4px); }

.btn-solid   { background: var(--orange); color: var(--black); }
.btn-solid:hover { background: var(--orange-d); color: var(--white); }

/* ── Image Placeholder (dev only) ── */
.img-ph {
  background: var(--dark-2);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--dim);
  font-size: 10px;
  font-family: var(--ff-en);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: 40px;
}
.img-ph-icon { font-size: 22px; opacity: .25; }

/* Legacy placeholder (compat) */
.img-placeholder {
  background: var(--dark-2);
  border: 1px dashed rgba(244,112,0,0.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .10em;
  text-align: center;
  padding: 24px;
}
.img-placeholder .ph-icon { font-size: 20px; opacity: .25; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--rule);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 30px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}
.header-nav a {
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.22s;
  padding: 4px 0;
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}
.header-nav a:hover,
.header-nav a.active { color: var(--white); }
.header-nav a:hover::after,
.header-nav a.active::after { transform: scaleX(1); }

.header-nav .nav-cta {
  color: var(--orange);
  border: 1px solid rgba(244,112,0,0.45);
  padding: 8px 18px;
  transition: background 0.22s, color 0.22s;
}
.header-nav .nav-cta::after { display: none; }
.header-nav .nav-cta:hover { background: var(--orange); color: var(--black); }

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.header-contact {
  font-family: var(--ff-en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s;
}
.header-contact:hover { border-color: var(--orange); }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 15px;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: all .3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* SP Nav */
.sp-nav {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(0.77,0,0.175,1);
}
.sp-nav.open { transform: translateX(0); }
.sp-nav a {
  font-family: var(--ff-jp-s);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: .06em;
  color: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.22s;
  display: block;
}
.sp-nav a:first-child { border-top: 1px solid var(--rule); }
.sp-nav a:hover { color: var(--orange); }
.sp-nav .nav-cta-sp {
  color: var(--orange);
  font-size: 22px;
  margin-top: 32px;
  border-bottom: 1px solid var(--rule);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
#footer {
  background: var(--black);
  border-top: 1px solid var(--rule);
  padding: 72px 0 36px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 64px;
  align-items: start;
}
.footer-logo   { height: 28px; width: auto; margin-bottom: 18px; }
.footer-tagline {
  font-size: 11px;
  color: var(--dim);
  line-height: 1.9;
  letter-spacing: .04em;
}

.footer-nav-group {}
.footer-nav-heading {
  font-family: var(--ff-en);
  font-size: 9px;
  letter-spacing: .30em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.footer-nav-list a {
  font-size: 12px;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.22s;
}
.footer-nav-list a:hover { color: var(--white); }

.footer-info {}
.footer-info-heading {
  font-family: var(--ff-en);
  font-size: 9px;
  letter-spacing: .30em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-info address {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  line-height: 2.2;
}
.footer-info a:hover { color: var(--white); }
.footer-info .todo-text { color: rgba(244,112,0,0.40); font-size: 10px; }

.footer-sns {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.footer-sns-link {
  color: var(--dim);
  display: flex;
  align-items: center;
  transition: color 0.22s;
}
.footer-sns-link:hover { color: var(--orange); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 48px auto 0;
  padding: 22px var(--gutter) 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: var(--ff-en);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: .08em;
}
.footer-bottom-nav { display: flex; gap: 28px; }
.footer-bottom-nav a {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: .06em;
  transition: color 0.22s;
}
.footer-bottom-nav a:hover { color: var(--muted); }

/* Footer columns */
.footer-top-line { display: none; }
.footer-nav-col h4,
.footer-info-col h4 {
  font-family: var(--ff-en);
  font-size: 9px;
  letter-spacing: .30em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-nav-col a {
  display: block;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  letter-spacing: .04em;
  transition: color 0.22s;
}
.footer-nav-col a:first-of-type { border-top: 1px solid var(--rule); }
.footer-nav-col a:hover { color: var(--white); }

/* ══════════════════════════════════════
   SCROLL ANIMATIONS
   Slow, heavy — not Progress-like
══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.14s; }
.reveal-delay-2 { transition-delay: 0.28s; }
.reveal-delay-3 { transition-delay: 0.42s; }
.reveal-delay-4 { transition-delay: 0.56s; }

/* ══════════════════════════════════════
   INNER PAGE HERO
══════════════════════════════════════ */
.inner-hero {
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: var(--black);
  border-bottom: 1px solid var(--rule);
}
.inner-hero-label {
  font-family: var(--ff-en);
  font-size: 10px;
  letter-spacing: .30em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.inner-hero-title {
  font-family: var(--ff-jp-s);
  font-weight: 300;
  font-size: clamp(26px, 4.5vw, 46px);
  letter-spacing: .04em;
  line-height: 1.3;
  color: var(--white);
}
.inner-hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.9;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
  margin-bottom: 32px;
}
.breadcrumb a:hover { color: var(--muted); }
.breadcrumb span { color: var(--dim); }

/* ══════════════════════════════════════
   INSTAGRAM
══════════════════════════════════════ */
.ig-section { background: var(--dark); }
.ig-follow-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.ig-icon-wrap { color: var(--orange); display: flex; align-items: center; }
.ig-handle { font-size: 16px; font-weight: 600; color: var(--white); letter-spacing: .04em; }
.ig-follow-btn { min-width: 140px; text-align: center; }
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.ig-tile { aspect-ratio: 1; overflow: hidden; display: block; }
.ig-tile-inner {
  width: 100%; height: 100%;
  background: var(--dark-3);
  transition: opacity 0.24s;
}
.ig-tile:hover .ig-tile-inner { opacity: 0.65; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; --sec-v: 96px; }
  .header-inner { grid-template-columns: 160px 1fr 160px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-info  { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --sec-v: 72px; --header-h: 60px; }
  .hamburger { display: flex; }
  .header-nav, .header-right { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-info  { grid-column: span 1; }
  .footer-nav-list { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-nav { flex-wrap: wrap; justify-content: center; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}
