:root {
  --color-accent: #0052FF;
  --color-accent-tint: #EBF1FF;
  --color-text: #111111;
  --color-text-sub: #555555;
  --color-border: #E5E5E5;
  --color-bg: #FFFFFF;
  --font-ja: "Zen Kaku Gothic New", sans-serif;
  --font-en: "DM Sans", sans-serif;
  --max-w: 1080px;
  --gutter: 24px;
  --section-gap: 160px;
  --header-h: 72px;
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --section-gap: 96px; --header-h: 60px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border: 0; border-radius: 999px;
  background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-ja); font-size: 15px; font-weight: 500; letter-spacing: .06em;
  cursor: pointer; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn--sm { padding: 8px 22px; font-family: var(--font-en); font-size: 14px; letter-spacing: .02em; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.header.is-scrolled, .header.is-menu-open {
  background: rgb(255 255 255 / .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-color: var(--color-border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-en); font-size: 20px; font-weight: 600; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.nav__list a { transition: color .2s; }
.nav__list a:hover { color: var(--color-accent); }
.nav-toggle { display: none; }

@media (max-width: 767px) {
  .nav-toggle {
    display: block; position: relative; width: 40px; height: 40px;
    padding: 0; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span {
    position: absolute; left: 10px; right: 10px; height: 2px;
    background: var(--color-text); transition: transform .3s, top .3s;
  }
  .nav-toggle span:nth-child(1) { top: 15px; }
  .nav-toggle span:nth-child(2) { top: 23px; }
  .is-menu-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .is-menu-open .nav-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }
  .nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 28px;
    padding: 28px var(--gutter) 36px;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
  }
  .is-menu-open .nav { display: flex; }
  .nav__list { flex-direction: column; gap: 20px; font-size: 18px; }
}

/* Footer */
.footer { margin-top: var(--section-gap); padding: 48px 0; border-top: 1px solid var(--color-border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.footer__tagline { margin: 4px 0 0; font-family: var(--font-en); font-size: 14px; font-weight: 500; color: var(--color-accent); letter-spacing: .01em; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: var(--color-text-sub); }
.footer__meta a:hover { color: var(--color-accent); }

/* Section common */
.section { padding-top: var(--section-gap); }
.section__label {
  margin: 0 0 16px;
  font-family: var(--font-en); font-size: 13px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--color-accent);
}
.section__title { margin: 0 0 40px; word-break: keep-all; overflow-wrap: anywhere; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.5; letter-spacing: .04em; }

/* Hero */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 100svh; padding-top: var(--header-h);
}
.hero > .container { width: 100%; }
.hero__title { margin: 0 0 20px; font-size: clamp(34px, 6.4vw, 72px); font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
.hero__tagline { margin: 0 0 48px; font-family: var(--font-en); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; letter-spacing: .01em; color: var(--color-accent); }
.horizon {
  position: absolute; left: 0; right: 0; bottom: 12svh;
  height: 2px; background: var(--color-accent); transform-origin: left center;
}

/* Mission */
.mission__body { max-width: 640px; font-size: 17px; }
.mission__body p { margin: 0 0 1.4em; }

/* Services */
.section--tint { margin-top: var(--section-gap); padding-bottom: var(--section-gap); background: var(--color-accent-tint); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card { padding: 40px 36px; border-radius: 12px; background: var(--color-bg); }
.card__icon { width: 32px; height: 32px; margin-bottom: 24px; color: var(--color-accent); }
.card__title { margin: 0 0 12px; font-size: 19px; font-weight: 700; }
.card__text { margin: 0; font-size: 15px; line-height: 1.85; color: var(--color-text-sub); }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 0; padding: 0; list-style: none; }
.value { padding-top: 24px; border-top: 2px solid var(--color-text); }
.value__num { margin: 0 0 12px; font-family: var(--font-en); font-size: 13px; color: var(--color-text-sub); }
.value__en { margin: 0 0 6px; font-family: var(--font-en); font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1.3; letter-spacing: 0; color: var(--color-accent); }
.value__ja { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.value__text { margin: 0; font-size: 15px; color: var(--color-text-sub); }

@media (max-width: 767px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 32px 24px; }
  .values { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* Company */
.company-table { width: 100%; max-width: 760px; border-collapse: collapse; }
.company-table th, .company-table td { padding: 22px 0; border-bottom: 1px solid var(--color-border); font-size: 15px; text-align: left; vertical-align: top; }
.company-table tr:first-child th, .company-table tr:first-child td { border-top: 1px solid var(--color-border); }
.company-table th { width: 160px; font-weight: 500; color: var(--color-text-sub); }

/* Contact */
.contact__lead { margin: -16px 0 48px; color: var(--color-text-sub); }
.contact__mail { display: grid; gap: 16px; justify-items: start; }
.contact__address { margin: 0; font-family: var(--font-en); font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: .01em; }
.contact__note { margin: 0; font-size: 13px; color: var(--color-text-sub); }
.contact__note a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

/* Sub pages */
.page { padding-top: calc(var(--header-h) + 96px); min-height: 70svh; }
.page__title { margin: 0 0 24px; font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.5; }
.page__lead { margin: 0 0 40px; color: var(--color-text-sub); }

@media (max-width: 767px) {
  .company-table th { width: 96px; }
}

/* Prose (privacy) */
.prose { max-width: 760px; font-size: 15px; }
.prose h2 { margin: 48px 0 12px; font-size: 18px; font-weight: 700; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.4em; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose__date { margin-top: 48px !important; color: var(--color-text-sub); text-align: right; }

/* Motion */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.cards [data-reveal]:nth-child(2), .values [data-reveal]:nth-child(2) { transition-delay: .1s; }
.cards [data-reveal]:nth-child(3), .values [data-reveal]:nth-child(3) { transition-delay: .2s; }
.cards [data-reveal]:nth-child(4) { transition-delay: .3s; }
.hero [data-reveal]:nth-child(2) { transition-delay: .15s; }
.hero [data-reveal]:nth-child(3) { transition-delay: .3s; }

@keyframes horizon { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.horizon { animation: horizon 1.6s cubic-bezier(.2, .7, .2, 1) .5s both; }

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

.section__title--en { font-family: var(--font-en); font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; letter-spacing: 0; }

/* Service cards (top) */
.cards > li { display: flex; }
.card--link { display: flex; flex-direction: column; width: 100%; transition: transform .25s, box-shadow .25s; }
.card--link:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -16px var(--color-accent); }
.card__more { margin-top: auto; padding-top: 24px; font-size: 14px; font-weight: 500; color: var(--color-accent); }

/* Service detail pages */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; font-size: 13px; color: var(--color-text-sub); }
.breadcrumb a:hover { color: var(--color-accent); }
.service-lead { max-width: 720px; margin: 0; font-size: 17px; }

.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.pain { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; border: 1px solid var(--color-border); border-radius: 12px; }
.pain__icon { width: 32px; height: 32px; color: var(--color-accent); }
.pain__text { margin: 0; font-weight: 500; line-height: 1.8; }

.menu-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.menu-item { display: flex; gap: 24px; align-items: flex-start; padding: 32px; border-radius: 12px; background: var(--color-bg); }
.menu-item__icon { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--color-accent-tint); color: var(--color-accent); }
.menu-item__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.menu-item__text { margin: 0; font-size: 15px; color: var(--color-text-sub); }

.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin: 0; padding: 0; list-style: none; }
.strength { padding-top: 24px; border-top: 2px solid var(--color-text); }
.strength__num { margin: 0 0 12px; font-family: var(--font-en); font-size: 28px; font-weight: 600; color: var(--color-accent); letter-spacing: 0; }
.strength__title { margin: 0 0 12px; word-break: keep-all; overflow-wrap: anywhere; font-size: 18px; font-weight: 700; line-height: 1.6; }
.strength__text { margin: 0; font-size: 15px; color: var(--color-text-sub); }

.results__note { margin: -24px 0 32px; font-size: 13px; color: var(--color-text-sub); }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.result { display: flex; word-break: keep-all; overflow-wrap: anywhere; gap: 12px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--color-border); font-weight: 500; }
.result__icon { flex: none; width: 20px; height: 20px; color: var(--color-accent); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: 12px; background: var(--color-accent-tint); }
.step__num { margin: 0 0 8px; font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
.step__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.step__text { margin: 0; font-size: 14px; color: var(--color-text-sub); line-height: 1.8; }

.cta { padding: 64px 48px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-bg); color: var(--color-text); text-align: center; }
.cta__title { margin: 0 0 16px; word-break: keep-all; overflow-wrap: anywhere; font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
.cta__text { margin: 0 auto 32px; max-width: 560px; color: var(--color-text-sub); }

.pains [data-reveal]:nth-child(2), .menu-list [data-reveal]:nth-child(2), .strengths [data-reveal]:nth-child(2), .steps [data-reveal]:nth-child(2) { transition-delay: .1s; }
.pains [data-reveal]:nth-child(3), .menu-list [data-reveal]:nth-child(3), .strengths [data-reveal]:nth-child(3), .steps [data-reveal]:nth-child(3) { transition-delay: .2s; }
.steps [data-reveal]:nth-child(4) { transition-delay: .3s; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pains, .strengths, .results, .steps { grid-template-columns: minmax(0, 1fr); }
  .strengths { gap: 40px; }
  .menu-item { gap: 16px; padding: 24px 20px; }
  .cta { padding: 48px 24px; }
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { flex: none; width: 48px; height: 33px; }
@media (max-width: 767px) { .logo__mark { width: 34px; height: 24px; } }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.products > li { display: flex; }
.product { display: flex; gap: 20px; align-items: flex-start; width: 100%; padding: 28px; border: 1px solid var(--color-border); border-radius: 12px; transition: border-color .25s, transform .25s; flex-wrap: wrap; }
.product:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.product__icon { flex: none; width: 64px; height: 64px; border-radius: 16px; }
.product__body { flex: 1; min-width: 0; }
.product__genre { margin: 0 0 2px; font-size: 12px; color: var(--color-text-sub); }
.product__name { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.product__text { margin: 0; font-size: 15px; color: var(--color-text-sub); }
.product__more { width: 100%; padding-left: 84px; font-size: 14px; font-weight: 500; color: var(--color-accent); }
@media (max-width: 767px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .product { padding: 24px 20px; }
  .product__more { padding-left: 0; }
}

/* Business areas inside Services */
.biz + .biz { margin-top: 64px; }
.biz__title { display: flex; align-items: baseline; gap: 14px; margin: 0 0 24px; font-size: 20px; font-weight: 700; }
.biz__num { font-family: var(--font-en); font-size: 15px; font-weight: 600; color: var(--color-accent); }
.biz .product { background: var(--color-bg); border-color: transparent; }
.biz .product:hover { border-color: var(--color-accent); }

/* Product pages */
.p-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.p-hero__genre { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 14px; font-weight: 500; color: var(--color-text-sub); }
.p-hero__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.p-hero__name { margin: 0 0 8px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; line-height: 1.3; }
.p-hero__catch { margin: 0 0 20px; word-break: keep-all; overflow-wrap: anywhere; font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: var(--color-accent); }
.p-hero .service-lead { margin-bottom: 32px; font-size: 16px; }
.p-hero__shot, .p-shots figure { margin: 0; }
.p-hero__shot img, .p-shots img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .35); }

.p-why { max-width: 760px; }
.p-why p { margin: 0 0 1.4em; font-size: 16px; line-height: 2; }
.p-why p:last-child { margin-bottom: 0; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.feature { padding: 32px 28px; border-radius: 12px; background: var(--color-bg); }
.feature__icon { width: 40px; height: 40px; margin-bottom: 20px; padding: 8px; border-radius: 10px; background: var(--color-accent-tint); color: var(--color-accent); }
.feature__title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature__text { margin: 0; font-size: 15px; line-height: 1.8; color: var(--color-text-sub); }
.features [data-reveal]:nth-child(3n+2) { transition-delay: .1s; }
.features [data-reveal]:nth-child(3n) { transition-delay: .2s; }

.p-shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.p-shots figcaption { margin-top: 12px; font-size: 13px; color: var(--color-text-sub); text-align: center; }

.faq { max-width: 800px; border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 20px; height: 20px; color: var(--color-accent); transition: transform .25s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { margin: 0; padding: 0 0 24px; font-size: 15px; line-height: 1.9; color: var(--color-text-sub); }

@media (max-width: 960px) {
  .p-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 24px 20px; }
  .p-shots { grid-template-columns: minmax(0, 1fr); }
  .p-shots__sp { max-width: 240px; margin: 0 auto; }
}
