/* 精神科 機関ダッシュボード 公開サイト
   方針: 太字は使わない。フォントはメイリオ系。階層は大きさと余白と区切り線で表す。 */
* { box-sizing: border-box; }
body {
  font-family: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: normal;
  margin: 0; padding: 24px 20px 48px;
  max-width: 1080px; margin-inline: auto;
  line-height: 1.7; font-size: 15px;
  color: #222; background: #fff;
}
h1 { font-size: 24px; font-weight: normal; margin: 0 0 6px; letter-spacing: .02em; }
h2 { font-size: 18px; font-weight: normal; margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #ccc; }
.sub { color: #666; font-size: 13px; }
nav.tabs { display: flex; gap: 18px; margin: 14px 0 4px; padding-bottom: 8px; border-bottom: 1px solid #ddd; }
nav.tabs a { color: #3366a3; text-decoration: none; font-size: 15px; }
nav.tabs a.current { color: #222; border-bottom: 2px solid #3366a3; padding-bottom: 6px; }
.cards { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; }
.card { border: 1px solid #ddd; border-radius: 10px; padding: 10px 16px; min-width: 140px; background: #fafafa; }
.card .num { font-size: 24px; display: block; line-height: 1.3; }
.card .lbl { font-size: 12.5px; color: #666; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; align-items: center; }
input, select { padding: 8px 10px; border-radius: 8px; border: 1px solid #bbb; font-size: 14px; font-family: inherit; background: #fff; }
button { padding: 8px 16px; border-radius: 8px; border: 1px solid #bbb; background: #f4f4f4; cursor: pointer; font-family: inherit; font-size: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { border-bottom: 1px solid #e3e3e3; padding: 7px 8px; text-align: left; vertical-align: top; }
th { color: #555; font-weight: normal; border-bottom: 1px solid #bbb; }
.tag { display: inline-block; border: 1px solid #bbb; border-radius: 20px; padding: 0 9px; font-size: 11.5px; white-space: nowrap; }
.flag { display: inline-block; border-radius: 6px; padding: 0 7px; font-size: 11.5px; margin-right: 4px; white-space: nowrap; }
.flag.yes { background: #e3efe3; border: 1px solid #9db89d; }
.flag.no { background: #f2f2f2; border: 1px solid #ccc; color: #777; }
.note { font-size: 13px; color: #555; }
a { color: #3366a3; }
footer { margin-top: 44px; padding-top: 12px; border-top: 1px solid #ddd; font-size: 13px; color: #666; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  body { padding: 16px 12px 40px; font-size: 14px; }
  h1 { font-size: 20px; }
  h2 { font-size: 16px; margin-top: 26px; }
  nav.tabs { gap: 14px; }
  .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { min-width: 0; padding: 8px 12px; }
  .card .num { font-size: 20px; }
  .controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .controls input[type="search"], .controls select { width: 100%; font-size: 16px; padding: 10px; }
  .controls button { width: 100%; padding: 12px; font-size: 15px; }
  table { font-size: 12.5px; min-width: 560px; }
  th, td { padding: 6px; }
  .flag { margin-bottom: 3px; }
}
