/* =========================================================
   Mizumoto Reform — Styles
   ========================================================= */
:root {
  --c-bg: #faf6f8;
  --c-bg-alt: #f3ecf0;
  --c-ink: #2a1f25;
  --c-mute: #7a6570;
  --c-line: rgba(140,80,112,.12);
  --c-accent: #8c5070;
  --c-accent-d: #6e3a56;
  --c-dark: #1e1118;
  --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: .4em;
  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(30,17,24,.92);
  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: .1em; color: rgba(255,255,255,.5); }
.hd-logo-main {
  font-family: var(--ff-display); font-size: 20px;
  letter-spacing: .08em; color: #fff; font-weight: 400;
}
.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: .12em; 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: 32px; 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-hours { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 4px; }

/* ===== 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 6s var(--ease-out);
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,17,24,.85) 0%, rgba(30,17,24,.3) 50%, transparent 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-en {
  font-family: var(--ff-display); font-size: clamp(42px,7vw,96px);
  font-weight: 300; letter-spacing: .08em; color: #fff;
  line-height: 1; margin-bottom: 12px;
}
.hero-en span { color: var(--c-accent); }
.hero-jp {
  font-family: var(--ff-jp); font-size: clamp(22px,3.5vw,44px);
  font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .06em;
}
.hero-lead {
  font-size: clamp(13px,1.8vw,16px); line-height: 1.9;
  color: rgba(255,255,255,.7); margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center;
  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,.4); 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); }
.btn-outline {
  display: inline-flex; align-items: center;
  border: 1px solid var(--c-accent); color: var(--c-accent);
  padding: 13px 40px; font-size: 13px; letter-spacing: .12em;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--c-accent); color: #fff; }
.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); }
.hero-badge {
  position: absolute; top: 100px; right: var(--pad-x); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: rgba(255,255,255,.1); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  padding: 12px 16px;
}
.hero-badge span { font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.8); }
.hero-badge span:first-child { font-family: var(--ff-display); font-size: 16px; color: #fff; }

/* ===== Ticker ===== */
.ticker {
  background: var(--c-accent); color: #fff;
  overflow: hidden; padding: 14px 0; white-space: nowrap;
}
.ticker-track {
  display: inline-flex; gap: 48px;
  animation: ticker 22s linear infinite;
}
.ticker-track span {
  font-family: var(--ff-display); font-size: 13px;
  letter-spacing: .25em; 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);
}

/* ===== Features ===== */
.features { padding: 96px 0; background: var(--c-bg-alt); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feat-card {
  background: var(--c-bg); padding: 36px 28px;
  border: 1px solid var(--c-line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(140,80,112,.1); }
.feat-icon {
  width: 48px; height: 48px; color: var(--c-accent); margin-bottom: 20px;
}
.feat-icon svg { width: 100%; height: 100%; }
.feat-card h3 {
  font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--c-ink);
}
.feat-card p { font-size: 13px; line-height: 1.8; color: var(--c-mute); }

/* ===== Services ===== */
.services { padding: 96px 0; }
.srv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.srv-card {
  position: relative; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  overflow: hidden;
  transition: transform .4s var(--ease);
}
.srv-card:hover { transform: scale(1.02); }
.srv-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30,17,24,.85) 0%, rgba(30,17,24,.2) 60%);
  transition: background .3s;
}
.srv-card:hover .srv-overlay { background: linear-gradient(to top, rgba(30,17,24,.9) 0%, rgba(30,17,24,.4) 60%); }
.srv-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
}
.srv-en {
  font-family: var(--ff-display); font-size: 11px;
  letter-spacing: .3em; color: var(--c-accent); margin-bottom: 6px;
}
.srv-body h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.srv-body p { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.7); }

/* ===== Works ===== */
.works { padding: 96px 0; background: var(--c-bg-alt); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 48px;
}
.work-item {
  background: var(--c-bg);
  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(140,80,112,.1); }
.work-img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  transition: transform .5s var(--ease);
}
.work-item:hover .work-img { transform: scale(1.04); }
.work-body { padding: 20px 22px; }
.work-cat {
  font-size: 10px; letter-spacing: .2em; color: var(--c-accent);
  font-family: var(--ff-display); 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); }
.sec-more { text-align: center; }

/* ===== About ===== */
.about { padding: 96px 0; }
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about-catch {
  font-size: clamp(18px,2.5vw,26px); font-weight: 700;
  line-height: 1.6; margin-bottom: 20px; color: var(--c-ink);
}
.about-text p { font-size: 14px; line-height: 1.9; color: var(--c-mute); margin-bottom: 14px; }
.about-table { width: 100%; border-collapse: collapse; margin-top: 24px; 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: 8px; }
.contact-tel-num {
  font-family: var(--ff-display); font-size: 36px;
  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: 6px; }
.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: 16px; }
.footer-logo-sub { font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.3); display: block; }
.footer-logo-main {
  font-family: var(--ff-display); font-size: 22px;
  letter-spacing: .1em; color: #fff; font-weight: 400;
}
.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 animation ===== */
.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: 1024px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hd-nav { display: none; }
  .hamburger { display: flex; }
  .feat-grid { grid-template-columns: 1fr; }
  .srv-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-box { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .contact-divider { width: 60px; height: 1px; margin: 0 auto; }
  .hero-badge { display: none; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
}
