body,
html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, "Yu Gothic", YuGothic, Meiryo, sans-serif;
  color: #20242a;
  background: #f4f7f9;
  overflow-x: hidden;
}

body {
  line-height: 1.7;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

#slideArea {
  position: relative;
  width: min(100%, 980px);
  height: clamp(220px, 38vw, 380px);
  margin: 0 auto;
  overflow: hidden;
  background: #d9e2e7;
  box-shadow: 0 14px 38px rgba(20, 35, 48, 0.14);
}

#slideArea::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(13, 25, 35, 0.22));
  z-index: 1;
}

#slideArea img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
  cursor: pointer;
}

#slideArea img.active {
  display: block;
  left: 0;
}

.slideButton {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(20, 35, 48, 0.7);
  cursor: pointer;
  font-size: 18px;
  line-height: 44px;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slideButton:hover {
  background: rgba(20, 35, 48, 0.92);
  transform: translateY(-50%) scale(1.04);
}

#prevButton {
  left: 16px;
}

#nextButton {
  right: 16px;
}

#tabs {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px max(16px, calc((100vw - 980px) / 2));
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #d9e2e7;
  box-shadow: 0 10px 26px rgba(20, 35, 48, 0.08);
  -webkit-overflow-scrolling: touch;
}

#tabs li {
  flex: 0 0 auto;
  min-width: 112px;
  list-style: none;
  padding: 10px 16px;
  border: 1px solid #c7d4dc;
  border-radius: 999px;
  color: #263640;
  background: #fff;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

#tabs li.active {
  color: #fff;
  background: #0d6b8d;
  border-color: #0d6b8d;
}

#tabContents {
  padding: 34px 20px 0;
  background: #f4f7f9;
}

#tabContents > div {
  display: none;
  min-height: 100%;
  text-align: center;
}

#tabContents > div.active {
  display: block;
}

.tab-pane {
  width: min(100%, 980px);
  margin: 0 auto;
}

.item {
  width: min(100%, 760px);
  margin: 0 auto 28px;
  padding: 28px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce6eb;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(20, 35, 48, 0.08);
  text-align: center;
}

.item--separator {
  width: min(100%, 760px);
  margin: 18px auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.item--separator .media {
  margin: 0 auto;
}

.item--separator img {
  max-width: 220px;
  opacity: 0.75;
}

.title {
  margin: 0 0 18px;
  color: #17252f;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: 0;
}

.media {
  margin: 0 auto 20px;
}

.media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
}

.media img[src$="mi68-2026-packages.jpg"] {
  max-height: 640px;
}

.media--video {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #111820;
}

.media--video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.description {
  margin: 18px auto 0;
  max-width: 620px;
  color: #33434d;
  font-size: 18px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.description a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 10px 6px 0;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff;
  background: #d84f2f;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(216, 79, 47, 0.24);
  transition: background 0.2s ease, transform 0.2s ease;
}

.description a:hover {
  background: #b83d23;
  transform: translateY(-1px);
}

.footer-text {
  margin: 0;
  padding: 25px;
  color: #52636e;
  text-align: center;
  font-size: 16px;
}

.hr_t {
  width: min(100%, 760px);
  height: 2px;
  margin: 2px auto 0;
  padding: 0;
  background-color: #40c0f2;
}

.spacer-s {
  display: flex;
  width: 100%;
  height: 30px;
}

#toTop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1001;
  display: none;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86) url('img/common_top.png') no-repeat center center / 44px;
  box-shadow: 0 8px 22px rgba(20, 35, 48, 0.18);
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  #slideArea {
    width: 100%;
    height: clamp(180px, 58vw, 280px);
  }

  #tabs {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  #tabs li {
    min-width: 88px;
    padding: 10px 12px;
    font-size: 14px;
  }

  #tabContents {
    padding: 22px 12px 0;
  }

  .item {
    margin-bottom: 20px;
    padding: 20px 14px;
  }

  .title {
    margin-bottom: 14px;
  }

  .description {
    font-size: 16px;
    line-height: 1.8;
  }

  .description a {
    width: min(100%, 320px);
    margin: 10px auto 0;
  }

  #prevButton,
  #nextButton {
    display: none;
  }

  #toTop {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    background-size: 40px;
  }
}
