/* =========================================================
   iReserve メディカル  - responsive LP stylesheet
   ========================================================= */
:root {
  --navy: #142f6b;
  --primary: #1f5fc4;
  --primary-dark: #17489a;
  --primary-soft: #e8f0fc;
  --cta: #f07f1d;
  --cta-dark: #d96a0b;
  --text: #1d2635;
  --muted: #5b6678;
  --line: #dfe5ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-navy: #0f2557;

  --c-blue: #2b6fd6;
  --c-green: #2f9e47;
  --c-orange: #ef8524;
  --c-purple: #7a4fb4;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 47, 107, .08);
  --shadow-lg: 0 24px 60px rgba(20, 47, 107, .14);
  --container: 1160px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  letter-spacing: .02em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; color: var(--navy); font-weight: 700; }
/* 文節区切りは build 時に <wbr> で入れている（Safari は auto-phrase 非対応） */
h1, h2, h3, h4, .ph { word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.section-lead, .hero-lead { word-break: auto-phrase; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nowrap { white-space: nowrap; }
.pc-only { display: inline; }
@media (max-width: 600px) { .pc-only { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.8em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  line-height: 1.3; border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 8px 20px rgba(240, 127, 29, .3); }
.btn-cta:hover { background: var(--cta-dark); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(31, 95, 196, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--primary-soft); color: var(--navy); }
.btn-lg { font-size: 1.08rem; padding: 1.05em 2.2em; }

.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; }
.text-link .icon { transition: transform .2s; }
.text-link:hover { text-decoration: none; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* backdrop-filter は固定配置のメニューの基準になってしまうため疑似要素に分離 */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(20, 47, 107, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: flex; align-items: baseline; gap: .5em; color: var(--navy); line-height: 1; }
.logo:hover { text-decoration: none; }
.logo-mark { font-family: "Noto Serif JP", Georgia, "Times New Roman", serif; font-size: 1.85rem; font-weight: 700; letter-spacing: 0; }
.logo-mark i { font-style: italic; }
.logo-sub { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .1em; }

.gnav { display: flex; align-items: center; gap: 28px; }
.gnav ul { display: flex; list-style: none; gap: 4px; }
.gnav ul a {
  display: block; padding: .5em .85em; color: var(--text); font-weight: 500; font-size: .94rem;
  border-radius: 8px; position: relative;
}
.gnav ul a:hover { text-decoration: none; color: var(--primary); background: var(--primary-soft); }
.gnav ul a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.gnav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: 2px; height: 2px; background: var(--primary); border-radius: 2px;
}
.gnav-cta { padding: .7em 1.4em; font-size: .92rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: 10px;
}
.nav-toggle span[aria-hidden] {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span[aria-hidden]:nth-child(1) { top: 15px; }
.nav-toggle span[aria-hidden]:nth-child(2) { top: 21px; }
.nav-toggle span[aria-hidden]:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span[aria-hidden]:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .logo-mark { font-size: 1.6rem; }
  .nav-toggle { display: block; }
  .gnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px 16px 40px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .gnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { padding: 1em .5em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnav ul a[aria-current="page"]::after { display: none; }
  .gnav-cta { padding: 1em; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }
@media (max-width: 768px) { .section { padding: 72px 0; } }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  color: var(--primary); text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); letter-spacing: .03em; }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 1.02rem; }
@media (max-width: 768px) { .section-head { margin-bottom: 40px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(1000px 500px at 85% -10%, #dfeafd 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 110%, #fff1e2 0%, transparent 60%),
    #fff;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  padding: .4em 1em; border-radius: 999px; font-size: .85rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(20, 47, 107, .06);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 4px rgba(47, 158, 71, .18); }
.hero-title {
  margin-top: 22px;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 2.9rem);
  line-height: 1.4; letter-spacing: .02em; color: var(--navy);
}
.hero-title .nb { display: inline-block; }
.hero-title .accent { color: var(--primary); }
.hero-title .marker { background: linear-gradient(transparent 68%, #ffd9b0 68%); }
.hero-lead { margin-top: 24px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); }
.hero-lead strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: .45em; font-size: .92rem; font-weight: 700; color: var(--navy); }
.hero-points .icon { color: var(--c-green); width: 1.15em; height: 1.15em; stroke-width: 3; }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; background: #e9eef6;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.hero-float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-size: .85rem; line-height: 1.5; font-weight: 700; color: var(--navy);
}
.hero-float small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.hero-float .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.hero-float .ico .icon { width: 20px; height: 20px; }
.hero-float.f1 { left: -28px; bottom: 36px; }
.hero-float.f1 .ico { background: var(--c-orange); }
.hero-float.f2 { right: -16px; top: 28px; }
.hero-float.f2 .ico { background: var(--c-blue); }

@media (max-width: 960px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }
  .hero-float.f1 { left: 12px; bottom: -20px; }
  .hero-float.f2 { right: 12px; top: -18px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-float { padding: 8px 12px; font-size: .78rem; }
  .hero-float .ico { width: 32px; height: 32px; border-radius: 10px; }
}

/* ---------- Stats strip ---------- */
.stats { margin-top: -40px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.stat-value { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); font-weight: 900; color: var(--navy); line-height: 1.3; margin-top: 4px; }
.stat-value small { font-size: .5em; font-weight: 700; margin-left: .15em; }
.stat-value { white-space: nowrap; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat { padding: 20px 8px; }
  .stat-value { font-size: clamp(1.15rem, .55rem + 3vw, 1.6rem); }
}

/* ---------- Problems ---------- */
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px 24px; position: relative;
}
.problem::before {
  content: ""; position: absolute; left: 32px; bottom: -11px; width: 20px; height: 20px;
  background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}
.problem-who { font-size: .78rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: .4em; margin-bottom: 10px; }
.problem-who .icon { width: 1.1em; height: 1.1em; }
.problem p { margin: 0; font-weight: 700; color: var(--text); line-height: 1.7; }
.problems-answer { text-align: center; margin-top: 56px; }
.problems-answer .arrow {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
}
.problems-answer .arrow .icon { width: 26px; height: 26px; transform: rotate(90deg); }
.problems-answer p { font-size: clamp(1.2rem, 1rem + 1vw, 1.65rem); font-weight: 900; color: var(--navy); margin: 0; }
.problems-answer p em { font-style: normal; color: var(--primary); }
@media (max-width: 960px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .problems { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Merit cards ---------- */
.merits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.merit-card {
  --c: var(--c-blue);
  display: grid; grid-template-columns: 200px 1fr; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: inherit; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.merit-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.merit-card.green { --c: var(--c-green); }
.merit-card.orange { --c: var(--c-orange); }
.merit-card.purple { --c: var(--c-purple); }
.merit-card .thumb { position: relative; background: #eee; }
.merit-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.merit-card .num {
  position: absolute; top: 14px; left: 14px; background: var(--c); color: #fff;
  font-weight: 900; font-size: .8rem; letter-spacing: .1em; padding: .25em .8em; border-radius: 999px;
}
.merit-card .body { padding: 28px 28px 26px; border-top: 4px solid var(--c); display: flex; flex-direction: column; }
.merit-card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); margin-bottom: 14px;
}
.merit-card .ico .icon { width: 24px; height: 24px; }
.merit-card h3 { font-size: 1.18rem; color: var(--text); }
.merit-card p { margin: 10px 0 14px; font-size: .94rem; color: var(--muted); line-height: 1.8; }
.merit-card .more { margin-top: auto; font-size: .88rem; font-weight: 700; color: var(--c); display: inline-flex; align-items: center; gap: .3em; }
@media (max-width: 1040px) { .merits { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .merit-card { grid-template-columns: 1fr; }
  .merit-card .thumb { aspect-ratio: 16 / 9; }
  .merit-card .body { padding: 22px 20px; }
}

/* ---------- How it works (diagram) ---------- */
.flow-diagram {
  display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 14px;
}
.flow-col { display: grid; gap: 18px; }
.flow-node {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px;
  display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow);
}
.flow-node .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
}
.flow-node .ico .icon { width: 22px; height: 22px; }
.flow-node h3 { font-size: 1.02rem; color: var(--text); }
.flow-node p { margin: 6px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.7; }
.flow-node.hospital .ico { background: #e8f6ec; color: var(--c-green); }
.flow-core {
  width: 196px; height: 196px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, #2d74e0, var(--navy));
  color: #fff; box-shadow: 0 30px 60px rgba(20, 47, 107, .3), 0 0 0 14px rgba(31, 95, 196, .08), 0 0 0 28px rgba(31, 95, 196, .04);
  margin: 0 auto;
}
.flow-core small { display: block; font-size: .8rem; opacity: .85; letter-spacing: .1em; }
.flow-core strong { display: block; font-family: "Noto Serif JP", Georgia, serif; font-size: 2.1rem; line-height: 1.2; margin: 4px 0; }
.flow-core span { font-size: .85rem; font-weight: 700; }
.flow-arrows { display: grid; gap: 10px; color: var(--muted); font-size: .76rem; font-weight: 700; text-align: center; }
.flow-arrows .a { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.flow-arrows .line { width: 56px; height: 2px; position: relative; }
.flow-arrows .line::after {
  content: ""; position: absolute; top: -4px; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.flow-arrows .to-right .line { background: var(--cta); }
.flow-arrows .to-right .line::after { right: -2px; border-left: 8px solid var(--cta); }
.flow-arrows .to-left .line { background: var(--primary); }
.flow-arrows .to-left .line::after { left: -2px; border-right: 8px solid var(--primary); }
@media (max-width: 1040px) {
  .flow-diagram { grid-template-columns: 1fr; gap: 16px; }
  .flow-arrows { grid-template-columns: 1fr 1fr; justify-items: center; }
  .flow-arrows .line { width: 2px; height: 36px; }
  .flow-arrows .line::after { top: auto; left: -4px !important; right: auto !important; border: 5px solid transparent; }
  .flow-arrows .to-right .line::after { bottom: -10px; border-top: 8px solid var(--cta); }
  .flow-arrows .to-left .line::after { top: -10px; border-bottom: 8px solid var(--primary); }
  .flow-core { width: 180px; height: 180px; }
  .flow-core strong { font-size: 1.8rem; }
}

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 28px 26px; border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.feature:hover { border-color: #b9cdf0; box-shadow: var(--shadow); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.feature .ico .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; color: var(--text); }
.feature p { margin: 8px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.8; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.tag {
  display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; padding: .25em .75em;
  border-radius: 999px; line-height: 1.5; white-space: nowrap;
}
.tag-std { background: var(--primary-soft); color: var(--primary); }
.tag-opt { background: #fff1e3; color: #b85600; }
.tag-dev { background: #eef1f5; color: var(--muted); }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.split .lead { margin-top: 18px; color: var(--muted); }
.check-list { list-style: none; display: grid; gap: 12px; margin: 24px 0 28px; }
.check-list li { display: flex; gap: .7em; align-items: flex-start; font-weight: 500; }
.check-list .icon {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary); color: #fff;
  stroke-width: 3.5; margin-top: .25em;
}
.screen-frame {
  border-radius: 20px; background: linear-gradient(160deg, #eaf1fd, #f8fbff); padding: 28px; box-shadow: var(--shadow);
}
.screen-frame img { border-radius: 10px; width: 100%; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: #fff; border-radius: var(--radius); padding: 36px 30px; border: 1px solid var(--line);
  text-align: center; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::before {
  content: "サーバー料金込み"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .78rem; font-weight: 700; padding: .3em 1.2em; border-radius: 999px; white-space: nowrap;
}
.price-label { font-weight: 700; color: var(--muted); font-size: .95rem; }
.price-value { white-space: nowrap; margin: 14px 0 6px; color: var(--navy); font-weight: 900; line-height: 1.1; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); }
.price-value .yen { font-size: .5em; margin-right: .1em; }
.price-value .from { font-size: .45em; margin-left: .15em; }
.price-value.text { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); padding: .35em 0; }
.price-tax { font-size: .82rem; color: var(--muted); }
.price-card p.desc { margin: 16px 0 0; font-size: .9rem; color: var(--muted); text-align: left; }
.price-notes { margin-top: 32px; background: #fff; border-radius: var(--radius); padding: 24px 28px; border: 1px solid var(--line); }
.price-notes ul { list-style: none; display: grid; gap: 6px; }
.price-notes li { font-size: .9rem; color: var(--muted); padding-left: 1.2em; position: relative; }
.price-notes li::before { content: "※"; position: absolute; left: 0; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } .price-card.featured { order: -1; margin-top: 10px; } }

/* ---------- Plans (cloud / package) ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.plan-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.plan .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.plan .ico .icon { width: 26px; height: 26px; }
.plan.alt .ico { background: #e8f6ec; color: var(--c-green); }
.plan h3, .plan h4 { font-size: 1.2rem; }
.plan-sub { font-size: .82rem; color: var(--muted); font-weight: 700; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.plan li { display: flex; gap: .6em; font-size: .95rem; }
.plan li .icon { color: var(--c-green); width: 1.2em; height: 1.2em; margin-top: .3em; stroke-width: 3; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan { padding: 26px 22px; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: step; list-style: none; }
.step {
  background: #fff; border-radius: var(--radius); padding: 24px 10px; text-align: center; position: relative;
  border: 1px solid var(--line);
}
.step-no { font-size: .74rem; font-weight: 900; letter-spacing: .15em; color: var(--primary); }
.step-who {
  display: inline-block; margin: 8px 0 10px; font-size: .72rem; font-weight: 700; padding: .2em .8em; border-radius: 999px;
}
.step-who.clinic { background: #e8f6ec; color: #23753a; }
.step-who.us { background: var(--primary-soft); color: var(--primary); }
.step h3 { font-size: .92rem; color: var(--text); line-height: 1.55; }
.step:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; z-index: 1;
  border-top: 2px solid #9fb4d6; border-right: 2px solid #9fb4d6; transform: translateY(-50%) rotate(45deg);
}
@media (max-width: 1040px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; text-align: left; padding: 18px; align-items: center; }
  .step-no { grid-row: span 2; writing-mode: horizontal-tb; font-size: .9rem; }
  .step-who { margin: 0; justify-self: start; }
  .step::after { display: none !important; }
}

/* Detailed timeline (info.html) */
.timeline { list-style: none; position: relative; display: grid; gap: 20px; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--primary), #b9cdf0); }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 22px; position: relative; }
.timeline .no {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 2px solid var(--primary);
  display: grid; place-items: center; text-align: center; color: var(--primary); font-weight: 900; line-height: 1.1; z-index: 1;
}
.timeline .no small { display: block; font-size: .6rem; letter-spacing: .1em; }
.timeline .no b { font-size: 1.35rem; }
.timeline .card { background: #fff; border-radius: var(--radius); padding: 22px 26px; border: 1px solid var(--line); }
.timeline .card h3 { font-size: 1.1rem; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.timeline .card p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) {
  .timeline::before { left: 23px; }
  .timeline li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .timeline .no { width: 48px; height: 48px; }
  .timeline .no b { font-size: 1.1rem; }
  .timeline .card { padding: 18px 16px; }
  .timeline .card h3 { font-size: 1rem; }
}


/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff; padding: 96px 0;
  background: linear-gradient(120deg, var(--navy) 0%, #1d4fa6 60%, #2b6fd6 100%);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.cta-band::before { width: 520px; height: 520px; right: -140px; top: -220px; }
.cta-band::after { width: 360px; height: 360px; left: -120px; bottom: -200px; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem); }
.cta-band p.lead { margin-top: 16px; opacity: .88; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-box { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius); padding: 10px 26px; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.contact-row:last-child { border-bottom: 0; }
a.contact-row:hover { text-decoration: none; opacity: .9; }
.contact-row .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .ico .icon { width: 22px; height: 22px; }
.contact-row small { display: block; font-size: .78rem; opacity: .8; }
.contact-row b { font-size: clamp(1.05rem, .9rem + .7vw, 1.4rem); letter-spacing: .04em; font-variant-numeric: tabular-nums; word-break: break-all; }
@media (max-width: 860px) {
  .cta-band { padding: 72px 0; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .cta-band .btn-row .btn { flex: 1 1 220px; }
  .contact-box { padding: 4px 18px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-navy); color: rgba(255, 255, 255, .78); padding: 64px 0 28px; font-size: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-sub { color: rgba(255, 255, 255, .6); }
.footer-brand p { margin-top: 16px; line-height: 1.8; }
.footer-company { color: #fff; font-weight: 700; margin-top: 20px; }
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }

.office p { margin: 0; font-size: .82rem; line-height: 1.75; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.copyright { margin-top: 20px; font-size: .78rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) { .site-footer { padding-bottom: 96px; } }
@media (max-width: 600px) { .offices { grid-template-columns: 1fr; } }

/* Mobile fixed CTA */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); box-shadow: 0 -6px 20px rgba(20, 47, 107, .1);
  transform: translateY(110%); transition: transform .3s;
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { padding: .85em .5em; font-size: .92rem; }
@media (max-width: 760px) { .mobile-cta { display: grid; } }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--primary); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top .icon { width: 22px; height: 22px; transform: rotate(-90deg); }
@media (max-width: 760px) { .to-top { display: none; } }

/* ---------- Sub page hero ---------- */
.page-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(800px 360px at 90% -20%, #dfeafd 0%, transparent 60%),
    linear-gradient(#f7faff, #fff);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .4em; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4em; color: #b5bfcf; }
.page-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
.page-hero p { margin: 16px 0 0; color: var(--muted); max-width: 760px; }
.page-anchors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; list-style: none; }
.page-anchors a {
  display: inline-flex; align-items: center; gap: .4em; padding: .55em 1.1em; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .88rem; font-weight: 700;
}
.page-anchors a:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.page-anchors .icon { transform: rotate(90deg); width: .9em; height: .9em; }

/* ---------- Function tables ---------- */
.func-table-wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.func-table th, .func-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.func-table thead th { background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .05em; }
.func-table tbody tr:last-child td { border-bottom: 0; }
.func-table tbody tr:nth-child(even) { background: #fafcff; }
.func-table td:first-child { font-weight: 700; }
.func-table .col-type { width: 140px; text-align: center; }
.func-table .col-dev { width: 220px; }
.devices { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) {
  .func-table thead { display: none; }
  .func-table, .func-table tbody, .func-table tr, .func-table td { display: block; width: auto; }
  .func-table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .func-table tbody tr:last-child { border-bottom: 0; }
  .func-table td { padding: 0; border: 0; }
  .func-table .col-type { width: auto; text-align: right; }
  .func-table .col-dev { grid-column: 1 / -1; width: auto; }
}
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; font-size: .85rem; color: var(--muted); align-items: center; }
.note-box { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius-sm); background: #fff8ef; border: 1px solid #fbe0c3; color: #7a4a10; font-weight: 700; display: flex; gap: .7em; align-items: flex-start; }
.note-box .icon { width: 1.3em; height: 1.3em; margin-top: .25em; }

.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.spec h3 { font-size: 1rem; padding: 16px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line); display: flex; gap: .6em; align-items: center; }
.spec h3 .icon { color: var(--primary); width: 1.2em; height: 1.2em; }
.spec th, .spec td { padding: 14px 22px; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 40%; color: var(--muted); font-weight: 700; }
.spec td, .func-table td { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec h3 { padding: 14px 16px; }
  .spec th, .spec td { padding: 12px 16px; }
  .spec th { width: 1%; white-space: nowrap; }
}

/* ---------- Merit detail (merit.html) ---------- */
.merit-detail { --c: var(--c-blue); display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.merit-detail + .merit-detail { margin-top: 96px; }
.merit-detail:nth-of-type(even) > .photo { order: 2; }
.merit-detail.green { --c: var(--c-green); }
.merit-detail.orange { --c: var(--c-orange); }
.merit-detail.purple { --c: var(--c-purple); }
.merit-detail .photo { position: relative; }
.merit-detail .photo img { border-radius: 24px; width: 100%; box-shadow: var(--shadow-lg); }
.merit-detail .photo .num {
  position: absolute; top: -18px; left: -12px; background: var(--c); color: #fff; font-weight: 900;
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1.05;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}
.merit-detail .photo .num small { display: block; font-size: .58rem; letter-spacing: .12em; }
.merit-detail .photo .num b { font-size: 1.5rem; }
.merit-detail h2 { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.85rem); color: var(--text); }
.merit-detail h2 .bar { display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--c); margin-bottom: 16px; }
.merit-detail .summary { margin-top: 14px; color: var(--muted); }
.ba { margin-top: 22px; display: grid; gap: 16px; }
.ba-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.ba-who { font-size: .8rem; font-weight: 700; padding: 8px 16px; background: var(--bg-soft); color: var(--navy); display: flex; gap: .5em; align-items: center; }
.ba-who .icon { width: 1.1em; height: 1.1em; }
.ba-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 14px 16px; }
.ba-before, .ba-after { font-size: .9rem; line-height: 1.7; padding: 10px 14px; border-radius: 10px; }
.ba-before { background: #f3f4f6; color: #4b5563; }
.ba-after { background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--text); font-weight: 700; }
.ba-before::before, .ba-after::before { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; margin-bottom: 2px; }
.ba-before::before { content: "BEFORE"; color: #9aa3af; }
.ba-after::before { content: "AFTER"; color: var(--c); }
.ba-arrow { color: var(--c); }
.ba-arrow .icon { width: 22px; height: 22px; stroke-width: 2.5; }
@media (max-width: 960px) {
  .merit-detail { grid-template-columns: 1fr; gap: 32px; }
  .merit-detail:nth-of-type(even) > .photo { order: 0; }
  .merit-detail + .merit-detail { margin-top: 72px; }
  .merit-detail .photo { max-width: 560px; }
  .merit-detail .photo .num { left: 12px; }
}
@media (max-width: 520px) {
  .ba-body { grid-template-columns: 1fr; justify-items: stretch; }
  .ba-arrow { justify-self: center; }
  .ba-arrow .icon { transform: rotate(90deg); }
}

/* ---------- Industries ---------- */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; justify-content: center; }
.chip-list li { background: #fff; border: 1px solid var(--line); padding: .55em 1.2em; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--navy); }

/* Content blocks (tokusyoku) */
.block + .block { margin-top: 80px; }
.block-title { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem); display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.block-title .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.block-title .ico .icon { width: 24px; height: 24px; }
.std-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; list-style: none; }
.std-list li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 700; line-height: 1.6; }
.std-list li .icon { color: var(--primary); width: 22px; height: 22px; margin-top: 2px; }
.effects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.effect { background: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center; border: 1px solid var(--line); }
.effect .ico { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.effect .ico .icon { width: 28px; height: 28px; }
.effect h3 { font-size: 1.05rem; color: var(--text); }
@media (max-width: 680px) { .effects { grid-template-columns: 1fr; } .effect { display: flex; gap: 16px; align-items: center; text-align: left; padding: 18px; } .effect .ico { margin: 0; flex-shrink: 0; width: 48px; height: 48px; } }

/* Contact cards (info.html) */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); text-align: center; color: inherit; display: block; }
a.contact-card:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); }
.contact-card .ico { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.contact-card .ico .icon { width: 28px; height: 28px; }
.contact-card h3 { font-size: 1rem; color: var(--muted); }
.contact-card .val { display: block; margin-top: 6px; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 900; color: var(--navy); overflow-wrap: anywhere; }
.contact-card .sub { display: block; margin-top: 8px; font-size: .85rem; color: var(--primary); font-weight: 700; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } .contact-card { display: flex; gap: 16px; text-align: left; align-items: center; padding: 20px; } .contact-card .ico { margin: 0; flex-shrink: 0; } .contact-card .val { margin-top: 2px; font-size: 1rem; } .contact-card .ico { width: 48px; height: 48px; } .contact-card .ico .icon { width: 22px; height: 22px; } }

.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .merit-card:hover { transform: none; }
}
.flow-node .who { display: flex; align-items: center; gap: .5em; font-size: .75rem; font-weight: 700; color: var(--muted); line-height: 1.4; margin-bottom: 2px; }

.stat-value.sm { font-size: clamp(1.05rem, .9rem + .8vw, 1.45rem); padding: .2em 0; }
@media (max-width: 768px) { .stat-value.sm { font-size: .95rem; padding: .45em 0; } }

/* =========================================================
   図解・イメージ画面・具体例
   ========================================================= */
.illust-note { margin-top: 20px; font-size: .8rem; color: var(--muted); text-align: center; }

/* Before / After 比較 */
.cmp-list { display: grid; gap: 40px; }
.cmp { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.cmp-title { display: flex; align-items: center; gap: .6em; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); margin-bottom: 22px; }
.cmp-tag { background: var(--navy); color: #fff; font-size: .78rem; padding: .25em .9em; border-radius: 999px; flex-shrink: 0; }
.cmp-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.cmp-item { margin: 0; position: relative; border-radius: 18px; padding: 16px 16px 20px; display: flex; flex-direction: column; }
.cmp-item.before { background: #f6f3f0; }
.cmp-item.after { background: #eaf4ee; }
.cmp-item img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.cmp-item figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); line-height: 1.75; }
.cmp-item figcaption strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 4px; line-height: 1.5; }
.cmp-label { position: absolute; top: 26px; left: 26px; z-index: 1; display: inline-flex; align-items: baseline; gap: .5em; background: #6b6460; color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .08em; padding: .35em .9em; border-radius: 999px; }
.cmp-label small { font-size: .72rem; letter-spacing: 0; font-weight: 700; }
.cmp-item.after .cmp-label, .cmp-label.after { background: var(--c-green); }
.cmp-arrow { align-self: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cta); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(240, 127, 29, .35); }
.cmp-arrow .icon { width: 24px; height: 24px; stroke-width: 3; }
@media (max-width: 760px) {
  .cmp { padding: 18px 14px; border-radius: 18px; }
  .cmp-grid { grid-template-columns: 1fr; gap: 12px; }
  .cmp-arrow { justify-self: center; transform: rotate(90deg); width: 44px; height: 44px; }
  .cmp-item { padding: 12px 12px 16px; }
  .cmp-label { top: 20px; left: 20px; }
}

/* 仕組みのイラスト */
.how-visual { margin: 0 auto 48px; max-width: 980px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; background: #fff; border-radius: 24px; padding: 24px 32px; box-shadow: var(--shadow); }
.how-visual img { width: 100%; height: auto; }
.how-steps { list-style: none; display: grid; gap: 12px; }
.how-steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text); font-size: 1rem; line-height: 1.5; }
.how-steps b { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: .95rem; }
@media (max-width: 760px) {
  .how-visual { grid-template-columns: 1fr; padding: 16px 16px 22px; gap: 12px; margin-bottom: 32px; }
  .how-steps li { font-size: .95rem; }
}

/* 具体例ストーリー */
.story { list-style: none; display: grid; gap: 28px; max-width: 1040px; margin: 0 auto; position: relative; }
.story::before { content: ""; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(var(--primary) 0 8px, transparent 8px 14px); opacity: .35; }
.story-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 20px; position: relative; }
.story-time { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.story-time .no { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; font-size: 1.4rem; display: grid; place-items: center; box-shadow: 0 0 0 6px #fff; flex-shrink: 0; }
.story-time .t { font-weight: 900; font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--navy); }
.story-time .where { display: inline-flex; align-items: center; gap: .35em; font-size: .82rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: .3em .9em; border-radius: 999px; }
.story-time .where .icon { width: 1.1em; height: 1.1em; }
.story-card { grid-column: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.story-media { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 200px; }
.story-media .scene { width: 100%; height: auto; border-radius: 16px; }
.story-media .phone { position: absolute; right: -6px; bottom: -14px; width: 34%; max-width: 150px; height: auto; filter: drop-shadow(0 12px 24px rgba(20, 47, 107, .25)); }
.story-media .wide { position: absolute; right: -8px; bottom: -12px; width: 56%; height: auto; filter: drop-shadow(0 12px 24px rgba(20, 47, 107, .25)); }
.story-media.single { background: linear-gradient(160deg, #eaf1fd, #f8fbff); border-radius: 16px; padding: 18px 0; }
.story-media.single .phone { position: static; width: 46%; max-width: 190px; }
.story-body h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--text); }
.story-body p { margin: 12px 0 0; color: var(--muted); }
.story-func { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; margin-top: 14px !important; font-size: .85rem; font-weight: 700; color: var(--primary) !important; background: var(--primary-soft); padding: .55em .9em; border-radius: 10px; }
.story-func .icon { width: 1.1em; height: 1.1em; stroke-width: 3; }
.story-clinic { max-width: 1040px; margin: 44px auto 0; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; background: #eaf4ee; border-radius: 22px; padding: 24px 28px; }
.story-clinic-media img { width: 100%; height: auto; border-radius: 16px; background: #fff; }
.story-clinic .who { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: #23753a; font-size: .9rem; }
.story-clinic .who .icon { width: 1.2em; height: 1.2em; }
.story-clinic h3 { margin-top: 6px; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--text); }
.story-clinic p { margin: 10px 0 0; color: var(--muted); }
.story-clinic .story-func { background: #fff; color: #23753a !important; }
@media (max-width: 860px) {
  .story-card { grid-template-columns: 1fr; gap: 20px; padding: 16px 16px 20px; }
  .story-media .phone { right: 0; width: 30%; }
}
@media (max-width: 600px) {
  .story::before { left: 21px; }
  .story-step { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .story-time .no { width: 44px; height: 44px; font-size: 1.15rem; }
  .story-card { grid-column: 1; }
  .story-clinic { grid-template-columns: 1fr; padding: 16px 16px 22px; gap: 16px; }
}

/* ステップのイラスト */
.step-illust { display: block; width: 100%; max-width: 150px; height: auto; margin: 0 auto 10px; }
@media (max-width: 600px) {
  .step { grid-template-columns: 96px 1fr; }
  .step-illust { grid-row: span 3; margin: 0; max-width: 96px; }
  .step-no { grid-row: auto; }
}
.tl-illust { float: right; width: 150px; height: auto; margin: -6px -6px 6px 16px; }
@media (max-width: 600px) { .tl-illust { float: none; display: block; width: 140px; margin: 0 0 8px; } }

/* メリット詳細の「たとえば」 */
.merit-detail .photo img[src$=".svg"] { background: #fff; }
.example-box { margin-top: 22px; background: #fffaf3; border: 2px dashed #f3c896; border-radius: 18px; padding: 18px 20px 20px; }
.example-head { display: inline-flex; align-items: center; gap: .4em; font-weight: 900; color: #b85600; }
.example-head .icon { width: 1.3em; height: 1.3em; }
.example-box > p { margin: 8px 0 0; color: var(--text); font-weight: 500; }
.ex-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ex-pair figure { margin: 0; position: relative; }
.ex-pair img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.ex-pair .cmp-label { top: 8px; left: 8px; font-size: .7rem; }
.ex-pair.phones { grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; gap: 20px; }
.ex-pair.phones img { background: none; filter: drop-shadow(0 8px 16px rgba(20, 47, 107, .2)); }
.ex-pair figcaption { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); margin-top: 6px; }

/* 機能ページの画面イメージ */
.screen-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; gap: 28px; margin: 8px 0 12px; padding: 32px 24px; background: linear-gradient(160deg, #eaf1fd, #f8fbff); border-radius: 24px; }
.screen-gallery figure, .screen-pair figure { margin: 0; text-align: center; }
.screen-gallery img { width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(20, 47, 107, .2)); }
.screen-gallery figcaption, .screen-pair figcaption { margin-top: 12px; font-weight: 700; color: var(--text); line-height: 1.5; }
.screen-gallery figcaption b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .82rem; margin-right: .4em; }
.screen-gallery figcaption small, .screen-pair figcaption small { display: block; font-size: .78rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.screen-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: end; margin: 8px 0 12px; padding: 32px 24px; background: #fff; border-radius: 24px; border: 1px solid var(--line); }
.screen-pair img { width: 100%; height: auto; }
.screen-pair .tag { margin-left: .5em; vertical-align: middle; }
.screen-gallery + .illust-note, .screen-pair + .illust-note { margin: 0 0 28px; }
@media (max-width: 760px) {
  .screen-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 20px 12px; }
  .screen-gallery figcaption { font-size: .78rem; }
  .screen-gallery figcaption b { width: 22px; height: 22px; display: grid; margin: 0 auto 4px; }
  .screen-gallery figcaption small { display: none; }
  .screen-pair { grid-template-columns: 1fr; padding: 20px 14px; }
}

/* 特色ページ：効果・業種 */
.effect.has-img { padding: 0 0 24px; overflow: hidden; }
.effect.has-img img { width: 100%; height: auto; display: block; background: var(--bg-soft); }
.effect.has-img .ico { margin-top: -30px; position: relative; box-shadow: 0 0 0 5px #fff; }
.effect.has-img h3, .effect.has-img p { padding: 0 20px; }
.effect.has-img p { margin: 8px 0 0; font-size: .9rem; color: var(--muted); text-align: left; }
.ind-grid { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; margin-top: 22px; }
.ind-grid li { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 6px 14px; }
.ind-grid img { width: 64px; height: 64px; display: block; margin: 0 auto 8px; }
.ind-grid span { font-weight: 700; font-size: .85rem; color: var(--navy); word-break: keep-all; }
.ind-note { margin-top: 12px; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .ind-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .ind-grid { gap: 8px; } .ind-grid img { width: 52px; height: 52px; } .ind-grid span { font-size: .78rem; } }
@media (max-width: 760px) {
  .effects { grid-template-columns: 1fr; }
  .effect.has-img { display: block; text-align: center; padding: 0 0 22px; }
  .effect.has-img .ico { margin: -30px auto 12px; width: 56px; height: 56px; }
}

/* =========================================================
   訴求ワード・数字の強調 / FAQ / SEO まわり
   ========================================================= */
/* 見出し内のキャッチ（h1 に含めたバッジ） */
.hero-title .hero-badge { margin-bottom: 18px; letter-spacing: 0; line-height: 1.5; vertical-align: middle; }
.hero-text > .hero-title:first-child { margin-top: 0; }
.hero-points b { font-size: 1.3em; font-weight: 900; color: var(--cta-dark); margin: 0 .1em; }

/* 訴求ワード：大きく・マーカー */
.kw { font-size: 1.18em; font-weight: 900; color: var(--cta-dark); background: linear-gradient(transparent 62%, #ffe2a8 62%); padding: 0 .05em; }
.problems-answer .kw { color: var(--cta-dark); }
.cmp-item figcaption strong { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); }
.cmp-item.after figcaption strong { color: #1d7a35; }

/* 数字帯（ヒーロー直下） */
.stat-value { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); letter-spacing: -.01em; }
.stat-value small { font-size: .42em; }
.stat-value.sm { font-size: clamp(1.15rem, .95rem + .9vw, 1.6rem); }
@media (max-width: 768px) {
  .stat-value { font-size: clamp(1.7rem, 1rem + 3.6vw, 2.1rem); }
  .stat-value small { display: block; font-size: .78rem; margin: 2px 0 0; }
  .stat-value.sm { font-size: 1rem; }
}

/* 数字でわかる iReserve */
.numbers { background: radial-gradient(900px 500px at 85% -10%, #2a5fc0 0%, transparent 60%), var(--bg-navy); color: #fff; }
.numbers .section-title { color: #fff; }
.numbers .eyebrow { color: #b9d2ff; }
.num-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.num-grid li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 26px 24px 24px; text-align: center; }
.num-label { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; font-size: .92rem; color: #cfe0ff; }
.num-label .icon { width: 1.2em; height: 1.2em; }
.num-big { display: block; margin: 6px 0 4px; font-size: clamp(3.2rem, 2rem + 4vw, 4.8rem); font-weight: 900; line-height: 1.1; letter-spacing: -.02em; white-space: nowrap; color: #ffd27a; background: linear-gradient(180deg, #ffe4a3, #ffad4d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.num-big small { font-size: .38em; letter-spacing: 0; margin: 0 .08em; }
.num-grid p { margin: 0; color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.6; }
@media (max-width: 860px) { .num-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .num-grid li { padding: 20px 10px 18px; } }
@media (max-width: 600px) {
  .num-big { font-size: clamp(2.5rem, 1.4rem + 7vw, 3.2rem); }
  .num-grid p { font-size: .82rem; }
  .num-label { font-size: .78rem; }
}

/* 導入方法の大きな訴求 */
.plan-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3em .6em; margin: 4px 0 14px; padding: 12px 16px; border-radius: 12px; background: var(--primary-soft); }
.plan.alt .plan-big { background: #e8f6ec; }
.plan-big span { font-weight: 700; color: var(--muted); font-size: .9rem; }
.plan-big b { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 900; color: var(--primary); line-height: 1.2; }
.plan.alt .plan-big b { color: var(--c-green); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); }
.plan-big b small { font-size: .45em; margin-left: .1em; }

/* よくあるご質問 */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 48px 18px 18px; font-weight: 700; color: var(--navy); position: relative; line-height: 1.6; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item .q, .faq-item .a { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; }
.faq-item .q { background: var(--primary); color: #fff; }
.faq-item .a { background: #fff1e3; color: var(--cta-dark); }
.faq-a { display: flex; gap: 14px; padding: 0 18px 20px; }
.faq-a p { margin: 4px 0 0; color: var(--text); }

/* フッターの事業所名（見出しタグをやめて段落に） */
.office-name { color: #fff; font-size: .88rem; font-weight: 700; margin: 0 0 6px !important; }
