* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.6;
}

html {
  font-family: ヒラギノ角ゴシック,Hiragino Kaku Gothic ProN,ヒラギノ角ゴ ProN W3,メイリオ,Meiryo,Meiryo UI,
  'Noto Sans JP','Noto Sans JP',"Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN", "Hiragino Sans",
  Meiryo,sans-serif;
}

/* SP改行 */
.sp-br {
  display: none;
}
@media screen and (max-width: 768px) {
  .sp-br {
    display: block;
  }
}

/* header */
.header-bar {
  width: 100%;
  height: 100px;
  background-color: #ffffff;
  > .contents {
    width: 95%;
    max-width: 1100px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
  > .header-content {
    > .catch {
      font-size: 14px;
      line-height: 1.6;
    }
    > .name {
      font-size: 34px;
      line-height: 1.25;
      font-weight: 700;
      color: #f88;
    }
  }
  }
}
.header-content .banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 380px;
    margin:0 auto;
    padding: 0.5em 1em;
    border: none;
    border-radius: 5px;
    background-color: #e12121;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}
.header-content .banner:hover {
    background-color: #df8484;
}
.header-content {
  display: grid;
  > .banner {
    > .catch {
      font-size: 16px;
      line-height: 1.25;
    }
    > .num {
      font-size: 26px;
      line-height: 1.25;
      font-weight: 700;
    }
    > .message {
      font-size: 16px;
      line-height: 1.25;
    }
  }
}

@media screen and (max-width: 959px) {
  .header-bar {
    height: 60px;
    > .contents {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;   // 水平方向に中央寄せ
      justify-content: center; // 垂直方向に中央寄せ
      margin: 0 auto;
      text-align: center;
      > .header-content {
        > .catch {
          font-size: 13px;
          line-height: 1.6;
        }
        > .name {
          font-size: 30px;
          line-height: 1.25;
          font-weight: 700;
        }
      }
    }
  }
}

/* footer CTA */
.footer-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 130px;
  background-color: #f0f0f0;
  display: grid;
  place-items: center;
  z-index: 9999;
}

.footer-cta .banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 80%;
  margin: 0 auto;
  padding: 0.7em 2em;
  overflow: hidden;
  border: 1px solid #2589d0;
  border-radius: 5px;
  background-color: #fff;
  color: #2589d0;
  font-size: 1em;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease;
  z-index: 1;
}

.footer-cta .banner .catch,
.footer-cta .banner .message {
  font-size: 15px;
  line-height: 1.3;
  margin-right: 1em;
  text-align: center;
}

.footer-cta .banner .num {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.footer-cta .banner:hover,
.footer-cta .banner:active {
  background-color: transparent;
  color: #fff;
}

.footer-cta .banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background-color: #2589d0;
  transform: translate(-50%, -50%) rotate(-30deg) scaleY(0);
  transform-origin: center;
  z-index: -1;
  border-radius: 5px;
  transition: transform 0.4s ease;
}

.footer-cta .banner:hover::before,
.footer-cta .banner:active::before {
  transform: translate(-50%, -50%) rotate(-30deg) scaleY(1);
}


/* First view */
.hero-section {
  width: 100%;
  height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background-image: linear-gradient(to right, rgb(0 0 0 / 30%) 0%, rgb(0 0 0 / 30%) 100%), url('../img/car_img.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  > .title {
    font-size: 40px;
    > .strong {
      font-size: 54px;
      font-style: normal;
      color: #fdc748;
      font-weight: 700;
      line-height: 1.5;
    }
    > .emphasis {
      font-size: 54px;
      font-style: normal;
      color: #50e6ca;
      font-weight: 700;
      line-height: 1;
    }
  }
  > .subtitle {
    font-size: 28px;
    background-color: rgba(255,46,46,0.5);
    padding:10px 10px;
    margin: 10px 0 10px 0;
    flex-wrap: wrap;
    align-items: center;
  }
  > .list {
    display: flex;
    justify-content: space-between;
    text-align: left;
    list-style: none;
    > .item {
      width: 225px;
      height: 260px;
      font-size: 22px;
      font-weight: 700;
      text-align: center;
      color: #fff;
      margin: 20px 20px;
      padding-top: 70px;
      background-image: url('../img/first_badge.png');
      > .emphasis {
        font-size: 30px;
        color: #fff;
      }
    }
  }
}

@media screen and (max-width: 959px) {
  .hero-section {
    height: 600px;
    gap: 24px;
    > .title {
      font-size: 26px;
      > .strong, > .emphasis {
        font-size: 30px;
      }
    }
    > .subtitle {
      font-size: 20px;
    }
    > .list {
      > .item {
        width: 160px;
        height: calc(160px * 260 / 225);
        font-size: 16px;
        background-size: cover;
        background-repeat: no-repeat;
        margin: 10px 10px;
        padding-top: 55px;
        > .emphasis {
          font-size: 20px;
        }
      }
    }
  }
}

@media screen and (max-width: 499px) {
  .hero-section {
    max-width: 100%;
    overflow-x: hidden;
    > .list {
      > .item {
        width: 130px;
        height: calc(130px * 260 / 225);
        font-size: 14px;
        margin: 5px 2px;
        padding-top: 45px;
        > .emphasis {
          font-size: 16px;
        }
      }
    }
  }
}

/* catch */
.catch-section {
  width: 100%;
  padding: 32px 0;
  margin: auto;
  font-size: 24px;
  line-height: 1.5;
  > .contents {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    width: 95%;
    max-width: 960px;
    margin: auto;
    > .img {
      width: 120%;
    }
    > .list {
      width: fit-content;
      max-width: 540px;
      list-style-type: '★';
      > .item {
        margin: 8px 0;
        > .emphasis {
          color: #dc143c;
          font-weight: 700;
        }
      }
    }
  }
}

@media screen and (max-width: 959px) {
  .catch-section {
    > .contents {
      flex-direction: column;
      align-items: center;
      gap: 24px;
      font-size: 18px;
      > .img {
        width: 100%;
        max-width: 100%;
      }
      > .list {
        width: 90%;
        margin-left: 1em;
      }
    }
  }
}

/* CTA */
.cta-section {
  background-color: #f0f8ff;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  font-size: 24px;
  line-height: 1.5;
  padding: 32px 0;
  margin: auto;

  > .catch > .emphasis {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: #dc143c;
    padding-right: 2px;
  }

  > .phone > .banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 380px;
    margin:0 auto;
    padding: 0.5em 1em;
    border: none;
    border-radius: 5px;
    background-color: #e12121;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    > .num {
      display: block;
      font-size: 32px;
      text-align: center;
      font-weight: 700;
    }
  }
}

.cta-section .banner:hover {
    background-color: #df8484;
}

@media screen and (max-width: 959px) {
  .cta-section {
    width: 100%;
    flex-direction: column;
    gap: 24px;
    > .phone > .banner {
      text-decoration: none;
    }
  }
}

@media screen and (max-width: 499px) {
  .cta-section {
    > .phone {
      width: 100%;
      > .banner {
        max-width: 100%;
      }
    }
  }
}

/* こんなことで悩んでませんか？ */
.problem-section {
    padding: 60px 20px;
    background: linear-gradient(to top right, #eaf5f4 50%, #cfe7e8 50%);  
  > .title {
    position: relative;
    display: block;
    width: fit-content;
    padding: .5em .7em 0;
    margin: 0 auto 60px;
    border-bottom: 3px solid #d09125;
    color: #333333;
    font-size: 32px;
    font-weight: bold;
    text-align: center;    
    > .emphasis {
      color: #d2691e;
    }
    &::before,
    &::after {
      position: absolute;
      left: calc(50% - 15px);
      bottom: -15px;
      width: 30px;
      height: 15px;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      content: '';
    }
    &::before {
      background-color: #d09125;
    }
    &::after {
      bottom: -11px;
      background-color: #cfe7e8;
    }
  }
  
  > .contents {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    width: 95%;
    max-width: 1200px;
    margin: auto;
    > .img {
      width: 100%;
    }
    > .list {
      width: fit-content;
      max-width: 580px;
      margin: 16px 0 0;
      list-style-type: '✔';
      font-size: 18px;
      font-weight: bold;
      line-height: 1.6;
      > .item {
        display: inline-block;
        position: relative;
        width: 24em;
        padding: .5em 1em;
        border-right: 27px solid #d09125;
        background-color: #f5f5f5;
        color: #333333;
        margin: 4px 0;
        &::before {
          position: absolute;
          bottom: 2px;
          right: -20px;
          z-index: -1;
          transform: rotate(5deg);
          width: 100%;
          height: 50%;
          background-color: #d0d0d0;
          content: "";
          filter: blur(4px);
        }
      }
    }
  }
}

@media screen and (max-width: 959px) {
  .problem-section {
    > .contents {
      flex-direction: column-reverse;
      gap: 24px;
      > .img {
        width: 100%;
        max-width: 100%;
      }
      > .list {
        width: 100%;
        > .item {
          width: 100%;
          font-size: 16px;
        }
      }
    }
  }
}

/* こんな車トラブル、私たちにお任せください！ */
.detail-section {
  padding: 32px 0;
  > .title {
    position: relative;
    display: block;
    width: fit-content;
    padding: .5em .7em 0;
    margin: 0 auto 60px;
    border-bottom: 3px solid #d09125;
    color: #333333;
    font-size: 32px;
    font-weight: bold;
    text-align: center;    
    > .emphasis {
      color: #d2691e;
    }
    &::before,
    &::after {
      position: absolute;
      left: calc(50% - 15px);
      bottom: -15px;
      width: 30px;
      height: 15px;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      content: '';
    }
    &::before {
      background-color: #d09125;
    }
    &::after {
      bottom: -11px;
      background-color: #fff;
    }
  }
  
  > .subsection {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 960px;
    margin: 32px auto;
    &.-rev {
      flex-direction: row-reverse;
    }
    > .article {
      width: 55%;
      line-height: 1.6;
      > .sentence {
        font-size: 16px;
        line-height: 1.6;
        margin: 10px 30px;
      }
    }
    > .img {
      width: 55%;
      height: auto;
    }
  }
}


@media screen and (max-width: 959px) {
.detail-section {
  padding: 32px 0;
  > .subsection {
    > .article {
      > .sentence {
        margin: 20px 20px;
      }
    }
  }
}
}

.detail-section .subtitle {
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    position: relative;
    margin: calc(3.5em / 2) 0 calc(3.5em / 4) calc(3.5em / 2);
    color: #333333;
    line-height: 1;
}
.detail-section .subtitle::before {
    position: absolute;
    bottom: calc(-3.5em / 4);
    left: calc(-3.5em / 2);
    z-index: -1;
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    background: #cfe7e8;
    content: '';
}

@media screen and (max-width: 959px) {
  .detail-section {
    > .subsection {
      flex-direction: column;
      width: 95%;
      &.-rev {
        flex-direction: column;
      }
      > .article {
        width: 100%;
      }
      > .img {
        width: 100%;
        max-width: 480px;
      }
    }
  }
}


/* 料金体系 */
.price-section {
    padding: 60px 20px;
    background: linear-gradient(to top right, #fff1eb 50%, #cfe7e8 50%);  
  > .title {
    position: relative;
    display: block;
    width: fit-content;
    padding: .5em .7em 0;
    margin: 0 auto 60px;
    border-bottom: 3px solid #d09125;
    color: #333333;
    font-size: 32px;
    font-weight: bold;
    text-align: center;    
    > .emphasis {
      color: #d2691e;
    }
    &::before,
    &::after {
      position: absolute;
      left: calc(50% - 15px);
      bottom: -15px;
      width: 30px;
      height: 15px;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      content: '';
    }
    &::before {
      background-color: #d09125;
    }
    &::after {
      bottom: -11px;
      background-color: #cfe7e8;
    }
  }
  > .wrapper {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: auto;
    > .subsection {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      background-color: #ffffff;
      padding: 30px 30px;
      border-radius: 4px;
      > .img {
        width: 180px;
        height: 120px;
        object-fit: cover;
        border: solid 2px #888;
        border-radius: 4px;
      }
      > .subtitle {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.25;
        > .emphasis {
          color: #dc143c;
        }
      }
      > .description {
        font-size: 16px;
      }
    }
  }
}

@media screen and (max-width: 959px) {
  .price-section {
    > .wrapper {
      width: 100%;
      grid-template-columns: 1fr;
    }
  }
}

/* 対応エリア */
.area-section {
  padding: 32px 0;
  > .title {
    position: relative;
    display: block;
    width: fit-content;
    padding: .5em .7em 0;
    margin: 0 auto 60px;
    border-bottom: 3px solid #d09125;
    color: #333333;
    font-size: 32px;
    font-weight: bold;
    text-align: center;    
    > .emphasis {
      color: #d2691e;
    }
    &::before,
    &::after {
      position: absolute;
      left: calc(50% - 15px);
      bottom: -15px;
      width: 30px;
      height: 15px;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      content: '';
    }
    &::before {
      background-color: #d09125;
    }
    &::after {
      bottom: -11px;
      background-color: #fff;
    }
  }
  > .wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 720px;
    margin: auto;
    > .img {
      width: 400px;
    }
    > .list {
      flex: 1;
      list-style-type: '✔';
      font-size: 20px;
      line-height: 1.5;
      > .item {
        padding-left: 8px;
        margin: 8px 0;
        > .emphasis {
          color: #dc143c;
          font-weight: 700;
        }
      }
    }
  }
}

@media screen and (max-width: 959px) {
  .area-section {
    > .wrapper {
      flex-direction: column-reverse;
      width: 95%;
      > .list {
        width: 90%;
        margin-left: 1em;
      }
    }
  }
}

/* 作業の流れ */
.flow-section {
  padding: 60px 20px;
  background: linear-gradient(to top right, #fffbe9 50%, #cfe7e8 50%);  
  > .title {
    position: relative;
    display: block;
    width: fit-content;
    padding: .1em .7em 0;
    margin: 0 auto 60px;
    border-bottom: 3px solid #d09125;
    color: #333333;
    font-size: 32px;
    font-weight: bold;
    text-align: center;    
    > .emphasis {
      color: #d2691e;
    }
    &::before,
    &::after {
      position: absolute;
      left: calc(50% - 15px);
      bottom: -15px;
      width: 30px;
      height: 15px;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      content: '';
    }
    &::before {
      background-color: #d09125;
    }
    &::after {
      bottom: -11px;
      background-color: #cfe7e8;
    }
  }
  > .subtext {
    display: block;
    font-size: 20px;
    text-align: center;
    margin: 10px auto 20px;
    > .emphasis {
      color: #dc143c;
      font-weight: 700;
    }
  }
  > .list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 90%;
    margin: auto;
    > .step {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      background-color: #fff;
      border-radius: 4px;
      padding: 30px 30px;
      > .num {
        font-size: 20px;
        color: #2f4f4f;
        border: solid 2px #2f4f4f;
        border-radius: 4px;
        padding: 2px 4px;
      }
      > .img {
        width: 100px;
        height: 100px;
      }
      > .subtitle {
        font-size: 20px;
        color: #dc143c;
        font-weight: 700;
      }
      > .description {
        font-size: 16px;
        line-height: 1.25;
      }
      &:not(.-last)::after {
        content: '▶';
        position: absolute;
        display: block;
        top: calc(50% - .5em);
        left: calc(100% + 4px);
        font-size: 16px;
        line-height: 1;
        color: #2f4f4f;
      }
    }
  }
}

@media screen and (max-width: 959px) {
  .flow-section {
    > .list {
      grid-template-columns: 1fr;
      width: 95%;
      > .step {
        &:not(.-last)::after {
          content: '▼';
          top: calc(100% + 4px);
          left: calc(50% - .5em);
        }
      }
    }
  }
}


/* よくあるご質問 */
.faq-section {
  padding: 32px 0;
  > .title {
    position: relative;
    display: block;
    width: fit-content;
    padding: .5em .7em 0;
    margin: 0 auto 50px;
    border-bottom: 3px solid #d09125;
    color: #333333;
    font-size: 32px;
    font-weight: bold;
    text-align: center;    
    > .emphasis {
      color: #d2691e;
    }
    &::before,
    &::after {
      position: absolute;
      left: calc(50% - 15px);
      bottom: -15px;
      width: 30px;
      height: 15px;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      content: '';
    }
    &::before {
      background-color: #d09125;
    }
    &::after {
      bottom: -11px;
      background-color: #fff;
    }
  }
  > .container {
    width: 720px;
    margin: auto;
    line-height: 1.5;
    margin-top: 24px;
  }
}

.faq-section .item {
    max-width: 100%;
    margin-bottom: 7px;
    border: 1px solid #d6dde3;
    border-radius: 5px;
}
.faq-section .item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em 1em 3em;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
}
.faq-section .item summary::before,
.faq-section .item p::before {
    position: absolute;
    left: 1em;
    font-weight: 600;
    font-size: 1.3em;
}
.faq-section .item summary::before {
    color: #75bbff;
    content: "Q";
}
.faq-section .item summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid #333333b3;
    border-right: 3px solid #333333b3;
    content: '';
    transition: transform .5s;
}
.faq-section .item[open] summary::after {
    transform: rotate(225deg);
}
.faq-section .item p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 3em 1.5em;
    color: #333;
    transition: transform .5s, opacity .5s;
}
.faq-section .item[open] p {
    transform: none;
    opacity: 1;
}
.faq-section .item p::before {
    color: #ff8d8d;
    line-height: 1.2;
    content: "A";
}

@media screen and (max-width: 959px) {
  .faq-section {
    > .container {
      width: 95%;
      max-width: 720px;
      font-size: 16px;
      > .item {
        > .question::after {
          top: 14px;
        }
        > .answer {
          font-size: 14px;
          &::before {
            font-size: 16px;
          }
        }
      }
    }

  }
}

/* 個人情報保護方針 */
.privacy-section {
  background-color: #cfe7e8;
  padding: 16px 0;
  > .title {
    font-size: 24px;
    text-align: center;
  }
  > .wrapper {
    width: 600px;
    height: 240px;
    background-color: #fff;
    margin: 10px auto;
    padding: 16px;
    overflow-y: scroll;
    font-size: 16px;
    > .contents > p {
      margin-bottom: 1em;
    }
  }
}

@media screen and (max-width: 959px) {
  .privacy-section {
    > .wrapper {
      width: 90%;
    }
  }
}

/* 会社概要 */
.company-section {
  padding: 16px 0;
  > .title {
    font-size: 24px;
    text-align: center;
  }
  > .description {
    width: max-content;
    font-size: 16px;
    line-height: 1.5;
    margin: 10px auto;
  }
}

/* footer */
.footer {
  width: 100%;
  background-color: #cfe7e8;
  border-top: solid 1px #cfe7e8;
  text-align: center;
  padding: 10px;
  > .copyright {
    font-size: 12px;
    line-height: 1;
  }
}

@media screen and (max-width: 959px) {
  .footer {
    padding-bottom: 90px;
  }
}

/* レスポンシブ表示切替 */
@media screen and (min-width: 960px) {
  .-sp {
    display: none;
  }
}
@media screen and (max-width: 959px) {
  .-pc {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding-bottom: 90px;
  }

  .footer-cta {
    height: 130px;
  }

  .footer-cta .banner {
    width: 90%;
    padding: 0.5em 1em;
    font-size: 0.9em;
  }

  .footer-cta .banner span {
    text-align: center;
    display: block;
  }
}
