@charset "UTF-8";

:root {
  --base: #ffffff;
  --black: #2c363c;
  --main: #45b5fa;
  --back: #e2f4ff;
  --red: #c60d31;

  --shadow-main: 0 3px 6px rgba(69, 181, 250, 0.2);
  --shadow-black: 0 3px 6px rgba(11, 11, 11, 0.2);
}

body.ev {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: rgba(69, 181, 250, 0.04);
}

.wrapper-section{
  margin: 0 auto;
  padding: 12rem 0;
}

.wrapper-md {
  width: 1040px;
}

.btn-base {
  min-width: 300px;
  height: 60px;
  color: var(--base);
  background: var(--red);
  box-shadow: var(--shadow-black);
  transition: opacity 0.4s ease-out;
  &:hover {
    opacity: 0.8;
  }
  &::before,
  &::after {
    content: none;
  }
  .txt {
    padding: 0;
    &::before,
    &::after {
      content: none;
    }
  }
}

.ttl-ev {
  margin: 0 0 6rem;
  text-align: center;
  font-weight: 700;
  .txt-en {
    display: block;
    font-family: "Montserrat", sans-serif;
  }
  .txt-jp {
    position: relative;
    font-size: 4rem;
    padding: 0 0 0.5em;
    &::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      width: 3.2rem;
      height: 2px;
      background: var(--black);
      margin: 0 auto;
    }
  }
}

.ttl-ev-md {
  margin: 0 0 4rem;
  font-size: 3rem;
  font-weight: 700;
}

.txt-note {
  margin: 1rem 0 0;
  font-size: 12px;
}

.color-main {
  color: var(--main);
}

.color-red {
  color: var(--red);
}

.box-img {
  border-radius: 0px;
}

.img-radius {
  border-radius: 10px;
}

/* header */
#masthead.header-ev {
  height: 100px;
  background: var(--base);
  .btn-mail .txt {
    padding: 0;
  }
  .btn-base {
    min-width: 200px;
    height: 50px;
    box-shadow: none;
  }
}
#site-navigation #primary-menu .menu-item .link-main-nav::after {
  content: none;
}

/* footer */
#footer-ev {
  padding: 6rem 0;
  color: var(--base);
  background: var(--black);
  .inner-footer {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: flex-end;
    width: 1480px;
    max-width: 90%;
    margin: 0 auto;
  }
  .logo-en {
    font-size: 5.4rem;
    color: var(--base);
  }
  .link-tel {
    margin: 2rem 0 0;
    color: var(--base);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1;
    .txt-tel {
      font-size: 3rem;
    }
  }
  .site-info {
    text-align: right;
  }
  #footer-menu {
    display: flex;
    gap: 4rem;
    a {
      color: var(--base);
      font-weight: 700;
    }
  }
  .btn-base {
    margin: 4rem 0;
  }
  #copy-right {
    font-weight: 700;
  }
}
body.ev {
  /* mv-ev */
  #mv-ev {
    position: relative;
  }

  /* concept */
  #concept {
    .wrapper-flex {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .box-txt {
      width: 48%;
    }
    .box-img {
      width: 48%;
    }
  }

  /* ev-charger */
  #ev-charger {
    background: var(--back);
    .wrapper-point {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1px;
      counter-reset: point;
      .box-point {
        position: relative;
        padding: 6rem 4rem 4rem;
        background: var(--base);
        box-shadow: var(--shadow-main);
        border-radius: 4px;
        &::after {
          counter-increment: point;
          content: "0" counter(point);
          position: absolute;
          top: 0;
          right: 0;
          left: 0;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 8rem;
          height: 8rem;
          margin: 0 auto;
          font-family: "Montserrat", sans-serif;
          font-size: 3.2rem;
          font-weight: 700;
          letter-spacing: 0.1em;
          color: var(--base);
          background: var(--red);
          border-radius: 8rem;
          transform: translateY(-50%);
        }
      }
      .ttl {
        margin: 0 0 4rem;
        font-size: 2.4rem;
        font-weight: 700;
        line-height: 1.4;
        text-align: center;
      }
      .box-img {
        margin: 2rem auto 3rem;
        text-align: center;
      }
      .txt {
        text-align: left;
      }
    }
    .wrapper-charger {
      margin: 8rem auto;
      padding: 8rem;
      border-radius: 4px;
      background: var(--base);
      box-shadow: var(--shadow-main);
    }
  }

  /* case */
  #case {
    .wrapper-img {
      padding: 8rem;
      text-align: center;
      background: var(--base);
      border: 2px solid var(--red);
      border-radius: 8px;
    }
    .wrapper-case {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: auto auto;
      gap: 4rem;
      margin: 8rem auto 0;
      .ttl {
        margin: 1rem auto 0;
        font-size: 2rem;
        font-weight: 700;
      }
    }
  }

  /* advantage */
  #advantage {
    background: var(--base);
    counter-reset: advantage;
    .wrapper-advantage {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
      margin: 8rem auto 0;
      &:nth-child(even) {
        .box-img {
          order: 2;
        }
      }
      .box-txt {
        position: relative;
        &::after {
          counter-increment: advantage;
          content: "0" counter(advantage);
          display: block;
          text-align: right;
          font-family: "Montserrat", sans-serif;
          color: var(--red);
          font-size: 7.2vw;
          font-weight: 700;
          font-style: italic;
          line-height: 1;
          opacity: 0.08;
        }
      }
      .ttl {
        margin: 0 0 4rem;
        font-size: 2.4rem;
        font-weight: 700;
      }
      .box-img {
        border: 2px solid var(--red);
        border-radius: 8px;
        background: var(--base);
      }
    }
  }

  /* contact */
  #contact {
    .ttl-main {
      margin: 0 auto 4rem;
      text-align: center;
      font-size: 4rem;
      font-weight: 700;
    }
    .wrapper-contact {
      display: grid;
      grid-template-columns: 33.5% auto;
      align-items: stretch;
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
      color: var(--base);
      background: var(--red);
      border-radius: 8px;
      clip-path: content-box;
      .box-txt {
        padding: 3rem;
      }
      .ttl {
        font-size: 2rem;
        font-weight: 700;
      }
      .link-tel {
        font-family: "Montserrat", sans-serif;
        color: var(--base);
        font-weight: 700;
        .txt-tel {
          font-size: 3.2rem;
        }
      }
    }
    .btn-base {
      min-width: 200px;
      height: 50px;
      margin: 1rem auto 0;
      color: var(--red);
      background: var(--base);
    }
  }
}

/* media query */
@media screen and (max-width: 740px) {
  .wrapper-section{
    padding: 8rem 0;
  }
  .ttl-ev {
    margin: 0 0 3.2rem;
  }
  .ttl-ev .txt-jp {
    font-size: 3.2rem;
  }
  .ttl-ev-md {
    margin: 0 0 3.2rem;
    font-size: 2.4rem;
  }
  /* header */
  #masthead.header-ev {
    height: auto;
    #site-navigation::after{
      background: rgba(240, 240, 240, 0.9);
    }
  }
  /* footer */
  #footer-ev .inner-footer{
    grid-template-columns: auto;
    text-align: center;
    #footer-menu{
      flex-wrap: wrap;
      justify-content: center;
      gap: 1em;
      margin: 4rem auto 0;
    }
    .site-info{
      text-align: center;
    }
    .btn-base{
      min-width: 240px;
    }
    #copy-right{
      text-align: center;
    }
  }
  /* mv */
  body.ev #mv-youtube {
    aspect-ratio: 1 / 1;
  }
  /* concept */
  body.ev #concept{
    padding: 8rem 0;;
  }
  body.ev #concept .wrapper-flex {
    flex-direction: column;
    gap: 4rem;
  }
  body.ev #concept .ttl-ev-md {
    text-align: center;
  }
  body.ev #concept .box-txt {
    width: 100%;
  }
  body.ev #concept .box-img {
    width: 100%;
  }
  /* charger */
  body.ev #ev-charger .wrapper-point {
    grid-template-columns: auto;
    gap: 6rem;
    .ttl{
      margin: 0;
    }
    .img-icon {
      max-width: 120px;
    }
  }
  body.ev #ev-charger .wrapper-charger {
    margin: 4rem auto;
    padding: 2rem;
  }
  /* case */
  body.ev #case{
    padding: 8rem 0;
  }
  body.ev #case .wrapper-case {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem auto 0;
  }
  body.ev #case .wrapper-img{
    padding: 2rem;
  }
  /* advantage */
  body.ev #advantage {
    padding: 8rem 0;
  }
  body.ev #advantage .wrapper-advantage {
    grid-template-columns: auto;
    margin: 6rem auto 0;
    gap: 2rem;
    &::before {
      counter-increment: advantage;
      content: "0" counter(advantage);
      font-family: "Montserrat", sans-serif;
      color: var(--red);
      font-size: 6rem;
      font-weight: 700;
      font-style: italic;
      line-height: 1;
      opacity: 0.08;
      opacity: 1;
    }
  }
  body.ev #advantage .wrapper-advantage .box-txt {
    order: 1;
  }
  body.ev #advantage .wrapper-advantage .box-img {
    order: 2;
  }
  body.ev #advantage .wrapper-advantage .ttl {
    margin: 0 0 2rem;
  }
  body.ev #advantage .wrapper-advantage .box-txt::after {
    content: none;
    counter-increment: none;
  }
  /* contact */
  body.ev #contact .wrapper-contact {
    display: block;
    padding: 0;
    .img-contact {
      width: 100%;
    }
  }
  body.ev #contact .ttl-main {
    font-size: 2.4rem;
  }
  body.ev #contact .wrapper-contact .ttl {
    font-size: 16px;
  }
  body.ev #contact .wrapper-contact .ttl {
    font-size: 16px;
  }
}
