/* ============================================================================
   株式会社エムワン (M-ONE Co., Ltd.) コーポレートサイト
   style.css — Design refresh: chic / sharp / engineering-driven BtoB
   ============================================================================ */

/* ---------------------------------------------------------------------------
   0. Reset
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------------- */
:root {
  --navy-deep: #050B16;
  --navy: #08162A;
  --navy-light: #10233E;
  --blue: #176BFF;
  --blue-bright: #4C9BFF;
  --cyan: #72D4FF;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --text-dark: #111827;
  --text-gray: #667085;
  --border-dark: rgba(255, 255, 255, 0.14);
  --border-light: #DCE3EC;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;

  --container-w: 1120px;
  --header-h: 80px;
  --radius-s: 4px;
  --radius-m: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: hidden; }

.en {
  font-family: var(--font-en);
}

h1, h2, h3, h4 {
  font-family: var(--font-jp);
  font-weight: 700;
  line-height: 1.5;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
}

section { padding: 136px 0; position: relative; }
@media (max-width: 1024px) { section { padding: 96px 0; } }
@media (max-width: 768px)  { section { padding: 64px 0; } }

.bg-navy      { background: var(--navy); color: var(--white); }
.bg-navy-deep { background: var(--navy-deep); color: var(--white); }
.bg-white     { background: var(--white); color: var(--text-dark); }
.bg-off       { background: var(--off-white); color: var(--text-dark); }

/* thin grid-line texture for dark sections */
.bg-grid { position: relative; }
.bg-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 65% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 65% 0%, black 0%, transparent 75%);
  pointer-events: none;
}

/* thin grid-line texture for light sections */
.bg-grid-light { position: relative; }
.bg-grid-light::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 22, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 22, 42, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 25% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 25% 0%, black 0%, transparent 75%);
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   2. Accessibility helpers
   --------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 14px 22px;
  z-index: 3000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
}

.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;
}

/* ---------------------------------------------------------------------------
   3. Section heading pattern
   --------------------------------------------------------------------------- */
.sec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--blue);
  margin-bottom: 20px;
}
.sec-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.bg-navy .sec-kicker, .bg-navy-deep .sec-kicker { color: var(--cyan); }

.sec-head { max-width: 720px; margin: 0 0 76px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* 英語見出しはアクセントのsec-kickerのみとし、大見出しは日本語を主役にする */
.sec-title-en { display: none; }

.sec-title-jp {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.65;
}
.bg-navy .sec-title-jp, .bg-navy-deep .sec-title-jp { color: rgba(255, 255, 255, 0.95); }

.sec-lead {
  margin-top: 22px;
  color: var(--text-gray);
  font-size: 15.5px;
  line-height: 1.95;
}
.bg-navy .sec-lead, .bg-navy-deep .sec-lead { color: rgba(255, 255, 255, 0.6); }

/* ---------------------------------------------------------------------------
   4. Buttons (contrast-safe variants: light-context / dark-context)
   --------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: var(--radius-s);
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn-label {
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  position: relative;
  z-index: 2;
}
.btn-arrow { position: relative; z-index: 2; transition: transform 0.2s var(--ease); font-size: 14px; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Solid: safe on any background */
.btn-solid {
  background: var(--blue);
  color: #fff;
  border: 1.5px solid var(--blue);
}
.btn-solid:hover { background: #0f5be0; border-color: #0f5be0; }

/* Line: for LIGHT background sections only */
.btn-line {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
}
.btn-line:hover { border-color: var(--blue); color: var(--blue); background: rgba(23, 107, 255, 0.04); }

/* Line-invert: for DARK background sections only (hero, footer, navy sections) */
.btn-line-invert {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
}
.btn-line-invert:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------------------------------------------------------------------------
   5. Header / Navigation
   --------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(5, 11, 22, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-dark);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-link { display: flex; align-items: center; flex: none; }
.logo-link img { height: 26px; width: auto; }

.gnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.gnav a {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 4px;
  height: 1px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.gnav a:hover, .gnav a[aria-current="page"] { color: #fff; }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { flex: none; }
.header-cta .btn { min-height: 44px; padding: 0 22px; }
.header-cta .btn-label { font-size: 13.5px; }

/* PC版ではスマートフォンメニュー内CTAを非表示にする（1024px以下のメディアクエリ側で表示に切り替える） */
.header-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 1100;
  flex: none;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s ease, top 0.25s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .gnav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--header-h));
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 28px 40px;
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .gnav a {
    padding: 18px 4px;
    font-size: 15px;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-dark);
  }
  .gnav a::after { display: none; }
  .header-cta { display: none; }
  .gnav .header-cta-mobile { display: block; margin-top: 24px; }
  .gnav .header-cta-mobile .btn { width: 100%; min-height: 54px; }
  .nav-toggle { display: block; }
}

body.nav-open { overflow: hidden; }

/* ---------------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------------- */
.hero {
  padding: calc(var(--header-h) + 96px) 0 128px;
  background: radial-gradient(ellipse at 80% 8%, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  overflow: hidden;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero-copy .sec-kicker { color: var(--cyan); margin-bottom: 26px; }

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.66);
  font-size: 15.5px;
  line-height: 2;
  max-width: 500px;
  margin-bottom: 42px;
}
.hero-desc p + p { margin-top: 14px; }

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .hero { padding: calc(var(--header-h) + 48px) 0 72px; }
}

/* ---------------------------------------------------------------------------
   7. System mockup (hero visual — original abstract UI, not a real screenshot)
   --------------------------------------------------------------------------- */
.mockup {
  position: relative;
  background: linear-gradient(165deg, rgba(16, 35, 62, 0.9) 0%, rgba(5, 11, 22, 0.95) 100%);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}
.mockup-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.mockup-title {
  margin-left: 8px;
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

.mockup-grid { display: flex; flex-direction: column; gap: 14px; }
.mockup-panel {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 18px 20px;
}
.mockup-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.mockup-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mockup-chip {
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  padding: 7px 14px;
}

.mockup-pipeline { display: flex; flex-direction: column; gap: 0; }
.mockup-pipeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px dashed var(--border-dark);
}
.mockup-pipeline-item:last-child { border-bottom: none; }
.mockup-pipeline-num { color: var(--blue-bright); font-weight: 600; width: 22px; flex: none; }

.mockup-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------------------------------------------------------------------------
   8. ABOUT
   --------------------------------------------------------------------------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; gap: 40px; } }

/* 見出し列が狭いため、単語の途中で追加改行が入らないよう見出しのフォントサイズだけを
   この文脈に限定して縮小する（他セクションの共通sec-title-jpには影響させない） */
.about-layout .sec-title-jp { font-size: clamp(22px, 2.6vw, 28px); }

.about-copy p { font-size: 15.5px; color: var(--text-gray); line-height: 2; }
.about-copy p + p { margin-top: 16px; }

.about-tag {
  display: inline-block;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--blue);
}

/* ---------------------------------------------------------------------------
   9. SERVICES — spec-sheet style rows (not repeated cards)
   --------------------------------------------------------------------------- */
.service-list { border-top: 1px solid var(--border-light); margin-top: 8px; }
.service-row {
  display: grid;
  grid-template-columns: 64px 1.1fr 1.6fr;
  gap: 40px;
  align-items: start;
  padding: 44px 8px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.25s ease;
}
.service-row:hover { background: var(--off-white); }
.service-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
  letter-spacing: 0.05em;
  padding-top: 5px;
}
.service-name-jp {
  font-size: clamp(17px, 1.8vw, 19px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.service-name-en {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.service-desc { font-size: 14.5px; color: var(--text-gray); line-height: 1.95; padding-top: 4px; }

@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .service-num { padding-top: 0; }
}

/* ---------------------------------------------------------------------------
   10. OUR APPROACH — vertical timeline
   --------------------------------------------------------------------------- */
.approach-list { position: relative; max-width: 820px; }
.approach-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 32px;
  padding-bottom: 68px;
}
.approach-item:last-child { padding-bottom: 0; }
.approach-marker { position: relative; display: flex; justify-content: center; }
.approach-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--off-white);
  box-shadow: 0 0 0 1.5px var(--border-light);
  margin-top: 6px;
  position: relative;
  z-index: 2;
}
.approach-item:not(:last-child) .approach-marker::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: -68px;
  left: 50%;
  width: 1px;
  background: var(--border-light);
  transform: translateX(-50%);
}
.approach-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  margin-bottom: 8px;
}
.approach-title-jp {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.approach-title-en {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 10px;
}
.approach-desc { font-size: 14.5px; color: var(--text-gray); line-height: 1.9; }

/* ---------------------------------------------------------------------------
   11. DEVELOPMENT FIELD — grouped categories
   2x2の落ち着いたグリッドにし、項目数が少ないグループでも
   右側や下側が寂しく見えないよう、カード自体に十分な余白を持たせる
   --------------------------------------------------------------------------- */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }

.field-group {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-m);
  padding: 40px 44px;
}
.field-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}
.field-group-title::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue);
  flex: none;
}
.field-group ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 20px;
}
.field-group ul li {
  font-size: 14px;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
  padding-left: 16px;
}
.field-group ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 5px; height: 1px;
  background: var(--text-gray);
}
@media (max-width: 480px) {
  .field-group { padding: 32px 26px; }
  .field-group ul { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   12. PROJECT — data flow diagram
   --------------------------------------------------------------------------- */
.dataflow {
  display: flex;
  align-items: center;
  margin: 56px 0 40px;
}
.dataflow-node {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-m);
  padding: 20px 16px;
  text-align: center;
}
.dataflow-node-jp { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.dataflow-line {
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--border-light);
  position: relative;
}
.dataflow-line::after {
  content: "";
  position: absolute;
  right: -3px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .dataflow { flex-direction: column; align-items: stretch; }
  .dataflow-line { width: 1px; height: 28px; align-self: center; background: var(--border-light); }
  .dataflow-line::after { right: 50%; top: auto; bottom: -3px; transform: translateX(50%); }
}

.project-modules { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.project-modules span {
  font-size: 13px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--text-gray);
  background: var(--white);
}

.note-box {
  border-left: 2px solid var(--cyan);
  padding: 16px 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.02);
}
.note-box.light { color: var(--text-gray); background: var(--off-white); border-left-color: var(--blue); }

/* ---------------------------------------------------------------------------
   13. DEVELOPMENT FLOW — connected timeline (horizontal on desktop)

   実装メモ：各ノードのドットは常にノード左端（x=0）を中心に置く。
   接続線は「このノードのドット」から「次のノードのドット」まで、
   ノードごとに1本ずつ描画する（グローバルな%計算に頼らないため、
   ノード数や折り返しが変わっても常にドットと線が一致する）。
   --------------------------------------------------------------------------- */
.flow-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0 8px;
  position: relative;
}
.flow-node {
  position: relative;
  padding: 34px 22px 0 0;
}
.flow-node-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  z-index: 2;
}
.flow-node:not(:last-child)::after {
  /* 線の始点＝このドットの右端(18px)、終点＝次のドットの中心(コラム幅+列間gap8px+ドット半径9px)。
     幅 = 終点-始点 = (100% + 8 + 9) - 18 = 100% - 1px */
  content: "";
  position: absolute;
  top: 9px;
  left: 18px;
  width: calc(100% - 1px);
  height: 1px;
  background: var(--border-light);
  z-index: 1;
}
.flow-node-en {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-gray);
  margin-bottom: 10px;
}
.flow-node-jp { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.flow-node-desc { font-size: 13px; color: var(--text-gray); line-height: 1.85; }

@media (max-width: 1024px) {
  .flow-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 48px; column-gap: 28px; }
  .flow-node:not(:last-child)::after { display: none; }
}
@media (max-width: 620px) {
  .flow-timeline { grid-template-columns: 1fr; row-gap: 0; }
  .flow-node { padding: 0 0 36px 30px; }
  .flow-node::before {
    content: "";
    position: absolute;
    top: 18px; bottom: 0; left: 8px;
    width: 1px;
    background: var(--border-light);
  }
  .flow-node:last-child { padding-bottom: 0; }
  .flow-node:last-child::before { display: none; }
  .flow-node-dot { top: 0; left: 0; }
}

/* ---------------------------------------------------------------------------
   14. SUPPORT & OPERATION
   箱を並べた表ではなく、余白で区切った素直なリストとして見せる
   --------------------------------------------------------------------------- */
.support-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 22px;
  margin-top: 48px;
}
@media (max-width: 768px) { .support-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
@media (max-width: 480px) { .support-list { grid-template-columns: 1fr; } }

.support-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14.5px;
  color: var(--text-dark);
}
.support-item svg { flex: none; width: 17px; height: 17px; color: var(--blue); }

/* ---------------------------------------------------------------------------
   15. CONSULTATION
   箱囲みをやめ、下線区切りの2カラムリストで整理して見せる
   --------------------------------------------------------------------------- */
.consult-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  row-gap: 0;
}
@media (max-width: 768px) { .consult-list { grid-template-columns: 1fr; column-gap: 0; } }

.consult-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.consult-item svg { flex: none; width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.consult-item p { font-size: 15px; color: var(--text-dark); line-height: 1.7; }

/* ---------------------------------------------------------------------------
   16. COMPANY
   --------------------------------------------------------------------------- */
.info-table { border-top: 1px solid var(--border-light); }
.info-table tr { border-bottom: 1px solid var(--border-light); }
.info-table th, .info-table td { padding: 22px 4px; text-align: left; font-size: 14.5px; vertical-align: top; }
.info-table th {
  width: 200px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  font-weight: 600;
}
.info-table a { color: var(--blue); font-weight: 600; }
.info-table a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 4px; }
  .info-table td { padding-top: 0; padding-bottom: 22px; }
}

/* ---------------------------------------------------------------------------
   17. CONTACT
   --------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-m);
  padding: 40px 34px;
}
.contact-card h3 { font-family: var(--font-en); letter-spacing: 0.08em; color: #fff; font-size: 13px; margin-bottom: 18px; }
.contact-card p { font-size: 14px; color: rgba(255, 255, 255, 0.6); line-height: 1.9; margin-bottom: 22px; }
.contact-card .contact-email {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
}
.contact-card .contact-email:hover { color: var(--cyan); border-color: var(--cyan); }

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 9px;
}
.req { color: #d0392a; font-size: 11px; margin-left: 6px; font-weight: 700; letter-spacing: 0; }
.opt { color: var(--text-gray); font-size: 11px; margin-left: 6px; font-weight: 500; letter-spacing: 0; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  padding: 13px 15px;
  font-size: 14.5px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { min-height: 150px; resize: vertical; }

.radio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 480px) { .radio-grid { grid-template-columns: 1fr 1fr; } }

.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pill label {
  display: block;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-s);
  padding: 11px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}
.radio-pill input:checked + label { border-color: var(--blue); background: rgba(23, 107, 255, 0.06); color: var(--blue); }
.radio-pill input:focus-visible + label { outline: 3px solid var(--blue-bright); outline-offset: 2px; }

.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-gray); }
.consent-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.consent-row a { color: var(--blue); font-weight: 600; }

/* honeypot: visually hidden, off-screen (not display:none) so spam-detection still functions */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 12.5px; color: var(--text-gray); margin-top: 16px; }

/* ---------------------------------------------------------------------------
   18. Footer
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.55);
  padding: 80px 0 28px;
  font-size: 13.5px;
}
.footer-brand-en {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 6px;
}
.footer-brand-tag {
  font-family: var(--font-jp);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--cyan);
  margin-bottom: 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand img { height: 24px; margin-bottom: 16px; }
.footer-brand p { line-height: 1.9; }

.footer-col h4 {
  font-family: var(--font-jp);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 13px; font-size: 13px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.32);
}
.footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   19. Inner pages (privacy / thanks / 404)
   --------------------------------------------------------------------------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: calc(var(--header-h) + 64px) 0 56px;
}
.page-hero .container { text-align: center; }
.page-hero h1 { font-family: var(--font-en); color: #fff; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: 0.02em; }
.page-hero p { margin-top: 14px; color: rgba(255, 255, 255, 0.6); font-size: 14.5px; }

.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 {
  font-size: 17px;
  margin: 44px 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 14.5px; color: var(--text-gray); margin-bottom: 10px; line-height: 1.9; }
.legal-body ul { margin-bottom: 10px; }
.legal-body li { position: relative; padding-left: 18px; }
.legal-body li::before { content: "―"; position: absolute; left: 0; }
.legal-updated { text-align: right; font-size: 13px; color: var(--text-gray); margin-top: 44px; }

.center-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 24px 100px;
}
.center-page-code {
  font-family: var(--font-en);
  font-size: 88px;
  font-weight: 700;
  color: var(--off-white);
  -webkit-text-stroke: 2px var(--navy);
  line-height: 1;
  margin-bottom: 16px;
}
.center-page h1 { font-size: 22px; margin-bottom: 14px; }
.center-page p { color: var(--text-gray); margin-bottom: 32px; }
.center-page .check-icon { width: 56px; height: 56px; color: var(--blue); margin: 0 auto 24px; }

/* ---------------------------------------------------------------------------
   20. Reveal-on-scroll (defensive: visible by default; JS + IO enhances)
   --------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------------
   21. Utility
   --------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
