@charset "utf-8";

/* Schedule 高浜病院 CSS  */
/* プロフィール --------------------------- */
.sec-profile .inner {
  position: relative;

}

/* box-profile ------------------------------- */
.box-profile .wrap-txt {
  flex: 1;
  padding-left: 2%;
  padding-right: 5%;
  margin-top: 20px;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  position: relative;
}

.box-profile .sttl-profile {
  position: relative;
  padding-left: 23px;
  display: inline-block;
  padding-right: 30px;
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-18px);
}

.box-profile .sttl-profile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  display: block;
  width: 4px;
  height: 70%;
  border-radius: 2px;
  background: #fe0101;
}

.box-profile .list-cercle {
  list-style: none;
  position: relative;
}

.box-profile .list-cercle .slist {
  position: relative;
  padding-left: 23px;
  margin-bottom: 4px;
  margin-right: 5%;
  display: block;
  font-size: 1.5rem;
}

.box-profile .list-cercle .slist::before {
  content: "";
  display: inline-block;
  font-family: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  border-radius: 50%;
  height: 15px;
  border: 1px solid #fe0101;
  transform: translateY(6px);
}

/*
.box-profile .list-cercle::after {
  content: "他";
  position: relative;
  display: inline-block;
  right: 0;
  bottom: 0;
} */

.box-profile .profile-card:not(:last-child) {
  border-bottom: 1px solid #ccc;
}

.profile-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5vw;
  align-items: flex-start;
}

.profile-card .profile-ttl {
  display: flex;
  min-width: 420px;
  gap: 10px;
  align-items: center;
}

.profile-card .profile-details {
  flex: 1;
  min-width: 480px;
}

.profile-card .profile-ttl .icon {
  width: 55px;
  height: 55px;
}
.profile-card .profile-title {
  margin-bottom: 2px;
}

@media (max-width: 767px) {
  .box-profile {
    flex-direction: column;
    position: relative;
  }

  .box-profile::before,
  .box-profile::after {
    content: "";
    position: absolute;
    right: 0;
    background: #ccc;
    display: block;
  }

  .box-profile::after {
    width: 1px;
    height: calc(100% - 120px);
    top: 120px;
    z-index: -1;
  }

  .profile-card .profile-details,
  .profile-card .profile-ttl {
    min-width: inherit;
    width: 100%;
  }

  .profile-card {
    gap: 10px;
  }

}

@media (max-width: 480px) {
  .box-profile .wrap-photo {
    width: 95%;
  }

  .box-profile .wrap-txt {
    padding-left: 0;
  }

  .profile-card .profile-ttl .icon {
    width: 45px;
    height: 45px;
  }
}


/* ==================== スケジュール行 ==================== */
.schedule-day-group {
  margin-bottom: 20px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  position: relative;
}

.schedule-day-group:last-child {
  border-bottom: none;
}

/* ==================== 凡例（スクロール時に固定） ==================== */
.schedule-legend {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
  margin-bottom: 10px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.schedule-legend.schedule-grid {
  border-bottom: none;
}

.schedule-legend .legend-item.legend-a {
  padding-left: 85px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.legend-item img {
  width: 30px;
  height: 30px;
}

.legend-item span {
  color: #333;
  font-weight: bold;
  letter-spacing: 0.015em;
}



/* ==================== PC用：スケジュールグリッド ==================== */
.schedule-grid {
  display: grid;
  gap: 30px;
}

.person-column {
  display: flex;
  flex-direction: column;
}

/* PC時：ヘッダーを非表示 */
.person-header {
  display: none;
}

.day-schedule {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.day-schedule:last-child {
  border-bottom: none;
}

@media (max-width: 767px) {
  .day-schedule:first-child {
    padding-top: 10px;
  }  
}

/* PC時：A先生のみ曜日表示 */
.day-label {
  font-size: 1.7rem;
  font-weight: bold;
  color: #333;
  letter-spacing: 1.2px;
  position: relative;
}

.day-label::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  border-top: 1px solid rgba(0, 0, 0, 0.4);
}

.day-label span {
  padding: 0 20px 0 0;
  top: -13px;
  position: absolute;
  z-index: 1;
}

.person-b .day-label,
.person-c .day-label {
  color: transparent;
  user-select: none;
}

/* PC時：A先生のみ時間帯ラベル表示 */
.time-period-label {
  font-family: Roboto, "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", sans-serif;
  font-weight: bold;
  color: #888;
  letter-spacing: 0.9px;
  position: relative;
  height: 20px;
  padding-top: 10px;
}

.time-period-label:not(.box-am) {
  height: 5px;
  padding-top: 0;
}

.time-period-label:not(.box-am) span {
  position: relative;
  top: -8px;
}

.time-schedule:has(+ .time-period-label:not(.box-am)) {
  /* .time-period-label:not(.box-am) の直前にある .time-schedule */
  margin-bottom: 0;
}

.time-period-label span {
  /*  background-color: #fff; */
  padding: 0 15px;
}

.time-period-label:not(.box-am)+.time-schedule {
  /* 直後の .time-schedule */
  padding-top: 5px;
}

/*
.time-period-label::before {
  content: "";
  position: absolute;
  display: block;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  border-top: 1px dotted #ccc;
} */

.time-period-label:first-of-type {
  margin-top: 0;
}

.person-b .time-period-label,
.person-c .time-period-label {
  color: transparent;
  user-select: none;
}

/* PM・夕方の上に点線 */
.time-period-label+.time-schedule {
  border-top: 1px dotted #ccc;
  flex-direction: row;
}

/* .person-b .time-period-label+.time-schedule,
.person-c .time-period-label+.time-schedule {
  padding-top: 0;
} */

.box-am+.time-schedule {
  border-top: none;
}

.time-schedule {
  display: flex;
  margin-bottom: 5px;
  padding: 0 15px;
}

.time-schedule:last-child {
  margin-bottom: 0;
}

.time-schedule.sp-none .schedule-item,
.time-schedule.sp-block .schedule-item {
  background-color: transparent;
}

.time-schedule.sp-none .schedule-item .schedule-item-title,
.time-schedule.sp-block .schedule-item .schedule-item-title {
  text-align: center;
  font-weight: normal;
  color: #fff;
}

/* PC時：A先生のみ時間表示 */
.time-label {
  color: #888;
  letter-spacing: 0.005em;
  padding: 8px 10px 0 0;
  width: 70px;
  font-family: Roboto, sans-serif;
  text-align: right;
  font-size: 1.5rem;
}

.person-b .time-label,
.person-c .time-label {
  display: none;
}

.schedule-item {
  background-color: #f7f4f0;
  border-radius: 5px;
  padding: 10px 15px;
  position: relative;
  flex: 1;
}

.schedule-item:empty {
  background-color: transparent;
  min-height: 0;
}

.schedule-item:has(.schedule-icons) .schedule-item-title {
  width: calc(100% - 50px);
}

.schedule-item-title {
  font-weight: bold;
  color: #333;
  letter-spacing: 0.005em;
  line-height: 1.5;
  font-size: clamp(1.5rem, 1.4336rem + 0.14vw, 1.6rem);
}

.schedule-item-title .mini {
  font-weight: normal;
  font-size: 1.3rem;
}

.schedule-item-title:has(.main) {
  display: flex;
  flex-wrap: wrap;
  gap: min(1vw, 5px);
  align-items: center;
}

.schedule-item-subtitle {
  font-size: 13px;
  color: #000;
  margin-bottom: 8px;
  letter-spacing: 0.65px;
  line-height: 26px;
  font-weight: 500;
}

.schedule-icons {
  display: flex;
  gap: 5px;
  position: absolute;
  right: 10px;
  top: 10px;
}

.schedule-icons img {
  width: 24px;
  height: 24px;
}

@media(min-width: 768px) {
  .schedule-grid {
    gap: 0;
    grid-template-columns:
      calc((100% + 175px) / 3)
      /* person-a */
      calc((100% - 65px) / 3)
      /* person-b */
      calc((100% - 110px) / 3);
    /* person-c */
  }

  .person-column {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  }

  .person-a .time-period-label span {
    background-color: #fff;
  }

  .person-a .day-label span {
    background-color: #fff;
  }

  .person-c .time-schedule {
    padding-right: 0;
  }

  .person-column {
    width: auto;
    border-right: 1px solid #ccc;
  }

  .person-column.person-c {
    border-right: none;
  }

  .person-a .person-column {
    width: calc(100px + (100% - 100px)/3);
  }

  .paerson-a .time-schedule {
    flex-direction: row;
  }

  .person-a .time-period-label+.time-schedule .schedule-item {
    flex: 1;
    margin-right: 0;
  }

}

/* ==================== 学びボタン ==================== */
.btn-learn {
  background-color: #7baf00;
  border: none;
  border-radius: 99.999px;
  padding: 0 12px 0 10px;
  color: white;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  margin-top: 3px;
  transition: all 0.2s;
  letter-spacing: 0.65px;
  line-height: 25px;
  height: 25px;
  align-items: center;
}

.btn-learn img {
  width: 24px;
  height: auto;
}

.btn-learn:hover {
  background-color: #6a9e00;
  transform: translateY(-1px);
}

/* ==================== 詳細ポップアップ ==================== */
.area-learn {
  position: relative;
  margin-top: 4px;
}

.detail-popup {
  position: absolute;
  bottom: calc(50% + 20px);
  left: 0;
  transform: translateX(-25%);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  width: 280px;
}

.detail-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.detail-content {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 3px 7.5px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  position: relative;
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 3px;
  letter-spacing: 0.325px;
  line-height: 1.5;
}

.detail-section p {
  font-size: 13px;
  color: #333;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: 0.325px;
}

/* 吹き出しの下向き三角形 */
.detail-arrow {
  position: absolute;
  bottom: -8px;
  left: 105px;
  transform: translateX(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-left: 8.5px solid transparent;
  border-right: 8.5px solid transparent;
  border-bottom: 10px solid white;
}

/* ==================== 閉じるボタン ==================== */
.btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 10px;
  height: 10px;
  background: none;
  border: none;
  color: #fe0101;
  font-size: 2.0rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-weight: bold;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  transform: scale(1.2);
}

/* ==================== 情報吹き出し（赤×ボタン） ==================== */
.info-balloon {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  min-width: 250px;
  max-width: 350px;
}

.info-balloon.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.info-balloon {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 3px 7.5px rgba(0, 0, 0, 0.1);
  position: relative;
}

.info-balloon p {
  font-size: 12px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 10px;
  font-weight: 500;
}

.info-balloon p:last-child {
  margin-bottom: 0;
}

.balloon-link {
  color: #007AFF;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

.btn-close-popup {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: #fe0101;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  font-weight: bold;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.btn-close-popup:hover {
  transform: scale(1.2);
}

/* ==================== スマホ時（767px以下）：縦並びレイアウト ==================== */
@media (max-width: 767px) {

  .schedule-legend.schedule-grid {
    display: none !important;
  }

  /* スマホ時：1列レイアウト */
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .person-column {
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  }
  .person-column .pin-spacer {
    z-index: 2 !important;
  }


  /* スマホ時：各先生のヘッダーを表示 */
  .person-header {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    padding-top: 60px;
    padding-bottom: 15px;
    text-align: center;
    letter-spacing: 0.9px;

    background-color: #fff;
    position: relative;
    z-index: 1;
  }

  .person-header .sttl-sp-schedule {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .person-header .icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    border-radius: 50%;
  }

  .person-header .icon.icon-a {
    background: url(../img/schedule/icon-a.svg) no-repeat center center / contain;
  }

  .person-header .icon.icon-b {
    background: url(../img/schedule/icon-b.svg) no-repeat center center / contain;
  }

  .person-header .icon.icon-c {
    background: url(../img/schedule/icon-c.svg) no-repeat center center / contain;
  }

  /* スマホ時：全員の曜日を表示 */
  .person-b .day-label,
  .person-c .day-label {
    display: block;
    color: #333;
  }

  .day-label span {
    background-color: #fff;
    top: -16px;
  }

  /* スマホ時：全員の時間帯ラベルを表示 */
  .person-b .time-period-label,
  .person-c .time-period-label {
    display: block;
    color: #888;
  }

  .time-period-label {
    padding: 15px 10px 0 0;
    font-size: 1.4rem;
  }

  .time-period-label span {
    padding: 0 10px 0 0;
    background-color: #fff;
    position: relative;
  }

  .time-period-label.box-am span {
    top: -5px;

  }

  /* スマホ時：全員の時間を表示 */
  .person-b .time-label,
  .person-c .time-label {
    display: block;
  }

  .time-label {
    padding: 10px 7px 0 0;
    width: 50px;
    font-size: 1.4rem;
  }

  .time-schedule {
    padding: 0;
  }

  /* 空欄非表示 */
  .time-schedule.sp-none {
    display: none;
  }

  .time-schedule.sp-block .schedule-item .schedule-item-title {
    color: #ccc;
  }

  /* 文字サイズ調整 */
  .schedule-item-title {
    font-size: 1.5rem;
  }

}

/* Schedule 和田診療所・福井大学 CSS  */
/* ==================== スケジュール表 ==================== */
.schedule-table {
    display: flex;

    position: relative;
    overflow-x: auto;
    overflow-y: clip;
    border-top: 1px solid rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(0,0,0,0.4);
}
.schedule-table .day-of-week {
    table-layout: fixed;
    border-collapse: collapse;
    flex: 1;
    /* width: 100%; */
}
#takahama-doctor .schedule-table .day-of-week {
    table-layout: auto;
}

.schedule-table .day-of-week td {
    padding: 10px;
    position: relative;
}
.schedule-table .day-of-week .stretch {
    display: block;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    position: absolute;
    inset: 10px;
    z-index: 0;
}

.schedule-table .day-of-week .stay,
.schedule-table .day-of-week .visit {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    height: 100%;
    padding: 13px 10px;
    border-radius: 5px;
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.schedule-table .day-of-week .stay {
    background-color: #F7F4F0;
}
.schedule-table .day-of-week .visit {
    background-color: #F8F3DA;
}
.schedule-table .day-of-week .week {
    border-bottom: 1px solid #ccc;
}
.schedule-table .day-of-week .am-bottom {
    border-bottom:1px solid #ccc;
}
.schedule-table .day-of-week .am-bottom td {
    padding-top: 0;
}
.schedule-table .day-of-week .pm-top td {
    padding-bottom: 0;
}
.schedule-table .day-of-week .pm {
    border-bottom:1px dotted #ccc;
}
.schedule-table .day-of-week .week th {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 38px;
}
.schedule-table .day-of-week .week th:not(.sticky) {
    width: 250px;
}
.schedule-table .day-of-week .sticky {
    width: 92px;
    min-width: 92px;
    background-color: #fff;
    color: #888888;
    font-size: 1.6rem;
    vertical-align: top;
    position: sticky;
    left: 0;
    top: 0;
    z-index: 1;
    font-family: Roboto, "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", sans-serif;
    font-weight: bold;
}
.schedule-table .day-of-week tbody td:not(:last-child) {
    border-right: 1px dotted #ccc;
}

#takahama-doctor .schedule-table .day-of-week .week .wed {
    width: 200px;
}

@media (min-width: 768px) {
    .page-schedule .sec-tab .pagenav-tab .nav .snav-cont.f-sz24 {
        font-size: min(2.5vw, 2.4rem);
    }
    .page-schedule .sec-tab .pagenav-tab .nav .snav-cont.f-sz21 {
        font-size: min(1.9vw, 2.1rem);
    }
}

@media (max-width: 480px) {
  .intro-ttl .f-sz24 {
    font-size: 4.1vw;
  }
}
