/* ========================================
   お知らせページ
======================================== */

.news-page {
  color: #263b2c;
  background: #fff;
}

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


/* ========================================
   お知らせページ専用
======================================== */

.news-page {
  color: #263b32;
  background: #fff;
}

/* 既存トップページのヒーローをページ見出し用に調整 */
body.news-body .hero {
  height: 230px;
}

body.news-body .hero-text {
  left: max(7vw, 60px);
  top: 38px;
}

body.news-body .hero-text h1 {
  font-size: 38px;
  line-height: 1.4;
}

body.news-body .hero-message {
  right: 9%;
  top: 62px;
}

/* ========================================
   パンくずリスト
======================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 14px 0;
  color: #777;
  font-size: 12px;
}

.breadcrumb a {
  color: #64766a;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #4c9255;
}


/* ========================================
   メインレイアウト
======================================== */

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 38px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 60px;
}

.news-main {
  min-width: 0;
}


/* ========================================
   セクション見出し
======================================== */

.section-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0 24px;
}

.section-heading h2 {
  flex-shrink: 0;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #4c9255;
}


/* ========================================
   お知らせカード
======================================== */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.news-card {
  border: 1px solid #e7ebe7;
  background: #fff;
  transition: border-color 0.2s ease;
}

.news-card:hover {
  border-color: #a9c9ad;
}

.news-card__link {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
}

.news-card__image {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 50%;
  background: #f3f7f2;
}

.news-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__content {
  min-width: 0;
}

.news-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 7px;
}

.news-card time {
  color: #6c8074;
  font-size: 12px;
}

.news-category {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  line-height: 1.5;
}

.news-category--holiday {
  color: #d95049;
  background: #ffeded;
}

.news-category--general {
  color: #4c9255;
  background: #e7f3e7;
}

.news-category--medical {
  color: #3287b7;
  background: #e4f4ff;
}

.news-card h3 {
  margin: 0 0 7px;
  color: #233d2b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.news-card__content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #747b78;
  font-size: 13px;
  line-height: 1.9;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card__arrow {
  color: #4c9255;
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.news-card:hover .news-card__arrow {
  transform: translateX(4px);
}


/* ========================================
   ページネーション
======================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.pagination__number,
.pagination__next {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d3e1d5;
  border-radius: 50%;
  color: #45684c;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.pagination__number:hover,
.pagination__next:hover {
  color: #fff;
  background: #4c9255;
}

.pagination__number.is-current {
  border-color: #4c9255;
  color: #fff;
  background: #4c9255;
}

.pagination__next {
  border-color: transparent;
  font-size: 24px;
}


/* ========================================
   サイドバー
======================================== */

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-box {
  overflow: hidden;
  border: 1px solid #edf0eb;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(40, 70, 45, 0.05);
}

.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 15px;
  background: #f3f7f0;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-heading span {
  color: #4c9255;
  font-size: 22px;
}

.sidebar-news {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 18px 15px;
}

.sidebar-news a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #263b2c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  text-decoration: none;
}

.sidebar-news time {
  color: #788b7f;
  font-size: 11px;
}

.sidebar-news a:hover span {
  color: #4c9255;
}

.sidebar-more {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 0 15px 18px;
  color: #4a6550;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ========================================
   初めての方へ
======================================== */

.sidebar-guide {
  overflow: hidden;
  border-radius: 9px;
  background: #f4f7f1;
}

.sidebar-guide > img {
  display: block;
  width: calc(100% - 16px);
  height: 105px;
  margin: 8px 8px 0;
  border-radius: 5px;
  object-fit: cover;
}

.sidebar-guide__content {
  padding: 18px 20px 20px;
}

.sidebar-guide h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 19px;
  font-weight: 600;
}

.sidebar-guide p {
  margin: 0 0 18px;
  color: #344c39;
  font-size: 12px;
  line-height: 2.1;
}

.sidebar-guide__button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 30px;
  color: #fff;
  background: #4c9255;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.sidebar-guide__button:hover {
  background: #397b43;
}


/* ========================================
   スマートフォン・タブレット
======================================== */

@media (max-width: 900px) {

  .news-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .news-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

}


@media (max-width: 600px) {

  .page-hero {
    min-height: 180px;
    background-position: center;
  }

  .page-hero__inner {
    width: calc(100% - 36px);
  }

  .page-hero p {
    font-size: 13px;
  }

  .breadcrumb {
    width: calc(100% - 36px);
    gap: 8px;
  }

  .news-layout {
    width: calc(100% - 32px);
    padding-top: 12px;
    padding-bottom: 40px;
  }

  .section-heading {
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 18px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .news-card__link {
    grid-template-columns: 64px minmax(0, 1fr) 12px;
    gap: 12px;
    padding: 14px 10px;
  }

  .news-card__image {
    width: 64px;
    height: 64px;
  }

  .news-card__meta {
    gap: 6px;
    margin-bottom: 5px;
  }

  .news-card time {
    font-size: 10px;
  }

  .news-category {
    padding: 2px 8px;
    font-size: 10px;
  }

  .news-card h3 {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 1.6;
  }

  .news-card__content p {
    font-size: 11px;
    line-height: 1.7;
  }

  .news-card__arrow {
    font-size: 22px;
  }

  .news-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

}

@media (max-width: 700px) {
  body.news-body .hero {
    height: 180px;
  }

  body.news-body .hero-text {
    left: 20px;
    top: 22px;
  }

  body.news-body .hero-text h1 {
    font-size: 28px;
  }
}


/* ========================================
   簡易休診カレンダー
   月ごとの臨時休診・時間変更は js/clinic-calendar.js の設定だけを編集
======================================== */
.clinic-calendar { padding: 12px; }
.calendar-controls { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 5px; margin-bottom: 10px; }
.calendar-month { margin: 0; text-align: center; font-size: 17px; font-weight: 700; color: #263b32; }
.calendar-month-button { width: 32px; height: 32px; border: 1px solid #dce6dc; border-radius: 6px; background: #f5f8f3; color: #3f7548; font-size: 24px; line-height: 1; cursor: pointer; }
.calendar-month-button:hover, .calendar-month-button:focus-visible { background: #e8f0e5; outline: 2px solid #7cae80; outline-offset: 2px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #e5ebe4; border-left: 1px solid #e5ebe4; }
.calendar-weekday, .calendar-day { min-width: 0; border-right: 1px solid #e5ebe4; border-bottom: 1px solid #e5ebe4; text-align: center; }
.calendar-weekday { padding: 5px 0; background: #f5f7f2; font-size: 10px; color: #53665a; font-weight: 700; }
.calendar-weekday:first-child { color: #b45b58; }
.calendar-weekday:last-child { color: #557eae; }
.calendar-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-height: 45px; padding: 4px 1px 3px; background: #fff; color: #263b32; font: inherit; font-size: 12px; }
button.calendar-day { width: 100%; cursor: pointer; }
.calendar-day:disabled { cursor: default; }
.calendar-day.is-empty { background: #fafbf9; }
.calendar-day.is-closed { background: #f0f1ef; color: #777d77; }
.calendar-day.is-holiday { box-shadow: inset 0 3px 0 #eadcc7; }
.calendar-day.is-change { box-shadow: inset 0 -3px 0 #6b9e70; }
.calendar-day.is-selected { outline: 2px solid #4c9255; outline-offset: -2px; z-index: 1; }
.calendar-day.is-today .calendar-date { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 50%; background: #e6f0e3; font-weight: 700; }
.calendar-date { line-height: 20px; }
.calendar-day-label { display: block; width: 100%; overflow-wrap: anywhere; font-size: 8px; line-height: 1.2; color: #5c6e60; }
.calendar-day.is-closed .calendar-day-label { color: #767d76; }
.calendar-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding: 11px 0 8px; font-size: 10px; color: #5b685e; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 2px; border: 1px solid #d7ddd6; }
.legend-closed { background: #f0f1ef; } .legend-holiday { background: #fff; box-shadow: inset 0 3px 0 #eadcc7; } .legend-change { background: #fff; box-shadow: inset 0 -3px 0 #6b9e70; }
.calendar-hours { padding: 10px 0 4px; border-top: 1px solid #edf0eb; font-size: 11px; line-height: 1.65; }
.calendar-hours p { margin: 3px 0; }
.calendar-hours strong { font-weight: 700; }
.calendar-hours-note { color: #69756b; font-size: 10px; }
.calendar-message { min-height: 36px; margin: 8px 0 0; padding: 8px 9px; border-radius: 5px; background: #f5f8f3; color: #45594a; font-size: 11px; line-height: 1.6; }
@media (max-width: 600px) { .clinic-calendar { padding: 14px; } .calendar-day { min-height: 52px; font-size: 13px; } .calendar-day-label { font-size: 9px; } .calendar-hours { font-size: 12px; } .calendar-message { font-size: 12px; } }

/* PC・タブレット横向き：木浜内湖の水面が見える位置に合わせる。スマホは以前のまま。 */
@media (min-width: 701px) {
  body.news-body .hero > img[src$="moriyama_kohama_landscape.webp"] {
    object-position: center 80%;
  }
}
