/**
 * スキーメニュー（SP版）
 * スキー場詳細ページ用ボトムシートメニュー
 * 3行折り返しレイアウト
 */

.ski_menu {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 16px;
}
/* 3行表示：flexbox で縦3行・横に流れる（各項目は内容に応じた幅） */
.ski_menu .menu-bar {
  display: flex;
  flex-wrap: wrap;
  height: calc(33px * 3 + 4px * 2); /* ボタン高さ×3行 + gap×2 */
  align-content: flex-start;
  gap: 4px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ski_menu .menu-bar > li {
  width: fit-content;
  margin: 0;
  padding: 0;
}
.ski_menu .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.ski_menu .btn:active {
  background: #f0f4f8;
  border-color: #ccc;
}
.ski_menu .btn[aria-expanded="true"] {
  background: #333333;
  color: #ffffff;
  border-color: #333333;
}
.ski_menu .btn::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}
.ski_menu .btn[aria-expanded="true"]::after {
  transform: rotate(-135deg) translateY(-2px);
}
.ski_menu .dlink a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  text-decoration: none;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ski_menu .dlink a:active {
  background: #f0f4f8;
  border-color: #ccc;
}
.ski_menu .modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ski_menu .modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.ski_menu .modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ski_menu .modal[aria-hidden="false"]::before {
  opacity: 1;
}
.ski_menu .sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  max-height: 85vh;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.ski_menu .modal[aria-hidden="false"] .sheet {
  transform: translateY(0);
}
.ski_menu .sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.ski_menu .sheet-head p {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.ski_menu .icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f0f4f8;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 18px;
  color: #333333;
  -webkit-tap-highlight-color: transparent;
}
.ski_menu .icon-btn:active {
  background: #e0e0e0;
}
.ski_menu .sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 32px;
  -webkit-overflow-scrolling: touch;
}
.ski_menu .menu-item {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: #333333;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ski_menu .menu-item:active {
  background: #f0f4f8;
}
.ski_menu .menu-item span {
  display: block;
  line-height: 1.5;
}
