/* =========================================================
   病院・介護施設向け「ロボットDX」LP（/medical）専用スタイル。
   lp.css は使わず単独で完結させる。モバイルファースト、ブレークポイントは 768px。
   元ページ（STUDIO）の配色: 濃紺 #14328A / 本文 #303439 / 淡青背景 #F0F3F9
   ========================================================= */
:root {
  --m-navy: #14328a;
  --m-text: #303439;
  --m-bg: #f0f3f9;
  --m-line: #b8c8e8;
  --m-white: #fff;
  --m-font: "Noto Sans JP", system-ui, sans-serif;
  --m-font-en: Lato, "Noto Sans JP", sans-serif;
  --m-header-h: 56px;
}
@media (min-width: 768px) { :root { --m-header-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
body {
  padding-top: var(--m-header-h);
  font-family: var(--m-font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--m-text);
  background: var(--m-white);
}
@media (min-width: 768px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--m-navy); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--m-header-h) + 16px); }
.material-icons { font-size: 22px; line-height: 1; vertical-align: middle; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- ヘッダー ---------- */
.m-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--m-header-h);
  display: flex; align-items: stretch; justify-content: space-between;
  background: var(--m-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.m-header__logo { display: flex; align-items: center; padding-left: 12px; }
.m-header__logo img { width: 130px; height: auto; }
.m-header__right { display: flex; align-items: stretch; }
.m-header__tel { display: none; }
.m-header__btn {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 0 12px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.m-header__btn--doc { background: var(--m-navy); color: var(--m-white); }
.m-header__btn--contact { background: linear-gradient(90deg, #d0ddf0, #f7f9fd); color: var(--m-navy); }
.m-header__btn .material-icons { font-size: 18px; }
.m-header__btn:hover { opacity: .9; }
@media (min-width: 768px) {
  .m-header__logo { padding-left: 24px; }
  .m-header__logo img { width: 190px; }
  .m-header__tel {
    display: block; margin-right: 48px; padding-left: 12px; align-self: center;
    border-left: 2px solid #ddd; line-height: 1.3; color: var(--m-text); text-decoration: none;
  }
  .m-header__tel small { display: block; font-size: 12px; font-weight: 700; }
  .m-header__tel b { font-family: var(--m-font-en); font-size: 18px; font-weight: 900; font-style: italic; }
  .m-header__tel .material-icons { margin-right: 4px; }
  .m-header__btn { gap: 8px; padding: 0 32px; font-size: 14px; }
  .m-header__btn .material-icons { font-size: 22px; }
}

/* ---------- 共通部品 ---------- */
.m-wrap { max-width: 1040px; margin-inline: auto; padding-inline: 20px; }
.m-section { padding-block: 56px; }
@media (min-width: 768px) { .m-section { padding-block: 96px; } }
.m-section--blue { background: var(--m-bg); }
.m-head { text-align: center; margin-bottom: 32px; }
@media (min-width: 768px) { .m-head { margin-bottom: 56px; } }
.m-head__en { font-family: var(--m-font-en); font-size: 16px; font-weight: 900; color: var(--m-navy); line-height: 1.4; }
.m-head__title { font-size: 24px; font-weight: 500; line-height: 1.5; }
.m-head__title::after { content: ""; display: block; width: 48px; height: 4px; margin: 16px auto 0; background: var(--m-line); }
@media (min-width: 768px) { .m-head__title { font-size: 32px; } }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 100%; padding: 16px 28px; border-radius: 999px;
  background: var(--m-navy); color: var(--m-white); text-decoration: none;
  font-size: 16px; font-weight: 900; line-height: 1.4; text-align: center;
  box-shadow: 0 4px 16px rgba(20, 50, 138, .35); transition: opacity .2s;
}
.m-btn:hover { opacity: .88; }
.m-btn:focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--m-navy); }
.m-btn .material-icons { font-size: 26px; }
@media (min-width: 768px) { .m-btn { padding: 22px 56px; font-size: 22px; } }
.m-btn--sub {
  box-shadow: none; padding: 8px 16px; background: none; color: var(--m-navy);
  font-size: 14px; font-weight: 700;
}
@media (min-width: 768px) { .m-btn--sub { font-size: 16px; padding: 8px 16px; } }

/* フォーム枠（formrun 埋め込み。SDK が iframe の高さを自動調整する） */
.m-form { background: var(--m-white); overflow: hidden; }
.m-form iframe { display: block; width: 100%; min-height: 720px; border: 0; }

/* ---------- ヒーロー ---------- */
.m-hero { max-width: 1280px; margin-inline: auto; padding: 32px 20px 56px; }
.m-hero__grid { display: grid; gap: 40px; }
.m-hero__lead { text-align: center; }
.m-hero__sub { font-size: 18px; font-weight: 500; color: var(--m-navy); }
.m-hero__title { font-size: 20px; font-weight: 500; line-height: 1.5; margin-top: 8px; }
.m-hero__title strong { display: block; font-size: 36px; font-weight: 700; line-height: 1.4; }
.m-hero__img { margin: 16px auto 0; max-width: 664px; }
.m-hero__img img { width: 100%; height: auto; }
.m-hero__form h2 { color: var(--m-navy); font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
@media (min-width: 960px) {
  .m-hero { padding: 48px 32px 96px; }
  .m-hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
  .m-hero__sub { font-size: 24px; }
  .m-hero__title { font-size: 32px; margin-top: 16px; }
  .m-hero__title strong { font-size: 48px; }
  .m-hero__form h2 { font-size: 28px; }
}

/* ---------- 課題 ---------- */
.m-cards { display: grid; gap: 24px; }
.m-card {
  background: var(--m-white); border-radius: 6px; padding: 16px 16px 24px;
  box-shadow: 0 16px 24px -8px rgba(20, 50, 138, .25);
}
.m-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.m-card h3 { margin: 20px 0 12px; text-align: center; font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--m-navy); }
.m-card p { font-size: 14px; line-height: 1.9; }
@media (min-width: 768px) { .m-cards { grid-template-columns: repeat(3, 1fr); gap: 12px; } .m-card h3 { font-size: 22px; } }
.m-solve { margin-top: 48px; text-align: center; }
.m-solve__dots { width: 16px; height: auto; margin: 0 auto 16px; }
.m-solve p { font-size: 20px; font-weight: 500; line-height: 1.7; }
@media (min-width: 768px) { .m-solve p { font-size: 32px; } }
.m-section--arrow { position: relative; padding-bottom: 80px; }
.m-section--arrow::after {
  content: ""; position: absolute; left: 50%; width: 64px; height: 32px;
  transform: translateX(-50%); bottom: -31px; background: var(--m-bg);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ---------- 特長 ---------- */
.m-features { display: grid; gap: 56px; }
.m-feature { display: grid; gap: 20px; align-items: center; }
.m-feature img { width: 100%; border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; }
.m-feature__no { font-family: var(--m-font-en); font-size: 15px; font-weight: 700; color: var(--m-navy); }
.m-feature h3 { font-size: 20px; font-weight: 500; line-height: 1.5; margin-bottom: 12px; }
@media (min-width: 768px) {
  .m-features { gap: 80px; }
  .m-feature { grid-template-columns: 1fr 1fr; gap: 48px; }
  .m-feature h3 { font-size: 24px; }
}

/* ---------- CTA 帯 ---------- */
.m-cta { padding: 48px 20px; text-align: center; background: linear-gradient(135deg, #d0ddf0 40%, #fbfcfe); }
.m-cta h2 { color: var(--m-navy); font-size: 20px; font-weight: 500; margin-bottom: 24px; }
.m-cta__sub { margin-top: 16px; }
@media (min-width: 768px) { .m-cta { padding: 72px 20px; } .m-cta h2 { font-size: 32px; margin-bottom: 32px; } }

/* ---------- 導入事例 ---------- */
.m-cases { display: grid; gap: 20px; }
.m-case { display: grid; gap: 20px; padding: 20px; background: var(--m-bg); border-radius: 6px; align-items: center; }
.m-case img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.m-case h3 { font-size: 18px; font-weight: 500; line-height: 1.6; margin-bottom: 12px; }
.m-case p { font-size: 14px; line-height: 1.9; }
@media (min-width: 768px) {
  .m-case { grid-template-columns: 350px 1fr; gap: 32px; padding: 40px 56px; }
  .m-case h3 { font-size: 28px; }
}

/* ---------- ご利用の流れ ---------- */
.m-flow { display: grid; gap: 0; max-width: 840px; margin-inline: auto; }
.m-flow li { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--m-white); box-shadow: 0 2px 12px rgba(20, 50, 138, .15); }
.m-flow li + li { margin-top: 40px; }
.m-flow li + li::before {
  content: ""; position: absolute; left: 50%; top: -30px; width: 40px; height: 20px;
  transform: translateX(-50%); background: var(--m-navy);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.m-flow__no { font-family: var(--m-font-en); font-size: 44px; font-weight: 900; line-height: 1; color: #8a8a8a; min-width: 36px; text-align: center; }
.m-flow h3 { font-size: 18px; font-weight: 500; line-height: 1.5; }
.m-flow p { font-size: 14px; line-height: 1.7; }
@media (min-width: 768px) {
  .m-flow li { gap: 40px; padding: 32px 48px; }
  .m-flow li + li { margin-top: 56px; }
  .m-flow li + li::before { top: -40px; width: 64px; height: 28px; }
  .m-flow__no { font-size: 64px; min-width: 56px; }
  .m-flow h3 { font-size: 24px; }
  .m-flow p { font-size: 16px; }
}

/* ---------- FAQ ---------- */
.m-faq { max-width: 850px; margin-inline: auto; display: grid; gap: 24px; }
.m-faq h3 { display: flex; gap: 8px; padding: 8px 12px; background: var(--m-bg); border-radius: 4px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.m-faq h3 span { color: var(--m-navy); font-weight: 700; }
.m-faq p { padding: 12px 8px 0; font-size: 14px; }
@media (min-width: 768px) { .m-faq h3 { font-size: 24px; padding: 8px 16px; } .m-faq p { font-size: 16px; padding: 12px 16px 0; } }

/* ---------- 資料請求 ---------- */
.m-doc { display: grid; gap: 24px; }
.m-doc__cover { position: relative; border-radius: 6px; overflow: hidden; min-height: 200px; }
.m-doc__cover img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.m-doc__cover p {
  position: absolute; top: 12px; left: 12px; right: 12px; padding: 8px 12px; text-align: center;
  background: rgba(255, 255, 255, .85); border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.6;
}
@media (min-width: 768px) {
  .m-doc { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .m-doc__cover p { font-size: 16px; top: 16px; left: 16px; right: 16px; }
}

/* ---------- フッター ---------- */
.m-footer__main { background: linear-gradient(90deg, #d0ddf0, #fbfcfe); padding: 40px 20px; }
.m-footer__inner { max-width: 960px; margin-inline: auto; display: grid; gap: 24px; justify-items: center; }
.m-footer__logo img { width: 200px; }
.m-footer__co { font-size: 14px; line-height: 1.7; font-weight: 500; }
.m-footer__co strong { display: block; font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.m-footer__co p + p { margin-top: 12px; }
.m-footer__links { margin-top: 16px; font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; }
.m-footer__copy { display: block; padding: 12px 20px; background: var(--m-text); color: var(--m-white); text-align: center; font-family: var(--m-font-en); font-size: 12px; }
@media (min-width: 768px) {
  .m-footer__main { padding: 64px 20px; }
  .m-footer__inner { grid-template-columns: 1fr 1fr; justify-items: start; align-items: center; gap: 48px; }
  .m-footer__inner .m-footer__logo { justify-self: center; }
  .m-footer__co strong { font-size: 24px; }
}

/* ---------- フォーム・サンクスページ ---------- */
.m-page { padding: 40px 20px 72px; }
@media (min-width: 768px) { .m-page { padding: 72px 20px 96px; } }
.m-page__inner { max-width: 720px; margin-inline: auto; text-align: center; }
.m-page__title { font-size: 26px; font-weight: 500; line-height: 1.5; }
.m-page__title::after { content: ""; display: block; width: 48px; height: 4px; margin: 16px auto 0; background: var(--m-line); }
.m-page__en { font-family: var(--m-font-en); font-size: 14px; font-weight: 900; color: var(--m-navy); }
.m-page__lead { margin-top: 24px; font-weight: 500; }
.m-page__form { margin-top: 32px; text-align: left; }
.m-page__note { margin-top: 56px; font-size: 16px; font-weight: 700; }
.m-page__act { margin-top: 24px; }
.m-page__back { margin-top: 40px; }
.m-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; text-decoration: none; }
.m-back:hover { text-decoration: underline; }
@media (min-width: 768px) { .m-page__title { font-size: 32px; } .m-page__note { font-size: 18px; } }
