/* ================================================================
   mypage-common.css
   – input / button は support-form.css (.del-*) を継承
   – マイページ固有のレイアウト・状態表示のみここで定義
   ================================================================ */

/* ---------- CSS カスタムプロパティ（support-form.css の変数に合わせる） ---------- */
body.mypage-page {
  --support-hero-start: #f08a54;
  --support-hero-end:   #e56f32;
  --support-accent:     #e56f32;
  --support-accent-hover: #cc5f26;
  --support-card-border:  #ead9cc;
  --support-soft-bg:    #fffdfa;
  --support-info-bg:    #fff8f2;
  --support-info-border:#f0dccd;
  --support-warn-bg:    #fff3ed;
  --support-warn-border:#f0c7b5;
  --support-input-border:#d8c8bc;
  --support-side-border:#ead9cc;
  --support-modal-sub-bg:#f5f0ec;
  --support-modal-sub-hover:#e8ddd3;
}

/* ---------- ページ全体 ---------- */
body.mypage-page {
  margin: 0;
  background: #f8f4f1;
  color: #333;
}

/* ---------- マイページ用シェル幅 ---------- */
.mypage-shell {
  max-width: 860px;
  margin: 36px auto 56px;
}

/* ---------- 見出し ---------- */
.mypage-title {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.3;
  color: #3e2b1e;
}

.mypage-sub-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.4;
  color: #3e2b1e;
}

/* ---------- キャプション帯 ---------- */
.mypage-caption {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-left: 4px solid var(--support-accent);
  background: var(--support-soft-bg);
  color: #7a3f16;
  font-size: 13px;
}

/* ---------- カード（support-form.css の .del-card を補完） ---------- */
.mypage-page-card {
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--support-card-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.07);
  overflow: hidden;
}

.mypage-card-head {
  padding: 12px 16px;
  background: #f8e1d2;
  font-weight: bold;
  color: #7a3f16;
}

.mypage-card-body {
  padding: 20px;
}

/* ---------- メニューリンク ---------- */
.mypage-menu-list a {
  display: block;
  margin-bottom: 12px;
  color: #007c91;
  text-decoration: none;
  font-weight: bold;
}

/* ---------- 情報ボックス ---------- */
.mypage-box {
  border: 1px solid #d9d9d9;
  background: #fafafa;
  border-radius: 10px;
  padding: 16px;
}

/* ---------- ログインボックス ---------- */
.mypage-login-box {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--support-card-border);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.mypage-login-box .del-form-grid {
  max-width: 100%;
  margin-top: 0;
}

/* ---------- 旧 mypage-* クラス互換（段階的移行用） ---------- */
.mypage-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 14px;
}

.mypage-input,
.mypage-textarea {
  width: 100%;
  border: 1px solid var(--support-input-border);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  color: inherit;
  background: #fff;
  box-sizing: border-box;
}

.mypage-textarea {
  min-height: 110px;
  resize: vertical;
}

.mypage-note {
  margin-top: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

.mypage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font: inherit;
  background: var(--support-accent);
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.mypage-btn:hover {
  background: var(--support-accent-hover);
  text-decoration: none;
}

.mypage-btn-gray,
.mypage-btn-sub {
  background: #fff;
  color: #333;
  border: 1px solid #d9cbbf;
}

.mypage-btn-gray:hover,
.mypage-btn-sub:hover {
  background: #f5f0ec;
}

.mypage-btn-danger {
  background: #c0392b;
  color: #fff;
}

.mypage-btn-danger:hover {
  background: #a02a1e;
}

.mypage-btn-light {
  background: #f4b942;
  color: #5a4300;
}

.mypage-btn-light:hover {
  background: #e0a62f;
}

.mypage-btn[disabled],
.mypage-btn-danger[disabled],
.mypage-btn-light[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

/* ---------- アラート ---------- */
.mypage-alert {
  margin: 0 auto 16px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.mypage-alert-warn {
  max-width: 460px;
  border-color: var(--support-warn-border);
  background: var(--support-warn-bg);
  color: #7f4d12;
}

.mypage-alert-error {
  border-color: #efc2c2;
  background: #fff1f1;
  color: #8b1e1e;
}

/* ---------- 利用状態バッジ ---------- */
.mypage-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: bold;
}

.mypage-status-use      { background: #f4b942; color: #5a4300; }
.mypage-status-reserved { background: #f0c36d; color: #6a4700; }

/* ---------- 危険ボタン（削除・解約系） ---------- */
.btn-del-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font: inherit;
  font-size: 15px;
  background: #c0392b;
  color: #fff;
}

.btn-del-danger:hover { background: #a02a1e; }
.btn-del-danger:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 解約取消（ライト） ---------- */
.btn-del-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font: inherit;
  font-size: 15px;
  background: #f4b942;
  color: #5a4300;
}

.btn-del-light:hover { background: #e0a62f; }

/* ---------- ユーティリティ ---------- */
.mypage-center { text-align: center; }
.mypage-mt8,
.mt8  { margin-top: 8px; }
.mypage-mt12,
.mt12 { margin-top: 12px; }
.mypage-mt16,
.mt16 { margin-top: 16px; }
.mypage-mt20,
.mt20 { margin-top: 20px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .mypage-shell   { margin: 28px auto 44px; }
  .mypage-title   { font-size: 28px; }
  .mypage-sub-title { font-size: 24px; }
}

@media (max-width: 640px) {
  .mypage-shell     { margin: 20px auto 34px; }
  .mypage-card-body { padding: 16px; }
  .mypage-title     { font-size: 24px; }
  .mypage-sub-title { font-size: 20px; }
}
