#plan {
  background-color: #fcebec;
  padding-top: 135px;
  padding-bottom: 83px;
  position: relative;
  margin-bottom: 173px;
}

@media screen and (max-width: 999px) {
  #plan { 
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 73px;
  }
}

.plan__charm {
  position: absolute;
}

.plan__charm--1 {
  top: -10%;
  left: 15.3%;
  width: 6.667%;
  z-index: -1;
}

.plan__charm--2 {
  top: 0;
  right: 0;
  width: 19.653%;
  z-index: -1;
}

.plan__container {
  max-width: 1000px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

@media screen and (max-width: 999px) {
  .plan__container {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
  }
}

.plan__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14.5px;
  position: relative;
  z-index: 2;
}

@media screen and (max-width: 999px) {
  .plan__title {
    gap: 5px;
  }
}

.plan__title::before {
  position: absolute;
  display: block;
  content: " ";
  background: url(../img/plan-en.png) center center / contain no-repeat;
  top: -73%;
  left: 50%;
  width: 210px;
  height: 120px;
  transform: translateX(-50%);
  z-index: 0;
}
@media screen and (max-width: 999px) {
  .plan__title::before {
    width: 90px;
    height: 80px;
    top: -63%;
  }
}

.plan__title--en {
  font-family: Oswald;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.15em;
  text-align: center;
  color: #f2a2c0;
  position: relative;
  z-index: 2;
}

.plan__title--ja {
  z-index: 2;
  font-family: "Noto Sans JP";
  font-weight: bold;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-align: center;
  color: #313131;
}

.plan__item {
  background-color: #fff;
  margin-top: 39px;
  border-radius: 20px;
  z-index: 100; /* 確実に擬似要素の上に表示されるようにする */
  position: relative;
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 999px) {
  .plan__item {
    flex-direction: column;
  }
}

.plan__item::before {
  position: absolute;
  display: block;
  content: "PLAN A";
  font-family: Oswald;
  font-weight: normal;
  font-size: 60px;
  letter-spacing: 0.13em;
  text-align: left;
  color: #fcf2d8;
  transform: translateY(-50%) rotate(90deg);
  top: 50.5%;
  right: -5.7%;
  z-index: 0;
}

.plan__item--a::before {
  content: "PLAN A";
}

.plan__item--b::before {
  content: "PLAN B";
}

.plan__item--c::before {
  content: "PLAN C";
}

.plan__item--d::before {
  content: "PLAN D";
}

@media screen and (max-width: 999px) {
  .plan__item::before {
    display: none;
  }
}

.plan__item--bg {
  display: block;
  position: absolute;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  top: -3px;
  left: -3px;
  background: linear-gradient(to bottom right, #ff5481, #ffc736);
  z-index: -1;
  border-radius: 20px;
}

.plan__itemImage {
  width: 36%;
}

@media screen and (max-width: 999px) {
  .plan__itemImage {
    width: 100%;
  }
}

.plan__itemImage img {
  border-radius: 20px 0 0 20px;
}

@media screen and (max-width: 999px) {
  .plan__itemImage img {
    border-radius: 20px 20px 0 0;
  }
}

.plan__itemText {
  background-color: #fff;
  border-radius: 0 20px 20px 0;
  width: 64%;
}

@media screen and (max-width: 999px) {
  .plan__itemText {
    width: 100%;
    border-radius: 0 0 20px 20px;
  }
}

.plan__itemTop {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 2px;
  padding-left: 17px;
  margin-left: 31px;
  margin-right: 37px;
  padding-right: 0px;
  border-bottom: 1px solid #d9d9d9;
  align-items: center;
}

@media screen and (max-width: 999px) {
.plan__itemTop {
  flex-direction:column;
  padding-left: 0px;
  padding-right: 0px;
  margin-left: 10px;
  margin-right: 10px;
  padding-top: 7px;
		position:relative;
	z-index:1;
}
}

.plan__itemHead {
  font-family: "Noto Sans JP";
  font-weight: bold;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-align: left;
  color: #313131;
	position:relative;
	z-index:1;
}

.plan__itemPrice {
  display: flex;
  align-items: center;
  gap: 6px;
		position:relative;
	z-index:1;
}

.plan__itemMeyasu {
  font-family: "Noto Sans JP";
  font-weight: bold;
  font-size: 15px;
  line-height: 17px;
  text-align: right;
  color: #313131;
  writing-mode: vertical-rl;
		position:relative;
	z-index:1;
}

.plan__itemNum {
  font-family: Oswald;
  font-weight: normal;
  font-size: 39px;
  letter-spacing: 0.04em;
  text-align: left;
  color: #313131;
		position:relative;
	z-index:1;
}

.plan__itemYen {
  font-family: "Noto Sans JP";
  font-weight: bold;
  font-size: 22px;
  text-align: right;
  color: #313131;
		position:relative;
	z-index:1;
}

.plan__itemContent {
  font-family: "Noto Sans JP";
  font-weight: normal;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: left;
  color: #313131;
  padding-top: 9px;
  padding-left: 30px;
  padding-right: 30px;
  line-height: 30px;
		position:relative;
	z-index:1;
}

@media screen and (max-width: 999px) {
  .plan__itemContent {
    line-height: 20px;
    margin-left: 10px;
    margin-right: 10px;
    padding: 0;
    padding-right: 0;
    margin-top: 10px;
    padding-bottom: 10px;
  }
}