:root {
  --brand-color: #a4d5bd;
  --sub-brand-color: #496f58;
  --third-brand-color: #325e42;
  --back-color: #fff;
  --section-margin: 120px;
  --base-font-size: 1.6rem;
}
@media screen and (min-width: 751px) {
  :root {
    --section-margin: 120px;
  }
}
@media screen and (max-width: 750px) {
  :root {
    --section-margin: 60px;
  }
}
html {
  font-size: 10px; /* 1rem = 10px に設定 */
  letter-spacing: 0.1rem;
  scroll-behavior: smooth;
  font-family: "Yu Gothic", "游ゴシック", sans-serif;
}

@media screen and (min-width: 751px) {
  html {
    scroll-padding-top: 400px;
  }
}

@media screen and (max-width: 750px) {
  html {
    scroll-padding-top: 100px;
  }
}

body {
  font-size: 1.6rem;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
input:-webkit-autofill {
  /* 色はinput要素の背景色（ここでは#fff）にそろえる */
  box-shadow: 0 0 0px 999px #fff inset;
}
input {
  border-radius: 5px;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;

  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
}

textarea {
  border-radius: 5px;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;

  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  width: 100%;
}
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.zoom_hidden {
  position: relative;
  overflow: hidden;
}
.zoom-in-section {
  opacity: 0.6;
  transform: scale(1.2); /* 初期状態を拡大 */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.zoom-in-section.is-visible {
  opacity: 1;
  transform: scale(1); /* 通常のサイズに戻す */
}
.btn_wrap {
  width: 100%;
  text-align: center;
}
.more_btn {
  width: auto;
  position: relative;
  font-size: 1.8rem;
  padding: 2rem 6rem;
  font-weight: 500;
  display: inline-block;
  text-align: center;
  background-color: var(--sub-brand-color);
  border-radius: 50px;
  color: #fff;
}

.copy p {
  text-align: center;
  color: #fff;
  padding: 0 0 20px;
  background: var(--brand-color);
  font-size: 1.2rem;
}

a {
  color: #000;
  font-size: 1.6rem;
  transition: opacity 0.5s;
}
a:hover {
  opacity: 0.8;
}
p {
  font-size: 1.7rem;
  line-height: 180%;
  margin-bottom: 1.8rem;
}
p:last-child {
  margin: 0 !important;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
}
span.page-numbers.current {
  padding: 10px;
  background: var(--sub-brand-color);
  color: #fff;
  border: 1px solid var(--sub-brand-color);
}

a.page-numbers {
  padding: 10px;
  background: #fff;
  color: var(--sub-brand-color);
  border: 1px solid var(--sub-brand-color);
}

.service_box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.service_box ul {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 calc(var(--section-margin) / 2);
}

.service_box ul li {
  width: calc((100% - 20px) / 2);

  padding: 2.8rem 2rem 2rem;
  border: 5px solid rgba(245, 81, 84, 0.4);
}

.service_box ul li h3 {
  width: 100%;
  font-size: 2rem;
  font-weight: 500;
  padding: 0 1rem 1rem;
  border-bottom: 5px solid rgba(245, 81, 84, 0.4);
  margin: 0 0 2rem;
}

.service_box .wp-block-table td,
.wp-block-table th {
  border: none !important;
  padding: 1em 0;
  font-size: 1.4rem;
  line-height: 140%;
}
.service_box .wp-block-table td {
  padding: 10px;
}
.service_box .wp-block-table td:nth-child(2n) {
  text-align: right;
  width: 30%;
}

.qa_contents {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin: 0 0 40px;
  border: 3px solid var(--sub-brand-color);
}

.faq-item {
  margin-left: auto;
  margin-right: auto;
}

.faq-question__wrap {
  position: relative;
  padding: 10px 5px 10px 35px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.faq-question__title {
  font-size: 2rem;
  font-weight: 500;
  position: relative;
  width: 90%;
  padding: 0 0 0 20px;
  line-height: 140%;
}
.faq-question__title::before {
  position: absolute;
  content: "Q";
  top: 50%;
  left: -35px;
  transform: translateY(-50%);
  font-family: "Barlow", sans-serif;
  font-size: 3.2rem;
  background: var(--sub-brand-color);
  color: white;
  display: inline-block;
  width: 4rem;
  height: 4rem;
  line-height: 3.5rem;
  text-align: center;
  border-radius: 50%;
}

.faq-answer__title::before {
  position: absolute;
  content: "A";
  top: 50%;
  left: -35px;
  transform: translateY(-50%);
  font-family: "Barlow", sans-serif;
  font-size: 3.2rem;
  background: var(--sub-brand-color);
  color: white;
  display: inline-block;
  width: 4rem;
  height: 4rem;
  line-height: 3.5rem;
  text-align: center;
  border-radius: 50%;
}

span .faq-answer {
  font-weight: bold;
  background: #6b8e64;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  font-size: 16px;
}

.answer {
  display: flex;
  gap: 10px;
}

.answer p {
  font-weight: bold;
}

.answer_a {
  font-weight: bold;
  color: #8cafa4;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  font-size: 30px;
}

.faq-answer__wrap {
  display: flex;
}

.faq-answer__wrap.active {
  height: auto;
}
.faq-answer__wrap {
  background: #fff;
  opacity: 0;
  padding: 10px 5px 10px 35px;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transition: ease all 0.7s; /* 擬似要素のトランジションを追加 */
}

.faq-answer__wrap.active {
  opacity: 1;
  padding: 10px 5px 10px 35px;
}

.faq-answer__title {
  position: relative;
  font-weight: 500;
  color: #000;
  font-size: 1.6rem;
  padding: 0 0 0 20px;
  line-height: 140%;
  width: 100%;
}

.faq-answer__text {
  margin-top: 5px;
}

@media screen and (min-width: 751px) {
  .main_wrap {
    max-width: 1200px;
    min-width: 1000px;
    margin: auto;
    padding: 0 2%;
  }
  .sub_main_wrap {
    width: 1000px !important;
    margin: auto;
    padding: 0 2%;
  }
  .sub_main_wrap h2 {
    padding-bottom: calc(var(--section-margin) / 3);
  }
  .moca_sp {
    display: none;
  }
  .moca_pc {
    display: block;
  }
  h2.title {
    width: 100%;
    font-size: 4rem;
    font-weight: 700;
    color: #494949;
    text-align: center;
    margin: 0 0 20px;
  }

  h3.title {
    width: 100%;
    font-size: 2.4rem;
    text-align: center;
    color: var(--sub-brand-color);
    margin: 0 0 calc(var(--section-margin) / 2);
  }
  ul.thumb_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0 auto calc(var(--section-margin) / 2);
  }

  ul.thumb_list li {
    width: calc((100% - 40px) / 2);
    position: relative;
    line-height: 0;
  }
  ul.thumb_list li img.thumb {
    line-height: 0;
  }
  ul.thumb_list li .title {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
  }
  ul.thumb_list li .title h3 {
    width: calc(100% - 64px);
    padding: 20px 20px;
    line-height: 140%;
    font-weight: 500;
  }
  ul.thumb_list li .title img.arrow {
    width: 64px;
  }
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    width: 90%;
    margin: 0 5%;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .voice_wrap ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
  }
  .voice_wrap ul li {
    width: 80%;
    margin: 0 10%;
    padding: 40px;
    background: #fff;
    position: relative;
  }
  .voice_wrap ul li img.voice {
    width: 120px;
    position: absolute;
    right: 0;
    top: -80px;
  }

  .voice_wrap ul li h3 {
    font-size: calc(var(--base-font-size) * 1.4);
    color: var(--sub-brand-color);
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px;
    position: relative;
  }
  .voice_wrap .btn_wrap {
    margin: calc(var(--section-margin) / 2) 0;
  }
  .blog_wrap ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0 0 60px;
  }

  .blog_wrap ul li {
    width: calc((100% - 40px) / 2);
    background: #fff;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); /* 右下に影を追加 */
  }
  .blog_wrap ul li a {
    font-size: 1.6rem;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .blog_wrap ul li a img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .blog_wrap ul li a .contents {
    width: 100%;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .blog_wrap ul li h3 {
    line-height: 160%;
  }
}
@media screen and (max-width: 750px) {
  .main_wrap {
    width: 100%;
    padding: 0 1.2rem;
  }

  .moca_sp {
    display: block;
  }
  .moca_pc {
    display: none;
  }
  h2.title {
    width: 100%;
    font-size: 2.4rem;
    font-weight: 700;
    color: #494949;
    text-align: center;
    margin: 0 0 20px;
  }

  h3.title {
    width: 100%;
    font-size: 1.8rem;
    text-align: center;
    color: var(--sub-brand-color);
    margin: 0 0 calc(var(--section-margin) / 2);
  }
  ul.thumb_list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 0 auto calc(var(--section-margin) / 2);
  }

  ul.thumb_list li {
    width: 94%;
    margin: 0 3%;
    position: relative;
    line-height: 0;
  }
  ul.thumb_list li img.thumb {
    line-height: 0;
  }
  ul.thumb_list li .title {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    align-items: center;
  }
  ul.thumb_list li .title h3 {
    width: calc(100% - 32px);
    padding: 0 10px;
    line-height: 140%;
    font-weight: 500;
    font-size: 1.4rem;
  }
  ul.thumb_list li .title img.arrow {
    width: 32px;
  }
  .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
    margin: 0;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .voice_wrap ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
  }
  .voice_wrap ul li {
    width: 100%;
    padding: 20px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #fcfcfc;
  }
  .voice_wrap ul li img.voice {
    width: 120px;
    margin: 0 auto 30px;
    display: block;
  }

  .voice_wrap ul li h3 {
    font-size: calc(var(--base-font-size) * 1.4);
    color: var(--sub-brand-color);
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
    position: relative;
  }
  .voice_wrap .btn_wrap {
    margin: calc(var(--section-margin) / 2) 0;
  }
  .blog_wrap ul {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 60px;
  }

  .blog_wrap ul li {
    width: calc((100% - 20px) / 2);
    background: #fff;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); /* 右下に影を追加 */
  }
  .blog_wrap ul li a {
    font-size: 1.6rem;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .blog_wrap ul li a img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
  .blog_wrap ul li a .contents {
    width: 100%;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .blog_wrap ul li a .contents h3 {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 140%;
  }
}
