.plan {
  margin-top: 70px;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
}

.plan h3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 20px;
  color: #936211;
}

@media (min-width: 768px) {
  .plan h3 {
    font-size: 32px;
  }
  .plan h3::after {
    content: '';
    height: 39px;
    width: 369px;
    background-image: url('../images/icon_title_pc.svg');
    background-size: cover;
    background-position: center;
  }
}

.plan h3::after {
  content: '';
  height: 38px;
  width: 270px;
  background-image: url('../images/icon_title_sp.svg');
  background-size: cover;
  background-position: center;
}

@media (min-width: 1024px) {
  .plan h3 {
    width: fit-content;
  }
}

.plan h3 > span {
  font-size: 16px;
  color: #af3f52;
}

@media (min-width: 768px) {
  .plan h3 > span {
    font-size: 18px;
  }
}

.plan p {
  margin-top: 16px;
}

@media (min-width: 1024px) {
  .plan picture {
    position: absolute;
    max-width: 640px;
  }
}

.plan picture > img {
  border-radius: 8px;
}

.plan table {
  width: 100%;
}

@media (min-width: 1024px) {
  .plan table {
    font-size: 18px;
  }
}

.plan tbody {
  display: grid;
  gap: 8px;
}

.plan tbody,
.plan tr {
  display: grid;
  grid-template-columns: auto auto;
}

.plan td {
  align-self: flex-end;
  white-space: nowrap;
}

.plan tr {
  grid-column: span 2;
}

@media (min-width: 1024px) {
  .plan tr {
    grid-template-columns: subgrid;
  }
}

.plan tr:not(:last-of-type) {
  grid-template-columns: subgrid;
}

.plan > div {
  display: flex;
  width: 100%;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 16px;
}

@media (min-width: 1024px) {
  .plan > div {
    max-width: 1200px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 100px;
  }
}

.plan > div:nth-of-type(even) {
  flex-direction: row-reverse;
}

@media (min-width: 1024px) {
  .plan > div:nth-of-type(even) > div:first-child {
    transform: translateX(-60px);
  }
}

.plan > div > div {
  width: 100%;
}

@media (min-width: 1024px) {
  .plan > div > div {
    width: 580px;
    flex-shrink: 0;
  }
  .plan > div > div:nth-child(2) {
    width: auto;
  }
}

.plan > div > div:nth-child(3) {
  width: 100%;
  border: 13px solid transparent;
  padding: 4px 0;
  border-image: url('../images/icon_border.svg') 16 round;
}

@media (min-width: 1024px) {
  .plan > div > div:nth-child(3) {
    width: 640px;
  }
}

/* MARK: -----------
*/

.list > li::before {
  content: '※';
  color: inherit;
  position: absolute;
  translate: -100% 0;
}

.list {
  list-style: none;
  padding-left: 1em;
  margin: 0 16px;
}

/* MARK: ----------------
*/

.btn-link {
  position: relative;
  margin: 5rem 16px 0;
  width: 100%;
  font-size: 1.25rem;
  animation: fadeInRight 1s ease-in-out;
}

@media (min-width: 768px) {
  .btn-link {
    width: 335px;
  }
  .social a {
    min-height: 115px;
  }
}

.btn-link a {
  display: flex;
  width: 100%;
  justify-content: center;
  border-radius: 2rem;
  background-color: #AF3F52;
  padding: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  position: relative;
}

.btn-link a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 2.25rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  background-image: url('../images/icon_arrow1.svg');
  background-repeat: no-repeat;
}

/* Keyframes for fade-in-right animation */
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* MARK: ----------
*/
.notion {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center;
}

@media (min-width: 768px) {
  .notion {
    margin-top: 5rem;
  }
}

.notion span {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .notion span {
    white-space: nowrap;
  }
}

.notion strong {
  color: #AF3F52;
}

@media (min-width: 768px) {
  .notion strong {
    display: block;
    font-size: 1.5rem !important;
  }
}

.notion > div {
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .notion > div {
    display: inline;
  }
  .notion > div,
  .notion > div * {
    font-size: 1.25rem;
  }
}

/* MARK: ----------
*/

.social {
  animation: fadeIn 1s ease-in-out;
  margin-left: 2rem;
  margin-right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 22.5rem;
}

@media (min-width: 768px) {
  .social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
}

.social a {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  border: 2px solid #ffffff;
  padding-left: 1rem;
  padding-right: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: #ffffff;
  min-height: 105px;
}

@media (min-width: 768px) {
  .social a {
    width: 435px;
  }
}

.social a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  background-image: url('../images/icon_arrow2.svg');
  background-repeat: no-repeat;
}

.social a > div {
  font-size: 1rem;
  word-break: break-word;
}

.social a > div > span {
  font-size: 0.75rem;
}

/* Keyframes for fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* MARK: ----------
*/

