/* =========================================================
   情シスBPO × AI サービスサイト
   モバイルファースト：基本はスマホ、768px / 1024px で拡張
   ========================================================= */

:root {
  --navy: #0b1f3a;
  --navy-2: #12305a;
  --blue: #1f5fd6;
  --cyan: #22c3d6;
  --violet: #6b5cff;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  --text: #1c2738;
  --text-sub: #56627a;
  --line: #dfe5ef;
  --bg: #ffffff;
  --bg-tint: #f4f7fc;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(11, 31, 58, .08);
  --header-h: 64px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: 860px; }
.nowrap { white-space: nowrap; }
.pc-only { display: none; }
.sp-only { display: inline; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .8em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background-color .2s;
  border: 2px solid transparent;
  line-height: 1.3;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(107, 92, 255, .3); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-sm { padding: .55em 1.2em; font-size: 14px; }
.btn-lg { padding: 1em 2em; font-size: 16px; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(11, 31, 58, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { display: block; height: 30px; width: auto; }

.nav-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* スマホ：ドロワー */
.global-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: #fff;
  padding: 8px 16px 24px;
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s;
  box-shadow: 0 12px 24px rgba(11, 31, 58, .12);
}
.global-nav.is-open { transform: translateY(0); visibility: visible; }
.global-nav ul li a {
  position: relative; display: block; padding: 14px 32px 14px 4px; color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
/* スマホ：右矢印で「押せる」ことを示す */
.global-nav ul li a::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: translateY(-50%) rotate(45deg);
}
.nav-label { display: block; font-weight: 800; font-size: 16px; }
.nav-desc { display: block; font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.global-nav ul li a.is-current .nav-label { color: var(--blue); }
.global-nav .btn { margin-top: 20px; width: 100%; padding: .9em; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 56px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(107, 92, 255, .35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(34, 195, 214, .25), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 32px; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(26px, 7.2vw, 52px); font-weight: 800; letter-spacing: .01em; margin-bottom: 20px; }
.hero-lead { color: rgba(255,255,255,.85); font-size: 15px; margin-bottom: 28px; }
.hero-note {
  margin: -12px 0 28px; padding: 12px 16px; font-size: 14px; line-height: 1.7;
  color: #fff; border-left: 3px solid var(--cyan); background: rgba(255,255,255,.07); border-radius: 0 10px 10px 0;
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { font-size: 12px; padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }

.hero-visual { max-width: 380px; margin: 0 auto; width: 100%; }
.hero-svg { display: block; width: 100%; height: auto; }
.svg-core { fill: #fff; font-size: 30px; font-weight: 800; font-family: var(--font); }
.svg-core-sub { fill: #fff; font-size: 15px; font-weight: 700; font-family: var(--font); opacity: .9; }
.svg-node rect { fill: rgba(255,255,255,.1); stroke: rgba(255,255,255,.35); }
.svg-node text { fill: #fff; font-size: 13px; font-weight: 700; font-family: var(--font); }
.svg-node { animation: float 6s ease-in-out infinite; }
.svg-node:nth-of-type(2) { animation-delay: -1.5s; }
.svg-node:nth-of-type(3) { animation-delay: -3s; }
.svg-node:nth-of-type(4) { animation-delay: -4.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- Section common ---------- */
.section { padding: 64px 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--navy); color: #fff; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(22px, 5.6vw, 34px); font-weight: 800; }
.section-lead { margin-top: 14px; color: var(--text-sub); text-align: left; }
.section-dark .section-lead { color: rgba(255,255,255,.75); }
.note { margin-top: 20px; font-size: 13px; color: var(--text-sub); }

.icon { width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.check-list li { position: relative; padding-left: 26px; margin-top: 8px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E");
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: calc(.45em + 4px);
  width: 6px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

/* ---------- Problems ---------- */
.problem-grid { display: grid; gap: 12px; }
.problem-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.problem-card strong { color: var(--navy); background: linear-gradient(transparent 62%, rgba(34,195,214,.25) 62%); }
.problem-answer { margin-top: 32px; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.9; }

/* ---------- Strengths ---------- */
.strength-list { display: grid; gap: 20px; }
.strength {
  display: grid; gap: 10px; align-content: start;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  position: relative; overflow: hidden;
}
.strength::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.strength-num { font-size: 40px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strength h3 { font-size: 21px; font-weight: 800; }
.strength-scope { display: inline-block; font-size: 13px; font-weight: 700; color: var(--cyan); margin: 4px 0 12px; }
.strength-body > p:not(.strength-scope) { color: rgba(255,255,255,.85); }
.strength .check-list { margin-top: 10px; color: rgba(255,255,255,.9); font-size: 14px; }

/* ---------- Security BPO overview ---------- */
.overview-figure { margin: 0; }
.overview-zoom {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
}
.overview-zoom img { display: block; width: 100%; height: auto; }
.overview-zoom-hint {
  position: absolute; right: 10px; bottom: 10px; font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(11,31,58,.75); padding: 4px 10px; border-radius: 999px;
}
.overview-zoom:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.overview-figure figcaption { margin-top: 10px; font-size: 12px; color: var(--text-sub); text-align: center; }

.overview-steps { display: grid; gap: 12px; margin-top: 32px; counter-reset: ov; }
.overview-step { padding: 18px; border-radius: var(--radius); background: var(--bg-tint); border-top: 4px solid var(--blue); }
.overview-step h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; color: var(--navy); }
.overview-step h3::before { counter-increment: ov; content: "STEP " counter(ov); font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--blue); }
.overview-step ul { margin-top: 8px; }
.overview-step li { position: relative; padding-left: 16px; font-size: 14px; color: var(--text-sub); margin-top: 4px; }
.overview-step li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.overview-values { margin-top: 20px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.overview-values h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.overview-values ul { display: grid; gap: 8px; }
.overview-values li {
  padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--navy);
  background: linear-gradient(120deg, rgba(34,195,214,.12), rgba(107,92,255,.12));
}

/* 図の拡大表示 */
.lightbox {
  position: fixed; inset: 0; z-index: 300; padding: 56px 12px 12px;
  background: rgba(7,21,40,.94); display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-inner { width: 100%; max-width: 1500px; max-height: 100%; overflow: auto; border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.lightbox-inner img { display: block; width: 100%; min-width: 960px; height: auto; }
.lightbox-close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-close:focus-visible { outline: 3px solid var(--cyan); }

@media (min-width: 768px) {
  .overview-steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .overview-values { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; padding: 20px 24px; }
  .overview-values h3 { margin: 0; white-space: nowrap; }
  .overview-values ul { grid-template-columns: repeat(2, 1fr); }
  .lightbox-inner img { min-width: 0; }
}
@media (min-width: 1024px) {
  .overview-steps { grid-template-columns: repeat(4, 1fr); }
  .overview-values ul { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Compare ---------- */
.compare-table { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare-row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.compare-row > div { padding: 12px 16px; }
.compare-header { display: none; }
.compare-row [role="rowheader"] { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.compare-row [role="cell"]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--text-sub); letter-spacing: .05em; }
.compare-row [role="cell"]:not(.is-us) { color: var(--text-sub); background: #fafbfd; }
.compare-row .is-us { background: linear-gradient(120deg, rgba(34,195,214,.08), rgba(107,92,255,.08)); font-weight: 700; color: var(--navy); }
.compare-row .is-us::before { color: var(--violet); }
.compare-row:first-child, .compare-header + .compare-row { border-top: 0; }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: 16px; }
.service-card { background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(120deg, rgba(34,195,214,.15), rgba(107,92,255,.15));
}
.service-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.service-card li { position: relative; padding-left: 16px; font-size: 14px; color: var(--text-sub); margin-top: 6px; }
.service-card li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.service-desc { font-size: 13px; color: var(--blue); font-weight: 700; margin-bottom: 4px; }

.saas { margin-top: 40px; background: #fff; border-radius: var(--radius); padding: 24px 20px; border: 1px solid var(--line); }
.saas h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.saas > p { font-size: 14px; color: var(--text-sub); margin-bottom: 16px; }
.saas-group + .saas-group { margin-top: 24px; }
.saas-group h4 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 4px;
  font-size: 14px; font-weight: 800; color: var(--navy); letter-spacing: .04em;
}
.saas-group h4::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); flex-shrink: 0; }
.saas-list { margin: 0; display: grid; gap: 0; }
.saas-list > div { padding: 10px 0; border-top: 1px solid var(--line); }
.saas-list dt { font-size: 12px; font-weight: 800; color: var(--blue); }
.saas-list dd { margin: 2px 0 0; font-size: 14px; }

/* ---------- Cases ---------- */
.case + .case { margin-top: 28px; }
.case--featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.case-sub { margin-top: 20px; }
.case-team li { position: relative; padding-left: 16px; margin-top: 8px; font-size: 14px; color: var(--text-sub); }
.case-team li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.case-team strong { color: var(--navy); }
.case--security .case-head { background: linear-gradient(120deg, #0b1f3a, #2a1f6b); }
.sec-grid { display: grid; gap: 20px; }
.sec-block h5 { font-size: 14px; font-weight: 800; color: var(--blue); margin: 0 0 2px; }
.case-result { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--bg-tint); font-size: 14px; font-weight: 700; color: var(--navy); }
.case { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-head { padding: 22px 20px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; }
.case-label { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.14); margin-bottom: 10px; }
.case-head h3 { font-size: 19px; font-weight: 800; }
.case-body { display: grid; gap: 24px; padding: 24px 20px; }
.case-col h4 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 8px; padding-left: 10px; border-left: 4px solid var(--cyan); }
.case-col > p { color: var(--text-sub); }
.case-points li { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.case-points li:last-child { border-bottom: 0; }
.pill {
  display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--blue);
  padding: 1px 10px; border-radius: 999px; margin-right: 8px; vertical-align: 1px;
}

/* ---------- Plans ---------- */
.plan-grid { display: grid; gap: 16px; }
.plan { background: #fff; border-radius: var(--radius); padding: 28px 22px; border: 1px solid var(--line); box-shadow: var(--shadow); border-top: 5px solid var(--blue); }
.plan:nth-child(2) { border-top-color: var(--cyan); }
.plan-tag { font-size: 13px; font-weight: 700; color: var(--blue); }
.plan h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 4px 0 12px; }
.plan > p { color: var(--text-sub); font-size: 14px; }
.plan .check-list { margin-top: 12px; font-size: 14px; }

.plan-common { margin-top: 20px; background: #fff; border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); }
.plan-common h3 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.plan-common h3:not(:first-child) { margin-top: 24px; }
.common-grid { display: grid; gap: 8px; }
.common-grid li { padding: 10px 14px; border-radius: 10px; background: var(--bg-tint); font-size: 14px; font-weight: 600; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-list li { font-size: 13px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }

/* ---------- Flow ---------- */
.flow-list { display: grid; gap: 14px; counter-reset: flow; }
.flow-step { position: relative; padding: 20px 20px 20px 22px; border-radius: var(--radius); background: var(--bg-tint); border-left: 4px solid var(--blue); }
.flow-num { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--blue); }
.flow-step h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin: 2px 0 6px; }
.flow-step p { font-size: 14px; color: var(--text-sub); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq { background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 48px 18px 50px; font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 18px; top: 16px; font-weight: 800; font-size: 18px; color: var(--blue); }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--text-sub); border-bottom: 2px solid var(--text-sub);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 12px; }
.faq-a { position: relative; padding: 0 20px 20px 50px; color: var(--text-sub); font-size: 14px; }
.faq-a::before { content: "A"; position: absolute; left: 18px; top: -2px; font-weight: 800; font-size: 18px; color: var(--cyan); }

/* ---------- CTA ---------- */
.cta {
  padding: 72px 0; color: #fff; text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(34,195,214,.45), transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(107,92,255,.55), transparent 50%),
    var(--navy);
}
.cta .section-eyebrow { color: #fff; background: none; -webkit-text-fill-color: #fff; opacity: .8; }
.cta h2 { font-size: clamp(22px, 5.6vw, 34px); font-weight: 800; margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 28px; text-align: left; }
.cta .btn { max-width: 360px; }
.cta .cta-sub { margin: 12px 0 0; font-size: 12px; text-align: center; color: rgba(255,255,255,.65); }

/* 問い合わせ手段：フォーム／電話 */
.contact-ways { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.contact-way {
  padding: 28px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cta .contact-way-label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; text-align: center;
}
.contact-way-label svg { width: 20px; height: 20px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-tel {
  display: block; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .04em;
  font-size: clamp(28px, 8vw, 36px); line-height: 1.2; font-variant-numeric: tabular-nums;
}
.contact-tel:hover { color: var(--cyan); }
.contact-tel:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #071528; color: rgba(255,255,255,.75); padding: 40px 0 88px; font-size: 13px; }
.footer-inner { display: grid; gap: 20px; }
.footer-company { color: #fff; font-weight: 800; font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 28px; font-size: 12px; opacity: .6; }

/* ---------- Floating CTA (スマホのみ) ---------- */
.floating-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: block; text-align: center; padding: 14px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 28px rgba(11,31,58,.35);
  transform: translateY(150%); transition: transform .3s;
}
.floating-cta.is-visible { transform: translateY(0); }

/* =========================================================
   お問い合わせページ（contact/）
   ========================================================= */
.page-head {
  padding: calc(var(--header-h) + 32px) 0 32px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.page-head .section-eyebrow { color: #fff; background: none; -webkit-text-fill-color: #fff; opacity: .8; }
.page-head h1 { font-size: clamp(26px, 6.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.page-lead { color: rgba(255,255,255,.85); font-size: 15px; }
.page-lead strong { color: var(--cyan); }

.breadcrumb { margin-bottom: 20px; font-size: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; color: rgba(255,255,255,.7); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.contact-section { padding-top: 32px; }
.contact-layout { display: grid; gap: 24px; }
.contact-main { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px 20px; box-shadow: var(--shadow); }

.form-note { font-size: 13px; color: var(--text-sub); margin-bottom: 16px; }
.req, .opt {
  display: inline-block; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; border-radius: 4px; vertical-align: 2px; margin-left: 4px;
}
.req { color: #fff; background: #d63a3a; }
.opt { color: var(--text-sub); background: var(--bg-tint); border: 1px solid var(--line); }

.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-wide { margin-top: 18px; }
.field label, .field legend { font-size: 14px; font-weight: 700; color: var(--navy); padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 12px 14px; border: 1px solid #c8d1de; border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356627a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,214,.18); }
.field ::placeholder { color: #9aa5b6; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d63a3a; background: #fff6f6; }
.field.is-invalid label, .field.is-invalid legend { color: #b42a2a; }

.field-help { font-size: 13px; color: var(--text-sub); margin: -2px 0 2px; }
.radio-group { display: grid; gap: 8px; }
.radio-group label, .consent label {
  display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.radio-group label:has(input:checked), .consent label:has(input:checked) { border-color: var(--blue); background: rgba(31,95,214,.05); }
.radio-group input, .consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex-shrink: 0; }

.privacy-box {
  margin-top: 24px; padding: 18px; border-radius: 10px; background: var(--bg-tint); border: 1px solid var(--line);
  max-height: 240px; overflow-y: auto; font-size: 13px; color: var(--text-sub); line-height: 1.75;
}
.privacy-box h2 { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.privacy-box dl { margin: 10px 0 0; }
.privacy-box dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
.privacy-box dd { margin: 2px 0 0; }
.privacy-link { margin-top: 12px; }
.privacy-link a { font-weight: 700; }

.consent { margin-top: 14px; }
.consent label { font-weight: 700; color: var(--navy); }
.consent .req { margin-left: auto; }
.field.is-invalid.consent label { border-color: #d63a3a; background: #fff6f6; }

/* スパム対策：不可視項目と reCAPTCHA */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.captcha-field { margin-top: 20px; align-items: center; }
.captcha-widget { min-height: 78px; }
.captcha-help { text-align: center; margin: 0; }
.captcha-field.is-invalid .captcha-widget { outline: 2px solid #d63a3a; outline-offset: 4px; border-radius: 4px; }
.captcha-field.is-invalid .captcha-help { color: #b42a2a; font-weight: 700; }

.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fff0f0; border: 1px solid #f0b9b9; color: #b42a2a; font-size: 14px; font-weight: 700; }
.form-actions { margin-top: 24px; text-align: center; }
.form-actions .btn { width: 100%; max-width: 420px; }
.form-actions .btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-actions .cta-sub { margin-top: 12px; font-size: 12px; color: var(--text-sub); }

.contact-side { display: grid; gap: 16px; align-content: start; }
.side-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px 20px; }
.side-card h2 { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 10px; padding-left: 10px; border-left: 4px solid var(--cyan); }
.side-card p { font-size: 14px; color: var(--text-sub); }
.side-note { margin-top: 10px; font-size: 13px; }
.contact-tel--dark { color: var(--navy); font-size: clamp(26px, 7vw, 32px); margin-bottom: 6px; }
.contact-tel--dark:hover { color: var(--blue); }
.side-steps { counter-reset: ss; display: grid; gap: 10px; }
.side-steps li { position: relative; padding-left: 36px; font-size: 14px; }
.side-steps li::before {
  counter-increment: ss; content: counter(ss); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
.side-steps strong { display: block; color: var(--navy); }
.side-steps span { color: var(--text-sub); font-size: 13px; }
.side-card--company p { margin-top: 2px; }

/* 送信完了ページ */
.thanks-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 32px 20px; box-shadow: var(--shadow); text-align: center; }
.thanks-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(120deg, rgba(34,195,214,.15), rgba(107,92,255,.15)); }
.thanks-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thanks-card h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.thanks-card h2 strong { color: var(--blue); }
.thanks-card > p { color: var(--text-sub); font-size: 15px; }
.thanks-notes { margin-top: 24px; padding: 20px; border-radius: 10px; background: var(--bg-tint); text-align: left; }
.thanks-notes h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.thanks-notes li { position: relative; padding-left: 16px; font-size: 14px; color: var(--text-sub); margin-top: 4px; }
.thanks-notes li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.thanks-tel { margin-top: 14px; text-align: center; }
.thanks-tel span { display: block; font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.thanks-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; align-items: center; }
.thanks-actions .btn { width: 100%; max-width: 360px; }
.btn-ghost-dark { color: var(--navy); border-color: var(--line); background: #fff; }
.btn-ghost-dark:hover { border-color: var(--blue); color: var(--blue); }

@media (min-width: 600px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .thanks-card { padding: 40px 32px; }
  .thanks-card h2 { font-size: 24px; }
  .thanks-actions { flex-direction: row; justify-content: center; }
  .thanks-actions .btn { width: auto; min-width: 220px; }
  .radio-group { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .contact-main { padding: 36px 32px; }
  .contact-tel--dark { pointer-events: none; }
}
@media (min-width: 1024px) {
  .page-head { padding: calc(var(--header-h) + 48px) 0 48px; }
  .contact-section { padding-top: 48px; }
  .contact-layout { grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .svg-node { animation: none; }
  .btn, .floating-cta, .global-nav { transition: none; }
}

/* =========================================================
   Tablet 600px〜
   ========================================================= */
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; }
  .btn-lg { width: auto; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .common-grid { grid-template-columns: repeat(2, 1fr); }
  .section-lead, .cta p { text-align: center; }
}

/* =========================================================
   768px〜：比較表を表形式に
   ========================================================= */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }
  .compare-header { display: grid; }
  .compare-row { grid-template-columns: 180px 1fr 1.3fr; }
  .compare-row > div { padding: 16px 20px; display: flex; align-items: center; }
  .compare-row [role="cell"]::before { display: none; }
  .compare-header > div { background: var(--bg-tint); font-weight: 800; font-size: 14px; color: var(--text-sub); }
  .compare-header .is-us { background: var(--grad); color: #fff; }
  .compare-row [role="rowheader"] { background: #fff; color: var(--navy); border-right: 1px solid var(--line); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-ways { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-way { padding: 32px 24px; }
  .contact-tel { pointer-events: none; }
  .case-body { grid-template-columns: 1fr 1.6fr; gap: 32px; padding: 32px; }
  .case-head { padding: 28px 32px; }
  .saas { padding: 32px; }
  .case--security .case-body { grid-template-columns: 1fr; }
  .saas-list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .saas-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
  .strength { grid-template-columns: 90px 1fr; padding: 32px; gap: 20px; }
  .strength-num { font-size: 52px; }
  .flow-list { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .flow-step { border-left: 0; border-top: 4px solid var(--blue); padding: 20px 16px; }
  .flow-step:not(:last-child)::after {
    content: ""; position: absolute; right: -10px; top: 50%; z-index: 1;
    width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 8px solid var(--blue);
  }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer { padding-bottom: 40px; }
  .floating-cta { display: none; }
  .pc-only { display: inline; }
  .sp-only { display: none; }
}

/* =========================================================
   PC 1024px〜：横並びナビ（5項目）・ヒーロー2カラム
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .container { padding: 0 32px; }
  .logo-img { height: 36px; }

  .hero { padding: calc(var(--header-h) + 80px) 0 100px; }
  .hero-inner { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; }
  .hero-lead { font-size: 16px; }
  .hero-visual { max-width: 460px; }

  .problem-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .problem-card { padding: 22px; }
  .strength-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .strength { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .common-grid { grid-template-columns: repeat(4, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  /* 横並びナビ：説明文は隠し、現在地を下線で示す */
  .nav-toggle { display: none; }
  .global-nav {
    position: static; transform: none; visibility: visible; max-height: none; overflow: visible;
    background: none; padding: 0; border: 0; box-shadow: none;
    display: flex; align-items: center; gap: 24px;
  }
  .global-nav ul { display: flex; gap: 8px; }
  .global-nav ul li a { padding: 10px 12px; border: 0; color: var(--text); white-space: nowrap; }
  .global-nav ul li a::after {
    border: 0; transform: none; top: auto; bottom: 2px; left: 12px; right: 12px; width: auto; height: 3px;
    border-radius: 3px; background: var(--grad); opacity: 0; transition: opacity .2s;
  }
  .global-nav ul li a:hover::after, .global-nav ul li a.is-current::after { opacity: 1; }
  .global-nav ul li a:hover .nav-label { color: var(--blue); }
  .nav-label { font-size: 15px; font-weight: 700; }
  .nav-desc { display: none; }
  .global-nav .btn { margin: 0; width: auto; padding: .6em 1.4em; font-size: 15px; white-space: nowrap; }
}
