@charset "utf-8";

:root {
  --main-color: #197303;
}

html {
  -webkit-text-size-adjust: 100%;
  /*scroll-behavior: smooth;*/
  scroll-padding-top: 80px;
  /* font-feature-settings: "palt"; */
}

body {
  font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  background: linear-gradient(to bottom, #f7f6f3, #f7f6f3 40%, #f2eeea) fixed;

  main {
    opacity: 1;
    transition: opacity 500ms;
  }

  &.fade-out main {
    opacity: 0;
    transition: opacity 500ms;
  }
}

img {
  width: auto;
  height: auto;
}

p {
  font-size: 18px;
  line-height: 1.8;

  @media (max-width: 980px) {
    font-size: 16px;
    line-height: 30px;
  }

  strong {
    color: var(--main-color);
    font-weight: normal;
  }
}

a {
  text-decoration: none;
  color: var(--main-color);
}

ul, ol {
  list-style: none;
}

@media (min-width: 768px) {
  .sp {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .pc {
    display: none !important;
  }
}


/* --------------------------------------------------
 * Common
 */

.site-header {
  position: static;

  .logo {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    line-height: 0;
    opacity: 0;
    z-index: 4;
    transition: width 1ms 200ms, opacity 200ms, box-shadow 300ms;

    img {
      width: 100%;
    }

    .layout:not(#top) & {
      width: 140px;
      opacity: 1;
      box-shadow: 0 0 20px rgba(0, 0, 0, .1);

      @media (max-width: 980px) {
        width: 100px;
      }
    }

    body.show-logo & {
      width: 140px;
      box-shadow: 0 0 20px rgba(0, 0, 0, .1);
      opacity: 1;
      transition: width 1ms, opacity 200ms, box-shadow 300ms;

      @media (max-width: 980px) {
        width: 100px;
      }
    }

    &:hover {
      box-shadow: 0 0 20px rgba(0, 0, 0, .3) !important;
    }

    #top & a {
      pointer-events: none;
      cursor: default;
    }
  }

  @media (min-width: 981px) {
    .nav-toggle-button {
      display: none;
    }

    nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 240px;
      z-index: 2;

      > ul {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
        padding: 80px 0 40px 40px;

        > li {
          width: 100%;
          font-size: 20px;
          line-height: 1em;

          a {
            display: inline-block;
            position: relative;
            text-decoration: none;
            color: #888;
            transition: color 200ms;

            &:hover {
              color: var(--main-color);
            }

            &::before {
              content: "";
              position: absolute;
              top: calc(50% - 3px);
              left: -16px;
              width: 6px;
              height: 6px;
              background-color: var(--main-color);
              opacity: 0;
              /*transition: opacity 500ms;*/
            }
          }

          body.nav1-active &:nth-child(1),
          body.nav2-active &:nth-child(2),
          #news &:nth-child(2),
          #menu &:nth-child(3),
          #info &:nth-child(4) {
            a {
              color: var(--main-color);

              &::before {
                opacity: 1;
              }
            }
          }
        }
      }
    }
  }

  @media (max-width: 980px) {
    .nav-toggle-button {
      position: fixed;
      top: 10px;
      left: calc(50% - 24px);
      width: 48px;
      height: 48px;
      box-shadow: 0 0 5px rgba(0, 0, 0, .1);
      border-radius: 50%;
      background-color: #fff;
      white-space: nowrap;
      text-indent: 100%;
      overflow: hidden;
      z-index: 5;

      body:not(.nav-opened) & {
        &::before {
          content: "";
          position: absolute;
          top: 18px;
          left: 16px;
          width: 16px;
          height: 13px;
          border-top: 1px solid #555;
          border-bottom: 1px solid #555;
        }

        &::after {
          content: "";
          position: absolute;
          top: 24px;
          left: 16px;
          width: 13px;
          height: 1px;
          background-color: #555;
        }
      }

      body.nav-opened & {
        &::before,
        &::after {
          content: "";
          position: absolute;
          top: 50%;
          left: 12px;
          width: 24px;
          height: 1px;
          background-color: #555;
          transform: rotate(45deg);
        }

        &::after {
          transform: rotate(-45deg);
        }
      }
    }

    nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 0;
      overflow: hidden;
      opacity: 0;
      background: linear-gradient(to bottom, #fff, #fff 40%, #f2eeea) fixed;
      z-index: 4;
      transition: opacity 300ms, height 1ms 300ms;

      body.nav-opened & {
        height: 100vh;
        opacity: 1;
        transition: opacity 300ms, height 1ms;
      }

      ul {
        display: flex;
        flex-wrap: wrap;
        gap: 50px;
        padding: 100px 40px 40px;

        li {
          width: 100%;
          text-align: center;
          font-size: 24px;
          line-height: 1em;

          a {
            display: inline-block;
            position: relative;
            text-decoration: none;
            color: #888;
            transition: color 200ms;
          }

          body.nav1-active &:nth-child(1),
          body.nav2-active &:nth-child(2),
          #menu &:nth-child(3),
          #info &:nth-child(4) {
            a {
              color: var(--main-color);
            }
          }
        }
      }
    }
  }
}

main {
  position: relative;
  padding: 0 0 180px 240px;
  z-index: 1;

  @media (max-width: 980px) {
    padding: 0 0 120px;
  }

  h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 12;
    max-height: 80vh;

    @media (max-width: 980px) {
      aspect-ratio: auto;
      height: 80vh;
      max-height: 100vh;
    }

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      box-shadow: inset 0 0 100px #000;
      opacity: 0;
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
      z-index: 0;
      transition: opacity 2000ms;
    }

    span {
      position: relative;
      padding: 40px;
      box-shadow: 0 0 20px rgba(24, 85, 8, .3);
      border-top: 6px solid var(--main-color);
      border-radius: 2px;
      /*color: var(--main-color);*/
      font-size: 40px;
      font-weight: normal;
      letter-spacing: .2em;
      writing-mode: vertical-rl;
      opacity: 0;
      background-color: rgba(255, 255, 255, .9);
      z-index: 1;
      transition: opacity 700ms 800ms;

      @media (max-width: 980px) {
        padding: 30px;
        font-size: 30px;
      }
    }

    &.show {
      &::before {
        opacity: 1;
      }

      span {
        opacity: 1;
      }
    }
  }

  > .body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 40px 40px 0;

    @media (max-width: 980px) {
      padding: 30px 30px 0;
    }

    &.small {
      max-width: 800px;
      margin: 0 auto;
    }

    > * {
      width: 100%;
      max-width: 1080px;
    }

    > section {
      margin-top: 80px;

      @media (max-width: 980px) {
        margin-top: 40px;
      }

      h2 {
        margin-bottom: 60px;
        text-align: center;
        font-size: 40px;
        font-weight: normal;
        line-height: 1em;

        @media (max-width: 980px) {
          margin-bottom: 40px;
          font-size: 26px;
        }
      }
    }
  }
}

.tempura {
  position: relative;
  width: 100%;
  height: 800px;
  z-index: 3;
  background: url(../images/footer/image.jpg) no-repeat top center / cover;

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 100px #000;
  }
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  padding: 60px 40px;
  background: linear-gradient(to bottom, var(--main-color), #125601);
  z-index: 3;

  @media (max-width: 650px) {
    padding: 20px;
  }

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: .03;
    background: url(../images/common/bg03.png) repeat center / 70px auto;
    mix-blend-mode: multiply;
  }

  > * {
    position: relative;
    z-index: 1;
  }

  section {
    width: 100%;
    max-width: 860px;
    padding: 60px 40px;
    border-radius: 10px;
    background-color: #fff;

    @media (max-width: 650px) {
      padding: 30px;
    }

    h2 {
      position: relative;
      margin-bottom: 30px;
      padding-bottom: 22px;
      text-align: center;
      font-size: 30px;
      font-weight: normal;
      line-height: 1em;

      span {
        display: inline-block;
      }

      @media (max-width: 650px) {
        margin-bottom: 20px;
        padding-bottom: 12px;
        font-size: 24px;
        line-height: 1.5;
      }

      &::before {
        content: "";
        position: absolute;
        left: calc(50% - 15px);
        bottom: 0;
        width: 30px;
        height: 2px;
        background-color: var(--main-color);
      }
    }
  }

  .business-days {
    > p {
      text-align: center;
    }

    .calendars {
      display: flex;
      justify-content: space-between;
      margin-top: 20px;

      @media (max-width: 650px) {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
      }

      .calendar {
        width: calc(50% - 20px);

        @media (max-width: 650px) {
          width: 100%;
        }

        .month {
          text-align: center;
          font-family: Arial, Helvetica, sans-serif;
          font-size: 20px;
          line-height: 1em;

          @media (max-width: 650px) {
            font-size: 16px;
          }
        }

        table {
          width: 100%;
          margin-top: 15px;
          border-collapse: collapse;

          th, td {
            height: 40px;
            border: 1px solid #fff;
            text-align: center;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 16px;
            font-weight: normal;
          }

          th {
            color: #fff;
            background-color: #888;
          }

          th:first-of-type {
            background-color: #a63f3f;
          }

          th:last-of-type {
            background-color: #5776be;
          }

          td.today {
            position: relative;

            &::before {
              content: "";
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              border: 1px solid var(--main-color);
            }
          }

          td.holiday {
            color: #bbb;
            background-color: #e8e8e8;
          }
        }
      }
    }
  }

  .contact {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: .02;
      background: url(../images/common/bg02.png) repeat center / 80px auto;
      mix-blend-mode: multiply;
    }

    > * {
      position: relative;
      z-index: 1;
    }

    .text {
      text-align: center;
      line-height: 2;
      white-space: nowrap;

      @media (max-width: 650px) {
        text-align: left;
        white-space: normal;
      }
    }

    .tel {
      margin-top: 30px;
      text-align: center;
      font-size: 60px;
      font-family: Arial, Helvetica, sans-serif;
      line-height: 64px;

      @media (max-width: 650px) {
        margin-top: 20px;
        font-size: 30px;
        line-height: 32px;
      }

      &::before {
        content: "";
        display: inline-block;
        width: 64px;
        height: 64px;
        margin-right: 15px;
        vertical-align: top;
        background: url(../images/common/tel-icon.svg) no-repeat center / contain;

        @media (max-width: 650px) {
          width: 32px;
          height: 32px;
          margin-right: 10px;
        }
      }
    }
  }

  .bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 860px;
    margin-top: 20px;

    @media (max-width: 650px) {
      flex-direction: column;
      gap: 30px;
      text-align: center;
    }

    .nav {
      display: flex;
      width: auto;
      margin-left: -20px;
      font-size: 16px;
      line-height: 20px;

      @media (max-width: 650px) {
        margin-left: 0;
        justify-content: center;
      }

      li {
        height: 20px;
        padding: 0 20px;

        &:not(:first-child) {
          border-left: 1px solid #fff;
        }

        a {
          text-decoration: underline;
          color: #fff;
        }

        #top &:nth-child(1) a,
        #menu &:nth-child(2) a,
        #info &:nth-child(3) a {
          text-decoration: none;
          cursor: default;
          pointer-events: none;
        }
      }
    }

    .copyright {
      color: #fff;
      font-size: 16px;
      line-height: 20px;
    }
  }
}

.common-news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ccc;

  li {
    a {
      display: flex;
      width: 100%;
      padding: 20px 0;
      border-bottom: 1px solid #ccc;
      background-color: rgba(255, 255, 255, 0);
      transition: background-color 300ms;

      @media (max-width: 650px) {
        flex-direction: column;
      }

      &:hover {
        background-color: rgba(255, 255, 255, .8);
      }

      time {
        width: 150px;
        padding-left: 20px;
        color: #888;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        line-height: 30px;

        @media (max-width: 650px) {
          width: 100%;
          padding: 0;
          line-height: 1em;
        }
      }

      .title {
        width: calc(100% - 150px);
        font-size: 20px;
        line-height: 30px;

        @media (max-width: 650px) {
          width: 100%;
          margin-top: 10px;
          font-size: 16px;
          line-height: 24px;
        }
      }

      &.current {
        color: #666;
        cursor: default;
        pointer-events: none;
      }
    }
  }
}

.common-article-body {
  font-size: 18px;
  line-height: 40px;

  > br:first-child {
    display: none;

    & + * {
      margin-top: 0;
    }
  }

  * + * {
    margin-top: 1em;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}


/* --------------------------------------------------
 * TOP
 */

#top {
  main {
    h1 {
      &::before {
        background-image: url(../images/top/main-image.jpg);
      }

      img {
        position: relative;
        width: 244px;
        z-index: 1;

        @media (max-width: 980px) {
          max-width: 30%;
          max-height: 40vh;
          width: auto;
          height: auto;;
        }
      }
    }

    > .body {
      .greeting {
        p {
          max-width: 640px;
          margin: 1em auto 0;
        }
      }

      .news {
        .latest {
          margin: 0 auto;
          padding: 40px;
          box-shadow: 0 0 20px rgba(0, 0, 0, .05);
          background-color: #fff;

          @media (max-width: 980px) {
            padding: 20px;
          }

          h3 {
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            font-size: 20px;
            font-weight: normal;
          }

          time {
            display: block;
            margin-top: 10px;
            color: #888;
            font-family: Arial, Helvetica, sans-serif;
            font-size: 16px;
          }

          p {
            margin-top: 20px;
            font-size: 16px;
            line-height: 28px;
          }
        }

        .common-news-list {
          margin-top: 40px;

          @media (max-width: 980px) {
            margin-top: 20px;
          }
        }
      }
    }
  }
}


/* --------------------------------------------------
 * News Detail
 */

#news {
  main {
    h1 {
      &::before {
        background-image: url(../images/news/main-image01.jpg);
      }
    }

    article {
      margin-top: 40px;

      header {
        h2 {
          font-size: 30px;
          font-weight: normal;
          line-height: 1.5;
        }

        time {
          color: #888;
          font-size: 16px;
          line-height: 1em;
        }
      }

      .article-body {
        margin-top: 40px;
        font-size: 18px;
        line-height: 1.8;
      }
    }
  }
}


/* --------------------------------------------------
 * Menu
 */

#menu {
  main {
    h1 {
      &::before {
        background-image: url(../images/menu/main-image.jpg);
      }
    }

    section {
      h2 {
        padding-bottom: 30px;
        background: url(../images/common/section-title-bg.svg) no-repeat center bottom;

        @media (max-width: 980px) {
          padding-bottom: 20px;
          background-size: 300px auto;
        }
      }
    }

    .menu {
      .wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 120px;

        @media (max-width: 980px) {
          gap: 80px;
        }

        > section {
          position: relative;
          width: 100%;
          max-width: 800px;
          padding: 40px;
          border-radius: 10px;
          box-shadow: 0 0 20px rgba(0, 0, 0, .1);
          text-align: center;
          background-color: #fff;

          @media (max-width: 980px) {
            padding: 40px 15px;
          }

          &:not(:last-child)::after {
            content: "";
            position: absolute;
            left: calc(50% - 50px);
            bottom: -60px;
            width: 100px;
            height: 1px;
            background-color: var(--main-color);

            @media (max-width: 980px) {
              bottom: -40px;
            }
          }

          h3 {
            position: relative;
            padding-bottom: 12px;
            font-size: 30px;
            font-weight: normal;
            line-height: 1em;

            &::before {
              content: "";
              position: absolute;
              left: calc(50% - 10px);
              bottom: -10px;
              width: 20px;
              height: 3px;
              background-color: var(--main-color);
            }

            @media (max-width: 980px) {
              font-size: 24px;
            }
          }

          ul {
            margin: 20px auto 0;
            font-size: 0;

            &::after {
              content: "など";
              display: block;
              margin-top: 20px;
              color: #555;
              font-size: 18px;

              @media (max-width: 980px) {
                margin-top: 15px;
                font-size: 14px;
              }
            }

            li {
              display: inline-block;
              position: relative;
              margin: 20px 15px 0;
              padding-left: 12px;
              color: #333;
              font-size: 20px;
              line-height: 1em;

              @media (max-width: 980px) {
                margin: 20px 10px 0;
                font-size: 16px;
              }

              &::before {
                content: "";
                position: absolute;
                top: calc(50% - 3px);
                left: 0;
                width: 6px;
                height: 6px;
                background-color: #aaa;
              }
            }
          }

          &.recommend {
            h3 {
              color: #a63f3f;
            }

            ul li {
              color: #a63f3f;

              &::before {
                background-color: #a63f3f;
              }
            }
          }
        }
      }
    }

    .course {
      .wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;

        > ul {
          display: flex;
          flex-direction: column;
          gap: 40px;
          width: calc(100% - 280px);

          > li {
            position: relative;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 0 20px rgba(0, 0, 0, .05);
            overflow: hidden;
            background-color: #fff;

            @media (max-width: 980px) {
              padding: 30px;
            }

            &::before {
              content: "";
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              opacity: .02;
              background-repeat: repeat;
              background-size: 80px auto;
            }

            &:nth-child(1)::before{background-image: url(../images/common/bg01.png);}
            &:nth-child(2)::before{background-image: url(../images/common/bg02.png);}
            &:nth-child(3)::before{background-image: url(../images/common/bg03.png);}

            .name {
              color: var(--main-color);
              font-size: 40px;
              line-height: 1em;

              @media (max-width: 980px) {
                font-size: 30px;
              }

              .price {
                display: inline-block;
                position: relative;
                padding-left: 36px;
                color: #000;
                font-size: 30px;

                @media (max-width: 980px) {
                  font-size: 24px;
                }

                &::before {
                  content: "";
                  position: absolute;
                  top: calc(50% - 1px);
                  left: 10px;
                  width: 10px;
                  height: 2px;
                  background-color: #000;
                }

                .tax {
                  font-size: .8em;
                }
              }
            }

            > ul {
              display: flex;
              flex-wrap: wrap;
              gap: 20px;
              margin-top: 30px;
              padding-left: 5px;

              > li {
                position: relative;
                padding-left: 12px;
                font-size: 18px;
                line-height: 1em;

                @media (max-width: 980px) {
                  font-size: 16px;
                }

                &::before {
                  content: "";
                  position: absolute;
                  top: calc(50% - 3px);
                  left: 0;
                  width: 6px;
                  height: 6px;
                  background-color: #555;
                }
              }
            }
          }
        }

        .option {
          width: 240px;

          figure {
            text-align: center;

            img {
              width: 240px;
              max-width: 100%;
              border-radius: 3px;
            }

            figcaption {
              margin-top: 10px;
            }
          }
        }

        .notice {
          width: 100%;
          margin-top: 40px;

          p {
            text-align: center;
            color: #666;
            font-size: 16px;
            line-height: 24px;

            &::before {
              content: "※";
              display: inline-block;
              margin-right: 5px;
            }
          }
        }
      }

      @media (max-width: 1180px) {
        .wrap {
          flex-direction: column;
          gap: 40px;

          > ul {
            width: 100%;
            gap: 20px;
          }

          .option {
            width: 100%;

            figure {
              display: flex;
              justify-content: center;
              align-items: center;

              img {
                width: 200px;
                max-width: 40%;
              }

              figcaption {
                margin: 0 0 0 20px;
                text-align: left;

                @media (max-width: 400px) {
                  br {
                    display: none;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}


/* --------------------------------------------------
 * info
 */

#info {
  main {
    h1 {
      &::before {
        background-image: url(../images/info/main-image.jpg);
      }
    }

    .outline {
      padding: 20px 40px 40px;
      border-radius: 10px;
      box-shadow: 0 0 30px rgba(0, 0, 0, .1);
      background-color: #fff;

      @media (max-width: 980px) {
        padding: 0;
        box-shadow: none;
        background-color: transparent;
      }

      div {
        display: flex;
        width: 100%;
        padding: 20px 0;
        border-bottom: 1px solid #E4DBCC;
        font-size: 18px;
        line-height: 1.5;

        @media (max-width: 980px) {
          flex-direction: column;
        }

        dt {
          width: 160px;

          @media (max-width: 980px) {
            width: 100%;
            font-size: 20px;
          }
        }

        dd {
          width: calc(100% - 160px);
          color: #555;

          @media (max-width: 980px) {
            width: 100%;
            margin-top: 10px;
          }

          a {
            color: #555;
          }

          p {
            font-size: 16px;
            line-height: 1.5;
          }

          .notice {
            margin-top: 5px;
            font-size: 16px;
          }
        }
      }
    }

    .access {
      .map {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
        line-height: 0;
        overflow: hidden;

        @media (max-width: 980px) {
          margin: 0 -30px;
        }

        @media (max-width: 650px) {
          aspect-ratio: 1 / 1;
        }

        iframe {
          width: 100%;
          height: 100%;
          border: none;
        }
      }
    }
  }
}
