@import url(./common/_variable.css);
@import url(./common/_reset.css);
@import url(./common/_header.css);
@import url(./common/_footer.css);

/* common */
/* ============================================ */

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
  /*check the header hight!*/
}

body {
  background-color: #FFF;
  color: var(--font_c);
  font-family: var(--font_normal);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.6;
  text-size-adjust: 100%;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  min-height: 100dvh;
  overflow-wrap: anywhere;
  /* 収まらない場合に折り返す */
  word-break: normal;
  /* 単語の分割はデフォルトに依存 */
  line-break: strict;

  /* 禁則処理を厳格に適用 */
  @media (max-width: 896px) {
    font-size: 1.4rem;
  }

  .is-fixed {
    height: 100%;
    overflow: hidden;
  }
}

#wrapper {
  position: relative;
}

a {
  color: currentColor;
  transition: all 0.3s ease-out;

  &:hover {
    @media(hover:hover) {
      opacity: 0.7;
    }
  }
}

img {
  max-width: 100%;
  height: auto;
}

.reading {
  overflow: hidden;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
}

.pconly {
  @media (max-width: 896px) {
    display: none;
  }
}

.sponly {
  display: none;

  @media (max-width: 896px) {
    display: block;
  }
}

.portraitonly {
  display: none;

  @media (max-width: 480px) {
    display: block;
  }
}

.portraitnone {
  @media (max-width: 480px) {
    display: none;
  }
}

.tabonly {
  display: none;

  @media (max-width: 1025px) {
    display: block;
  }
}

.tabnone {
  @media (max-width: 1025px) {
    display: none;
  }
}

.span_br {
  display: inline-block;
}

.width_basic {
  max-width: 1200px;
  margin: 0 auto;
}




/* Page top */
/* ============================================ */
.pagetop_arrow {
  position: fixed;
  right: 2.6vw;
  bottom: -100px;
  z-index: 1500;
  transition: all 300ms 0s ease;
  opacity: 0;

  button {
    overflow: hidden;
    outline: none;
    display: block;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px;
    width: 54px;
    box-sizing: border-box;

    @media (max-width: 896px) {
      width: 36px;
    }

    img {
      width: 100%;
      height: auto;
    }
  }

  @media (max-width: 896px) {
    right: 20px;
  }
}

.fade_in {
  .pagetop_arrow {
    opacity: 1;
    transition: all 300ms 0s ease;
    bottom: 220px;

    @media (max-width: 896px) {
      bottom: 20px;
    }
  }
}




/* Drawer menu */
/* ============================================ */
.drawer_menu {
  .btn_drawer {
    position: fixed;
    top: 10px;
    right: 100px;
    height: 64px;
    width: 64px;
    z-index: 9400;
    border-radius: 50px;
    display: grid;
    place-content: center;
    cursor: pointer;
    display: none;

    @media (max-width: 896px) {
      display: block;
      width: 40px;
      height: 40px;
      right: 5px;
      top: 0px;
    }
  }

  .button {
    position: relative;
    height: 26px;
    width: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;

    @media (max-width: 896px) {
      width: 30px;
      height: 20px;
      right: 0px;
      top: 6px;
    }
  }

  .button-bar {
    display: block;
    content: "";
    width: 100%;
    height: 2px;
    background: #666;
  }

  .button-bar::before,
  .button-bar::after {
    display: block;
    position: absolute;
    content: "";
    width: 100%;
    height: 2px;
    background: #666;
    transition: 0.3s ease;
  }

  .button-bar::before {
    top: 0;
  }

  .button-bar::after {
    bottom: 1px;
  }

  .button.is-active .button-bar {
    height: 0;
  }

  /* ボタンをクリックしたときにバツに変える */
  .button.is-active .button-bar::before {
    opacity: 1;
    top: 50%;
    transform: rotate(45deg) translateY(-50%) translateX(-1px);
    transition: 0.3s ease;
  }

  .button.is-active .button-bar::after {
    opacity: 1;
    top: 50%;
    transform: rotate(-45deg) translateY(-50%) translateX(1px);
    transition: 0.3s ease;
  }

  .menu {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    inset: 0;
    transition: 0.3s ease;
    z-index: 8000;

    .drawer_menu__area {
      position: absolute;
      top: 0px;
      right: -70vw;
      background-color: #FFFADD;
      width: auto;
      height: 100%;
      padding: 20px 3vw 20px;
      box-sizing: border-box;
      text-align: center;
      overflow: auto;
      display: inline-block;
      transition: 0.3s ease;

      @media (max-width: 480px) {
        width: 100vw;
      }
    }
  }

  .menu.is-active {
    opacity: 1;
    visibility: visible;
    width: auto;
    height: 100vh;
    transition: 0.5s ease;

    .drawer_menu__area {
      right: 0px;
      z-index: 7000;
    }
  }

  .overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
  }

  .list {
    position: relative;
    display: flex;
    z-index: 8100;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    gap: 24px;
    font-size: 20px;
    flex-direction: column;
    list-style-type: none;
  }
}

.d_inner {
  display: inline-block;
  padding: 80px 0 0;

  @media (max-width: 896px) {
    padding: 50px 0 0;
  }

  @media (max-width: 480px) {
    padding: 50px 15px 0;
  }
}

.drawer_menu__block {
  position: relative;
}

.drawer_menu__block--list {
  padding-left: 2vw;

  @media (max-width: 480px) {
    border-left: none;
    padding-left: 0vw;
  }
}

.d_list {
  .d_item {
    padding: 5px 0;
    font-size: 1.8rem;
    line-height: 1.4em;

    @media (max-width: 896px) {
      font-size: 1.6rem;
    }

    a {
      display: block;
      padding: 7px 10px 9px 16px;
      /* border: #666 dotted 1px; */
      text-align: left;
      position: relative;

      @media (max-width: 896px) {
        padding: 5px 0px 5px 14px;
      }

      &::before {
        content: "●";
        font-size: 0.7em;
        position: absolute;
        top: 7px;
        left: 0px;
        color: var(--main_c);

        @media (max-width: 896px) {
          top: 6px;
        }
      }

      &:hover {
        &::before {
          color: var(--main_c);
        }
      }
    }
  }
}




/* elements */
/* ============================================ */
#visual {
  position: relative;
}

.area__visual {
  padding-top: 30px;


  @media (max-width: 480px) {
    padding-top: 50px;
  }

  img {
    width: 100%;
    height: auto;
  }
}

.ttl_section {
  font-weight: 900;
  font-size: clamp(3rem, 3.59vw, 4.6rem);
  line-height: 1.2em;
}

.ttl_section.wh {
  color: #FFF;
}

.txt_section {
  font-size: clamp(1.8rem, 1.5vw, 2.6rem);
  line-height: 1.8em;
  padding: 30px 0 0;

  @media (max-width: 896px) {
    padding: 16px 0 0;
    text-align: justify;
    line-height: 1.6em;
  }
}

.txt_section.wh {
  color: #FFF;
}

.txt_sub {
  font-size: clamp(1.8rem, 1.875vw, 2.4rem);
  font-weight: 700;
  line-height: 1.8em;
  padding: 16px 0 0;

  @media (max-width: 896px) {
    padding: 10px 0 0;
    text-align: justify;
    line-height: 1.4em;
  }
}

.bold {
  font-weight: 900;
  font-size: 1.1em;
}