@charset "UTF-8";
/* =========================================================
   風俗ポータルサイト制作所 LP
   基調色: 紺（ネイビー） / アクセント: ゴールド
   ========================================================= */
:root {
  --navy-950: #071328;
  --navy-900: #0a1a33;
  --navy-800: #0f2547;
  --navy-700: #163262;
  --navy-600: #1d3f73;
  --navy-400: #5a78a8;
  --navy-100: #e8eef7;
  --navy-50: #f4f6fa;
  --gold: #c8a04a;
  --gold-light: #e2c47e;
  --gold-dark: #a8832f;
  --text: #1b2433;
  --text-sub: #4f5b6e;
  --line: #d6deea;
  --white: #fff;
  --danger: #c0392b;
  --success: #1f7a4d;

  --header-h: 68px;
  --container: 1160px;
  --gutter: 20px;
  --shadow: 0 10px 30px rgba(10, 26, 51, .12);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "YuGothic", "Meiryo", system-ui, sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; border-radius: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .section-title, .feature-catch, .hero-lead, .section-lead, .hero-badge { word-break: auto-phrase; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(880px + var(--gutter) * 2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sp-only { display: none; }
.accent { color: var(--gold); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--gold); color: var(--navy-900); padding: 8px 16px; font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 12px 28px;
  border: 2px solid transparent; border-radius: 0;
  font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 6px 18px rgba(200, 160, 74, .3); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10, 26, 51, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  transition: box-shadow .2s, background-color .2s;
}
.site-header.is-scrolled { background: var(--navy-900); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
/* ロゴマーク（PW・透過PNG 146x120。高さ基準で縦横比を保持） */
.logo-mark { flex: 0 0 auto; display: block; width: auto; height: 38px; max-width: none; border-radius: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-sub { font-size: 10px; letter-spacing: .2em; color: var(--gold-light); }
.logo-main { font-size: 16px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }

.global-nav ul { display: flex; align-items: center; gap: 4px; }
.global-nav a:not(.btn) {
  display: block; padding: 8px 12px; font-size: 14px; font-weight: 600;
  text-decoration: none; color: rgba(255,255,255,.88); transition: color .2s;
}
.global-nav a:not(.btn):hover { color: var(--gold-light); }
.nav-cta-item { margin-left: 8px; }

.nav-toggle {
  display: none; position: relative; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 10px; width: 24px; height: 2px; background: var(--white);
  transition: transform .25s, opacity .25s, top .25s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  color: var(--white);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 85% 20%, rgba(29, 63, 115, .9), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-badge {
  display: inline-block; padding: 6px 14px; margin-bottom: 20px;
  border: 1px solid rgba(226, 196, 126, .6); color: var(--gold-light);
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
}
.hero-title {
  font-size: clamp(30px, 3.8vw, 46px); line-height: 1.4; font-weight: 800; letter-spacing: 0;
}
.hero-lead { margin-top: 20px; font-size: clamp(15px, 1.5vw, 17px); color: rgba(255,255,255,.86); }
.hero-lead strong { color: var(--gold-light); }

.hero-price {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: 28px;
}
.hero-price-item {
  min-width: 0; padding: 14px 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-left: 4px solid var(--gold);
}
.hero-price dt { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: .08em; }
.hero-price dd { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2px; line-height: 1.2; margin-top: 4px; }
.hero-price .num { font-size: clamp(28px, 3vw, 38px); font-weight: 800; color: var(--white); letter-spacing: .01em; font-feature-settings: "tnum"; }
.hero-price .unit { font-size: 16px; font-weight: 700; }
.hero-price .tax { font-size: 12px; color: rgba(255,255,255,.7); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* hero visual: 対応業種パネル（角丸なし） */
.hero-visual { position: relative; min-width: 0; }
.industries {
  position: relative; padding: 28px 28px 30px;
  background: rgba(7, 19, 40, .72); border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--gold);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.industries-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.14); }
.industries-en { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--gold-light); }
.industries-title { font-size: 26px; font-weight: 800; line-height: 1.3; }
.industries-lead { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.6; }
.industry-group { margin-top: 14px; }
.industry-label {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--gold-light); line-height: 1.4;
}
.industry-label::after { content: ""; flex: 1; height: 1px; background: rgba(226,196,126,.3); }
.industry-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.industry-tags li {
  padding: 4px 10px; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap;
  color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.4);
}
.industry-tags li.is-more { color: var(--navy-950); background: var(--gold); border-color: var(--gold); }

/* ---------- Stats ---------- */
.stats { background: var(--navy-50); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { min-width: 0; padding: 28px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-label { font-size: 13px; font-weight: 700; color: var(--text-sub); }
.stat-value { font-size: 18px; font-weight: 700; color: var(--navy-800); line-height: 1.3; margin-top: 4px; }
.stat-value strong { font-size: clamp(30px, 3.4vw, 42px); color: var(--navy-700); margin: 0 2px; }
.stat-note { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

/* ---------- Section common ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--navy-50); }
.section-navy {
  background:
    radial-gradient(circle at 10% 0%, rgba(29,63,115,.7), transparent 50%),
    var(--navy-900);
  color: var(--white);
}
.section-head { text-align: center; margin-bottom: 52px; }
.section-en {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .3em; color: var(--gold-dark);
}
.section-navy .section-en { color: var(--gold-light); }
.section-en::before, .section-en::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-title { margin-top: 8px; font-size: clamp(24px, 3vw, 36px); line-height: 1.5; font-weight: 800; color: var(--navy-800); }
.section-navy .section-title { color: var(--white); }
.section-lead { margin-top: 14px; color: var(--text-sub); }
.section-navy .section-lead { color: rgba(255,255,255,.8); }
.note { margin-top: 14px; font-size: 13px; color: var(--text-sub); line-height: 1.7; }

/* ---------- Problem ---------- */
.problem-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.problem-item {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 20px 22px; background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--navy-600);
}
.problem-icon {
  flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-700); font-weight: 800; font-size: 20px;
}
.problem-item p { min-width: 0; font-weight: 600; }
.problem-item strong { color: var(--danger); }
.problem-answer {
  margin-top: 40px; text-align: center; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800;
  color: var(--navy-800); word-break: auto-phrase;
}
.problem-answer strong { background: linear-gradient(transparent 62%, rgba(200,160,74,.4) 62%); }

/* ---------- Features ---------- */
.feature-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; row-gap: 20px; }
.feature-title { align-self: center; }
.feature {
  /* カード間で見出し・キャッチの高さを揃える */
  display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-content: start;
  position: relative; min-width: 0; padding: 32px 24px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.16);
  border-top: 3px solid var(--gold);
}
.feature-no { font-size: 40px; font-weight: 800; line-height: 1; color: var(--gold); letter-spacing: .04em; }
.feature-title { margin-top: 16px; font-size: 20px; line-height: 1.5; font-weight: 800; }
.feature-catch {
  margin-top: 16px; padding: 12px 14px; font-size: 15px; line-height: 1.6;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.92);
}
.feature-catch strong { color: var(--gold-light); font-size: 18px; }
.feature-text { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.9; }

/* ---------- Orders（このようなご注文でOK） ---------- */
.accent-navy { color: var(--navy-600); background: linear-gradient(transparent 62%, rgba(200,160,74,.35) 62%); }
.order-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.order {
  display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0;
  min-width: 0; padding: 28px 26px; background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--navy-700); box-shadow: var(--shadow);
}
.order-type {
  justify-self: start; padding: 2px 12px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
  color: var(--white); background: var(--navy-800); line-height: 1.8;
}
.order-title { margin-top: 14px; font-size: 21px; font-weight: 800; line-height: 1.5; color: var(--navy-800); }
.order-ref { color: var(--gold-dark); font-size: 1.12em; }
.order-text { margin-top: 12px; font-size: 14px; line-height: 1.85; color: var(--text-sub); }
.order-points { display: flex; flex-wrap: wrap; align-content: start; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.order-points li {
  padding: 2px 10px; font-size: 12.5px; font-weight: 700; line-height: 1.7; white-space: nowrap;
  color: var(--navy-700); background: var(--navy-100); border: 1px solid #c9d5e8;
}
.order-more { margin-top: 32px; text-align: center; font-weight: 700; color: var(--navy-800); word-break: auto-phrase; }
.order-more strong { color: var(--navy-600); }
#orders .note { text-align: center; }

/* ---------- Compare ---------- */
.compare-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); }
.compare-table .col-label { width: 26%; }
.compare-table .col-other { width: 37%; }
.compare-table .col-us { width: 37%; }
.compare-table th, .compare-table td {
  padding: 18px 16px; border: 1px solid var(--line); text-align: center; vertical-align: middle; line-height: 1.6;
}
.compare-table thead th { font-size: 15px; font-weight: 800; background: var(--navy-100); color: var(--navy-800); }
.compare-table thead th.is-us { background: var(--navy-800); color: var(--white); font-size: 17px; }
.compare-table tbody th { font-size: 14px; font-weight: 700; color: var(--navy-800); background: var(--navy-50); }
.compare-table td { font-size: 15px; color: var(--text-sub); }
.compare-table td.is-us { background: #fbf7ec; color: var(--navy-800); }
.compare-table td.is-us strong { color: var(--navy-800); font-size: 17px; }

/* ---------- Functions ---------- */
.function-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.function {
  min-width: 0; padding: 22px 22px 22px 24px; background: var(--white);
  border: 1px solid var(--line); position: relative;
}
.function::before { content: ""; position: absolute; left: 0; top: 22px; width: 4px; height: 26px; background: var(--gold); }
.function h3 { font-size: 17px; font-weight: 800; color: var(--navy-800); line-height: 1.5; }
.function p { margin-top: 6px; font-size: 14px; color: var(--text-sub); line-height: 1.75; }

/* ---------- Automation ---------- */
.auto-em { color: var(--gold-light); font-size: 1.08em; white-space: nowrap; }
.auto-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.auto-step {
  position: relative; min-width: 0; padding: 26px 22px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-top: 3px solid var(--gold);
}
.auto-step:not(:last-child)::after {
  content: ""; position: absolute; right: -23px; top: 50%; width: 12px; height: 12px;
  border-top: 3px solid var(--gold); border-right: 3px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.auto-no { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--gold-light); }
.auto-step h3 { margin-top: 6px; font-size: 19px; font-weight: 800; line-height: 1.5; }
.auto-step p:last-child { margin-top: 10px; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.8); }
.auto-branch {
  display: flex; align-items: center; gap: 20px; margin-top: 28px; padding: 18px 24px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-left: 4px solid #e0796b;
}
.auto-branch-label {
  flex: 0 0 auto; padding: 4px 12px; font-size: 13px; font-weight: 800;
  background: #e0796b; color: var(--white); line-height: 1.6;
}
.auto-branch-body { min-width: 0; color: rgba(255,255,255,.88); }
.auto-branch-body strong { color: var(--white); }
.auto-result {
  margin-top: 40px; text-align: center; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; line-height: 1.6;
  word-break: auto-phrase;
}
.auto-result strong { color: var(--gold-light); }

/* ---------- Price ---------- */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin-inline: auto; }
.price-card {
  position: relative; min-width: 0; padding: 40px 32px 32px; text-align: center;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-top: 4px solid var(--navy-600);
}
.price-card-main { border: 2px solid var(--navy-800); border-top: 4px solid var(--gold); }
.price-ribbon {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; background: var(--gold); color: var(--navy-950);
  font-size: 13px; font-weight: 800; white-space: nowrap;
}
.price-name { font-size: 18px; font-weight: 800; color: var(--navy-800); }
.price-value { margin-top: 10px; color: var(--navy-800); line-height: 1.1; }
.price-value .num { font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: .01em; font-feature-settings: "tnum"; }
.price-value .unit { font-size: 20px; font-weight: 800; margin-left: 2px; }
.price-tax { font-size: 14px; color: var(--text-sub); }
.price-points { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; }
.price-points li { position: relative; padding: 6px 0 6px 28px; font-size: 15px; line-height: 1.6; }
.price-points li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px;
  border-left: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: rotate(-45deg);
}
.price-note-box {
  max-width: 900px; margin: 32px auto 0; padding: 22px 26px;
  background: var(--navy-50); border: 1px solid var(--line); border-left: 4px solid var(--gold);
}
.price-note-title { font-weight: 800; color: var(--navy-800); margin-bottom: 4px; }
.price-note-box strong { color: var(--navy-700); }

/* ---------- Flow ---------- */
.flow-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: flow; }
.flow-step {
  position: relative; min-width: 0; padding: 26px 18px; text-align: center;
  background: var(--white); border: 1px solid var(--line);
}
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; right: -20px; top: 50%; width: 12px; height: 12px;
  border-top: 3px solid var(--gold); border-right: 3px solid var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.flow-no { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--gold-dark); }
.flow-step h3 { margin-top: 6px; font-size: 18px; font-weight: 800; color: var(--navy-800); line-height: 1.5; }
.flow-step p:last-child { margin-top: 8px; font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.flow-step strong { color: var(--navy-700); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq { background: var(--white); border: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 20px 56px 20px 60px; font-weight: 700; color: var(--navy-800); line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; position: absolute; left: 20px; top: 18px; width: 28px; height: 28px;
  display: grid; place-items: center; background: var(--navy-800); color: var(--white);
  font-weight: 800; font-size: 15px; line-height: 1;
}
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--navy-600); border-bottom: 2px solid var(--navy-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: var(--navy-50); }
.faq-body { position: relative; padding: 0 24px 22px 60px; color: var(--text-sub); font-size: 15px; }
.faq-body::before {
  content: "A"; position: absolute; left: 20px; top: 0; width: 28px; height: 28px;
  display: grid; place-items: center; background: var(--gold); color: var(--navy-900);
  font-weight: 800; font-size: 15px; line-height: 1;
}

/* ---------- Contact form ---------- */
.contact-form {
  padding: 40px; background: var(--white); color: var(--text); box-shadow: 0 20px 50px rgba(0,0,0,.3);
  border-top: 4px solid var(--gold);
}
.form-row { min-width: 0; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-row > label { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; color: var(--navy-800); }
.tag { display: inline-block; padding: 1px 8px; font-size: 11px; font-weight: 700; line-height: 1.7; }
.tag-req { background: var(--danger); color: var(--white); }
.tag-opt { background: #e3e7ee; color: var(--text-sub); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  display: block; width: 100%; max-width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 16px; /* iOSの自動ズーム防止 */
  border: 1px solid #b9c4d6; border-radius: 0; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.contact-form select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy-600) 50%), linear-gradient(135deg, var(--navy-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29,63,115,.18);
}
.contact-form .is-invalid { border-color: var(--danger) !important; background-color: #fdf4f3 !important; }
.field-error { min-height: 0; margin-top: 4px; font-size: 13px; color: var(--danger); font-weight: 600; line-height: 1.5; }
.field-error:empty { display: none; }
.form-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-turnstile { display: flex; flex-direction: column; align-items: center; }
.turnstile-box { width: 100%; max-width: 100%; min-height: 65px; display: flex; justify-content: center; }
.form-agree { text-align: center; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--navy-700); flex: 0 0 auto; }
.check a { color: var(--navy-600); }
.form-submit { margin-top: 8px; }
.contact-form { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.8); padding: 56px 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer-brand { min-width: 0; }
.footer-brand .logo-main { color: var(--white); font-size: 18px; white-space: normal; }
.footer-desc { margin-top: 6px; font-size: 13px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--gold-light); }
.copyright { margin-top: 40px; padding: 18px var(--gutter); text-align: center; font-size: 12px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Sub page (privacy) ---------- */
.legal { padding-top: calc(var(--header-h) + 64px); }
.legal-body { padding: 40px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy-800); }
.legal-body h2 { margin: 32px 0 10px; padding-left: 12px; border-left: 4px solid var(--gold); font-size: 18px; color: var(--navy-800); line-height: 1.5; }
.legal-body ul { list-style: disc; padding-left: 1.4em; }
.legal-body p + p { margin-top: 10px; }
.legal-date { margin-top: 32px !important; text-align: right; font-size: 14px; color: var(--text-sub); }
.legal-back { margin-top: 32px; text-align: center; }

/* ---------- 簡単お見積り ---------- */
.price-more { margin-top: 28px; text-align: center; }
.est { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.est-form, .est-result {
  min-width: 0; background: var(--white); color: var(--text);
  border-top: 4px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.est-form { position: relative; padding: 36px; }
.est-mini { display: none; }
.est-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.est-field + .est-field { margin-top: 28px; padding-top: 28px; border-top: 1px dashed var(--line); }
/* legend の余白を確実に効かせるため float で通常の行に */
.est-label {
  float: left; width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0 0 12px; padding: 0; font-size: 17px; font-weight: 800; line-height: 1.5; color: var(--navy-800);
}
.est-label + * { clear: both; }
.est-no { padding: 1px 8px; font-size: 12px; letter-spacing: .06em; color: var(--gold-light); background: var(--navy-800); }
.est-sub { margin-left: -6px; font-size: 13px; font-weight: 600; color: var(--text-sub); }
.est-select {
  display: block; width: 100%; max-width: 100%; min-height: 50px; padding: 12px 40px 12px 14px;
  font-size: 16px; border: 1px solid #b9c4d6; border-radius: 0; background-color: var(--white);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy-600) 50%), linear-gradient(135deg, var(--navy-600) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.est-select:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29,63,115,.18); }
.est-options { display: grid; gap: 10px; }
.est-options-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.est-options-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.est-opt { position: relative; display: block; min-width: 0; cursor: pointer; }
.est-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.est-opt-body {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 1px;
  min-height: 62px; height: 100%; padding: 10px 10px 10px 40px; line-height: 1.4;
  border: 1px solid #b9c4d6; background: var(--white); transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.est-opt-body::before {
  content: ""; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid #9aa8bf; background: var(--white); transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.est-opt input[type="radio"] + .est-opt-body::before { border-radius: 50%; }
.est-opt input[type="checkbox"] + .est-opt-body::after {
  content: ""; position: absolute; left: 19px; top: 50%; width: 6px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg); opacity: 0;
}
.est-opt:hover .est-opt-body { border-color: var(--navy-400); }
.est-opt input:checked + .est-opt-body { border-color: var(--navy-700); background: var(--navy-100); box-shadow: inset 0 0 0 1px var(--navy-700); }
.est-opt input:checked + .est-opt-body::before { border-color: var(--navy-700); background: var(--navy-700); }
.est-opt input[type="radio"]:checked + .est-opt-body::before { box-shadow: inset 0 0 0 3px var(--white); }
.est-opt input:checked + .est-opt-body::after { opacity: 1; }
.est-opt input:focus-visible + .est-opt-body { outline: 3px solid var(--gold); outline-offset: 2px; }
.est-opt-name { font-size: 15px; font-weight: 700; color: var(--navy-800); }
.est-opt-price { font-size: 12.5px; font-weight: 700; color: var(--gold-dark); }
.est-opt-desc { font-size: 12px; color: var(--text-sub); }
/* 業種（カテゴリ別の複数選択） */
.est-ind { display: grid; gap: 12px; }
.est-ind-group { min-width: 0; padding: 14px 16px; background: var(--navy-50); border: 1px solid var(--line); }
.est-ind-all { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; font-weight: 800; line-height: 1.5; color: var(--navy-800); }
.est-ind-all input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--navy-700); cursor: pointer; }
.est-ind-head { font-size: 15px; font-weight: 800; line-height: 1.5; color: var(--navy-800); }
.est-ind-sub { margin-top: 10px; font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--text-sub); }
.est-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.est-ind-sub + .est-chips { margin-top: 4px; }
.est-chip { position: relative; display: block; min-width: 0; cursor: pointer; }
.est-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.est-chip span {
  display: block; padding: 4px 10px; font-size: 13px; font-weight: 600; line-height: 1.6; white-space: nowrap;
  color: var(--navy-800); background: var(--white); border: 1px solid #b9c4d6; transition: background-color .15s, color .15s, border-color .15s;
}
.est-chip:hover span { border-color: var(--navy-400); }
.est-chip input:checked + span { color: var(--white); background: var(--navy-700); border-color: var(--navy-700); }
.est-chip input:checked + span::before { content: "✓ "; }
.est-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.est-hint { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.est-hint strong { color: var(--navy-700); }
.est-error { margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--danger); }
.est-error:empty { display: none; }
.est-sub-select { margin-top: 14px; }
.est-sub-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--navy-800); }
.est-form-note { margin-top: 24px; font-size: 13px; line-height: 1.7; color: var(--text-sub); }
.est-form-note strong { color: var(--navy-700); }

.est-result { position: sticky; top: calc(var(--header-h) + 20px); padding: 30px 26px; }
.est-result-title { text-align: center; font-size: 17px; font-weight: 800; color: var(--navy-800); }
.est-result-title span { font-size: 13px; font-weight: 600; color: var(--text-sub); }
.est-total { display: grid; gap: 10px; margin-top: 16px; }
.est-total-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; background: var(--navy-50); border-left: 4px solid var(--navy-700);
}
.est-total-item + .est-total-item { border-left-color: var(--gold); }
.est-total dt { font-size: 15px; font-weight: 700; color: var(--navy-800); }
.est-total dd { color: var(--navy-800); line-height: 1.2; white-space: nowrap; }
.est-total .num { font-size: 34px; font-weight: 800; letter-spacing: .01em; font-feature-settings: "tnum"; }
.est-total .unit { margin-left: 2px; font-size: 16px; font-weight: 800; }
.est-breakdown { width: 100%; margin-top: 18px; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; line-height: 1.5; }
.est-breakdown caption { margin-bottom: 4px; text-align: left; font-size: 14px; font-weight: 700; color: var(--navy-800); }
.est-breakdown th, .est-breakdown td { padding: 7px 4px; border-bottom: 1px solid var(--line); text-align: right; font-feature-settings: "tnum"; }
.est-breakdown thead th { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.est-breakdown th:first-child { width: 48%; text-align: left; }
.est-breakdown tbody th { font-weight: 600; color: var(--text); }
.est-breakdown tbody td { color: var(--navy-800); font-weight: 700; }
#estToContact { margin-top: 22px; }
.est-note { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--text-sub); }

/* ---------- Blog（運営者ブログ） ---------- */
.btn-outline-navy { border-color: var(--navy-700); color: var(--navy-800); background: var(--white); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { min-width: 0; }
.post-link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); transition: box-shadow .2s, transform .2s;
}
.post-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-link:hover .post-title { color: var(--navy-600); text-decoration: underline; }
/* サムネイル（画像なし・CSS描画・角丸なし） */
.post-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--white);
}
.post-thumb::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px;
}
.post-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold); }
.post-thumb[data-cat="ai"] { background: linear-gradient(135deg, #1d3f73, #0a1a33); }
.post-thumb[data-cat="auto"] { background: linear-gradient(135deg, #163262, #071328); }
.post-thumb[data-cat="seo"] { background: linear-gradient(135deg, #24497f, #0f2547); }
.post-thumb[data-cat="flow"] { background: linear-gradient(135deg, #0f2547, #1d3f73); }
.post-thumb[data-cat="price"] { background: linear-gradient(135deg, #2a3f63, #0a1a33); }
.post-thumb-cat { position: relative; font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.post-thumb-no { position: absolute; right: 14px; top: 6px; font-size: 52px; font-weight: 800; line-height: 1; color: rgba(226,196,126,.35); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-sub); }
.post-cat { padding: 1px 8px; font-size: 12px; font-weight: 700; color: var(--navy-700); background: var(--navy-100); }
.post-title { font-size: 17px; font-weight: 800; line-height: 1.55; color: var(--navy-800); }
.post-excerpt {
  font-size: 13.5px; line-height: 1.8; color: var(--text-sub);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-more { margin-top: 32px; text-align: center; }

/* ブログのサブページ */
.sub-nav { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.sub-nav-link { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.88); text-decoration: none; }
.sub-nav-link:hover { color: var(--gold-light); }
.article-page { padding: calc(var(--header-h) + 32px) 0 72px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--text-sub); margin-bottom: 28px; }
.breadcrumb li { min-width: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--navy-400); }
.breadcrumb a { color: var(--navy-600); }
.article { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy-800); padding: 40px; }
.article-head { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-title { margin-top: 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.5; color: var(--navy-800); }
.article-lead { margin-top: 14px; color: var(--text-sub); font-size: 15px; }
.article-body { font-size: 16px; line-height: 1.95; }
.article-body > * + * { margin-top: 18px; }
.article-body h2 {
  margin-top: 40px; padding: 10px 14px; font-size: 20px; line-height: 1.5; font-weight: 800; color: var(--navy-800);
  background: var(--navy-50); border-left: 4px solid var(--gold);
}
.article-body h3 { margin-top: 28px; font-size: 17px; font-weight: 800; color: var(--navy-700); padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.article-body ul, .article-body ol { padding-left: 1.5em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: 6px; }
.article-body strong { color: var(--navy-800); background: linear-gradient(transparent 65%, rgba(200,160,74,.3) 65%); }
.article-cta {
  margin-top: 32px; padding: 28px; text-align: center; color: var(--white);
  background: var(--navy-900); border-top: 4px solid var(--gold);
}
.article-cta-title { font-size: 18px; font-weight: 800; color: var(--gold-light); margin-bottom: 6px; word-break: auto-phrase; }
.article-cta p:not(.article-cta-title) { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 18px; }
.related { margin-top: 48px; }
.related-title { font-size: 20px; font-weight: 800; color: var(--navy-800); margin-bottom: 18px; padding-left: 12px; border-left: 4px solid var(--gold); }
.post-list-related .post-excerpt { display: none; }

/* ---------- SP fixed CTA ---------- */
.sp-cta { display: none; }

/* ---------- Toast ---------- */
.toast-area {
  position: fixed; z-index: 300; right: 20px; bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
  width: min(380px, calc(100vw - 40px)); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 14px 14px 18px; background: var(--white); color: var(--text);
  border-left: 5px solid var(--success); box-shadow: 0 12px 30px rgba(0,0,0,.25);
  font-size: 14px; line-height: 1.6; animation: toast-in .25s ease-out;
}
.toast.is-error { border-left-color: var(--danger); }
.toast-msg { flex: 1; min-width: 0; }
.toast-title { display: block; font-weight: 800; color: var(--navy-800); }
.toast.is-error .toast-title { color: var(--danger); }
.toast-close {
  flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: 0; background: transparent;
  font-size: 20px; line-height: 1; color: var(--text-sub); cursor: pointer;
}
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-step:nth-child(3)::after { display: none; }
  .auto-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .auto-step:nth-child(2)::after { display: none; }
}

@media (max-width: 1023px) {
  :root { --header-h: 62px; }
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--navy-900); border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 30px rgba(0,0,0,.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .global-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .global-nav a:not(.btn) { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-cta-item { margin: 16px 0 0; }
  .nav-cta-item .btn { display: flex; width: 100%; min-height: 50px; font-size: 16px; }

  .hero { padding: calc(var(--header-h) + 48px) 0 64px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-price { max-width: 560px; margin-inline: auto; text-align: left; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }

  .function-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-list { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; gap: 20px; }
  .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .order { grid-template-rows: none; grid-row: auto; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; --header-h: 58px; }
  body { font-size: 15px; padding-bottom: 76px; }
  .sp-only { display: inline; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }

  .logo-mark { height: 34px; }
  .logo-main { font-size: 14px; }
  .logo-sub { font-size: 9px; }

  .hero { padding: calc(var(--header-h) + 36px) 0 48px; }
  .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(26px, 7.4vw, 34px); }
  .hero-lead { text-align: left; }
  .hero-price { gap: 10px; }
  .hero-price-item { padding: 12px 12px 12px 14px; }
  .hero-price dt { font-size: 12px; letter-spacing: .04em; }
  .hero-price .num { font-size: clamp(22px, 6.6vw, 28px); }
  .hero-price .unit { font-size: 13px; }
  .hero-price .tax { font-size: 11px; width: 100%; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .industries { padding: 20px 16px 22px; }
  .industries-title { font-size: 22px; }
  .industry-tags li { font-size: 12.5px; padding: 3px 8px; }

  .stats-inner { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 18px 8px; display: grid; grid-template-columns: minmax(0, 7em) minmax(0, 1fr); align-items: center; text-align: left; column-gap: 12px; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat-label { grid-row: span 2; font-size: 12px; line-height: 1.5; }
  .stat-value { margin-top: 0; }
  .stat-value strong { font-size: 28px; }
  .stat-note { margin-top: 0; }

  .problem-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .problem-item { padding: 16px; gap: 14px; }
  .problem-icon { width: 38px; height: 38px; font-size: 17px; }
  .problem-answer { margin-top: 28px; }

  .feature-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feature { padding: 26px 20px; }
  .feature-no { font-size: 32px; }
  .feature-title { font-size: 19px; margin-top: 12px; }

  .order { padding: 22px 18px; }
  .order-title { font-size: 19px; margin-top: 12px; }
  .order-text { font-size: 13.5px; }
  .order-more { margin-top: 24px; text-align: left; font-size: 14px; }
  #orders .note { text-align: left; }

  .compare-table th, .compare-table td { padding: 12px 6px; }
  .compare-table .col-label { width: 24%; }
  .compare-table .col-other { width: 36%; }
  .compare-table .col-us { width: 40%; }
  .compare-table thead th { font-size: 13px; }
  .compare-table thead th.is-us { font-size: 15px; }
  .compare-table tbody th { font-size: 12px; }
  .compare-table td { font-size: 12.5px; }
  .compare-table td.is-us strong { font-size: 14px; }
  .note { font-size: 12px; }

  .function-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .function { padding: 16px 16px 16px 20px; }
  .function::before { top: 18px; height: 22px; }
  .function h3 { font-size: 16px; }
  .function p { font-size: 13.5px; margin-top: 2px; }

  .price-cards { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .price-card { padding: 36px 20px 24px; }
  .price-points li { font-size: 14px; }
  .price-note-box { padding: 18px 18px; font-size: 14px; }

  .flow-list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .flow-step { padding: 18px 16px; display: grid; grid-template-columns: 5.2em minmax(0, 1fr); column-gap: 14px; text-align: left; align-items: center; }
  .flow-no { grid-row: span 2; font-size: 12px; letter-spacing: .06em; text-align: center; padding: 8px 0; background: var(--navy-800); color: var(--gold-light); }
  .flow-step h3 { margin-top: 0; font-size: 16px; }
  .flow-step p:last-child { margin-top: 2px; font-size: 13.5px; }
  .flow-step:not(:last-child)::after,
  .flow-step:nth-child(3)::after {
    display: block; right: auto; left: 50%; top: auto; bottom: -21px;
    transform: translateX(-50%) rotate(135deg); width: 10px; height: 10px;
  }

  .auto-flow { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .auto-step { padding: 20px 18px; }
  .auto-step h3 { font-size: 17px; }
  .auto-step p:last-child { margin-top: 6px; font-size: 13.5px; }
  .auto-step:not(:last-child)::after,
  .auto-step:nth-child(2)::after {
    display: block; right: auto; left: 50%; top: auto; bottom: -21px;
    transform: translateX(-50%) rotate(135deg); width: 10px; height: 10px;
  }
  .auto-branch { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; font-size: 14px; }
  .auto-branch-label { font-size: 12px; }
  .auto-result { margin-top: 28px; }

  .faq summary { padding: 16px 44px 16px 52px; font-size: 15px; }
  .faq summary::before { left: 14px; top: 15px; width: 26px; height: 26px; font-size: 14px; }
  .faq summary::after { right: 18px; }
  .faq-body { padding: 0 16px 18px 52px; font-size: 14px; }
  .faq-body::before { left: 14px; width: 26px; height: 26px; font-size: 14px; }

  .contact-form { padding: 24px 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .check { align-items: flex-start; text-align: left; }
  .check input { margin-top: 3px; }

  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-nav ul { gap: 6px 18px; }

  .sp-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(10,26,51,.95); box-shadow: 0 -6px 20px rgba(0,0,0,.2);
    transition: transform .25s;
  }
  .sp-cta .btn { min-height: 50px; }
  .sp-cta.is-hidden { transform: translateY(110%); }
  .toast-area { right: 12px; left: 12px; bottom: 88px; width: auto; }

  .page-sub { padding-bottom: 0; }
  .post-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* スマホは横並び（左サムネイル・右タイトル）で縦の長さを抑える */
  .post-link { flex-direction: row; }
  .post-thumb { flex: 0 0 34%; aspect-ratio: auto; min-height: 104px; padding: 10px; justify-content: flex-end; }
  .post-thumb-cat { font-size: 11px; letter-spacing: .02em; line-height: 1.4; }
  .post-thumb-no { font-size: 30px; right: 8px; top: 6px; }
  .post-body { flex: 1 1 auto; min-width: 0; padding: 10px 12px; gap: 4px; justify-content: center; }
  .post-meta { font-size: 11.5px; gap: 6px; }
  .post-cat { font-size: 11px; padding: 0 6px; }
  .post-title { font-size: 14.5px; line-height: 1.5; }
  .post-excerpt { display: none; }
  .article-page { padding: calc(var(--header-h) + 20px) 0 56px; }
  .breadcrumb ol { font-size: 12px; margin-bottom: 18px; }
  .article { padding: 22px 16px; }
  .article-body { font-size: 15px; line-height: 1.9; }
  .article-body h2 { font-size: 17px; margin-top: 32px; }
  .article-body h3 { font-size: 16px; }
  .article-cta { padding: 22px 16px; }
  .article-cta .btn { width: 100%; }
  .sub-nav { gap: 8px; }
  .sub-nav-link { font-size: 13px; }
  .legal { padding-top: calc(var(--header-h) + 40px); }
  .legal-body { padding: 24px 16px; font-size: 14px; }
  .legal-body h2 { font-size: 16px; margin-top: 26px; }
}

@media (max-width: 479px) {
  /* ロゴとボタンが重ならないよう、狭い画面では「記事一覧」リンクを隠す（パンくずから戻れる） */
  .sub-nav-link { display: none; }
}

@media (max-width: 359px) {
  .logo-sub { display: none; }
  .logo { gap: 8px; }
  .logo-mark { height: 30px; }
  .logo-main { font-size: 12px; letter-spacing: 0; }
  .site-header .btn-sm { padding: 8px 12px; font-size: 13px; letter-spacing: 0; }
  .hero-title { font-size: 23px; }
  .section-title { font-size: 19px; }
  .hero-price { grid-template-columns: minmax(0, 1fr); }
  .compare-table th, .compare-table td { padding: 10px 4px; }
  .compare-table td { font-size: 12px; }
}

/* ---------- 簡単お見積り（レスポンシブ） ---------- */
@media (max-width: 1023px) {
  .est { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
  .est-result { position: static; }
  /* 1カラム時は合計がフォームの下に来るため、フォーム上部に合計を固定表示 */
  .est-mini {
    position: sticky; top: var(--header-h); z-index: 5;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px;
    margin: -36px -36px 24px; padding: 10px 16px;
    background: var(--navy-800); color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.5;
  }
  .est-mini strong { color: var(--gold-light); font-size: 17px; font-feature-settings: "tnum"; }
}
@media (max-width: 767px) {
  .est-form { padding: 24px 16px; }
  .est-mini { margin: -24px -16px 20px; }
  .est-result { padding: 24px 16px; }
  .est-options-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-label { font-size: 16px; }
  .est-opt-body { padding-left: 36px; }
  .est-opt-body::before { left: 11px; }
  .est-opt input[type="checkbox"] + .est-opt-body::after { left: 17px; }
  .est-opt-name { font-size: 14px; }
  .est-total .num { font-size: 30px; }
  .est-ind { gap: 10px; }
  .est-ind-group { padding: 10px 10px 12px; }
  .est-ind-all { min-height: 36px; }
  .est-chips { gap: 5px; }
  .est-chip span { padding: 3px 8px; font-size: 12.5px; }
}
@media (max-width: 359px) {
  .est-options-2, .est-options-3 { grid-template-columns: minmax(0, 1fr); }
  .est-opt-body { min-height: 52px; }
  .est-total-item { padding: 10px 12px; }
  .est-total .num { font-size: 26px; }
}

/* ---------- 共通: 読み上げ専用テキスト ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- ヒーロー: 簡単お見積り / AI案内 ---------- */
.hero-cta-sub { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.btn-outline-gold { border-color: var(--gold); color: var(--gold-light); background: rgba(7, 19, 40, .35); }
.btn-outline-gold:hover { background: rgba(200, 160, 74, .14); color: var(--white); }
.btn-icon {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px;
  font-size: 12px; font-weight: 800; letter-spacing: 0; line-height: 1; color: var(--navy-950); background: var(--gold);
}

/* ---------- AI案内（チャット） ---------- */
/* 右下のAI案内ボタン（キャラクター画像・透過）。画像の縦横比 320:340 */
.chat-launcher {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  display: block; width: 150px; padding: 0; border: 0; border-radius: 0; background: transparent;
  cursor: pointer; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); transition: transform .2s;
}
.chat-launcher img { display: block; width: 100%; height: auto; border-radius: 0; }
.chat-launcher:hover { transform: translateY(-3px); }
.chat-launcher:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chat-open .chat-launcher { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column; width: 400px; max-width: calc(100vw - 40px);
  height: min(660px, calc(100dvh - var(--header-h) - 40px));
  background: var(--white); color: var(--text); border-top: 4px solid var(--gold);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s;
}
.chat-panel[hidden] { display: none; }
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 18px; background: var(--navy-900); color: var(--white); }
.chat-head-text { flex: 1 1 auto; min-width: 0; }
.chat-title { font-size: 17px; font-weight: 800; line-height: 1.4; }
.chat-sub { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.75); }
.chat-head-btn {
  flex: 0 0 auto; min-height: 34px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 0;
  background: transparent; color: var(--white); font-size: 12px; font-weight: 700; cursor: pointer;
}
.chat-head-btn:hover { border-color: var(--gold-light); color: var(--gold-light); }
.chat-close {
  flex: 0 0 auto; width: 40px; height: 40px; border: 0; border-radius: 0; background: transparent;
  color: var(--white); font-size: 26px; line-height: 1; cursor: pointer;
}
.chat-close:hover { color: var(--gold-light); }

.chat-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: var(--navy-50); }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 92%; }
.chat-msg + .chat-msg { margin-top: 14px; }
.chat-msg.is-user { align-items: flex-end; margin-left: auto; }
.chat-who { margin-bottom: 3px; font-size: 11px; font-weight: 700; color: var(--text-sub); }
.chat-bubble {
  min-width: 0; max-width: 100%; padding: 10px 14px; font-size: 14px; line-height: 1.75;
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
}
.chat-msg.is-user .chat-bubble { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.chat-bubble p + p, .chat-bubble ul + p, .chat-bubble p + ul { margin-top: 6px; }
.chat-bubble ul { padding-left: 1.1em; list-style: disc; }
.chat-bubble li + li { margin-top: 2px; }
.chat-bubble strong { color: var(--navy-800); }
.chat-msg.is-user .chat-bubble strong { color: inherit; }
.chat-bubble a { color: var(--navy-600); font-weight: 700; }
.chat-msg-files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-bottom: 6px; }
.chat-msg-files li { padding: 3px 8px; font-size: 12px; background: var(--white); border: 1px solid var(--line); }
.chat-msg-files li:has(img) { padding: 0; border: 0; }
.chat-msg-files img { width: 96px; height: 96px; object-fit: cover; border-radius: 0; }
.chat-failed { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--danger); }
.chat-msg.is-failed .chat-bubble { opacity: .7; }
.chat-typing { display: flex; gap: 4px; padding: 4px 0; }
.chat-typing span:not(.sr-only) { width: 7px; height: 7px; background: var(--navy-400); animation: chat-dot 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chat-suggest button {
  padding: 6px 10px; border: 1px solid var(--navy-400); border-radius: 0; background: var(--white);
  color: var(--navy-700); font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer;
}
.chat-suggest button:hover { background: var(--navy-100); }

.chat-form { flex: 0 0 auto; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chat-files[hidden] { display: none; }
.chat-file {
  display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; padding: 3px 4px 3px 3px;
  background: var(--navy-50); border: 1px solid var(--line); font-size: 12px;
}
.chat-file img { width: 40px; height: 40px; object-fit: cover; border-radius: 0; }
.chat-file-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--navy-700); color: var(--white); font-size: 10px; font-weight: 800; }
.chat-file-name { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-file.is-loading { opacity: .6; }
.chat-file-remove { width: 26px; height: 26px; border: 0; background: transparent; color: var(--text-sub); font-size: 16px; cursor: pointer; }
.chat-file-remove:hover { color: var(--danger); }
.chat-input-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-attach {
  position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #b9c4d6; background: var(--white); color: var(--navy-700); font-size: 22px; font-weight: 700; cursor: pointer;
}
.chat-attach:hover { border-color: var(--navy-600); background: var(--navy-50); }
.chat-attach input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.chat-attach:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
#chatInput {
  flex: 1 1 auto; min-width: 0; min-height: 44px; max-height: 140px; padding: 10px 12px; resize: none;
  font-size: 16px; line-height: 1.5; border: 1px solid #b9c4d6; border-radius: 0; background: var(--white);
}
#chatInput:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29,63,115,.18); }
.chat-send {
  flex: 0 0 auto; min-width: 64px; height: 44px; padding: 0 14px; border: 0; border-radius: 0;
  background: var(--gold); color: var(--navy-950); font-weight: 800; font-size: 14px; cursor: pointer;
}
.chat-send:hover { background: var(--gold-light); }
.chat-send:disabled { opacity: .65; cursor: not-allowed; }
.chat-note { margin-top: 6px; font-size: 11px; line-height: 1.55; color: var(--text-sub); }
.chat-links { display: flex; gap: 14px; margin-top: 4px; font-size: 12px; font-weight: 700; }
.chat-links a { color: var(--navy-600); }

.chat-drop {
  position: absolute; inset: 0; z-index: 5; display: none; place-items: center; pointer-events: none;
  background: rgba(10, 26, 51, .82); border: 3px dashed var(--gold); color: var(--white); font-size: 16px; font-weight: 800;
}
.chat-panel.is-dragover .chat-drop { display: grid; }

@media (max-width: 1023px) {
  .hero-cta-sub { justify-content: center; }
}
@media (max-width: 767px) {
  .hero-cta-sub { gap: 10px; }
  .hero-cta-sub .btn { flex: 1 1 0; min-width: 0; padding-inline: 12px; }
  /* 下部の固定CTAバーと重ならない位置 */
  .chat-launcher { right: 8px; bottom: 80px; width: 104px; }
  .chat-panel { inset: 0; width: 100%; max-width: none; height: 100dvh; border-top: 0; }
  .chat-open, .chat-open body { overflow: hidden; }
  .chat-open .sp-cta { display: none; }
  .chat-head { padding: 8px 8px 8px 14px; }
  .chat-log { padding: 12px; }
  .chat-msg { max-width: 96%; }
  .chat-form { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .chat-sub { display: none; }
  .hero-cta-sub { flex-direction: column; }
  .hero-cta-sub .btn { width: 100%; }
}
