
  :root {
  --main-bg-color: #f8d7dd;     
  --main-text-color: #844848;   
  --link-hover-color: #000000;
}   

/* :root {
  --main-bg-color: #2d74bf;  
  --main-text-color: #f5f5f5;   
  --link-hover-color: #000; 
}    */



/* googlefont *//* googlefont  */
  body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}
body.no-scroll {
  overflow: hidden;
}
html, body {
  -webkit-overflow-scrolling: touch; /* iOSで慣性スクロール */
  scroll-behavior: smooth;           /* なめらかなスクロール */
  overflow-x: hidden;                /* 横スクロール防止（必要に応じて） */
}


/* html（1rem = 10px） */
html{ 
  font-size: 62.5%; 
}
/* html（1rem = 10px） */

a{
  text-decoration:none;
  font-size:1.6rem;
}
p{
  font-size:1.4rem;
}
li{
  list-style:none;
  font-size:1.6rem;
  line-height:3rem;
}
.wrap{
  width: 100%;
  max-width:1200px;
  margin:0 auto;
  background-color:#fff;
}

/* header header haeder haeder  */
/* ヘッダー */
.header{
  max-width:1200px;
  margin:0 auto;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 3rem; /* 適宜調整 */
  border: 1px solid #333;
}
.header-tel{  
  line-height: 1;
  margin:0 0 0.5rem;
  padding-left: 3rem;
  font-size: 2.2rem;
} 
.header-info{
  display: flex;
  justify-content:flex-start;
}
.header-link {
  margin-left: auto; /* 一番右に押す */
}
/* ナビゲーションメニュー */
.nav-menu {
  background-color: var(--main-bg-color); /* メニューの背景色 */
  
}
.menu-list {
  display: flex;
  justify-content: center; /* メニューアイテムを中央揃えに */
}
.menu-item {
  border-left: 1px solid #fff; /* メニューアイテムの左ボーダー */
  position: relative;
}
.menu-item:last-child {
  border-right: 1px solid #fff; /* 最後のメニューアイテムの右ボーダー */
}

/* メニューアイテムのホバースタイル */
.menu-item:hover .drop-menu-list {
  visibility: visible; /* 下層メニューを表示 */
}
.menu-item a {
  align-items: center;
  color: var(--main-text-color);/* メニューテキストの色 */
  display: flex;
  height: 50px;
  font-size:1.8rem;
  justify-content: center;
  text-decoration: none; /* リンクの下線を非表示 */
  width: 18rem;
}

/* ドロップダウンメニュー */
.drop-menu {
  position: relative;
}
.drop-menu-list {
  background-color: var(--main-bg-color);/* ドロップダウンメニューの背景色 */
  left: 0;
  position: absolute;
  top: 100%;
  visibility: hidden; /* 下層メニューを非表示 */
  width: max-content;
  z-index: 1;
}

.nav-menu a:hover {
  background-color: #fff;  
  color: var(--link-hover-color);      
}

.header-link{
  display: flex;
  justify-content: left;
  align-items: center;
}

.header-link .header-sub-menu{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-btn-menu{
  margin: 0;
  padding: 0 0 0 2rem;
}
.header-btn-menu a{
  background: #fefefe;
  border: 1px solid #333;
  border-radius: 30px;
  display: block;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.5rem 1rem;
  text-align: center;
  margin-bottom:0.5rem;
  white-space: nowrap;
}
.header-sub-menu li{
  padding: 0 1rem;
  font-size:1.6rem;
}
.header-sub-menu li:last-child{
  margin-right:4rem;
  margin-left:2rem;
}
.header-sub-menu li a::before{
  border-radius:38px;
  width: 3.8rem;
  content: "";
  display: block;
  padding-top: 2.8rem;
  margin: 0 auto 0.5rem;    
}
.header-sub-menu li a:hover{
  background-color:rgb(255, 221, 0);
}
.btn-access::before{
  background:#fff url("../image/icooon-mono/access.svg") no-repeat center center/contain;
}
.btn-contact::before{
  background:#fff url("../image/icooon-mono/inquiry.svg") no-repeat center center/contain;
}


@media (max-width: 768px) {
  /* 表示を消す要素 */
  .header-adress,
  .header-number,
  .header-info,
  .header-link {
    display: none;
  }

  /* ヘッダー左側（表示させたい） */
  .header-left {
    display: flex;
  }

  /* 電話番号の表示調整 */
  .header-left .header-tel {
    font-size: 1.4rem;
    padding: 0 0 0.5rem 1rem;
    margin: 0;
  }

  /* ナビゲーション非表示 */
  .nav-menu {
    display: none;
  }

  /* ヘッダー全体をコンパクトに */
  .header {
    max-width: 100%;
    padding: 0.5rem 1rem;
  }

  .header-top {
    height: 60px;
    padding: 0 1rem;
    align-items: center;
  }

  /* ボタンとサブメニューのサイズ調整 */
  .header-btn-menu a {
    font-size: 1.4rem;
    padding: 0.3rem 0.8rem;
    line-height: 1.2;
  }

  .header-sub-menu li {
    font-size: 1.4rem;
    padding: 0 0.5rem;
  }

  /* ロゴ画像の高さ調整 */
  .site-title img {
    max-height: 40px;
    height: auto;
  }
}




    /*----------------------------
    * メニュー開閉ボタン
    *----------------------------*/

#drawer_toggle {
    z-index: 200;
  box-sizing: border-box;
    position: absolute;
    top: 8px;
    right: 20px;
  display: none;
    width: 60px;
    height: 60px;
  }
  #drawer_toggle span {
    position: absolute;
    top: 19px;
    left: 17px;
    display: none;
    width: 30px;
    height: 3px;
    border-radius: 2px;
    background-color: #666;
    vertical-align: top;
  }
  #drawer_toggle span:nth-child(2) {
    margin-top: 10px;
  }
  #drawer_toggle span:last-child {
    margin-top: 20px;
  }
  #drawer_toggle.open span {
    top: 29px;
    left: 14px;
    width: 35px;
    margin: 0;
  }
  #drawer_toggle.open span:first-child {
    transform: rotate(45deg);
  }
  #drawer_toggle.open span:nth-child(2) {
    display: none;
  }
  #drawer_toggle.open span:last-child {
    transform: rotate(-45deg);
  }
  
  @media (max-width: 768px) {
    #drawer_toggle,
    #drawer_toggle span{
        display: inline-block;
    }     
    .h_nav{
        display: none;
    }


    @media (max-width: 768px) {
  #drawer_toggle {
    position: fixed;
    z-index: 1000;
    display: inline-block;
  }
}

    }




    /*----------------------------
    * メニュー本体
    *----------------------------*/


/* ハンバーガーメニュー本体 */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color:#f1cf8e;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu.is-active {
  opacity: 0.95;
  visibility: visible;
  pointer-events: auto;
}

/* メニュー内コンテンツのラッパー */
.menu-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;

  max-height: 90vh;         /* 高さ制限を設ける */
  overflow-y: auto;         /* 垂直スクロール可能にする */
  padding: 1rem 1rem 3rem;  /* 下に少し余白あるとベター */
}


/* メニュー項目 */
.menu__item {
  width: 90%;
  height: auto;
  padding: .5rem 1rem;
  text-align: center;
  box-sizing: border-box;
  font-size: 2.4rem;
  border-bottom: 2px solid #333;
}

.menu__item a {
  display: block;
  font-size: 2rem;
  padding: 1rem 0;
  color: black;
  text-decoration: none; /* 念のため */
}

.menu__item.info {
  font-size: 1.4rem;
  line-height: 2.2rem;
  padding: 1.5rem 1rem 0;
  text-align: center;

  border-bottom: 2px solid #333;
  background: transparent;
  color: #333;
}

.menu__item.info p {
  margin: 0.3rem 0;
}

.menu__item a small {
  display: block;
  font-size: 1.2rem;
  color: #555;
  margin-top: 0.3rem;
  line-height: 1.5;
}
 


/* header haeder  haeder haeder   終わり*/
/* ===============================
   フッター下部
================================ */
.footer {
  background-color: #f7f7f7;
  border-top: 2px solid #ccc;
  padding-top: 2rem;
  margin-top: 4rem;
}


.footer_bottom {
  border-top: 1px solid #ccc;
  padding: 1.5rem 1rem;
  text-align: center;
}

.footer_bottom_menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin-bottom: 1rem;
}


.footer_bottom_menu a {
  color: #000;
  font-size: 1.4rem;
  text-decoration: none;
}
.footer_bottom_menu a:hover {
  color: #2079bd;
}

.copyright {
  color: #000;
  font-size: 1.2rem;
}

/* ===============================
   ページトップボタン
================================ */
.pagetop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(to right, #2079bd, #4a90e2);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1.4rem;
  text-decoration: none;
  display: none;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
}

.pagetop:hover {
  background: linear-gradient(to right, #155f96, #2c7acb);
}

.pagetop.is-show {
  display: block;
}

/* ===============================
   アコーディオン構造（共通）
================================ */
.accordion-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 1rem; /* ✅ 全体に余白を追加 */
}

.accordion-link {
  font-weight: bold;
  font-size: 1.4rem;
  text-decoration: none;
  color: #333;
  flex: 1;
}
.accordion-link:hover{
  
  color: #333;
  background-color:#f4cccc;
}


.accordion-toggle {
  display: none; /* PCでは非表示 */
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  padding: 2rem;
  width: 3.2rem;
  height: 3.2rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background-color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

/* タップ時の視覚変化（スマホ対応） */
.accordion-toggle:hover {
  background-color: #f0f0f0;
  border-color: #999;
}

/* プラス・マイナス記号の切り替え */
.accordion-toggle::after {
  content: "＋";
}

.accordion-toggle.active::after {
  content: "−";
}


/* サブメニュー共通 */
.submenu {
  list-style: none;
  padding-left: 1rem;
  margin: 0;
}

.submenu li a {
  display: block;
  font-size: 1.3rem;
  text-decoration: none;
  color: #3366cc;
  margin-bottom: 0.3rem;
}

.submenu li a:hover {
  color: #003366;
  background-color:#f4cccc;
}

/* ===============================
   フッター上部（ロゴ・住所・問合せ）
================================ */

.footer_info {
  background-color: #ffffff;       
  border-top: 2px solid #ccc;       
  margin-top: 10rem;
}

.footer_info_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.footer_info_logo {
  flex: 1 1 auto;
  text-align: center;
}


.footer_info_logo img {
  max-width: 360px;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.footer_info_content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}
.footer_info_detail {
  line-height: 1.6;
}


.footer_info_detail h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* ===============================
   フッターメニュー（PC表示時）
================================ */
.footer_menu {
  max-width: 1200px;
  margin: 0 auto;
}

.footer_menu_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.footer_menu_list > li {
  flex: 1 1 18rem;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}
.footer_menu_list > li:hover {
  background-color: #f1f1f1;
}

/* ===============================
   モバイル対応（768px以下）
================================ */
@media (max-width: 768px) {
  .footer_info_inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem; /* ✅ gapを縮める */
  }


  .footer_info_content {
    
    /* flex-direction: column; */
    align-items: center;
    text-align: center;
    margin-top: 0; /* ✅ 念のためリセット */
  }

  .footer_menu_list {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }

  .footer_menu_list > li {
    flex: 1 1 100%;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 1rem 1.2rem;
    text-align: left;
  }

  .footer_bottom_menu {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
  }

  .pagetop {
    bottom: 15px;
    right: 15px;
    font-size: 1.3rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
  }

  .submenu {
    display: none;
  }


    .accordion-toggle {
    display: flex;
  }

}

    body.no-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
}


.pagetop.is-show {
  opacity: 1;
  visibility: visible;
}



   table.doctor-schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  table-layout: fixed;
}

.doctor-schedule th,
.doctor-schedule td {
  border: 1px solid #ccc;
  padding: 0.5rem 0rem;
  text-align: center;
  vertical-align: top;
}

.doctor-schedule thead th {
  background-color: #f1f1f1;
  font-size:1.2rem;
  padding:0.5rem 0rem;
}

.doctor-schedule .dept {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
  font-size:1.2rem;
}

.doctor-schedule .name {
  display: block;
  font-size: 1.2rem;
}

.naika {
  background-color: #ffe5cc; /* オレンジ */
}
.naika2 {
  background-color: #fffccc; /* オレンジ */
}
.naika3{
  background-color:#fff2a5
}
.seikei {
  background-color: #dcecff; /* 青系 */
}
.seikei2 {
  background-color: #dcddff; /* 青系 */
}

.hifuka {
  background-color: #d7f7d7; /* 緑系 */
}
.dm{
  background-color:#f5ccfb;
}
.kara{
  background-color:#ebebeb;
}
.kougen{
  background-color:rgb(215, 253, 254);
}

/* モバイル専用調整 */
@media screen and (max-width: 480px) {
  table.doctor-schedule {
    font-size: 1rem;
  }

  .doctor-schedule .dept {
    font-size: 1rem;
  }

  .doctor-schedule .name {
    font-size: 0.85rem;
  }

  .doctor-schedule th,
  .doctor-schedule td {
    padding: 0.2rem;
  }

  .doctor-schedule thead th {
    font-size: 1rem;
    padding: 0.2rem;
  }
}
@media screen and (max-width: 480px) {
  .doctor-schedule th:first-child {
    width: 3.5rem;
    font-size: 0.95rem;
  }
}


