@charset "UTF-8";
/* ==========================================================================
   Reverize corporate theme
   1. Design tokens      6. Front page sections
   2. Base / reset       7. Sub pages
   3. Layout utilities   8. Footer
   4. Components         9. Motion / responsive / print
   5. Header / nav
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --ink: #0e1116;
  --ink-2: #3c444e;
  --ink-3: #6d7681;
  --line: #e5e3de;
  --line-strong: #cfccc5;
  --paper: #ffffff;
  --paper-2: #f7f6f3;
  --paper-3: #efeee9;
  --accent: #2b57e0;
  --accent-dark: #1c3fb0;
  --accent-light: #8aa4ff;
  --accent-soft: #eef2ff;
  --danger: #c0392b;

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-md: 0 2px 6px rgba(14, 17, 22, .06), 0 18px 48px rgba(14, 17, 22, .08);

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Inter", var(--font-ja);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 2. Base / reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  line-break: strict;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  /* 日本語が文節の途中で折り返されないようにする（未対応ブラウザでは通常の折り返し） */
  overflow-wrap: normal;
  word-break: auto-phrase;
  text-wrap: balance;
}
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }
a:hover { color: var(--accent-dark); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px; z-index: 200;
  padding: 10px 18px;
  background: var(--ink); color: #fff; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: #fff; }

/* 3. Layout utilities ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(72px, 11vw, 132px); }
.section--tight { padding-block: clamp(56px, 8vw, 92px); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #fff; }
.section--line-top { border-top: 1px solid var(--line); }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 4. Components ---------------------------------------------------------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); line-height: 1;
}
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section--ink .kicker { color: var(--accent-light); }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head__title { margin-top: 18px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.42; }
.section-head__lead { margin-top: 20px; max-width: 46em; color: var(--ink-2); text-wrap: pretty; }
.section--ink .section-head__lead { color: rgba(255, 255, 255, .78); }
.section-head--center { text-align: center; }
.section-head--center .section-head__lead { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .04em; text-align: center;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.link-arrow::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .2s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { width: 30px; }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(26px, 3.2vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card__num { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--accent); }
.card__title { margin-top: 16px; font-size: 1.18rem; }
.card__title-en {
  margin-top: 6px; font-family: var(--font-en); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.card__text { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.card__foot { margin-top: auto; padding-top: 24px; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  padding: 4px 12px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); line-height: 1.8;
}
.card .tag { background: var(--paper-2); }

.check-list li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2); }
.check-list li + li { margin-top: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .74em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.num-list { counter-reset: num; }
.num-list > li { position: relative; padding-left: 56px; }
.num-list > li + li { margin-top: 28px; }
.num-list > li::before {
  counter-increment: num; content: counter(num, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-en); font-size: 13px; font-weight: 600; line-height: 1;
}
.num-list__title { font-size: 1.05rem; }
.num-list__text { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

.info-table { border-top: 1px solid var(--line); }
.info-table__row {
  display: grid; grid-template-columns: minmax(140px, 210px) 1fr; gap: 6px 24px;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.info-table__key { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--ink); }
.info-table__val { margin: 0; font-size: 15px; color: var(--ink-2); }
.info-table__val ol li { list-style: none; position: relative; padding-left: 2.2em; }
.info-table__val ol li + li { margin-top: 8px; }
.info-table__val ol li .n { position: absolute; left: 0; font-family: var(--font-en); font-size: 13px; color: var(--accent); }

.prose { color: var(--ink-2); }
.prose h2 { margin: 2.4em 0 .8em; font-size: 1.35rem; color: var(--ink); }
.prose h3 { margin: 2em 0 .7em; font-size: 1.12rem; color: var(--ink); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); font-size: 15px; text-align: left; }
.prose th { background: var(--paper-2); }
.prose .wp-block-image { margin: 1.5em 0; }

.notice { padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--paper-2); font-size: 14px; color: var(--ink-2); }
.notice--success { border-color: #bcd7c0; background: #f2f9f3; color: #1f5c2c; }
.notice--error { border-color: #e5bdb8; background: #fdf4f3; color: var(--danger); }
.notice strong { display: block; margin-bottom: 6px; color: inherit; }
.notice ul { margin-top: 8px; }
.notice li { position: relative; padding-left: 16px; }
.notice li::before { content: "・"; position: absolute; left: 0; }

/* 5. Header / navigation ------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); opacity: .72; }
.brand__mark { width: 34px; height: 34px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-en); font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.brand__sub { font-size: 10px; font-weight: 500; letter-spacing: .16em; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__list a {
  position: relative; display: inline-block; padding: 6px 0;
  color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: .06em;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__list a:hover { color: var(--accent); }
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--accent); }
.nav__list .current-menu-item > a::after, .nav__list .current_page_item > a::after { transform: scaleX(1); }

.nav__list .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 200px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__list li { position: relative; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__list .sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; }
.nav__list .sub-menu a::after { display: none; }
.nav__list .sub-menu a:hover { background: var(--paper-2); }

.nav-toggle {
  display: none; position: relative; z-index: 120;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff;
}
.nav-toggle__icon { display: block; }
.nav-toggle__bar { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--ink); transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 6. Front page ---------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(56px, 10vw, 110px)); padding-bottom: clamp(72px, 10vw, 120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(43, 87, 224, .10), transparent 68%),
    radial-gradient(46% 46% at 8% 82%, rgba(43, 87, 224, .06), transparent 70%),
    linear-gradient(180deg, var(--paper-2), var(--paper) 62%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .5;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 78%);
}
.hero__mark {
  position: absolute; right: -8%; top: 6%;
  width: min(620px, 58vw); opacity: .05;
  animation: spin 90s linear infinite;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title { margin-top: 26px; font-size: clamp(2rem, 5.6vw, 3.7rem); line-height: 1.34; letter-spacing: .005em; }
.hero__title .is-accent { color: var(--accent); }
.hero__lead { margin-top: 30px; max-width: 40em; font-size: clamp(15px, 1.5vw, 17px); color: var(--ink-2); }
.hero__actions { margin-top: 42px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__meta-item { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.hero__meta-item strong { font-family: var(--font-en); font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }

.about__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about__body { --stack-gap: 22px; color: var(--ink-2); }
.about__body p + p { margin-top: 0; }
.value-list { display: grid; gap: 20px; margin-top: 44px; }
.value {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.value__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.value__icon svg { width: 22px; height: 22px; }
.value__title { font-size: 1rem; }
.value__text { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

.news-list { border-top: 1px solid var(--line); }
.news-item { display: block; border-bottom: 1px solid var(--line); }
.news-item__link {
  display: grid; grid-template-columns: 108px 118px minmax(0, 1fr); gap: 8px 24px; align-items: center;
  padding: 24px 6px; color: var(--ink); transition: background-color .2s var(--ease), padding-left .2s var(--ease);
}
.news-item__link:hover { background: var(--paper-2); padding-left: 16px; color: var(--accent); }
.news-item__date { font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--ink-3); }
.news-item__cat {
  justify-self: start; padding: 3px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 11px; letter-spacing: .08em; color: var(--ink-2); line-height: 1.8;
}
.news-item__title { font-size: 15px; font-weight: 500; }

.cta { position: relative; overflow: hidden; }
.cta__inner { position: relative; z-index: 1; text-align: center; }
.cta__title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.45; }
.cta__text { margin-top: 20px; color: rgba(255, 255, 255, .74); }
.cta__actions { margin-top: 36px; }
.cta__mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 80vw); opacity: .05; filter: invert(1); }

/* 7. Sub pages ----------------------------------------------------------- */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 7vw, 84px)); padding-bottom: clamp(40px, 6vw, 64px); background: var(--paper-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero__mark { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 320px; opacity: .04; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { margin-top: 16px; font-size: clamp(1.75rem, 4vw, 2.7rem); }
.page-hero__lead { margin-top: 18px; max-width: 44em; color: var(--ink-2); text-wrap: pretty; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: .5; }

.service-block { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.service-block + .service-block { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.service-block__num { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--accent); }
.service-block__title { margin-top: 14px; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.service-block__title-en { margin-top: 8px; font-family: var(--font-en); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.service-block__text { color: var(--ink-2); }
.service-block__sub { margin-top: 34px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ink); }
.service-block__list { margin-top: 16px; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.product + .product { margin-top: 24px; }
.product__name {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
}
.product__lead { margin: 12px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--accent); line-height: 1.7; }
.product__text { color: var(--ink-2); }
.product__body .tag-list { margin-top: 24px; }

.flow { counter-reset: flow; display: grid; gap: 20px; }
.flow__item { position: relative; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.flow__item::before {
  counter-increment: flow; content: "STEP " counter(flow);
  display: block; margin-bottom: 10px;
  font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--accent);
}
.flow__title { font-size: 1.05rem; }
.flow__text { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

.philosophy__statement {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .02em;
  color: var(--ink);
}
.philosophy__text { margin-top: 22px; color: var(--ink-2); }
.philosophy__policies { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line-strong); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 5vw, 64px); align-items: start; }

.form { --stack-gap: 26px; }
.form__field + .form__field { margin-top: 26px; }
.form__label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.form__req { padding: 2px 8px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.8; }
.form__req--any { background: var(--paper-3); color: var(--ink-3); }
.form__hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.form__error { margin-top: 8px; font-size: 13px; color: var(--danger); }

.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
  font-family: inherit; font-size: 16px; line-height: 1.7;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 190px; resize: vertical; }
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233c444e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; padding-right: 44px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43, 87, 224, .12); }
.form .has-error input, .form .has-error select, .form .has-error textarea { border-color: var(--danger); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.checkbox input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }

.form__submit { margin-top: 36px; text-align: center; }
.form__note { margin-top: 16px; font-size: 13px; color: var(--ink-3); text-align: center; }

.contact-aside { --stack-gap: 20px; padding: clamp(26px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.contact-aside__title { font-size: 1rem; margin-bottom: 22px; }
.contact-aside__item + .contact-aside__item { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact-aside__key { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); }
.contact-aside__val { margin-top: 6px; font-size: 15px; color: var(--ink); word-break: break-all; }

.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); }
.post-body { margin-top: 40px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 14px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); font-family: var(--font-en); font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

.error-404 { text-align: center; padding-block: clamp(90px, 14vw, 160px); }
.error-404__code { font-family: var(--font-en); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; line-height: 1; color: var(--paper-3); }
.error-404__title { margin-top: 8px; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.error-404__text { margin-top: 20px; color: var(--ink-2); }
.error-404__actions { margin-top: 36px; }

/* 8. Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); font-size: 14px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: clamp(36px, 5vw, 72px); padding-block: clamp(56px, 7vw, 84px); }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .brand__mark { filter: invert(1); }
.site-footer .brand__sub { color: rgba(255, 255, 255, .5); }
.site-footer__address { margin-top: 24px; font-size: 13px; line-height: 2.1; color: rgba(255, 255, 255, .7); font-style: normal; }
/* 暗い背景ではアクセント色の青はコントラストが足りないため、白系にする */
.site-footer__address a { color: rgba(255, 255, 255, .88); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.site-footer__address a:hover { color: #fff; }
.site-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.site-footer__nav-title { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.site-footer__nav ul { margin-top: 16px; }
.site-footer__nav li + li { margin-top: 12px; }
.site-footer__nav a { color: rgba(255, 255, 255, .82); font-size: 14px; }
.site-footer__nav a:hover { color: #fff; opacity: .7; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--font-en); font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .5);
}
.site-footer__bottom a { color: rgba(255, 255, 255, .6); }
.site-footer__bottom a:hover { color: #fff; }

.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--ink); }
.to-top svg { width: 16px; height: 16px; }

/* 9. Motion / responsive / print ----------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }

/* JavaScriptが有効なときだけフェードインさせる（無効でも内容は必ず表示される） */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (min-width: 1025px) {
  /* 右カラムが長いので、見出しはスクロールに追従させる */
  .about__layout > .section-head { position: sticky; top: calc(var(--header-h) + 56px); }
}

@media (max-width: 1024px) {
  .about__layout { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; line-height: 1.9; }

  /* backdrop-filter は position:fixed の基準になってしまい、
     ドロワーがヘッダー内に閉じ込められるためモバイルでは使わない */
  .site-header {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle { display: block; }

  /* ドロワーを開いてもロゴは見えるようにする */
  .site-header .brand { position: relative; z-index: 120; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background: var(--paper);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 18px 4px; font-size: 16px; }
  .nav__list a::after { display: none; }
  .nav__list .sub-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; padding: 0 0 12px 16px; border: 0; box-shadow: none; background: transparent;
  }
  .nav__list .sub-menu a { padding: 10px 4px; font-size: 14px; color: var(--ink-2); }
  .nav__cta { margin-top: 28px; }
  .nav__cta .btn { width: 100%; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .hero__mark { right: -22%; top: auto; bottom: -6%; width: 80vw; }
  .hero__meta { gap: 10px 24px; }

  .news-item__link { grid-template-columns: 1fr; gap: 8px; padding: 20px 4px; }
  .news-item__link:hover { padding-left: 4px; }

  .info-table__row { grid-template-columns: 1fr; gap: 4px; padding: 18px 2px; }
  .info-table__key { color: var(--ink-3); font-size: 13px; }

  .flow__item { padding: 22px; }

  .num-list > li { padding-left: 46px; }
  .num-list > li::before { width: 30px; height: 30px; font-size: 12px; }

  .value { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .post-nav { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .nav-toggle, .cta { display: none !important; }
  body { font-size: 12pt; }
  a { color: inherit; text-decoration: underline; }
}
