picture img{
  width: 100%;
}
.breadcrumb{
  display: flex;
  flex-wrap: wrap;
  width: 95%;
  max-width: 1500px;
  margin: 5% auto;
}
.breadcrumb li{
  position: relative;
  padding-right: 10px;
  font-size: 10px;
}
.breadcrumb li:not(:last-child)::before{
  content: "";
  background: #D2CEC7;
  height: 1px;
  width: 5px;
  position: absolute;
  top: 50%;
  transform: var(--transform-50-Y);
  right: 3px;
}
.div_h1 {
  padding: 60px 30px;
  max-width: 1500px;
  margin: 0 auto clamp(60px, 38.873px + 5.634vw, 120px);
  position: relative;
}
.div_h1 .en{
  font-family: var(--aboreto-font-family);
  font-weight: 400;
  color: #F3F3F3;
  font-size: clamp(50px, 28.873px + 5.634vw, 110px);
  line-height: 1.5em;
}
.div_h1 h1 .small {
	font-size:18px;
	margin-top: .69444vw;
	line-height: 1;
	display: block;
	font-weight: 400;
	overflow: hidden
}

@media (min-width: 1440px) {
.div_h1 h1 .small {
		font-size: 15px
	}
}

@media (min-width: 1440px) {
.div_h1 h1 .small {
		margin-top: 10px
	}
}
@media (max-width: 767px) {
  .div_h1 {
  padding: 60px 30px 0;
  }
  .div_h1 .en{
  font-size: clamp(8vw, 5vw, 3rem);
  max-width: 100%;
  }
}
h2:not(.h2_nost){
  max-width: 1500px;
  width: 90%;
  padding-bottom: 30px;
  margin: 0 auto var(--margin-b-45);
  font-family: var(--Klee-font-family);
  font-size: var(--h2-font-size);
  color: var(--text-color);
  position: relative;
}
h2:not(.h2_nost)::after{
  font-family: var(--aboreto-font-family);
  font-size: var(--body-font-size-18);
  color: var(--primary);
  position: absolute;
  right: 0;
  text-align: right;
  width: 100%;
  bottom: 0;
}
.information h2:not(.h2_nost):after{
  content: "INFORMATION";
}
.maternity h2:not(.h2_nost):after{
  content: "maternity";
}
.sec_con{
  width: 100%;
  margin:0 auto clamp(60px, 38.873px + 5.634vw, 120px);
}
.art_con{
  max-width: 1500px;
  margin: 0 auto clamp(45px, 39.718px + 1.408vw, 60px);
  width: 95%;
}

/***予約***/
.sec_system{
  background: rgb(243, 243, 243,.3);
  padding: 30px 15px;
  border-radius: 30px;
  position: relative;
  box-shadow: var(--shadow-size--medium);}
.sec_system:before,.sec_system::after{
    background-clip: border-box;
    background-origin: border-box;
    border-radius: inherit;
    content: "";
    left: 0;
    mask-clip: padding-box, border-box;
    mask-image: linear-gradient(var(--white) 0%, var(--white) 0%), linear-gradient(var(--white) 0%, var(--white) 0%);
    mask-composite: exclude;
    position: absolute;
    top: 0;
}
.sec_system:before {
    background-image: linear-gradient(90deg, 
color-mix(in srgb, var(--primary) 100%, transparent) 0%, 
color-mix(in srgb, var(--primary) 0%, transparent) 100%);
    border-top: solid max(.0625rem, 1px) transparent;
    height: calc(100% - max(.0625rem, 1px));
    width: 100%;
    z-index: -1;}
.sec_system:after {
    background-image: linear-gradient(180deg, 
color-mix(in srgb, var(--primary) 100%, transparent) 0%, 
color-mix(in srgb, var(--primary) 0%, transparent) 100%);
    border-left: solid max(.0625rem, 1px) transparent;
    height: 100%;
    width: calc(100% - max(.0625rem, 1px));
    z-index: -2;
  }


.sec_system h2{
  font-family: var(--Klee-font-family);
  font-size: var(--body-font-size-30);
  margin-bottom: 45px;
}
.sec_system h3{
  background: #F3F3F3;
  border-radius: 15px;
  padding: 15px;
  font-size:var(--h3-font-size) ;
  margin-bottom: 30px;
}
.sec_system .art_con{
  width: 100%;
}
.sec_system .flex{
margin: 30px 0;
}
@media (max-width: 767px) {
.sec_system .link{
  justify-content: center;
  align-items: center;
  gap: 15px;
}
  }
  @media (min-width: 768px) {
.sec_system .flex .qr_reserve{
  width: 100px;
  margin-left: 35px;
}
.sec_system .flex p{
  width: calc((100% - 100px)- 35px);
}
.sec_system .link{
  max-width: 780px;
  margin: 45px auto 0;
  justify-content: space-around;
}
  }
/***予約***/
@scope(.sec_404){
  .link03{
    margin:30px auto;
    display: inline-block;
  }
}
@scope(.post){
  .div_datelist{
  max-width: 1500px;
  margin: 0 auto 5%;
  width: 95%;
  }
  .div_datelist .date-time{
    text-align: right;
    margin-right: 15px;
  }
  .div_datelist h2{
    border-top:#D2CEC7 1px solid ;
    border-bottom:#D2CEC7 1px solid ;
    padding:15px 30px;
    font-size: clamp(25px, 22.667px + 0.622vw, 32px);
    line-height: 1.5em;
    display: block;
    font-weight: 100;
    letter-spacing: 0.02em;
  }
  
  .inner{
    margin-bottom: 5%;
  }
  .div_linklist{
    display: flex;
    justify-content: center;
    align-items: center;
  }
  @media (max-width: 767px) {
  }
/*お知らせ一覧*/
@scope(.sec_post-list ){
  h2 .list-date{
    font-size: 14px;
    margin-left: 10px;
  }
 .inner{
  padding: 0;
 }
 .ul_category li .a_category{
  padding: clamp(0.313rem, 0.092rem + 0.939vw, 0.938rem);
  font-size: clamp(12px, 11.296px + 0.188vw, 14px);
 }
.news-item {
  padding: 20px;
  background: #ffffff;
  margin-bottom: 15px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.news-item:hover {
  transform: translateX(5px);
  background: #e7e6e6;
}.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.news-item h3{
  font-size: 20px;
  font-weight: 400;
}
.news-label {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: bold;
}

}/*お知らせ一覧*/

}
/*当院について*/
@scope(.information){
  :is(.sec_message,.sec_doctor) h3{
    font-family: var(--Klee-font-family);
    font-size:clamp(16px, 13.183px + 0.751vw, 24px);
    line-height: 2em;
  }
  @scope(.sec_message){
  .art_message .div_top{
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: end;
    position: relative;
    margin-bottom: var(--margin-b-45);
  }
  .art_message .im_doctor{
    width:50%;
  }
  .art_message .im_doctor img{
    width: 100%;
  }
  .art_message .div_message p{
    line-height: 2em;
    font-size: var(--body-font-size-18);
  }
  .art_message .div_sign p{
    text-align: left;
    width: fit-content;
    margin: 0 0 0 auto;
  }
  .art_message .div_sign p img {
    height: 45px;
    padding-top: 10px;
    margin-bottom: -4px;
    margin-left: -5px;
    opacity: 0.7;
}
  .art_prof .div_img img{
    width: 100%;
  }
  .art_prof h3{
    display: none;
  }

  @media (min-width: 768px) {
  .art_prof{
    display: flex;
    flex-wrap: wrap;
    align-items:top;
  }
  .art_message h3{
    position: absolute;
    left: 0;
    bottom: 0;
  }
  .art_prof .div_img{
  width:30%;
    }
    .art_prof .div_con{
    width: calc((100% - 30%) - 30px);
    margin-left: 30px;
  }
    .art_prof .div_con{
    display: flex;
    flex-wrap: wrap;

  }
  .art_prof .div_con .dl02{
    width: calc((100% / 2) - 30px);
  }
  .art_prof .div_con .dl02:nth-of-type(even){
    margin-left: 15px;
  }
  }
  @media (max-width: 767px) {
  .art_message .im_doctor{
    max-width: 680px;
    width: 100%;
    display: block;
    margin: 15px auto;
  }
  .art_prof .div_img{
    display: flex;
    flex-wrap: wrap;
  }
  .art_prof .div_img picture{
    width: 50%;
  }
  .art_prof .div_con .dl02 .ul01{
    font-size: 12px;
  }
}
  }
  @scope(.sec_doctor){
  .art_con h3 > .prof{
    font-size: var(--body-font-size-14);
    margin-right:10px ;
  }
    .art_con .div_prof{
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: end;
  position: relative;
 margin-bottom: var(--margin-b-45);
  }
  .art_con h3{
    position: absolute;
    left: 0;
    top: 50%;
    transform: var(--transform-50-Y);
  }
  .div_message {
    margin: var(--margin-b-30) 0;
  }
  .div_message p{
    line-height: 2em;
  }
  @media (min-width: 768px) {
  .art_con .im_doctor {
  width: 30%;
  }
  .art_con .div_history{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .art_con .div_history .dl02{
    width: calc((100% / 2) - 30px);
  }
  .art_con .div_history .dl02:nth-of-type(even){
    margin-left: 15px;
  }
  }
  @media (max-width: 767px) {
  .art_con .im_doctor {
  width: 50%;
  }
  .art_con .div_history .dl02 .ul01{
    font-size: 12px;
  }
  }
  }
  @scope(.sec_facility){

    .gallery-container {
  counter-reset: room-counter; 
}
    /* --- Horizontal Wrapper (横スクロールさせる全体の器) --- */
    .scroll-wrapper {
      display: flex;
      flex-wrap: nowrap;
      width: 462vw; /* セクションの数（今回は4つ） × 100vw */
      height: 75vh;
      will-change: transform;
     
    }
    .facility-section {
  counter-increment: room-counter;
}

    /* --- Each Panel (1画面分のパネル) --- */
    .panel {
      width: 75vw;
      height: 75vh;
      flex-shrink: 0; /* 縮小を禁止 */
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    /* --- 背景ビジュアル --- */
    .bg-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.05);
      transition: transform 0.5s ease;
    }

    /* --- コンテンツ（文字情報） --- */
    .content {
      position:absolute;
      z-index: 2;
      text-align: center;
      max-width: 600px;
      bottom: 0;
      right: 0;
      padding: 10px 20px;
      background: rgba(17, 13, 23, .5);
      backdrop-filter: blur(12px);
    }

    .num {
      font-family:var(--aboreto-font-family);
      font-size: 1.2rem;
      color: var(--primary);
      display: block;
      margin-bottom: 15px;
      letter-spacing: 0.2em;
      position: relative;
      padding-left: 45px;
    }
.num:before {
    content: counter(room-counter, decimal-leading-zero) " / ";
    min-width: 35px;
    position: absolute;
    left: 0px;
    color: var(--primary);
}
    .title {
      font-family:var(--Klee-font-family);
      font-size:36px;

      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      line-height: 1.1;
      margin-bottom: 10px;
    }

    .sub-title {
      font-size: 0.85rem;
      letter-spacing: 0.3em;
      color: var(--primary);
      text-transform: uppercase;
    }

    @media (max-width: 767px) {
        .art_facility{
    overflow: hidden;
  }
      .title {
        font-size: 28px;
      }
      .scroll-wrapper {
        width: 910vw; /* モバイルでも横幅は維持 */
        height:80vh;
      }
      .panel {
      width: 150vw;
      height: 80vh;
    }
    .content{
      top: 0;
      bottom: auto;
    }
    }
}
.route-modal {
  border: none;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.route-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
}
/* --------------------------------------------------
 * 1. モーダル本体の基本アニメーション設定
 * -------------------------------------------------- */
dialog.route-modal {
  border: none;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* アニメーションの変化対象と時間を指定 */
  transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s allow-discrete;

  /* 閉じている時の状態（拡大しながら消える） */
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
}

/* 開いている時の状態 */
dialog.route-modal[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* 開く瞬間の初期状態（@starting-style） */
@starting-style {
  dialog.route-modal[open] {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
}

/* --------------------------------------------------
 * 2. 背景（オーバーレイ）のアニメーション設定
 * -------------------------------------------------- */
dialog.route-modal::backdrop {
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, display 0.3s allow-discrete;
}

dialog.route-modal[open]::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

@starting-style {
  dialog.route-modal[open]::backdrop {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
  }
}
}
@scope(.maternity){
  
}