@charset "utf-8";

/* =========================================================
   渡辺医院 — stylesheet
   ========================================================= */

:root {
  --primary: #1976d2;
  --primary-line: #4a92dd;
  --ink: #2a3a40;
  --text: #33454c;
  --muted: #44535a;
  --muted-2: #647077;
  --soft-bg: #eef3f8;
  --icon-bg: #eaf1f9;
  --accent: #1b9e8f;
  --accent-dark: #17897c;
  --line: #e0e8ea;
  --maxw: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

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

iframe { border: 0; }

.mincho { font-family: "Shippori Mincho", serif; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 30px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eef2f3;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.logo { display: flex; align-items: center; gap: 16px; }
.logo img { height: 60px; width: auto; }
.logo__text { display: flex; flex-direction: column; justify-content: center; height: 60px; }
.logo__name { font-size: 30px; line-height: 38px; font-weight: 600; letter-spacing: 6px; color: var(--primary); white-space: nowrap; }
.logo__sub { font-size: 13px; line-height: 22px; letter-spacing: 1.5px; color: var(--muted-2); }

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}
.global-nav a {
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--text);
  transition: color .2s;
}
.global-nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.header-tel__label {
  font-size: 12px;
  letter-spacing: 2px;
  color: #90a2a8;
}
.header-tel__num {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 60vh, 600px);
  overflow: hidden;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,42,54,0.82) 0%, rgba(20,42,54,0.66) 38%, rgba(20,42,54,0.28) 70%, rgba(20,42,54,0.12) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  padding-block: 60px;
  color: #fff;
}
.hero__title {
  font-size: 50px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 2px 16px rgba(20,42,54,0.35);
}
.hero__lead {
  max-width: 520px;
  font-size: 18px;
  line-height: 2.05;
  color: rgba(255,255,255,0.92);
  margin-bottom: 38px;
  text-shadow: 0 1px 10px rgba(20,42,54,0.3);
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 15px;
  letter-spacing: 4px;
  font-weight: 500;
  color: var(--primary);
}
.eyebrow__line {
  width: 30px;
  height: 1px;
  background: var(--primary);
}
.eyebrow--light { color: #fff; }
.eyebrow--light .eyebrow__line { background: rgba(255,255,255,0.8); }

.sec-head {
  text-align: center;
  margin-bottom: 60px;
}
.sec-head__en {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 15px;
  letter-spacing: 5px;
  font-weight: 500;
  color: var(--primary);
}
.rule {
  width: 34px;
  height: 1px;
  background: var(--primary);
}
.sec-head__ja {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--ink);
  margin-bottom: 10px;
}
.sec-head__sub {
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--muted-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: opacity .2s, background .2s, color .2s;
}
.btn--pill {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 14px 40px;
  font-size: 16px;
  letter-spacing: 2px;
}
.btn--pill i { font-size: 15px; }
.btn--pill:hover { background: var(--primary); color: #fff; }
.btn--light {
  background: #fff;
  color: var(--primary);
  padding: 17px 32px;
  box-shadow: 0 12px 30px rgba(20,42,54,0.22);
}
.btn--light i { font-size: 15px; color: var(--primary); }
.btn--light:hover { background: var(--soft-bg); }

/* ---------- info bar ---------- */
.infobar {
  background: var(--primary);
  color: #fff;
}
.infobar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 30px;
}
.infobar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.infobar__item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .18);
}
.infobar__item > i { font-size: 26px; opacity: .85; }
.infobar__label {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  opacity: .8;
}
.infobar__value {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

/* ---------- generic section ---------- */
.section { padding: clamp(56px, 8vw, 100px) clamp(20px, 4vw, 30px); }
.section--soft { background: var(--soft-bg); }

/* ---------- news ---------- */
.news {
  max-width: 1180px;
  margin-inline: auto;
}
.news__row {
  display: grid;
  grid-template-columns: 140px 92px 1fr 24px;
  align-items: center;
  gap: 22px;
  padding: 24px 8px;
  border-top: 1px solid var(--line);
  transition: background .2s;
}
.news__row--last { border-bottom: 1px solid var(--line); }
.news__row:hover { background: rgba(25, 118, 210, .04); }
.news__date {
  font-size: 16px;
  letter-spacing: 1px;
  color: #90a2a8;
  white-space: nowrap;
}
.news__title { font-size: 18px; color: var(--text); }
.news__arrow { color: #b8c6cb; font-size: 16px; }

.badge {
  justify-self: start;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 30px;
  letter-spacing: 1px;
}
.badge--info { background: #e6f0fb; color: var(--primary); }
.badge--alert { background: #f6e6e8; color: #b0596a; }
.badge--time { background: #e3f1ea; color: #2f8a5f; }

.sec-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- cards ---------- */
.cards {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e6edee;
  border: 1px solid #e6edee;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  padding: 44px 28px 38px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(30, 50, 60, .08);
}
.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--icon-bg);
  margin-bottom: 22px;
}
.card__icon i { font-size: 32px; color: var(--primary); }
.card__title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 14px;
}
.card__desc {
  font-size: 16px;
  line-height: 1.95;
  color: #52626a;
}

/* ---------- greeting ---------- */
.greeting {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.greeting__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(30, 50, 60, .16);
}
.greeting__body p:not(.eyebrow):not(.greeting__sign) {
  font-size: 18px;
  line-height: 2.1;
  color: var(--muted);
  margin-bottom: 22px;
}
.greeting__title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--ink);
  margin-bottom: 30px;
}
.greeting__sign {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #dde6e8;
  padding-top: 24px;
  margin-top: 14px;
}
.greeting__role { font-size: 16px; color: #90a2a8; }
.greeting__name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ink);
}
.greeting__rome { font-size: 16px; letter-spacing: 1px; color: #90a2a8; }

/* ---------- access ---------- */
.hours-grid {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.hours-wrap {
  overflow-x: auto;
}
.hours-grid .notes {
  margin-top: 0;
  font-size: 16px;
}
#hours .info--inhours {
  max-width: 1180px;
  margin-top: 64px;
}
#hours .info--inhours .notecards { margin-bottom: 48px; }
#hours .info--inhours .info__title { margin-bottom: 24px; }
.access__transit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.access__transit i { color: var(--primary); font-size: 18px; }
.access {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.access__map {
  width: 100%;
  height: 430px;
  border-radius: 8px;
}
.access__meta {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px 18px;
  align-items: baseline;
  margin-bottom: 30px;
}
.access__meta dt {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 1px;
  color: var(--primary);
}
.access__meta dd {
  font-size: 17px;
  line-height: 1.9;
  color: #4a5a60;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  table-layout: fixed;
}
.hours th {
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  padding: 13px 0;
  border: 1px solid var(--primary-line);
}
.hours thead th:not(.hours__rowhead) { width: 10.4%; }
.hours__rowhead {
  width: 27%;
  text-align: center;
  letter-spacing: 1px;
  white-space: nowrap;
  border-color: var(--primary) !important;
}
.hours__time {
  background: #f7fafb !important;
  color: #4a5a60 !important;
  font-weight: 400;
  text-align: center;
  padding: 16px 18px;
  white-space: nowrap;
  border: 1px solid #e2eaec !important;
}
.hours td {
  text-align: center;
  border: 1px solid #e2eaec;
}
.is-open { color: var(--primary); }
.is-star { color: #c08a3e; }
.is-closed { color: #b8c6cb; }

.notes {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted-2);
}
.notes li {
  position: relative;
  padding-left: 22px;
}
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.star { color: #c08a3e; }

/* ---------- information ---------- */
.info {
  max-width: 1040px;
  margin-inline: auto;
}
.info--wide { max-width: 1180px; }
.info__title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ink);
  margin-bottom: 36px;
}
.bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.notecards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  margin-bottom: 64px;
}
.notecard {
  background: #fff;
  border: 1px solid #e3ebed;
  border-radius: 8px;
  padding: 30px 32px;
}
.notecard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.notecard__head i { color: var(--primary); font-size: 18px; }
.notecard__head span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
}
.notecard__body {
  font-size: 16px;
  line-height: 1.9;
  color: #4a5a62;
}

.info__subtitle {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 12px;
}
.info__lead {
  font-size: 17px;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 24px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}
.chips a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d6e0e2;
  padding: 12px 22px;
  border-radius: 40px;
  font-size: 16px;
  color: var(--primary);
  transition: background .2s;
}
.chips a:hover { background: var(--soft-bg); }
.chips i { font-size: 12px; }

.callout {
  background: var(--soft-bg);
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  padding: 30px 34px;
}
.callout__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.callout__head i { color: var(--primary); font-size: 18px; }
.callout__head span {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
}
.callout__body {
  font-size: 17px;
  line-height: 2;
  color: var(--muted);
  margin-bottom: 12px;
}
.callout__body a { color: var(--primary); text-decoration: underline; }
.callout__link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
}
.callout__link i { font-size: 13px; }

/* ---------- side tabs ---------- */
.side-tabs {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-tabs__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--primary);
  padding: 18px 11px;
  border: 0;
  border-radius: 10px 0 0 10px;
  box-shadow: -4px 4px 16px rgba(30, 50, 60, .18);
  transition: background .2s;
  font-family: inherit;
  cursor: pointer;
}
.side-tabs__menu { display: none; }
.side-tabs__btn:hover { background: var(--soft-bg); }
.side-tabs__btn i { font-size: 18px; }
.side-tabs__btn span {
  writing-mode: vertical-rl;
  font-size: 15px;
  letter-spacing: 3px;
  font-weight: 500;
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #9aa6ac;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(30, 50, 60, .28);
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: #828f96; }

/* back-to-home link at end of sub pages */
.back-home {
  max-width: 1180px;
  margin-inline: auto;
  margin-top: 0;
  padding-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}
.back-home a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d6e0e2;
  color: var(--primary);
  border-radius: 40px;
  padding: 12px 26px;
  font-size: 16px;
  transition: background .2s;
}
.back-home a:hover { background: var(--soft-bg); }
.back-home a i { font-size: 14px; }
.back-home--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
@media (max-width: 520px) {
  .back-home a { width: min(280px, 100%); justify-content: center; }
  .back-home--split { flex-direction: column; align-items: center; gap: 12px; }
}

/* ---------- doctors ---------- */
.doctors {
  max-width: 1180px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 88px);
}
.doctor {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}
.doctor__photo {
  position: sticky;
  top: 100px;
}
.doctor__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(30, 50, 60, .16);
}
.doctor__role {
  display: inline-block;
  background: var(--icon-bg);
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 6px 18px;
  border-radius: 999px;
  margin: 0 0 14px;
}
.doctor__name {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ink);
  margin: 0 0 8px;
}
.doctor__name-en {
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--muted-2);
}
.career { margin: 0; }
.career__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 20px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f3;
}
.career__row dt {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: .5px;
}
.career__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
/* greeting more link */
.greeting__more {
  margin: 26px 0 0;
}

@media (max-width: 768px) {
  .doctor { grid-template-columns: 1fr; }
  .doctor__photo { position: static; max-width: 340px; }
  .doctor__name { font-size: 28px; }
  .career__row { grid-template-columns: 72px 1fr; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: clamp(48px, 6vw, 74px) clamp(20px, 4vw, 30px) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 0;
}
.footer-brand__name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 18px;
}
.footer-brand__desc {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, .8);
}
.footer-col__head {
  font-size: 15px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 22px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 16px;
  color: rgba(255, 255, 255, .9);
}
.footer-col a { transition: opacity .2s; }
.footer-col a:hover { opacity: .7; }

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1180px;
  margin: 54px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 15px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .7);
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .header-tel { display: none; }
  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eef2f3;
    box-shadow: 0 14px 26px rgba(30, 50, 60, .10);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s ease;
  }
  .site-header.nav-open .global-nav { max-height: 80vh; }
  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 12px;
  }
  .global-nav li { width: 100%; }
  .global-nav a {
    display: block;
    padding: 16px 24px;
    font-size: 17px;
    border-bottom: 1px solid #f0f4f5;
  }
  .hero { min-height: 0; }
  .hero__text { padding-block: 56px; max-width: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .greeting,
  .access { grid-template-columns: 1fr; gap: 40px; }
  .hours-grid { grid-template-columns: 1fr; gap: 32px; }
  .notecards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .logo { gap: 11px; }
  .logo img { height: 46px; }
  .logo__text { height: 46px; }
  .logo__name { font-size: 22px; line-height: 27px; letter-spacing: 3px; }
  .logo__sub { font-size: 11px; line-height: 19px; letter-spacing: 1px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 16px; }
  .infobar__grid { grid-template-columns: 1fr; gap: 16px; }
  .infobar__item { justify-content: flex-start; }
  .infobar__item:not(:last-child) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 16px; }
  .sec-head__ja { font-size: 30px; }
  .cards { grid-template-columns: 1fr; }
  .news__row {
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
  }
  .news__date { grid-column: 1; }
  .badge { grid-column: 2; justify-self: start; }
  .news__title { grid-column: 1 / -1; font-size: 16px; }
  .news__arrow { display: none; }
  .greeting__sign { gap: 8px 14px; }
  .footer-bottom { font-size: 13px; }

  /* お電話・アクセスを画面下部に固定（モバイル） */
  body { padding-bottom: 70px; }
  .side-tabs {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    box-shadow: 0 -2px 14px rgba(30, 50, 60, .16);
  }
  .side-tabs__btn {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 9px 6px;
    border-radius: 0;
    box-shadow: none;
  }
  .side-tabs__menu { display: flex; }
  .side-tabs__btn + .side-tabs__btn { border-left: 1px solid #eef2f3; }
  .side-tabs__btn i { font-size: 19px; }
  .side-tabs__btn span {
    writing-mode: horizontal-tb;
    font-size: 12px;
    letter-spacing: 1px;
  }
  .to-top { bottom: 86px; }
}

/* =========================================================
   department detail page
   ========================================================= */
.page-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 80% 0%, #eaf1f9 0%, #f4f8fc 45%, #fff 100%);
  border-bottom: 1px solid #eef2f3;
}
.page-banner__watermark {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Shippori Mincho", serif;
  font-size: clamp(40px, 9vw, 150px);
  letter-spacing: 2px;
  color: rgba(25, 118, 210, .05);
  white-space: nowrap;
  pointer-events: none;
}
.page-banner__title {
  position: relative;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 8px;
  color: var(--primary);
}

.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #eef2f3;
}
.breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
  font-size: 14px;
  color: var(--muted-2);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: #c2ccd3; }
.breadcrumb__current { color: var(--muted-2); }

.dept-layout {
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 54px;
  align-items: start;
}
.dept-layout--single { grid-template-columns: 1fr; }

.dept-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 44px;
}
.dept-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--icon-bg);
  flex-shrink: 0;
}
.dept-head__icon i { font-size: 30px; color: var(--primary); }
.dept-head__titles {
  display: flex;
  flex-direction: column;
}
.dept-head__ja {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--ink);
  margin-bottom: 2px;
}
.dept-head__en {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--muted-2);
}

.dept-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.dept-item {
  border-top: 1px solid #d4dfe7;
  padding-top: 30px;
}
.dept-item__title {
  position: relative;
  padding-left: 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  margin-bottom: 16px;
}
.dept-item__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}
.dept-item__body {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
}
.dept-item__body:last-child { margin-bottom: 0; }
.dept-alert {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 2;
  color: #d9483b;
  font-weight: 500;
}

/* blue-dot list */
.dot-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dot-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.85em - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.dot-list__gap { margin-bottom: 18px; }
.text-link { color: var(--primary); text-decoration: underline; }
.text-link:hover { opacity: .8; }

/* sub heading — check icon, lighter */
.sub-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 1px dashed #cfe0f0;
  margin: 48px 0 18px;
}
.dept-item__title + .sub-title { margin-top: 10px; }
.dept-item__body + .dept-list { margin-top: 44px; }
.sub-title::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
  color: var(--primary);
}

/* schedule table */
.sched-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  border-top: 1px solid #e6edf1;
}
.sched-table th[scope="row"] {
  width: 200px;
  text-align: left;
  vertical-align: top;
  padding: 20px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid #e6edf1;
}
.sched-table td {
  padding: 20px 18px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  border-bottom: 1px solid #e6edf1;
}
.sched-table tr:nth-child(odd) { background: #f5f9fc; }

/* contact box */
.contact-box {
  background: #f3f7f8;
  border-radius: 8px;
  padding: 26px 30px;
  margin-top: 22px;
}
.contact-box__lead { margin: 0 0 4px; font-size: 15px; color: var(--muted-2); }
.contact-box__tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
}
.contact-box__tel i { font-size: 22px; }
.contact-box__note { margin: 8px 0 0; font-size: 14px; color: var(--muted-2); }

@media (max-width: 640px) {
  .sched-table, .sched-table tbody, .sched-table tr, .sched-table th, .sched-table td { display: block; width: 100%; }
  .sched-table th[scope="row"] { padding-bottom: 0; border-bottom: 0; }
  .contact-box__tel { font-size: 24px; }
}

.dept-sidebar {
  position: sticky;
  top: 96px;
}
.dept-sidebar__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 6px;
}
.dept-nav {
  display: flex;
  flex-direction: column;
}
.dept-nav a {
  padding: 15px 16px;
  font-size: 16px;
  color: var(--text);
  border-bottom: 1px solid #e6edf1;
  transition: background .2s, color .2s;
}
.dept-nav a:hover { background: #f5f9fc; color: var(--primary); }
.dept-nav a.is-current {
  background: var(--icon-bg);
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .dept-layout { grid-template-columns: 1fr; gap: 48px; }
  .dept-sidebar { position: static; }
}
@media (max-width: 640px) {
  .page-banner { min-height: 200px; }
}

/* media row (text + photo) */
.media-row {
  display: grid;
  grid-template-columns: 1fr 262px;
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
}
.media-row__text { padding-top: 4px; }
.media-row__img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(30, 50, 60, .14);
}

/* subsection header */

/* info bubble */
.info-bubble {
  background: #eef4fb;
  border: 1px solid #d7e6f5;
  border-radius: 6px;
  padding: 16px 22px;
  font-size: 16px;
  color: #2f6ca8;
  margin: 0 0 28px;
}

/* numbered flow */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.flow__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}
.flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.flow__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 640px) {
  .media-row { grid-template-columns: 1fr; gap: 22px; }
  .media-row__img { max-width: 320px; }
}

/* =========================================================
   お知らせ詳細（news.html）
   ========================================================= */
.news-article {
  max-width: 1180px;
  margin-inline: auto;
}
.news-article__loading {
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
}
.news-article__loading a { color: var(--primary); }
.news-article__head {
  padding-bottom: 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.news-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.news-article__date {
  font-size: 16px;
  letter-spacing: 1px;
  color: #90a2a8;
}
.news-article__title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.news-article__body { color: var(--muted); }
.news-em-red { color: #d6332e; font-weight: 700; }
.news-link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.news-link:hover { color: var(--primary-line); }
.news-article__h2 {
  position: relative;
  padding-left: 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink);
  margin: 48px 0 18px;
}
.news-article__h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}
.news-article__p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
}
.news-article__list { margin: 8px 0 32px; }
.news-article__figure {
  margin: 32px 0;
}
.news-article__figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.news-article__figure figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted-2);
  text-align: center;
}
.news-article__tablewrap {
  overflow-x: auto;
  margin: 24px 0 32px;
}
.news-article__table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}
.news-article__table th,
.news-article__table td {
  border: 1px solid var(--line);
  padding: 14px 18px;
  text-align: center;
  line-height: 1.7;
  color: var(--muted);
}
.news-article__table th {
  background: var(--soft-bg);
  color: var(--ink);
  font-weight: 600;
}
