.design-sec_01 {
  padding: 6rem 3rem 3rem;
}
.design-sec_01 .sec-title {
    margin-bottom: 2.4rem;
}

/*500px以下*/
@media screen and (max-width:500px) {
.design-sec_01 {
  padding-top: 13rem;
}
}


.template-list {
  background: var(--white);
  border: var(--border-tmp);
  border-radius: 12px;
  padding: 3.2rem 3rem;
  margin: 3rem auto;
}
.template-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  transition: .3s;
}
.template-item:not(:last-of-type) {
  margin-bottom: 4rem;
}
.template-item span {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--black);
  margin-top: 4px;
  display: block
}
.template-item:hover {
  opacity: .7;
}
.template-modal {
  position: fixed;
  inset: 0;
  /*display: none;*/
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s, scale 0s 0.5s;
  scale: 0;
}
.template-modal.is-active {
  display: block;
  opacity: 1;
  transition: opacity 0.5s;
  scale: 1;
}

.template-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  max-width: 420px;
  margin: 0 auto;
}

.template-modal__content {
  position: relative;
  z-index: 1;
  width: calc(100% - 4rem);
  max-width: 380px;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  margin: 4rem auto 0;
  background: var(--white);
  border-radius: 8px;
  padding: 4rem 2rem;
  top: 5%;
}

/*921px〜1230px*/
@media screen and (min-width: 921px) and (max-width: 1230px) {

.template-modal__content {
  margin: 0 0 0 12%;
}
.template-modal__overlay {
  margin: 0 0 0 10%;
}

}

@media screen and (max-width:500px) {
.template-modal__overlay {
  max-width: none;
}
}

.template-modal__close {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: var(--pink);
  font-size: 3rem;
  cursor: pointer;
}

.template-modal__content h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.template-modal__main {
  width: 100%;
  display: block;
}

.template-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.template-modal__thumbs img {
  width: 100%;
  display: block;
}

.template-modal__content p {
  font-size: 1.4rem;
  margin: 2rem 0;
}
.template-modal__content .button-02-2 a {
  width: 100%;
}
