/* ミセドコ site styles — readable, mobile-first, shared header/footer */

:root {
  --bg: #f3f7fb;
  --bg-alt: #ffffff;
  --bg-tint: #e8f1f8;
  --bg-warm: #fff6ef;
  --ink: #14181f;
  --muted: #2f3844;
  --line: #c9d7e4;
  --red: #d62c2c;
  --red-dark: #b42424;
  --red-soft: #fdecec;
  --blue: #184f96;
  --blue-dark: #133e76;
  --blue-soft: #d4e5f6;
  --orange: #d25e12;
  --orange-soft: #fff1e6;
  --ok: #1f6b3d;
  --line-green: #008c3a;
  --line-green-dark: #007533;
  --shadow: 0 12px 32px rgba(20, 24, 31, 0.08);
  --shadow-sm: 0 4px 16px rgba(20, 24, 31, 0.06);
  --radius: 24px;
  --radius-sm: 14px;
  --header-h: 76px;
  --max: 1140px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, .section-title, .hero h1, .page-hero h1 { text-wrap: balance; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.nowrap { white-space: nowrap; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -56px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* Header
   -------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo img { width: 44px; height: 44px; }
.logo-mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-sub {
  display: none;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}

.header-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px 11px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav {
  display: none;
  flex-direction: column;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: 0.04em;
  padding: 14px 16px;
  border-radius: 12px;
}
.nav a:hover,
.nav a:focus-visible { background: var(--bg-tint); color: var(--blue); }
.nav a[aria-current="page"] {
  color: var(--blue);
  background: var(--blue-soft);
}

/* Mobile menu: stays inside the viewport so it never widens the page */
@media (max-width: 1199px) {
  .logo { order: 1; }
  .header-cta { order: 2; margin-left: auto; }
  .menu-toggle { order: 3; }
  .cta-label-full { display: none; }
  .cta-label-short { display: inline; }

  .nav {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100dvh - var(--header-h));
    background: #fff;
    padding: 20px 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  .nav.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
  }
}

/* Buttons
   -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--display);
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 16px 26px;
  font-size: 1.05rem;
  line-height: 1.3;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.btn-line {
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 140, 58, 0.28);
}
.btn-line:hover { background: var(--line-green-dark); color: #fff; }

.btn-ig,
.btn-secondary {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-ig:hover,
.btn-secondary:hover { background: var(--blue-soft); color: var(--blue-dark); }

.btn-sm { padding: 12px 18px; font-size: 0.98rem; }
.btn-lg { padding: 18px 30px; font-size: 1.12rem; }
.btn-block { width: 100%; }

/* Layout
   -------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); }
.section-white { background: var(--bg-alt); }
.section-warm { background: var(--bg-warm); }

.section-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  background: var(--red-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin: 0 0 16px;
}

.section-lead {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 42em;
  font-size: 1.05em;
}

.center { text-align: center; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* Hero (home)
   -------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf4fb 0%, #f3f7fb 72%, #f3f7fb 100%);
  padding: 40px 0 56px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 79, 150, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 79, 150, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
  animation: msdGridDrift 72s linear infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 3.15rem);
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}
.hero h1 em { font-style: normal; color: var(--red); }

.hero-lead {
  margin: 0 0 14px;
  font-size: 1.08em;
  color: var(--ink);
  max-width: 36em;
}
.hero-note {
  margin: 0 0 24px;
  font-size: 1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.monitor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.monitor-pill:hover { filter: brightness(1.05); color: #fff; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { width: min(100%, 460px); margin: 0 auto; }

.speech {
  position: absolute;
  top: 8px;
  left: 0;
  max-width: 13.5em;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.speech::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 16px;
  border-width: 8px 0 8px 12px;
  border-style: solid;
  border-color: transparent transparent transparent var(--ink);
}

/* Inner page hero
   -------------------------------- */
.page-hero {
  background: linear-gradient(180deg, #eaf4fb 0%, #f3f7fb 100%);
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 5.5vw, 2.6rem);
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}
.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
  font-size: 1.08em;
}

/* Home entry cards
   -------------------------------- */
.entry-grid {
  display: grid;
  gap: 20px;
}
.entry-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
a.entry-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.entry-kicker {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.entry-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.entry-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}
.entry-more {
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
}

/* Trust / services / etc. (shared cards)
   -------------------------------- */
.trust-grid,
.service-grid,
.price-grid {
  display: grid;
  gap: 16px;
}

.trust-item,
.service-card,
.worry-item,
.meo-step,
.flow-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: var(--shadow-sm);
}

.trust-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
}
.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--ok);
  margin-top: 4px;
}
.trust-item h3,
.service-card h3,
.worry-item h3,
.meo-step h3,
.flow-item h3,
.faq-item summary {
  font-family: var(--display);
  letter-spacing: 0.03em;
}
.trust-item h3,
.service-card h3,
.worry-item h3,
.meo-step h3,
.flow-item h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.45;
}
.trust-item p,
.service-card p,
.worry-item p,
.meo-step p,
.flow-item p { margin: 0; color: var(--muted); }

.service-card header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.service-no,
.meo-num,
.flow-no {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.meo-num,
.flow-no { border-radius: 50%; margin-bottom: 12px; }
.meo-num { background: var(--blue); }

.meo-step,
.worry-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}
.meo-step { grid-template-columns: 44px 1fr; }
.meo-step .meo-num { margin-bottom: 0; }

.worry-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red);
  display: grid;
  place-items: center;
}
.worry-icon svg { width: 28px; height: 28px; }

.worry-layout,
.meo-steps,
.flow-list { display: grid; gap: 16px; }
.flow-list { list-style: none; margin: 0; padding: 0; }

.meo-foot {
  background: var(--bg-alt);
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px;
  color: var(--ink);
  margin: 24px 0 0;
  font-size: 1.05em;
}

.worry-visual,
.monitor-visual,
.cta-visual { text-align: center; }
.worry-visual img { width: min(100%, 240px); margin: 0 auto; }
.worry-caption {
  font-family: var(--display);
  font-weight: 700;
  color: var(--red);
  margin: 10px 0 0;
  font-size: 1.05rem;
}


/* Homepage "why needed" blocks
   -------------------------------- */
.pain-grid,
.path-grid,
.roles-grid,
.why-points {
  display: grid;
  gap: 16px;
}

.pain-card,
.path-card,
.role-card,
.why-point {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.pain-card h3,
.path-card h3,
.role-card h3,
.why-point h3 {
  font-family: var(--display);
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.45;
}

.pain-card p,
.path-card p,
.role-card p,
.why-point p { margin: 0; color: var(--muted); }

.pain-card header,
.path-card header,
.why-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pain-card header { margin-bottom: 8px; }
.pain-card header h3,
.path-card header h3 { margin: 0; min-width: 0; }

.pain-icon,
.path-no {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.pain-icon {
  background: var(--red-soft);
  color: var(--red);
}
.pain-icon svg { width: 28px; height: 28px; }

.path-no {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.path-card header { align-items: center; margin-bottom: 8px; }

.why-point {
  align-items: flex-start;
}
.why-point .why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.why-point div { min-width: 0; }
.why-point h3 { margin: 0 0 4px; }

.why-foot,
.path-foot {
  background: var(--bg-alt);
  border-left: 5px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px;
  color: var(--ink);
  margin: 24px 0 0;
  font-size: 1.05em;
}

.role-card--us {
  border: 2px solid var(--blue);
  background: linear-gradient(180deg, #fff 0%, #f3f8fd 100%);
}
.role-kicker {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  color: var(--muted);
}
.role-card--us .role-kicker { color: var(--blue); }
.role-card ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.role-card li {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: var(--bg);
  border-radius: 12px;
  color: var(--ink);
  line-height: 1.7;
}
.role-card--us li { background: #fff; }
.role-card li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 1.05em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}
.role-card--us li::before { background: var(--blue); }

.section-more {
  margin: 28px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}
.section-more a { text-decoration: none; }
.section-more a:hover { text-decoration: underline; }

.mid-consult {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.mid-consult p {
  margin: 0;
  color: var(--muted);
}

.pain-card h3,
.path-card h3,
.role-card h3,
.why-point h3 { text-wrap: balance; }

@media (min-width: 768px) {
  br.sp-only { display: none; }
}



/* Pricing
   -------------------------------- */
.price-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.price-card.is-main {
  border: 3px solid var(--red);
  background: linear-gradient(180deg, #fff 0%, #fff8f8 100%);
}
.price-kicker {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.price-card.is-main .price-kicker { color: var(--red); }
.price-amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 3.1rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 14px;
}
.price-amount small {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 2px;
}
.price-card p { margin: 0; color: var(--muted); }
.price-note { margin: 18px 0 0; color: var(--muted); }

/* Monitor
   -------------------------------- */
.monitor-box {
  background: var(--bg-alt);
  border: 3px solid var(--orange);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
}
.monitor-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.monitor-box h3 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4.5vw, 1.9rem);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}
.monitor-box .free { color: var(--orange); }
.monitor-box > div > p { margin: 0 0 18px; }
.conditions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.conditions li {
  background: var(--orange-soft);
  border-radius: 14px;
  padding: 16px 16px;
  color: var(--ink);
}
.conditions strong { display: block; font-family: var(--display); font-size: 1.08rem; margin-bottom: 2px; }
.monitor-visual img { width: min(100%, 260px); margin: 0 auto; }
.notice { margin: 12px 0 0; color: var(--muted); }

/* FAQ
   -------------------------------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.55;
  padding: 18px 48px 18px 0;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  margin: 0;
  padding: 0 0 18px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  font-size: 1.02em;
}

/* Lab / articles
   -------------------------------- */
.lab-list { display: grid; gap: 18px; margin-bottom: 56px; }
.lab-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.lab-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.lab-card .lab-no {
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  margin: 0 0 6px;
}
.lab-card h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 8px;
  line-height: 1.45;
  letter-spacing: 0.03em;
}
.lab-card p { margin: 0; color: var(--muted); }

.article {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 32px;
  margin: 0 0 28px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.article h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  line-height: 1.45;
  margin: 0 0 18px;
  letter-spacing: 0.03em;
}
.article p { margin: 0 0 16px; color: var(--ink); }
.article p:last-child { margin-bottom: 0; }
.article ul, .article ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: var(--ink);
}
.article li { margin: 0 0 8px; }
.article h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 22px 0 10px;
}

.cases-empty {
  background: var(--bg-alt);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 40px;
}
.cases-empty img { width: min(100%, 220px); margin: 0 auto 16px; }
.cases-empty h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin: 0 0 12px;
}
.cases-empty p { margin: 0; color: var(--muted); }

/* CTA band
   -------------------------------- */
.cta-band {
  background: linear-gradient(160deg, #1a4e96 0%, #143964 100%);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 5vw, 2.25rem);
  margin: 0 0 14px;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.45;
}
.cta-band p { margin: 0 0 22px; color: #fff; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band .btn-ig {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.cta-band .btn-ig:hover { background: rgba(255,255,255,0.14); color: #fff; }
.cta-visual img { width: min(100%, 220px); margin: 0 auto; }

/* Footer
   -------------------------------- */
.footer {
  background: #121820;
  color: #e6edf3;
  padding: 48px 0 32px;
  font-size: 1rem;
}
.footer-top { display: grid; gap: 28px; margin-bottom: 32px; }
.footer .logo-mark { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 10px; }
.footer p { margin: 0 0 8px; }
.origin { color: #c5d0da; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-links a,
.footer-nav a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-links a:hover,
.footer-nav a:hover { text-decoration: underline; }
.footer-col-title {
  font-family: var(--display);
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #2a3642;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  color: #c5d0da;
  font-size: 0.95rem;
}
.footer-nav a { color: #c5d0da; margin: 0 14px 8px 0; font-weight: 500; display: inline-block; white-space: nowrap; }
.footer-nav a:hover { color: #fff; }

/* Desktop
   -------------------------------- */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .section { padding: 96px 0; }
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .speech { left: 2%; top: 6%; }
  .logo-sub { display: block; }
  .entry-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .service-grid,
  .trust-grid,
  .price-grid,
  .meo-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
  .path-grid,
  .roles-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .why-points { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .why-point { flex-direction: column; gap: 12px; }
  .worry-layout { grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
  .price-grid { max-width: 860px; }
  .monitor-box { grid-template-columns: 1.3fr 0.7fr; align-items: center; padding: 40px 44px; }
  .flow-list { grid-template-columns: 1fr 1fr; gap: 20px; }
  .faq-list { max-width: 840px; margin: 0 auto; }
  .cta-inner { grid-template-columns: 1.3fr 0.7fr; gap: 32px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cta-visual img { width: min(100%, 280px); }
  .footer-top { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
  .article { padding: 40px 44px 44px; }
  .lab-list { grid-template-columns: 1fr; }
  .page-hero { padding: 56px 0 36px; }
  .cta-band { padding: 88px 0; }
}

@media (min-width: 1024px) {
  .wrap { padding: 0 32px; }
  .flow-list { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .pain-grid { grid-template-columns: 1fr 1fr 1fr; }
  .entry-grid { grid-template-columns: 1fr 1fr 1fr; }
  .lab-list { grid-template-columns: 1fr 1fr 1fr; }
}

/* Desktop global nav (enough width for 6 labels + LINE button) */
@media (min-width: 1200px) {
  :root { --header-h: 84px; }
  .menu-toggle { display: none; }
  .header-inner { padding: 0 24px; }
  .nav {
    display: flex;
    flex-direction: row;
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    overflow: visible;
    margin-left: auto;
    gap: 0;
    align-items: center;
  }
  .nav a {
    font-size: 0.98rem;
    padding: 8px 9px;
    white-space: nowrap;
  }
  .header-cta { margin-left: 8px; }
  .cta-label-full { display: inline; }
  .cta-label-short { display: none; }
  body.nav-open { overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav, .menu-toggle-bar { transition: none; }
  .btn:hover, a.entry-card:hover { transform: none; }
}

/* Hero motion (index .hero only — do not apply to .page-hero)
   -------------------------------- */
.hero-line { display: inline-block; }

.hero-motion {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-roads {
  position: absolute;
  inset: -30%;
  background-image:
    linear-gradient(rgba(24, 79, 150, 0.07) 2px, transparent 2px),
    linear-gradient(90deg, rgba(24, 79, 150, 0.06) 2px, transparent 2px);
  background-size: 88px 88px;
  animation: msdRoadDrift 90s linear infinite;
  mask-image: radial-gradient(ellipse at 60% 45%, #000 20%, transparent 78%);
}

.hero-spark,
.hero-pinfloat {
  position: absolute;
  display: block;
}

.hero-spark {
  width: 10px;
  height: 10px;
  background: #e8b83a;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.7;
  animation: msdTwinkle 3.2s ease-in-out infinite, msdFall 14s linear infinite;
}
.hero-spark--1 { left: 4%; top: 8%; animation-delay: 0s, 0s; animation-duration: 2.8s, 16s; }
.hero-spark--2 { left: 94%; top: 8%; width: 8px; height: 8px; animation-delay: .6s, 3s; animation-duration: 3.4s, 18s; }
.hero-spark--3 { left: 62%; top: 10%; width: 12px; height: 12px; animation-delay: 1.1s, 1.4s; animation-duration: 2.6s, 15s; }
.hero-spark--4 { left: 78%; top: 28%; width: 7px; height: 7px; animation-delay: .3s, 5s; animation-duration: 3s, 17s; }
.hero-spark--5 { left: 52%; top: 6%; width: 9px; height: 9px; animation-delay: 1.6s, 7s; animation-duration: 2.4s, 19s; }

.hero-pinfloat {
  width: 14px;
  height: 18px;
  background: #e03a3a;
  border-radius: 70% 70% 70% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 0 rgba(20, 24, 31, 0.12);
  animation: msdPinBob 5s ease-in-out infinite;
}
.hero-pinfloat::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  top: 4px;
  left: 4.5px;
}
.hero-pinfloat--1 { left: 3%; top: 22%; animation-duration: 5.2s; animation-delay: 0s; }
.hero-pinfloat--2 { left: 86%; top: 18%; width: 12px; height: 16px; animation-duration: 4.6s; animation-delay: .8s; }
.hero-pinfloat--3 { left: 90%; top: 78%; width: 11px; height: 15px; animation-duration: 5.8s; animation-delay: 1.4s; }

@keyframes msdGridDrift {
  from { background-position: 0 0; }
  to { background-position: 36px 36px; }
}
@keyframes msdRoadDrift {
  from { background-position: 0 0; }
  to { background-position: -88px 88px; }
}
@keyframes msdTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}
@keyframes msdFall {
  0% { transform: translate3d(0, -12px, 0); }
  100% { transform: translate3d(18px, 460px, 0); }
}
@keyframes msdPinBob {
  0%, 100% { transform: rotate(-45deg) translate(0, 0); }
  50% { transform: rotate(-45deg) translate(0, -12px); }
}
@keyframes msdFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes msdFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes msdFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-copy .eyebrow,
.hero-copy .hero-line,
.hero-copy .hero-lead,
.hero-copy .hero-note,
.hero-copy .hero-actions,
.hero-copy .monitor-pill {
  animation: msdFadeUp 0.7s ease both;
}
.hero-copy .eyebrow { animation-delay: 0.08s; }
.hero-copy .hero-line:first-child { animation-delay: 0.2s; }
.hero-copy .hero-line:last-child { animation-delay: 0.36s; }
.hero-copy .hero-lead { animation-delay: 0.52s; }
.hero-copy .hero-note { animation-delay: 0.66s; }
.hero-copy .hero-actions { animation-delay: 0.8s; }
.hero-copy .monitor-pill { animation-delay: 0.96s; }

.hero-visual { animation: msdFade 0.8s 0.35s ease both; }
.hero-visual-float { animation: msdFloat 4.8s 1.15s ease-in-out infinite; }

@media (max-width: 767px) {
  /* Keep the grid / pinman motion; hide loose pins and stars so they never sit on the copy. */
  .hero-spark,
  .hero-pinfloat { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-roads,
  .hero-spark,
  .hero-pinfloat,
  .hero-copy .eyebrow,
  .hero-copy .hero-line,
  .hero-copy .hero-lead,
  .hero-copy .hero-note,
  .hero-copy .hero-actions,
  .hero-copy .monitor-pill,
  .hero-visual,
  .hero-visual-float {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-pinfloat { transform: rotate(-45deg) !important; }
}


/* ==========================================================
   v2 (2026-11-14): iPhone first view / intro / mobile type
   PC (>=768px) is untouched except .hero-whisper (hidden).
   ========================================================== */
.hero-whisper { display: none; }

/* Intro splash styles live inline in index.html <head> (critical CSS). */

/* --- Mobile sticky LINE bar with ピンマン (injected by site.js) --- */
.sp-cta { display: none; }

/* --- Mobile layout & typography ------------------------ */
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; line-height: 1.8; letter-spacing: .02em; }
  .wrap { padding: 0 18px; }
  .header-inner { padding: 8px 14px; gap: 8px; }
  .logo img { width: 40px; height: 40px; }
  .logo-mark { font-size: 1.22rem; }
  .menu-toggle { width: 44px; height: 44px; padding: 11px 10px; }
  .header-cta.btn-sm { padding: 10px 14px; font-size: .9rem; }

  .btn { padding: 14px 22px; font-size: 1rem; }
  .btn-lg { padding: 16px 24px; font-size: 1.06rem; }

  /* Hero: headline → big ピンマン → short copy → LINE */
  .hero { padding: 18px 0 40px; text-align: center; }
  .hero-grid { gap: 0; justify-items: center; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; font-size: .82rem; padding: 4px 12px; margin: 0 0 8px; }
  .hero h1 {
    order: 2;
    font-size: clamp(1.55rem, 7.4vw, 1.9rem);
    line-height: 1.42;
    letter-spacing: .03em;
    margin: 0;
  }
  .hero-visual { order: 3; width: 100%; margin: 2px 0 2px; }
  .hero-visual-float { position: relative; width: min(74vw, 300px, 35vh); width: min(74vw, 300px, 35svh); margin: 0 auto; }
  .hero-visual img { width: 100%; }
  .hero .speech {
    top: -1%;
    left: -17%;
    font-size: .8rem;
    line-height: 1.45;
    padding: 6px 10px;
    border-radius: 12px;
    max-width: none;
    white-space: nowrap;
  }
  .hero .speech::after { bottom: 8px; right: -9px; border-width: 6px 0 6px 9px; }
  .hero-lead {
    order: 4;
    font-size: .95rem;
    line-height: 1.75;
    font-weight: 500;
    margin: 0 0 14px;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .hero-whisper {
    display: block;
    order: 5;
    margin: 0 0 8px;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--ink);
    line-height: 1.5;
  }
  .hero-actions { order: 6; width: 100%; gap: 10px; margin: 0 0 14px; }
  .hero-actions .btn-line { min-height: 60px; font-size: 1.12rem; box-shadow: 0 5px 0 #00692b, 0 10px 20px rgba(0, 140, 58, .22); }
  .hero-actions .btn-ig { padding: 11px 18px; font-size: .92rem; }
  .hero-note { order: 7; font-size: .82rem; margin: 0 0 12px; line-height: 1.6; }
  .monitor-pill { order: 8; font-size: .9rem; padding: 8px 16px; }

  /* Sections: centred headings like a phone-first LP */
  .section { padding: 56px 0; }
  .section-label { display: table; margin: 0 auto 10px; font-size: .8rem; padding: 4px 12px; }
  .section-title { font-size: 1.45rem; line-height: 1.5; margin: 0 0 12px; text-align: center; }
  .section-lead { font-size: .95rem; line-height: 1.8; margin: 0 auto 26px; text-align: center; }

  .page-hero { padding: 26px 0 22px; }
  .page-hero .wrap { position: relative; }
  .page-hero .wrap::after {
    content: "";
    position: absolute;
    right: 12px;
    top: -10px;
    width: 76px;
    height: 84px;
    background: url("../img/pinman_waving_240.webp") center / contain no-repeat;
    pointer-events: none;
  }
  .page-hero .section-label { display: inline-block; margin: 0 0 10px; }
  .page-hero h1 { font-size: 1.6rem; margin: 0 84px 10px 0; line-height: 1.45; }
  .page-hero p { font-size: .95rem; line-height: 1.8; }

  .entry-grid { gap: 14px; }
  .entry-card { padding: 20px 18px 18px; gap: 6px; border-radius: 18px; }
  .entry-kicker { font-size: .78rem; }
  .entry-card h3 { font-size: 1.15rem; }
  .entry-card p { font-size: .93rem; line-height: 1.75; }
  .entry-more { font-size: .95rem; margin-top: 4px; }

  .trust-item, .service-card, .worry-item, .meo-step, .flow-item, .pain-card, .path-card, .role-card, .why-point { padding: 18px 16px; border-radius: 18px; }
  .trust-item h3, .service-card h3, .worry-item h3, .meo-step h3, .flow-item h3, .pain-card h3, .path-card h3, .role-card h3, .why-point h3 { font-size: 1.05rem; }
  .trust-item p, .service-card p, .worry-item p, .meo-step p, .flow-item p, .pain-card p, .path-card p, .role-card p, .role-card li, .why-point p { font-size: .93rem; line-height: 1.75; }
  .meo-foot, .why-foot, .path-foot { font-size: .95rem; padding: 16px 18px; }
  .price-card { padding: 26px 18px 22px; }
  .price-card p, .price-note, .notice { font-size: .93rem; }
  .monitor-box { padding: 24px 18px; border-radius: 22px; }
  .monitor-box h3 { font-size: 1.35rem; }
  .conditions li { padding: 12px 14px; font-size: .93rem; }
  .faq-item { padding: 0 16px; }
  .faq-item summary { font-size: 1rem; padding: 15px 36px 15px 0; }
  .faq-item .answer { font-size: .93rem; line-height: 1.8; }
  .lab-card { padding: 20px 18px; }
  .lab-card h2 { font-size: 1.15rem; }
  .lab-card p { font-size: .93rem; }
  .article { padding: 22px 18px 24px; }
  .article h2 { font-size: 1.3rem; }
  .article h3 { font-size: 1.08rem; }
  .article p, .article li { font-size: .95rem; line-height: 1.85; }
  .cases-empty { padding: 28px 18px; }
  .cases-empty h2 { font-size: 1.3rem; }
  .cta-band { padding: 56px 0; text-align: center; }
  .cta-band h2 { font-size: 1.45rem; }
  .cta-band p { font-size: .95rem; }
  .cta-visual img { width: min(60%, 180px); }
  .footer { font-size: .93rem; padding: 40px 0 28px; }

  /* sticky LINE bar */
  body.has-sp-cta { padding-bottom: 88px; }
  .sp-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(243, 247, 251, 0) 0%, rgba(243, 247, 251, .96) 34%);
    transform: translateY(calc(100% + 110px));
    transition: transform .3s ease;
    pointer-events: none;
  }
  .sp-cta.is-show { transform: none; pointer-events: auto; }
  body.nav-open .sp-cta { transform: translateY(calc(100% + 110px)); }
  .sp-cta .btn { width: 100%; min-height: 56px; padding-right: 84px; font-size: 1.06rem; box-shadow: 0 4px 0 #00692b, 0 8px 18px rgba(0, 140, 58, .25); }
  .sp-cta__pin {
    position: absolute;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 74px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .18));
  }
  .sp-cta.is-show .sp-cta__pin { animation: msdPeek .5s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
}
@keyframes msdPeek { from { transform: translateY(30px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .sp-cta { transition: none; }
  .sp-cta.is-show .sp-cta__pin { animation: none; }
}
