@import url('https://fonts.googleapis.com/css2?family=Kaisei+Decol:wght@400;500;700&family=Kaisei+Opti:wght@400;500;700&display=swap');

.pc-only {
  display: none;
}

.mobile-only {
  display: block;
}

/*ヘッダー部分開始*/
.header {
  margin: 0;
  position: fixed;
  width: 100%;
  height: 52px;
  text-align: right;
  z-index: 1000;
}

.menu-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fdfbef;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  z-index: 999;
}

.menu-btn:checked~.menu-background {
  opacity: 1;
  pointer-events: auto;
}

/* ナビゲーションメニュー */
.menu {
  list-style: none;
  position: absolute;
  width: 100%;
  top: 52px;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #fdfbef;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 0.3s ease-in-out;
  z-index: 1001;
}

/* メニュー表示時 */
.menu-btn:checked~.menu {
  transform: scale(1, 1);
}

/* ハンバーガーボタン */
.menu-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 20px;
  right: 10px;
  width: 70px;
  height: 70px;
  background-color: #fdfbef;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  border: 2px solid #d4bc89;
  transition: all 0.3s ease;
}

.menu-icon.no-border {
  border: none;
}

/* ハンバーガーボタンのアイコン */
.navicon {
  background: #000;
  display: block;
  height: 3px;
  width: 26px;
  position: relative;
  transition: 0.3s ease-in-out;
}

/* 上下のバー */
.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 3px;
  width: 26px;
  position: absolute;
  background: #000;
  transition: 0.3s ease-in-out;
}

.navicon:before {
  top: 8px;
}

.navicon:after {
  bottom: 8px;
}

/* メニューを開いたときのハンバーガーアイコンのアニメーション */
.menu-btn:checked~.menu-icon .navicon {
  background: transparent;
}

.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 a {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 50px;
  text-transform: capitalize;
  color: #000;
  opacity: 0;
  transition: opacity 0.5s;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
}

.menu li {
  border-top: 1px solid rgb(75, 75, 75);
  padding: 15px 0;
  margin: 0 54px;
  opacity: 0;
  transition: opacity 0.5s;
}

/* メニュー表示時にテキストをフェードイン */
.menu-btn:checked~.menu a,
.menu-btn:checked~.menu li {
  opacity: 1;
}

/* メニューの表示非表示切り替え */
.menu-btn {
  display: none;
}

/*ヘッダー部分終了*/

/* フッター部分開始 */
.footer {
  padding: 2rem;
  font-size: 15px;
  color: #4b5564;
  background: #fff;
  max-width: 100%;
  margin: 0 auto;
}

.footer ul {
  padding: 0;
  list-style: none;
}

.footer a {
  color: #4b5564;
  text-decoration: none;
}

.footer a:hover {
  color: #000;
}

.footer hr {
  height: 1px;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  text-align: center;
}

.footer__navi-heading {
  font-weight: 600;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 3rem;
  perspective: 1000px;
}

.footer__logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  transition: transform 1s ease;
}

.footer__logo:hover img {
  transform: rotateY(360deg);
}

.footer__navi li {
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .md-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23rem;
  }

  .md-justify-between {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .md-flex {
    display: block;
    text-align: center;
  }

  .footer__logo {
    margin-bottom: 1.5rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer {
    padding: 1rem;
  }

  .footer__navi-heading {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer__navi li {
    margin-bottom: 5px;
    font-size: 12px;
  }
}

/* フッター部分終了 */

/* スケジュールコンテナ */
.schedule-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
  position: relative;
  padding-top: 80px;
}

.schedule-container h1 {
  color: #333;
  font-size: 50px;
  margin: -40px 0 30px;
  text-align: center;
  font-family: "Kaisei Decol", serif;
  font-weight: 700;
  font-style: normal;
}

@keyframes drawLine {
  from {
    height: 0;
  }

  to {
    height: calc(100% - 140px);
  }
}

.schedule-container::before {
  content: '';
  position: absolute;
  top: 120px;
  left: 20px;
  width: 4px;
  background-color: #4a90e2;
  border-radius: 2px;
  height: 0;
  animation: drawLine 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedule-wrapper {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  margin: 2vh 2vh 2vh 50px;
  gap: 15px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  position: relative;
}

.schedule-wrapper:nth-child(3) {
  animation-delay: 0.3s;
}

.schedule-wrapper:nth-child(4) {
  animation-delay: 0.6s;
}

.schedule-wrapper:nth-child(5) {
  animation-delay: 0.9s;
}

.schedule-wrapper::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #4a90e2;
  left: -34px;
  top: 40px;
  border: 4px solid white;
  box-shadow: 0 0 0 2px #4a90e2;
  z-index: 1;
}

@media (max-width: 760px) {
  .schedule-wrapper::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #4a90e2;
    left: -60px;
    top: 40px;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #4a90e2;
    z-index: 1;
  }

}

.container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 20px;
  position: relative;
}

/* 左カラム - 日付と時間 (PC表示用) */
.left-column {
  position: absolute;
  left: -40px;
  top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 35px;
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  width: 100%;
}

.content-row {
  display: flex;
  width: 100%;
  gap: 15px;
  align-items: flex-start;
  flex-direction: column;
}

.image-container {
  flex-shrink: 0;
  width: auto;
  max-width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.image-container img {
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.text-button-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: auto;
  align-items: center;
  width: 100%;
}

.spacer {
  flex-grow: 0.3;
  min-height: 10px;
}

/* 日時のスタイル調整 */
.date-time {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 10px 0;
}

/* モバイル表示用の日時スタイル調整 */
.mobile-only .date-time {
  text-align: center;
}

.date {
  font-size: 16px;
  color: #333;
  padding: 2px 0;
  margin: 0;
  font-weight: bold;
}

.time {
  font-weight: bold;
  font-size: 16px;
  color: #4a90e2;
  padding: 2px 0;
  margin: 0;
}

.description {
  font-size: 14px;
  color: #666;
  margin: 0;
  text-align: center;
}

.btn {
  padding: 8px 16px;
  font-size: 14px;
  color: white;
  background: #4a90e2;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
  align-self: center;
  margin-top: 10px;
}

.btn:hover {
  background-color: #3476c5;
}

.image-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (max-width: 760px) {

  /* ヘッダー調整 */
  .menu-icon {
    width: 50px;
    height: 50px;
    top: 10px;
    right: 10px;
  }

  .menu a {
    font-size: 24px;
  }

  .menu li {
    padding: 10px 0;
    margin: 0 20px;
  }

  /* フッター調整 */
  .md-flex {
    display: block;
    text-align: center;
  }

  .footer__logo {
    margin-bottom: 1.5rem;
  }

  .footer {
    padding: 1rem;
  }

  .footer__navi-heading {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer__navi li {
    margin-bottom: 5px;
    font-size: 12px;
  }

  /* スケジュール見出し調整 */
  .schedule-container h1 {
    font-size: 36px;
    margin: 15px 0 20px;
  }

  /* 日付と時間の表示/非表示切り替え */
  .pc-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .image-container {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }

  .image-container img {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .content-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .image-link {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

/* タブレット以上の幅でのレイアウト調整 */
@media (min-width: 761px) {
  .schedule-container::before {
    left: -30px;
  }

  .schedule-wrapper {
    margin-left: 150px;
  }

  .schedule-wrapper::before {
    left: -210px;
  }

  .left-column {
    left: -160px;
    width: 145px;
  }

  .content-row {
    flex-direction: row;
  }

  .image-container {
    width: 280px;
  }

  .text-button-container {
    min-height: 160px;
    align-items: flex-start;
  }

  .description {
    text-align: left;
  }

  .spacer {
    min-height: 30px;
  }

  .btn {
    align-self: flex-start;
  }

  .date,
  .time {
    font-size: 20px;
    padding: 4px 0;
  }

  /* 日付と時間の表示/非表示切り替え */
  .pc-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }

  /* PC表示用の日時スタイル調整 */
  .pc-only .date-time {
    text-align: right;
  }
}

.image-container.active {
  opacity: 1;
  transform: translateY(0);
}