.agMypageStatus,
.agMypageStatus * {
  box-sizing: border-box;
}

:root {
  --premier-accent-color: #a55068;
  --royal-accent-color: #566d8f;
  --alert-color: #c0392b;
}

.agMypageStatus {
  --premier-accent-color: #a55068;
  --premier-progress-inactive: #ddd;
  --grade-main: #8b6566;
  --grade-bg: #f8f0f0;
  --grade-border: #8b6566;
  --premier-bg-color: #f8edee;
  --royal-bg-color: #eef3f8;
  --tab-bg: #f7f7f7;
  --tab-border: #ccc;
  --rank-icon: url("../images/icon_rank_bronze.svg");
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: #333;
  font-family: "Yu Gothic", "YuGothic", sans-serif;
}

.agMypageStatus.bronze {
  --grade-main: #8b6566;
  --grade-bg: #f8f0f0;
  --grade-border: #8b6566;
  --rank-icon: url("../images/icon_rank_bronze.svg");
}

.agMypageStatus.silver {
  --grade-main: #6d6d6d;
  --grade-bg: #f2f0ef;
  --grade-border: #6d6d6d;
  --rank-icon: url("../images/icon_rank_silver.svg");
}

.agMypageStatus.gold {
  --grade-main: #98640b;
  --grade-bg: #fbf6ec;
  --grade-border: #98640b;
  --rank-icon: url("../images/icon_rank_gold.svg");
}

.agMypageStatus.platinum {
  --grade-main: #517381;
  --grade-bg: #f2f6f8;
  --grade-border: #517381;
  --rank-icon: url("../images/icon_rank_platinum.svg");
}

.agMypageUserInfo,
.agMypageUserInfo * {
  box-sizing: border-box;
}

.agMypageUserInfo {
  margin-bottom: 20px;
}

.agMypageUserInfoDetails {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: 4px;
  background: #f7f7f7;
}

.agMypageUserInfoName {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.agMypageUserInfoLogin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agMypageUserInfoLoginIcon {
  aspect-ratio: 1 / 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8bc56c;
}

.agMypageUserInfoLoginText {
  color: #333;
  font-size: 12px;
  line-height: 1;
}

.agMypageStatusTabRadio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.agMypageStatusTabs {
  display: flex;
  align-items: stretch;
}

.agMypageStatusTab {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px solid var(--tab-border);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: var(--tab-bg);
  text-align: center;
  cursor: pointer;
}

.agMypageStatusTab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: calc(100% - 2px);
  height: 1px;
  background: var(--ag-tab-active-line, var(--tab-bg));
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.agMypageStatusTab + .agMypageStatusTab {
  margin-left: 5px;
}

.agMypageStatusTab:focus-visible {
  outline: 2px solid #8b6566;
  outline-offset: -2px;
}

.agMypageStatusTabRadioGrade:checked ~ .agMypageStatusTabs .agMypageStatusTabGrade,
.agMypageStatusTabRadioPremier:checked ~ .agMypageStatusTabs .agMypageStatusTabPremier,
.agMypageStatusTabRadioRoyal:checked ~ .agMypageStatusTabs .agMypageStatusTabRoyal {
  border-color: var(--grade-main);
  border-bottom: 0;
  margin-bottom: -1px;
  z-index: 2;

  --ag-tab-active-line: var(--grade-bg);
  background: var(--grade-bg);
}

.agMypageStatusTabRadioGrade:checked ~ .agMypageStatusTabs .agMypageStatusTabGrade::after,
.agMypageStatusTabRadioPremier:checked ~ .agMypageStatusTabs .agMypageStatusTabPremier::after,
.agMypageStatusTabRadioRoyal:checked ~ .agMypageStatusTabs .agMypageStatusTabRoyal::after {
  opacity: 1;
}

.agMypageStatusTabRadioRoyal:checked ~ .agMypageStatusTabs .agMypageStatusTabRoyal {
  border-color: var(--royal-accent-color);
  border-bottom: 0;

  --ag-tab-active-line: var(--royal-bg-color);
  background: var(--royal-bg-color);
}

.agMypageStatusTabRadioPremier:checked ~ .agMypageStatusTabs .agMypageStatusTabPremier {
  border-color: var(--premier-accent-color);

  --ag-tab-active-line: var(--premier-bg-color);
  background: var(--premier-bg-color);
}

.agMypageStatusTabMain {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.agMypageStatusTabSub {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1;
}

.agMypageStatusBody {
  display: none;
  padding: 20px 15px;
  border-top: 1px solid var(--grade-border);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 0 4px 4px;
  background: var(--grade-bg);
}

.agMypageStatusBodyPremier {
  border-color: var(--premier-accent-color);
  background: var(--premier-bg-color);
}

.agMypageStatusBody.agMypageStatusBodyPremier.agMypageStatusBodyPremierAggregated {
  padding: 15px;
}

.agMypageStatusBodyRoyal {
  border-color: var(--royal-accent-color);
  background: var(--royal-bg-color);
}

.agMypageStatusTabRadioGrade:checked ~ .agMypageStatusBodies .agMypageStatusBodyGrade,
.agMypageStatusTabRadioPremier:checked ~ .agMypageStatusBodies .agMypageStatusBodyPremier,
.agMypageStatusTabRadioRoyal:checked ~ .agMypageStatusBodies .agMypageStatusBodyRoyal {
  display: block;
}

.agMypageGradeTitle,
.agMypageGradeStatusTitle {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.agMypageStatusPlaceholder {
  margin-top: 15px;
  padding: 30px 15px;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.agMypagePremierTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierStatusTitle {
  margin: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierCurrentRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.agMypagePremierCurrent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.agMypagePremierRankIcon {
  aspect-ratio: 1 / 1;
  width: 32px;
  height: 32px;
  background: center / contain no-repeat url("../images/icon_rose_red.svg");
}

.agMypagePremierCurrentName {
  margin: 0;
  color: var(--premier-accent-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
}

.agMypagePremierNote {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.agMypagePremierDivider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #ccc;
}

.agMypagePremierStatusTitleNewCond {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.agMypagePremierStatusTitleHeading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierStatusTitleLead {
  margin: 0;
  font-family: "Yu Gothic", "YuGothic", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.agMypagePremierProgressCard {
  padding: 15px;
  border-radius: 4px;
  background: #fff;
}

.agMypagePremierProgressCardNewCond {
  padding: 0;
  background: transparent;
}

.agMypagePremierProgressCondition {
  border-radius: 4px;
  overflow: hidden;
}

.agMypagePremierProgressConditionTitle {
  margin: 0;
  padding: 15px;
  background: var(--premier-accent-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.agMypagePremierProgressConditionBody {
  padding: 15px;
  background: #fff;
}

.agMypagePremierProgress {
  position: relative;
}

.agMypagePremierProgressBase,
.agMypagePremierProgressCurrent {
  position: absolute;
  top: 9px;
  left: 11px;
  height: 6px;
  border-radius: 999px;
}

.agMypagePremierProgressBase {
  width: calc(100% - 22px);
  background: var(--premier-progress-inactive);
}

.agMypagePremierProgressCurrent {
  width: calc(100% - 85px);
  background: var(--premier-accent-color);
}

.agMypagePremierSteps {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agMypagePremierStep {
  position: relative;
  width: 68px;
  padding-top: 34px;
  color: #ddd;
  text-align: left;
}

.agMypagePremierStep:not(.active) {
  top: 2px;
}

.agMypagePremierStep::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #ddd;
}

.agMypagePremierStep.active::before {
  width: 24px;
  height: 24px;
  border-color: transparent;
  background: center / contain no-repeat url("../images/icon_rose_white.svg");
}

.agMypagePremierStep.active:first-child::before {
  background: center / contain no-repeat url("../images/icon_premier_standard_circle.svg");
}

.agMypagePremierStepName,
.agMypagePremierStepValue {
  display: block;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.agMypagePremierStepName {
  font-weight: 700;
}

.agMypagePremierStepValue {
  margin-top: 4px;
}

.agMypagePremierStep.active .agMypagePremierStepName {
  margin-top: 2px;
  color: var(--premier-accent-color);
}

.agMypagePremierStep.active .agMypagePremierStepValue {
  color: var(--premier-accent-color);
}

.agMypagePremierStep:nth-child(2) {
  text-align: center;
}

.agMypagePremierStep:nth-child(2)::before {
  left: 50%;
  transform: translateX(-50%);
}

.agMypagePremierStep:nth-child(2)::after {
  left: 50%;
  transform: translateX(-50%);
}

.agMypagePremierStep:nth-child(3) {
  text-align: right;
}

.agMypagePremierStep:nth-child(3)::before {
  left: auto;
  right: 0;
}

.agMypagePremierStep:nth-child(3)::after {
  left: auto;
  right: 6px;
}

.agMypagePremierProgressCardNewCond .agMypagePremierProgressBase,
.agMypagePremierProgressAmountSplit .agMypagePremierProgressBase {
  top: 9px;
  left: 18px;
  width: calc(100% - 28px);
  display: flex;
  gap: 12px;
  height: 6px;
  border-radius: 0;
  background: transparent;
}

.agMypagePremierProgressCardNewCond .agMypagePremierProgressScale,
.agMypagePremierProgressAmountSplit .agMypagePremierProgressScale {
  display: flex;
  gap: 0;
  min-width: 0;
  background: var(--premier-progress-inactive);
}

.agMypagePremierProgressCardNewCond .agMypagePremierProgressScaleStandardToPremier,
.agMypagePremierProgressAmountSplit .agMypagePremierProgressScaleStandardToPremier {
  flex: 0 0 calc((100% - 18px - 4px) / 2 + 2px);
  margin-left: -2px;
}

.agMypagePremierProgressCardNewCond .agMypagePremierProgressScalePremierToVip,
.agMypagePremierProgressAmountSplit .agMypagePremierProgressScalePremierToVip {
  flex: 0 0 calc((100% - 18px + 6px) / 2);
  margin-left: 2px;
}

.agMypagePremierProgressCardNewCond .agMypagePremierProgressMeter,
.agMypagePremierProgressAmountSplit .agMypagePremierProgressMeter {
  position: relative;
  z-index: 0;
  flex: 1 1 0;
  height: 6px;
  border-radius: 0;
  background: var(--premier-progress-inactive);
}

.agMypagePremierProgressCardNewCond .agMypagePremierProgressMeter::before,
.agMypagePremierProgressAmountSplit .agMypagePremierProgressMeter::before {
  content: "";
  position: absolute;
  inset: 0 -1px;
  z-index: -1;
  background: inherit;
}

.agMypagePremierProgressCardNewCond .agMypagePremierProgressMeter.active,
.agMypagePremierProgressAmountSplit .agMypagePremierProgressMeter.active {
  background: var(--premier-accent-color);
}

.agMypagePremierProgressCardNewCond
  .agMypagePremierProgressScale
  .agMypagePremierProgressMeter.active:has(+ .agMypagePremierProgressMeter:not(.active)),
.agMypagePremierProgressAmountSplit
  .agMypagePremierProgressScale
  .agMypagePremierProgressMeter.active:has(+ .agMypagePremierProgressMeter:not(.active)) {
  border-radius: 0 999px 999px 0;
}

.agMypagePremierProgressCardNewCond .agMypagePremierProgressCurrent,
.agMypagePremierProgressAmountSplit .agMypagePremierProgressCurrent {
  display: none;
}

.agMypagePremierProgressCardNewCond .agMypagePremierStep::before {
  border-color: #ddd;
  background: #ddd;
}

.agMypagePremierProgressCardNewCond .agMypagePremierStep.active::before {
  border-color: transparent;
  background: center / contain no-repeat url("../images/icon_rose_white.svg");
}

.agMypagePremierProgressCardNewCond .agMypagePremierStep.active:first-child::before {
  background: center / contain no-repeat url("../images/icon_premier_standard_circle.svg");
}

.agMypagePremierProgressCardNewCond .agMypagePremierStep.active .agMypagePremierStepName,
.agMypagePremierProgressCardNewCond .agMypagePremierStep.active .agMypagePremierStepValue {
  color: var(--premier-accent-color);
}

.agMypagePremierConditionOr {
  margin: 15px 0;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.agMypagePremierRemaining {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: 20px 0 0;
  text-align: center;
}

.agMypagePremierRemaining span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierRemaining .agMypagePremierRemainingValue {
  color: var(--premier-accent-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.agMypagePremierRemaining.agMypagePremierRemainingAchieved .agMypagePremierRemainingValue {
  display: none;
}

.agMypagePremierRemaining:where(.agMypagePremierRemainingAchieved) :where(span:first-child) {
  font-size: 16px;
}

.agMypagePremierAggregateNote {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.agMypagePremierAggregateNoteLeft {
  text-align: left;
}

.agMypagePremierAggregateNoteAdditional {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

.agMypagePremierYears {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agMypagePremierYear {
  position: relative;
  width: 48px;
  padding-top: 34px;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.agMypagePremierYear::before,
.agMypagePremierYear::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.agMypagePremierProgressCardNewCond .agMypagePremierYear::before {
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: center / contain no-repeat url("../images/icon_premier_check_inactive.svg");
}

.agMypagePremierProgressCardNewCond .agMypagePremierYear {
  width: fit-content;
}

.agMypagePremierProgressCardNewCond .agMypagePremierYear::after {
  display: none;
}

.agMypagePremierProgressCardNewCond .agMypagePremierYear.done::before {
  background: center / contain no-repeat url("../images/icon_premier_check_active.svg");
}

.agMypagePremierProgressCardNewCond .agMypagePremierYear.done::after {
  display: none;
}

.agMypagePremierProgressCardNewCond .agMypagePremierYear.done {
  color: var(--premier-accent-color);
}

.agMypagePremierServiceLink {
  margin-top: 20px;
}

.agMypageStatusBodyPremierAggregated .agMypagePremierAggregatedCard,
.agMypageStatusBodyRoyalAggregated .agMypagePremierAggregatedCard {
  width: 100%;
  padding: 20px 15px;
  border-radius: 4px;
  background: #fff;
  text-align: center;
}

.agMypagePremierAggregatedTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierAggregatedText {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.agMypagePremierAggregatedText p {
  margin: 0;
}

.agMypagePremierAggregatedBreakPc {
  display: none;
}

.agMypagePremierAggregatedContactLink {
  display: inline-block;
  margin-top: 10px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: underline;
}

.agMypagePremierServiceLinkAggregated {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 0;
}

.agMypageStatusBodyRoyalAggregated
  .agMypageStatusServiceLink.agMypageRoyalServiceLink.agMypagePremierServiceLinkAggregated {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.agMypageStatusServiceLink.agMypagePremierServiceLinkAggregated::after {
  display: inline-block;
  position: static;
  right: auto;
  top: auto;
  transform: none;
  flex: 0 0 14px;
}

.agMypageGradeRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.agMypageGradeCurrent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agMypageGradeRankIcon {
  aspect-ratio: 1 / 1;
  width: 32px;
  height: 32px;
  background: center / contain no-repeat var(--rank-icon);
}

.agMypageGradeCurrentName {
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  color: var(--grade-main);
}

.agMypageStatusDetail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #333;
  font-size: 14px;
  line-height: 1;
  text-decoration: underline;
}

.agMypageStatusDetailIcon {
  aspect-ratio: 1 / 1;
  width: 20px;
  height: 20px;
  background: center / contain no-repeat url("../images/icon_information.svg");
}

.agMypageGradeDiscounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 10px;
}

.agMypageGradeDiscount {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agMypageGradeDiscountLabel {
  display: inline-block;
  padding: 5px 10px;
  background: var(--grade-main);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.agMypageGradeDiscountValue {
  color: var(--alert-color);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.agMypageGradeDivider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #ccc;
}

.agMypageGradeStatusBox {
  margin-top: 10px;
  padding: 15px;
  border-radius: 4px;
  background: #fff;
}

.agMypageGradeStatusLine {
  position: relative;
  display: flex;
  width: calc(100% - 78px);
  margin: 11px auto 0;
}

.agMypageGradeStatusSegment {
  flex: 1;
  height: 2px;
  background: #ddd;
}

.agMypageGradeStatusSegment + .agMypageGradeStatusSegment {
  margin-left: 29px;
}

.agMypageGradeStatusSegment.active {
  background: var(--grade-main);
}

.agMypageStatus.bronze .agMypageGradeStatusSegment:nth-child(-n + 1),
.agMypageStatus.silver .agMypageGradeStatusSegment:nth-child(-n + 2),
.agMypageStatus.gold .agMypageGradeStatusSegment:nth-child(-n + 3),
.agMypageStatus.platinum .agMypageGradeStatusSegment:nth-child(-n + 3) {
  background: var(--grade-main);
}

.agMypageGradeSteps {
  display: flex;
  justify-content: space-between;
  margin: -13px 0 0;
  padding: 0;
  list-style: none;
}

.agMypageGradeStep {
  position: relative;
  width: 48px;
  padding-top: 34px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #ddd;
}

.agMypageGradeStep::before,
.agMypageGradeStep::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.agMypageGradeStep::before {
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddd;
}

.agMypageGradeStep::after {
  top: 6px;
  width: 12px;
  height: 8px;
  background: center / 12px 8px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M4.2 7.4.5 3.8 1.8 2.5 4.2 4.9 10.2.9 11.5 2.2z'/%3E%3C/svg%3E");
}

.agMypageGradeStep.done {
  color: var(--grade-main);
}

.agMypageGradeStep.done::before {
  border: 1px solid var(--grade-main);
  background: var(--grade-main);
}

.agMypageStatusBodyGrade .agMypageGradeStep::before {
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat url("../images/icon_grade_check_inactive.svg");
}

.agMypageStatus.bronze .agMypageStatusBodyGrade .agMypageGradeStep.done::before {
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat url("../images/icon_grade_check_active_bronze.svg");
}

.agMypageStatus.silver .agMypageStatusBodyGrade .agMypageGradeStep.done::before {
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat url("../images/icon_grade_check_active_silver.svg");
}

.agMypageStatus.gold .agMypageStatusBodyGrade .agMypageGradeStep.done::before {
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat url("../images/icon_grade_check_active_gold.svg");
}

.agMypageStatus.platinum .agMypageStatusBodyGrade .agMypageGradeStep.done::before {
  border: 0;
  border-radius: 0;
  background: center / contain no-repeat url("../images/icon_grade_check_active_platinum.svg");
}

.agMypageStatusBodyGrade .agMypageGradeStep::after {
  display: none;
}

.agMypageGradeNext {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  margin-top: 20px;
  text-align: center;
}

.agMypageGradeNext span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.agMypageGradeNext .agMypageGradeNextAmount {
  color: var(--grade-main);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.agMypageGradeReached {
  margin-top: 20px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.agMypageGradeNote {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.agMypageStatusServiceLink {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  padding-right: 24px;
  color: #333;
  font-size: 14px;
  line-height: 1;
  text-decoration: underline;
}

.agMypageStatusServiceLink::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background: center / 14px 14px no-repeat url("../images/icon_external_open.svg");
}

.agMypageStatusServiceLink.agMypagePremierServiceLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 0;
  transition: none;
}

.agMypageStatusServiceLink.agMypagePremierServiceLink::after {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  flex: 0 0 14px;
}

.agMypageStatusServiceLink.agMypagePremierServiceLink:hover {
  opacity: 1;
}

.agMypageRoyalTitle,
.agMypageRoyalStatusTitle {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.agMypageRoyalCurrentRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.agMypageRoyalCurrent {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agMypageRoyalRankIcon {
  aspect-ratio: 1 / 1;
  width: 32px;
  height: 32px;
  background: center / contain no-repeat url("../images/icon_royal.svg");
}

.agMypageRoyalCurrentName {
  margin: 0;
  color: var(--royal-accent-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
}

.agMypageRoyalNote {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.agMypageRoyalDivider {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #ccc;
}

.agMypageRoyalStatusTitleWrap {
  padding-bottom: 15px;
}

.agMypageRoyalStatusLead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.agMypageRoyalConditions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agMypageRoyalCandidateCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-radius: 4px;
  background: #fff;
}

.agMypageRoyalCandidateTitle {
  margin: 0;
  color: var(--royal-accent-color);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.agMypageRoyalCandidateNotes {
  width: 100%;
  font-size: 12px;
  line-height: 1.4;
}

.agMypageRoyalCandidateNote {
  margin: 0;
}

.agMypageRoyalCandidateNoteAlert {
  color: var(--alert-color);
}

.agMypageRoyalCondition {
  border-radius: 4px;
  overflow: hidden;
}

.agMypageRoyalConditionTitle {
  margin: 0;
  padding: 15px;
  background: var(--royal-accent-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.agMypageRoyalConditionBody {
  min-height: 75px;
  padding: 15px;
  border-radius: 0 0 4px 4px;
  background: #fff;
}

.agMypageRoyalConditionBodySimple {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.agMypageRoyalPurchaseList {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agMypageRoyalPurchaseItem {
  display: flex;
  justify-content: center;
  align-items: center;
}

.agMypageRoyalPurchaseIcon {
  aspect-ratio: 1 / 1;
  width: 24px;
  height: 24px;
  background: center / contain no-repeat url("../images/icon_royal_inactive.svg");
}

.agMypageRoyalPurchaseItem.active .agMypageRoyalPurchaseIcon {
  background-image: url("../images/icon_royal_active.svg");
}

.agMypageRoyalRemaining {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin: 10px 0 0;
  color: #333;
  text-align: center;
}

.agMypageRoyalRemaining span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.agMypageRoyalRemaining .agMypageRoyalRemainingValue {
  color: var(--royal-accent-color);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.agMypageRoyalRemaining.agMypageRoyalRemainingAchieved {
  align-items: center;
  color: var(--royal-accent-color);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.agMypageRoyalConditionNote {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.agMypageRoyalConditionBodySimple .agMypageRoyalConditionNote {
  margin-top: 0;
}

.agMypageRoyalConditionStatus {
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.agMypageRoyalConditionTarget {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.agMypageRoyalConditionTargetEmphasis {
  color: var(--royal-accent-color);
  font-size: 18px;
}

.agMypageRoyalConditionTargetEmphasis.alert {
  color: var(--alert-color);
}

.agMypageRoyalCondition.achieved .agMypageRoyalConditionBodySimple .agMypageRoyalConditionStatus {
  color: var(--royal-accent-color);
}

.agMypageRoyalConditionAchievedNote {
  margin: 0;
  width: 100%;
  color: var(--alert-color);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
}

.agMypageRoyalServiceLink {
  margin-top: 20px;
}

@media screen and (min-width: 768px) {
  .agMypageUserInfoDetails {
    justify-content: flex-start;
    gap: 20px;
  }

  .agMypageUserInfoName {
    font-size: 22px;
    line-height: 1.6;
  }

  .agMypageStatus {
    padding: 0;
  }

  .agMypageStatusTabMain {
    font-size: 16px;
  }

  .agMypageStatusBody {
    padding: 30px 120px;
  }

  .agMypageStatusBody.agMypageStatusBodyPremier.agMypageStatusBodyPremierAggregated {
    padding: 30px;
  }

  .agMypageGradeTitle,
  .agMypageGradeStatusTitle {
    font-size: 16px;
  }

  .agMypageGradeCurrentName {
    font-size: 22px;
  }

  .agMypageGradeDiscountValue {
    font-size: 16px;
  }

  .agMypageGradeDivider {
    margin: 20px 0;
  }

  .agMypageGradeStatusBox {
    padding: 30px;
  }

  .agMypageGradeStatusLine {
    max-width: 632px;
    width: calc(100% - 88px);
  }

  .agMypageGradeStatusSegment + .agMypageGradeStatusSegment {
    margin-left: 28px;
  }

  .agMypageGradeSteps {
    max-width: 720px;
    margin: -13px auto 0;
  }

  .agMypageGradeStep {
    width: fit-content;
    font-size: 14px;
  }

  .agMypageGradeNext {
    margin-top: 20px;
  }

  .agMypageGradeNext span {
    font-size: 16px;
  }

  .agMypageGradeNext .agMypageGradeNextAmount {
    font-size: 22px;
    line-height: 1;
  }

  .agMypagePremierTitle,
  .agMypagePremierCurrentRow,
  .agMypagePremierNote,
  .agMypagePremierDivider,
  .agMypagePremierStatusTitleNewCond,
  .agMypagePremierProgressCardNewCond {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }

  .agMypagePremierTitle,
  .agMypagePremierStatusTitleHeading,
  .agMypagePremierProgressConditionTitle {
    font-size: 16px;
  }

  .agMypagePremierStatusTitle {
    font-size: 16px;
  }

  .agMypagePremierCurrentName {
    font-size: 22px;
  }

  .agMypagePremierStep {
    padding-top: 34px;
  }

  .agMypagePremierStatusTitleNewCond {
    gap: 4px;
    margin-bottom: 15px;
  }

  .agMypagePremierStatusTitleLead {
    line-height: 1.7;
  }

  .agMypagePremierProgressCardNewCond {
    display: flex;
    align-items: stretch;
    gap: 15px;
  }

  .agMypagePremierProgressCardNewCond .agMypagePremierProgressConditionAmount,
  .agMypagePremierProgressCardNewCond .agMypagePremierProgressConditionYears {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .agMypagePremierProgressCardNewCond
    .agMypagePremierProgressConditionAmount
    .agMypagePremierProgressConditionTitle,
  .agMypagePremierProgressCardNewCond
    .agMypagePremierProgressConditionYears
    .agMypagePremierProgressConditionTitle {
    padding: 15px;
  }

  .agMypagePremierProgressCardNewCond
    .agMypagePremierProgressConditionAmount
    .agMypagePremierProgressConditionBody,
  .agMypagePremierProgressCardNewCond
    .agMypagePremierProgressConditionYears
    .agMypagePremierProgressConditionBody {
    padding: 30px 15px;
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  .agMypagePremierProgressCardNewCond
    .agMypagePremierProgressConditionAmount
    .agMypagePremierProgressAmount {
    width: 340px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .agMypagePremierProgressCardNewCond
    .agMypagePremierProgressConditionAmount
    .agMypagePremierStepsAmount {
    width: 340px;
    max-width: 100%;
  }

  .agMypagePremierProgressCardNewCond .agMypagePremierProgressConditionYears .agMypagePremierYears {
    width: 340px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .agMypagePremierProgressCard:not(.agMypagePremierProgressCardNewCond) {
    padding: 30px;
  }

  .agMypagePremierProgressCard:not(.agMypagePremierProgressCardNewCond)
    .agMypagePremierProgressAmountSplit {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .agMypagePremierConditionOr {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
  }

  .agMypagePremierProgressCardNewCond
    .agMypagePremierProgressConditionAmount
    .agMypagePremierRemaining {
    margin-top: 20px;
  }

  .agMypagePremierProgressCardNewCond
    .agMypagePremierProgressConditionYears
    .agMypagePremierRemaining {
    margin-top: 36px;
  }

  .agMypagePremierRemaining span {
    font-size: 16px;
  }

  .agMypagePremierRemaining span:first-child {
    font-size: 14px;
  }

  .agMypagePremierRemaining .agMypagePremierRemainingValue {
    font-size: 18px;
    line-height: 1;
  }

  .agMypagePremierProgressCardNewCond .agMypagePremierRemaining span:first-child {
    font-size: 16px;
  }

  .agMypagePremierProgressCardNewCond .agMypagePremierRemaining .agMypagePremierRemainingValue {
    font-size: 22px;
  }

  .agMypageStatusBodyPremierAggregated .agMypagePremierAggregatedCard,
  .agMypageStatusBodyPremierAggregated .agMypagePremierServiceLinkAggregated,
  .agMypageStatusBodyRoyalAggregated .agMypagePremierAggregatedCard,
  .agMypageStatusBodyRoyalAggregated .agMypagePremierServiceLinkAggregated {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .agMypageStatusBodyPremierAggregated
    .agMypageStatusServiceLink.agMypagePremierServiceLinkAggregated {
    display: flex;
    justify-content: flex-start;
  }

  .agMypagePremierAggregatedText {
    line-height: 1.7;
    text-align: center;
  }

  .agMypagePremierAggregatedBreakPc {
    display: inline;
  }

  .agMypageRoyalTitle,
  .agMypageRoyalCurrentRow,
  .agMypageRoyalNote,
  .agMypageRoyalDivider,
  .agMypageRoyalStatusTitleWrap,
  .agMypageRoyalConditions,
  .agMypageRoyalCandidateCard,
  .agMypageRoyalServiceLink {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }

  .agMypageRoyalTitle,
  .agMypageRoyalStatusTitle,
  .agMypageRoyalConditionTitle,
  .agMypageRoyalCandidateTitle {
    font-size: 16px;
  }

  .agMypageRoyalCurrentName {
    font-size: 22px;
  }

  .agMypageRoyalConditionStatus {
    position: relative;
    top: 6px;
  }

  .agMypageRoyalStatusLead {
    line-height: 1.7;
  }

  .agMypageRoyalConditions {
    flex-direction: row;
    align-items: stretch;
  }

  .agMypageRoyalCondition {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .agMypageRoyalConditionBody {
    flex: 1 1 auto;
    min-height: auto;
    padding: 30px 15px;
  }

  .agMypageRoyalConditionBodySimple {
    min-height: 173px;
  }

  .agMypageRoyalPurchaseList {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .agMypageRoyalServiceLink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-right: 0;
  }

  .agMypageStatusServiceLink.agMypageRoyalServiceLink::after {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    flex: 0 0 14px;
  }
}

/* modal styles merged from ag_mypage_status_modal.css */
.agMypageStatusDetailButton {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: none;
}

.agMypageStatusDetailButton:hover {
  opacity: 1;
  box-shadow: none !important;
  transform: none !important;
}

.agMypageStatusDetailButton:focus-visible,
.agMypageStatusDetailButton:active {
  box-shadow: none !important;
  transform: none !important;
}

.agMypageStatusModal {
  --premier-accent-color: #a55068;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  overflow-y: auto;
  padding: 60px 20px 100px;
  background: rgb(51 51 51 / 80%);
}

.agMypageStatusModal.isOpen {
  display: block;
}

.agMypageStatusModalDialog {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.agMypageStatusModalTopClose {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 0 15px auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.agMypageStatusModalTopClose:hover,
.agMypageStatusModalTopClose:focus,
.agMypageStatusModalTopClose:active {
  box-shadow: none !important;
  transform: none !important;
}

.agMypageStatusModalCloseIcon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.agMypageStatusModalCloseIcon::before,
.agMypageStatusModalCloseIcon::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 20px;
  height: 1px;
  background: #fff;
}

.agMypageStatusModalCloseIcon::before {
  transform: rotate(45deg);
}

.agMypageStatusModalCloseIcon::after {
  transform: rotate(-45deg);
}

.agMypageStatusModalPanel {
  background: #fff;
  padding: 40px 20px 30px;
  color: #333;
  font-family: "Yu Gothic", "YuGothic", sans-serif;
}

.agMypageStatusModalSection {
  padding-bottom: 20px;
}

.agMypageStatusModalTitle {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.agMypageStatusModalText {
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.4;
}

.agMypageStatusModalInlineLink {
  color: #333;
  text-decoration: underline;
}

.agMypageStatusModalBenefits {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.agMypageStatusModalHeading {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.agMypageStatusModalCards {
  margin-top: 10px;
}

.agMypageStatusModalCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.agMypageStatusModalCard + .agMypageStatusModalCard {
  margin-top: 10px;
}

.agMypageStatusModalBenefitCol .agMypageStatusModalText {
  margin-top: 10px;
}

.agMypageStatusModalCardInfo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.agMypageStatusModalGradeIcon,
.agMypageStatusModalServiceIcon {
  aspect-ratio: 1 / 1;
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.agMypageStatusModalGradeIcon {
  background: center / contain no-repeat;
}

.agMypageStatusModalGradeIcon.bronze {
  background-image: url("../images/icon_rank_bronze.svg");
}

.agMypageStatusModalGradeIcon.silver {
  background-image: url("../images/icon_rank_silver.svg");
}

.agMypageStatusModalGradeIcon.gold {
  background-image: url("../images/icon_rank_gold.svg");
}

.agMypageStatusModalGradeIcon.platinum {
  background-image: url("../images/icon_rank_platinum.svg");
}

.agMypageStatusModalServiceIcon {
  border-radius: 4px;
  background: #faf6ef;
}

.agMypageStatusModalServiceIcon::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: center / contain no-repeat;
}

.agMypageStatusModalServiceIcon.tag::before {
  background-image: url("../images/icon_tag.svg");
}

.agMypageStatusModalServiceIcon.truck::before {
  background-image: url("../images/icon_track.svg");
}

.agMypageStatusModalCardText {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.agMypageStatusModalCardTitle {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.agMypageStatusModalCardTitle.bronze {
  color: #8b6566;
}

.agMypageStatusModalCardTitle.silver {
  color: #6d6d6d;
}

.agMypageStatusModalCardTitle.gold {
  color: #98640b;
}

.agMypageStatusModalCardTitle.platinum {
  color: #517381;
}

.agMypageStatusModalCardSub {
  font-size: 12px;
  line-height: 1;
}

.agMypageStatusModalCardValue {
  margin-left: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.agMypageStatusModalCardValueMain {
  font-size: 16px;
}

.agMypageStatusModalCardValueSub {
  font-size: 12px;
}

.agMypageStatusModalCardValue.bronze {
  color: #8b6566;
}

.agMypageStatusModalCardValue.silver {
  color: #6d6d6d;
}

.agMypageStatusModalCardValue.gold {
  color: #98640b;
}

.agMypageStatusModalCardValue.platinum {
  color: #517381;
}

.agMypageStatusModalNote {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.agMypageStatusModalNote + .agMypageStatusModalNote {
  margin-top: 0;
}

.agMypageStatusModalPlus {
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  font-size: 0;
  line-height: 0;
}

.agMypageStatusModalPlus::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: center / contain no-repeat url("../images/icon_plus.svg");
}

.agMypageStatusModalFooter {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.agMypageStatusModalCloseButton {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
  text-decoration: underline;
  cursor: pointer;
}

.agMypageStatusModalCloseButton:hover,
.agMypageStatusModalCloseButton:focus,
.agMypageStatusModalCloseButton:active {
  box-shadow: none !important;
}

.agMypageStatusModalPanelPremier {
  padding: 40px 20px 0;
}

.agMypagePremierModalSection {
  padding-bottom: 30px;
}

.agMypagePremierModalTitle {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.agMypagePremierModalText {
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.4;
}

.agMypagePremierModalInlineLink {
  color: #333;
  text-decoration: underline;
}

.agMypagePremierModalConditionTitle {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierModalRule {
  margin-top: 10px;
}

.agMypagePremierModalRuleLabel {
  padding-bottom: 10px;
  border-bottom: 1px solid #d7a5b3;
  color: var(--premier-accent-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierModalRuleBody {
  padding-top: 15px;
}

.agMypagePremierModalPartnerCardWrap + .agMypagePremierModalPartnerCardWrap {
  margin-top: 15px;
}

.agMypagePremierModalPartnerName {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.agMypagePremierModalPartnerCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.agMypagePremierModalPartnerCondition {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierModalPartnerValueWrap {
  text-align: right;
}

.agMypagePremierModalPartnerValue {
  color: var(--premier-accent-color);
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.agMypagePremierModalPartnerValueMain {
  font-size: 16px;
}

.agMypagePremierModalPartnerValueSub {
  font-size: 12px;
}

.agMypagePremierModalPartnerValueNote {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1;
}

.agMypagePremierModalRuleSecondary {
  margin-top: 45px;
}

.agMypagePremierModalTargetText {
  font-size: 14px;
  line-height: 1.4;
}

.agMypagePremierModalTargetProducts {
  margin-top: 30px;
  padding: 15px;
  border-radius: 4px;
  background: #f7f7f7;
  font-size: 14px;
  line-height: 1.4;
}

.agMypagePremierModalNotice {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.agMypagePremierModalFooter {
  padding: 20px 0 60px;
  border-top: 1px solid #333;
}

.agMypageStatusModalPanelPremierNew {
  padding: 40px 20px 0;
}

.agMypagePremierNewModalSection {
  padding-bottom: 30px;
}

.agMypagePremierNewModalTitle {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.agMypagePremierNewModalText {
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.4;
}

.agMypagePremierNewModalInlineLink {
  color: #333;
  text-decoration: underline;
}

.agMypagePremierNewModalConditionTitle {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierNewModalRule {
  margin-top: 12px;
}

.agMypagePremierNewModalRule + .agMypagePremierNewModalRule {
  margin-top: 30px;
}

.agMypagePremierNewModalRuleLabel {
  padding: 0 0 10px;
  border-bottom: 1px solid #d7a5b3;
  color: var(--premier-accent-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierNewModalRuleBody {
  padding-top: 15px;
}

.agMypageStatusModalPanelPremierNew
  .agMypagePremierNewModalConditionGroup
  + .agMypagePremierNewModalConditionGroup {
  margin-top: 15px;
}

.agMypagePremierNewModalPartnerName {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.agMypagePremierNewModalCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.agMypagePremierNewModalCardLabel {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.agMypagePremierNewModalCardValueWrap {
  text-align: right;
}

.agMypagePremierNewModalCardValue {
  color: var(--premier-accent-color);
  font-size: 0;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.agMypagePremierNewModalCardValueMain {
  font-size: 15px;
}

.agMypagePremierNewModalCardValueMainAmount {
  font-size: 16px;
}

.agMypagePremierNewModalCardValueSub {
  font-size: 12px;
}

.agMypagePremierNewModalCardSubnote {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1;
}

.agMypagePremierNewModalOr {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.agMypagePremierNewModalNotes {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.agMypagePremierNewModalTargetText {
  font-size: 14px;
  line-height: 1.4;
}

.agMypagePremierNewModalTargetProducts {
  margin-top: 30px;
  padding: 15px;
  border-radius: 4px;
  background: #f7f7f7;
  font-size: 14px;
  line-height: 1.4;
}

.agMypagePremierNewModalTargetNotes {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.agMypagePremierNewModalFooter {
  padding: 20px 0 60px;
  border-top: 1px solid #333;
}

.agMypageStatusModalPanelRoyal {
  padding: 40px 20px 0;
}

.agMypageRoyalModalSection {
  padding-bottom: 30px;
}

.agMypageRoyalModalTitle {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.agMypageRoyalModalText {
  margin-top: 30px;
  font-size: 14px;
  line-height: 1.4;
}

.agMypageRoyalModalInlineLink {
  color: #333;
  text-decoration: underline;
}

.agMypageRoyalModalConditionTitle {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.agMypageRoyalModalConditionLead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.agMypageRoyalModalConditions {
  margin-top: 10px;
}

.agMypageRoyalModalCondition {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 80px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.agMypageRoyalModalCondition + .agMypageRoyalModalCondition {
  margin-top: 10px;
}

.agMypageRoyalModalConditionIndex {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--royal-accent-color);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.agMypageRoyalModalConditionBody {
  min-width: 0;
}

.agMypageRoyalModalConditionLabel {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.agMypageRoyalModalConditionValue {
  margin-top: 6px;
  color: var(--royal-accent-color);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.agMypageRoyalModalNotes {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.agMypageRoyalModalFooter {
  padding: 20px 0 30px;
  border-top: 1px solid #333;
}

html.agMypageStatusModalOpen,
body.agMypageStatusModalOpen {
  overflow: hidden;
}

body.agMypageStatusModalOpen {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .agMypageStatusModal {
    padding: 110px 20px 40px;
  }

  .agMypageStatusModalDialog {
    max-width: 920px;
  }

  .agMypageStatusModalTopClose {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
  }

  .agMypageStatusModalCloseIcon {
    width: 40px;
    height: 40px;
  }

  .agMypageStatusModalCloseIcon::before,
  .agMypageStatusModalCloseIcon::after {
    top: 20px;
    width: 40px;
  }

  .agMypageStatusModalPanel {
    padding: 60px;
  }

  .agMypageStatusModalTitle {
    font-size: 26px;
    line-height: 1.6;
  }

  .agMypageStatusModalText {
    margin-top: 30px;
    line-height: 1.7;
  }

  .agMypageStatusModalSection {
    padding-bottom: 30px;
  }

  .agMypageStatusModalBenefits {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
  }

  .agMypageStatusModalBenefitCol {
    min-width: 0;
  }

  .agMypageStatusModalPlus {
    display: flex;
    justify-content: center;
    width: 84px;
    padding: 170px 0 0;
  }

  .agMypageStatusModalHeading {
    font-size: 22px;
    line-height: 1;
  }

  .agMypageStatusModalCards {
    margin-top: 10px;
  }

  .agMypageStatusModalCard {
    min-height: 64px;
    padding: 14px 15px;
  }

  .agMypageStatusModalCardTitle {
    font-size: 16px;
  }

  .agMypageStatusModalNote + .agMypageStatusModalNote {
    margin-top: 5px;
  }

  .agMypageStatusModalFooter {
    margin-top: 30px;
  }

  .agMypageStatusModalPanelPremier {
    padding: 60px 60px 0;
  }

  .agMypagePremierModalTitle {
    font-size: 26px;
    line-height: 1.6;
  }

  .agMypagePremierModalConditionTitle {
    font-size: 22px;
  }

  .agMypagePremierModalPartnerCards {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }

  .agMypagePremierModalPartnerCardWrap {
    flex: 1 1 0;
    min-width: 0;
  }

  .agMypagePremierModalPartnerCardWrap + .agMypagePremierModalPartnerCardWrap {
    margin-top: 0;
  }

  .agMypageStatusModalPanelPremierNew {
    padding: 60px 60px 0;
  }

  .agMypagePremierNewModalTitle {
    font-size: 26px;
    line-height: 1.6;
  }

  .agMypagePremierNewModalConditionTitle {
    font-size: 22px;
  }

  .agMypageStatusModalPanelRoyal {
    padding: 60px 60px 0;
  }

  .agMypageRoyalModalTitle {
    font-size: 26px;
    line-height: 1.6;
  }

  .agMypageRoyalModalText {
    line-height: 1.7;
  }

  .agMypageRoyalModalConditionTitle {
    font-size: 22px;
  }

  .agMypageRoyalModalConditions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .agMypageRoyalModalCondition {
    min-height: 66px;
    padding: 15px;
  }

  .agMypageRoyalModalCondition + .agMypageRoyalModalCondition {
    margin-top: 0;
  }

  .agMypageRoyalModalConditionValue {
    font-size: 16px;
  }

  .agMypageRoyalModalNotes {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .agMypageRoyalModalNotes > * {
    margin: 0;
  }

  .agMypageRoyalModalFooter {
    padding: 20px 0 60px;
  }
}
