@charset "utf-8";
body {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 500;
  font-style: normal;
  background-color: #fff5f0;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左から順に: logo -> nav(白ボックス) */
  position: relative;
  gap: 20px;
}
.header .logo {
  width: 15%;
  margin-left: 30px;
}

/* 白ボックス。右端に寄せ、中身が増えると左方向にのみ伸びる */
.header .nav {
  display: flex;
  align-items: center;
  gap: 20px;                  /* リンクやXアイコンとの間隔 */
  padding: 16px 24px 16px 40px; /* 右端にXが来るので左右バランス良く */
  background-color: #fff;
  border-radius: 30px 0 0 30px;

  margin-left: auto;          /* 右側へ寄せる */
  width: auto;                /* 中身に応じて横幅が決まる */
  white-space: nowrap;        /* 折返し防止＝左方向へ伸びる */
  justify-content: flex-end;  /* 中身は右寄せ（Xが最右） */
}

.header .nav a {
  color: #0063b4;
  font-size: 1.3em;
}

/* Xアイコン（白ボックスの最右） */
.header .nav .sns {
  display: flex;
  align-items: center;
  margin-left: 8px;           /* リンク群とXの最小間隔 */
}
.header .nav .sns a {
  display: inline-flex;
  line-height: 1;
}
.header .nav .sns img {
  height: 24px;               /* お好みで */
  width: auto;
}

/* ===== Main ===== */
.main { padding: 0; }
.ribbon {
  background-position: 100% 50%;
  background-size: contain;
  background-repeat: no-repeat;
}
.intro { text-align: center; margin: 80px 0px 40px 0; }
.intro p {
  font-size: 36px;
  line-height: 1.5;
  color: #0063b4;
  font-weight: 700;
}
.section-title {
  width: 50%;
  text-align: right;
  font-size: 40px;
  margin-bottom: 20px;
  color: #0063b4;
  border-bottom: 6px solid #0063b4;
  padding-bottom: 20px;
  position: absolute;
  top: 7%;
  left: 0;
  z-index: 1;
}
.news { width: 800px; margin: 0 auto; }
.news-box {
  border: 3px solid #0063b4;
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  margin: 0 auto;
}
.news-box h3 { font-size: 28px; color: #0063b4; margin-bottom: 30px; }
.news-item { font-size: 20px; margin: 15px 0; }
.news-item a { color: #231815; }
.news-item .date { color: #0063b4; margin-right: 30px; }
.news-item .new { color: #ff3939; margin-left: 30px; }
.charter { text-align: center; margin: 30px 0; }
.charter img { width: 800px; }
.event-info { position: relative; }
.event-card {
  background-color: #fff;
  border-radius: 100px;
  padding: 120px 0;
  width: 70%;
  margin: 0 auto;
}
.event-card .event-item { width: 70%; margin: 0 auto; max-width: 800px; }
.event-card img {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 15px;
}
.event-card h3 { color: #0063b4; font-size: 28px; padding: 20px; }
.event-card p {
  padding: 10px 20px;
  color: #4e3824;
  font-size: 20px;
  line-height: 1.5;
}
.event-card p span {
  background-color: #0063b4;
  color: #fff;
  padding: 2px 10px;
  margin-right: 10px;
  border-radius: 10px;
}
.features { position: relative; }
.feature-card { margin-top: 100px; }
.feature-card img { width: 100%; }
.feature-card-content {
  background-color: #0063b4;
  color: #fff;
  padding: 20px;
  width: 60%;
  border-radius: 20px 0 20px 20px;
  margin-top: 20px;
}
.feature-card-content h4 { margin-top: 0; text-align: left; font-size: 16px; font-weight: 400; }
.feature-title { text-align: left; font-size: 18px; line-height: 1.5; margin-top: 15px; }
.feature-name { text-align: right; font-size: 16px; font-weight: 400; margin-top: 20px; }

/* ===== Swiper ===== */
.slider-container { position: relative; width: 100%; margin: 40px 0; }
.swiper { width: 100%; height: 100%; }
.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
}
.swiper-slide img { display: block; width: 100%; height: auto; object-fit: cover; }
.swiper-pagination { position: static; margin-top: 15px; }
.swiper-pagination-fraction,
.swiper-pagination-custom,
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -10%; left: 0; width: 100%;
}
.swiper-pagination-bullet { background-color: #0063b4; opacity: 1; }
.swiper-pagination-bullet-active { background-color: #0063b4; }
.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 0 15px;
}
.swiper-button-next::after, .swiper-button-prev::after { display: none; }
.swiper-button-next, .swiper-button-prev {
  background-size: contain !important;
  background-repeat: no-repeat center center;
  width: 45px !important;
  height: 45px !important;
}
#hero-slider-container .swiper-button-prev { left: calc(50% - 22px - 20vw); }
#hero-slider-container .swiper-button-next { right: calc(50% - 22px - 20vw); }
#features-slider-container .swiper-button-prev { left: calc(50% - 22px - 20vw); }
#features-slider-container .swiper-button-next { right: calc(50% - 22px - 20vw); }
.sp { display: none; }

/* ===== Tablet ===== */
@media (max-width: 960px) {
  .main { padding: 15px; }
  #hero-slider-container .swiper-button-prev { left: 10px; }
  #hero-slider-container .swiper-button-next { right: 10px; }
  #features-slider-container .swiper-button-prev { left: 25%; }
  #features-slider-container .swiper-button-next { right: 25%; }
  .news { width: 70%; }
  .charter img { width: 70%; }

  /* ヘッダー微調整 */
  .header { gap: 14px; }
  .header .nav { padding: 12px 20px 12px 28px; gap: 14px; }
  .header .nav .sns img { height: 22px; }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  /* モバイルでも横並びを維持し、Xは白ボックス最右に */
  .header { flex-wrap: nowrap; gap: 10px; }
  .header .logo { width: 40%; margin-left: 10px; }

  .header .nav {
    padding: 10px 16px 10px 20px;
    gap: 12px;
  }
  .header .nav a { font-size: 16px; }

  .header .nav .sns { margin-left: 8px; }
  .header .nav .sns img { height: 20px; }

  .swiper-pagination-fraction,
  .swiper-pagination-custom,
  .swiper-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-bullets.swiper-pagination-horizontal { bottom: -50%; }
  .swiper-pagination-bullet { width: 13px !important; height: 13px !important; }
  #hero-slider-container .swiper-button-next { right: 95px; }
  #hero-slider-container .swiper-button-prev { left: 95px; }
  .swiper-button-next, .swiper-button-prev {
    width: 25px !important;
    height: 25px !important;
    top: 55% !important;
  }
  .ribbon { background-size: contain; background-repeat: repeat-y; }
  .main { padding: 10px; }
  .intro p { font-size: 22px; }
  .news { width: 90%; }
  .news-box h3 { font-size: 20px; }
  .news-item { font-size: 14px; }
  .charter img { width: 90%; }
  .event-card { width: 90%; border-radius: 50px; padding: 100px 0; margin: 0 auto; }
  .event-card .event-item { width: 95%; margin: 0 auto; max-width: 800px; }
  .section-title { font-size: 20px; width: 70%; top: 7%; }
  .event-card h3 { font-size: 20px; }
  .event-card p { font-size: 16px; }
  .news-box, .charter-link { max-width: 100%; }
  .feature-card-content { padding: 20px; width: 100%; min-height: 230px; }
  .feature-card-content h4 { font-size: 12px; }
  .feature-title { font-size: 14px; }
  .feature-name { text-align: right; font-size: 12px; }
  .sp { display: block; }
}
