:root {
  --base-fontset: YakuHanJP, "LINE Seed JP", sans-serif;
  --bg-color: #dcf6ff;
  --base-color: #0071bc;
}
/* html {
  scroll-behavior: smooth;
} */
body {
  font-family: var(--base-fontset);
  font-feature-settings: "palt";
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 2;
  background-color: #fff;
  color: var(--base-color);
  width: 100%;
  overflow-x: clip;
}
@media (max-width: 959px) {
  body {
    font-size: min(4.26vw, 16px);
  }
}
@media (min-width: 960px) {
  body {
    font-size: min(1.35vw, 15px);
  }
  html {
    scrollbar-gutter: stable;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: inherit;
}
.container {
  width: 84%;
  margin: auto;
}
h1,
h2,
h3,
h4 {
  text-wrap: wrap;
}
h4 {
  font-size: 1.4em;
  font-weight: 800;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0;
  padding: 2em 0 1.5em 0;
}
h3 + h4 {
  padding-top: 0;
}
h3.sakana_point::after {
  content: "";
  display: block;
  height: 2.5em;
  background-image: url(../image/sakana_title_point.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  margin: 1em 0 1.5em;
}
header {
  padding: 0.5em 1.5em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 113, 188, 0.2);
  .tohto_logo {
    width: 140px;
    height: auto;
  }
}
.menu_open_btn {
  position: fixed;
  top: 0.5em;
  right: 1.75em;
  z-index: 100;
  & button {
    width: 3em;
    height: 3em;
    & span:not(.text) {
      position: absolute;
      width: 100%;
      height: 3px;
      display: block;
      background-color: var(--base-color);
    }
    & span:first-child {
      top: 0.5em;
    }
    & span:nth-child(2) {
      top: 1.25em;
    }
    & span.text {
      color: var(--base-color);
      font-weight: 800;
      font-size: 0.7em;
      position: absolute;
      top: 2.5em;
      display: block;
      width: 100%;
      text-align: center;
      margin: 0 auto;
    }
  }
}
@media (min-width: 461px) {
  .menu_open_btn {
    right: calc((100% - 460px) / 2 + 1.75em);
  }
}
main {
  width: 100%;
  max-width: 460px;
  background-color: var(--bg-color);
}
@media (min-width: 461px) {
  .sp_only {
    display: none;
  }
  .wrapper {
    position: relative;
    width: 100%;
    display: flex;
  }
  main {
    position: relative;
    z-index: 2;
    margin: 0;
    box-shadow: 0 0 1px rgba(0, 113, 188, 0.7);
  }
  aside {
    flex: 1;
    background-color: #e5f8ff;
  }
  aside.left_side::before {
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(../image/bg-pattern.png);
    background-size: 45px 45px;
    position: fixed;
    z-index: 2;
  }
  .img_max {
    max-width: 344px;
    margin: auto;
  }
}

.section_image img {
  width: min(80%, 340px);
}
.section_image.left img {
  margin: 0 auto 0 0;
}
.section_image.right {
  width: 100%;
  text-align: right;
}
.section_image.right img {
  margin: 0 0 0 auto;
}
.sakana_list {
  & li {
    padding: 0 0 0.75em 3em;
    position: relative;
    line-height: 1.7;
  }
  & li::before {
    position: absolute;
    top: -0.2em;
    left: 0;
    content: "";
    display: block;
    width: 2.25em;
    height: 2.25em;
    background-image: url(../image/sakana_li.png);
    background-size: contain;
    background-color: #ffff00;
    border-radius: 50%;
  }
}
.sakana_list.blue {
  & li::before {
    background-color: #b3efff;
  }
}
.marker {
  font-weight: 700;
  background: #ffff00;
}
.marker.blue {
  background: #d9fffd;
}
.bold {
  font-weight: 700;
}
.lead {
  padding: 2em 0 6em 0;
  & h1 {
    padding: 0.25em 0 0.75em 0;
  }
  & h2 {
    padding: 2em 0;
  }
  & a {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
.section_1 {
  background-color: #faf5ea;
  padding: 0.5em 0 1em;
  & h3 {
    padding: 2em 0 0 0;
  }
}
.section_2 {
  background-color: #fff691;
  padding: 3em 0 1em;
}
.section_3 {
  background-color: #faf5ea;
  padding: 3em 0 3em;
}
.section_4 {
  background-color: #fff691;
  padding: 4em 0 4em;
  & h3 + p {
    padding: 0 0 1em 0;
  }
  .sanma_kotsu {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-radius: 1.5em;
    border: #ffe600 solid 5px;
    background-color: #fff;
    line-height: 1.8;
    & ol {
      list-style: decimal;
      padding-left: 1.25em;
      font-weight: 700;
    }
  }
  .tohto_net {
    font-weight: 700;
    text-align: center;
    padding: 2em 0 0 0;
    .tohto_net_btn a {
      display: inline-block;
      margin: 0.5em auto 0;
      width: 15em;
      padding: 0.5em 2em;
      background-color: #ffe600;
      border-radius: 3em;
    }
  }
}
.section_5 {
  background-color: #dcf6ff;
  padding: 3em 0 5em;
  & h3 {
    padding: 0 0 1.5em 0;
  }
  .machigai_image {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2em 10px 0;
  }
}
.section_6.hone_quiz {
  background-color: #c2e6ff;
  padding: 3em 0 5em;
  & h3 {
    padding: 0 0 1.5em 0;
  }
  .hint {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-radius: 1.5em;
    border: #ffff00 solid 5px;
    background-color: #ffffca;
    & h5 {
      margin: 0;
      text-align: center;
      font-size: 1.5em;
    }
    & h5::before {
      content: "＼ ";
      font-weight: 300;
    }
    & h5::after {
      content: " ／";
      font-weight: 300;
    }
    & ul {
      list-style: disc;
      padding-left: 1em;
    }
  }
  .bone_list {
    padding: 1em 0;
    & ul {
      display: flex;
      flex-direction: column;
      gap: 1.5em;
    }
    & li {
      position: relative;
    }
    .q_num {
      position: absolute;
      top: 0;
      left: -0.75em;
      display: block;
      width: 2.25em;
      height: 2.25em;
      line-height: 2.25;
      text-align: center;
      font-size: 1.75em;
      font-weight: 700;
      color: #fff;
      background-color: var(--base-color);
      border-radius: 50%;
    }
    .comment {
      padding: 0.25em 0 0.5em 3em;
    }
  }
}
.section_7 {
  background-color: #faf5ea;
  padding: 3em 0 5em;
  & p {
    text-align: center;
  }
}

/* 波 */
.wave-wrapper {
  position: relative;
  height: auto;
  overflow: hidden;
  margin: -2px 0;
}
.wave-inner {
  display: flex;
  width: 200%;
  height: auto;
  animation: wave-move 5s linear infinite;
}
.wave-svg {
  width: 50%;
  height: 100%;
  flex-shrink: 0;
}
.separate_1 {
  .wave-svg path {
    fill: #faf5ea;
  }
}
.separate_2 {
  background-color: #faf5ea;
  .wave-svg path {
    fill: #fff691;
  }
}
.separate_3 {
  background-color: #fff691;
  .wave-svg path {
    fill: #faf5ea;
  }
}
.separate_4 {
  background-color: #faf5ea;
  .wave-svg path {
    fill: #fff691;
  }
}
.separate_5 {
  background-color: #fff691;
  .wave-svg path {
    fill: #dcf6ff;
  }
}
.separate_6 {
  background-color: #dcf6ff;
  .wave-svg path {
    fill: #c2e6ff;
  }
}
.separate_7 {
  background-color: #c2e6ff;
  .wave-svg path {
    fill: #faf5ea;
  }
}
.separate_8 {
  background-color: #faf5ea;
  .wave-svg path {
    fill: #fff;
  }
}
@keyframes wave-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tohto_app {
  padding: 2em 0 0 0;
  .tohto_app_info {
    display: flex;
    gap: 1em;
    .tohto_app_icon {
      width: 72px;
      > div {
        border-radius: 0.5em;
        overflow: hidden;
      }
    }
    & p {
      flex: 1;
    }
  }
  .app_link {
    padding: 1.5em 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    & img {
      width: auto;
      height: 3em;
    }
  }
}
footer {
  background-color: #fff;
  padding: 3em 0 2em;
  .footer_page_logo {
    & img {
      width: 14em;
      margin: auto;
    }
  }
  .footer_tohto_logo img {
    width: 10em;
    margin: auto;
  }
  .copyright {
    text-align: center;
    font-size: 0.8em;
    padding: 0.5em 0 0 0;
  }
}

nav {
  padding: 1.5em 1em 4em 1em;
  font-weight: 700;
  line-height: 1.6;
  & li {
    padding: 0 0 1em 0;
  }
  & a {
    padding: 0 0 0 2.25em;
    position: relative;
    display: block;
  }
  & a::before {
    position: absolute;
    top: -0.1em;
    left: 0;
    content: "";
    display: block;
    width: 1.75em;
    height: 1.75em;
    background-image: url(../image/yajirushi.svg);
    background-color: var(--base-color);
    border-radius: 50%;
  }
}
.overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  background-color: rgba(0, 113, 188, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s;
}
.overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.page_nav_wrapper {
  width: 90%;
  height: 100%;
  position: fixed;
  top: 0;
  right: -100%;
  background: #fff;
  border-top-left-radius: 3em;
  border-bottom-left-radius: 3em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  overflow-x: auto;
  z-index: 102;
  transition: all 0.5s;
  & nav li {
    padding: 0 0 1.5em 0;
    font-size: 1.05em;
  }
}
.page_nav_wrapper.is-open {
  right: 0;
}
@media (min-width: 461px) {
  .page_nav_wrapper {
    width: 380px;
    right: -400px;
  }
}
.wrapper.is-scrollLock {
  overflow: auto;
  scrollbar-gutter: stable;
}
.menu_close_button {
  padding: 1.5em 1.5em 0 1.5em;
  display: flex;
  justify-content: flex-end;
  & button {
    width: 3em;
    height: 3em;
    background-color: #dcf6ff;
    border-radius: 50%;
    position: relative;
    & span {
      display: block;
      width: 50%;
      height: 3px;
      left: 25%;
      top: calc(50% - 1px);
      position: absolute;
      background-color: var(--base-color);
      transform: rotate(45deg);
    }
    & span:nth-child(2) {
      transform: rotate(-45deg);
    }
  }
}
@media (max-width: 1199px) {
  .side_nav,
  .right_side_image {
    display: none;
  }
}
@media (min-width: 1200px) {
  .side_nav,
  .right_side_image {
    z-index: 3;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .side_nav .container {
    width: 72%;
    max-width: 440px;
  }
  .side_nav_header {
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    & span {
      display: inline-block;
      margin: 0 auto 0.5em auto;
      padding: 0 0 0.25em 0;
      border-bottom: 2px solid;
    }
  }
  .right_side_image {
    .container {
      width: 82%;
      max-width: 360px;
    }
    & img {
      margin-top: -3em;
    }
  }
}
@media (any-hover: hover) {
  .section_4 {
    & .tohto_net {
      .tohto_net_btn a {
        transition: 0.3s;
      }
      .tohto_net_btn a:hover {
        background-color: #fff;
      }
    }
  }
  nav {
    & a,
    a::before {
      transition: 0.3s;
    }
    & a:hover {
      color: #29abe2;
    }
    & a:hover::before {
      background-color: #29abe2;
    }
  }
  .lead {
    & a {
      transition: 0.3s;
    }
    & a:hover {
      text-decoration: none;
      color: #29abe2;
    }
  }
}
