/* =========================================================
   Miura Koumuten — Styles
   ========================================================= */
:root {
  --c-bg: #f5f2ee;
  --c-bg-alt: #ede9e3;
  --c-ink: #1e1a14;
  --c-mute: #6a6050;
  --c-line: rgba(42,53,69,.12);
  --c-accent: #b8893a;
  --c-accent-d: #8f6820;
  --c-navy: #2a3545;
  --c-dark: #141a24;
  --ff-jp: "Noto Sans JP", sans-serif;
  --ff-display: "Oswald", sans-serif;
  --w-max: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,.84,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--c-bg); color: var(--c-ink); font-family: var(--ff-jp); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Loader ===== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
#loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-brand {
  font-family: var(--ff-display);
  font-size: 28px; letter-spacing: .5em;
  color: var(--c-accent); display: block; margin-bottom: 24px;
}
.loader-bar { width: 160px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; background: var(--c-accent); border-radius: 2px; animation: load-fill 1s var(--ease-out) forwards; }
@keyframes load-fill { from { width: 0; } to { width: 100%; } }

/* ===== Demo Badge ===== */
.demo-badge {
  position: fixed; bottom: 16px; right: 16px; z-index: 999;
  background: rgba(0,0,0,.7); color: #fff;
  font-family: var(--ff-jp); font-size: 10px; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 2px; pointer-events: none;
}

/* ===== Header ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 var(--pad-x);
  transition: background .4s var(--ease), box-shadow .4s;
}
#header.is-scrolled {
  background: rgba(20,26,36,.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.hd-inner {
  max-width: var(--w-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.hd-logo { display: flex; flex-direction: column; }
.hd-logo-sub { font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.hd-logo-main {
  font-family: var(--ff-jp); font-size: 20px; font-weight: 700;
  letter-spacing: .1em; color: #fff;
}
.hd-nav { display: flex; align-items: center; gap: 4px; }
.nav-list { list-style: none; display: flex; gap: 4px; }
.nav-list a {
  font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.75);
  padding: 8px 12px; transition: color .2s;
}
.nav-list a:hover, .nav-list a.is-active { color: #fff; }
.nav-cta {
  background: var(--c-accent); color: #fff !important;
  padding: 8px 18px !important; font-weight: 500;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--c-accent-d) !important; }

/* ===== Hamburger ===== */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 6px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; height: 1.5px; background: #fff; transition: transform .3s var(--ease), opacity .3s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Drawer ===== */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--c-dark);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-inner { text-align: center; }
.drawer-inner ul { list-style: none; }
.drawer-inner li { margin: 4px 0; }
.drawer-inner a {
  font-family: var(--ff-display); font-size: 30px; font-weight: 300;
  letter-spacing: .1em; color: rgba(255,255,255,.7);
  transition: color .2s; display: block; padding: 8px 0;
}
.drawer-inner a:hover { color: #fff; }
.drawer-contact { margin-top: 40px; }
.drawer-tel a { font-family: var(--ff-display); font-size: 24px; color: var(--c-accent); }
.drawer-addr { font-size: 11px; color: rgba(255,255,255,.35); margin-top: 6px; }

/* ===== Hero ===== */
.hero {
  position: relative; height: 100svh; min-height: 600px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.2s var(--ease), transform 7s var(--ease-out);
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,26,36,.88) 0%, rgba(20,26,36,.35) 50%, rgba(20,26,36,.1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: clamp(40px,8vh,80px) var(--pad-x) clamp(80px,12vh,120px);
  max-width: var(--w-max); margin: 0 auto; width: 100%;
}
.hero-est {
  display: inline-flex; align-items: baseline; gap: 6px;
  margin-bottom: 24px;
}
.hero-est-label {
  font-family: var(--ff-display); font-size: 12px;
  letter-spacing: .3em; color: var(--c-accent);
}
.hero-est-year {
  font-family: var(--ff-display); font-size: 40px;
  color: var(--c-accent); font-weight: 300; line-height: 1;
}
.hero-en {
  font-family: var(--ff-display); font-size: clamp(44px,8vw,112px);
  font-weight: 300; letter-spacing: .06em; color: #fff;
  line-height: 1; margin-bottom: 14px; display: block;
}
.hero-jp {
  font-family: var(--ff-jp); font-size: clamp(22px,3.5vw,46px);
  font-weight: 700; color: #fff; margin-bottom: 18px;
  line-height: 1.4; letter-spacing: .05em;
}
.hero-lead {
  font-size: clamp(13px,1.6vw,15px); line-height: 2;
  color: rgba(255,255,255,.65); margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-accent); color: #fff;
  padding: 14px 32px; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: var(--c-accent-d); transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,.35); color: #fff;
  padding: 14px 32px; font-size: 13px; letter-spacing: .12em;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-dots {
  position: absolute; bottom: 36px; right: var(--pad-x);
  z-index: 3; display: flex; gap: 8px;
}
.hp-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.3); border: none; cursor: pointer;
  transition: background .3s, transform .3s;
}
.hp-dot.is-active { background: var(--c-accent); transform: scale(1.4); }

/* ===== Ticker ===== */
.ticker {
  background: var(--c-navy); color: rgba(255,255,255,.7);
  overflow: hidden; padding: 13px 0; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 56px;
  animation: ticker 24s linear infinite;
}
.ticker-track span {
  font-family: var(--ff-display); font-size: 12px;
  letter-spacing: .28em; flex-shrink: 0;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Sections common ===== */
.inner { max-width: var(--w-max); margin: 0 auto; padding: 0 var(--pad-x); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-label { font-family: var(--ff-display); font-size: 11px; letter-spacing: .35em; color: var(--c-accent); margin-bottom: 12px; display: block; }
.sec-title { font-family: var(--ff-jp); font-size: clamp(24px,3.5vw,40px); font-weight: 700; line-height: 1.4; color: var(--c-ink); }
.sec-lead { margin-top: 16px; font-size: 14px; line-height: 1.9; color: var(--c-mute); }

/* ===== Philosophy ===== */
.philosophy { padding: 100px 0; background: var(--c-navy); }
.phil-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.phil-text .sec-label { color: var(--c-accent); }
.phil-text .sec-title { color: #fff; margin-bottom: 24px; }
.phil-text p { font-size: 14px; line-height: 2; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.phil-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.phil-tags span {
  font-size: 11px; letter-spacing: .1em; padding: 5px 14px;
  border: 1px solid rgba(184,137,58,.5); color: var(--c-accent);
}
.phil-nums { display: flex; flex-direction: column; gap: 32px; }
.phil-num-item {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.phil-num-item:last-child { border-bottom: none; padding-bottom: 0; }
.phil-num {
  font-family: var(--ff-display); font-size: 72px; font-weight: 300;
  color: var(--c-accent); line-height: 1;
}
.phil-num sup { font-size: 20px; }
.phil-num-label { font-size: 18px; color: rgba(255,255,255,.7); font-weight: 500; }

/* ===== Services ===== */
.services { padding: 96px 0; }
.srv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.srv-card {
  background: #fff; border: 1px solid var(--c-line); padding: 36px 24px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.srv-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(42,53,69,.1); }
.srv-icon { width: 52px; height: 52px; color: var(--c-accent); margin-bottom: 20px; }
.srv-icon svg { width: 100%; height: 100%; }
.srv-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.srv-card .srv-en { font-family: var(--ff-display); font-size: 11px; letter-spacing: .2em; color: var(--c-accent); margin-bottom: 12px; }
.srv-card p { font-size: 13px; line-height: 1.8; color: var(--c-mute); }

/* ===== Works ===== */
.works { padding: 96px 0; background: var(--c-bg-alt); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.work-item {
  background: #fff; border: 1px solid var(--c-line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.work-item:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(42,53,69,.1); }
.work-item.large { grid-column: 1 / 2; grid-row: 1 / 3; }
.work-img {
  width: 100%; aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  transition: transform .5s var(--ease);
}
.work-item.large .work-img { aspect-ratio: 3/4; }
.work-item:hover .work-img { transform: scale(1.04); }
.work-body { padding: 18px 20px; }
.work-cat { font-family: var(--ff-display); font-size: 10px; letter-spacing: .2em; color: var(--c-accent); margin-bottom: 6px; }
.work-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.work-body p { font-size: 12px; color: var(--c-mute); }

/* ===== Daiku ===== */
.daiku { padding: 96px 0; }
.daiku-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.daiku-card {
  background: #fff; border: 1px solid var(--c-line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.daiku-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(42,53,69,.1); }
.daiku-photo {
  aspect-ratio: 1; background-size: cover; background-position: center top;
  transition: transform .5s var(--ease);
}
.daiku-card:hover .daiku-photo { transform: scale(1.04); }
.daiku-body { padding: 14px 16px 18px; }
.daiku-years { font-family: var(--ff-display); font-size: 12px; letter-spacing: .15em; color: var(--c-accent); margin-bottom: 4px; }
.daiku-voice { font-size: 12px; line-height: 1.6; color: var(--c-mute); }

/* ===== About ===== */
.about { padding: 96px 0; background: var(--c-bg-alt); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.about-table th, .about-table td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.about-table th { width: 100px; color: var(--c-accent); font-weight: 500; white-space: nowrap; }
.about-table td { color: var(--c-mute); line-height: 1.7; }
.about-table a { color: var(--c-accent); }

/* ===== Contact ===== */
.contact { padding: 96px 0; background: var(--c-dark); }
.contact .sec-label { color: var(--c-accent); }
.contact .sec-title { color: #fff; }
.contact .sec-lead { color: rgba(255,255,255,.5); }
.contact-box {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 48px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: 48px 56px; max-width: 800px; margin: 0 auto;
}
.contact-tel { text-align: center; }
.contact-tel-label { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-bottom: 10px; }
.contact-tel-num {
  font-family: var(--ff-display); font-size: 34px;
  color: var(--c-accent); letter-spacing: .04em; font-weight: 400;
  display: block; transition: color .2s;
}
.contact-tel-num:hover { color: #fff; }
.contact-tel-hours { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 8px; }
.contact-divider { width: 1px; height: 100px; background: rgba(255,255,255,.1); }
.contact-web { text-align: center; }
.contact-web-label { font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.4); margin-bottom: 20px; }
.contact-web-note { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 12px; }

/* ===== Footer ===== */
.footer { background: var(--c-dark); border-top: 1px solid rgba(255,255,255,.06); }
.footer-inner { max-width: var(--w-max); margin: 0 auto; padding: 48px var(--pad-x); text-align: center; }
.footer-logo { margin-bottom: 12px; }
.footer-logo-sub { font-size: 10px; letter-spacing: .12em; color: rgba(255,255,255,.3); display: block; margin-bottom: 4px; }
.footer-logo-main { font-family: var(--ff-jp); font-size: 22px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.9; margin-bottom: 20px; }
.footer-cr { font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: .05em; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .daiku-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .phil-layout { grid-template-columns: 1fr; gap: 48px; }
  .phil-nums { flex-direction: row; flex-wrap: wrap; }
  .phil-num-item { border-bottom: none; padding-bottom: 0; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item.large { grid-column: auto; grid-row: auto; }
  .work-item.large .work-img { aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
  .hd-nav { display: none; }
  .hamburger { display: flex; }
  .srv-grid { grid-template-columns: 1fr; }
  .daiku-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .contact-divider { width: 60px; height: 1px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .daiku-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
