/* 川上クリニック site stylesheet — corporate design (2026)
   名刺と同一のデザイン言語: 余白・細罫線・コーポレートブルー #2060b0・欧文スペーシング。
   色は全て :root のCSS変数で管理する。 */

:root {
  --color-primary: #2060b0;        /* corporate blue (sampled from the business cards) */
  --color-primary-dark: #174a8b;
  --color-primary-pale: #eef4fb;
  --color-ink: #1c1c1c;
  --color-text: #333333;
  --color-text-sub: #6f6f6f;
  --color-hairline: #d9dde3;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fb;
  /* 診療カレンダー: 休診=ブルー / 午前休診=グレー / 午後休診=淡いブルー */
  --cal-closed: #6f9fd6;
  --cal-am-closed: #c5c9cf;
  --cal-pm-closed: #bcd9f4;
  --cal-today: #174a8b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html.font-large body { zoom: 1.18; }

body {
  margin: 0;
  font-family: "Noto Sans JP Variable", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "游ゴシック Medium", Meiryo, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 15.5px;
  font-feature-settings: "palt";
}

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

a { color: var(--color-primary); }
a:hover { opacity: .8; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.en-caps {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

/* ---------- header ---------- */

.site-header { background: var(--color-bg); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 26px;
  padding-bottom: 18px;
}

.identity { line-height: 1.4; }
.identity .corp {
  color: var(--color-primary);
  font-size: 12.5px;
  letter-spacing: .18em;
  margin: 0 0 4px;
}
.identity .clinic-name {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: .12em;
}
.identity .clinic-name a { color: inherit; text-decoration: none; }
.identity .en {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: var(--color-text-sub);
}

.header-contact { text-align: right; line-height: 1.55; }
.header-contact .dept { font-size: 12.5px; color: var(--color-text-sub); margin: 0 0 2px; }
.header-contact .tel {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .04em;
}
.header-contact .tel a { color: inherit; text-decoration: none; }
.header-contact .tel .tel-label { font-size: 12px; color: var(--color-primary); margin-right: 6px; letter-spacing: .14em; }
.header-contact .addr { font-size: 11.5px; color: var(--color-text-sub); margin: 2px 0 0; }

.header-tools { margin: 8px 0 0; display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.lang-link {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
  color: var(--color-text-sub);
  text-decoration: none;
}
.lang-link:hover { color: var(--color-primary-dark); border-color: var(--color-primary); opacity: 1; }

.font-toggle-wrap { margin: 8px 0 0; }
.font-toggle {
  font: inherit;
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--color-hairline);
  background: var(--color-bg);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text-sub);
}
.font-toggle[aria-pressed="true"] {
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  background: var(--color-primary-pale);
}

/* ---------- nav ---------- */

.site-nav { border-top: 1px solid var(--color-hairline); border-bottom: 1px solid var(--color-hairline); background: var(--color-bg); }
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 12px;
  max-width: 920px;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.site-nav a {
  display: block;
  padding: 13px 20px 11px;
  color: var(--color-ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .06em;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-primary); opacity: 1; }
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ---------- hero (top page) ---------- */

.hero {
  background: linear-gradient(180deg, var(--color-primary-pale), var(--color-bg));
  border-bottom: 1px solid var(--color-hairline);
  text-align: center;
  padding: 54px 20px 46px;
}
.hero .kicker {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--color-primary);
}
.hero h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: .06em;
}
.hero .sub {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--color-text-sub);
}
.hero .cta {
  margin: 26px 0 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .05em;
}
.btn-primary { background: var(--color-primary); color: #ffffff; }
.btn-primary:hover { background: var(--color-primary-dark); opacity: 1; }
.btn-outline { border: 1px solid var(--color-primary); color: var(--color-primary); background: var(--color-bg); }

.today-status {
  display: inline-block;
  margin: 18px auto 0;
  padding: 8px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
  font-size: 14px;
}
.today-status.today-closed { color: #c0392b; border-color: #e5c1bc; }
.today-status.today-open { color: var(--color-primary-dark); border-color: var(--color-primary); }

.key-facts {
  border-bottom: 1px solid var(--color-hairline);
  background: var(--color-bg);
}
.key-facts ul {
  list-style: none;
  margin: 0 auto;
  padding: 14px 20px;
  max-width: 920px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 36px;
  font-size: 13.5px;
  color: var(--color-text);
}
.key-facts .label { color: var(--color-primary); font-weight: 700; margin-right: 8px; font-size: 12.5px; letter-spacing: .1em; }

/* ---------- main ---------- */

main { padding: 44px 0 56px; }

section { margin: 0 0 52px; }
section:last-child { margin-bottom: 0; }

h1.page-title {
  font-size: 24px;
  color: var(--color-ink);
  letter-spacing: .1em;
  margin: 6px 0 36px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-hairline);
  position: relative;
}
h1.page-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 48px; height: 2px;
  background: var(--color-primary);
}

h2 {
  font-size: 19px;
  color: var(--color-ink);
  letter-spacing: .1em;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-hairline);
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 40px; height: 2px;
  background: var(--color-primary);
}

h3 {
  font-size: 15.5px;
  color: var(--color-ink);
  margin: 22px 0 8px;
}
h3::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--color-primary); border-radius: 2px; margin-right: 8px; vertical-align: 1px; }

/* ---------- notice (お知らせ) ---------- */

.notice-box { border: 1px solid var(--color-hairline); border-radius: 6px; padding: 22px 26px 10px; }
.notice-box h2 { border-bottom: none; margin-bottom: 6px; }
.notice-box h2::after { display: none; }
.notice-box ul { margin: 0; padding: 0; list-style: none; }
.notice-box li { padding: 14px 2px; border-top: 1px solid var(--color-hairline); font-size: 14.5px; }
.notice-box li:first-child { border-top: none; }
.notice-box .news-date { display: block; font-size: 12px; color: var(--color-text-sub); letter-spacing: .06em; margin-bottom: 2px; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; }

table.summary-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.5px;
}
table.summary-table th,
table.summary-table td {
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
table.summary-table th {
  width: 10em;
  color: var(--color-text-sub);
  font-weight: 600;
  white-space: nowrap;
  background: var(--color-bg-alt);
}

table.hours-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  text-align: center;
  font-size: 14.5px;
}
table.hours-table th,
table.hours-table td {
  border: 1px solid var(--color-hairline);
  padding: 9px 6px;
}
table.hours-table thead th {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  font-weight: 600;
}
table.hours-table td:first-child { white-space: nowrap; font-weight: 600; }
table.hours-table td.open { color: var(--color-primary); font-weight: 700; }
table.hours-table td.closed { color: #b5b5b5; }

.closed-note { color: #c0392b; font-weight: 600; margin-top: 10px; font-size: 14px; }

/* ---------- map ---------- */

.map-embed { position: relative; width: 100%; padding-top: 56%; border-radius: 6px; overflow: hidden; border: 1px solid var(--color-hairline); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 駅からの道順（テキストフロー） */
.route-flow { list-style: none; margin: 8px 0 0; padding: 0; max-width: 560px; }
.route-flow li {
  position: relative;
  border: 1px solid var(--color-hairline);
  border-radius: 6px;
  background: var(--color-bg);
  padding: 13px 18px;
  margin: 0 0 30px;
  font-size: 14.5px;
}
.route-flow li:not(:last-child)::after {
  content: "▼";
  position: absolute;
  left: 50%;
  bottom: -25px;
  transform: translateX(-50%);
  color: var(--color-primary);
  font-size: 13px;
}
.route-flow li:last-child { margin-bottom: 0; }
.route-flow .route-goal {
  background: var(--color-primary-pale);
  border-color: var(--color-primary);
}

/* ---------- calendar ---------- */

.calendar-block { max-width: 420px; }

.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.cal-nav .cal-title { font-weight: 700; font-size: 16px; color: var(--color-ink); letter-spacing: .06em; }
.cal-nav button {
  font: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--color-hairline);
  background: var(--color-bg);
  color: var(--color-primary);
  border-radius: 4px;
  cursor: pointer;
  min-height: 36px;
}
.cal-nav button:hover:enabled { background: var(--color-primary-pale); border-color: var(--color-primary); }
.cal-nav button:disabled { opacity: .35; cursor: default; }

table.cal-table { border-collapse: collapse; width: 100%; text-align: center; font-size: 13.5px; }
table.cal-table th,
table.cal-table td { border: 1px solid var(--color-hairline); padding: 7px 0; width: 14.28%; }
table.cal-table thead th { background: var(--color-bg-alt); font-weight: 600; color: var(--color-text-sub); }
table.cal-table thead th.sun { color: #c0392b; }
table.cal-table thead th.sat { color: var(--color-primary); }
table.cal-table td.other-month { background: var(--color-bg-alt); }
table.cal-table td.closed { background: var(--cal-closed); }
table.cal-table td.am-closed { background: var(--cal-am-closed); }
table.cal-table td.pm-closed { background: var(--cal-pm-closed); }
table.cal-table td.today span { border-bottom: 2px solid var(--cal-today); font-weight: 700; }

.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: 12.5px; color: var(--color-text-sub); }
.cal-legend .chip { display: inline-block; width: 16px; height: 16px; border: 1px solid #b9c6d6; border-radius: 3px; margin-right: 5px; vertical-align: -3px; }
.cal-legend .chip.closed { background: var(--cal-closed); }
.cal-legend .chip.am { background: var(--cal-am-closed); }
.cal-legend .chip.pm { background: var(--cal-pm-closed); }

.cal-notice { margin-top: 10px; padding: 9px 12px; background: var(--color-primary-pale); border-radius: 4px; font-size: 13.5px; }
.cal-error { color: var(--color-text-sub); font-size: 13.5px; }

/* ---------- doctor page ---------- */

.doctor-name { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--color-ink); letter-spacing: .14em; }
.doctor-name rt { font-size: 10.5px; font-weight: 400; color: var(--color-text-sub); letter-spacing: .3em; }
.doctor-name .quals { font-size: 13px; color: var(--color-text-sub); font-weight: 400; letter-spacing: .04em; margin-left: 10px; }
.doctor-title { margin: 0 0 20px; font-size: 13px; color: var(--color-primary); letter-spacing: .1em; }

/* ---------- facilities (関連施設) ---------- */

.facility-list { display: grid; gap: 14px; }
.facility {
  border: 1px solid var(--color-hairline);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
}
.facility .name { font-weight: 700; color: var(--color-ink); margin: 0 0 2px; }
.facility .meta { color: var(--color-text-sub); margin: 0; }

/* ---------- placeholders (準備中) ---------- */

.placeholder {
  border: 1px dashed #b3c4d8;
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-text-sub);
  padding: 14px 16px;
  font-size: 14px;
}
.placeholder::before { content: "【準備中】"; font-weight: 700; color: var(--color-primary); margin-right: .5em; }

/* ---------- footer ---------- */

.site-footer { margin-top: 30px; border-top: 1px solid var(--color-hairline); background: var(--color-bg); font-size: 13px; color: var(--color-text-sub); }
.site-footer .wrap { padding-top: 34px; padding-bottom: 30px; text-align: center; line-height: 2; }
.site-footer .en { font-size: 10px; color: var(--color-primary); margin: 0 0 8px; }
.site-footer .clinic-name { font-weight: 700; color: var(--color-ink); font-size: 15px; letter-spacing: .1em; margin: 0 0 2px; }
.site-footer .fac { font-size: 12px; margin-top: 10px; }
.site-footer .copyright { margin-top: 16px; font-size: 11px; color: #9b9b9b; }
.to-top { text-align: right; margin: 0; font-size: 12px; }
.to-top a { text-decoration: none; }

/* ---------- quick action bar (mobile) ---------- */

.quick-bar { display: none; }

@media (max-width: 719px) {
  .quick-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--color-bg);
    border-top: 1px solid var(--color-hairline);
    box-shadow: 0 -2px 10px rgba(20, 40, 70, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .quick-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-decoration: none;
  }
  .quick-bar a + a { border-left: 1px solid var(--color-hairline); }
  .quick-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: 64px; }
}

/* ---------- print ---------- */

@media print {
  .site-nav, .quick-bar, .hero .cta, .to-top, .font-toggle-wrap, .header-tools,
  .map-embed, .cal-nav, .today-status { display: none !important; }
  body { padding-bottom: 0 !important; font-size: 12pt; }
  .hero { background: none; border: none; padding: 8px 0; }
  a { color: inherit; text-decoration: none; }
  section { margin-bottom: 24px; }
}

/* ---------- responsive ---------- */

@media (max-width: 719px) {
  .site-header .wrap { flex-direction: column; align-items: center; text-align: center; padding-top: 22px; }
  .identity .clinic-name { font-size: 23px; }
  .header-contact { text-align: center; }
  .header-tools { justify-content: center; }
  .hero { padding: 40px 18px 36px; }
  .hero h1 { font-size: 20.5px; }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; padding: 0; overflow: visible; }
  .site-nav li:nth-child(-n+2) { border-bottom: 1px solid var(--color-hairline); }
  .site-nav li:nth-child(odd) { border-right: 1px solid var(--color-hairline); }
  .site-nav a { text-align: center; padding: 12px 8px 10px; font-size: 13.5px; }
  h1.page-title { font-size: 21px; }
  h2 { font-size: 17.5px; }
  table.hours-table { min-width: 0; font-size: 12px; }
  table.hours-table th,
  table.hours-table td { padding: 8px 2px; }
  table.hours-table td:first-child,
  table.hours-table thead th:first-child { font-size: 11.5px; }
}

@media (min-width: 900px) {
  .split-2 { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
  .facility-list { grid-template-columns: 1fr 1fr; }
}
