/* ===============================
   REVIEW PAGE
   =============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
  color: #145087;
  /* 背景色は background.css に任せるので書かない */
}

/* ページコンテンツ（背景より前に出す） */
.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* メインレイアウト */
.mypage-main {
  max-width: 88%;
  margin: 0 auto;
  padding: 24px 0 56px;
}

.section {
  margin-top: 12px;
}

.section__inner {
  max-width: 480px;
  margin: 0 auto;
}

/* 見出し REVIEW */
.mypage-heading {
  margin-bottom: 20px;
}

.mypage-heading__title {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #145087;
}

.mypage-heading__sub {
  margin: 0;
  font-size: 14px;
  color: #145087;
}

/* -------------------------
   デート概要カード
-------------------------- */

.review-summary {
  background: #ffffffee;
  border-radius: 20px;
  padding: 16px 18px 20px;
  border: 1px solid #e2f1ff;
  box-shadow: 0 4px 10px rgba(13, 71, 125, 0.08);
  margin-bottom: 24px;
}

.review-summary__date {
  margin: 0 0 8px;
  font-size: 13px;
  color: #6b7b8c;
}

.review-summary__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* マイページで使ってるアバター用クラスを流用 */
.reservation-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcdcdc;
  flex-shrink: 0;
}

.review-summary__info {
  font-size: 14px;
}

.review-summary__girl {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #145087;
}

.review-summary__detail {
  margin: 0;
  line-height: 1.6;
  color: #44566b;
  font-size: 13px;
}

/* -------------------------
   レビューフォーム全体
-------------------------- */

.review-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-block {
  background: #ffffffee;
  border-radius: 18px;
  padding: 18px 16px 20px;
  border: 1px solid #e2f1ff;
  box-shadow: 0 4px 10px rgba(13, 71, 125, 0.06);
}

.review-block__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #145087;
}

/* -------------------------
   評価（★）
-------------------------- */

.rating-row {
  margin-bottom: 14px;
}

.rating-row__label {
  font-size: 14px;
  margin-bottom: 4px;
}

.form-required {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: #f5a400;
}

.rating-row__stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.rating-caption {
  font-size: 11px;
  color: #6b7b8c;
}

/* 星アイコン */
.rating-input {
  display: inline-flex;
  flex-direction: row-reverse; /* 右から塗りつぶす用 */
  gap: 4px;
}

.rating-input input {
  display: none;
}

.rating-input label {
  font-size: 22px;
  color: #d0d7e3;
  cursor: pointer;
  transition: color 0.2s;
}

/* チェックされている星より左側も色をつける */
.rating-input input:checked ~ label {
  color: #f5c518;
}

.rating-input label:hover,
.rating-input label:hover ~ label {
  color: #ffd95a;
}

/* -------------------------
   感想テキスト
-------------------------- */

.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #b7d2ea;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  background: #ffffff;
}

.form-textarea:focus {
  border-color: #5fa8dd;
  box-shadow: 0 0 0 3px rgba(18, 111, 178, 0.1);
}

.form-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: #6b7b8c;
}

/* -------------------------
   公開設定
-------------------------- */

.review-block--side {
  margin-bottom: 4px;
}

.form-row {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #b7d2ea;
  font-size: 13px;
  outline: none;
  background: #ffffff;
}

.form-input:focus {
  border-color: #5fa8dd;
  box-shadow: 0 0 0 3px rgba(18, 111, 178, 0.1);
}

.review-public {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.review-public__label {
  font-size: 13px;
}

/* トグルスイッチ */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 26px;
}

.toggle input {
  display: none;
}

.toggle__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cfd9e7;
  border-radius: 999px;
  transition: 0.2s;
}

.toggle__slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 4px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  transition: 0.2s;
}

.toggle input:checked + .toggle__slider {
  background: #145087;
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(22px);
}

/* -------------------------
   ボタン
-------------------------- */

.reserve-button-area {
  margin-top: 8px;
}

.btn-primary {
  width: 100%;
  padding: 14px 0;
  border-radius: 999px;
  border: none;
  background: #145087;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* -------------------------
   小さい端末向け調整
-------------------------- */

@media (max-width: 360px) {
  .review-summary {
    padding: 14px 14px 18px;
  }

  .review-block {
    padding: 14px 12px 18px;
  }
}

/* PC ちょい広め */
@media (min-width: 768px) {
  .mypage-main,
  .section__inner {
    max-width: 720px;
  }
}
