@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
  font-family: "Zen Old Mincho", serif,sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  text-align: justify;
}
.container {
  margin: 0 auto;
}
section {
  margin-bottom: 120px;
}
h1, h2, h3 {
  text-align: center;
}
h1 {
  padding: 124px;
  font-size: 40px;
}
h2 {
  margin-bottom: 60px;
  font-size: 2rem;
}
ul, ol {
  margin: 0;
  padding-left: 20px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
a {
  color: #b18152;
}

a:hover {
  opacity: .7;
}

.sp_block {
  display: none;
}

.message_flex {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.message_video {
  width: 600px;
  height: 850px;
  object-fit: cover;
  background: transparent;
  background-color: transparent !important;
  flex-shrink: 0;
}

.message_text {
  flex: 1 1 0;
  padding: 0 32px;
}


#message .section_title {
  text-align: left;
}

.section_title span {
  position: relative;
  padding-left: 20px;
  width: auto;
  /* 必要に応じてpaddingやmarginを調整 */
}

.section_title span::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -20px;
  display: block;
  width: 300px;
  height: 100px;
  background-image: url("../img/message_logo.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

#flow .section_title span::before {
  width: 180px;
  background-image: url("../img/flow_logo.svg");
}

#faq .section_title span::before {
  width: 120px;
  background-image: url("../img/faq_logo.svg");
}

#contact .section_title span::before {
  width: 280px;
  background-image: url("../img/contact_logo.svg");
}

.main_header {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../img/main.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main_header img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.flow_box {
  display: flex;
  gap: 32px;
  padding-left: 40px;
}

.flow_box li:not(:last-of-type) {
  margin-bottom: 20px;
}

.flow_image {
  max-width: 800px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 32px;
}

.flow_title {
  font-size: 24px;
  font-weight: bold;
}

.flow_contents {
  margin: 0;
  font-size: 14px;
}

.faq_box {
  max-width: 800px;
  margin: auto;
}

.question {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: bold;
}

.answer {
  text-indent: -1.5em;
  padding-left: 1.5em;
}

.answer:not(:last-of-type) {
  margin-bottom: 32px;
}

/* iPadスタイル */
@media (min-width: 768px) and (max-width: 1024px) {
  .main_header {
    height: 470px;
  }

  h1 {
    font-size: 32px;
  }

  .section_title {
    font-size: 1.8rem;
  }

  .flow_title,
  .question {
    font-size: 1.5rem;
  }
}

/* スマホスタイル */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }

  h1 {
    padding: 20px;
    font-size: 24px;
  }

  .sp_block {
    display: block;
  }

  .main_header {
    height: 200px;
  }

  .main_header img {
    width: 180px;
  }

  .message_flex,
  .flow_box {
    flex-flow: column;
  }

  .flow_box,
  .faq_box {
    padding: 0 20px;
  }

  .message_video {
    width: 100%;
    height: 500px;
  }

  section {
      margin-bottom: 40px;
  }

  .section_title {
    margin-bottom: 20px;
    font-size: 1.5rem;
  }

  .flow_title,
  .question {
    font-size: 1.2rem;
  }

  #message .section_title {
    text-align: center;
    padding-left: 0;
  }

  .section_title span::before {
    width: 200px;
  }
  #flow .section_title span::before {
    width: 120px;
  }

  #faq .section_title span::before {
    width: 100px;
  }

  #contact .section_title span::before {
    width: 200px;
  }
}

.scroll-fadein {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.scroll-fadein.visible {
  opacity: 1;
  transform: translateY(0);
}