/* ============================================================================
   メニュー関連スタイル - ふくサロン 高級感のある色プラン
   ============================================================================ */

/* メニューセクション */
.menu-section {
  background: var(--white);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border: 1px solid rgba(184, 149, 108, 0.2);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* ============================================================================
   横1行レイアウトのメニューカード
   ============================================================================ */

.menu-card-horizontal {
  background: var(--white);
  border: 2px solid var(--beige);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.menu-card-horizontal:hover {
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
  transform: translateY(-3px);
  border-color: var(--gold);
}

/* メニュー画像(左側) */
.menu-image-wrapper {
  width: 250px;
  min-width: 250px;
  height: 200px;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
}

.menu-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.menu-card-horizontal:hover .menu-image {
  transform: scale(1.05);
}

/* 画像がない場合の表示 */
.menu-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
}

.no-image-text {
  color: var(--brown);
  font-size: 1.2em;
  font-weight: bold;
}

/* メニュー内容(中央) */
.menu-content-horizontal {
  flex: 1;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0; /* 子要素の縮小を許可 */
}

/* メニュータグコンテナ */
.menu-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

/* メニュータグ(個別) */
.menu-tag {
  display: inline-block;
  color: var(--white) !important; /* 常に白文字 */
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
  background: var(--gold);
}

.menu-title {
  color: var(--dark-brown);
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.4;
}

.menu-description {
  color: var(--text);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
  white-space: pre-line; /* 改行を保持 */
}

.menu-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--beige);
}

.menu-price {
  color: #c4766c;
  font-size: 1.5em;
  font-weight: bold;
}

.menu-duration {
  background: var(--cream);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
}

/* ポイント獲得表示 */
.menu-points {
  background: var(--cream);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  white-space: nowrap;
}

/* 予約ボタンエリア(右側) */
.menu-button-wrapper {
  width: 180px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  flex-shrink: 0;
}

.menu-select-btn {
  background: var(--white);
  color: var(--gold);
  border: 2px solid var(--white);
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  width: 100%;
  white-space: pre-line;
  line-height: 1.4;
}

.menu-select-btn:hover {
  background: var(--cream);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.no-menus {
  text-align: center;
  padding: 40px;
  color: var(--brown);
  font-size: 1.2em;
}

/* ============================================================================
   選択中のメニュー情報(詳細カード表示)
   ============================================================================ */

.selected-menu-info {
  margin-bottom: 20px;
}

.selected-menu-card {
  background: var(--white);
  border-radius: 12px;
  padding: 0; /* paddingを0に変更して、内部で調整 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden; /* border-radiusを効かせるため */
  border: 2px solid var(--gold);
}

/* 左側のコンテンツエリア（画像＋テキスト） */
.selected-menu-main-content {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  padding: 20px;
  min-width: 0;
}

/* 選択中のメニュー画像 */
.selected-menu-image-wrapper {
  width: 200px;
  min-width: 200px;
  height: 150px;
  overflow: hidden;
  background: var(--cream);
  border-radius: 8px;
  flex-shrink: 0;
}

.selected-menu-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-menu-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
}

/* 選択中のメニュー内容 */
.selected-menu-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.selected-menu-title {
  color: var(--dark-brown);
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.4;
}

.selected-menu-description {
  color: var(--text);
  font-size: 0.95em;
  line-height: 1.6;
  white-space: pre-line;
  flex: 1;
}

.selected-menu-info-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--beige);
}

.selected-menu-price {
  color: #c4766c;
  font-size: 1.3em;
  font-weight: bold;
}

.selected-menu-duration {
  background: var(--cream);
  color: var(--text);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
}

/* 右側のゴールド背景エリア（ボタンエリア） */
.selected-menu-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  width: 200px;
  padding: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  flex-shrink: 0;
}

.btn-change-menu {
  background: var(--white);
  color: var(--gold);
  border: 2px solid var(--white);
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  white-space: pre-line;
  line-height: 1.4;
  width: 100%;
}

.btn-change-menu:hover {
  background: var(--cream);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   メニュー関連のスマホ最適化
   ============================================================================ */

@media (max-width: 768px) {
  /* メニューカードを縦並びに変更 */
  .menu-card-horizontal {
    flex-direction: column;
  }

  .menu-image-wrapper {
    width: 100%;
    height: 120px;
  }

  .menu-button-wrapper {
    width: 100%;
    padding: 15px;
  }
  /* メニュータグ(個別) */
  .menu-tag {
    display: inline-block;
    color: var(--white) !important; /* 常に白文字 */
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
  }
  .menu-title {
    font-size: 0.95em;
    margin-bottom: 5px;
  }
  .menu-description {
    font-size: 0.75em;
  }

  .menu-info {
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu-points {
    font-size: 0.8em;
  }

  /* 選択中のメニューカード */
  .selected-menu-card {
    flex-direction: column;
  }

  .selected-menu-main-content {
    flex-direction: column;
  }

  .selected-menu-image-wrapper {
    width: 100%;
    height: 180px;
  }

  .selected-menu-actions {
    width: 100%;
    min-width: auto;
  }

  .btn-change-menu {
    width: 100%;
  }
}
