/* =============================================================================
   medicalcollabo.com — 共通スタイル（明るく・上質に）
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@500;600;700&display=swap');

:root {
  /* 面 */
  --c-bg:          #FFFFFF;
  --c-bg-alt:      #F4F8F7;
  --c-bg-warm:     #FBF8F2;
  --c-surface:     #FFFFFF;
  --c-border:      #E3EAE8;
  --c-border-soft: #EEF2F1;

  /* ブランド */
  --c-navy:        #14304A;
  --c-navy-deep:   #0E2338;
  --c-teal:        #158F89;
  --c-teal-deep:   #0F6F6B;
  --c-teal-light:  #E3F3F1;
  --c-teal-pale:   #F2F9F8;
  --c-gold:        #C39A4B;
  --c-gold-deep:   #A47E36;
  --c-gold-light:  #FAF1DF;

  /* テキスト */
  --c-text:        #1B2A36;
  --c-text-sub:    #34434F;
  --c-text-mute:   #5C6B76;
  --c-text-inv:    #FFFFFF;

  /* 状態 */
  --c-alert:       #B9473C;
  --c-alert-light: #FBF1EF;

  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  --max-w:   1120px;
  --max-w-narrow: 820px;
  --gutter:  clamp(20px, 4vw, 44px);

  --sp-xs: 8px; --sp-sm: 16px; --sp-md: 32px; --sp-lg: 64px; --sp-xl: 104px;

  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(20,48,74,.05), 0 8px 24px rgba(20,48,74,.06);
  --shadow-md: 0 12px 40px rgba(20,48,74,.12);
  --tr: .25s ease;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.95;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  line-break: strict;
  word-break: auto-phrase;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-teal-deep); text-decoration: underline; text-underline-offset: .18em; }
a:hover { color: var(--c-teal); }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 700; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap-unit { display: inline-block; }

/* ─ レイアウト ─ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--max-w-narrow); }
.section { padding: var(--sp-xl) 0; position: relative; }
.section--alt { background: var(--c-bg-alt); }
.section--warm { background: var(--c-bg-warm); }
.section-heading { margin-bottom: var(--sp-md); }
.section-heading .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .18em;
  color: var(--c-gold-deep); margin-bottom: 12px;
}
.section-heading .eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--c-gold); }
.section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  letter-spacing: .03em; color: var(--c-navy); line-height: 1.55;
}
.section-heading p { margin-top: 14px; color: var(--c-text-sub); max-width: 44em; font-size: 1.02rem; }
.section-heading.is-center { text-align: center; }
.section-heading.is-center p { margin-left: auto; margin-right: auto; }
.section-heading.is-center .eyebrow::before { display: none; }
.mt-sm { margin-top: var(--sp-sm); } .mt-md { margin-top: var(--sp-md); } .mt-lg { margin-top: var(--sp-lg); }
.text-center { text-align: center; }
.text-sub { color: var(--c-text-sub); }
.text-small { font-size: .94rem; }

/* ─ ボタン ─ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px;
  border-radius: var(--r-pill); border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.3; text-decoration: none; letter-spacing: .02em;
  cursor: pointer; transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex-shrink: 0; }
.btn--primary { background: var(--c-navy); color: #fff; box-shadow: 0 8px 20px rgba(20,48,74,.22); }
.btn--primary:hover { background: var(--c-navy-deep); color: #fff; box-shadow: 0 12px 26px rgba(20,48,74,.28); }
.btn--teal { background: var(--c-teal); color: #fff; box-shadow: 0 8px 20px rgba(21,143,137,.28); }
.btn--teal:hover { background: var(--c-teal-deep); color: #fff; }
.btn--gold { background: var(--c-gold); color: #fff; box-shadow: 0 8px 20px rgba(195,154,75,.3); }
.btn--gold:hover { background: var(--c-gold-deep); color: #fff; }
.btn--secondary { background: #fff; color: var(--c-navy); border-color: var(--c-navy); }
.btn--secondary:hover { background: var(--c-navy); color: #fff; }
.btn--ghost-inv { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.75); }
.btn--ghost-inv:hover { background: #fff; color: var(--c-teal-deep); }
.btn--lg { min-height: 60px; padding: 14px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ─ ヘッダー ─ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--c-border-soft);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h); display: flex; align-items: center; gap: 28px;
}
.header-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-navy); }
.brand::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 4px var(--c-gold-light); }
.brand__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; line-height: 1.2; white-space: nowrap; }
.brand__sub { display: block; font-family: var(--font-sans); font-size: .64rem; font-weight: 700; letter-spacing: .2em; color: var(--c-text-mute); margin-top: 2px; }
.site-nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav__list a {
  display: inline-block; padding: 10px 14px; border-radius: var(--r-pill);
  font-size: .92rem; font-weight: 700; color: var(--c-text-sub); text-decoration: none; white-space: nowrap;
}
.site-nav__list a:hover, .site-nav__list a.is-current { color: var(--c-navy); background: var(--c-bg-alt); }
.header-cta { display: inline-flex; gap: 8px; align-items: center; padding-left: 20px; border-left: 1px solid var(--c-border); }
.header-cta .btn { min-height: 44px; padding: 8px 24px; font-size: .9rem; white-space: nowrap; box-shadow: none; }
.hamburger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: var(--r-sm);
}
.hamburger__line { width: 22px; height: 2px; background: var(--c-navy); transition: transform var(--tr), opacity var(--tr); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--c-border-soft); background: #fff; padding: 12px var(--gutter) 22px; }
.mobile-nav.is-open { display: block; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list a { display: block; padding: 13px 4px; font-weight: 700; color: var(--c-text); text-decoration: none; border-bottom: 1px solid var(--c-border-soft); }
.mobile-nav__cta { margin-top: 16px; display: grid; gap: 10px; }

/* ─ ページヘッダー・パンくず ─ */
.page-header { background: linear-gradient(135deg, var(--c-teal-pale), #fff 60%, var(--c-bg-warm)); border-bottom: 1px solid var(--c-border-soft); padding: 40px 0 36px; }
.page-header h1 { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.7vw, 2.1rem); color: var(--c-navy); }
.page-header__sub { margin-top: 10px; color: var(--c-text-sub); max-width: 36em; }
.breadcrumb { font-size: .86rem; color: var(--c-text-mute); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--c-text-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-teal-deep); text-decoration: underline; }

/* ─ カード・表 ─ */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 28px 30px; box-shadow: var(--shadow-sm); }
.spec-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 10px 32px; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { padding: 18px 0; border-bottom: 1px solid var(--c-border-soft); vertical-align: top; text-align: left; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 11em; font-weight: 700; color: var(--c-navy); padding-right: 16px; font-size: 1rem; position: relative; padding-left: 16px; }
.spec-table th::before { content: ''; position: absolute; left: 0; top: calc(18px + 1em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); }
.spec-table td { font-weight: 500; }
.spec-table td ul { padding-left: 1.2em; }
.spec-table__sub { display: block; margin-top: 6px; font-size: .93rem; font-weight: 400; color: var(--c-text-sub); line-height: 1.85; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
}
.badge--teal { background: var(--c-teal-light); color: var(--c-teal-deep); }
.badge--gold { background: var(--c-gold-light); color: var(--c-gold-deep); }
.badge--navy { background: var(--c-navy); color: #fff; }
.badge--mute { background: var(--c-bg-alt); color: var(--c-text-mute); }
.badge--dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.note { font-size: .9rem; color: var(--c-text-sub); }

/* ─ FAQ ─ */
.faq-list { display: grid; gap: 12px; max-width: var(--max-w-narrow); margin: 0 auto; }
.faq { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 54px 20px 24px; font-weight: 700; position: relative; line-height: 1.6; color: var(--c-navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; color: var(--c-gold-deep); font-family: var(--font-serif); margin-right: 12px; }
.faq summary::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--c-teal); border-bottom: 2px solid var(--c-teal);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--tr);
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__body { padding: 16px 24px 22px; color: var(--c-text); border-top: 1px dashed var(--c-border); }

/* ─ フッター ─ */
.site-footer { background: var(--c-bg-alt); color: var(--c-text-sub); padding: 40px 0 32px; font-size: .94rem; border-top: 1px solid var(--c-border-soft); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.footer-bottom a { color: var(--c-text-sub); text-decoration: none; }
.footer-bottom a:hover { color: var(--c-teal-deep); text-decoration: underline; }

/* ─ フェードイン ─ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }

/* ─ レスポンシブ ─ */
@media (max-width: 1180px) { .site-nav { display: none; } .hamburger { display: inline-flex; } .header-cta { border-left: 0; padding-left: 0; } }
@media (max-width: 960px) { .header-cta { display: none; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: var(--sp-lg) 0; }
  .spec-card { padding: 6px 20px; }
  .spec-table th, .spec-table td { display: block; padding: 0; }
  .spec-table th { padding: 16px 0 0 14px; font-size: .9rem; letter-spacing: .06em; width: auto; }
  .spec-table th::before { top: calc(16px + 1em - 3px); }
  .spec-table td { padding: 6px 0 16px; border-bottom: 1px solid var(--c-border-soft); }
  .spec-table tr:last-child td { border-bottom: 0; }
  .btn--lg { width: 100%; }
}
