@charset "utf-8";

/* layout */
.layout-screen{
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
  padding:var(--header-height) 0 0 0 ;
  @media (max-width: 500px) {
    padding: var(--header-height-sp) 0 0 0 ;
  }
}

.layout-header{
  position:fixed;
  background: white;
  top:0;
  left:0;
  width:100%;
  z-index: 100;
  @media (max-width: 500px) {
    border-bottom:1px solid var(--color-green);
  }
  >.inner{
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height:var(--header-height);
    @media (max-width: 500px) {
      min-height:var(--header-height-sp);
    }
    > *{
      box-sizing: border-box;
      &.-upper{
       flex:1;
       display:flex;
       align-items:center;
       width:100%;
       @media (max-width: 500px) {
         padding-right:0;
         padding-left:14px;
       }
        >.logo{
          max-width:440px;
          flex:1;
          margin-right:20px;
          @media (max-width: 500px) {
            margin-right:30px;
          }
          .jp{
            font-size:12px;
            font-weight: bold;
            color:#666;
            @media (max-width: 500px) {
              font-size:10px;
            }
          }
          img{
            display: block;
            width:100%;
          }
        }
        >.kousha{
          margin-left:auto;
          display: flex;
          align-items: center;
          color:var(--color-kousha);
          font-weight: bold;
          gap:10px;
          @media (max-width: 500px) {
            gap: 6px;
          }
          a{
            display: block;
            color:var(--color-text);
          }
          span{
            display: block;
            margin:8px 0;
            letter-spacing: 0.5px;
            @media (max-width: 500px) {
              letter-spacing: 0;
              margin:6px 0;
              display: none;
            }
            &.sub{
              font-size:12px;
              @media (max-width: 500px) {
                font-size:10px;
              }
            }
            &.main{
              font-size:14px;
              @media (max-width: 500px) {
                font-size:10px;
              }
            }
          }
          img{
            display: block;
            width:40px;
            @media (max-width: 500px) {
              width:32px;
            }
          }
        }
      }
    }
  }
}
.layout-wrapper{
  max-width:var(--max-width);
  margin:0 auto;
  /* border:1px dotted red; */
  padding:0 40px;
  box-sizing: border-box;
  @media (max-width: 830px) {
    padding:0 30px;
  }
  @media (max-width: 500px) {
    padding:0 20px;
  }
}
.layout-footer{
  line-height: 1.8;
  margin: auto 0 0 0;
  >.sub{
    padding: 30px 0;
    background: var(--color-bg);
    .-address{
      align-items: center;
      padding:0;
      margin:0;
      &:last-child{
        font-size:90%;
        line-height: 1.6;
      }
    }
  }
  >.inner{
    color:white;
    text-align: center;
    background: var(--color-green);
    @media (max-width: 500px) {
     text-align: left;
    }
    > *{
      padding:20px;
    }
    .info{
      font-size:110%;
      padding:10px 0;
      font-weight: bold;
    }
    .copyright{
      font-size:80%;
      padding:10px 0;
    }
  }
}
.layout-section{
  //border:1px dotted blue;
  display: block;
  /* &:first-of-type{
    padding-top:0;
  } */
  @media (max-width: 768px) {
    padding-bottom:0 !important;
  }
  & > .heading-bar{
    margin-top:0 !important;
  }
}
.layout-firstview{
  position: relative;
  img{
    display: block;
    width:100%;
    @media (max-width: 834px) {
      object-fit: cover;
      aspect-ratio: 10 / 6;
    }
  }
  .copy{
    text-align: center;
    position: absolute;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    color:white;
    font-weight: bold;
    font-size:2.8rem;
    margin:0;
    letter-spacing: 0.1em;
    white-space: nowrap;
    @media (max-width: 834px) {
      font-size:2.2rem;
      line-height: 1.6;
    }
    @media (max-width: 500px) {
      font-size:1.8rem;
    }
    .sub{
      display: block;
      font-size:1.6rem;
      margin:2em 0 0 0;
      @media (max-width: 834px) {
        font-size:1.5rem;
      }
      @media (max-width: 500px) {
        font-size:1.4rem;
        margin:1.6em 0 0 0;
      }
    }
  }
}
.layout-main{
  padding: 40px 0 ;
  line-height: 1.8;
}
.layout-pagehead{
  .title{
    font-weight: bold;
    font-size:160%;
    color:var(--color-text);
    .sub{
      font-size:80%;
      margin-left:20px;
      @media (max-width: 500px) {
        display: block;
      }
    }
  }
}
.side-enable{
  margin: 40px 0 0 0;
}
/*
 .layout-2column{
  display: grid;
  grid-template-columns: 1fr 240px; 
  column-gap: 50px;
  @media (max-width: 830px) {
    grid-template-columns: 1fr;
  }
  > .main{
    order: 1;
    @media (max-width: 830px) {
      order: 2;
    }
    > *:first-child{
      padding-top:0;
    }
  }
  > .side{
    order: 2;
    font-size:90%;
    display: none;;
    @media (max-width: 830px) {
      order: 1;
    }
    > .inner{
      padding:20px 0;
      border-top: 1px solid var(--color-green);
      position: sticky;
      top:140px;
    }
  }
} 
*/

.layout-bread{
  margin:20px 0 0 ;
  ul{
    display: flex;
    font-size:76%;
    li{
      span,
      a{
        color: var(--color-text);
        opacity: 0.8;
      }
      &:after{
        content:'';
        display: inline-block;
        width:6px;
        height:6px;
        border-right:1px solid #666;
        border-bottom:1px solid #666;
        transform: rotate(-45deg);
        margin:0 10px ;
        vertical-align: middle;
      }
      &.-current{
        font-weight: bold;
        span,a{
/*          color:var(--color-yellow);*/
        }
        &:after{
          content:none;
        }
      }
    }
  }
}


/* nav */
.nav-global{
  background: var(--color-green);
  margin-top:auto;
  display:flex;
  align-items:center;
  white-space: nowrap;
  @media (max-width: 700px) {
    position: absolute;
    top: var(--header-height-sp);
    z-index: 100;
    width:100%;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
    display: none;
  }
  > *{
    width:100%;
    &.layout-wrapper{
      @media (max-width: 500px) {
        padding:20px;
      }
    }
  }
  a{
    color:white;
    text-decoration: none;
    padding: 4px 12px;
    display: block;
    font-weight: bold;
    font-size:1.6rem;
    transition: all .3s;
    @media (max-width: 830px) {
      
    }
    @media (max-width: 500px) {
      padding: 8px 8px;
    }
    &:hover{
      background-color: rgba(255, 255, 255, 0.2);
    }
  }
  ul{
    display: flex;
    justify-content: center;
    padding: 8px 0;
    column-gap: 20px;
    @media (max-width: 834px) {
      column-gap: 0px;
    }
    @media (max-width: 500px) {
      display: block;
    }
    li{
      @media (max-width: 500px) {
       padding:5px 0;
      }
      &.-current{
        a{
/*          background-color: var(--color-yellow);*/
          border:1px solid rgba(255, 255, 255, 0.5);
        }
      }
    }
  }/*
  &.-footer{
    @media (max-width: 500px) {
      display: none !important;
    }
    padding:10px 0 ;
    border-bottom:1px solid rgba(255, 255, 255, 0.2);
    li{
      a{
        padding: 4px 14px;
      }
      &.-current{
        a{
          background-color: transparent;
        }
      }
    }
  }*/
}
.nav-sp{
  position: relative;
  width: 50px;
  height: 40px;
  cursor: pointer;
  z-index: 103;
  display: none;
  @media (max-width: 700px) {
    display: block;
  }
  &:hover{
    opacity: 0.7;
  }
  span {
    display: inline-block;
    height: 2px;
    width: 44%;
    margin: 0 auto;
    background-color: #999;
    position: absolute;
    top: 50%;
    left: 28%;
    transition: all 0.2s ease-in-out;
    &:nth-child(2) {
      margin-top: -8px;
    }
    &:nth-child(3) {
      margin-top: 8px;
    }
    
  }
}
.nav-side{
  margin: 20px 0 0 0;
  @media (max-width: 834px) {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  @media (max-width: 500px) {
    grid-template-columns: 1fr;
  }
  &:first-child{
    margin-top:0;
  }
  > li{
    margin:0 !important;
    a{
      position: relative;
      display: block;
      padding: 2px 0 2px 16px;
      &:before{
        content:'';
        background-color: var(--color-link);
        clip-path: polygon(0 0, 100% 50%, 0 100%);
        display: inline-block;
        width:6px;
        height:10px;
        position: absolute;
        left:0;
        top:11px;
      }
    }
  }
  &.-anchor{
    > li{
      a{
        &:before{
          content:'';
          background-color: var(--color-link);
          clip-path: polygon(0 0, 100% 0, 50% 100%);
          display: inline-block;
          width:10px;
          height:6px;
          position: absolute;
          left:0;
          top:14px;
        }
        &:after{
          content:'';
          background-color: var(--color-link);
          height:1px;
          width:10px;
          position: absolute;
          left:0;
          top:22px;
        }
      }
    }
  }
}
.nav-page{
/*  //background-color: #effbe1;*/
  border: 1px solid var(--color-link);
  border-radius: 6px;
  padding:10px;
  margin: 30px 0 0 0;
  ul{
    display: flex;
    justify-content: center;
    column-gap: 20px;
  }
}
.nav-top{
  display: block;
  width:40px;
  height:40px;
  overflow: hidden;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  position: fixed;
  bottom:20px;
  right:20px;
  cursor:pointer;
  &:after{
    content:'';
    display: inline-block;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    width:12px;
    aspect-ratio: 1 / 0.8;
    background-color: white;
    position: absolute;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
  }
}
.nav-anchor{
  padding: 10px 20px;
  border:1px solid var(--color-link);
  background-color: #F0FAFF;
  border-radius: 8px;
  margin:0 0 30px 0;
  ul{
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 4px;
    margin:0;
    @media (max-width: 834px) {
      column-gap: 0px;
    }
    li{
      margin:0;
      @media (max-width: 834px) {
        width:calc( 33% );
      }
      @media (max-width: 500px) {
        width:100%
      }
      &.separator{
        border-left:1px solid var(--color-link);
        padding-left:20px;
        @media (max-width: 834px) {
          border-left: none;
        }
      }
      &.link{
        a{
          &:after{
            content:none;
          }
          &:before{
            clip-path: polygon(0 0, 100% 50%, 0% 100%);
            width:6px;
            height:10px;
          }
        }
      }
      a{
        position: relative;
        display: block;
        padding-left:18px;
        &:before{
          content:'';
          background-color: var(--color-link);
          clip-path: polygon(0 0, 100% 0, 50% 100%);
          display: inline-block;
          width:10px;
          height:6px;
          position: absolute;
          left:0;
          top:10px;
        }
        &:after{
          content:'';
          background-color: var(--color-link);
          height:1px;
          width:10px;
          position: absolute;
          left:0;
          top:18px;
        }
      }
    }
  }
}
/* status */

.status-nav{
  .nav-global{
    display: block;
  }
  .nav-sp{
    span {
      &:nth-child(1) {
        opacity: 0;
      }
      &:nth-child(2) {
        transform: rotate(45deg);
        margin-top:0;
      }
      &:nth-child(3) {
        transform: rotate(-45deg);
        margin-top:0;
      }
      
    }
  }
  .layout-screen{
    &:after{
      display: block;
    }
  }
  .bg-shadow{
    display: block;
    height:100vh;
  }
}
.status-scroll{
  .layout-header{
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
  }
}

.bg-shadow{
  content:'';
  display: none;
  background-color: rgba(0, 0, 0, 0.3);
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:0vh;
  display: none;
  transition: all .3s;
}

