/* ===== Tokens ===== */
:root {
  --c-charcoal: #4A4A4A;
  --c-neon: #E6F803;
  --c-navy: #0F3A85;
  --c-gray: #DCE0E3;
  --c-white: #FFFFFF;

  --c-text: var(--c-charcoal);
  --c-bg: var(--c-white);
  --c-bg-sub: var(--c-gray);
  --c-line: rgba(74, 74, 74, 0.18);

  --f-en: "Cormorant Garamond", "Times New Roman", serif;
  --f-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --f-ja-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --sec-space: clamp(112px, 14vw, 200px);
  --header-h: 72px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-ja);
  font-weight: 400;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
.en { font-family: var(--f-en); font-weight: 300; letter-spacing: 0.01em; }
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}
.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
}
.logo {
  font-family: var(--f-en);
  font-size: 28px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--c-navy);
  line-height: 1;
}
.gnav { display: flex; align-items: center; gap: 36px; }
.gnav__link {
  font-family: var(--f-en);
  font-size: 17px; letter-spacing: 0.06em;
  position: relative;
  transition: opacity .5s ease-out;
}
.gnav__link--sub::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease-out;
}
.gnav__link--sub:hover::after { transform: scaleX(1); }
.gnav__link--contact {
  background: var(--c-navy); color: var(--c-white);
  padding: 8px 22px; line-height: 1.6;
}
.gnav__link--contact:hover { opacity: .8; }

/* ===== FV ===== */
.fv {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  overflow: hidden;
}
.fv__inner { position: relative; z-index: 1; max-width: var(--container); width: 100%; margin: 0 auto; }
.fv__label {
  font-family: var(--f-en); font-size: 15px; letter-spacing: 0.2em;
  color: var(--c-navy); margin-bottom: 32px;
}
.fv__title {
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 1.04;
  color: var(--c-navy);
}
.fv__lead {
  margin-top: 48px;
  font-family: var(--f-ja-serif);
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.14em;
}
.fv__lines {
  position: absolute;
  right: -6vw; top: 50%;
  width: min(54vw, 760px); height: auto;
  transform: translateY(-46%);
  color: var(--c-gray);
}
.fv__dot { fill: var(--c-navy); }
.fv__line { display: block; }
.fv__orbit { fill: var(--c-navy); }
.fv__spin { transform-box: view-box; transform-origin: 50% 50%; }
.fv__spin--slow { animation: spin 160s linear infinite; }
.fv__spin--outer { animation: spin 60s linear infinite; }
.fv__spin--inner { animation: spin 40s linear infinite reverse; }
.fv__dot { animation: pulse 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }
.nw { display: inline-block; }

/* ===== Section common ===== */
.section { padding: var(--sec-space) 0; }
.sec-title {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1; color: var(--c-navy);
}
.sec-sub { margin-top: 18px; font-size: 13px; letter-spacing: 0.16em; }

.split { display: grid; grid-template-columns: 4fr 7fr; gap: 64px; }

/* ===== About ===== */
.about__text { font-size: 16px; line-height: 2.3; }
.about__text + .about__text { margin-top: 2.2em; }
.about__text--em {
  font-family: var(--f-ja-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 2.2;
  color: var(--c-navy);
}

/* ===== Service ===== */
.service { background: var(--c-bg-sub); }
.service__head { margin-bottom: clamp(72px, 9vw, 128px); }
.service__list { display: grid; gap: clamp(88px, 10vw, 144px); }
.svc {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.svc__visual {
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.55);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.svc__visual svg { width: 78%; height: auto; }
.svg-accent { fill: var(--c-neon); }
.svc__num {
  font-size: clamp(88px, 10vw, 152px);
  line-height: 0.9; color: var(--c-navy);
  margin-bottom: 24px;
}
.svc__title {
  font-family: var(--f-ja-serif); font-weight: 500;
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.7; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.svc__text { font-size: 15px; line-height: 2.1; max-width: 32em; }

/* ===== Company ===== */
.profile { border-top: 1px solid var(--c-line); }
.profile__row {
  display: grid; grid-template-columns: 9em 1fr; gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--c-line);
}
.profile dt { font-size: 13px; letter-spacing: 0.14em; padding-top: 2px; }
.profile dd { font-size: 15px; min-height: 1.5em; }
.profile__list li + li { margin-top: 4px; }
.text-link {
  border-bottom: 1px solid currentColor;
  transition: opacity .5s ease-out;
}
.text-link:hover { opacity: .65; }

/* ===== Contact ===== */
.contact {
  background: var(--c-navy);
  color: var(--c-white);
  padding: clamp(104px, 12vw, 168px) 0;
}
.contact__inner { text-align: center; }
.contact__title { color: var(--c-white); }
.contact__text {
  margin-top: 28px; font-size: 15px; letter-spacing: 0.12em;
}
.btn {
  margin-top: 48px;
  display: inline-flex; align-items: center; gap: 20px;
  padding: 18px 40px;
  background: var(--c-neon); color: var(--c-navy);
  font-family: var(--f-en); font-size: 20px; font-weight: 500; letter-spacing: 0.04em;
  transition: opacity .5s ease-out;
}
.btn:hover { opacity: .85; }
.btn__arrow { font-family: var(--f-ja); font-size: 16px; }

/* ===== Footer ===== */
.site-footer { padding: 48px 0; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo--footer { font-size: 24px; }
.copyright { font-family: var(--f-en); font-size: 14px; letter-spacing: 0.08em; }

/* ===== Motion ===== */
.js .fade { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease-out, transform 1.1s ease-out; }
.js .fade.is-in { opacity: 1; transform: none; }

/* FV：見出しが1行ずつ下から出る */
.js .fv__line, .js .fv__label, .js .fv__lead { opacity: 0; transform: translateY(28px); animation: rise 1.2s cubic-bezier(.2,.7,.2,1) forwards; }
.js .fv__label { animation-delay: .1s; }
.js .fv__line:nth-child(1) { animation-delay: .25s; }
.js .fv__line:nth-child(2) { animation-delay: .4s; }
.js .fv__line:nth-child(3) { animation-delay: .55s; }
.js .fv__line:nth-child(4) { animation-delay: .7s; }
.js .fv__lead { animation-delay: 1.1s; }
.js .fv__lines { opacity: 0; animation: appear 2s ease-out .4s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes appear { to { opacity: 1; } }

/* Service：パネルは横から・番号と文章は少し遅れて */
.js .svc.fade { transform: none; }
.js .svc .svc__visual { opacity: 0; transform: translateX(-40px); transition: opacity 1.1s ease-out, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.js .svc .svc__body > * { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-out, transform 1s ease-out; }
.js .svc.is-in .svc__visual { opacity: 1; transform: none; }
.js .svc.is-in .svc__body > * { opacity: 1; transform: none; }
.js .svc.is-in .svc__num { transition-delay: .25s; }
.js .svc.is-in .svc__title { transition-delay: .4s; }
.js .svc.is-in .svc__text { transition-delay: .55s; }
.svc .svg-accent circle { animation: blink 3.2s ease-in-out infinite; }
.svc .svg-accent circle:nth-child(2n) { animation-delay: 1.1s; }
.svc .svg-accent circle:nth-child(3n) { animation-delay: 2.1s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  body { font-size: 14px; }
  .logo { font-size: 24px; }
  .gnav__link--sub { display: none; }
  .gnav__link--contact { font-size: 15px; padding: 6px 16px; }

  .fv { min-height: 88vh; align-items: flex-end; padding-bottom: 72px; }
  .fv__lines { width: 120vw; right: -40vw; top: 34%; }
  .fv__lead { margin-top: 32px; }

  .split { grid-template-columns: 1fr; gap: 48px; }
  .about__text { font-size: 14.5px; }
  .about__text--em { font-size: 16px; }

  .svc { grid-template-columns: 1fr; gap: 32px; }
  .svc__num { margin-bottom: 16px; }

  .profile__row { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; }

  .btn { font-size: 17px; padding: 16px 24px; gap: 12px; }
  .site-footer__inner { flex-direction: column; }
}
