.closing-section {
  width: 100%;
  background-color: #ffe200;
  position: relative;
}

.closing-container {
  max-width: 960px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
}

.closing-title {
  text-align: center;
  padding: 5px 5px;
  text-shadow: 2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff,
    -2px -2px 0 #fff;
  width: 100%;
  margin: 50px auto 40px auto;
}
.closing-title > h2 {
  font-size: 64px;
  font-weight: 800;
  color: #333;
}
.closing-body {
  text-align: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 24px 24px;
  width: 100%;
  margin: 40px auto;
  box-sizing: border-box;
  overflow: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}
.closing-body > h3 {
  font-size: 36px;
  font-weight: 900;
  color: #333;
  line-height: 2;
}
.closing-body > img {
  position: absolute;
  top: -20px;
  right: -80px;
  width: 30%;
  aspect-ratio: 1/1;
}
.closing-btn-wrapper {
  margin: 40px auto;
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}
.btn-scale-wrapper {
  width: 60%;
  transform: none;
  margin: 0 auto;
  align-items: center;
}
.closing-btn {
  width: 100%;
  min-width: 440px;
  height: 170px;
  padding: 20px 40px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
  transition: background 0.3s ease, transform 0.2s ease;
  justify-content: center;
  align-items: center;
}
.tel-btn {
  background: linear-gradient(90deg, #203b9a, #2f6be9);
}
.tel-btn:hover {
  background: linear-gradient(90deg, #2a49c5, #3e7aff);
  transform: translateY(-3px);
}
.form-btn {
  background: linear-gradient(90deg, #ff5f5f, #ffa05e);
}
.form-btn:hover {
  background: linear-gradient(90deg, #ff7b7b, #ffb97d);
  transform: translateY(-3px);
}
.btn-top {
  font-size: 16px;
  font-weight: 600;
}
.btn-main {
  font-weight: 800;
  z-index: 2;
}
.btn-main.tel-main {
  font-size: 34px;
}

.btn-main.form-main {
  font-size: 26px;
}

.btn-bottom {
  font-size: 18px;
  font-weight: 600;
}
.btn-center {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 50px;
}
.btn-icon-left,
.btn-icon-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.btn-icon-left {
  left: 0;
}
.btn-icon-right {
  right: 0;
}

.btn-icon-left > .icon {
  width: 28px;
  height: 28px;
}
.btn-icon-right > .icon {
  width: 28px;
  height: 28px;
}

@media (max-width: 1024px) {
  .closing-container {
    max-width: 800px;
  }
  .closing-body > img {
    width: 28%;
    top: 42px;
    right: -80px;
  }
  .closing-btn {
    min-width: 380px;
    height: 120px;
    padding: 20px 30px;
  }
  .btn-top {
    font-size: 14px;
  }
  .btn-main.tel-main {
    font-size: 22px;
  }
  .btn-main.form-main {
    font-size: 18px;
  }
  .btn-bottom {
    font-size: 13px;
  }
}
@media (max-width: 960px) {
  .closing-container {
    max-width: 700px;
  }
  .closing-title > h2 {
    font-size: 48px;
  }
  .closing-body > img {
    width: 27%;
    top: 45px;
    right: -60px;
  }
  .closing-body > h3 {
    font-size: 30px;
  }
  .closing-btn {
    min-width: 300px;
    height: 120px;
    padding: 10px 20px;
  }
  .btn-top {
    font-size: 12px;
  }
  .btn-main.tel-main {
    font-size: 20px;
  }
  .btn-main.form-main {
    font-size: 15px;
  }
  .btn-bottom {
    font-size: 12px;
  }
  .btn-icon-left > .icon {
    width: 25px;
    height: 25px;
  }
  .btn-icon-right > .icon {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 820px) {
  .closing-container {
    max-width: 620px;
  }
  .closing-title > h2 {
    font-size: 44px;
  }
  .closing-body > h3 {
    font-size: 26px;
  }
  .closing-body > img {
    width: 26%;
    top: 45px;
    right: -50px;
  }
  .closing-btn-wrapper {
    margin: 10px auto;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .closing-container {
    max-width: 600px;
  }
  .closing-title > h2 {
    font-size: 44px;
  }
  .closing-body > h3 {
    font-size: 24px;
  }
  .closing-body > img {
    width: 26%;
    top: 40px;
    right: -30px;
  }
  .closing-btn-wrapper {
    gap: 10px;
  }
}

@media (max-width: 670px) {
  .closing-container {
    max-width: 560px;
  }
  .closing-title {
    margin: 30px auto 20px auto;
  }
  .closing-title > h2 {
    font-size: 40px;
  }
  .closing-body > h3 {
    font-size: 22px;
  }
  .closing-body > img {
    width: 25%;
    top: 50px;
    right: -20px;
  }
  .closing-btn {
    min-width: 250px;
    height: 100px;
  }
  .btn-top {
    font-size: 10px;
  }
  .btn-main.tel-main {
    font-size: 16px;
  }
  .btn-main.form-main {
    font-size: 11px;
  }
  .btn-bottom {
    font-size: 10px;
  }
  .btn-icon-left > .icon {
    width: 15px;
    height: 15px;
  }
  .btn-icon-right > .icon {
    width: 15px;
    height: 15px;
  }
}
@media (max-width: 608px) {
  .closing-container {
    max-width: 500px;
  }
  .closing-title {
    margin: 30px auto auto auto;
  }
  .closing-title > h2 {
    font-size: 38px;
  }
  .closing-body > h3 {
    font-size: 20px;
  }
  .closing-body > img {
    width: 25%;
    top: 50px;
    right: -18px;
  }
}

@media (max-width: 540px) {
  .closing-container {
    max-width: 400px;
  }
  .closing-title > h2 {
    font-size: 34px;
  }
  .closing-body > h3 {
    font-size: 18px;
  }
  .closing-body > img {
    width: 25%;
    top: 65px;
    right: -10px;
  }
  .closing-btn-wrapper {
    margin-bottom: 20px;
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }
  .btn-scale-wrapper {
    width: 100%;
    margin: 0 auto;
  }
  .closing-btn {
    min-width: auto;
    height: 120px;
  }
  .btn-top {
    font-size: 14px;
  }
  .btn-main.tel-main {
    font-size: 22px;
  }
  .btn-main.form-main {
    font-size: 20px;
  }
  .btn-bottom {
    font-size: 14px;
  }
  .btn-icon-left > .icon {
    width: 25px;
    height: 25px;
  }
  .btn-icon-right > .icon {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 430px) {
  .closing-container {
    max-width: 320px;
  }
  .closing-title > h2 {
    font-size: 26px;
  }
  .closing-body > h3 {
    font-size: 14px;
  }
  .closing-body > img {
    width: 25%;
    top: 55px;
    right: 0;
  }
  .closing-btn {
    min-width: auto;
    height: 100px;
  }
  .btn-top {
    font-size: 12px;
  }
  .btn-main.tel-main {
    font-size: 20px;
  }
  .btn-main.form-main {
    font-size: 16px;
  }
  .btn-bottom {
    font-size: 12px;
  }
  .btn-icon-left > .icon {
    width: 20px;
    height: 20px;
  }
  .btn-icon-right > .icon {
    width: 20px;
    height: 20px;
  }
}
