/* ===============================
   ヘッダー・ロゴ
================================= */
.header {
  background-color: #004080; /* ロイヤルブルー：テーマカラー */
  color: #ffffff;
  padding: 20px 15px;
  position: relative;
border-bottom: 5px solid #0066cc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.logo-container {
  text-align: center;
  margin: 0 auto;
}

.logo-container h1,
.logo-container .main-logo {
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.logo-container .sub-text {
  font-size: 14px;
  color: #a3d5ff; /* ベビーブルー調でやさしく */
  margin-top: 6px;
}

/* トップメニュー（ナビ）の調和用：nav と背景色揃える */
.nav {
  background-color: #004080;
}

/* モバイルメニューアイコン */
.menu-toggle {
  background: none;
  border: none;
  font-size: 28px;
  color: #fff;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  display: block;
}

/* PC時の nav 表示調整（768px以上） */
@media screen and (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav {
    display: block;
  }

  .nav-list {
    flex-direction: row;
    justify-content: center;
  }
}

/* ===============================
   トップ画像
================================= */
.topimage {
    position: relative;
    margin-top: 50px;
}

.topimage p {
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 2.5vw;
    color: #ffffff;
    padding: 10px;
    text-align: left;
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
}

/* ===============================
   ボタン
================================= */
.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0066cc;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 0 10px;
}

.custom-button i {
    margin-right: 8px;
    font-size: 24px;
}

.custom-button:hover {
    background-color: #004c99;
}

.custom-button.pediatrics {
    background-color: #ff8c66;
}

.custom-button.pediatrics:hover {
    background-color: #e67351;
}

/* ===============================
   ページトップボタン
================================= */
.pagetop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
}

.pagetop a {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1A1AA6;
    color: #fff;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.pagetop a:hover {
    background-color: #004080;
}

/* ===============================
   メディアクエリ（スマホ表示）
================================= */
@media screen and (max-width: 640px) {
    .topimage p {
        font-size: 4vw;
        text-align: center;
        position: relative;
        left: 0;
        top: auto;
    }

    .custom-button {
        width: 100%;
        font-size: 16px;
    }

    .logo-container h1 {
        font-size: 28px;
    }

    .logo-container .sub-text {
        font-size: 12px;
    }
}

/* ===== フッター全体 ===== */
.footer {
  background-color: #f8f9fa;
  text-align: center;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid #ddd;
}

.copyright {
  font-size: 14px;
  color: #555;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}


/* お知らせボックス */
.green-border-box {
  border: 5px solid #5fa8d3;       /* 枠線：やさしいコバルト淡ブルー */
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: #f8fbfd;       /* 背景：清潔感のある淡いブルー */
  color: #004080;                  /* 文字色：ロイヤルブルーで統一 */
}


/* ヘッダー部分（内科/小児科と日付を横並び） */
.notification-header {
    display: flex;
    align-items: center; /* 中央揃え */
    margin-bottom: 10px;
}

/* 内科/小児科のスタイル */
.department {
    background-color: #ff8c66; /* 部門の背景色 */
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-right: 15px; /* 部門と日付の間に少し余白 */
}


/* ===== タイトル見出しスタイル（再利用しやすい） ===== */
/* 共通カラー定義（参考） */
:root {
  --noda-main-blue: #5fa8d3;
  --noda-light-blue: #a3d5ff;
  --noda-bg-blue: #f8fbfd;
}

/* title1: メインセクション見出し */
.title1 {
  font-size: 1.8em;
  font-weight: bold;
  color: #004080;
  background-color: #f8fbfd;
  padding: 12px;
  margin-bottom: 24px;
  border-radius: 4px;
  line-height: 1.4;
  text-align: center; /* ← 中央揃え */
}

.title1 i {
  margin-right: 8px;
  color: #5fa8d3;
  font-size: 1.2em;
  vertical-align: middle;
}


/* title2: 小見出し */
.title2 {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--noda-main-blue);
  padding-left: 10px;
  margin-bottom: 20px;
}

/* title3: 補助的見出し（もう一段小さい） */
.title3 {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--noda-main-blue);
  padding-left: 8px;
  margin-bottom: 16px;
}

/* title4: アクセス情報などの個別見出し（すでに調整済み） */
.title4 {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--noda-main-blue);
  padding-left: 12px;
  background-color: var(--noda-bg-blue);
  margin-bottom: 20px;
  line-height: 1.5;
  border-radius: 4px;
}

.title1,
.title2,
.title3,
.title4 {
  background-color: transparent;
}

/* ===== スクロール可能なボックス ===== */
.scrollable-box {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background-color: #fff;
  border: none;
}

.scrollable-box::-webkit-scrollbar {
  width: 12px;
}

.scrollable-box::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 6px;
}

.scrollable-box::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
.fever-section {
  background: #f7fdf7;
  padding: 2em;
  margin: 2em 0;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
}

.fever-box {
  font-size: 1.05em;
  line-height: 1.7;
  color: #333;
}

.fever-box h3,
.fever-box h4 {
  color: #2e7d32;
  border-bottom: 2px solid #a5d6a7;
  padding-bottom: 0.3em;
  margin-top: 1.5em;
}

.fever-box ul {
  margin-left: 1.2em;
  list-style-type: disc;
}

.fever-box p {
  margin: 0.5em 0 1em 0;
}

.update-date {
  text-align: right;
  font-size: 0.9em;
  color: #666;
  margin-top: 2em;
}

@media screen and (max-width: 640px) {
  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
  }

  .topimage p {
    font-size: 4vw;
    text-align: center;
    position: relative;
    left: 0;
    top: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .logo-container h1 {
    font-size: 28px;
  }

  .logo-container .sub-text {
    font-size: 12px;
  }

  .nav1 ul {
    flex-direction: column;
  }

  .nav1 li {
    margin-right: 0;
  }

  .submenu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
  }

  .custom-button {
    width: 100%;
    font-size: 16px;
  }

  .schedule-container {
    flex-direction: column;
    gap: 30px;
    margin: 10px;
  }

  .section {
    width: 100%;
    margin-bottom: 20px;
  }

  .clinic-schedule {
    width: 100%;
  }

  .section-title {
    font-size: 20px;
  }

  .clinic-schedule th,
  .clinic-schedule td {
    padding: 8px 10px;
    font-size: 14px;
  }

  .additional-info {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* ====================
  フッタースタイル
======================= */
/* アクセス情報全体の背景とパディング */
.box-access {
  background-color: #f8fbfd;  /* 清潔感のあるホワイトスモーク */
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}


/* タイトル */
.title4 {
  color: #5fa8d3;
  background-color: #f8fbfd;
  border-left: 6px solid #a3d5ff;
  padding-left: 12px;
}

.access-info {
    text-align: center;
}

/* アクセス情報全体の文字（濃すぎないグレー） */
.access-info p {
  color: #222;  /* やや濃いめで読みやすく */
  font-size: 16px;
  line-height: 1.6;
}

/* 電話番号リンク（アクセントブルー） */
.clinic-phone {
  color: #0077a8; /* 濃すぎず明るすぎない中間ブルー */
  font-weight: bold;
  text-decoration: none;
}

.clinic-image-center {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

.clinic-details {
    font-size: 18px;
    color: #fff;
    margin-top: 15px;
}

.clinic-phone:hover {
    color: #FFEB3B; /* ホバー時に少し明るいゴールドに */
}

/* モバイル対応: 幅が640px以下の場合は縦並びにする */
@media screen and (max-width: 640px) {
    .schedule-section {
        flex-direction: column;
        gap: 30px;
    }
}

/* フッター全体のスタイル */
.footer {
    background-color: #f8f9fa; /* 背景色を薄いグレーに */
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #ddd; /* 上部に薄い線を追加 */
}

/* copyright部分のスタイル */
.copyright {
    font-size: 14px;
    color: #555; /* 文字色を薄いグレーに */
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* ===============================
   医院概要
================================= */

/* 外枠の青背景セクション */
.box_blue {
  background-color: #f8fbfd; /* 清潔感のある淡青 */
  padding: 40px 20px;
  border-radius: 10px;
  margin-bottom: 40px;
border: 1px solid #d0e6f4; /* 枠線を追加 */
}

/* セクションタイトル（日本語＋英語） */
.tit02 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: #004080; /* ロイヤルブルー */
  margin-bottom: 30px;
  position: relative;
}

.tit02 span {
  display: block;
  font-size: 14px;
  color: #5fa8d3; /* やさしい青 */
  margin-top: 8px;
  font-weight: normal;
}

/* ボックス内部のスタイル */
.box2 {
  max-width: 800px;
  margin: 0 auto;
}

.clinic_sec1 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clinic_sec1 li {
  margin-bottom: 20px;
}

.clinic_sec1 dl {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #d0e7f5;
  padding-bottom: 10px;
}

.clinic_sec1 dt {
  width: 120px;
  font-weight: bold;
  color: #004080;
  font-size: 16px;
}

.clinic_sec1 dd {
  width: calc(100% - 120px);
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}

/* 電話リンク */
.clinic_sec1 a {
  color: #004080;
  text-decoration: none;
}

.clinic_sec1 a:hover {
  color: #5fa8d3;
  text-decoration: underline;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .clinic_sec1 dl {
    display: block;
  }

  .clinic_sec1 dt,
  .clinic_sec1 dd {
    width: 100%;
  }

  .clinic_sec1 dt {
    margin-bottom: 5px;
  }
}

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css">

/* ===============================
   糖尿病外来
================================= */

   