@charset "UTF-8";

/* ===================================
	File Name   : top.css
	Description : Top Page Layout CSS
	Editor      : Bface Nakamura
	Last Editor : Bface Nakamura
	
	Update Description :
	[2025/10/31] 新規作成
====================================== */

/*========== Style Contents ==========

	1. Individual Redefinition
	2. Top Notice Area
	3. Div [top_catch] Setting
	4. Section [top_outline] Setting
	5. Section [top_zone] Setting
	6. Div [top_cta] Setting

====================================== */



/*===== ■1. Individual Redefinition =====*/
main {
  > div.wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 1rem;
    section {
      margin: 0 0 5rem;
    }
  }
  h2 {
    margin-bottom: 1.5rem;
    padding: 0 1rem 1.5rem;
    background: url(img/common/bg-line-ttl.png) no-repeat left bottom;
    color: var(--mainC);
    font-weight: bold;
    font-size: 3.2rem;
    font-family: 'Open Sans', 'Noto Sans JP';
    line-height: 1.2;
    letter-spacing: 0.05em;
    b {
      font-size: 1.8rem;
      &::before {
        margin: 0 .5rem;
        content:'／';
      }
    }
  }
}

@media screen and (min-width: 769px) and (max-width: 960px){
  #entirety {
    &::before {
      height: 25rem;
    }
    &::after {
      height: 25rem;
    }
  }
}

@media screen and (max-width:768px) {
  #entirety {
    &::before,
    &::after {
      height: 45rem;
    }
  }
  main {
    > div.wrapper {
      display: block;
      margin: 0 .5rem;
      padding: 0 .5rem;
      section {
        max-width: none;
        width: auto;
        margin: 0 0 3rem;
      }
    }
    h2 {
      margin-bottom: 1rem;
      padding: 0 1rem 1rem;
      font-size: 2.6rem;
      letter-spacing: 0em;
      b {
        font-size: 1.4rem;
        &::before {
          margin: 0 .5rem;
          content:'／';
        }
      }
    }
  }
  #sp_pagetop {
    margin-top: 4rem;
  }
}

@media screen and (max-width:320px) {
  #entirety {
    &::before,
    &::after {
      height: 52rem;
    }
  }
}

/*===== ■2. Top Notice Area =====*/
#notice_wrapper {
  background: var(--LGC);
  margin-bottom: 4rem;
}

#top_notice {
  display: flex;
  justify-content: space-between;
  max-width: 120rem;
  margin: 0 auto;
  > div {
    margin: 0 1rem;
  }
  #visual {
    width: 85rem;
    img {
      width: 100%;
      height: auto;
    }
    > ul > li:not(:first-child) img {
      display: none;
    }
  }
  #option {
    position: relative;
    width: 30rem;
    padding: 2rem;
    box-sizing: border-box;
    background: #666;
    dl {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
    }
    dt {
      color: var(--baseC);
      font-weight: bold;
      font-size: 2.6rem;
      line-height: 1.2;
      text-align: center;
      margin: 1rem 0 2rem;
    }
    dd {
      figure {
        line-height: 0;
        margin: 0 auto;
        a {
          display: block;
          &:not(:last-child) {
            margin-bottom: 1rem;
          }
        }
      }
      figure + a {
        display: block;
        margin: 1.5rem auto 1rem;
      }
    }
    a.soon {
      position: relative;
      pointer-events: none;
      text-decoration: none;
      &::before {
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--mainC);
        opacity: 0.7;
        content: "";
      }
    }
  }
}

.gallery-cell {
  width: 100%;
  height: auto;
  line-height: 0;
}

@media screen and (max-width:768px) {
  #notice_wrapper {
    background: var(--LGC);
    margin-bottom: 1.5rem;
  }
  #top_notice {
    display: block;
    margin-bottom: 2rem;
    padding: 1rem 0;
    > div {
      margin: 0 1rem 2rem;
    }
    #visual {
      width: auto;
      padding: 0;
      box-shadow: none;
    }
    #option {
      width: auto;
      height: auto;
      margin: 0 1rem;
      padding: 1rem;
      &::before {
        position: absolute;
        top: -.5rem;
        left: -.5rem;
        margin: -3rem 0 0 -3rem;
        border: 3rem solid transparent;
        border-bottom: 3rem solid var(--mainC);
        transform: rotate(-45deg);
        content: '';
      }
      &::after {
        position: absolute;
        top: -.5rem;
        right: -3.5rem;
        margin: -3rem 0 0 0;
        border: 3rem solid transparent;
        border-bottom: 3rem solid var(--mainC);
        transform: rotate(45deg);
        content: '';
      }
      dt {
        margin-bottom: 1rem;
        font-size: 2rem;
      }
      dd {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 2rem;
        a > img {
          width: 100%;
          max-width: 25rem;
        }
        .br-sp {
          display: none;
        }
        figure {
          display: flex;
          justify-content: center;
          flex-direction: column;
          margin-bottom: 1rem;
          a {
            margin: 0 auto 1rem;
          }
        }
      }
    }
  }
  .gallery-cell {
    background: none;
  }
}

/*===== ■3. Div [top_catch] Setting =====*/
#top_catch {
  width: 100%;
  margin: 0 auto 5rem;
  > p {
    margin-bottom: 2rem;
    color: var(--accentC);
    font-weight: 700;
    font-family: "Noto Serif", serif;
    font-size: 3rem;
    text-align: center;
  }
  > em {
    display: block;
    color: var(--accentC);
    font-weight: 700;
    font-size: 2rem;
    font-family: "Noto Serif", serif;
    text-align: center;
  }
}

@media screen and (max-width:768px) {
  #top_catch {
    margin: 0 auto 2rem;
    > p {
      margin-bottom: 1rem;
      font-size: 2.2rem;
    }
    > em {
      font-size: 1.6rem;
    }
  }
}

/*===== ■4. Section [top_outline] Setting =====*/
#top_outline {
  dl {
    display: flex;
    position: relative;
    border-bottom: 1px solid var(--GC);
    &::before,
    &::after {
      position: absolute;
      bottom: 0;
      width: .5rem;
      height: 2rem;
      background: var(--GC);
      content: '';
    }
    &::before {
      left: 0;
    }
    &::after {
      right: 0;
    }
  }
  dt {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    position: relative;
    width: 30rem;
    padding: 0 1rem 0 2rem;
    box-sizing: border-box;
    font-weight: bold;
    font-size: 1.8rem;
    &::after {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 1px;
      height: 2rem;
      background: var(--GC);
      content: '';
    }
  }
  dd {
    padding: 2rem;
    a {
      display: block;
    }
    p {
      margin: .5rem 0 0;
      padding-left: 1em;
      text-indent: -1em;
      font-weight: bold;
      font-size: 1.4rem;
      line-height: 1.3;
    }
  }
}

@media (max-width:768px) {
  #top_outline {
    width: 100%;
    margin-top: 3rem;
    dl {
      flex-direction: column;
      margin-bottom: 1rem;
      padding-bottom: 1rem;
      border-bottom: 1px dotted var(--GC);
      &:last-of-type {
        margin: 0;
        padding: 0;
        border: none;
      }
      &::before,
      &::after {
        display: none;
      }
    }
    dt {
      display: block;
      width: auto;
      margin-bottom: .5rem;
      padding: .5rem;
      border-left: 5px solid var(--GC);
      line-height: 1;
      &::after {
        display: none;
      }
    }
    dd {
      margin: 0 1rem;
      padding: 0;
    }
  }
}

/*===== ■5. Section [top_zone] Setting =====*/
#top_zone {
  div.inner {
    > p {
      margin: .5rem 0;
    }
    > ol {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      > li {
        display: flex;
        align-items: center;
        padding: 2rem;
        border-radius: 5px;
        &#plant {
          background: rgba(71, 84, 153, 0.15);
          h3 { color: #475499;}
          em {
            background: #475499;
          }
          > div > div:last-of-type > span {
            border-color: #475499;
          }
        }
        &#safety {
          background: rgba(223, 95, 67, 0.15);
          h3 { color: #df5f43;}
          em {
            background: #df5f43;
          }
          > div > div:last-of-type > span {
            border-color: #df5f43;
          }
        }
        &#water {
          background: rgba(0, 134, 209, 0.15);
          h3 { color: #0086d1;}
          em {
            background: #0086d1;
          }
          > div > div:last-of-type > span {
            border-color: #0086d1;
          }
        }
        &#eco {
          background: rgba(0, 145, 58, 0.15);
          h3 { color: #00913a;}
          em {
            background: #00913a;
          }
          h3 img {
            max-height: 5rem;
          }
          > div > div:last-of-type > span {
            border-color: #00913a;
          }
        }
        &#dx {
          background: rgba(96, 25, 134, 0.15);
          h3 { color: #601986;}
          em {
            background: #601986;
          }
          > div > div:last-of-type > span {
            border-color: #601986;
          }
        }
        em {
          flex-shrink: 0;
          margin-right: 1rem;
          padding: .5rem .8rem;
          border-radius: 3px;
          background: var(--mainC);
          color: var(--baseC);
          font-weight: bold;
          font-size: 2.2rem;
        }
        h3  {
          font-weight: bold;
          font-size: 3rem;
          span {
            margin-right: .5rem;
            color: #666464;
            font-size: 2.2rem;
          }
        }
        > div {
          display: flex;
          flex-direction: column;
          > div:first-of-type {
            display: flex;
            align-items: baseline;
            margin-bottom: 1rem;
          }
          > div:last-of-type {
            > p {
              margin: 0 2rem 1rem 0; 
              font-weight: bold;
            }
            > span {
              display: block;
              width: 90%;
              font-weight: bold;
              font-size: 1.8rem;
              margin-bottom: 1rem;
              padding-bottom: .5rem;
              border-bottom: solid 2px;
            }
            > ol {
              display: flex;
              flex-wrap: wrap;
              gap: 1rem 1.5rem;
              counter-reset: counter;
              > li {
                position: relative;
                width: calc((100% - 4rem) / 2 );
                padding-left: 3rem;
                font-weight: bold;
                font-size: 1.8rem;
                counter-increment: counter;
                > span {
                  display: block;
                  font-weight: normal;
                  font-size: 1.6rem;
                }
                &::before {
                  display: inline-block;
                  position: absolute; 
                  top: 0.1rem;
                  left: 0;
                  width: 2.4rem;
                  height: 2.4rem;
                  margin-right: .5rem;
                  border-radius: 3px;
                  background: var(--mainC);
                  color: var(--baseC);
                  font-weight: bold;
                  font-size: 1.6rem;
                  text-align: center;
                  content: counter(counter);
                }
              }
            }
          }
        }
        > figure {
          flex-shrink: 0;
          img {
            width: 30rem;
            aspect-ratio: 4 / 3;
            object-fit: cover;
          }
        }
      }
    }
  }
}

@media screen and (max-width:768px) {
  #top_zone {
    div.inner {
      > p {
        margin-bottom: 1rem;
      }
      > ol {
        gap: 2rem;
        > li {
          flex-direction: column;
          em {
            margin-right: .5rem;
            padding: .25rem .5rem;
            font-size: 1.6rem;
          }
          h3  {
          font-size: 2.4rem;
          span {
            font-size: 1.6rem;
          }
        }
          > div > div:last-of-type {
            > span {
              width: 100%;
            }
            > ol {
              flex-direction: column;
              gap: 1rem;
              margin-bottom: 1rem;
              > li {
                width: 100%;
                &::before {
                  top: 0.3rem;
                  width: 2rem;
                  height: 2rem;
                  font-size: 1.4rem;
                }
              }
            }
          }
          > figure img {
            width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
          }
        }
      }
    }
  }
}


/*===== ■6. Div [top_cta] Setting =====*/
#top_cta {
  width: 100%;
  margin-bottom: 5rem;
  > ul {
    display: flex;
    gap: 2rem;
    margin: 0 1rem;
    > li {
      width: 100%;
      > a {
        display: block;
        margin: 0 auto;
        text-align: center;
        max-width: 44rem;
      }
    }
  }
}

@media (max-width:768px) {
  #top_cta {
    width: 100%;
    margin-bottom: 3rem;
    > ul {
      flex-direction: column;
      gap: 2rem;
      margin: 0;
      > li > a {
        max-width: 80%;
      }
    }
  }
}

