/* =========================================================
   外来受診のご案内
========================================================= */

.front-outpatient{
  margin: 0;
  padding: 94px 0 75px;
  background: #EDF3F5;
}

.front-outpatient__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0px;
}

.front-outpatient__box{
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 48px 74px; /* ← 上を70pxに変更 */
  background: #FFFFFF;
  border: 1px solid #9A9696;
  border-radius: 20px;
}

/* タイトル修正 */
.front-outpatient__title{
  position: static; /* ← absolute削除 */
  margin: 0 0 40px; /* ← 下に余白追加 */
  padding: 0;
  background: transparent; /* ← 白背景削除（ボックス内なので不要） */
  color: #1759A5;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}



.front-outpatient__cards{
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: min(80px, 6.66vw);
}

.front-outpatient__card{
  width: 100%;
  max-width: 490px;
  background: #FFFFFF;
  border: 1px solid #9A9696;
  border-radius: 10px;
  overflow: hidden;
}

.front-outpatient__card-head{
  padding: 16px;
  background: #EDF3F5;
  text-align: center;
}

.front-outpatient__card-head-text{
  margin: 0;
  color: #2F2F2F;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.front-outpatient__card-body{
  padding: 16px 24px 24px;
  text-align: center;
}

.front-outpatient__main-text{
  margin: 0;
  color: #1759A5;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.5;
}

.front-outpatient__card--schedule .front-outpatient__main-text{
  padding: 16px 0;
}

.front-outpatient__note{
  margin: 0;
  color: #2F2F2F;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.front-outpatient__note--holiday{
  padding-bottom: 8px;
  text-align: left;
}

.front-outpatient__tel{
  margin: 0;
  color: #2F2F2F;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
}

.front-outpatient__tel-label{
  color: #2F2F2F;
}

.front-outpatient__tel-link{
  color: #1759A5;
  text-decoration: underline;
  text-underline-offset: 0.1em;
}

.front-outpatient__tel-link:hover{
  color: #1759A5;
}

.front-outpatient__button-wrap{
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.front-outpatient__button{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 360px;
  min-height: 57px;
  padding: 12px 54px 12px 24px;
  background: #1759A5;
  border: 1px solid #1759A5;
  border-radius: 60px;
  color: #FFFFFF;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.front-outpatient__button:hover{
  background: #FFFFFF;
  border-color: #1759A5;
  color: #1759A5;
  text-decoration: none;
}

.front-outpatient__button-icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 24px;
}

.front-outpatient__button-icon img{
  display: block;
  width: 18px;
  height: 24px;
}

.front-outpatient__button-text{
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.front-outpatient__button-arrow{
  position: absolute;
  top: 50%;
  right: 18px;
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color .25s ease, border-color .25s ease;
}

.front-outpatient__button-arrow::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #1759A5;
  border-right: 2px solid #1759A5;
  transform: translate(-60%, -50%) rotate(45deg);
  transition: border-color .25s ease;
}

.front-outpatient__button:hover .front-outpatient__button-arrow{
  background: #1759A5;
  border-color: #1759A5;
}

.front-outpatient__button:hover .front-outpatient__button-arrow::before{
  border-color: #FFFFFF;
}

.front-outpatient__card-body--time{
  padding-top: 0;
  padding-bottom: 0;
}

.front-outpatient__time-block{
  padding: 16px 24px;
  text-align: center;
}

.front-outpatient__subheading{
  margin: 0 0 6px;
  color: #2F2F2F;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.front-outpatient__time-divider{
  border-top: 1px solid #9A9696;
}

.front-outpatient__time{
font-size: 28px;
color: #1759A5;
}

.front-outpatient__note--time{
  margin-top: 6px;
  font-weight: 500;
}

.front-outpatient__cautions{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1em;
  margin-top: 20px;
  text-align: center;
}

.front-outpatient__caution{
  margin: 0 auto;
  color: #DB4337;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
}

.front-outpatient__file-label{
  font-size: 12px;
  margin-left: 4px;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 800px){
  .front-outpatient{
    padding: 56px 0 56px;
  }

  .front-outpatient__inner{
    padding: 0 16px;
  }

  .front-outpatient__box{
    padding: 52px 0 32px;
    text-align: center;
    padding-left: 10px;
  }

  .front-outpatient__title{
    font-size: 24px;
    text-align: center;
    white-space: normal;
  }

  .front-outpatient__cards{
    flex-direction: column;
    gap: 20px;
  }

  .front-outpatient__card{
    max-width: none;
  }

  .front-outpatient__caution span{
    display: block;
  }
}
  .front-outpatient__card-body{
    padding: 16px;
  }

  .front-outpatient__time-block{
    padding: 16px;
  }

  .front-outpatient__main-text{
    font-size: 26px;
    margin: 0 auto;
  }

  .front-outpatient__button{
    width: 100%;
    padding-left: 16px;
    padding-right: 50px;
  }

  .front-outpatient__cautions{
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    text-align: left;
  }

  .front-outpatient__caution{
    font-size: 16px;
    line-height: 1.7;
  }
