/* Ski responsive fixes. Load after ski-style.css and subpage-design.css. */

/* A grid child's intrinsic table width must not widen the page. */
.fees-wrap > *,
.rental-grid > *,
.condition-grid > *,
.courses-grid > *,
.sub-hero-panel,
.sub-hero-panel dl div > *,
.notice-card > *,
.timeline-item > * {
  min-width: 0;
}

/* Override the later decorative overflow:hidden on .table-wrap. */
.table-wrap,
.table-responsive {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible,
.table-responsive:focus-visible {
  outline: 3px solid var(--blue-deep);
  outline-offset: 3px;
}

.table-scroll-hint {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: 14px;
  line-height: 1.6;
}

.section-dark .table-scroll-hint {
  color: var(--white);
}

/* Keep buttons and their arrows together when copy wraps. */
.cta-inner .button {
  position: relative;
  flex-shrink: 0;
  max-width: 100%;
  padding-right: 44px;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (min-width: 981px) {
  .table-scroll-hint { display: none; }
}

@media (max-width: 980px) {
  .sub-hero-panel dd {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .eyebrow {
    max-width: 100%;
    letter-spacing: .25em;
    overflow-wrap: anywhere;
  }

  .eyebrow::before { flex-shrink: 0; }

  /* Keep the full course map visible; only photographic cards use a crop. */
  .course-card:first-child {
    aspect-ratio: auto;
  }

  .course-card:first-child .course-card-bg {
    position: relative;
  }

  .course-card:first-child img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 640px) {
  .hero-inner,
  .container,
  .quick-nav-inner,
  .cta-inner,
  .footer-inner {
    width: calc(100% - 32px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .container {
    padding-left: 0;
    padding-right: 0;
  }

  .condition-inner,
  .new-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero { width: 100%; }

  .hero-content {
    width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-season,
  .hero-title-en { letter-spacing: .15em; }

  .hero-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-badge { min-width: 0; }
  .hero-cta-group { width: 100%; }

  .condition-grid { gap: 10px; }
  .condition-card { padding: 20px 10px; }
  .condition-label { letter-spacing: .08em; }
  .condition-value { flex-wrap: wrap; }

  .rental-grid { grid-template-columns: 1fr; }
  .fees-wrap { gap: 32px; }

  .section-label,
  .kicker { letter-spacing: .2em; overflow-wrap: anywhere; }

  .sub-hero-panel dl div {
    grid-template-columns: 76px minmax(0, 1fr);
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head h2,
  .cta-inner h2 { overflow-wrap: anywhere; }

  /* Two/three-column price summaries fit without a 720px minimum. */
  .table-wrap .table-compact {
    min-width: 0;
    table-layout: fixed;
  }
  .table-compact th,
  .table-compact td { padding: 12px 8px; overflow-wrap: anywhere; }
  .table-compact .price { font-size: 16px; white-space: normal; }

  /* The food page uses the shared legacy visual and Bootstrap columns. */
  #subVisual .h1 {
    max-width: calc(100% - 32px);
    margin-left: 16px;
    padding: 20px 16px;
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .white-bg { margin-top: 0; }
  .white-bg .col-6 { flex: 0 0 100%; max-width: 100%; }

  /* Content remains readable even before scroll observers fire. */
  .reveal,
  .reveal.visible { opacity: 1; transform: none; }
}

@media (hover: none) {
  .course-card:hover .course-card-content { opacity: 1; }
  .course-card:hover .course-card-overlay { opacity: 1; }
}

/* 2026-11-11: full-width announcements and compact condition tables. */
.operation-notice {
  width: 100%;
  margin-top: 20px;
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(18, 110, 170, .12);
}
.operation-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.operation-notice p + p { margin-top: 24px; }
.condition-heading { margin-top: 40px; }
.condition-section .weather-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}
.weather-grid .condition-weather { font-size: 40px; }
.condition-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 20px;
}
.condition-status-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .64);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(18, 110, 170, .12);
}
.condition-status-heading {
  margin-bottom: 16px;
  text-align: center;
}
.condition-status-heading > i {
  display: block;
  color: #ed9218;
  font-size: 40px;
  line-height: 2;
}
.condition-status-heading h3 {
  margin: 0 0 12px;
  padding: 0;
  color: #ed9218;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  line-height: 1.85;
}
.condition-status-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.condition-status-table .condition-status-column {
	width: 88px;
	width: 138px;
}
.condition-status-table caption {
  caption-side: top;
  padding: 0 0 12px;
  color: var(--text-mid);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.condition-status-table th,
.condition-status-table td {
  padding: 12px;
  border: 1px solid rgba(21, 150, 212, .2);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
}
.condition-status-table thead th {
  color: var(--blue-deep);
  background: #dff5ff;
  text-align: center;
}
.condition-status-table tbody th {
  color: var(--text);
  background: #f3fbff;
  text-align: left;
}
.condition-status-table tbody td {
  color: var(--text-mid);
  background: #ffffff;
  text-align: center;
}
@media (max-width: 640px) {
  .operation-notice {
    padding: 20px;
    border-radius: 16px;
  }
  .condition-section .weather-grid { gap: 8px; }
  .weather-grid .condition-card { padding: 16px 4px; }
  .weather-grid .condition-card i { font-size: 28px; line-height: 1.5; }
  .weather-grid .condition-label {
    font-size: 14px;
    letter-spacing: 0;
    margin-bottom: 12px;
  }
  .weather-grid .condition-label-en { display: none; }
  .weather-grid .condition-value {
    flex-wrap: nowrap;
    gap: 2px;
    font-size: 28px;
    line-height: 1.3;
  }
  .weather-grid .condition-weather { font-size: 24px; }
  .weather-grid .condition-unit { font-size: 14px; }
  .condition-status-grid { grid-template-columns: minmax(0, 1fr); }
  .condition-status-card { padding: 20px; border-radius: 16px; }
  .condition-status-table .condition-status-column { 
	width: 76px; 
	}
  .condition-status-table th,
  .condition-status-table td { padding: 10px 8px; }
}

/* Pair courses horizontally, with a compact status column for each course. */
.condition-course-table .condition-course-status-column { width: 64px; }
.condition-course-table td { font-size: 20px; }
.condition-course-table .condition-course-empty { background: #f3fbff; }
@media (max-width: 640px) {
  .condition-status-heading > i { font-size: 28px; line-height: 1.5; }
  .condition-status-heading h3 { font-size: 14px; letter-spacing: 0; }
  .condition-course-table .condition-course-status-column { width: 40px; }
  .condition-course-table th,
  .condition-course-table td { padding: 10px 4px; }
  .condition-course-table thead th { font-size: 14px; }
}

.condition-course-table thead th { white-space: nowrap; }

/* 2026-11-13: safety declaration below the six slope rules. */
.safety-declaration ul {
  margin: 16px 0 0;
  padding-left: 1.5em;
  list-style: disc;
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.9;
}
.safety-declaration li { overflow-wrap: anywhere; }
.safety-declaration .panel p + p { margin-top: 12px; }
.safety-declaration .section-head {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.safety-accident { margin-top: 24px; }

.safety-illustrated-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  align-items: center;
  gap: 24px;
}
.safety-illustrated-content > * { min-width: 0; }
.safety-illustration {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  justify-self: center;
}
.safety-accident .safety-illustrated-content {
  grid-template-columns: minmax(0, 1fr) 200px;
}
.safety-rescue-illustration { width: 200px; }
@media (max-width: 980px) {
  .safety-illustrated-content,
  .safety-accident .safety-illustrated-content { grid-template-columns: minmax(0, 1fr); }
}

/* Larger top-aligned illustrations with text flowing alongside and below. */
.safety-text-wrap { display: flow-root; }
.safety-text-wrap > .safety-illustration {
  float: right;
  width: 200px;
  max-width: 50%;
  height: auto;
  margin: 0 0 12px 20px;
}
@media (max-width: 640px) {
  .safety-text-wrap > .safety-illustration { margin-left: 12px; }
}
