html,
body,
p,
h1,
h2 {
  padding: 0;
  margin: 0;
}

a,
a:hover,
a:active,
a:focus {
  text-decoration: none;
}

body {
  background-color: #f7f7f7;
}

.main-container {
  width: 100%;
}

.header {
  background-color: white;
  color: #fd7e14;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .left {
  margin-left: 20px;
}

.header .right {
  margin-right: 20px;
  display: flex;
  gap: 15px;
}

.slider {
  width: 78%;
  margin: 0 auto;
  padding: 30px 0 var(--section-padding);
}

.slider img {
  width: 100%;
}

.slider .text {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.slider .text .left {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider .text .left p {
  font-family: Noto Sans JP;
  font-weight: 700;
  font-size: clamp(13px, 1vw, 20px);
  line-height: clamp(13px, 1vw, 20px);
}

.slider .text .right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: Noto Sans JP;
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 20px);
  line-height: 20px;
  align-items: center;
}

.slider .text .right p {
  color: #fd7e14;
  text-align: right;
}

.slider .text .right a {
  width: 80%;
  border-width: 1px;
  border-radius: 6px;
  background-color: #fd7e14;
  color: white;
  display: inline-block;
  text-align: center;
  padding: 20px 0px;
}

/* content */
.content {
  width: 100%;
  /* margin-top: 220px; */
  background-color: #fef3eb;
  padding: var(--section-padding) 0;
}

h1 {
  font-family: Noto Sans JP;
  font-weight: 700;
  font-size: clamp(40px, 2.8vw, 56px);
  text-align: center;
  line-height: 56px;
  color: #555555;
}

h2 {
  font-family: Noto Sans JP;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 40px);
}

.point-list {
  width: 92.5%;
  margin: 0 auto;
  margin-top: 45px;
}

.point-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-direction: row;
}
.point-item + .point-item {
  margin-top: 90px;
}

.point-no {
  width: 8%;
  height: 8%;
  aspect-ratio: 1 / 1;
  background-color: #fd7e14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Noto Sans JP";
  font-weight: 700;
  font-size: clamp(12px, 1.6vw, 32px);
}

.point-text {
  width: 38%;
  display: flex;
  flex-direction: column;
}

.point-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(7.4vw);
  min-height: clamp(60px, 7.4vw, 120px);
}

.point-con {
  margin-top: 20px;
}

.point-text h2 {
  line-height: 40px;
  color: #fd7e14;
}

.point-text p {
  font-family: Noto Sans JP;
  font-weight: 400;
  font-size: clamp(12px, 1.5vw, 30px);
  line-height: clamp(12px, 2.4vw, 40px);
  color: #555555;
}

.point-title h2 {
  line-height: clamp(12px, 2.8vw, 55px);
}

.point-image {
  width: 52%;
}

.point-image img {
  width: 100%;
  height: auto;
}

.step {
  padding: var(--section-padding) 0;
}

.step h2 {
  color: #555555;
  text-align: center;
  line-height: 100px;
}

.orange {
  color: #fd7e14;
}

.step-list {
  width: 92.5%;
  margin: 0 auto;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.step-item {
  position: relative;
  width: 28%;
  padding: 60px 20px 30px;
  border: 1px solid #fd7e14;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.step-no {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #fd7e14;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(14px, 1vw, 32px);
}

.step-text {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-text h2 {
  line-height: 0;
  padding: 70px 0 40px 0;
}

.step-arrow {
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #fdba74;
}

.step-text img {
  width: 89%;
  height: auto;
}

.step-text p {
  font-family: Noto Sans JP;
  font-weight: 400;
  font-size: clamp(12px, 1vw, 20px);
  line-height: clamp(14px, 1.5vw, 28px);
  text-align: left;
  color: #555555;
  width: 89%;
  margin-top: 5px;
  height: 64px;
}

.plan {
  background-color: #fef3eb;
  width: 100%;
  padding: var(--section-padding) 0;
}

.plan h2 {
  color: #555555;
  width: 67%;
  margin: 0 auto;
  padding-top: 20px;
}

.plan-table {
  width: 86.5%;
  margin: 0 auto;
  margin-top: 30px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.plan-table .plan-item {
  width: calc((100% - 12px * 3) / 4);
  height: auto;
  display: block;
}
.plan-silver {
  position: relative;
}
.plan-table .plan-item-img {
  width: 100%;
}

.planinfo {
  width: 100%;
  height: auto;
}

.free-icon {
  position: absolute;
  height: auto;
  top: -10px;
  right: 0;
  width: 32%;
  z-index: 1;
}

.contact {
  width: 67.5%;
  margin: 0 auto;
  padding: var(--section-padding) 0;
}

.contact-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.27;
  margin-top: 40px;
}

.contact-border {
  width: 42.5%;
  height: 100%;
  border: solid 1px #fd7e14;
  border-radius: 5px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.contact-border .top img {
  margin-top: 40px;
}

.email img {
  width: 36%;
  height: auto;
}

.email h2 {
  line-height: 4em;
}

.contact-list .top {
  width: 100%;
  height: 24%;
  text-align: center;
}

.contact-list .bottom {
  width: 100%;
  height: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mata {
  width: 12%;
  height: 75%;
  align-self: flex-end;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555555;
}

.wechat .top img {
  width: 43%;
  height: auto;
}

.qrcode {
  width: 30%;
  height: auto;
}

.contact .time {
  font-family: Noto Sans JP;
  font-weight: 400;
  font-size: 20px;
  color: #555555;
  text-align: center;
  padding-top: 10px;
}

.footer {
  width: 100%;
  background-color: #888888;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 100px 0;
}

.footer a {
  font-family: Noto Sans JP;
  font-weight: 700;
  font-size: clamp(16px, 1.3vw, 20px);
  width: 23%;
  border-radius: 6px;
  background-color: #fd7e14;
  color: white;
  display: inline-block;
  text-align: center;
  padding: 20px 0;
}

.footer p {
  font-family: Noto Sans JP;
  font-weight: 700;
  font-size: clamp(14px, 1vw, 20px);
  line-height: 20px;
}

@media (max-width: 768px) {
  .main-container {
    width: 100%;
    overflow-x: hidden;
  }

  /* header */
  .header {
    height: auto;
    padding: 12px 12px;
  }

  .header .left {
    margin-left: 0;
  }

  .header .right {
    margin-right: 0;
    gap: 10px;
  }

  .base-button {
    font-size: 12px;
  }

  /* slider */
  .slider {
    width: 100%;
    padding: 12px 12px var(--section-padding);
    box-sizing: border-box;
  }

  .slider .text {
    flex-direction: column;
    gap: 14px;
  }

  .slider .text .left {
    width: 100%;
    gap: 8px;
  }

  .slider .text .left p {
    font-size: 14px;
    line-height: 1.6;
    font-weight: normal;
  }

  .slider .text .right {
    width: 100%;
    align-items: stretch;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  .slider .text .right p {
    text-align: center;
  }

  .slider .text .right a {
    width: 100%;
    padding: 14px 0;
  }

  .content {
    padding: var(--section-padding) 0;
  }

  h1 {
    font-size: 24px;
    line-height: 1.3;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  h2 {
    font-size: 18px;
  }

  .point-list {
    width: 100%;
    margin-top: 18px;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .point-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "no title"
      "img img"
      "con con";
    gap: 10px 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    flex-direction: unset;
  }
  .point-item + .point-item {
    margin-top: 16px;
  }
  /* 让 point-text 在 grid 里拆开，title / con 单独参与布局 */
  .point-text {
    display: contents;
    width: auto;
  }

  .point-no {
    grid-area: no;
    width: 56px;
    height: 56px;
    font-size: 12px;
    border-radius: 999px;
    align-self: start;
    justify-self: start;
  }

  .point-title {
    grid-area: title;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .point-title h2 {
    font-size: 18px;
    line-height: 1.35;
    color: #fd7e14;
  }

  .point-image {
    grid-area: img;
    width: 100%;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .point-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

  .point-con {
    grid-area: con;
    margin-top: 0;
  }

  .point-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
  }

  /* step */
  .step {
    padding: var(--section-padding) 0;
  }

  .step h2 {
    line-height: 1.4;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .step-list {
    width: 100%;
    margin-top: 18px;
    padding: 0 12px;
    box-sizing: border-box;
    flex-direction: column;
    gap: 16px;
  }

  .step-item {
    width: 100%;
    padding: 44px 14px 18px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "step-no step-title"
      "step-img step-img"
      "step-con step-con";
    border: none;
  }

  .step-no {
    grid-area: step-no;
    position: unset;
    width: 56px;
    font-size: 14px;
    transform: none;
  }

  .step-text {
    font-size: 16px;
    display: contents;
    width: auto;
  }

  .step-text h2 {
    line-height: 1.2;
    grid-area: step-title;
    align-self: center;
    text-align: left;
  }

  .step-arrow {
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 28px solid #fdba74;
    border-bottom: none;
  }

  .step-text img {
    grid-area: step-img;
    width: 100%;
  }

  .step-text p {
    grid-area: step-con;
    width: 100%;
    height: auto;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 10px;
  }

  /* plan */
  .plan {
    padding: var(--section-padding) 0;
  }
  .plan h2 {
    width: 100%;
    padding: 12px 12px 0;
    box-sizing: border-box;
    line-height: 1.5;
    font-size: 16px;
  }

  .plan-table {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    margin-top: 16px;
  }
  .plan-table .plan-item {
    width: calc((100% - 12px) / 2);
  }
  .contact {
    width: 100%;
    padding: var(--section-padding) 12px;
    box-sizing: border-box;
  }

  .contact-list {
    flex-direction: column;
    gap: 12px;
    aspect-ratio: auto;
    margin-top: 18px;
  }

  .contact-border {
    width: 100%;
    height: auto;
    padding-bottom: 14px;
    border: none;
  }

  .contact-list .top {
    height: auto;
  }

  .contact-list .bottom {
    height: auto;
    padding: 8px 0;
  }

  .contact-border .top img {
    margin-top: 18px;
  }

  .email img {
    width: 120px;
  }

  .email h2 {
    line-height: 1.8;
    font-size: 18px;
  }

  .mata {
    width: 100%;
    height: auto;
    align-self: auto;
  }

  .wechat .top img {
    width: 140px;
  }

  .qrcode {
    width: 140px;
  }

  .contact .time {
    font-size: 12px;
    line-height: 1.6;
    padding-top: 10px;
  }

  /* footer */
  .footer {
    padding: 54px 12px;
    box-sizing: border-box;
    gap: 12px;
  }

  .footer p {
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
  }

  .footer a {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
  }
}
@media (max-width: 414px) {
  .base-button {
    font-size: 12px;
    padding: 0 6px;
    height: 28px;
    line-height: 28px;
  }
}
