/*
 * ワイヤーフレーム共通スタイル
 * - 色・写真は使わず、グレーの濃淡のみで表す（設計手順 第1章）
 * - 本文18px以上／タップ領域44px以上（要件定義書 2-2）
 * - 画面の高さ基準（100vh 等）は使わない（要件定義書 2-2）
 */

:root {
  --line: #888;
  --fill: #eee;
  --fill-strong: #ccc;
  --text: #222;
  --muted: #666;
  --tap: 44px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.7;
}

a { color: inherit; }

/* ===== ワイヤーフレームの外枠（サイトの一部ではない） ===== */

.wf-bar {
  padding: 8px 16px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
}
.wf-bar a { color: #fff; }

/* ===== 共通部品 ===== */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.section { margin: 32px 0; }
.section-title {
  margin: 0 0 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--line);
  font-size: 22px;
}

.box {
  padding: 12px;
  border: 2px solid var(--line);
  background: var(--fill);
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 2px solid var(--line);
  background: var(--fill);
  color: var(--muted);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 8px 16px;
  border: 2px solid var(--text);
  background: var(--fill-strong);
  font-weight: bold;
  text-decoration: none;
}

.link-more {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* ===== 下層ページ ===== */

.page-title {
  margin: 24px 0 8px;
  font-size: 26px;
}
.lead { margin: 0 0 16px; }

.callout {
  padding: 16px;
  border: 3px solid var(--text);
  background: var(--fill);
}
.callout > :first-child { margin-top: 0; }
.callout .button { margin-top: 12px; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  margin-bottom: 12px;
  padding: 12px 12px 12px 56px;
  border: 2px solid var(--line);
  background: var(--fill);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: bold;
  line-height: 32px;
  text-align: center;
}

.related { margin: 0; padding: 0; list-style: none; }
.related a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

/* ===== ヘッダー ===== */

.site-header { border-bottom: 2px solid var(--line); }
.site-header .container {
  max-width: none; /* 医院名は画面の左端、電話・メニューは右端に寄せる */
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.site-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
/* 医院名は2段で示す（法人格を小さく、医院名を大きく）。画面幅によって名前の途中で折り返さないため */
.site-name-corp { font-size: 14px; }
.site-name-main { font-size: 22px; font-weight: bold; }
.global-nav { display: none; }
.global-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  white-space: nowrap;
  text-decoration: none;
}
.global-nav a[aria-current="page"] { text-decoration: underline; }

/* 主要5ページが1行に収まる幅でのみ並べる。狭い場合はメニューボタンのみ */
@media (min-width: 1200px) {
  .global-nav { display: flex; }
}

.header-tel,
.menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 8px;
  border: 2px solid var(--line);
  background: var(--fill);
  text-decoration: none;
  cursor: pointer;
}
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: block; }
.menu-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 16px;
  border-bottom: 2px solid var(--line);
  background: #fff;
}
.menu-group { margin-bottom: 12px; }
.menu-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.menu-group a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  border-bottom: 1px solid var(--fill-strong);
  text-decoration: none;
}

/* ===== フッター ===== */

.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 2px solid var(--line);
  background: var(--fill);
}
.site-footer p { margin: 4px 0; }

/* ===== 表 ===== */

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 6px 2px;
  border: 1px solid var(--line);
  text-align: center;
}
thead th { background: var(--fill-strong); }

/* ===== PC表示 ===== */

@media (min-width: 768px) {
  .menu-panel .container-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
  }
}
