.mypage-page .pc-page-body {
  background: #f6f7f9;
}

.mypage-page .mypage-section {
  box-sizing: border-box;
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.mypage-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  margin-bottom: 22px;
  border: 1px solid #eceef2;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #fff 68%, #fff2f3 100%);
  box-shadow: 0 12px 38px rgba(17, 24, 39, 0.06);
}

.mypage-hero::after {
  content: '';
  position: absolute;
  top: -58px;
  right: -45px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(232, 25, 44, 0.06);
  pointer-events: none;
}

.mypage-eyebrow {
  margin: 0 0 9px;
  color: #e8192c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.mypage-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #17191d;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.mypage-page .mypage-user {
  position: relative;
  z-index: 1;
  margin: 9px 0 0;
  color: #626873;
  font-size: 14px;
  line-height: 1.65;
}

.mypage-summary-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(240px, 1.3fr);
  gap: 12px;
  margin-top: 28px;
}

.mypage-summary-card {
  display: flex;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid #eceef2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.mypage-summary-card span {
  color: #7a808b;
  font-size: 12px;
  font-weight: 700;
}

.mypage-summary-card strong {
  color: #20232a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.mypage-summary-card.is-next {
  border-color: #ffd8dc;
  background: #fff8f8;
}

.mypage-summary-card.is-next strong {
  color: #b81220;
  font-size: 16px;
}

.mypage-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
  padding: 5px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}

.mypage-tab {
  display: inline-flex;
  min-height: 46px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mypage-tab:hover {
  background: #f7f7f8;
  color: #272a30;
}

.mypage-tab.on {
  background: #202226;
  color: #fff;
  box-shadow: 0 5px 14px rgba(17, 24, 39, 0.14);
}

.mypage-panel {
  display: none;
}

.mypage-panel.on {
  display: block;
}

.mypage-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.mypage-block-head h2 {
  margin: 0;
  color: #20232a;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mypage-block-head p {
  margin: 5px 0 0;
  color: #707680;
  font-size: 13px;
  line-height: 1.6;
}

.mypage-preview-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1d5da8;
  font-size: 11px;
  font-weight: 800;
}

.mypage-priority {
  margin-bottom: 28px;
}

.mypage-course-card {
  padding: 22px;
  border: 1px solid #e4e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(17, 24, 39, 0.035);
}

.mypage-course-card.is-featured {
  padding: 26px;
  border-color: #f4a5ad;
  background: linear-gradient(145deg, #fff 0%, #fffafb 100%);
  box-shadow: 0 14px 36px rgba(201, 23, 40, 0.09);
}

.mypage-course-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.mypage-course-head > div {
  min-width: 0;
}

.mypage-course-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #e8192c;
  font-size: 12px;
  font-weight: 800;
}

.mypage-course-head h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 7px;
  color: #1c1f24;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mypage-course-card.is-featured .mypage-course-head h3 {
  font-size: 22px;
}

.mypage-course-meta {
  margin: 0;
  color: #707680;
  font-size: 13px;
}

.mypage-course-state {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf8f0;
  color: #167044;
  font-size: 11px;
  font-weight: 800;
}

.mypage-course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mypage-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.mypage-list-head h2 {
  margin: 0;
  color: #2b2e34;
  font-size: 17px;
  font-weight: 800;
}

.mypage-list-head > span {
  color: #7d838d;
  font-size: 12px;
  font-weight: 700;
}

.mypage-course-progress {
  margin-bottom: 20px;
}

.mypage-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #747a84;
  font-size: 12px;
}

.mypage-progress-copy strong {
  color: #33373e;
  font-size: 13px;
  font-weight: 800;
}

.mypage-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef0f2;
}

.mypage-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e8192c, #f25462);
}

.mypage-progress-note,
.mypage-progress-empty {
  margin: 8px 0 0;
  color: #8a9099;
  font-size: 11px;
  line-height: 1.5;
}

.mypage-progress-empty {
  padding: 10px 12px;
  border-radius: 9px;
  background: #f6f7f8;
  color: #686e77;
  font-size: 12px;
}

.mypage-week-links{margin-top:14px;padding-top:14px;border-top:1px solid #eef2f7;}
.mypage-week-links-title{display:block;font-size:12px;font-weight:800;color:#6b7280;margin-bottom:8px;}
.mypage-week-link-row{display:flex;flex-wrap:wrap;gap:8px;}
.mypage-week-link{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800;text-decoration:none;}
.mypage-week-link.rec{background:#ecfdf5;color:#047857;}
.mypage-week-note{margin:8px 0 0;font-size:12px;color:#6b7280;}
.mypage-course-actions,
.mypage-pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.mypage-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid #dfe2e6;
  border-radius: 11px;
  background: #fff;
  color: #34383f;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mypage-btn:hover {
  border-color: #c8ccd1;
  background: #f8f8f9;
  color: #202329;
  transform: translateY(-1px);
}


.mypage-btn.danger {
  border-color: #d94848;
  background: #fff;
  color: #c62828;
}

.mypage-btn.danger:hover {
  border-color: #c62828;
  background: #c62828;
  color: #fff;
}

.mypage-btn.danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}


.mypage-password-card {
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 14px;
}

.mypage-password-form {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.mypage-password-field {
  display: grid;
  gap: 6px;
  color: #34383f;
  font-size: 13px;
  font-weight: 700;
}

.mypage-password-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dfe2e6;
  border-radius: 11px;
  background: #fff;
  color: #1d2127;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
}

.mypage-password-field input:focus {
  outline: none;
  border-color: #e8192c;
  box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.12);
}

.mypage-password-hint {
  margin: 0;
  color: #6b7078;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.mypage-password-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.mypage-password-msg.is-error {
  color: #c62828;
}

.mypage-password-msg.is-ok {
  color: #1b7a45;
}

.mypage-password-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mypage-account {
  margin-top: 28px;
}

.mypage-account-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  padding: 20px 22px;
  border: 1px solid #eceef1;
  border-radius: 16px;
  background: #fff;
}

.mypage-account-card h3 {
  margin: 0 0 6px;
  color: #1d2127;
  font-size: 16px;
  font-weight: 800;
}

.mypage-account-card p {
  margin: 0;
  max-width: 46rem;
  color: #6b7078;
  font-size: 13px;
  line-height: 1.65;
}

.mypage-withdraw-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 20, 24, 0.55);
}

.mypage-withdraw-overlay[hidden] {
  display: none !important;
}

body.mypage-withdraw-open {
  overflow: hidden;
}

.mypage-withdraw-dialog {
  width: min(100%, 440px);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.mypage-withdraw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.mypage-withdraw-head h3 {
  margin: 0;
  color: #1d2127;
  font-size: 18px;
  font-weight: 800;
}

.mypage-withdraw-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #50555d;
  cursor: pointer;
}

.mypage-withdraw-close:hover {
  background: #e8eaed;
  color: #1d2127;
}

.mypage-withdraw-body {
  padding: 16px 20px 20px;
}

.mypage-withdraw-list {
  margin: 0 0 16px;
  padding: 14px 14px 14px 30px;
  border-radius: 12px;
  background: #f7f8fa;
  color: #4a4f57;
  font-size: 13px;
  line-height: 1.7;
}

.mypage-withdraw-list li + li {
  margin-top: 4px;
}

.mypage-withdraw-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  color: #33383f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  cursor: pointer;
}

.mypage-withdraw-check input {
  margin-top: 3px;
  accent-color: #c62828;
}

.mypage-withdraw-error {
  margin: 0 0 12px;
  color: #c62828;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.mypage-withdraw-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mypage-withdraw-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100060;
  max-width: 320px;
  padding: 13px 18px;
  border-radius: 12px;
  border-left: 3px solid #10b981;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mypage-withdraw-toast.on {
  opacity: 1;
}
.mypage-btn.primary {
  border-color: #e8192c;
  background: #e8192c;
  color: #fff;
}

.mypage-btn.primary:hover {
  border-color: #c91526;
  background: #c91526;
  color: #fff;
}

.mypage-btn.secondary {
  border-color: #dfe2e6;
  background: #fff;
}

.mypage-btn.inquiry {
  border-color: #ead315;
  background: #fee500;
  color: #191919;
}

.mypage-btn span {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
}

.mypage-tab:focus-visible,
.mypage-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 3px;
}

.mypage-state-card {
  display: flex;
  min-height: 250px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 36px 24px;
  border: 1px solid #e4e7eb;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.mypage-state-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f1f2f4;
  color: #5d636d;
  font-size: 19px;
}

.mypage-state-card.is-error .mypage-state-icon {
  background: #fff0f1;
  color: #d2182a;
}

.mypage-state-card h3 {
  margin: 0 0 8px;
  color: #292c32;
  font-size: 17px;
  font-weight: 800;
}

.mypage-state-card p {
  max-width: 480px;
  margin: 0 0 20px;
  color: #707680;
  font-size: 13px;
  line-height: 1.65;
}

.mypage-state-card.is-loading p {
  margin: 14px 0 0;
}

.mypage-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #eceef1;
  border-top-color: #e8192c;
  border-radius: 50%;
  animation: mypage-spin 0.75s linear infinite;
}

@keyframes mypage-spin {
  to { transform: rotate(360deg); }
}

.mypage-page .mypage-payments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mypage-page .mypage-pay-card {
  padding: 24px;
  border: 1px solid #e4e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(17, 24, 39, 0.035);
}

.mypage-page .mypage-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mypage-page .mypage-pay-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.mypage-page .mypage-pay-status.done {
  background: #e8f8ef;
  color: #087344;
}

.mypage-page .mypage-pay-status.wait {
  background: #fff5d7;
  color: #9a5b00;
}

.mypage-page .mypage-pay-status.cancel {
  background: #eff1f3;
  color: #5e646d;
}

.mypage-page .mypage-pay-status.partial {
  background: #fff0e5;
  color: #a34b08;
}

.mypage-page .mypage-pay-date {
  color: #8d929b;
  font-size: 12px;
}

.mypage-page .mypage-pay-course {
  margin: 0 0 16px;
  color: #22252a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.mypage-pay-details {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 15px 16px;
  border-radius: 12px;
  background: #f7f8f9;
}

.mypage-pay-details > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.mypage-pay-details dt,
.mypage-pay-details dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.mypage-pay-details dt {
  color: #828791;
}

.mypage-pay-details dd {
  overflow-wrap: anywhere;
  color: #444950;
  font-weight: 700;
}

.mypage-page .mypage-pay-amount {
  margin: 0;
  color: #17191d;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.mypage-page .mypage-pay-hint {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff9e7;
  color: #6c5a1c;
  font-size: 12px;
  line-height: 1.65;
}

.mypage-pay-actions {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eceef1;
}

.mypage-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

@media (max-width: 768px) {
  .mypage-page .mypage-section {
    padding: 24px 16px 56px;
  }
  .mypage-hero {
    padding: 26px 22px;
    border-radius: 20px;
  }
  .mypage-summary-grid {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .mypage-summary-card {
    min-height: 78px;
    padding: 15px 17px;
  }
  .mypage-course-list {
    grid-template-columns: 1fr;
  }
  .mypage-course-card,
  .mypage-course-card.is-featured,
  .mypage-page .mypage-pay-card {
    padding: 20px 18px;
  }
  .mypage-course-card.is-featured .mypage-course-head h3 {
    font-size: 19px;
  }
  .mypage-course-actions .mypage-btn {
    width: 100%;
  }
  .mypage-account-card {
    align-items: stretch;
  }
  .mypage-account-card .mypage-btn {
    width: 100%;
  }
  .mypage-password-form {
    max-width: none;
  }
  .mypage-password-actions .mypage-btn {
    width: 100%;
  }
