/* =======================
   マイページ
   ======================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  color: #145087;
}

.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.main {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.section {
  margin-top: 32px;
}

.section__inner {
  max-width: 480px;
  margin: 0 auto;
}

/* -----------------------
   プロフィールカード（簡易版）
   ----------------------- */

.mypage-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #ffffffee;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(13, 71, 125, 0.09);
  border: 1px solid #e2f1ff;
  margin-bottom: 16px;
}

.mypage-profile__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcdcdc;
  flex-shrink: 0;
}

.mypage-profile__info {
  flex: 1;
  min-width: 0;
}

.mypage-profile__row {
  display: flex;
  font-size: 11px;
  line-height: 1.6;
}

.mypage-profile__label {
  color: #6b7b8c;
  margin-right: 4px;
  flex-shrink: 0;
}

.mypage-profile__value {
  color: #145087;
}

/* -----------------------
   タブ
   ----------------------- */

.mypage-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.mypage-tabs__button {
  flex: 1;
  max-width: 160px;
  padding: 8px 4px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid #c4d9f2;
  background: #ffffffaa;
  color: #6b7b8c;
  cursor: pointer;
}

.mypage-tabs__button.is-active {
  background: #1c63d2;
  color: #ffffff;
  border-color: #1c63d2;
}

/* タブの中身 */

.mypage-tab-panel {
  display: none;
  margin-top: 10px;
}

.mypage-tab-panel.is-active {
  display: block;
}

.mypage-tab-panel__lead {
  font-size: 11px;
  color: #6b7b8c;
  margin: 0 4px 10px;
}

/* -----------------------
   予約カード / 利用履歴カード
   ----------------------- */

.reserve-card {
  background: #ffffffee;
  border-radius: 18px;
  padding: 12px 14px 12px;
  box-shadow: 0 4px 12px rgba(13, 71, 125, 0.08);
  border: 1px solid #e2f1ff;
  margin-bottom: 14px;
}

.reserve-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.reserve-card__datetime {
  font-size: 12px;
  font-weight: 600;
  color: #145087;
}

.reserve-card__status {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5edf9;
  color: #145087;
  white-space: nowrap;
}

/* 状態別カラー */
.reserve-card__status--pending {
  background: #fff2c4;
  color: #c17700;
}

.reserve-card__status--payment {
  background: #e2f3ff;
  color: #1c63d2;
}

.reserve-card__status--fixed {
  background: #e6f7e7;
  color: #1a8b3a;
}

.reserve-card__status--review-pending {
  background: #ffe8d8;
  color: #d45b00;
}

.reserve-card__status--review-done {
  background: #e6f7e7;
  color: #1a8b3a;
}

/* サマリー部分 */

.reserve-card__summary {
  font-size: 12px;
  line-height: 1.7;
  color: #45556a;
}

.reserve-card__cast {
  display: flex;
  align-items: center;
  gap: 2px;
}

.reserve-card__cast-label {
  font-size: 11px;
  color: #6b7b8c;
}

.reserve-card__cast-name {
  font-weight: 600;
}

/* 詳細開閉 */

.reserve-card__toggle {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #1c63d2;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.reserve-card__details {
  margin-top: 4px;
}

.reserve-card__list {
  margin: 0 0 4px;
  padding: 0;
}

.reserve-card__row {
  display: flex;
  font-size: 11px;
  line-height: 1.7;
}

.reserve-card__row dt {
  width: 70px;
  color: #6b7b8c;
  flex-shrink: 0;
}

.reserve-card__row dd {
  margin: 0;
  color: #45556a;
}

.reserve-card__status-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: #6b7b8c;
}

/* レビューを書くボタン（履歴のみ） */

.reserve-card__review-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: #1c63d2;
  color: #ffffff;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.12em;
}

/* -----------------------
   小さめ端末
   ----------------------- */

@media (max-width: 360px) {
  .mypage-profile {
    padding: 10px 10px;
  }
}

/* -----------------------
   PC
   ----------------------- */

@media (min-width: 768px) {

  .main,
  .section__inner {
    max-width: 960px;
  }

  .section {
    margin-top: 48px;
  }

  .reserve-card {
    padding: 14px 18px 14px;
  }
}
