@charset "utf-8";

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  box-sizing: border-box;
  color: #212529;
  text-align: left;
}

header {
  background-color: #F4FFDF;
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;

  .headerLeftBlock {
    width: 75%;
    margin-left: auto;
    margin-right: auto;
  }

  a {
    display: inline-block;
    height: 100%;
    width: 100%;
  }

  img {
    max-width: 200px;
  }
}

.contentsBlock {
  display: block;
  width: 100%;
}

a {
  color: black;
  text-decoration: none;
  transition: opacity 0.3s ease-in-out;

  &:has(.triangle) {
    color: #108A00;
  }

  @media (any-hover: hover) {
    &:hover {
      text-decoration: underline;
    }
  }
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: .5rem;
  font-weight: 500;
  line-height: 1.2;
}

footer {
  background-color: #F4FFDF;
  width: 100%;

  .size--12 {
    font-size: 12px;
  }

  .size--14 {
    font-size: 14px;
  }

  .size--16 {
    font-size: 16px;
  }
}

@media screen and (min-width:768px) {
  .show-sp {
    display: none;
  }

  header {
    .headerLeftBlock {
      width: 75%;
      margin-left: auto;
      margin-right: auto;
      max-width: 720px;
    }
  }

  .container {
    font-size: 16px;
    max-width: 720px;
    padding-inline: 15px;
    margin: 0 auto;
  }

  .titleTop {
    margin: 0 auto;
    width: 80%;

    .topicPathBlock {
      font-size: 12px;
      padding: 20px 0 20px 0;

      @media (any-hover: hover) {
        a {
          &:hover {
            color: #007bff;
          }
        }
      }
    }

    .pageTitle {
      background-color: #F4FFDF;
      border-left: 20px solid green;
      color: #4f4946;
      font-size: 1.6em;
      font-weight: bold;
      margin-bottom: 20px;
      margin-block: 0px 20px;
      padding: 10px;

      +p {
        margin-inline: 0px;
        margin-block: 40px 70px;
      }
    }
  }

  .contentsSouseiBlock {
    margin: 0 auto;
    width: 80%;

    h2 {
      display: block;
      font-size: 19px;
      font-weight: 500;
      margin-bottom: 35px;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background-color: #ccc;
        z-index: 1;
      }

      span {
        position: relative;
        display: block;
        padding: 0 0 10px 0;

        &::after {
          content: "";
          position: absolute;
          left: 0;
          bottom: 0px;
          width: 65px;
          height: 2px;
          background-color: #4CAF50;
          z-index: 2;
        }
      }
    }

    .text {
      margin-inline: 30px;
      margin-block: 20px;
    }

    .text-large {
      font-size: 25px;
    }

    .text-middle {
      font-size: 20px;
    }

    .icon {
      display: inline-block;
      height: 16.5px;
      margin-left: 10px;
      width: 16.5px;

      &.pdf {
        background: url(../images/icon-pdf.png) center/contain no-repeat;
      }

      &.browser {
        background: url(../images/icon-browser.png) center/contain no-repeat;
      }
    }

    ul {
      li {
        margin-inline: 30px;
        margin-block: 20px;

        a {
          align-items: center;
          display: flex;
          width: fit-content;
          height: 100%;
        }
      }
    }

    .bulletList {
      .triangle {
        border-top: 7px solid transparent;
        border-right: 10px solid transparent;
        border-left: 15px solid #4f4946;
        border-bottom: 7px solid transparent;
        display: inline-block;
        padding: 0;
      }
    }

    .contBlock {
      padding-bottom: 40px;

      &:nth-child(2) {
        ul {
          li {
            &:last-child {
              margin-bottom: 5px;
            }
          }

          +.note {
            margin-block: 0px 20px;
          }
        }
      }

      &:nth-child(3) {
        .text-large {
          span {
            font-size: 16px;
          }
        }
      }

      &:nth-child(4) {
        .stepList {
          counter-reset: step;

          li {
            counter-increment: step;
            position: relative;

            &::before {
              content: counter(step) "　";
              position: absolute;
              left: 0;
              top: 0;
              line-height: 1.5;
            }
          }

        }
      }

      &:nth-child(5) {
        .upper {
          padding-bottom: 20px;
          margin-bottom: 20px;
          position: relative;

          &::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 1px;
            background-image: repeating-linear-gradient(to right, #000 0, #000 2px, transparent 2px, transparent 8px);
          }
        }

        .lower {
          .event-table {
            margin-inline: 30px;

            td,
            th {
              padding-bottom: 20px;
            }

            th {
              font-weight: 500;
              text-align: left;
              width: 80px;

              &.top {
                padding-top: 3px;
                vertical-align: top;
              }
            }

            .text-large {
              padding-left: 10px;
            }
          }
        }
      }

      &:last-child {
        padding-bottom: 90px;

        .m-0 {
          margin-bottom: 0;
        }

        ul {
          li {
            position: relative;
            padding-left: 1.2em;
            margin-block: 0px;

            &::before {
              content: "・";
              position: absolute;
              left: 0;
              top: 0;
            }
          }
        }
      }
    }
  }

  #footerBlock {

    .footerContainer {
      padding-inline: 15px;
      margin: 0 auto;
      max-width: 720px;
      width: 100%;

      .block-wrap {
        align-items: center;
        column-gap: 80px;
        display: flex;
        font-weight: bold;
        max-width: 960px;
        padding: 15px 40px 30px 40px;
        position: relative;

        .left {
          p {
            margin-block: 3px;

            &:last-child {
              margin-top: 30px;
            }
          }
        }

        .right {
          ul {
            display: grid;
            grid-template-columns: auto auto;
            column-gap: 50px;
            row-gap: 10px;
            list-style: none;
            padding: 0;
            margin: 0;

            li {
              line-height: 1.6;
              white-space: nowrap;

              a {
                @media (any-hover: hover) {
                  &:hover {
                    color: #007bff;
                    text-decoration: none;
                  }
                }
              }
            }

            li.w-100 {
              grid-column: 1 / -1;
              white-space: normal;
            }

          }
        }
      }
    }

    .footerPageTop {
      position: absolute;
      top: 18px;
      right: 0;
      text-indent: -9999px;

      a {
        content: "";
        display: block;
        width: 50px;
        height: 50px;
        background: #a62e29;
        border-radius: 50px;
        margin-right: 5px;
        position: absolute;
        right: 0;
        top: -40px;
        transition: opacity 0.3s ease-in-out;

        &::after {
          content: "";
          display: inline-block;
          border-right: 12px solid transparent;
          border-bottom: 22px solid #ffffff;
          border-left: 12px solid transparent;
          position: absolute;
          right: 12px;
          top: 12px;
        }

        @media (any-hover: hover) {
          &:hover {
            opacity: 0.8;
          }
        }
      }
    }
  }
}

@media screen and (max-width:767px) {
  .show-pc {
    display: none;
  }

  header {
    padding: 0px;
    margin: 0px;
    max-width: 100vw;

    .headerLeftBlock {
      max-width: 35.5%;
      margin: 0;
      padding-right: 15px;
      padding-left: 15px;
      width: 94%;

      img {
        max-width: inherit;
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
  }

  .container {
    box-sizing: border-box;
    margin: 0 auto;
    padding-inline: 3%;
    width: 100%;
  }

  .text {
    font-size: 16px;
    margin-inline: 4%;
    margin-block: 5%;
  }

  .titleTop {
    margin: 0 auto;
    width: 95%;

    .topicPathBlock {
      font-size: 12px;
    }

    .pageTitle {
      background-color: #F4FFDF;
      border-left: 10px solid green;
      color: #4f4946;
      padding: 0 3%;
      font-size: 1.6em;
      font-weight: bold;
      line-height: 1.4em;
      margin: 2% 1%;
      position: relative;

      +p {
        margin-inline: 2%;
        margin-block: 8% 13%;
      }
    }
  }

  .contentsSouseiBlock {
    margin: 0 auto;
    width: 95%;

    h2 {
      display: block;
      font-size: 20px;
      font-weight: 500;
      margin-block: 5%;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background-color: #ccc;
        z-index: 1;
      }

      span {
        position: relative;
        display: block;
        padding: 0 0 10px 0;

        &::after {
          content: "";
          position: absolute;
          left: 0;
          bottom: 0px;
          width: 15%;
          height: 2px;
          background-color: #4CAF50;
          z-index: 2;
        }
      }
    }

    .text-large {
      font-size: 23px;
    }

    .text-middle {
      font-size: 19px;
    }

    .icon {
      display: inline-block;
      margin-left: 3px;
      height: 15px;
      width: 15px;

      &.pdf {
        background: url(../images/icon-pdf.png) center/contain no-repeat;
      }

      &.browser {
        background: url(../images/icon-browser.png) center/contain no-repeat;
      }
    }

    ul {
      li {
        margin-inline: 4%;
        margin-block: 5%;

        a {
          align-items: center;
          display: flex;
          width: fit-content;
          height: 100%;
        }
      }
    }

    .note {
      padding-left: 8px;
      text-indent: -8px;
    }

    .bulletList {

      .triangle {
        border-top: 7px solid transparent;
        border-right: 10px solid transparent;
        border-left: 15px solid #4f4946;
        border-bottom: 7px solid transparent;
        display: inline-block;
        padding: 0;
      }
    }

    .contBlock {
      padding-bottom: 5%;

      &:nth-child(2) {
        ul {
          li {
            &:last-child {
              margin-bottom: 2%;
            }
          }

          +.note {
            margin-block: 0px 5%;
          }
        }
      }

      &:nth-child(3) {
        .text-large {
          span {
            font-size: 16px;
          }
        }
      }

      &:nth-child(4) {
        .stepList {
          counter-reset: step;
          padding-left: 2%;

          li {
            counter-increment: step;
            position: relative;

            &::before {
              content: counter(step) "　";
              position: absolute;
              left: -2%;
              top: 0;
              line-height: 1.5;
            }
          }

        }
      }

      &:nth-child(5) {
        .upper {
          padding-bottom: 2%;
          margin-bottom: 5%;
          position: relative;

          &::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 1px;
            background-image: repeating-linear-gradient(to right, #000 0, #000 2px, transparent 2px, transparent 8px);
          }
        }

        .lower {
          .event-table {
            margin-inline: 4%;

            td,
            th {
              padding-bottom: 5%;
            }

            th {
              font-weight: 500;
              text-align: left;
              width: 55px;
              vertical-align: top;

              &:not(:has(.top)) {
                padding-top: 4px;
              }
            }

            .text-large {
              padding-left: 10px;
            }
          }
        }
      }

      &:last-child {
        padding-bottom: 7%;

        .m-0 {
          margin-bottom: 0;
        }

        .dotList {
          li {
            position: relative;
            padding-left: 1.2em;
            margin-block: 0px;

            p {
              margin-block: 2%;
            }

            &::before {
              content: "・";
              position: absolute;
              left: 0;
              top: 0;
            }
          }
        }
      }
    }
  }

  #footerBlock {
    .footerContainer {
      padding: 0;
      margin: 0;
      max-width: 100%;

      .block-wrap {
        display: flex;
        font-weight: bold;
        flex-direction: column;
        padding: 5px 5px 30px 5px;
        position: relative;

        .left {
          p {
            margin-block: 1%;

            &.copy-right {
              bottom: 6%;
              font-size: 10px;
              left: 50%;
              position: absolute;
              transform: translateX(-50%);
              text-align: center;
              width: 100%;
            }
          }
        }

        .right {
          margin: 1% 5% 10px 5%;

          ul {
            display: grid;
            grid-template-columns: auto auto;
            column-gap: 2%;
            list-style: none;
            padding: 0;
            margin: 0;

            li {
              font-size: 0.8em;
              line-height: 2;
              white-space: nowrap;
            }

            li.w-100 {
              grid-column: 1 / -1;
              white-space: normal;
            }
          }
        }
      }

      .bottomBlock {
        background-color: rgb(221, 221, 221);
        font-weight: bold;
        padding: 0 !important;
        margin: 0 !important;
        display: flex;

        .linkBox {
          width: 100%;

          .footerLink {
            font-size: 0.8em;
            padding-left: 20%;
            padding-right: 2%;
            padding-block: 2%;

            &:nth-child(1) {
              border-bottom: 1px dotted #000000;
            }

            &:nth-child(2) {
              a {
                align-items: center;
                display: flex;
              }

              img {
                height: auto;
                margin-right: 1%;
                width: 6%;
              }
            }
          }
        }
      }
    }

    .footerPageTop {
      display: none;
    }
  }
}


@media screen and (min-width: 768px) {

  header .headerLeftBlock,
  #contentsBlock .container,
  #footerBlock .footerContainer {
    transition: all 0.4s ease;
  }
}

@media screen and (min-width: 576px) {

  #contentsBlock .container {
    max-width: 540px;
  }
}

@media screen and (min-width: 768px) {

  header .headerLeftBlock,
  #contentsBlock .container,
  #footerBlock .footerContainer {
    max-width: 720px;
  }
}

@media screen and (min-width: 992px) {

  header .headerLeftBlock,
  #contentsBlock .container,
  #footerBlock .footerContainer {
    max-width: 960px;
  }
}

@media screen and (min-width: 1200px) {

  header .headerLeftBlock,
  #contentsBlock .container,
  #footerBlock .footerContainer {
    max-width: 1140px;
  }
}