@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap");
*,
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333333;
}

#mainvis {
  background: url("../img/mainvis.jpg") center center no-repeat;
  background-size: cover;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#mainvis .box {
  text-align: center;
  background-color: #ffffff;
  opacity: 0.8;
  margin: 0 20px;
  max-width: 1440px;
}
#mainvis .box-inner {
  padding: 40px 60px 50px;
  margin: 5px;
  box-shadow: inset 0 0 0 3px #7ac27a;
}
#mainvis .box-text .title {
  font-family: "Noto Serif JP", serif;
  padding: 0;
  font-size: 54px;
  font-weight: bold;
  letter-spacing: 2px;
}
#mainvis .box-text .sub-title {
  letter-spacing: 2px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 14px;
  font-size: 28px;
}
#mainvis .box-text .text {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1.1px;
  line-height: 30px;
}
.container {
  width: 100%;
  padding: 0 120px;
  max-width: 1440px;
  margin: 0 auto;
}
#mf1 {
  background-color: #7ac27a;
}
#mf1 .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 0;
  padding: 50px 0;
  gap: 20px;
}
#mf1 .grid .grid1,
#mf1 .grid .grid2,
#mf1 .grid .grid3,
#mf1 .grid .grid4,
#mf1 .grid .grid5,
#mf1 .grid .grid6 {
  height: 100px;
  background-color: white;
  color: #7ac27a;
  font-weight: bold;
  text-align: center;
  align-content: center;
  font-size: 17px;
  letter-spacing: 2px;
}
#mf1 .grid .grid1 {
  grid-column: 1 / span 3;
  grid-row: 1;
  font-size: 30px;
}
#mf1 .grid .grid2 {
  grid-column: 4;
  grid-row: 1;
}
#mf1 .grid .grid3 {
  grid-column: 1;
  grid-row: 2;
}
#mf1 .grid .grid4 {
  grid-column: 2;
  grid-row: 2;
}
#mf1 .grid .grid5 {
  grid-column: 3;
  grid-row: 2;
}
#mf1 .grid .grid6 {
  grid-column: 4;
  grid-row: 2;
}

#mf2 .content {
  margin: 100px 0;
}

#mf2 .content .ribbon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 50px;
}
#mf2 .content .ribbon {
  top: 0px;
  position: absolute;
  color: #7ac27a;
  font-size: 34px;
  font-weight: bold;
  text-align: center;
  border: 4px solid #ffffff;
  padding: 7px 45px;
  letter-spacing: 5px;
  background-color: #ffffff;
  margin: 2px;
  box-shadow: inset 0 0 0 3px #7ac27a;
}

#mf2 .content .ribbon::before {
  content: "";
  width: 52px;
  height: 57px;
  position: absolute;
  display: block;
  left: -41px;
  bottom: -15px;
  z-index: -1;
  background-image: url("../img/left-end.png");
  background-size: contain;
  background-repeat: no-repeat;
}
#mf2 .content .ribbon::after {
  content: "";
  width: 52px;
  height: 57px;
  position: absolute;
  display: block;
  right: -41px;
  bottom: -15px;
  z-index: -1;
  background-image: url("../img/right-end.png");
  background-size: contain;
  background-repeat: no-repeat;
}

#mf2 .content .header {
  padding-top: 50px;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  letter-spacing: 2px;
  position: relative;
  background: unset;
  padding: 50px 0 0;
  z-index: 1;
}

#mf2 .content .subheader {
  text-align: center;
  font-size: 20px;
  padding: 25px 0px 50px 0px;
  font-weight: bold;
  letter-spacing: 1.5px;
  line-height: 30px;
}

#mf2 .content .grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 25px;
}

#mf2 .content .box {
  max-width: 285px;
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.25);
}

#mf2 .content .box-inner {
  padding: 31px 0px 31px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 5px;
  border: 1px;
  box-shadow: inset 0 0 0 1px #cccccc;
}

#mf2 .content .box-inner .green {
  text-align: center;
  width: 100%;
  max-width: 100px;
  font-size: 20px;
  font-weight: bold;
  background-color: #7ac27a;
  color: #ffffff;
  line-height: 30px;
}

#mf2 .content .box-inner .yen {
  padding-top: 16px;
  font-size: 30px;
  font-weight: bold;
}
#mf2 .content .box-inner .yen span {
    font-size: 15px;
    letter-spacing: 0;
}

#mf2 .content .box-inner .desc {
  font-size: 16px;
  letter-spacing: 1px;
}

#mf2 .content .last {
  text-align: center;
  padding-top: 21px;
  letter-spacing: 1px;
  font-size: 14px;
}

#mf3 {
  background-color: #f9f9f9;
  padding: 100px 0px;
}

#mf3 .content .header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 3px;
}

#mf3 .content .header {
  position: relative;
  display: inline-flex;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  background: unset;
  padding: 0;
  justify-content: unset;
  width: fit-content;
}

#mf3 .content .header::after,
#mf3 .content .header::before {
  content: "";
  position: absolute;
  height: 38px;
  width: 2px;
  background-color: #333333;
}

#mf3 .content .header::before {
  transform: rotate(-30deg);
  left: -26px;
  bottom: 7px;
}

#mf3 .content .header::after {
  transform: rotate(30deg);
  right: -26px;
  bottom: 7px;
}
#mf3 .content .header .underline {
  color: #7ac27a;
  text-decoration: underline;
  text-underline-offset: 7px;
}
#mf3 .content .long-box {
  background-color: #ffffff;
  width: 100%;
  border: 1px solid #333333;
  height: 100px;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 50px;
  font-size: 30px;
  font-weight: bold;
  align-content: center;
}
#mf3 .content .grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 20px;
}
#mf3 .content .grid .box {
  border: 1px solid #333333;
  background-color: #ffffff;
  max-width: 224px;
  height: 100px;
  justify-items: center;
  align-content: center;
}
#mf3 .content .grid .box p {
  letter-spacing: 1px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
#mf3 .content .grid .box .regular {
  font-weight: 500;
  font-size: 14px;
}
#mf3 .content .long-text {
  font-size: 14px;
  line-height: 30px;
  margin-top: 29px;
  letter-spacing: 0.96px;
}
#mf4 {
  padding: 100px 0px;
}
#mf4 .content .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
}
#mf4 .content .grid .green,
#mf4 .content .grid .orange {
  border-radius: 6px;
  color: #ffffff;
  font-size: 26px;
  text-align: center;
  height: 70px;
  font-weight: bold;
  align-content: center;
  position: relative;
  transition: transform 0.3s ease;
}
#mf4 .content .grid .green::after,
#mf4 .content .grid .orange::after {
  content: "";
  position: absolute;
  display: block;
  width: 10px;
  height: 15px;
  background-image: url("../img/arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
  top: 50%;
  right: 30px;
}
#mf4 .content .grid .green:hover,
#mf4 .content .grid .orange:hover {
  transform: scale(1.05);
  cursor: pointer;
}
#mf4 .content .grid .green {
  background-color: #7ac27a;
}
#mf4 .content .grid .orange {
  background-color: #ffa839;
}
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 50px;
  }

  #mf1 .grid .grid2,
  #mf1 .grid .grid3,
  #mf1 .grid .grid4,
  #mf1 .grid .grid5,
  #mf1 .grid .grid6 {
    font-size: 15px;
  }
  #mf1 .grid .grid1 {
    font-size: 20px;
  }
  #mf2 .content .box-inner .green {
    font-size: 18px;
  }

  #mf2 .content .box-inner .yen {
    padding-top: 10px;
    font-size: 30px;
  }
  #mf2 .content .box-inner .yen span {
    font-size: 15px;
  }

  #mf2 .content .box-inner .desc {
    font-size: 12px;
  }
  #mf2 .content .grid-container {
    gap: 15px;
  }
  #mf3 .content .grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(9, 1fr);
  }
  #mf3 .content .grid .box p {
    font-size: 16px;
  }
  #mf3 .content .grid .box .regular {
    font-size: 12px;
  }
  #mf4 .content .grid .green, #mf4 .content .grid .orange {
    font-size: 20px;
}
}

@media screen and (max-width: 800px) {
  #mainvis .box-text .title {
    font-size: 40px;
  }
  #mainvis .box-text .sub-title {
    font-size: 18px;
  }
  #mainvis .box-text .text {
    font-size: 12px;
  }
  #mainvis .box-inner {
    padding: 20px 30px 40px;
  }
  #mainvis {
    min-height: 100vw;
  }
  #mf1 .grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  #mf1 .grid .grid1,
  #mf1 .grid .grid2,
  #mf1 .grid .grid3,
  #mf1 .grid .grid4,
  #mf1 .grid .grid5,
  #mf1 .grid .grid6 {
    grid-column: auto;
    grid-row: auto;
  }
  #mf2 .content .grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  #mf2 .content .box {
    max-width: none;
  }
  #mf2 .content .header {
    font-size: 28px;
  }

  #mf2 .content .subheader {
    font-size: 15px;
    padding: 20px 0px 35px 0px;
  }
  #mf2 .content {
    margin: 50px 0;
  }
  
  #mf3{
    padding: 50px 0px;
  }
  #mf3 .content .grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 10px;
  }
  #mf3 .content .header{
    font-size: 30px;
  }
  #mf3 .content .header::before{
    left: -16px;
  }
  #mf3 .content .header::after{
    right: -16px;
  }
  #mf3 .content .header::after,
#mf3 .content .header::before{
  height: 25px;
}

#mf4{
  padding: 50px 0px;
}
#mf4 .content .grid .green, #mf4 .content .grid .orange {
  font-size: 15px;
  height: 60px;
}
#mf4 .content .grid {
  column-gap: 30px;
}
#mf4 .content .grid .green::after, #mf4 .content .grid .orange::after {
  top: 50%;
  right: 30px;
}
}

@media screen and (max-width: 700px){
  #mf4 .content .grid{
    gap: 20px;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
  #mf4 .content .grid .green, #mf4 .content .grid .orange {
    height: 50px;
  }
  
}

@media screen and (max-width: 540px) {
  .container {
    padding: 0 30px;
  }
  #mainvis .box-text .title {
    font-size: 30px;
  }
  #mainvis .box-text .sub-title {
    font-size: 15px;
  }
  #mainvis .box-text .text {
    font-size: 12px;
  }
  #mainvis .box-inner {
    padding: 15px 25px 35px;
  }
  #mf1 .grid .grid1,
  #mf1 .grid .grid2,
  #mf1 .grid .grid3,
  #mf1 .grid .grid4,
  #mf1 .grid .grid5,
  #mf1 .grid .grid6 {
    height: 80px;
  }
  #mf2 .content .ribbon {
    font-size: 28px;
  }
  #mf3 .content .grid .box p {
    font-size: 14px;
    line-height: 17px;
  }
  #mf3 .content .grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(17, 1fr);
  }
  #mf3 .content .long-text{
    font-size: 12px;
    line-height: 25px;
  }
}

@media screen and (max-width: 425px) {
  #mainvis .box-text .title {
    font-size: 20px;
  }
  #mainvis .box-text .sub-title {
    font-size: 13px;
    margin-top: 17px;
    margin-bottom: 14px;
  }
  #mainvis .box-text .text {
    font-size: 10px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 1px;
  }
  #mainvis .box-inner {
    padding: 15px 10px;
  }
  #mf1 .grid {
    grid-template-rows: repeat(6, 1fr);
    grid-template-columns: 1fr;
  }
  #mf1 .grid .grid1,
  #mf1 .grid .grid2,
  #mf1 .grid .grid3,
  #mf1 .grid .grid4,
  #mf1 .grid .grid5,
  #mf1 .grid .grid6 {
    height: 60px;
    font-size: 14px;
  }
  #mf1 .grid .grid1 {
    font-size: 15px;
  }
  #mf1 .grid {
    gap: 10px;
    padding: 30px 0;
  }
  #mf2 .content .grid-container {
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: 1fr;
  }
  #mf2 .content .box-inner {
    padding: 15px 0px;
  }
  #mf2 .content .header {
    font-size: 22px;
    padding-top: 20px;
  }

  #mf2 .content .subheader {
    letter-spacing: 1px;
    line-height: 20px;
    font-size: 12px;
    padding: 18px 0px 30px 0px;
  }
  #mf2 .content .ribbon {
    font-size: 18px;
  }
  #mf2 .content .ribbon::before {
    width: 32px;
    height: 41px;
    left: -23px;
  }
  #mf2 .content .ribbon::after {
    width: 32px;
    height: 41px;
    right: -23px;
  }
  #mf2 .content .last {
    font-size: 12px;
  }
  #mf2 .content .box-inner .yen {
    padding-top: 8px;
  }
  #mf3 .content .grid .box {
    padding: 5px;
    height: 80px;
  }
  #mf3 .content .long-box {
    font-size: 20px;
    height: 80px;
    margin-bottom: 10px;
    margin-top: 30px;
  }

  #mf3 .content .header {
    font-size: 24px;
    line-height: 45px;
  }
  #mf3 .content .header::before{
    left: 0;
  }
  #mf3 .content .header::after{
    right: 0;
  }
  #mf3 .content .header::after,
#mf3 .content .header::before{
  bottom: 6px;
}
#mf4 .content .grid .green, #mf4 .content .grid .orange {
  font-size: 13px;
}
}
@media screen and (max-width: 375px){
  #mf3 .content .header::after,
#mf3 .content .header::before{
  bottom: 2px;
}
}
@media screen and (max-width: 320px){
  #mf3 .content .header::after,
#mf3 .content .header::before{
  bottom: 8px;
}
}
