
/* カテゴリーイメージ */

    .category-image{
        width:100%;
        height:160px;
        object-fit: cover;
        position: relative;
     }
     .category-label {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景で視認性アップ */
    color: #fff;
    padding: 6px 12px;
    font-size: 1.6rem;
    border-radius: 4px;
    font-weight: bold;
}
@media screen and (max-width: 768px) {
  .category-label {
    bottom: 8px;
    right: 12px;
    padding: 5px 10px;
    font-size: 1.2rem;
  }
}

     .care{
        background:url(../image/category_image/category_image_care.jpg) 
        no-repeat center center/cover;
    }  
    .hospi{
        background:url(../image/category_image/category_image_hospi.jpg) 
        no-repeat center center/cover;
    } 
    .outpatient{
        background:url(../image/category_image/category_image_outpatient.jpg) 
        no-repeat center center/cover;
    }  
    .about{
        background:url(../image/category_image/category_image_about.jpg) 
        no-repeat center center/cover;
    }   
    .yobi{
        background:url(../image/category_image/category_image_outpatient2.jpg) 
        no-repeat center center/cover;
    }   
   
        /* カテゴリーイメージ　終わり */

/* ２階層タイトル部分　h２タグ */

.second-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 500;
    background: linear-gradient(rgba(0, 0, 0, 0), rgb(255, 255, 255,0.5)), 
                url("../image/title_backgrounf.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 3rem;
    border-radius: 10px;
    margin: 5rem auto 0;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 
                0 8px 16px rgba(0, 0, 0, 0.05);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.05em;
}
@media (max-width: 768px) {
    /* .second-title {
    font-size: 2.0rem;
    font-weight: 500;
    padding: 0.5rem;
    margin: 1rem auto 0;
    max-width: 100%;
} */

  .second-title {
    font-size: 2.2rem;
    padding: 2rem;
    margin: 3rem auto 0;
    max-width: 95%;
    line-height: 1.4;
    background-position: center;
    background-size: cover;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* 影をやや弱く */
  }
    }

        /* ２階層タイトル部分　h２タグ　終わり */

        /* TOP>デフォルトセクション>【手書き部分】  ←この部分 */
    .wrap > ul{
        display: flex;
        margin-bottom:3rem;
    }
    .wrap > ul li{
        letter-spacing:0.34em;
    }
        /* TOP>デフォルトセクション>【手書き部分】  ←この部分 */


/* サイドバーとメインコンテンツを囲う箱 */

    .main-aside{
        display:flex;
        justify-content:space-between;
        align-items: top;
    }

  
        /* サイドバーとメインコンテンツを囲う箱　終わり */
/* タブ機能　　タブの数に応じて　calcの分母を変更する */
    
    .tab {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .tab li {
        width: calc(100% / 4);
        text-align: center;
    }
 
     .tab li a {
        display: block;
        background: linear-gradient(135deg, #fad9a7, #ffa216);
        margin: 0 0.5rem;
        text-decoration: none;
        color: #333;
        font-weight: bold;
        padding: 2rem;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease-in-out;
    }
    
    .tab li a:hover {
        background: linear-gradient(135deg, #fad9a7, #ffa216);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
        transform: translateY(-3px);
    }    
   @media (max-width: 768px) {
        .tab li {
        width: calc(100% / 2);
    }
    .tab li a {
        padding: 1rem;
        margin-bottom:0.5rem;
    }

     }
    /* メインコンテンツ */
    main{
        width:80%;
        margin:0 auto; 
        padding:3rem;
    }
     @media (max-width: 768px) {
  main {
    width: calc(100% - 1rem); /* ← padding分を引く */
    padding: 2rem 0.5rem;
  }

}


    /* 基本スタイル 基本スタイル　基本スタイル*/
/* article 書式 */
/* article_title = h3タグ */
.article_title {
    font-size: 3rem;
    border-left: 6px solid #2079bd;
    padding: 0 0 0 10px;
    font-weight: normal;
    line-height: 1.2;
    margin-bottom: 1rem;
}
/* article_secondtitle = h4タグ */
.article_secondtitle {
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom:2px solid #2079bd;
}
/* h５タグ */
.article_thirdtitle {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.article_p {
    margin-bottom: 1.5rem;
    font-size:1.8rem;
}
.article_ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}
.article_ul li {
    margin-bottom: 1rem;
    line-height:3rem;   
}
@media (max-width: 768px) {
   @media screen and (max-width: 768px) {
  .article_title {
    font-size: 2.4rem;
    padding-left: 8px;
  }

  .article_secondtitle {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .article_thirdtitle {
    font-size: 1.6rem;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
  }

  .article_p {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }

  .article_ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .article_ul li {
    margin-bottom: 0.8rem;
    line-height: 2.5rem;
  }
}

        
    }
    /* 基本スタイル 基本スタイル　基本スタイル*/
 .text-r {
    text-align: right;
  }
   




/* サイドバー全体のスタイル */
.sidebar {
    width: 25%;
    padding-right:.9rem;
    padding-left:.9rem;
}

/* 見出しのスタイル */
.sidebar h2 a {
    display: block;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    padding: 16px 10px;
    font-size: 2.2rem;
    font-weight: 400;
    margin: 0;
    width: 100%;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.sidebar h2 a:hover {
    background-color: #b0ebf7;
  }

/* リスト全体のスタイル */
.sidebar ul {
    margin: 0 0 50px 0;
    padding: 0;
}

.sidebar li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.sidebar li a {
    display: inline-block;
    width: 100%;
    color: #000;
    margin:0 0 1px 0;
    padding:2rem 0;
    font-size: 2rem;
    text-align: left;
    border-bottom: 1px solid #ccc;
}
.sidebar li.active a {
    background-color: #b0ebf7;
}

/* ホバー時の背景とテキスト色の変更 */
.sidebar li a:hover {
    background-color: #b0ebf7;
}


    @media (max-width: 768px) {
       aside{
        display: none; 
    }
       }     /* サイドバー */


    /* jsの記述を書く */
.tab li.active a{
    background: gray;
    color:#fff;
    
}
.area{
    display: none;
    opacity: 0;
    padding: 4rem 0;
}
.area.is-active{
    display: block;
    opacity: 1;
    animation-name: tabAnime;
    animation-duration: 3s;
}
@keyframes tabAnime{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}


  

/* 表のデザイン */

/* 基本の表のスタイル（全table共通） */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
    min-width: 400px;
    border: 1px solid #ccc;
}

th,
td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 1.6rem;
    border: 1px solid #5e5e5e;
    line-height: 1.5;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%; /* ✅ 画面幅にフィットさせるため */
  margin-bottom:2rem;
}

.table-scroll table {
  min-width: 700px; /* 必要に応じて調整 */
}

/* 要介護の料金表　介護表（.kaigo-table）の専用スタイル */

.kaigo-table td[rowspan] {
    background-color: #fdddb2;
    font-weight: bold;
}
/* 要支援の料金表 */
.kaigo-table4 td[rowspan]:first-child {
  background-color: #fdddb2;
  font-weight: bold;
}

/* kaigo-table2：1列目だけ色を変える */

.kaigo-table2 td:first-child {
    background-color: #fdddb2;
    font-weight: bold;
} 
/* kaigo-table2：左端に rowspan があるセルだけ色を付ける */
.kaigo-table3 td[rowspan] {
    background-color: #fdddb2;
    font-weight: bold;
}
.about-table td:first-child {
    background-color: #fdddb2;
    font-weight: bold;
} 

/* 特定の表にだけ幅均等や装飾を適用 */
.table-scroll .schedule-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.table-scroll .schedule-table td {
  border: 1px solid #ccc;
  text-align: center;
  padding: 0.8rem;
  word-break: break-word;
}
@media (max-width: 768px) {
  .kaigo-table {
    font-size: 1.2rem; /* 全体フォントを少し小さめに */
  }

  .kaigo-table td,
  .kaigo-table th {
    padding: 0.6rem 0.8rem; /* パディング縮小 */
    font-size: 1.2rem; /* さらに調整可能 */
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll table {
    min-width: 600px; /* 必要に応じてさらに縮められる */
  }
}

/* ボックス */
main .gallery {
    display: flex;
    justify-content: center; /* 中央寄せ */
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem; /* 隙間を調整 */
    margin-bottom: 2rem;
}

.gallery_box {
    width: 23%;
    height: auto;
}
.gallery_three {
    width:32%;
    height: auto;
}
.gallery_middle {
    width: 48%;
    height: auto;
}
.gallery_middle2 {
    width: 30%;
    height: auto;
}

/* 画像を幅いっぱいにする */
.gallery_box img {
    width: 100%;
    height: auto;
    object-fit: cover; /* アスペクト比を維持しつつボックスに収める */
}
.gallery_three img{
    width: 100%;
    height: auto;
    object-fit: cover; /* アスペクト比を維持しつつボックスに収める */
}
.gallery_middle2 img {
    width: 100%;
    height: auto;
}
.image_big img{
    width:100%;
    height:auto;
    object-fit: cover;
}
.image_big{
    width:90%;
    height: auto;
}
/* 画面幅が768px以下の場合、2列に変更 */
@media (max-width: 768px) {
    main .gallery_box {
        width: 45%; /* 2つずつ並ぶようにする */
        height: auto;
    }

    .gallery_middle2 {
    width: 48%;
    height: auto;
}
}

.gallery_middle img {
    width: 100%;
    height: auto;
    object-fit: cover; /* アスペクト比を維持しつつボックスに収める */
}
.gallery_middle2 img {
    width: 100%;
    height: auto;
    object-fit: cover; /* アスペクト比を維持しつつボックスに収める */
}

.image_middle img{
    width:45%;
    height:auto;
    object-fit: cover;
}

.image_middle{
    width:100%;
    height: auto;
}


.simple {
  width: 90%;
  margin: 0 auto;
  background-color: #fff;
}

.simple_submenu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0 0 2rem 0;
  list-style: none;
}

.simple_list {
  flex: 1 1 calc(50% - 0.5rem); /* 2カラム */
}

.simple_a {
  display: block;
  padding: 2rem;
  border: 2px solid #2079bd;
  font-size: 2rem;
  line-height: 1.4;
  text-decoration: none;
  color: #000;
  background-color: #fff;
  transition: all 0.3s ease;
}

.simple_a:hover {
  background-color: #2079bd;
  color: #fff;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .simple_list {
    flex: 1 1 100%;
  }

  .simple_a {
    font-size: 1.6rem;
    padding: 1rem;
  }
}

    
      /* 画像　➕　文章 */
      .text_image {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
        padding: 2rem;
      }
      
      .text-block {
        flex: 1;
      }
      
      .image-block {
        flex: 1;
      }
      
      .image-block img {
        width: 100%;
        height: auto;
        display: block;
      }
      
      /* スマホ表示（768px以下）のとき縦並びに変更 */
      @media (max-width: 768px) {
        .text_image {
          flex-direction: column-reverse;
          text-align: center;
        }
      
        .text-block,
        .image-block {
          width: 100%;
        }
      }


  

        /* google_map */
       
          
            .googlemap{
            height:400px;
            }
          .text{
            width: 50%;
          }
          .googlemap iframe {
            width: 100%; /* mapのiframeを親要素に合わせる */
            height: 100%; /* 必要に応じて高さを調整 */
            border-radius: 8px; /* 角を少し丸くする */
            border: 1px solid #ddd; /* 枠線を設定 */
          }
          
          
          .access .text h3 {
            font-size: 2.4rem; /* タイトルのフォントサイズ */
            margin-bottom: 1rem;
            color: #333;
          }
          
          .access .text p {
            font-size: 1.6rem; /* テキストのフォントサイズ */
            margin-bottom: 0.5rem;
            color: #555;
            line-height: 1.6; /* 行間の調整 */
          }
          @media(max-width:768px){
            .access .googlemap{
              width: 100%;
            }
            .access .text{
              width: 100%;
            }
          }
          /* google_map */


        /* 強調 */
        .color_red{
            color: red;
        }
        /* PDF */
        .pdf-list li a::after {
  content: '';
  display: inline-block;
  width: 35px;
  height: 35px;
  background-image: url('../image/icon_pdf.png'); /* パスは実際の構造に合わせて調整 */
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 0.5em;
  vertical-align: middle;
}
/* お問い合わせ　 */
.mail-button {
      background-color: #4ca2f2;
      color: #fff;
      padding: 0.8rem 1.5rem;
      border-radius: 8px;
      text-decoration: none;
      font-size: 1.4rem;
    }

    .mail-button:hover {
      background-color: #adc5ec;
    }



 



    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; /* オレンジ */
}

.seikei {
  background-color: #dcecff; /* 青系 */
}

.hifuka {
  background-color: #d7f7d7; /* 緑系 */
}

/* モバイル専用調整 */
@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;
  }
}


 .doctor-profile {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.doctor-profile h2 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 2px solid #ccc;
  padding-bottom: 1rem;
}

.doctor-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  background-color: #fafafa;
}

.doctor-image {
  flex: 1 1 200px;
  text-align: center;
}

.doctor-image img {
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
}

.doctor-info {
  flex: 2 1 500px;
}

.doctor-name {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.doctor-position {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 1rem;
}

.doctor-info h4 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  color: #333;
  border-left: 4px solid #2079bd;
  padding-left: 0.5rem;
}

.doctor-info ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.doctor-info p {
  margin: 0.5rem 0;
}



.news_list_item:hover{
  background-color:#f3d2f1;
}



.examination_ul li{
  list-style: disc !important;
}

.font_size15{
  font-size:1.5rem;
}



.menu-section {
  margin: 2rem 0;
  padding: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #fafafa;
}



/* 2列レイアウト */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* 左右2列 */
  gap: 2rem;                       /* カード間の余白 */
}

.menu-card {
  text-align: center;              /* 中央揃え */
}

.menu-label {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #444;
}

.menu-img {
  width: 100%;
  max-width: 250px;                /* 画像サイズ調整 */
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
}


