/* ==========================================================
   メドリカ（Medorica）｜クリニック事務長代行  共通スタイル
   ========================================================== */

:root {
  --navy: #123460;
  --teal: #009696;
  --bg: #ffffff;
  --text: #1f2a37;
  --muted: #5b6676;
  --line: #e3e8ef;
  --tint-navy: color-mix(in srgb, var(--navy) 5%, #fff);
  --tint-teal: color-mix(in srgb, var(--teal) 8%, #fff);
  --radius: 12px;
  --max: 1080px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }
a:hover { color: var(--navy); }

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.5;
  text-wrap: balance;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.site-logo img { height: 48px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--navy);
  font-size: 0.85rem;
  font-family: inherit;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
}
.global-nav a:hover { background: var(--tint-teal); color: var(--teal); }
.global-nav a[aria-current="page"] { color: var(--teal); }
.global-nav .nav-cta a {
  background: var(--teal);
  color: #fff;
  margin-left: 8px;
}
.global-nav .nav-cta a:hover { background: var(--navy); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-logo img { height: 40px; }
  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(18, 52, 96, 0.08);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 0; }
  .global-nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .global-nav .nav-cta a { margin: 12px 0 0; text-align: center; border-radius: 8px; border: none; }
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(160deg, var(--tint-teal) 0%, #fff 60%);
  padding: 88px 0 72px;
}
.hero .eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.hero .lead { color: var(--muted); max-width: 40em; font-size: 1.05rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.page-hero {
  background: var(--tint-navy);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero p { color: var(--muted); margin: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- セクション ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--tint-navy); }
.section-head { margin-bottom: 36px; }
.section-head .label {
  display: block;
  color: var(--teal);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(18, 52, 96, 0.08); transform: translateY(-2px); }
.card p:last-child { margin-bottom: 0; }

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tint-teal);
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 12px;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px dashed var(--line);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

/* ---------- 流れ ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 20px 72px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 18px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal);
}
.steps strong { color: var(--navy); display: block; }

/* ---------- テーブル ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th,
.table td { border: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.table th { background: var(--tint-navy); color: var(--navy); width: 30%; font-weight: 700; }
@media (max-width: 600px) {
  .table th, .table td { display: block; width: 100%; }
  .table td { border-top: none; }
}

/* ---------- プロフィール ---------- */
.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.profile-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--tint-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.profile .name { font-size: 1.5rem; color: var(--navy); font-weight: 700; margin-bottom: 0; }
.profile .role { color: var(--teal); font-weight: 700; margin-bottom: 1em; }
@media (max-width: 700px) {
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .profile-photo { max-width: 200px; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 56px;
  position: relative;
  font-weight: 700;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 20px;
  top: 16px;
  color: var(--teal);
  font-size: 1.15rem;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 1.4rem;
  color: var(--muted);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  padding: 0 24px 18px 56px;
  position: relative;
}
.faq-item .answer::before {
  content: "A";
  position: absolute;
  left: 20px;
  top: 0;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.15rem;
}
.faq-item .answer p:last-child { margin-bottom: 0; }

/* ---------- お問い合わせ ---------- */
.form { display: grid; gap: 20px; max-width: 680px; }
.form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form .req {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.75rem;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
  padding: 0 6px;
  vertical-align: middle;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d2de;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.form textarea { min-height: 180px; resize: vertical; }
.form button { border: none; cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }

.note { font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA帯 ---------- */
.cta-band {
  background: var(--tint-teal);
  text-align: center;
  padding: 64px 0;
}
.cta-band p { color: var(--muted); }

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer img { height: 40px; width: auto; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--navy); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.copyright { margin-top: 24px; font-size: 0.8rem; text-align: center; }
