:root {
  --mfblue: #0b6db7;
  --mflight: #e9f6ff;
  --mfgray: #4b5563;
  --mftext: #0f172a;
  --line: #e5e7eb;
  --shadow: 0 18px 50px rgba(2, 27, 78, 0.08);
  --shadow-sm: 0 10px 24px rgba(2, 27, 78, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  color: var(--mftext);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Hiragino Sans",
    "Noto Sans JP",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.no-js {
  scroll-behavior: smooth;
}

/* Layout */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.section {
  padding: 84px 0;
}
.section-tight {
  padding: 64px 0;
}
.bg-white {
  background: #fff;
}
.bg-cross {
  background:
    linear-gradient(#fff, #fff) padding-box,
    radial-gradient(circle at 1px 1px, rgba(11, 109, 183, 0.12) 1px, transparent 1px) border-box;
  background-size:
    auto,
    18px 18px;
}
.bg-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.bg-lblue {
  background: var(--mflight);
}
.bg-split {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 50%, var(--mflight) 50%, var(--mflight) 100%);
}
.shadow {
  box-shadow: var(--shadow);
}
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.round {
  border-radius: var(--radius);
}
.round-sm {
  border-radius: var(--radius-sm);
}
.line {
  border: 1px solid var(--line);
}
.muted {
  color: var(--mfgray);
}
.kicker {
  color: var(--mfblue);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}
.h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 14px 0 0;
}
.h2 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.h3 {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 10px;
}
.lead {
  font-size: 18px;
  line-height: 1.8;
  margin: 18px 0 0;
}
.small {
  font-size: 15px;
  line-height: 1.8;
}
.grid {
  display: grid;
  gap: 18px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .h1 {
    font-size: 36px;
  }
  .h2 {
    font-size: 30px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
  .section-tight {
    padding: 52px 0;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .bg-split {
    background: #fff;
  }
  .h1 {
    font-size: 32px;
  }
  .lead {
    font-size: 16px;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  /*background:linear-gradient(135deg, rgba(11,109,183,1), rgba(0,176,255,1));*/
  box-shadow: 0 10px 18px rgba(11, 109, 183, 0.18);
}
.brand .name {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 14px;
}
.nav a {
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover {
  background: rgba(11, 109, 183, 0.06);
  color: var(--mfblue);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 109, 183, 0.22);
  background: rgba(11, 109, 183, 0.06);
  color: var(--mfblue);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 109, 183, 0.28);
  background: var(--mfblue);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 34px rgba(11, 109, 183, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(11, 109, 183, 0.22);
}
.btn:active {
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .brand {
    min-width: auto;
  }
  .header-cta {
    gap: 10px;
    flex-wrap: wrap;
  }
  .header-cta .pill {
    padding: 9px 12px;
    font-size: 12px;
  }
  .header-cta .btn {
    padding: 11px 15px;
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    gap: 10px;
  }
  .brand {
    gap: 10px;
  }
  .brand .logo {
    width: 27px;
    height: 27px;
  }
  .brand .name .muted {
    font-size: 14px;
  }
  .header-cta {
    gap: 9px;
  }
  .header-cta .pill {
    padding: 9px 12px;
    font-size: 12px;
  }
  .header-cta .btn {
    padding: 11px 15px;
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .header-inner {
    height: auto;
    padding: 10px 0;
    gap: 8px;
  }
  .brand {
    gap: 8px;
  }
  .brand .logo {
    width: 24px;
    height: 24px;
  }
  .brand .name {
    font-size: 14px;
  }
  .brand .name .muted {
    font-size: 12px;
  }
  .header-cta {
    gap: 6px;
  }
  .header-cta .pill {
    padding: 7px 10px;
    font-size: 11px;
  }
  .header-cta .btn {
    padding: 9px 12px;
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }
  .brand .name .sep,
  .brand .name .muted {
    display: none;
  }
  .header-cta .pill {
    padding: 6px 8px;
    font-size: 10px;
  }
  .header-cta .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}

/* Hero */
.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}
.hero-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 64px 20px;
}
.hero-left-inner {
  width: min(520px, 100%);
}
.hero-eq {
  color: var(--mfblue);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.mark {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(11, 109, 183, 0.1);
  border: 1px solid rgba(11, 109, 183, 0.14);
}
.hero-badge {
  margin-top: 14px;
  width: fit-content;
  background: var(--mfblue);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(11, 109, 183, 0.22);
}
.hero-badge .title {
  font-size: 26px;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin: 0;
}
.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 64px 20px;
}
.hero-visual {
  width: min(520px, 100%);
  margin-left: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25));
  border: 1px solid rgba(11, 109, 183, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(11, 109, 183, 0.18), transparent 48%), radial-gradient(circle at 80% 60%, rgba(0, 176, 255, 0.18), transparent 52%),
    radial-gradient(circle at 40% 90%, rgba(11, 109, 183, 0.1), transparent 55%);
  transform: rotate(8deg);
  pointer-events: none;
}
.hero-visual-inner {
  position: relative;
  padding: 22px;
}
.visual-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(2, 27, 78, 0.08);
}
.visual-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(11, 109, 183, 0.08);
  border: 1px solid rgba(11, 109, 183, 0.16);
  display: grid;
  place-items: center;
  color: var(--mfblue);
  font-weight: 900;
}
.visual-meta .t {
  font-weight: 800;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  font-size: 12px;
  font-weight: 700;
  color: #0b3b64;
  background: rgba(11, 109, 183, 0.08);
  border: 1px solid rgba(11, 109, 183, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
}
.hero-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(11, 109, 183, 0.28);
  background: #fff;
  color: var(--mfblue);
  font-weight: 800;
}
.btn-outline:hover {
  background: rgba(11, 109, 183, 0.06);
}
.note {
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-left {
    justify-content: flex-start;
    padding-bottom: 18px;
  }
  .hero-right {
    padding-top: 18px;
  }
}

/* Cards */
.card {
  border-radius: var(--radius);
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--mfblue);
  background: rgba(11, 109, 183, 0.08);
  border: 1px solid rgba(11, 109, 183, 0.14);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.list li {
  padding-left: 18px;
  position: relative;
  margin: 10px 0;
  line-height: 1.75;
  color: #334155;
}
.list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(11, 109, 183, 0.38);
  border: 1px solid rgba(11, 109, 183, 0.25);
  position: absolute;
  left: 0;
  top: 0.55em;
}

/* Steps */
.step {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(11, 109, 183, 0.12);
}
.step .n {
  min-width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(11, 109, 183, 0.18);
  color: var(--mfblue);
  font-weight: 900;
  box-shadow: 0 12px 18px rgba(11, 109, 183, 0.1);
}
.step .t {
  font-weight: 900;
  margin: 0;
}
.step .d {
  margin: 6px 0 0;
  color: #334155;
  line-height: 1.75;
}

/* FAQ */
details {
  border-radius: 16px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: #fff;
  box-shadow: 0 10px 22px rgba(2, 27, 78, 0.06);
  padding: 16px 18px;
}
details summary {
  cursor: pointer;
  font-weight: 900;
  color: #0f172a;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary .q {
  color: var(--mfblue);
  font-weight: 900;
  margin-right: 8px;
}
details .a {
  margin-top: 10px;
  color: #334155;
  line-height: 1.85;
  font-size: 14px;
}
.plus {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(11, 109, 183, 0.18);
  background: rgba(11, 109, 183, 0.06);
  display: grid;
  place-items: center;
  color: var(--mfblue);
  font-weight: 900;
  flex: 0 0 auto;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(229, 231, 235, 0.9);
  padding: 36px 0;
  background: #fff;
  color: #475569;
}
.footer .cols {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}
.footer a:hover {
  color: var(--mfblue);
}
@media (max-width: 900px) {
  .footer .cols {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-12 {
  margin-top: 12px;
}
.mt-18 {
  margin-top: 18px;
}
.mt-28 {
  margin-top: 28px;
}
.mt-42 {
  margin-top: 42px;
}
.mb-0 {
  margin-bottom: 0;
}
.w-100 {
  width: 100%;
}
.divider {
  height: 1px;
  background: rgba(229, 231, 235, 0.9);
  margin: 22px 0;
}

/* アンカー遷移を滑らかに */
html {
  scroll-behavior: smooth;
}

.logo img {
  height: 36px; /* ヘッダー高さに合わせる */
  width: auto;
  display: block;
}

.logo {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ここからスマホ最適化 */
@media (max-width: 560px) {
  /* ロゴはさらに小さく */
  .logo {
    width: 34px;
    height: 34px;
  }

  /* 文字を縦積みにする */
  .name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.15;
  }

  /* 「Medi Lex」だけは改行しない（1行固定） */
  .name {
    white-space: normal;
  }
  .name::first-line {
    white-space: nowrap;
  }

  /* 区切りの「|」をスマホでは非表示にする（spanに入ってる想定） */
  .name .sep {
    display: none;
  }
}

.name {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

/* Medi Lex は絶対に改行しない */
.name .en {
  white-space: nowrap;
  font-weight: 700;
}

/* スマホ時は縦積み */
@media (max-width: 560px) {
  .name {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.15;
  }

  /* 区切り線を消す */
  .name .sep {
    display: none;
  }

  /* 医師×弁護士は少し小さく */
  .name .muted {
    font-size: 10px;
    opacity: 0.85;
  }
}

.card .top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* tagはPRINCIPLEの直下に来るように順序を指定 */
.card .top > div {
  order: 1;
}
.card .top .tag {
  order: 2;
}

/* 見出し（現場→論点化）を下に回す：div内の2行目を整えるなら */
.card .top > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* tagの見た目＆はみ出し対策 */
.card .tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-cols.cols {
  display: grid !important;
  gap: 48px;
  align-items: start;
}

/* PC：3カラム（右を広め） */
@media (min-width: 900px) {
  .footer-cols.cols {
    grid-template-columns: 1fr 1fr 2fr;
  }
}

/* SP：縦積み */
@media (max-width: 899px) {
  .footer-cols.cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-title {
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 縦伸び防止 */
  display: block;
}

.footer-brandname {
  font-weight: 900;
}

.footer-lead {
  margin: 12px 0 0;
  line-height: 1.8;
}

.footer-note {
  margin: 12px 0 0;
  line-height: 1.8;
}
.small-footer {
  font-size: 0.5em !important;
}

.movie-section {
  width: 100%;
  background: #000;
  padding: 48px 0; /* 上下の余白 */
}

/* 全体の横幅制御 */
.movie-container {
  max-width: 1200px; /* ←ここが肝 */
  margin: 0 auto;
  padding: 0 24px; /* スマホ用の左右余白 */
}

/* 16:9維持 */
.movie-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px; /* 角丸も相性いい */
}

.movie-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
      Message Section (final)
      - PC: image/text 2 columns
      - Mobile: 1 column (image -> text)
      - Optional: split background
      ========================= */

.message-section {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 24px;
}

.message-title {
  text-align: center;
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}

.message-wrap {
  display: flex;
  align-items: center;
  gap: 40px;
}

.message-image {
  flex: 0 0 420px;
}

.message-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 18px 50px rgba(2, 27, 78, 0.08);
}

.message-text {
  flex: 1 1 auto;
}

.message-text h3 {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 16px;
}

.message-text p {
  line-height: 1.95;
  margin: 0 0 16px;
}

.message-sign {
  margin-top: 22px;
  font-weight: 700;
  line-height: 1.8;
}

.message-text a {
  display: inline-block;
  margin-top: 4px;
}

/* ===== Split background (PC default) =====
      sectionの背面に「右半分だけ水色」を敷く
   */
.message-section {
  position: relative;
}

.message-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 50%, #e9f6ff 50% 100%);
  z-index: -1;
  border-radius: 22px;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .message-section {
    margin: 0px auto;
    padding: 44px 16px;
  }

  .message-title {
    font-size: 24px;
    margin: 0 0 18px;
  }

  .message-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .message-image {
    flex: none;
    width: 100%;
  }

  .message-image img {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 18px;
  }

  .message-text h3 {
    font-size: 20px;
    margin: 4px 0 14px;
  }

  .message-text p {
    font-size: 15px;
    line-height: 2;
    margin: 0 0 14px;
  }

  .message-sign {
    margin-top: 18px;
  }

  .message-section {
    padding: 72px 24px;
    background: #fff;
  }

  .message-wrap {
    display: flex;
    gap: 44px;
    align-items: center;
  }

  .message-image {
    padding: 16px;
    border-radius: 22px;
    background: rgba(233, 246, 255, 0.55);
    box-shadow: 0 18px 50px rgba(2, 27, 78, 0.06);
  }

  .message-image img {
    width: 420px;
    max-width: 100%;
    border-radius: 18px;
    display: block;
  }

  .message-text p {
    line-height: 2;
    color: rgba(15, 26, 42, 0.86);
  }

  @media (max-width: 768px) {
    .message-section {
      padding: 56px 16px;
    }
    .message-wrap {
      flex-direction: column;
      gap: 18px;
    }
    .message-image {
      width: 100%;
      display: flex;
      justify-content: center;
    }
    .message-image img {
      width: 100%;
      max-width: 420px;
    }
  }
}
