/* ==========================================================================
   Base
   ========================================================================== */
:root {
  --color-navy: #15396b;
  --color-blue: #2E7FD6;
  --color-blue-steel: #3F6EA8;
  --color-slate: #3F5872;
  --color-red: #E0567A;
  --color-white: #ffffff;
  --color-gray-100: #f5f6f8;
  --color-gray-200: #e6e8eb;
  --color-gray-300: #d3d6db;
  --color-gray-400: #b9bdc4;
  --color-gray-500: #8b909a;
  --color-text: #1b2430;
  --color-text-sub: #7B8DA0;
  --color-rank-header: #6898c5;
  --color-rank-name-bg: #F3F7FB;
  --color-rank-pref: #5B6B7C;
  --container-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  min-width: 1200px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* 500px以下でのみ改行させる用のbr */
.sp-only-break {
  display: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   Placeholder image block (画像は後入れ用のグレー図形)
   ========================================================================== */
.ph-image {
  position: relative;
  overflow: hidden;
  background-color: var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.05) 0,
    rgba(0, 0, 0, 0.05) 10px,
    transparent 10px,
    transparent 22px
  );
}

.ph-image__label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-gray-500);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
}

.header__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-image {
  height: 45px;
  width: auto;
  padding-top: 2px;
}

.header__nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--color-blue);
}

.header__toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-navy);
}

/* ==========================================================================
   FV (Hero slider)
   ========================================================================== */
.fv {
  position: relative;
}

.fv__slider {
  display: flex;
  width: 100%;
  height: 560px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.fv__slider::-webkit-scrollbar {
  display: none;
}

.fv__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  overflow: hidden;
}

.fv__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.fv__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-gray-400);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}

.fv__dots button.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-white);
}

/* ==========================================================================
   Promo banner (早割引券)
   ========================================================================== */
.promo {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 30px 40px;
}

.promo__banner {
  display: block;
}

.promo__image {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ==========================================================================
   イベント&ニュース
   ========================================================================== */
.events-news {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 76px 40px 110px;
}

.section-title {
  font-family: "Zen Maru Gothic", sans-serif;
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 48px;
}

.events__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.events__item {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 30, 50, 0.04);
  overflow: hidden;
}

.events__item.is-hidden {
  display: none;
}

.events__more {
  text-align: center;
  margin-top: 32px;
}

.events__more-btn {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.events__more-btn:hover {
  background: var(--color-gray-100);
}

.events__more.is-hidden {
  display: none;
}

.events__header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 30px;
}

.events__toggle {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.events__toggle svg {
  transition: transform 0.2s;
  transform: rotate(180deg);
}

.events__item.is-open .events__toggle svg {
  transform: rotate(0deg);
}

.events__panel {
  display: none;
  margin: 0px 30px 0px;
  padding: 25px 0 20px 0;
  border-top: 1px solid var(--color-gray-200);
}

.events__item.is-open .events__panel {
  display: block;
}

.events__panel-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.events__panel-text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.events__panel-meta {
  font-size: 13px;
  line-height: 1.9;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.events__panel-actions {
  display: flex;
  justify-content: flex-end;
}

.events__panel-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s;
}

.events__panel-btn:hover {
  opacity: 0.85;
}

.events__date {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
  min-width: 64px;
}

.events__date-year {
  flex: 0 0 100%;
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 2px;
}

.events__date-day {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-navy);
  line-height: 1.3;
}

.events__date-dow {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-sub);
}

.events__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.events__desc {
  font-size: 13px;
  color: var(--color-text-sub);
  letter-spacing: 0.01em;
}

.news__badge {
  flex: 0 0 auto;
  width: 44px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-red);
  border-radius: 4px;
  padding: 2px 0;
}

.news__badge--placeholder {
  visibility: hidden;
}

/* --- icons --- */
.icon {
  flex: 0 0 auto;
  display: inline-flex;
}

/* ==========================================================================
   チケット情報
   ========================================================================== */
.ticket {
  position: relative;
  padding: 100px 0 110px;
  background-image: url("../img/bg-ticket.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.ticket__head {
  text-align: center;
  margin-bottom: 40px;
}

.ticket__eyebrow {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  margin-bottom: 10px;
}

.ticket__title {
  margin-bottom: 14px;
}

.ticket__desc {
  font-size: 14px;
  color: var(--color-text-sub);
}

.ticket__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-group {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, 0.08);
  overflow: hidden;
  padding: 10px 40px;
}

.ticket-group__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 10px;
}

.ticket-group__icon-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gray-200);
  background: var(--color-white);
  overflow: hidden;
}

.ticket-group__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-group__title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.ticket-group__note {
  font-size: 13px;
  color: var(--color-text-sub);
}

.ticket-help {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #eaf2fc;
  color: var(--color-blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.ticket-help:hover {
  background: #d9e9fb;
}

.ticket-group__toggle {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.ticket-group__toggle svg {
  transition: transform 0.2s;
  transform: rotate(180deg);
}

.ticket-group.is-open .ticket-group__toggle svg {
  transform: rotate(0deg);
}

.ticket-group__body {
  display: none;
}

.ticket-group.is-open .ticket-group__body {
  display: block;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
}

.ticket-table thead tr {
  background: var(--color-rank-header);
}

.ticket-table th {
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-white);
  padding: 5px 28px;
}

.ticket-table td {
  font-size: 13px;
  color: var(--color-slate);
  padding: 14px 28px;
  border-bottom: 1px solid var(--color-gray-200);
}

.ticket-table tbody tr:last-child td {
  border-bottom: none;
}

.ticket-table .col-type { width: 160px; }
.ticket-table .col-period { width: 320px; }
.ticket-table .col-action { width: 120px; text-align: right; }

.ticket-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.btn-detail {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-navy);
  background: var(--color-white);
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-detail:hover {
  background: var(--color-gray-100);
}

/* ==========================================================================
   スキー場比較
   ========================================================================== */
.compare {
  position: relative;
  padding: 200px 0 100px;
  background-color: #F3F8FD;
  background-image: url("../img/bg-merits.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100%;
}

.compare__head {
  text-align: center;
  margin-bottom: 48px;
}

.compare__lead {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 14px;
}

.compare__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.compare-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, 0.08);
  padding: 28px 30px 32px;
}

.compare-card__eyebrow {
  display: block;
  font-family: "Dancing Script", cursive;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #9fc3e8;
  margin-bottom: 5px;
}

.compare-card__name {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 5px;
}

.compare-card__area {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 14px;
}

.compare-card__desc {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.6;
  margin-bottom: 18px;
  white-space: nowrap;
}

.compare-card__media {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.compare-card__photo {
  flex: 1 1 55%;
  width: 55%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.compare-card__side {
  flex: 1 1 45%;
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px;
}

.compare-card__side-text {
  font-size: 11px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

.compare-card__radar {
  display: block;
  width: 72%;
  margin: 0 auto;
  overflow: visible;
}

.compare-card__radar-label {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 8px;
  font-weight: 700;
  fill: var(--color-gray-500);
}

.compare-card__sub-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.compare-card__appeal-count {
  color: var(--color-blue);
  font-size: 1.1em;
  margin: 0 1px;
}

.compare-card__appeal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.compare-card__appeal li {
  display: flex;
  align-items: flex-start;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-navy);
}

.compare-card__appeal-text {
  flex: 1 1 auto;
  min-width: 0;
}

.compare-card__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #eaf2fc;
  color: var(--color-blue);
  font-size: 11px;
  font-weight: 700;
}

.compare-card__highlight {
  color: var(--color-blue);
  font-size: 1.25em;
  background-color: transparent;
  background-image: linear-gradient(to top, #ffe066 14%, transparent 14%);
  padding: 0 2px;
}

.compare-card__highlight--plain {
  background-image: none;
}

.compare-card__highlight-mark {
  transform: rotate(50deg);
  margin-left: 2px;
  vertical-align: text-top;
}

.compare-card__highlight-big {
  font-size: 1.2em;
}

.compare-card__specs {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-gray-200);
}

.compare-card__specs-left {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-card__stats {
  flex: 0 0 auto;
  display: flex;
  gap: 13px;
}

.compare-card__stats > div {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.compare-card__stats dt {
  font-size: 11px;
  color: var(--color-text-sub);
}

.compare-card__stats dd {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
}

.compare-card__tickets {
  flex: 1 1 auto;
  min-width: 0;
}

.compare-card__tickets-label {
  display: block;
  font-size: 11px;
  color: var(--color-text-sub);
  margin-bottom: 6px;
}

.compare-card__tickets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compare-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eaf2fc;
  border: 1px solid #cfe3fa;
  color: var(--color-blue-steel);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.compare-card__meta {
  font-size: 12px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
}

.compare-card__meta span {
  display: inline-block;
  width: 52px;
  vertical-align: top;
  font-weight: 700;
  color: var(--color-navy);
}

.compare-card__meta a {
  color: var(--color-blue);
  text-decoration: underline;
  word-break: break-all;
}

/* ==========================================================================
   人気スキー場を一覧比較（表）
   ========================================================================== */
.rank-table {
  padding: 90px 0 110px;
  background: var(--color-white);
}

.rank-table__head {
  text-align: center;
  margin: 0 auto 44px;
}

.rank-table__head .section-title {
  white-space: nowrap;
}

.rank-table__eyebrow {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 10px;
}

.rank-table__lead {
  max-width: 640px;
  font-size: 14px;
  color: var(--color-text-sub);
  margin: 14px auto 0;
}

.rank-table__wrap {
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 10px 30px rgba(20, 30, 50, 0.06);
}

.rank-table__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

.rank-table__table thead th {
  background: var(--color-rank-header);
  color: var(--color-white);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  padding: 18px 20px;
}

.rank-table__table thead th:nth-child(1) {
  text-align: left;
}

.rank-table__table thead th:nth-child(9) {
  text-align: left;
}

.rank-table__table tbody td {
  padding: 18px 20px;
  font-size: 14px;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gray-200);
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.rank-table__table tbody tr:last-child td {
  border-bottom: none;
}

.rank-table__table tbody tr {
  background: var(--color-white);
}

.rank-table__table tbody td.rank-table__name {
  background: var(--color-rank-name-bg);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: var(--color-navy);
  text-align: left;
}

.rank-table__table tbody td:nth-child(9) {
  text-align: left;
  padding-left: 40px;
}

.rank-table__table tbody td:nth-child(2) {
  color: var(--color-rank-pref);
}

.rank-table__num {
  font-weight: 700;
  color: var(--color-navy);
}

.dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-300);
}

.dot.is-filled {
  background: var(--color-navy);
}

.rank-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-navy);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.rank-tag--pink svg {
  color: #e0567a;
}

.rank-tag--blue svg {
  color: #2e7fd6;
}

.rank-tag--green svg {
  color: #2f9e44;
}

.rank-tag--yellow svg {
  color: #f0b429;
}

.rank-tag--orange svg {
  color: #f2994a;
}

/* ==========================================================================
   マイナンバーカード普及促進 協賛キャンペーン
   ========================================================================== */
.mynumber {
  padding: 90px 0 110px;
  background: var(--color-white);
}

.mynumber__card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #1c2f5e 0%, #2c4d8f 55%, #3f6bb0 100%);
  padding: 44px 56px 48px;
}

.mynumber__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: "Zen Maru Gothic", sans-serif;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-white);
  margin-bottom: 32px;
}

.mynumber__badge-dash {
  flex: 0 0 auto;
}

.mynumber__body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.mynumber__text {
  flex: 1 1 auto;
  max-width: 620px;
}

.mynumber__heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-white);
  margin-bottom: 20px;
}

.mynumber__heading-icon {
  flex: 0 0 auto;
  margin-top: 6px;
}

.mynumber__heading-indent {
  display: inline-block;
}

.mynumber__desc {
  font-size: 13px;
  line-height: 1.9;
  color: #cdd9ef;
  margin-bottom: 28px;
}

.mynumber__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
}

.mynumber__visual {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  height: 220px;
}

.mynumber__phone {
  width: 130px;
  height: 220px;
  margin: 0 auto;
  border-radius: 22px;
  background: #16264d;
  border: 6px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.mynumber__note {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.mynumber__note p {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--color-navy);
}

/* ==========================================================================
   Photo Gallery
   ========================================================================== */
.gallery {
  padding: 100px 0 110px;
}

.gallery__head {
  text-align: center;
  margin-bottom: 40px;
}

.gallery__eyebrow {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: 10px;
}

.gallery__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: var(--color-text-sub);
}

.gallery__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.gallery__filter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--color-gray-500);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.gallery__filter-icon {
  flex: 0 0 auto;
}

.gallery__filter-label {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.gallery__filter-sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.gallery__filter.is-active {
  background: var(--color-navy);
  color: var(--color-white);
}

.gallery__filter:not(.is-active):hover {
  color: var(--color-navy);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.gallery__item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(20, 30, 50, 0.08);
}

.gallery__item.is-hidden {
  display: none;
}

.gallery__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery__more {
  text-align: center;
}

.gallery__more-btn {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid var(--color-gray-300);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery__more-btn:hover {
  background: var(--color-gray-100);
}

.gallery__more.is-hidden {
  display: none;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 56px 0 28px;
}

.footer__top {
  padding-bottom: 72px;
}

.footer__logo {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}

.footer__logo-image {
  height: 40px;
  width: auto;
}

.footer__tagline {
  font-size: 14px;
  font-weight: 300;
  color: #b8c6e0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__copyright {
  font-size: 12px;
  color: #b8c6e0;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 12px;
  color: #b8c6e0;
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   レスポンシブ（768px以下）
   ========================================================================== */
@media (max-width: 768px) {
  body {
    min-width: 0;
  }

  html {
    scroll-padding-top: 56px;
  }

  .container {
    padding: 0 20px;
  }

  /* --- Header --- */
  .header__inner {
    padding: 0 20px;
    height: 56px;
  }

  .header__logo-image {
    height: 30px;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: 0 10px 20px rgba(20, 30, 50, 0.08);
    z-index: 20;
  }

  .header__nav.is-open {
    display: block;
  }

  .header__nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .header__nav li {
    width: 100%;
  }

  .header__nav a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--color-gray-200);
  }

  .header__toggle {
    display: flex;
  }

  /* --- Promo --- */
  .promo {
    padding: 10px 20px;
  }

  /* --- イベント&ニュース --- */
  .events-news {
    padding: 48px 20px 64px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .events__header {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 16px 18px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .events__body {
    order: 1;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .events__title,
  .events__desc {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .events__date {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }

  .events__date-year {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .events__date-day {
    font-size: 18px;
  }

  .events__panel {
    padding: 16px 18px 20px;
  }

  .events__panel-actions {
    justify-content: flex-start;
  }

  /* --- チケット情報 --- */
  .ticket {
    padding: 56px 0 64px;
  }

  .ticket__head {
    margin-bottom: 28px;
  }

  .ticket__desc {
    padding: 0 8px;
  }

  .ticket__list {
    gap: 14px;
  }

  .ticket-group__header {
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 10px 5px;
  }

  .ticket-group__title {
    white-space: normal;
  }

  .ticket-group__note {
    order: 2;
    flex: 1 1 100%;
  }

  .ticket-group__toggle {
    margin-left: auto;
  }

  /* テーブルを横スクロールさせず、1行=1カードの縦積みリストに組み替える */
  .ticket-table {
    width: 100%;
    min-width: 0;
  }

  .ticket-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .ticket-table tbody,
  .ticket-table tr,
  .ticket-table td {
    display: block;
    width: 100%;
  }

  .ticket-table tbody tr {
    padding: 0;
    border-bottom: 1px solid var(--color-gray-200);
  }

  .ticket-table tbody tr:last-child {
    border-bottom: none;
  }

  .ticket-table td {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px 20px 14px 0;
    border-top: 1px solid var(--color-gray-200);
  }

  .ticket-table td:first-child {
    border-top: none;
  }

  .ticket-table .col-type,
  .ticket-table .col-resort,
  .ticket-table .col-period,
  .ticket-table .col-action {
    width: 100%;
  }

  .ticket-table .col-action {
    justify-content: flex-end;
  }

  /* ラベル列：badge化せず、1枚の背景に見えるよう行の上下いっぱいまで塗りつぶす */
  .ticket-table td::before {
    display: flex;
    align-items: center;
    flex: 0 0 110px;
    margin: -14px 0;
    padding: 0 16px;
    background: var(--color-rank-header);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--color-white);
  }

  .ticket-table td:nth-child(1)::before {
    content: "券種";
  }

  .ticket-table td:nth-child(2)::before {
    content: "対象スキー場";
  }

  .ticket-table td:nth-child(3)::before {
    content: "販売期間";
  }

  /* --- スキー場比較 --- */
  .compare {
    padding: 100px 0 64px;
  }

  .compare__head {
    margin-bottom: 32px;
  }

  .compare__lead {
    font-size: 14px;
  }

  .compare__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .compare-card {
    padding: 22px 20px 26px;
  }

  .compare-card__desc {
    white-space: normal;
  }

  .compare-card__specs {
    flex-direction: column;
    gap: 16px;
  }

  .compare-card__specs-left {
    flex: 0 0 auto;
    width: 100%;
  }

  /* --- 人気スキー場を一覧比較 --- */
  .rank-table {
    padding: 56px 0 64px;
  }

  .rank-table__head {
    margin-bottom: 32px;
  }

  .rank-table__head .section-title {
    white-space: normal;
  }

  /* 横スクロールの表をやめ、スキー場ごとのカード（グリッド）に組み替える */
  .rank-table__wrap {
    border: none;
    box-shadow: none;
  }

  .rank-table__table {
    display: block;
    width: 100%;
    min-width: 0;
    background: none;
  }

  .rank-table__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .rank-table__table tbody {
    display: block;
  }

  .rank-table__table tbody tr {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 6px;
    row-gap: 12px;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(20, 30, 50, 0.06);
    padding: 18px 16px;
  }

  .rank-table__table tbody tr + tr {
    margin-top: 16px;
  }

  .rank-table__table tbody td {
    padding: 0;
    border-bottom: none;
    white-space: normal;
    vertical-align: top;
  }

  /* スキー場名 */
  .rank-table__table tbody td.rank-table__name {
    grid-column: 1 / 8;
    grid-row: 1;
    background: none;
    display: flex;
    align-items: center;
    font-size: 15px;
  }

  /* こんな方におすすめ */
  .rank-table__table tbody td:nth-child(9) {
    grid-column: 8 / 13;
    grid-row: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
  }

  .rank-table__table tbody .rank-tag {
    font-size: 11px;
    white-space: normal;
    text-align: right;
  }

  /* 都道府県・コース数・リフト数・標高差（4分割） */
  .rank-table__table tbody td:nth-child(2) { grid-column: 1 / 4; grid-row: 2; }
  .rank-table__table tbody td:nth-child(3) { grid-column: 4 / 7; grid-row: 2; }
  .rank-table__table tbody td:nth-child(4) { grid-column: 7 / 10; grid-row: 2; }
  .rank-table__table tbody td:nth-child(5) { grid-column: 10 / 13; grid-row: 2; }

  /* 雪質・初心者/ファミリー・ノンスキー（3分割） */
  .rank-table__table tbody td:nth-child(6) { grid-column: 1 / 5; grid-row: 3; }
  .rank-table__table tbody td:nth-child(7) { grid-column: 5 / 9; grid-row: 3; }
  .rank-table__table tbody td:nth-child(8) { grid-column: 9 / 13; grid-row: 3; }

  .rank-table__table tbody td:nth-child(2),
  .rank-table__table tbody td:nth-child(3),
  .rank-table__table tbody td:nth-child(4),
  .rank-table__table tbody td:nth-child(5),
  .rank-table__table tbody td:nth-child(6),
  .rank-table__table tbody td:nth-child(7),
  .rank-table__table tbody td:nth-child(8) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    color: var(--color-navy);
    font-weight: 700;
    font-size: 13px;
  }

  .rank-table__table tbody td:nth-child(2) {
    color: var(--color-navy);
  }

  .rank-table__table tbody td::before {
    display: block;
    margin-bottom: 8px;
    padding: 5px 2px;
    background: var(--color-rank-header);
    color: var(--color-white);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 4px;
    white-space: normal;
  }

  .rank-table__table tbody td:nth-child(2)::before { content: "都道府県"; }
  .rank-table__table tbody td:nth-child(3)::before { content: "コース数"; }
  .rank-table__table tbody td:nth-child(4)::before { content: "リフト数"; }
  .rank-table__table tbody td:nth-child(5)::before { content: "標高差"; }
  .rank-table__table tbody td:nth-child(6)::before { content: "雪質"; }
  .rank-table__table tbody td:nth-child(7)::before { content: "初心者/ファミリー"; }
  .rank-table__table tbody td:nth-child(8)::before { content: "ノンスキー"; }

  .rank-table__table tbody .dots {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* --- マイナンバーカード普及促進 --- */
  .mynumber {
    padding: 56px 0 64px;
  }

  .mynumber__card {
    padding: 32px 24px 36px;
  }

  .mynumber__badge {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .mynumber__body {
    flex-direction: column;
    gap: 32px;
  }

  .mynumber__heading {
    font-size: 19px;
  }

  .mynumber__desc {
    font-size: 13px;
  }

  .mynumber__visual {
    width: 160px;
    height: 176px;
  }

  .mynumber__phone {
    width: 104px;
    height: 176px;
  }

  .mynumber__note {
    width: 84px;
    height: 84px;
  }

  /* --- Photo Gallery --- */
  .gallery {
    padding: 56px 0 64px;
  }

  .gallery__head {
    margin-bottom: 28px;
  }

  .gallery__filters {
    gap: 10px;
    margin-bottom: 28px;
  }

  .gallery__filter {
    padding: 8px 16px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
  }

  /* --- フッター --- */
  .footer {
    padding: 40px 0 24px;
  }

  .footer__top {
    padding-bottom: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ==========================================================================
   レスポンシブ（768px〜501px）
   FV画像（3840×1120 / 24:7）を左右トリミングせず全体表示するため、
   この幅だけ高さを画像比率に合わせて可変にする（バナーは縦に短くなる）
   ========================================================================== */
@media (max-width: 768px) and (min-width: 501px) {
  .fv__slider {
    height: auto;
    aspect-ratio: 24 / 11;
  }

  /* banner.jpg（2560×440 / 64:11）を左右トリミングせず全体表示する */
  .promo__image {
    height: auto;
    aspect-ratio: 64 / 14;
  }
}

/* ==========================================================================
   レスポンシブ（500px以下）
   FV・早割バナーの画像だけは768pxではなく500pxで切り替える
   ========================================================================== */
@media (max-width: 500px) {
  .sp-only-break {
    display: inline;
  }

  /* FV1sp.jpg（1000×800 = 5:4）に合わせて高さを可変にし、左右トリミングを防ぐ */
  .fv__slider {
    height: auto;
    aspect-ratio: 5 / 4;
  }

  .fv__dots {
    bottom: 16px;
  }

  /* banner-sp.jpg（904×281）に合わせて高さを可変にし、左右トリミングを防ぐ */
  .promo__image {
    height: auto;
    aspect-ratio: 904 / 281;
  }

  /*8つのスキー樹*/
  .compare-card__side {
    padding: 0px;
  }

  .compare-card__appeal li {
    font-size: 11px;
  }

  .compare-card__media {
    margin-bottom: 3px;
  }

  .compare-card__side-text {
    line-height: 1.5;
  }

  .rank-table__table tbody td.rank-table__name {
    font-size: 12px;
  }

  .compare__lead {
    font-size: 11px;
  }

  /*xID*/
  .mynumber__desc {
    font-size: 10px;
    line-height: 1.5;
  }

  .mynumber__btn {
    padding: 6px 20px;
    font-size: 12px;
  }

  .mynumber__heading {
    font-size: 12px;
  }

  /* footer */
  .footer__bottom {
    gap: 5px;
  }

  .footer__legal a {
    font-size: 10px; 
  }

  .footer__copyright {
    font-size: 10px;
  }

  .footer__tagline {
    font-size: 12px;
  }

  /* イベント&ニュース */
  .events__title {
    font-size: 12px;
  }

  .events__desc {
    font-size: 11px;
  }
  
  .events__panel {
    padding: 16px 0px 20px;
  }

  .events__panel-btn {
    padding: 10px 15px;
    font-size: 10px;
  }

  .events__more-btn {
    font-size: 12px;
    padding: 8px 25px;
  }

  /* チケット情報 */
  .ticket__desc {
    font-size: 12px;
  }

  .ticket-group {
    padding: 5px 15px;
  }

  .ticket-group__note {
    padding-bottom: 5px;
  }

  /* フォトギャラリー*/
  .gallery__desc {
    font-size: 12px;
  }
  
}
