.flex .container {
  max-width: 1075px;
  padding-inline: 15px;
}
h3.midashi {
  position: relative;
  padding: 0.5em;
  border-bottom: 6px solid #ccc;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 500;
}
h3.midashi:before {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 20%;
  height: 6px;
  content: "";
  background: #004f48;
}
@media (max-width: 767px) {
  .flex .container {
    padding-inline: 20px;
  }
  h3.midashi {
    margin-bottom: 15px;
    font-size: 18px;
  }
}
.flex .mainImage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50vh;
  padding: 15px;
}
.flex .mainImage .imgwrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.flex .mainImage .imgwrap .text {
  color: #fff;
  font-size: calc(100vw / 20);
  font-weight: 600;
}
.flex .flexNavi ul {
  background-color: #1f210b;
  display: flex;
  justify-content: space-between;
}
.flex .flexNavi ul li {
  flex-grow: 2;
  display: flex;
  flex-direction: column;
}
.flex .flexNavi ul li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.5);
}
.flex .flexNavi ul li a {
  flex-grow: 2;
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 500;
}
@media (max-width: 479px) {
  .flex .mainImage {
    background-image: url(../image/mainBg_sp.jpg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
  }
  .flex .flexNavi ul li {
    font-size: calc(100vw / 30);
    height: 60px;
  }
  .flex .flexNavi ul li.freeD {
    display: none;
  }
}

/*タブレットとPC */
@media (min-width: 480px) {
  .mainWrap {
    position: relative;
    height: 400px;
    background-image: url(../image/mainBg_pc.jpg);
    background-repeat: no-repeat;
    background-position: left -50px bottom;
    background-size: auto 100%;
    margin-bottom: 60px;
  }
  .flex .mainImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 370px;
  }
  .flex .mainImage .imgwrap {
    width: 80%;
    gap: 45px;
  }
  .flex .mainImage .imgwrap .text {
    font-size: calc(100vw / 30);
  }
  .flex .flexNavi {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 60px;
  }
  .flex .flexNavi ul {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 95%;
    max-width: 1024px;
    margin-inline: auto;
    border-radius: 99px;
    overflow: hidden;
  }
  .flex .flexNavi ul li {
    height: 60px;
  }
}
/* タブレット */
@media (min-width: 480px) and (max-width: 1023px) {
}
/* PCのみ */
@media (min-width: 1024px) {
  .mainWrap {
    height: 600px;
    margin-bottom: 100px;
    background-position: center bottom;
  }
  .flex .mainImage {
    height: 550px;
  }
  .flex .mainImage .imgwrap {
    width: 80%;
    max-width: 1024px;
  }
  .flex .mainImage .imgwrap .text {
    font-size: calc(100vw / 50);
  }
  .flex .flexNavi {
    height: 100px;
  }
  .flex .flexNavi ul li {
    height: 100px;
  }
  .flex .flexNavi ul li a {
    opacity: 0.8;
  }
}

.flex section {
  padding-bottom: 30px;
}
@media (min-width: 768px) {
  .flex section {
    padding-bottom: 80px;
  }
}

.lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.lead h3 {
  color: #004f48;
  font-weight: 900;
  font-size: clamp(22px, 3.5vw, 50px);
}
.lead p {
  font-size: 18px;
}
.lead ul.point {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}
@media (max-width: 479px) {
  .lead ul.point {
    gap: 8px;
  }
  .lead ul.point > li {
    flex-basis: calc(50% - 7.5px);
  }
  .lead ul.point > li:first-child {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .lead ul.point > li:first-child img {
    width: calc(50% - 7.5px);
  }
}
@media (min-width: 480px) and (max-width: 1023px) {
  .lead ul.point > li {
    flex-basis: calc(33.3% - 12px);
  }
}

@media (min-width: 768px) {
  .lead p {
    font-size: 22px;
  }
}
.waribiki {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.waribiki h3 {
  width: 100%;
  text-align: center;
  color: #2766da;
  font-weight: 900;
  font-size: calc(100vw / 22);
  background-color: #f2f2f3;
  border-radius: 99px;
  line-height: 2;
}
@media (min-width: 480px) and (max-width: 787px) {
  .waribiki h3 {
    font-size: calc(100vw / 30);
  }
}
@media (min-width: 768px) {
  .waribiki h3 {
    font-size: calc(100vw / 50);
  }
}

.maker .photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (min-width: 768px) {
  .maker .photo .img {
    width: 80%;
    max-width: 750px;
  }
}
.setsubi ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
@media (min-width: 480px) {
  .setsubi ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  .setsubi ul > li {
    flex-basis: calc(33.3% - 10px);
  }
}

/* price_n2はPC5列、price_nはPC４列 */
.price_n2 .listTtl p,
.price_n .listTtl p {
  margin-bottom: 0;
}
.price_n2 dl .total,
.price_n dl .total {
  border-top: 2px solid #333;
  font-weight: bolder;
}
.price_n2 dl .nebiki,
.price_n dl .nebiki {
  color: #f80303;
}
.price_n2 dl .sale,
.price_n dl .sale {
  color: #f80303;
  font-size: 110%;
  font-weight: bolder;
  background-color: #f5dddd;
}
@media (max-width: 1023px) {
  .price_n2 > div,
  .price_n > div {
    margin-bottom: 30px;
  }
  .price_n2 .listTtl,
  .price_n .listTtl {
    display: flex;
    align-items: center;
    font-weight: 900;
    text-align: center;
    background-color: #e8effa;
    padding: 1em;
    box-sizing: border-box;
  }
  .price_n2 .listTtl h4,
  .price_n .listTtl h4 {
    font-size: 18px;
  }
  .price_n2 .listTtl p,
  .price_n .listTtl p {
    margin-left: 1em;
    font-size: 12px;
    margin-bottom: 0;
    font-weight: 600;
  }
  .price_n2 dl,
  .price_n dl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .price_n2 dl dt,
  .price_n2 dl dd,
  .price_n dl dt,
  .price_n dl dd {
    flex-basis: 50%;
    padding: 8px;
    border-bottom: 1px dotted #ccc;
    box-sizing: border-box;
  }
  .price_n2 dl dt,
  .price_n dl dt {
    font-weight: bold;
  }
  .price_n2 dl dd,
  .price_n dl dd {
    text-align: right;
  }
}
@media (min-width: 1024px) {
  .price_n2,
  .price_n {
    display: flex;
  }
  .price_n2 > div,
  .price_n > div {
    display: flex;
    flex-direction: column;
    background-color: #ebebeb;
  }
  .price_n2 .listTtl,
  .price_n .listTtl {
    flex-grow: 2;
    height: 70px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #ccc;
    line-height: 1.2;
    background-color: #ebebeb;
    box-sizing: border-box;
  }
  .price_n2 .listTtl p,
  .price_n .listTtl p {
    font-size: 85%;
  }
  .price_n2 .list dl,
  .price_n .list dl {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  .price_n2 dt,
  .price_n dt {
    border-top: 1px solid #ccc;
    background-color: #f7f7f7;
    padding: 8px;
    box-sizing: border-box;
  }
  .price_n2 dd,
  .price_n dd {
    padding: 8px;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    border-left: 1px solid #ccc;
    text-align: right;
    background-color: #fff;
  }
  .price_n2 .list2 dt,
  .price_n .list2 dt {
    display: none;
  }
  /*4列*/
  .price_n .list {
    flex-basis: 520px;
  }
  .price_n .list .listTtl {
    margin-left: 265px;
  }
  .price_n .list2 {
    flex-basis: 256px;
  }
  .price_n .listTtl {
    width: 256px;
  }
  .price_n .list dt {
    width: 265px;
  }
  .price_n dd {
    width: 256px;
  }
  /*5列*/
  .price_n2 .list {
    flex-basis: 414px;
  }
  .price_n2 .list .listTtl {
    margin-left: 206px;
  }
  .price_n2 .list2 {
    flex-basis: 206px;
  }
  .price_n2 .listTtl {
    width: 206px;
  }
  .price_n2 .list dt {
    width: 206px;
  }
  .price_n2 dd {
    width: 206px;
  }
}
