/* ===== Fonts (self-hosted subset) ===== */
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/NotoSansJP-300.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/NotoSansJP-400.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/NotoSansJP-500.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans JP"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/NotoSansJP-700.woff2") format("woff2"); }

/* ===== Reset / base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #141414; --body: #4d4d4d; --strong: #2e2e2e;
  --bg: #ffffff; --soft: #f6f6f6;
  --line: #ebebeb; --line2: #ededed; --line3: #d8d8d8; --line4: #e0e0e0;
  --m1: #9a9a9a; --m2: #a4a4a4; --m3: #b0b0b0; --m4: #aaa; --m5: #999; --m6: #777; --m7: #a6a6a6;
  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.95; -webkit-font-smoothing: antialiased; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== Reveal (progressive enhancement; visible by default) ===== */
[data-reveal] { opacity: 1; transform: none; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== Hero ===== */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 80px 24px; }
.hero__logo { width: clamp(210px, 38vw, 340px); height: auto; }
.hero__subtitle { margin-top: 30px; font-size: clamp(10px, 2.6vw, 12px); font-weight: 400; letter-spacing: 0.4em; color: var(--m1); text-transform: uppercase; text-align: center; }
.scroll-hint { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.scroll-hint__label { writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.3em; color: var(--m4); text-transform: uppercase; }
.scroll-hint__line { position: relative; width: 1px; height: 54px; background: var(--line4); display: block; }
.scroll-hint__bar { position: absolute; top: 0; left: 0; width: 1px; height: 100%; background: var(--ink); animation: scrollPulse 2.1s ease-in-out infinite; }
@keyframes scrollPulse { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ===== Sections ===== */
.section { max-width: 1040px; margin: 0 auto; display: flex; gap: clamp(36px, 6vw, 88px); padding: clamp(72px, 13vw, 150px) clamp(24px, 6vw, 72px); border-top: 1px solid var(--line); }
.sec-head { flex: none; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.sec-head__label { font-size: 10.5px; letter-spacing: 0.3em; color: var(--m2); text-transform: uppercase; }
.sec-head__line { width: 1px; height: 40px; background: var(--line3); }
.sec-head__jp { writing-mode: vertical-rl; font-size: clamp(21px, 3vw, 28px); font-weight: 700; letter-spacing: 0.18em; }
.sec-body { flex: 1; min-width: 0; }

/* ===== Service ===== */
.service { display: flex; flex-direction: column; gap: 18px; padding-bottom: clamp(40px, 6vw, 56px); }
.service--alt { padding-bottom: 0; padding-top: clamp(40px, 6vw, 56px); border-top: 1px solid var(--line2); }
.service__no { font-size: 11px; letter-spacing: 0.22em; color: var(--m3); }
.service__title { font-size: clamp(19px, 3.6vw, 23px); font-weight: 700; letter-spacing: 0.04em; }
.service__desc { font-size: 15px; color: var(--body); max-width: 540px; }
.service__desc p + p { margin-top: 16px; }

/* ===== Company info ===== */
.info { display: flex; flex-direction: column; max-width: 640px; }
.info__row { display: flex; gap: clamp(16px, 4vw, 36px); padding: 18px 0; border-bottom: 1px solid var(--line2); }
.info__label { flex: none; width: clamp(108px, 26vw, 168px); font-size: 13px; color: var(--m5); font-weight: 500; padding-top: 1px; }
.info__value { font-size: 15px; color: var(--strong); }

/* ===== Contact ===== */
.contact__lead { font-size: 15px; color: var(--body); margin-bottom: 32px; max-width: 540px; }
.mail-link { position: relative; display: inline-block; font-size: clamp(22px, 5.5vw, 34px); font-weight: 300; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.mail-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.mail-link:hover::after { transform: scaleX(1); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer__inner { max-width: 1040px; margin: 0 auto; padding: 30px clamp(24px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.footer__name { font-size: 12.5px; color: var(--m6); letter-spacing: 0.06em; }
.footer__copy { font-size: 11.5px; color: var(--m7); letter-spacing: 0.06em; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .section { flex-direction: column; gap: 32px; padding-top: clamp(64px, 16vw, 110px); padding-bottom: clamp(64px, 16vw, 110px); }
  .sec-head { flex-direction: row; align-items: baseline; gap: 14px; }
  .sec-head__jp { writing-mode: horizontal-tb; }
  .sec-head__line { display: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint__bar { animation: none; }
}
