/* =========================================================
   Shirokane Koumuten — Styles
   ========================================================= */
:root {
  --c-bg: #f5f7f3;
  --c-bg-alt: #edf0ea;
  --c-ink: #1a201a;
  --c-mute: #5a6858;
  --c-line: rgba(37,46,32,.12);
  --c-accent: #6d8f5a;
  --c-accent-d: #506840;
  --c-dark-green: #252e20;
  --c-dark: #121810;
  --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: 24px; letter-spacing: .45em;
  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(18,24,16,.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: .1em; 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-hours { 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(18,24,16,.9) 0%, rgba(18,24,16,.4) 50%, rgba(18,24,16,.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-en { font-family: var(--ff-display); font-size: clamp(44px,8vw,108px); 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: 20px; line-height: 1.5; letter-spacing: .05em; }
.hero-lead { font-size: clamp(13px,1.7vw,16px); 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-dark-green); color: rgba(255,255,255,.7); overflow: hidden; padding: 13px 0; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 56px; animation: ticker 26s 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 / SW ===== */
.philosophy { padding: 100px 0; background: var(--c-dark-green); }
.phil-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; 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: 14px; }
.sw-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 36px; }
.sw-head { margin-bottom: 28px; }
.sw-label { font-family: var(--ff-display); font-size: 11px; letter-spacing: .3em; color: var(--c-accent); margin-bottom: 6px; }
.sw-head h3 { font-size: 22px; font-weight: 700; color: #fff; }
.sw-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.sw-list li { display: flex; gap: 16px; align-items: flex-start; }
.sw-icon { width: 36px; height: 36px; flex-shrink: 0; background: rgba(109,143,90,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c-accent); }
.sw-icon svg { width: 18px; height: 18px; }
.sw-list li strong { display: block; font-size: 16px; color: #fff; margin-bottom: 4px; }
.sw-list li p { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.5); }

/* ===== 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); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.srv-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(37,46,32,.1); }
.srv-img { aspect-ratio: 4/3; background-size: cover; background-position: center; transition: transform .5s var(--ease); }
.srv-card:hover .srv-img { transform: scale(1.04); }
.srv-body { padding: 20px 22px 24px; }
.srv-en { font-family: var(--ff-display); font-size: 10px; letter-spacing: .28em; color: var(--c-accent); margin-bottom: 6px; }
.srv-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.srv-body p { font-size: 12px; 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); 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(37,46,32,.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: 16px 20px 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); }

/* ===== After Service ===== */
.after { padding: 100px 0; background: var(--c-dark-green); }
.after .sec-label { color: var(--c-accent); }
.after .sec-title { color: #fff; }
.after .sec-lead { color: rgba(255,255,255,.5); }
.after-timeline {
  max-width: 800px; margin: 0 auto;
  position: relative;
}
.after-timeline::before {
  content: ""; position: absolute; left: 80px; top: 12px; bottom: 12px;
  width: 1px; background: rgba(109,143,90,.3);
}
.after-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 0 32px; margin-bottom: 36px; position: relative;
}
.after-item--last { margin-bottom: 0; }
.after-point { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4px; }
.after-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c-accent); flex-shrink: 0;
  position: relative; z-index: 1;
}
.after-year { font-family: var(--ff-display); font-size: 13px; letter-spacing: .1em; color: var(--c-accent); white-space: nowrap; }
.after-body { padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.06); }
.after-item--last .after-body { border-bottom: none; padding-bottom: 0; }
.after-body strong { display: block; font-size: 16px; color: #fff; margin-bottom: 6px; }
.after-body p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.5); }

/* ===== Staff / About ===== */
.staff { padding: 96px 0; }
.staff-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.staff-card { background: #fff; border: 1px solid var(--c-line); padding: 36px; }
.staff-photo { width: 100%; margin-bottom: 24px; overflow: hidden; }
.staff-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center top; }
.staff-role { font-size: 10px; letter-spacing: .2em; color: var(--c-accent); margin-bottom: 4px; }
.staff-name { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.staff-kana { font-size: 12px; font-weight: 400; color: var(--c-mute); margin-left: 8px; }
.staff-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.staff-tags span { font-size: 11px; letter-spacing: .05em; padding: 4px 10px; border: 1px solid var(--c-line); color: var(--c-dark-green); }
.staff-bio { font-size: 13px; line-height: 1.9; color: var(--c-mute); }
.about-table-wrap { padding-top: 8px; }
.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: .1em; 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: .1em; 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: 1024px) {
  .srv-grid { grid-template-columns: repeat(2, 1fr); }
  .phil-layout { grid-template-columns: 1fr; gap: 40px; }
  .staff-layout { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hd-nav { display: none; }
  .hamburger { display: flex; }
  .srv-grid { grid-template-columns: 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; }
  .after-timeline::before { left: 60px; }
  .after-item { grid-template-columns: 60px 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
}
