@media screen and (max-width:1039px) {
  .eighth .wrapper {
    justify-content: center;
  }
}  


/* 768px-999px
------------------------------ */
@media screen and (max-width:999px) {
  .third .plan-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    row-gap: 56px;
    column-gap: 20px;
    justify-content: center;
  }
  .third .plan-card {
    width: 100%;
  }
  .third .wrapper {
    padding: 0 20px;  
    flex-direction: column;
    align-items: center;
  }
  .third .image-box {
    width: 100%;
  }
  .third .container {
    width: 100%;
  }
  .third .inner-top {
    justify-content: center;
    margin-top: 20px;
  }
  .fourth .goods {
    justify-content: center;
  }
  .fifth table tr td {
    min-width: 0;
  }
  .entryform input {
  width: 100%;
  }
  .entryform input.middle,
  .entryform input.long {
  width: 70%;
  }
}  

/* -940px
------------------------------ */
@media screen and (max-width:940px) {
  .entryform table {
    width: 97%;
    table-layout: fixed;
    word-break: break-all;
    word-wrap: break-all;
  }
}

/* -767px
------------------------------ */
@media screen and (max-width:767px) {
  body {
    margin-bottom: 80px;
  }
  .spbr {
    display: block;
  }
  /*-- header --*/
  .header {
    height: 75px;
    align-items: center;
  }
  h1 {
    display: none;
  }
  .header-inner {
    position: static;
    height: 75px;
    padding-left: 20px;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .header-left {
    padding: 0;
    width: 73.8%;
  }
  .header-logo {
    width: 100%;
  }
  .header-logo img {
    width: 100%;
    margin-top: 0;
  }  
  .header-innerRight {
    width: calc(100% - 80px);
    bottom: 0;
    position: fixed;
    left: 0;
    margin: 0;
    padding: 0 22px;
    z-index: 999;
    background-color: #fff;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .header-innerRight div {
    justify-content: space-between;
    width: fit-content;
  }  
  .header-address {
    font-size: 10px;
  }
  .header-business {
    font-size: 10px;
    margin-left: 0;
  }
  .header-phone img {
    width: 100%;
    max-width: 360px;
  }  
  .header-request {
    bottom: 0;
    position: fixed;
    right: 0;
    padding: 0;
    z-index: 999;
    width: 80px;
    height: 80px;
  }
  .header-request span {
    font-size: 0.8em;
  }
  .openbtn {
    display: block;
    width: 75px;
    height: 75px;
    position: fixed;
    top: 0;
    right: 0;
    background: #916D12;
  }
  .openbtn span:nth-of-type(1) {
    top: 25px;
    left: 21px;
    background: #fff;
  }
  .openbtn span:nth-of-type(2) {
    top: 35px;
    left: 21px;
    background: #fff;
  }
  .openbtn span:nth-of-type(3) {
    top: 45px;
    left: 21px;
    background: #fff;
  }
  .openbtn.active span:nth-of-type(1) {
    top: 25px;
    left: 18px;
    background: #fff;
  }
  .openbtn.active span:nth-of-type(3) {
    top: 36px;
    left: 18px;
    background: #fff;
  }

  .first .front-img {
    top: 52px;
    right: 0;
    width: 390px;
  }
  .first .wrapper {
    width: 100%;
    padding: 75px 0 44.5px 20px;
  }
  .first .image-box {
    width: 42.2%;
  }
  .first .wrapper.bottom {
    padding: 372px 20px 100px;
  }
  .first .message {
    line-height: calc(32 / 16);
    width: 100%;
  }
  .first .btn {
    margin: 34px auto 0;
  }
  
  .second {
    padding: 95px 0 215px;
  }
  .second::after {
    display: none
  }
  .second .wrapper {
    flex-direction: column;
    padding-left: 0;
  }
  .second .container {
    width: 100%;
    padding: 0 20px;
  }
  .second .title {
    font-size: 26px;
    letter-spacing: 0.03em;
    padding-bottom: 16px;
    border-bottom: 3px dotted #45AC66;
  }
  .second .image-box {
    margin-top: 42px;
  }
  .second .content {
    font-size: 16px;
    line-height: calc(32/16);
    margin-top: 48px;
  }
  .second .container.right {
    width: 82.5%;
    margin-top: 72px;
    margin-left: auto;
    padding: 0;
  }
  .second .container.right::before {
    top: -42px;
    right: -98px;
    width: 317px;
    height: 321px;
    background-image: url(../images/img_mesh_sp01.png);
  }
  .second .container.right::after {
    bottom: -109px;
    left: -49px;
    content: '';
    width: 316px;
    height: 321px;
    background-image: url(../images/img_mesh_sp02.png);
  }

  .third {
    width: 100%;
    background-size: cover;
    padding-bottom: 256px;
    padding: 0 20px 256px;
  }
  .third .title {
    font-size: 26px;
  }
  .third .plan-cards {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
  }
  .third .plan-card {
    width: calc((100% - 20px) / 2);
  }
  .third .btn {
    display: block;
    width: fit-content;
    margin-top: -20px;
    width: 100%;
  }
  .third .btn-inner {
    font-size: 14px;
    padding: 8px 0 8px 18px;
    width: 100%;
  }
  .third .btn-inner::after {
    right: 15px;
    width: 8px;
    height: 7px;
  }
  
  .third .wrapper {
    margin-top: 100px;
    padding: 0;
  }
  .third .image-box {
    width: 100%;
  }
  .third .inner-top {
    flex-direction: column;
  }
  .third .plan-name {
    text-align: center;
    margin-top: 20px;
  }
  .third .plan-message {
    margin-top: 30px;
    max-width: 100%;
  }
  .third .inner-bottom {
    flex-direction: column;
    row-gap: 13px;
  }
  .third .flow {
    font-size: 16px;
    width: 100%;
  }
  .third .arrow {
    transform: rotate(90deg) translateY(2px);
  }
  .third .annotation {
    margin-top: 14px;
  }
  
  .fourth {
    margin-top: 40px;
  }
  .fourth .subtitle {
    font-size: 18px;
  }
  .fourth .title {
    font-size: 26px;
  }
  .fourth .message {
    font-size: 16px;
    margin-top: 40px;
  }
  .fourth .goods {
    margin: 40px auto 0;
    column-gap: 30px;
  }
  .fourth .list {
    width: 100%;
    padding: 20px;
    column-gap: 20px;
  }
  .fourth .image-box {
    width: 47%;
  }
  .fourth .inner {
    width: 47%;
  }
  .fourth .goods-name {
    font-size: 18px;
  }
  .fourth .goods-price {
    font-size: 16px;
  }
  .fourth .goods-price span.big {
    font-size: 20px;
  }
  .fourth .goods-price span.tax {
    font-size: 13px;
  }

  .fifth .title {
    font-size: 26px;
  }
  .fifth .plan-desc {
    font-size: 16px;
  }
  
  .fifth .tab-menu-item {
    font-size: 20px;
  }  
  .fifth table th {
    font-size: 15px;
    padding: 18px 0 18px;
  }
  .fifth table tr td {
    font-size: 14px;
    text-align: center;
    padding: 11px 0 11px;
  }

  .sixth {
    padding: 0 20px 206px;
  }
  .sixth .title {
    font-size: 26px;
    margin: 100px auto 0;
  }
  .sixth .container {
    margin-top: 121px;
    flex-direction: column;
    padding: 0;
  }
  .sixth .container.reverse {
    margin-top: 72px;
    flex-direction: column;
    padding: 0;
  }
  .sixth .flower {
    bottom: auto;
    top: 217px;
    width: clamp(320px, 31.25vw, 402px);
  }
  .sixth .flower-reverse {
    bottom: none;
    top: 147px;
    width: clamp(390px, 36.1vw, 463px);
  }
  .sixth .image-box {
    width: 100%;
    max-width: 400px;
  }
  .sixth .inner {
    width: 100%;
  }
  .sixth .subtitle {
    font-size: 22px;
    margin-top: 90px;
  }
  .sixth .content {
    font-size: 16px;
    margin-top: 28px;
  }

  .seventh {
    padding: 35px 20px clamp(60px, 16vw, 120px);
  }
  .seventh .title {
    font-size: 26px;
  }
  .seventh .content {
    font-size: 16px;
    margin-top: 40px;
  }
  .seventh .grave-cards {
    row-gap: 20px;
    padding: 0;
    margin: 40px auto 0;
  }
  .seventh .btm-flower {
    bottom: -16px;
  }
  
  .eighth {
    padding: 175px 20px 106px;
  }
  .eighth .title {
    font-size: 26px;
  }
  .eighth .content {
    font-size: 16px;
    margin-top: 40px;
  }
  .eighth .wrapper {
    margin: 40px auto 0;
    row-gap: 20px;
  }
  .eighth .container {
    width: 100%;
    max-width: 478px;
  }
  .eighth .voice-name {
    font-size: 18px;
  }
  .eighth .voice-name span {
    font-size: 16px;
  }
  .eighth .voice-content {
    font-size: 16px;
  }

  .ninth {
    width: 100%;
  }
  .ninth .title {
    font-size: 26px;
    padding: 74px 0;
  }
  .ninth .wrapper {
    margin: 60px auto 0;
  }
  .ninth .message {
    font-size: 16px;
  }
  .ninth .container {
    margin-top: 60px;
    flex-direction: column;
  }
  .ninth .inner {
    width: 100%;
    max-width: 100%;
  }
  .ninth .inner.top {
    order: 2;
  }
  .ninth .inner.bottom {
    order: 3;
  }
  .ninth .inner-title {
    margin-top: 20px;
  }
  .ninth .inner-list {
    font-size: 16px;
  }
  .ninth .map {
    width: 100%;
    max-width: 100%;
    order: 1;
  }
  .ninth .carnavi-box {
    width: 100%;
  }
  .ninth .annotation {
    margin-top: 18px;
  }
  .ninth .address {
    font-size: 16px;
    margin-top: 20px;
  }
  /* Google Map */
  .googlemap {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-top: 100%;
    order: 0;
  }  
  .ninth .overview-title {
    font-size: 18px;
    padding: 20px 10px;
    margin-top: 40px;
  }
  .ninth .box-overview {
    padding: 30px 10px;
  }
  .ninth table.overview {
    width: 100%;
    max-width: 100%;
  }
  .ninth table.overview tr {
    padding: 8px 0 15px;
    align-items: center;
  }
  .ninth table.overview th {
  width: 30%;
  font-size: 15px;
  }
  .ninth table.overview td {
  width: 70%;
  font-size: 15px;
  line-height: calc(22 / 15);
  }
  .ninth table.overview td span {
    display: inline-block;
  }

  /*-- entryform --*/
  .tenth {
    margin-top: 80px;
    padding-bottom: 80px;
  }
  .tenth .title {
    font-size: 26px;
    padding: 50px 0;
    line-height: calc(32 / 26);
  }
  
  .tenth .content {
    font-size: 16px;
  }
  .entryform span {
    font-size: 15px;
    font-weight: normal;
    padding: 3px 5px;
    line-height: 1.5;
    float: none;
   }   
  .entryform label {
    display: block;
   }
  .entryform td.bold label:last-of-type input {
    max-width: 152px;
   }
  .entryform table td:nth-of-type(odd) {
    display: block;
    width: 100%;
    text-indent: 8px;
    font-size: 16px;
    font-weight: bold;
    background-color: #DBE6DB;
    border-radius: 6px 6px 0px 0px;
    }
    .entryform table td:nth-of-type(even) {
      display: block;
      max-width: 100%;
      padding: 20px 8px;
      font-size: 16px;
      text-align: center;
      border-radius: 0px 0px 6px 6px;
      line-height: 1.8;
    }
    .entryform table td.sp-start {
      text-align: start;
    }
    .entryform input {
      max-width: 80%;
      font-size: 16px;
    }
    .entryform .submit {
      padding: 8px 0px 20px;
      text-align: center;
    }
    .entryform .submit input {
      margin: 0px auto;
      border: none;
      padding: 20px 20px;
      color: #ffffff;
      font-size: 16px;
      text-decoration: none;
      display: block;
      cursor: pointer;
      background-color: #B20000;
      font-weight: 600;
    }
    .entryform dl {
      display: block;
    }
    .entryform dl:after {
      content: "";
      display: block;
      clear: both;
    }
    .entryform dl dt {
      padding: 0 0 0 8px;
      margin: 0px 0px 0px 20px;
      float: left;
    }
    .entryform dl dt:nth-of-type(2) {
      margin: 10px 0px 0px 20px;
      padding: 0 0 0 8px;
      float: left;
      clear: both;
    }
    .entryform dl dd:nth-of-type(2) {
      margin: 10px 0px 0px;
    }
    .entryform dl dd {
      float: left;
      margin: 0px;
      padding: 0px;
      width: 75%;
    }
    .entryform.mail input {
      width: 300px;
      font-size: 1.6em;
    }
    .entryform.mail .submit input {
      width: auto;
    }
    .entryform.mail td {
    display: block;
    text-align: center;
   }
    .entryform.mail td.submit {
    padding: 10px 0px 20px;
   }
    .entryform label.error {
    color: #aa0000;
   }
    .entryform p {
    margin: 20px auto;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 1.3;
   }
   .entryform .annotation {
    font-size: 15px;
    margin-top: 20px;
  }  
  .contact-wrapper {
    margin: 60px auto 0;
  }
  .contact-title {
    font-size: 18px;
    padding: 12px 20px;
    line-height: 1.3;
  }
  .contact-title span.dib {
    display: inline-block;
  }
  .contact-container {
    flex-direction: column;
  }
  .contact-name {
    font-size: 24px;
    padding-right: 0;
  }
  .contact-phone {
    width: 100%;
    max-width: 400px;
    padding: 12px 0;
    border-top: 1px solid #C6C6C6;
    border-bottom: 1px solid #C6C6C6;
    border-left: 0;
    border-right: 0;
    margin-top: 20px;
  }
  .contact-inner {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }
  .contact-time {
    color: #333333;
  }
  .contact-time span {
    font-size: 18px;
  }
  .contact-message {
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    width: 100%;
    padding: 5px 10px;
    margin-top: 5px;
    background-color: #455EB2;
  }

  /*-- footer --*/
.footer {
  width: 100%;
}
.footer .wrapper.top {
  width: 100%;
  background-color: #EAF8EF;
}
.footer .container {
  max-width: 1030px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 65px 20px 80px;
  flex-direction: column;
}
.footer .right {
  padding-right: 0;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}
.footer .desc {
  text-align: center;
}
.footer .name {
  text-align: center;
}
.footer .address {
  text-align: center;
}
.footer ul {
  margin-left: 100px;
  margin-left: 0;
}
.footer ul:first-of-type {
  margin-left: 0;
}
.footer ul li {
  padding-left: 16px;
}
.footer ul li:first-of-type {
  margin-top: 0;
}
.footer ul li a {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #333333;
}
.footer li::before {
  position: absolute;
  top: 8px;
  left: 0;
  content: '';
  width: 6px;
  height: 6px;
  border-bottom: 1px solid #333333;
  border-right: 1px solid #333333;
  transform: rotate(-45deg);
}
.footer .wrapper.bottom {
  width: 100%;
  background-color: #45AC66;
  margin-top: 0;
  padding: 25px 0 63px;
}
.footer .small {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-align: center;
}
.footer .small a {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-align: center;
}
  .content .privacy {
    width: 75%;
    margin: 120px auto;
  }
}

/* 320px-
------------------------------ */
@media screen and (max-width:389px) { 
  .first .front-img {
    width: 100%;
  }
  .third .plan-card {
    width: 260px;
  }
  .fourth .list {
    padding: 20px 10px;
    /* flex-direction: column; */
  }
  .fourth .image-box {
    width: 200px;
    width: 65%;
  }
  .fourth .inner {
    width: 100%;
  }
}

/* 320px-
------------------------------ */
@media screen and (max-width:414px) {
  #thanks #header {
    height: 80vh;
  }
  .content .privacy {
    margin: 250px auto 100px;
    }
}