:root {
  --outer:#3c3b39;
  --outer-deep:#282826;
  --panel:#f1f0ed;
  --panel-2:#e8e7e3;
  --ink:#171716;
  --muted:#66645f;
  --line:#c6c4be;
  --red:#c8452a;
  --yellow:#e4a02b;
  --focus:#9b321d;
  --radius:30px;
  --font-sans:"IBM Plex Sans JP","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  --font-heading:"Zen Kaku Gothic New","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body { margin:0; min-width:320px; padding:clamp(28px,5vw,80px); color:var(--ink); background:var(--outer-deep); font-family:var(--font-sans); line-height:1.65; }
body::before { content:""; position:fixed; inset:0; z-index:-2; background:radial-gradient(circle at 50% 18%,#84827e 0,var(--outer) 38%,var(--outer-deep) 82%); }
.ambient { position:fixed; inset:0; z-index:-1; background:radial-gradient(ellipse at 50% 72%,rgba(228,160,43,.19),transparent 36%); filter:blur(30px); }
a { color:inherit; }
img { display:block; max-width:100%; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:var(--font-heading); letter-spacing:-.02em; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
.skip-link { position:fixed; top:10px; left:10px; z-index:100; padding:10px 14px; color:#fff; background:#111; border-radius:8px; transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }

.site-shell { width:min(100%,1220px); margin:auto; overflow:hidden; border:1px solid rgba(255,255,255,.55); border-radius:var(--radius); background:var(--panel); box-shadow:0 40px 90px rgba(0,0,0,.45),inset 0 1px 0 #fff; }
.topbar { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:72px; padding:0 34px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:9px; justify-self:start; font-weight:700; text-decoration:none; }
.brand img { width:25px; height:25px; }
.topbar nav { display:flex; align-items:center; gap:36px; }
.topbar nav a,.nav-contact { position:relative; min-height:44px; display:inline-flex; align-items:center; color:var(--muted); font-size:.72rem; font-weight:600; text-decoration:none; }
.topbar nav a:hover,.nav-contact:hover { color:var(--ink); }
.topbar nav a::after { content:""; position:absolute; right:0; bottom:7px; left:0; height:1px; background:var(--yellow); transform:scaleX(0); transform-origin:left; transition:transform .16s ease; }
.topbar nav a:hover::after { transform:scaleX(1); }
.nav-contact { justify-self:end; color:var(--ink); }

.hero { display:grid; grid-template-columns:1.05fr .95fr; }
.hero-copy,.hero-summary { min-height:300px; padding:70px 46px 46px; }
.hero-copy,.hero-summary { min-width:0; }
.hero-copy { display:flex; flex-direction:column; justify-content:space-between; border-right:1px solid var(--line); }
.index { color:var(--muted); font-size:.68rem; letter-spacing:.12em; }
.hero h1 { margin:0; max-width:560px; font-size:clamp(2.6rem,4.8vw,5.2rem); line-height:1.08; }
.hero-summary { display:flex; flex-direction:column; justify-content:flex-end; }
.hero-summary>p { max-width:390px; color:var(--muted); font-size:1rem; }
.hero-actions { display:flex; gap:14px; margin-top:24px; }
.button { display:inline-grid; min-height:48px; padding:0 22px; place-items:center; border-radius:999px; font-size:.77rem; font-weight:700; text-decoration:none; transition:transform .16s ease,background .16s ease,color .16s ease; }
.button:hover { transform:translateY(-2px); }
.button:active { transform:translateY(0); }
.button-dark { color:#fff; background:#111; border:1px solid #111; box-shadow:0 0 0 1px rgba(228,160,43,.45); }
.button-dark:hover { background:#2a2926; }
.button-line { color:var(--ink); background:transparent; border:1px solid #8a8882; }
.button-line:hover { background:#fff; }
.hero-visual { position:relative; grid-column:1/-1; height:clamp(330px,45vw,570px); margin:0; overflow:hidden; border-top:1px solid var(--line); background:var(--panel-2); }
.hero-visual img { width:100%; height:100%; object-fit:cover; object-position:center; filter:saturate(.86) contrast(.96); }
.hero-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(23,23,22,.52),transparent 38%); pointer-events:none; }
.hero-visual figcaption { position:absolute; z-index:1; left:46px; bottom:42px; max-width:280px; color:#fff; font-size:.84rem; }
.visual-label { position:absolute; z-index:1; right:34px; bottom:32px; padding:5px 10px; color:#fff; border:1px solid rgba(255,255,255,.7); border-radius:999px; font-size:.65rem; letter-spacing:.08em; }

.content-section { display:grid; grid-template-columns:180px 1fr; border-top:1px solid var(--line); }
.section-meta { padding:70px 34px; border-right:1px solid var(--line); }
.section-meta span { color:var(--red); font-size:.68rem; font-weight:700; }
.section-meta p { margin-top:8px; color:var(--muted); font-size:.7rem; letter-spacing:.08em; }
.section-copy { padding:70px 46px 78px; }
.section-copy h2,.contact h2 { font-size:clamp(2rem,3.7vw,3.8rem); line-height:1.2; }
.about .section-copy { display:grid; grid-template-columns:1fr .78fr; gap:70px; }
.body-copy { color:var(--muted); }
.title-row { display:flex; align-items:end; justify-content:space-between; gap:40px; margin-bottom:42px; }
.title-row h2 { margin:0; }
.title-row>p { max-width:300px; margin:0; color:var(--muted); font-size:.83rem; }
.services-list { margin:0; padding:0; list-style:none; border-top:1px solid var(--line); }
.services-list li { display:grid; grid-template-columns:54px minmax(230px,1fr) 1fr; gap:20px; align-items:center; min-height:92px; border-bottom:1px solid var(--line); }
.services-list li>span { color:var(--red); font-size:.67rem; font-weight:700; }
.services-list h3 { margin:0; font-size:1rem; }
.services-list p { margin:0; color:var(--muted); font-size:.82rem; }
.company-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:80px; }
.ceo-label { margin-top:48px; margin-bottom:6px; color:var(--muted); font-size:.72rem; }
.ceo-name { font-family:var(--font-heading); font-size:1.65rem; font-weight:700; }
.company-layout dl { margin:0; }
.company-layout dl>div { display:grid; grid-template-columns:120px 1fr; gap:16px; padding:19px 0; border-bottom:1px solid var(--line); }
.company-layout dt { color:var(--muted); font-size:.73rem; }
.company-layout dd { margin:0; }
.company-layout a { text-underline-offset:4px; overflow-wrap:anywhere; }
.company-layout a:hover { color:var(--red); }

.contact { display:grid; grid-template-columns:180px 1fr; border-top:1px solid var(--line); background:#dddbd5; }
.contact-copy { padding:76px 46px 84px; }
.contact-copy>p { max-width:580px; margin-bottom:30px; color:var(--muted); }
.footer { display:flex; justify-content:space-between; align-items:center; min-height:84px; padding:0 34px; border-top:1px solid var(--line); }
.footer-brand { display:flex; align-items:center; gap:9px; font-size:.8rem; font-weight:700; }
.footer small { color:var(--muted); }
.stage-status { display:none; }

@media (min-width:821px) {
  html.scene-mode body { padding:0; }
  .scene-mode .experience { height:calc(var(--scene-count) * 100vh); padding:5vh clamp(28px,5vw,80px); }
  .scene-mode .site-shell { position:sticky; top:5vh; height:90vh; margin:0 auto; isolation:isolate; }
  .scene-mode .site-shell::before { content:""; position:absolute; z-index:0; inset:72px 0 54px; background:url("assets/corporate/hero-weave.png") center/cover no-repeat; filter:saturate(.86) contrast(.96) blur(calc(var(--background-blur,0) * 1px)); transform:scale(1.06); transform-origin:center; will-change:filter; }
  .scene-mode .topbar { position:absolute; z-index:40; top:0; right:0; left:0; min-height:72px; background:var(--panel); }
  .scene-mode .topbar nav a.is-active::after { transform:scaleX(1); }
  .scene-mode [data-scene] { position:absolute; z-index:1; inset:72px 0 54px; margin:0; overflow:hidden; border-top:0; visibility:hidden; background:rgba(241,240,237,.92); transform:translate3d(0,100%,0); backface-visibility:hidden; will-change:transform; transition:transform .82s cubic-bezier(.22,.61,.36,1),visibility 0s linear .82s; }
  .scene-mode [data-scene].is-before { transform:translate3d(0,-100%,0); }
  .scene-mode [data-scene].is-active { z-index:2; visibility:visible; transform:translate3d(0,0,0); transition-delay:0s; }
  .scene-mode .hero { grid-template-rows:minmax(220px,46%) 1fr; background:linear-gradient(to bottom,var(--panel) 0 46%,transparent 46%); }
  .scene-mode .hero-copy,.scene-mode .hero-summary { min-height:0; padding:clamp(30px,5vh,58px) 46px 34px; }
  .scene-mode .hero h1 { font-size:clamp(2.6rem,4vw,3.8rem); }
  .scene-mode .hero-visual { height:auto; min-height:0; background:transparent; }
  .scene-mode .hero-visual img { visibility:hidden; }
  .scene-mode .content-section,.scene-mode .contact { --muted:#3f3d38; grid-template-columns:180px 1fr; }
  .scene-mode #about { background:rgba(233,231,224,.95); }
  .scene-mode #services { background:rgba(218,215,206,.75); }
  .scene-mode #company { background:rgba(241,239,234,.55); }
  .scene-mode .contact { background:rgba(252,251,248,.35); }
  .scene-mode .section-meta { padding:clamp(30px,5vh,62px) 34px; }
  .scene-mode .section-copy,.scene-mode .contact-copy { padding:clamp(30px,5vh,62px) 46px; }
  .scene-mode .about .section-copy { align-items:center; }
  .scene-mode .title-row { margin-bottom:clamp(20px,3.5vh,38px); }
  .scene-mode .services-list li { min-height:clamp(60px,8vh,84px); }
  .scene-mode .company-layout { align-items:center; }
  .scene-mode .footer { position:absolute; z-index:40; right:0; bottom:0; left:0; min-height:54px; padding:0 34px; background:var(--panel); }
  .scene-mode .stage-status { position:absolute; left:50%; display:flex; align-items:center; gap:18px; color:var(--muted); font-size:.65rem; letter-spacing:.09em; transform:translateX(-50%); }
  .scene-mode .scroll-mark { display:flex; align-items:center; gap:8px; }
  .scene-mode .scroll-mark::before { content:""; width:22px; height:1px; background:currentColor; animation:scroll-pulse 1.8s ease-in-out infinite; }
}

@keyframes scroll-pulse { 0%,100% { transform:scaleX(.45); transform-origin:left; } 50% { transform:scaleX(1); transform-origin:left; } }

@media (min-width:821px) and (max-height:760px) {
  .scene-mode .hero-copy,.scene-mode .hero-summary { padding-top:26px; padding-bottom:24px; }
  .scene-mode .hero h1 { font-size:clamp(2.2rem,4vw,3.7rem); }
  .scene-mode .section-meta { padding-top:28px; }
  .scene-mode .section-copy,.scene-mode .contact-copy { padding-top:28px; padding-bottom:28px; }
  .scene-mode .section-copy h2,.scene-mode .contact h2 { font-size:clamp(1.8rem,3.2vw,3rem); }
  .scene-mode .services-list li { min-height:58px; }
  .scene-mode .ceo-label { margin-top:24px; }
}

@media (max-width:820px) {
  body { padding:18px; }
  .site-shell { border-radius:22px; }
  .topbar { grid-template-columns:1fr auto; padding:0 20px; }
  .topbar nav { display:none; }
  .hero { grid-template-columns:1fr; }
  .hero-copy,.hero-summary { min-height:auto; padding:48px 24px; border-right:0; }
  .hero-copy { gap:56px; }
  .hero-summary { padding-top:0; }
  .hero-actions { flex-wrap:wrap; }
  .hero-visual { height:400px; }
  .hero-visual img { object-position:62% center; }
  .hero-visual figcaption { left:24px; bottom:28px; max-width:210px; }
  .content-section,.contact { grid-template-columns:1fr; }
  .section-meta { padding:44px 24px 0; border-right:0; }
  .section-copy,.contact-copy { padding:28px 24px 58px; }
  .about .section-copy,.company-layout { grid-template-columns:1fr; gap:30px; }
  .title-row { align-items:start; flex-direction:column; gap:18px; }
  .services-list li { grid-template-columns:36px 1fr; gap:8px 12px; padding:20px 0; }
  .services-list p { grid-column:2; }
  .company-layout dl>div { grid-template-columns:1fr; gap:4px; }
}

@media (max-width:420px) {
  body { padding:8px; }
  .site-shell { border-radius:18px; }
  .brand span { font-size:.85rem; }
  .hero h1 { font-size:2.25rem; overflow-wrap:anywhere; }
  .hero-actions { align-items:stretch; flex-direction:column; }
  .button { width:100%; }
  .hero-visual { height:330px; }
  .visual-label { right:18px; bottom:18px; }
  .footer { align-items:flex-start; flex-direction:column; gap:8px; padding:24px; }
}

@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; animation:none!important; }
}

@media (forced-colors:active) {
  body::before,.ambient { display:none; }
  .site-shell,.hero-visual,.contact { color:CanvasText; background:Canvas; border:1px solid CanvasText; box-shadow:none; }
  .button { border:1px solid ButtonText; }
  .button-dark { color:ButtonText; background:ButtonFace; box-shadow:none; }
  .hero-visual::after { display:none; }
  .hero-visual figcaption,.visual-label { color:CanvasText; background:Canvas; border:1px solid CanvasText; }
}
