/* 全体に適応 */
:root {
   --html-bgcolor: rgb(255, 255, 255);
   --html-color: #333333;
   --table-border: #636363;
   --background-navbar: #ffffff;
   --mobile-nav: #4e4e4e;
   --news-color: #2c4235;
   font-size: 16px;
}

@media screen and (max-width: 768px) {
   :root {
      font-size: 14px;
   }
}

body {
   font-family: "Noto Sans JP", sans-serif;
   font-weight: 500;
   color: var(--html-color);
   background-color: var(--html-bgcolor);
}

hr {
   background-color: #adadad;
   height: 1.5px;
   border: none;
}

i {
   justify-content: center;
   align-items: center;
   vertical-align: -2px;
}

.fever-area span {
   display: inline-block;
}

.container {
   padding: 20px 0px;
   max-width: 1200px;
   width: 90%;
   margin: 0 auto;
}

@media (max-width: 700px) {
   .container {
      width: calc(100% - 30px);
   }
}

@media (min-width: 701px) {
   .container {
      width: 80%;
   }
}

/* ヘッダーの切り替え */
@media (max-width: 768px) {
   .pcHeader {
      display: none;
   }

   .mobileHeader {
      display: flex;
   }
}

@media (min-width: 769px) {
   .pcHeader {
      display: flex;
   }

   .mobileHeader {
      display: none;
   }
}

/* PC用ヘッダー */
.pcHeader {
   width: 100%;
   padding: 10px 5% 10px 8%;
   top: 0;
   position: sticky;
   z-index: 10;
   justify-content: space-between;
   background-color: #ffffffe2;
   font-size: 1.25rem;
   flex-wrap: wrap;
   box-shadow: 0px 0px 14px 0px #00000017;
}

.l-box {
   display: flex;
   justify-content: center;
   align-items: center;
}

.r-box {
   white-space: nowrap;
}

.l-box img {
   width: 320px;
   height: 64px;
}

.r-box-top {
   display: flex;
   justify-content: flex-end;
   margin-bottom: 10px;
}

.r-box-top .tel-box,
.access-box {
   font-size: 1.375rem;
   padding: 0 25px;
   /* display: inline-block; */
}

.r-box-top .tel-box a {
   transition: color 0.2s ease-in-out;
}

.r-box-top .tel-box a:hover {
   color: #090;
}

.r-box-bt {
   margin-bottom: 10px;
}

.r-box-bt ul {
   /* list-style: none; */
   /* margin: 0; */
   display: flex;
   font-weight: 500;
}

.r-box-bt li {
   font-size: 1.125rem;
   position: relative;
   /* 相対位置を設定 */
}

.r-box-bt li>a {
   display: block;
   padding: 0 25px;
   transition: color 0.3s ease-in-out;
   user-select: none;
}

.r-box-bt li>a:hover {
   color: #090;
}

.r-box-bt li::after {
   content: '';
   position: absolute;
   top: 15%;
   bottom: 15%;
   right: 0;
   width: 1px;
   background-color: #696969;
}

.r-box-bt li:last-child::after {
   display: none;
}

.img-hover {
   transition: opacity 0.3s ease-in-out;
}

.img-hover:hover {
   opacity: 0.7;
}

.r-box-bt .im-house {
   font-size: 1.4rem;
}

/* PCヘッダーここまで */

/* スマホヘッダーここから */
.mobileHeader {
   top: 0px;
   position: sticky;
   width: 100%;
   height: 52px;
   z-index: 99;
   background: var(--background-navbar);
   box-shadow: 0px 2px 7px 0px #00000025;
   justify-content: center;
   align-items: center;
}

.logo {
   width:200px;
   height: 40px;
   padding: 0px 20px 0px 0px;
   will-change: transform;
}

.tel-icon {
   /* top: 5px; */
   right: 60px;
   font-size: 1.125rem;
   position: absolute;
   cursor: pointer;
   border: 1px solid var(--mobile-nav);
   border-radius: 10px;
   color: var(--mobile-nav);
   box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
   /* background-color: #8d8d8d; */

}

.tel-icon a {
   display: block;
}

.tel-icon a i {
   padding: 10px 10px;
   display: block;
}

.menu-icon {
   top: 6px;
   right: 10px;
   position: absolute;
   cursor: pointer;
   padding: 16px 6px;
   margin: 3px 2px;
}

.menu {
   top: 52px;
   right: 0;
   height: 100%;
   width: 250px;
   position: fixed;
   margin: 0;
   padding: 0;
   z-index: 90;
   background: var(--background-navbar);
   list-style: none;
   transform: translateX(100%);
   transition: transform 0.4s ease-in-out;
   box-shadow: -8px 0px 7px -8px #00000025;
}

.menu-btn:checked~.menu {
   transform: translateX(0);
}

.menu a {
   display: flex;
   font-size: 1.5rem;
   font-weight: 700;
   color: #353535;
   letter-spacing: 2px;
   padding: 20px 15px;
   opacity: 0;
   transition: opacity 0.3s ease-in;
}

.menu-btn:checked~.menu a {
   opacity: 1;
   transition-delay: 0.2s;
}

.menu li {
   position: relative;
}

.menu li::after {
   content: '';
   position: absolute;
   right: 5%;
   left: 5%;
   height: 1px;
   background-color: #cfcfcf;
}

.menu li::before {
   font-family: icomoon;
   content: "\e906";
   display: block;
   font-size: 1.25rem;
   position: absolute;
   right: 15px;
   top: 50%;
   transform: translateY(-50%);
}

.menu-btn {
   display: none;
}

.navicon {
   height: 3px;
   width: 26px;
   position: relative;
   background: var(--mobile-nav);
   display: block;
   transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
   content: "";
   display: block;
   height: 100%;
   width: 100%;
   position: absolute;
   background: var(--mobile-nav);
   transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
   top: 9px;
}

.navicon:after {
   bottom: 9px;
}

.menu-btn:checked~.menu-icon .navicon:before {
   transform: rotate(-45deg);
   top: 0;
}

.menu-btn:checked~.menu-icon .navicon:after {
   transform: rotate(45deg);
   bottom: 0;
}

.menu-btn:checked~.menu-icon .navicon {
   background: #00000000;
}

.access-link {
   display: flex;
   align-items: center;
   text-decoration: none;
}

.icon_map {
   margin-right: 10px;
   width: 20px;
   height: auto;
}

/* スマホヘッダーここまで */

/* ここからメイン画像 */
/* スライダー全体のスタイル */
.slider {
   width: 100%;
   height: 700px;
   position: relative;
   overflow: hidden;
}

.slider>img {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   opacity: 0;
   transition: opacity 1.5s ease-in-out;
   z-index: 1;
   object-fit: cover;
   object-position: center;
}

.slider>img.active {
   opacity: 1;
   z-index: 2;
   /* transition: none;  */
}

@media only screen and (max-width: 480px) {
   .slider {
      height: 265px;
   }
}

@media (min-width:481px) and (max-width:1000px) {
   .slider {
      height: 400px;
   }
}

.slider>img:first-child {
   object-position: center 40%;
}

.slider>img:nth-child(2) {
   object-position: center 35%;
}

.slider>img:last-child {
   object-position: center 70%;
}

/* メイン画像ここまで */

/* 発熱外来お知らせ */
.fever-area {
   padding: 30px 10px;
   /* background-image: radial-gradient( #ffffff, #ffffff 70%, #e9e9e9); */
}

.fever-notice {
   border: 1px solid #949494;
   border-radius: 15px;
   padding: 30px 15px;
   max-width: 900px;
   margin: 0px auto;
   text-align: center;
   font-size: 1.125rem;
   font-weight: 600;
   box-shadow: 0px 0px 15px -5px #777777;
}

.fever-notice h1 {
   margin: 0px 0px 20px 0px;
   font-size: 1.875rem;
   font-weight: 700;
   padding-bottom: 5px;
   border-bottom: 1.5px solid #000;
   display: inline-block;
}

.red {
   color: #df1a1a;
}

/* お知らせ欄 */
#news-area {
   /* background-color: #ffffff; */
}

#news-list li {
   padding: 10px 0;
   border-bottom: 1px solid #ccc;
   font-size: 1.125rem;
}

#news-list li a div {
   padding: 10px 10px;
}

#news-list div::before {
   font-family: icomoon;
   content: '\e905 \00a0';
}

#news-list li a {
   transition: opacity 0.2s ease-in-out, border-bottom 0.2s ease-in-out;
   text-decoration: underline;
}

#news-list li a:hover {
   opacity: 0.6;
   text-decoration: none;
}


/* ここから院長紹介 */
.doctor-info {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
}

.doctor-message p {
   font-size: 1.25rem;
   line-height: 2.5em;
}

.doctor-name {
   font-size: 1.5rem !important;
   font-weight: 600;
   text-align: right;
}

@media screen and (max-width: 768px) {
   .doctor-message p {
      line-height: 1.75em;
   }

}

/* .doctor-img {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   height: 100%;
   margin: 10px 30px;
}

.doctor-img img {
   height: 300px;
   width: auto;
   object-fit: contain;
   text-align: center;
}

.doctor-img p {
   text-align: center;
   font-weight: 600;
   font-size: 1.5rem;
} */

@media (max-width: 1150px) {
   .doctor-info {
      flex-direction: column;
      align-items: center;
   }

   .content img {
      margin-top: 20px;
      width: 100%;
   }
}


/* ここから診療案内 */
.icon-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 30px;
   font-size: 1.125rem;
   justify-content: center;
}

.icon-box {
   width: 350px;
   padding: 20px 35px;
   border: 2px solid #7c7c7c;
   display: flex;
   align-items: center;
   flex-direction: column;
   transition: all 0.3s ease-in-out;
   line-height: 2em;
   position: relative;
   background-color: #fff;
   z-index: 0;
}

.icon-box i {
   font-size: 5rem;
}

.icon-box h1 {
   font-size: 1.9rem;
}

.icon-box p {
   flex-grow: 1;
}


@media screen and (max-width: 768px) {
   .icon-box h1 {
      margin: 5px;
   }

   .icon-box i {
      font-size: 10rem;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: -3;
      color: #ededed;
   }

   .icon-box {
      padding: 20px 15px;
      border-radius: 20px;
   }

}


/* ここから医院案内 */
.img-area {
   display: flex;
   justify-content: space-between;
   padding: 0 5%;
   /* gap: 20%;  */
}

.img-area img {
   width: 45%;
   height: auto;
   border-radius: 20px;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


.clinic-info {
   font-size: 1.25rem;
}


/* 以下から部品 */
/* ここから汎用ボタン */
.btn-temp {
   width: fit-content;
   padding: 15px 40px;
   margin: 30px auto;
   display: block;
   text-align: center;
   position: relative;
   color: #006b70;
   border: 1px solid #006b70;
   border-radius: 40px;
   transition: color 0.3s ease, background-image 0.3s ease;
   font-weight: 700;
   box-shadow: 0px 0px 15px -5px #858585;
   font-size: 1.25rem;
   background-color: #fff;
}

.btn-temp::after {
   font-family: icomoon;
   content: "\e906";
   display: block;
   font-size: 0.9rem;
   position: absolute;
   right: 20px;
   top: 53%;
   -webkit-transform: translateY(-50%);
   transform: translateY(-50%);
}

.btn-temp:hover {
   color: white;
   background-color: #00000000;
}

.btn-temp::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: -1;
   background-image: linear-gradient(60deg, #077fa0, #10867c);
   opacity: 0;
   border-radius: 40px;
   transition: opacity 0.5s;
}

/* マウスホバー時に透明化を解除 */
.btn-temp:hover::before {
   opacity: 1;
}

.btn-small {
   width: fit-content;
   padding: 6px 30px;
   margin: 8px;
   text-align: center;
   position: relative;
   color: #006b70;
   background-color: #fff;
   transition: color 0.3s ease, background-color 0.3s ease;
   font-size: 1.125rem;
   font-weight: 700;
   border: 1px solid #006b70;
   border-radius: 30px;
   box-shadow: 0px 3px 10px 0px #5e5e5e65;
   bottom: 0px;
   /* display: block; */
   background-color: #fff;
}

.btn-small::after {
   font-family: icomoon;
   content: "\e906";
   display: block;
   font-size: 0.75rem;
   position: absolute;
   right: 10px;
   top: 52%;
   -webkit-transform: translateY(-50%);
   transform: translateY(-50%);
}

.btn-small:hover {
   color: white;
   background-color: #006b70;
}


/* ここから診療時間とアクセス */
.facility-Info {
   background-color: #c0cfc7;
   /* background-image: url('../image/leaf.jpg'); */
   /* background-color: rgba(255, 255, 255, 0.425); */
   /* background-blend-mode: lighten; */
   /* background-size: cover; */
   /* resize: both; */
}

.flex_wrapper {
   display: flex;
   gap: 20px 30px;
   flex-wrap: wrap;
   justify-content: center;
   align-items: center;
}

.about_logo {
   width: 60%;
   height: auto;
   user-select: none;
   margin-bottom: 30px;
}

.about_tel,
.about_location {
   font-size: 1.5rem;
   font-weight: 500;
   margin-bottom: 10px;
}


/* 診療時間テーブル */
.medical_hours {}

.medical_hours p {
   font-size: 1.5rem;
   font-weight: 600;
   margin-bottom: 10px;
   padding: 10px 0px;
}

.openh-table {
   display: block;
   border-collapse: collapse;
   font-size: 1.125rem;
}

.openh-table th {
   border-top: 1px solid var(--table-border);
   padding: 10px 18px;
}

.openh-table th:last-child,
td:last-child {
   padding: 10px 10px 10px 5px;
}

.openh-table td:first-child {
   padding: 10px 10px;
}

.openh-table th,
.openh-table td {
   text-align: center;
   border-bottom: 1px solid var(--table-border);
}

.fa-circle {
   /* color: #21a979; */
   font-size: 1em;
}

.fa-xmark {
   /* color: #21a979; */
   font-size: 1.5em;
}

@media screen and (max-width: 768px) {

   .openh-table th,
   .openh-table td {
      /* font-size: 14px; */
      padding: 7px;
   }

   .openh-table th:first-child,
   td:last-child {
      padding: 0px 10px;
   }

}

.medical_hours .closed-day {
   font-size: 1.0rem;
   padding-left: 11px;
}

/* ここからgooglemap */
/* CSS */
.map-container {
   width: 100%;
   max-width: 1200px;
   height: 400px;
   margin: 20px auto;
   border-radius: 20px;
   overflow: hidden;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
   /* 影を追加 */
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
   transform: translateY(-5px);
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
   /* ホバー時の影 */
}

.google-map {
   width: 100%;
   height: 100%;
   border: none;
}



/* ここからフッター */
.footer {
   color: #5f5f5f;
   background: #e5e5e5;
   text-align: center;
   padding: 15px;
}

.footer a {
   text-decoration: none;
}

.footer a:hover {
   color: #9b9b9b;
}

.footer .footer-navi {
   margin: 0;
   padding: 0;
   list-style: none;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
}

.footer .footer-navi li {
   margin: 0;
   padding: 5px 20px;
}

.footer .copyright {
   margin: 0;
   padding: 10px 0 0 0;
}



/* ここからnews.htmlのニュース欄 */
.news-section {
   max-width: 1000px;
   margin: 0 auto;
   padding: 20px 0px;
}

.news-section h1 {
   margin-bottom: 40px;
   position: relative;
   color: var(--news-color);
   text-align: center;
}

.news-section h1::after {
   content: "";
   display: block;
   width: 60px;
   height: 3px;
   background-color: var(--news-color);
   margin: 8px auto 0;
}

.news-item {
   padding:25px 30px;
   background-color: #ffffff;
   border-radius: 12px;
   box-shadow: 0 6px 13px rgba(0, 0, 0, 0.2);
   border:1px solid #678272;
   border-left: 6px solid #047a35;
   overflow: hidden;
   margin: 35px 0px;
}

@media screen and (max-width: 768px) {
   .news-item {
      padding:15px
   }
}

.news-title {
   display: flex;
   justify-content: space-between;
   align-items: center;
   background: linear-gradient(90deg, #046e30, #38996c);
   color: #ffffff;
   padding: 10px 15px;
   border-radius: 8px;
   margin-bottom: 15px;
}

.news-title h2 {
   font-size: 1.5rem;
   font-weight: 700;
   text-align: left; /* 左寄せ */
   margin: 0; /* 必要に応じて余白をリセット */
}

.news-date {
   font-size: 1.125rem;
   margin: 0;
   opacity: 0.95;
   color: #ffffff;
}

.news-content {
   font-size: 1.05rem;
   color: var(--html-color);
   line-height: 1.8;
   text-align: justify;
}

.news-content a{
   color: #088960;
   font-weight: 800;
   text-decoration:underline;
}

.news-content strong {
   font-size: 1.125rem;
   font-weight: 700;
}

/* ここからdoctor.html */
/* 院長案内 */
.doctor-html-info {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   background-color: #fff;
   padding: 30px;
   border-radius: 20px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.234);
}

@media (max-width: 1150px) {
   /* .doctor-html-info {
      flex-direction: column;
      align-items: center;
   } */

   .content img {
      margin-top: 20px;
      width: 100%;
   }
}


/* 所属学会 */
.CertList {
   background-color: #fff;
   border-radius: 15px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.234);
   padding: 20px 30px;
   max-width: 500px;
   text-align: left;
   margin: 0 auto;
   margin-top: 3%;
   padding: 2% 70px;
   font-size: 1.25rem;
}

.Cert-title {
   font-size: 1.5em;
   font-weight: 700;
   color: #365b51;
   margin-bottom: 20px;
   display: flex;
   align-items: center;
}

.Cert-title::before {
   content: '+';
   font-size: 1.5em;
   margin-right: 10px;
   color: #365b51;
}

.Cert-li {
   list-style-type: disc;
   padding: 0;
   margin: 0;
   color: #333;
}

.Cert-li li {
   margin-bottom: 10px;
   line-height: 1.6;
}



/* ここからmedical.html*/
.medical-item {
   border: 2px solid black;
   border-radius: 10px;
   display: flex;
   flex-direction: column;
   background-color: #fff;
   box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
   /* padding: 10px; */
   margin: 40px 0;
}

.medical-item .medical-head {
   display: flex;
   align-items: center;
   border-bottom: 2px solid black;
   padding-bottom: 10px;
   padding: 10px;
}

.medical-head>i {
   width: 50px;
   height: 50px;
   font-size: 1.7rem;
   border: 2px solid black;
   border-radius: 50%;
   display: flex;
   justify-content: center;
   align-items: center;
   margin-right: 10px;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.medical-head>h2 {
   font-size: 1.5rem;
   font-weight: 700;
}

.medical-item>.content {
   margin-top: 10px;
   padding: 20px;
   font-size: 1.125rem;
   color: var(--html-color);
   line-height: 1.7;
   text-align: justify;
}

.medical-item>.content li {
   padding-left: 1rem;
}

.medical-item>.content li.no-indent {
   padding-left: 0px;
}



.fix-button {
   /* position:fixed; */
   /* bottom:100px; */
}


/* ここからclinic.html */
.deviceArea {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   /* gap: 10%;  */
}

.deviceArea>div {
   display: flex;
   flex-direction: column;
   width: 45%;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
   border-radius: 20px 20px 20px 20px;
   margin: 3% 0;
   background-color: #fff;
}

/* 要素内の画像と情報のスタイリング */
.deviceArea img {
   width: 100%;
   /* max-height: 400px; */
   height: auto;
   object-fit: cover;
   border-radius: 20px 20px 0px 0px;
   container: deviceImg / inline-size;
   aspect-ratio: 4 / 3;
}

@container deviceImg (max-width: 500px) {
   .deviceArea img {
      height: 100px;
   }
}

.clinic-html-info>p {
   font-size: 1.125rem;
   line-height: 1.8;
   padding: 15px 0px;
}

.deviceArea .img-ECG {
   object-position: 0 20%;
}

.deviceArea .img-scope {
   object-position: 0 70%;
}

.deviceArea .device-info {
   width: 100%;
   height: auto;
   border-radius: 0 0 20px 20px;
   padding: 10px 20px;
   background-color: #fff;
   font-size: 1.125rem;
   line-height: 1.7;
}

/* 折り返して1列になる場合のスタイル */
@media screen and (max-width: 900px) {
   .deviceArea {
      justify-content: center;
   }

   .deviceArea>div {
      width: 80%;
      margin: 3% auto;
   }
}

/* 404ページ */
.error-container {
   text-align: center;
   padding: 20px;
   height: 80vh;
}

.error-content h1 {
   font-size: 7rem;
   color: #ff6f61;
   margin: 100px 0px 30px 0px;
}

.error-content p {
   font-size: 2.5rem;
   margin: 30px 0px 250px 0px;
}