@charset "UTF-8";
@import url("_root.css");

/*
* 共通スタイル
*/
html {
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Noto Serif JP", serif;
  font-size: var(--body-text-size-sp);
  background-color: var(--body-background-color);
  @media screen and (min-width:769px) {
    font-size: var(--body-text-size-pc);
  }
}


/* ヘッダー */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 4px 16px;
  background-color: var(--header-background-color);
  /* ロゴ */
  .logo {
    display: inline-block;
    a {
      display: block;
    }
    img {
      height: 80px;
    }
  }
}

/* スマホメニューボタン */
.sp-menu {
  position: fixed;
  display: block;
  right: 3%;
  top: 6px;
  width: 56px;
  height: 56px;
  background-color: transparent;
  background-size: 56px 56px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9999;
  @media screen and (min-width:769px) {
    width: 72px;
    height: 72px;
    right: 2%;
    top: 6px;
  }
  span {
    position: absolute;
    left: 16px;
    margin: 0;
    padding: 0;
    width: 24px;
    height: 2px;
    display: inline-block;
    transition: all 0.4s;
    box-sizing: border-box;
    background-color: #FFFFFF;;
    border-radius: 4px;

    @media screen and (min-width:769px) {
      left: 20px;
      width: 28px;
    }

    &:nth-of-type(1) {
      top: 20px;

      @media screen and (min-width:769px) {
        top: 28px;
      }
    }

    &:nth-of-type(2) {
      top: 29px;

      @media screen and (min-width:769px) {
        top: 37px;
      }
    }

    &:nth-of-type(3) {
      top: 38px;

      @media screen and (min-width:769px) {
        top: 46px;
      }
    }
  }
}
.sp-menu.active {
  background-color: transparent;

  span {
    background-color: rgba(255, 255, 255, 0.8);

    &:nth-of-type(1) {
      -webkit-transform: translateY(9px) rotate(-45deg);
      transform: translateY(9px) rotate(-45deg);
    }

    &:nth-of-type(2) {
      opacity: 0;
    }

    &:nth-of-type(3) {
      -webkit-transform: translateY(-9px) rotate(45deg);
      transform: translateY(-9px) rotate(45deg);
    }
  }
}

/* メニュー */
nav {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 100vw;
  display: block;
  margin: 0 auto;
  padding: 40px 80px 40px 16px;
  width: calc(100% - 8%);
  color: #ffffff;
  background-color: var(--menu-background-color);
  overflow-y: auto;
  transition: all 0.6s;
  z-index: 9500;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.4));
  @media screen and (min-width:769px) {
    padding: 40px 0;
  }

  h2 {
    margin-bottom: 8px;
    text-align: center;
    text-align: center;
    &::before,
    &::after {
      content: none;
    }
    img, svg {
      margin: 0 auto;
      height: 48px;
      @media screen and (min-width:769px) {
        height: 80px;
      }
      path {
        fill: #ffffff;
      }
    }
  }

  &.open {
    left: 8%;
  }
  &.close {
    left: 100vw;
  }

  .navMenu {
    margin: 0 auto 32px auto;
    padding: 0;
    width: 100%;
    list-style-type: none;

    @media screen and (min-width:769px) {
      max-width: 480px;
    }

    li {
      margin: 0;
      padding: 0;
      border-bottom: 1px dotted #ececec;

      &:first-of-type {
        border-top: 1px dotted #ececec;
      }

      a {
        display: block;
        padding: 1.6rem 1.6rem;
        width: 100%;
        height: 100%;
        /* font-family:  */
        font-size: 24px;
        font-weight: 400;
        color: #ffffff;
        line-height: 1.6;
        text-decoration: none;

        &:hover {
          text-decoration: none;
        }
      }
    }
  }
}

/* 右SNS */
.section-floatSns {
  position: fixed;
  top: 72px;
  right: 16px;
  display: inline-block;
  padding: 0;
  width: 48px;
  z-index: 9999;
  @media screen and (min-width:769px) {
    top: 128px;
    right: 40px;
    width: 64px;
  }
  ol {
    margin: 0 auto;
    padding: 0;
    list-style-type: none;
    li {
      margin-bottom: 8px;
      width: 48px;
      height: 48px;
      @media screen and (min-width:769px) {
        margin-bottom: 8px;
        width: 64px;
        height: 64px;
      }
      a {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 12px;
        width: 100%;
        height: 100%;
        background-color: var(--sns-background-color);
        border-radius: 50%;
        @media screen and (min-width:769px) {
          padding: 16px;
        }
      }
      img,
      svg {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        path {
          fill: rgba(255, 255, 255, 1.0);
        }
      }
    }
  }
}


/* リンク */
a {
  position: relative;
  color: var(--body-text-color);
  transition: all 0.6s;
  text-decoration: none;

  &:hover:not(.no-underline) {
    color: var(--body-text-color);
    opacity: 0.8;
    &::after {
      transform: scale(1, 1);
    }
  }
  &:not(:has(img, svg)) {
    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 1px;
      background: #3B1703;
      transition: all .3s;
      transform: scale(0, 1);
      transform-origin: left top;
    }
  }
  img {
    transition: all 0.6s;

    &:hover {
      opacity: 0.88;
    }
  }
}

/* テキスト揃え */
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}

/* セクション */
section {
  margin: 0 auto;
  padding: 0;
}

/* コンテンツ幅 */
.contents {
  width: 100%;
}
.contents-1280 {
  margin: 0 auto;
  padding: 0 16px;
  max-width: calc(1280px - 32px);
}
.contents-960 {
  margin: 0 auto;
  padding: 0 16px;
  max-width: calc(960px - 32px);
}

/* 見出し */
h2 {
  margin: 0 auto 24px auto;
  text-align: center;
  font-family: var(--section-title-font);
  font-weight: bold;
  font-size: 32px;
  @media screen and (min-width:769px) {
    font-size: 48px;
  }
}

/* more リンク */
.link-more {
  margin-top: 3.2rem;
  width: auto;
  font-family: var(--section-title-font);
  font-size: 14px;
  text-align: center;
  line-height: 1.0;
  @media screen and (min-width:769px) {
    font-size: 24px;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
}
/* Backリンク */
.page-back {
  margin-top: 80px;
  text-align: center;
}

/* フッター */
footer {
  margin-top: 128px;
  padding: 8px 16px;
  font-size: 11px;
  color: var(--footer-text-color);
  text-align: center;
  background-color: var(--footer-background-color);
}