/* =========================================================
   DOMINE Corporate Site — style.css (renewal)
   White × orange / editorial layout with dynamic motion
   ========================================================= */

:root {
  --orange: #F47C20;
  --orange-light: #ff9d4d;
  --orange-deep: #d9650f;
  --orange-grad: linear-gradient(90deg, #d9650f, #F47C20 55%, #ffb066);
  --bg: #ffffff;
  --bg-2: #faf6f1;
  --bg-3: #ffffff;
  --line: rgba(20, 20, 25, 0.10);
  --text: #1b1b20;
  --heading: #141417;
  --muted: #6c6c75;
  --shadow: 0 18px 50px rgba(30, 20, 10, 0.10);
  --shadow-sm: 0 8px 24px rgba(30, 20, 10, 0.07);
  --max: 1160px;
  --header-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Scroll progress (one orange line) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130;
  background: var(--orange-grad);
  box-shadow: 0 0 12px rgba(244, 124, 32, .45);
  transform: scaleX(0); transform-origin: left;
  pointer-events: none;
}

/* ---------- Ambient glows (subtle) ---------- */
.glow { position: fixed; border-radius: 50%; filter: blur(130px); opacity: .28; z-index: 0; pointer-events: none; }
.glow-1 { width: 560px; height: 560px; background: rgba(244,124,32,.45); top: -220px; right: -200px; }
.glow-2 { width: 460px; height: 460px; background: rgba(255,188,130,.4); bottom: -220px; left: -220px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(255,255,255,0);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(30,20,10,.05);
}
.header .logo img { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 13.5px; letter-spacing: 1.5px; color: var(--muted);
  position: relative; transition: color .3s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav a:hover, .nav a.active { color: var(--heading); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.nav .btn-nav {
  padding: 9px 22px; border-radius: 999px;
  background: var(--orange); color: #fff; font-weight: 600;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.nav .btn-nav::after { display: none; }
.nav .btn-nav:hover { background: var(--orange-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(244,124,32,.35); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.burger span { width: 26px; height: 2px; background: var(--heading); transition: .3s var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px; font-weight: 600; font-size: 15px;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(244,124,32,.28); }
.btn-primary::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 34px;
  background: rgba(255,255,255,.45); filter: blur(6px);
  transform: skewX(-18deg) translateX(-140%);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--orange-deep); box-shadow: 0 16px 34px rgba(244,124,32,.4); }
.btn-primary:hover::before { animation: sheen 1s var(--ease-out); }
@keyframes sheen {
  0% { transform: skewX(-18deg) translateX(-140%); }
  100% { transform: skewX(-18deg) translateX(640%); }
}
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(244,124,32,.10), transparent 65%),
    radial-gradient(700px 420px at 12% 88%, rgba(255,176,102,.12), transparent 60%),
    #fff;
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; }
.hero-lines .draw {
  fill: none;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: drawline 1.7s cubic-bezier(.6,.05,.2,1) forwards;
}
.hero-lines .draw-main { stroke: url(#lineGrad); stroke-width: 2.4; opacity: .85; animation-delay: .35s; animation-duration: 2.1s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.hero-lines .glint {
  fill: none; stroke: #ffd9b5; stroke-width: 3;
  stroke-dasharray: .06 .94; stroke-dashoffset: 1.06;
  opacity: .95; stroke-linecap: round;
  animation: glint 4.8s cubic-bezier(.4,0,.2,1) 2.6s infinite;
}
@keyframes glint {
  0% { stroke-dashoffset: 1.06; }
  55% { stroke-dashoffset: -.06; }
  100% { stroke-dashoffset: -.06; }
}

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 110px; will-change: transform, opacity; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; letter-spacing: .34em; color: var(--orange);
  text-transform: uppercase; margin-bottom: 28px;
}
.hero .eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--orange); }
.hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 5.2rem);
  line-height: 1.16; font-weight: 800; letter-spacing: .02em; color: var(--heading);
  margin-bottom: 30px;
}
.hero h1 .accent {
  background: var(--orange-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .rise { display: inline-block; }
.hero p.lead { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--muted); max-width: 620px; margin-bottom: 42px; }
.hero .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero entrance sequence */
.fade-seq { opacity: 0; animation: fadeUp .9s ease forwards; }
.hero h1 .fade-seq { animation-name: riseUp; animation-duration: 1.1s; animation-timing-function: var(--ease-out); }
@keyframes riseUp {
  from { opacity: 0; transform: translateY(64px); clip-path: inset(0 0 100% 0); letter-spacing: .2em; }
  60% { opacity: 1; }
  to { opacity: 1; transform: none; clip-path: inset(-10% 0 -12% 0); letter-spacing: .02em; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero .eyebrow.fade-seq { animation-delay: .55s; }
.hero h1 .fade-seq:nth-of-type(1) { animation-delay: .75s; }
.hero h1 .fade-seq:nth-of-type(2) { animation-delay: .95s; }
.hero .lead.fade-seq { animation-delay: 1.25s; }
.hero .cta-row.fade-seq { animation-delay: 1.45s; }

/* Scroll cue */
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-size: 10.5px; letter-spacing: 3px; color: var(--muted); writing-mode: vertical-rl;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 48px; margin: 12px auto 0;
  background: var(--orange);
  transform-origin: top; animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); } 45% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Section scaffolding ---------- */
.section { position: relative; z-index: 1; padding: 120px 0; }
.section-alt { background: var(--bg-2); }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; letter-spacing: .3em; color: var(--orange); text-transform: uppercase;
  margin-bottom: 18px;
}
.section-head .tag::before { content: ""; width: 26px; height: 1px; background: var(--orange); }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; line-height: 1.3;
  letter-spacing: .01em; color: var(--heading);
}
.section-head p { color: var(--muted); margin-top: 18px; }

/* Section title wipe (plays when .section-head.reveal becomes .in) */
.section-head.reveal { transform: none; }
.section-head.reveal h2 {
  clip-path: inset(0 0 100% 0); transform: translateY(40px);
  transition: clip-path 1s var(--ease-out) .08s, transform 1s var(--ease-out) .08s;
}
.section-head.reveal.in h2 { clip-path: inset(-10% 0 -10% 0); transform: none; }

/* ---------- Mission band ---------- */
.mission { text-align: center; }
.mission .quote { font-size: clamp(1.8rem, 5vw, 3.3rem); font-weight: 800; line-height: 1.45; letter-spacing: .04em; color: var(--heading); }
.mission .quote .accent { color: var(--orange); }
.mission .sub { color: var(--muted); margin-top: 28px; max-width: 640px; margin-inline: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--orange-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-8px); border-color: rgba(244,124,32,.45); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card .num { font-size: 12.5px; color: var(--orange); letter-spacing: .25em; margin-bottom: 18px; }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(244,124,32,.12); color: var(--orange); margin-bottom: 20px;
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}
.card:hover .ic { transform: translateY(-4px) rotate(-4deg); background: var(--orange); color: #fff; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--heading); }
.card p { color: var(--muted); font-size: .96rem; }
.card .badge { display: inline-block; margin-top: 18px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.card .lead-q { font-weight: 700; color: var(--heading); margin-bottom: 10px; font-size: 1.02rem; }
.card .note { display: block; margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .visual {
  aspect-ratio: 4/3; border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, rgba(244,124,32,.24), transparent 60%),
    linear-gradient(160deg, #fff, var(--bg-2));
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  overflow: hidden;
}
.split .visual .mark { width: 44%; transition: transform .8s var(--ease); }
.split .visual:hover .mark { transform: rotate(180deg) scale(1.06); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; z-index: 1; padding: 100px 0; text-align: center; }
.cta-band .box {
  position: relative; overflow: hidden;
  border: 1px solid rgba(244,124,32,.22); border-radius: 28px; padding: 76px 30px;
  background: radial-gradient(circle at 50% 0%, rgba(244,124,32,.13), transparent 60%), var(--bg-2);
  box-shadow: var(--shadow-sm);
}
.cta-band .box::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--orange-grad);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: 18px; color: var(--heading); }
.cta-band p { color: var(--muted); margin-bottom: 34px; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative; z-index: 1; padding: calc(var(--header-h) + 96px) 0 72px;
  background:
    radial-gradient(700px 360px at 82% 0%, rgba(244,124,32,.09), transparent 60%),
    #fff;
}
.page-hero .tag { font-size: 12.5px; letter-spacing: .3em; color: var(--orange); text-transform: uppercase; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; margin-top: 14px; color: var(--heading); }
.page-hero p { color: var(--muted); margin-top: 16px; max-width: 640px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Info table ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 22px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 200px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.info-table td { color: var(--text); }

/* ---------- Message / about ---------- */
.message { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.message .body h2 { color: var(--heading); }
.message .body p { margin-bottom: 20px; color: #44444c; }
.message .sign { margin-top: 30px; }
.message .sign .role { color: var(--muted); font-size: .9rem; }
.message .sign .name { font-size: 1.4rem; font-weight: 700; margin-top: 4px; color: var(--heading); }
.message .visual {
  aspect-ratio: 4/3; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, rgba(244,124,32,.22), transparent 60%), linear-gradient(160deg, #fff, var(--bg-2));
  box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.message .visual .mark { width: 44%; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; }
.value {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--bg-3);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.value:hover { transform: translateY(-6px); border-color: rgba(244,124,32,.4); }
.value .v-num { color: var(--orange); font-size: 12.5px; letter-spacing: .25em; margin-bottom: 12px; }
.value h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--heading); }
.value p { color: var(--muted); font-size: .92rem; }

/* ---------- Services detail ---------- */
.service-block { display: grid; grid-template-columns: 80px 1fr; gap: 30px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.service-block .idx { font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service-block h3 { font-size: 1.6rem; margin-bottom: 14px; color: var(--heading); }
.service-block p { color: var(--muted); max-width: 720px; }
.service-block .tags { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.service-block .tags span {
  font-size: 13px; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.service-block .tags span:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.service-block.future { opacity: .8; }
.service-block.future h3::after {
  content: "準備中"; font-size: 12px; color: var(--orange); border: 1px solid var(--orange);
  border-radius: 999px; padding: 3px 10px; margin-left: 14px; vertical-align: middle;
}

/* ---------- Scope note ---------- */
.scope-note {
  margin-top: 34px; border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: 14px; padding: 30px 32px; background: var(--bg-3); box-shadow: var(--shadow-sm);
}
.scope-note h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--heading); }
.scope-note p { color: var(--muted); }
.scope-note .em { color: var(--heading); font-weight: 600; }

/* ---------- News ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 160px 120px 1fr; gap: 20px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), padding-left .3s var(--ease);
}
.news-item:hover { background: var(--bg-2); padding-left: 18px; }
.news-item time { color: var(--muted); font-size: .92rem; }
.news-item .cat { font-size: 12px; color: var(--orange); border: 1px solid rgba(244,124,32,.4); border-radius: 999px; padding: 3px 12px; justify-self: start; }
.news-item .title { font-weight: 600; color: var(--heading); }
.news-empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info .item { margin-bottom: 30px; }
.contact-info .item .label { font-size: 12.5px; color: var(--orange); letter-spacing: .2em; margin-bottom: 6px; }
.contact-info .item .val { font-size: 1.05rem; }

.form { background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px; padding: 38px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--muted); }
.field label .req { color: var(--orange); }
.field input, .field textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,124,32,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 60px 0 36px; background: var(--bg-2); }
.footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer .brand img { height: 26px; margin-bottom: 16px; }
.footer .brand p { color: var(--muted); font-size: .92rem; max-width: 300px; }
.footer .cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer .col h4 { font-size: 12.5px; letter-spacing: .2em; color: var(--muted); margin-bottom: 16px; }
.footer .col a { display: block; color: var(--text); font-size: .95rem; margin-bottom: 10px; transition: color .3s var(--ease), transform .3s var(--ease); }
.footer .col a:hover { color: var(--orange); transform: translateX(4px); }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- Scroll reveal (staggered, replays) ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: #fff; padding: 40px; transform: translateX(100%);
    transition: transform .45s var(--ease); border-left: 1px solid var(--line);
    box-shadow: -10px 0 40px rgba(30,20,10,.08);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.1rem; }
  .burger { display: flex; z-index: 101; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .message, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .message .visual { order: -1; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .info-table th { width: 130px; }
  .service-block { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .section-head.reveal h2 { opacity: 1; transform: none; transition: none; clip-path: none; }
  .fade-seq { opacity: 1; animation: none; }
  .hero-lines .draw { animation: none; stroke-dashoffset: 0; }
  .hero-lines .glint { animation: none; opacity: 0; }
  .scroll-hint::after { animation: none; }
  html { scroll-behavior: auto; }
}
