@charset "UTF-8";

/* Index */

/* MV */
.section-mv {
  aspect-ratio: 99 / 62;
  background-image: url(../../images/index/mv_back.svg);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  @media screen and (min-width:768px) {
    /* padding-top: 8%; */
  }

  /* ロゴ */
  .logo {
    position: relative;
    width: 32%;
    @media screen and (min-width:768px) {
      margin-bottom: 4%;
      padding-top: 6%;
      max-width: 535px;
    }
  }

  /* ナビゲーション */
  .mv-nav {
    position: relative;
    font-size: clamp(1.125rem, 0.844rem + 1.125vw, 1.688rem);
    nav {
      a {
        display: block;
        color: var(--text-black);
        font-weight: 600;
        text-decoration: none;
        @media screen and (min-width:768px) {
          margin-bottom: 1.2%;
        }
      }
    }
  }

  /* 車 */
  [id^="car"] {
    opacity: 0;
    transition: opacity var(--transition-duration);
  }
  [id^="car"].is-running {
    opacity: 1;
  }
  /* 施設図 */
  .facility-wrap {
    position: absolute;
    top: 4%;
    right: 0;
    width: 80%;

    /* 建物 */
    [id^="build"] {
      cursor: pointer;
    }

    /* 吹き出し */
    #bubble01, #bubble02, #bubble03, #bubble04, #bubble05, #bubble06, #bubble07, #bubble08 {
      opacity: 0;
      transition: all var(--transition-duration);
      &.is-active {
        opacity: 1;
      }
    }

    /* svg の設定 */
    #facility-image {
    
      &.is-focusing {
        /* path:not(.is-active), polygon:not(.is-active), ellipse:not(.is-active), rect:not(.is-active), circle:not(.is-active),  line:not(.is-active) {
          opacity: 0.16;
        } */
        /* 透明度を薄く */
        #back
        , #tree01, #tree02, #corridor01-1, #corridor01-2, #corridor02, #gate01
        , #build01:not(.is-active), #build02:not(.is-active), #build03:not(.is-active), #build04:not(.is-active)
        , #build05:not(.is-active), #build06:not(.is-active), #build07:not(.is-active), #build08:not(.is-active)
        {
          opacity: 0.16;
        }
        [id^="car"] {
          opacity: 0.16;
          &:not(.is-running) {
            opacity: 0;
          } 
        }
        .is-active path, .is-active polygon, .is-active ellipse, .is-active rect, .is-active circle, .is-active line {
          opacity: 1.0;
        }
      }
    }
  }

}


/* おしらせ・施設概要メニュー */
.section-info-facility {

  .info-facility-wrap {
    @media screen and (min-width:1280px) {
      display: grid;
      grid-template-columns: 5.4fr 4.6fr;
      column-gap: 11%;
    }  
  }

  /* お知らせ */
  .information-wrap {
    position: relative;
    margin-bottom: 40px;
    @media screen and (min-width:1280px) {
      margin-bottom: 0;
    }
    h2 {
      margin-bottom: 4%;
    }
    /* キャラクター */
    figure {
      width: 28%;
      position: relative;
      margin: 0 auto;
      @media screen and (min-width:1280px) {
        position: absolute;
        bottom: calc(100% - 50px);
        right: 0;
      }
    }
    ol {
      margin: 0 auto;
      padding: 0;
      list-style-type: none;
      li {
        margin: 0 auto 10px auto;
        padding: 10px 16px;
        background-color: #E8F2D9;
        @media screen and (min-width:768px) {
          margin-bottom: 20px;
          padding: 20px 38px;
        }
        time {
          color: var(--text-green);
        }
      }
    }
    .list {
      font-weight: 400;
      text-align: right;
      a {
        position: relative;
        display: inline-block;
        padding-bottom: 4px;
        padding-right: 24px;      /* 矢印が突き出るスペース */
        transition: all 0.3s;
        &::before {
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;               /* 文字＋padding-rightの幅いっぱい */
          height: 2px;               /* 線の太さ */
          background-color: var(--text-black);
          transition: all 0.3s;
        }
        &::after {
          content: '';
          position: absolute;
          bottom: 0;                 /* 下線と接地させる */
          right: 0;
          width: 15px;               /* 斜め線の長さ */
          height: 2px;               /* 本体の線と同じ太さ */
          background-color: var(--text-black);
          transform: rotate(45deg); /* 斜め上に回転 */
          transform-origin: right bottom; /* 右下を軸に回転させるのがコツ */
          transition: all 0.3s;
        }
        &:hover {
          &::before {
            width: calc(100% + 12px);
          }
          &::after {
            right: -12px;
          }
        }
      }
    }
  }

  /* 施設概要メニュー */
  .facility-wrap {
    position: relative;
    @media screen and (min-width:768px) {
      top: -6.4%;
    }
    a {
      color: inherit;
    }
    figure {
      z-index: 50;
      position: absolute;
      top: calc(100% - 30px);
      right: 0;
      width: 32%;
      @media screen and (min-width:768px) {
        top: calc(100% - 30px);
        /* bottom: -16%; */
        right: 16%;
      }
    }
    .facility-box {
      z-index: 40;
      position: relative;
      padding: 6.4% 7%;
      background-color: rgba(255, 255, 255, 0.8);
      border-left: 8px solid #6FBA2C;
      &::before {
        content: '';
        display: block;
        position: absolute;
        top: 4px;
        right: -4px;
        width: 4px;
        height: 100%;
        background-color: #C9CACA;
      }
      &::after {
        content: '';
        display: block;
        position: absolute;
        bottom: -4px;
        left: 4px;
        width: 100%;
        height: 4px;
        background-color: #C9CACA;
      }
    }
    .title-wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;
      column-gap: 5%;
      margin-bottom: 20px;
    }
    h2 {
      font-size: clamp(1.125rem, 0.656rem + 1.875vw, 2.063rem);
    }
    .notes {
      flex: 1;
      position: relative;
      padding-left: 24px;
      font-size: clamp(0.75rem, 0.406rem + 1.375vw, 1.438rem);
      color: var(--text-green);
      font-weight: 600;
      &::before {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 18px;
        height: 20px;
        background-color: var(--text-green);
        clip-path: polygon(18px 50%, 0% 0%, 0% 20px);
      }
    }
    /* メニュー */
    dl {
      display: flex;
      justify-content: flex-start;
      align-items: flex-start;
      column-gap: 2.4%;
      margin-top: 0;
      margin-right: auto;
      margin-bottom: clamp(8px, 0.2rem, 16px);
      margin-left: auto;
      padding: 0;
      font-size: clamp(14px, 8px + 1.5vw, 26px);
      font-weight: 600;
      dt {
        aspect-ratio: 1 / 1;
        position: relative;
        top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        padding: 0;
        width: 25px;
        color: var(--text-white);
        line-height: 1.0;
        background-color: var(--text-green);
        border-radius: 4px;
        @media screen and (min-width:768px) {
          top: 8px;
        }
      }
      dd {
        flex: 1;
        margin: 0 auto;
        padding: 0;
        span {
          font-size: clamp(11px, 6px + 1.25vw, 21px);
          font-weight: 400;
          &:nth-of-type(1), &:nth-of-type(3) {
            margin-right: 16px;
          }
        }
      }
    }
  }

}

/* 新環境センター整備事業とは */
.section-overview {
  position: relative;
  margin-top: clamp(-10px, -2rem, -40px);
  padding-top: 140px;
  padding-bottom: 220px;
  /* background-color: #C0DC97; */
  background-image: url(../../images/index/overview_back.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* &::before {
    content: '';
    display: block;
    position: absolute;
    top: -128px;
    left: 0;
    width: 100%;
    height: 128px;
    background-image: url(../../images/index/overview_back.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  } */
  h2 {
    margin-bottom: clamp(20px, 3rem, 72px);
  }
}

/* 工事進捗状況 */
.section-schedule {
  position: relative;
  .char {
    position: absolute;
    top: -100px;
    left: 0;
    width: 13%;
  }
  h2 {
    margin-bottom: clamp(32px, 4rem, 80px);
    text-align: center;
  }
  /* 工程表 */
  .gantt-chart {
    margin-bottom: clamp(1.5rem, 0.5rem + 4vw, 3.5rem);
    img {
      margin: 0 auto;
      width: 100%;
      @media screen and (min-width:768px) {
        max-width: 90%;        
      }
    }
  }
  /* 進捗状況 */
  .progress-status {
    text-align: right;
    a {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      padding: 18px 40px;
      color: var(--text-white);
      font-size: clamp(0.875rem, 0.5rem + 1.5vw, 1.625rem);
      letter-spacing: 2px;
      line-height: 1.0;
      background-color: var(--text-black);
      border: 1px solid var(--text-black);
      border-radius: 50vh;
      transition: all 0.3s;
      &::after {
        content: '';
        display: inline-block;
        margin-left: 15px;
        width: 14px;
        height: 16px;
        background-color: var(--text-white);
        clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
        transition: all 0.3s;
        @media screen and (min-width:768px) {
          width: 17px;
          height: 20px;
        }
      }
      &:hover {
        color: var(--text-black);
        background-color: var(--text-white);
        &::after {
          background-color: var(--text-black);
        }
      }
    }
  }
}

/* アクセス */
.section-access {
  position: relative;
  padding-top: 140px;
  padding-bottom: 220px;
  /* background-color: #C0DC97; */
  background-image: url(../../images/index/overview_back.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  .map-address-wrap {
    display: block;
    justify-content: center;
    align-items: flex-start;
    column-gap: 10%;
    @media screen and (min-width:768px) {
      display: flex;
      flex-flow: row-reverse;
    }
  }
  .map {
    position: relative;
    width: 100%;
    padding-top: 32%;
    /* 16:9のアスペクト比 */
    height: 0;
    @media screen and (min-width:768px) {
      width: 52%;
    }
    iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }

  .address {
    margin-bottom: 8%;
    padding-top: 6%;
    @media screen and (min-width:768px) {
      margin-bottom: 0;
      padding-top: 14%;
    }
    h2 {
      margin-bottom: 8%;
      text-align: center;
    }
    address {
      margin-bottom: 4%;
      text-decoration: none;
      font-style: normal;
    }
    .required-time {
      display: flex;
      column-gap: 4%;
      margin: 0 auto;
      padding: 0;
      dt {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding-right: 1%;
        padding-left: 1%;
        border-right: 1px solid var(--text-black);
        border-left: 1px solid var(--text-black);
      }
      dd {
        flex: 1;
        margin: 0;
        padding: 0;
      }      
    }
  }
}