/* 全体のスタイル */
:root {
  --color-main: #02a4a5;
  --color-accent: #ff6600;
}

html {
  scroll-behavior: smooth;
}

body {
  font: normal 18px/1.7 "Noto Sans JP", sans-serif;
  color: #000;
  letter-spacing: 0.1em;
  text-align: center;
  overflow-x: hidden;
  background-color: #fff;
}

.container {
  max-width: calc(1000 / 1920 * 100vw);
  padding-inline: 2%;
  margin-inline: auto;
}

@media screen and (max-width: 640px) {
  .container {
    max-width: none;
  }
}

.bg-gray {
  background-image: url(../images/background_gray.png);
  background-size: cover;
}

.bg-check {
  background-image: url(../images/background_check.png);
  background-size: 100%;
}

.bg-blue {
  background-color: #f4fafd;
}

@media screen and (max-width: 640px) {
  .bg-check {
    background-image: url(../images/background_check-sp.png);
  }

  .bg-blue {
    background-color: #f9fcfb;
  }
}

.sec-ttl {
  color: var(--color-main);
  font-family: "Noto Sans JP", serif;
  font-size: calc(48 / 1920 * 100vw);
  font-weight: 700;
}

@media screen and (max-width: 640px) {
  .sec-ttl {
    font-size: calc(48 / 780 * 100vw);
  }
}

/* レスポンシブ設定 */
@media screen and (max-width: 640px) {
  body {
    min-width: inherit;
    height: 100%;
  }

  .sp-item {
    display: block !important;
  }

  .pc-item {
    display: none !important;
  }

  .sp-item img {
    width: 100%;
  }

  .sp img {
    max-width: 90%;
  }

  .btn img {
    max-width: 95%;
  }
}

@media screen and (min-width: 641px) {
  .sp-item {
    display: none !important;
  }

  .pc-item {
    display: block !important;
  }
}

/* 共通クラス */

.rollover:hover {
  opacity: 0.7;
  filter: alpha(opacity=70);
  -ms-filter: "alpha(opacity=70)";
}

/* フォーム要素 */
input[type="radio"] {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

input[type="image"]:hover {
  opacity: 0.7;
  filter: alpha(opacity=70);
  -ms-filter: "alpha(opacity=70)";
}

/* テキストスタイル */
em {
  text-decoration: underline;
  font-style: normal;
}

/* フォントスタイル */
.bold {
  font-weight: bold !important;
}

strong {
  font-weight: bold;
}

/* フロート */
.fr {
  float: right !important;
}

.fl {
  float: left !important;
}

.clear {
  clear: both;
}

/* 画像 */
img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  line-height: 0;
  padding: 0;
}

/*リンクスタイル*/
a {
  text-decoration: none;
}

/* クリアフィックス */
.clearfix:after {
  content: "";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
}

.clearfix {
  min-height: 1px;
}

/*改行*/
.sp-only {
  display: none;
}

@media screen and (max-width: 640px) {
  .sp-only {
    display: block;
  }
}

/* レイアウト */
#wrapper {
  margin: 0 auto;
  margin-right: 14%;
  width: 40%;
  max-width: 480px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  background: #fff;
}

#carport-introduction {
  background-color: #f4fafd;
}
#product-features {
  background-color: #f4fafd;
}
#case-studies-and-testimonials {
  background-color: #f9fcfb;
}
#faq {
  background-color: #eefcfc;
}
#service-area {
  background-color: #02a4a5;
}
#service-flow {
  background-color: #f9fcfb;
}
#company-info {
  background-color: #eefcfc;
}

@media screen and (max-width: 680px) {
  #company-info {
    background-color: #fff;
  }
}

/*CTA*/
.cta-banner {
  padding-block: calc(92 / 1920 * 100vw);
}

.cta-area {
  padding: calc(43 / 1920 * 100vw) calc(45 / 1920 * 100vw)
    calc(40 / 1920 * 100vw);
  background-color: #fff;
  border: solid calc(5 / 1920 * 100vw) var(--color-main);
  border-radius: 10px;
  line-height: 1;
}

.cta-area__ttl {
  display: inline-flex;
  justify-content: center;
  position: relative;
  margin-left: calc(134 / 1920 * 100vw * -1); /*0円分左に寄せる*/

  h2 {
    color: var(--color-main);
    font-size: calc(48 / 1920 * 100vw);
    font-weight: 700;
  }

  img {
    position: absolute;
    right: calc(134 / 1920 * 100vw * -1);
    bottom: 0;
    width: calc(134 / 1920 * 100vw);
    height: calc(134 / 1920 * 100vw);
  }
}

.cta-area__lead {
  margin-top: calc(14 / 1920 * 100vw);
  color: var(--color-main);
  font-size: calc(24 / 1920 * 100vw);
  font-weight: 600;
}

.buttons {
  display: flex;
  gap: calc(12 / 1920 * 100vw);
  margin-top: calc(40 / 1920 * 100vw);
}

.button-tel,
.button-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 / 1920 * 100vw);
  padding: calc(20 / 1920 * 100vw);
  border-radius: 10px;
  box-shadow: 0 7px 6px rgba(76, 76, 76, 0.3),
    2px 2px 2px rgba(255, 255, 255, 0.5) inset;
  color: #fff;
  white-space: nowrap;
}

.button-tel {
  flex-grow: 2;
  background-color: var(--color-accent);

  &::before {
    width: calc(36 / 1920 * 100vw);
    height: calc(48 / 1920 * 100vw);
    background-image: url(../images/tel.png);
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
  }
}

.button-tel__txt {
  font-size: calc(21.87 / 1920 * 100vw);
  font-weight: 600;
}

.button-tel__num {
  margin-top: calc(10 / 1920 * 100vw);
  font-family: Arial, sans-serif;
  font-size: calc(48 / 1920 * 100vw);
  font-weight: 700;
}

.button-mail {
  flex-grow: 1;
  background-color: #0099cc;
  font-size: calc(35.85 / 1920 * 100vw);
  font-weight: 700;

  &::before {
    width: calc(51 / 1920 * 100vw);
    height: calc(35 / 1920 * 100vw);
    background-image: url(../images/mail.png);
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
  }

  &::after {
    /*矢印*/
    width: calc(42 / 1920 * 100vw);
    height: calc(42 / 1920 * 100vw);
    background-image: url(../images/mailarrow.png);
    background-size: contain;
    background-repeat: no-repeat;
    content: "";
  }
}

.cta-area__addition {
  margin-top: calc(21 / 1920 * 100vw);
  color: var(--color-main);
  font-size: calc(24 / 1920 * 100vw);
}

@media screen and (max-width: 640px) {
  .cta-area {
    padding: calc(43 / 780 * 100vw) calc(30 / 780 * 100vw)
      calc(19 / 780 * 100vw);
    border-width: calc(5 / 780 * 100vw);
    line-height: 1.2;
  }

  .cta-area__ttl {
    --sp0: calc(136 / 780 * 100vw); /*0円の幅*/
    margin-left: calc(var(--sp0) * -1);

    h2 {
      font-size: calc(50 / 780 * 100vw);
      margin-right: calc(65 / 780 * 100vw);
    }

    img {
      right: calc(var(--sp0) * -1);
      width: var(--sp0);
      height: calc(132 / 780 * 100vw);
    }
  }

  .cta-area__lead {
    width: fit-content;
    margin-inline: auto;
    margin-top: calc(25 / 780 * 100vw);
    font-size: calc(30 / 780 * 100vw);
    text-align: left;
  }

  .buttons {
    flex-direction: column;
    gap: calc(32 / 780 * 100vw);
    margin-top: calc(25 / 780 * 100vw);
  }

  .button-tel,
  .button-mail {
    justify-content: space-between;
    height: calc(183 / 780 * 100vw);
    padding-inline: calc(33 / 780 * 100vw);
  }

  .button-tel {
    &::before {
      width: calc(54 / 780 * 100vw);
      height: calc(72 / 780 * 100vw);
      background-image: url(../images/tel-sp.png);
      transform: translateY(calc(10 / 780 * 100vw));
      content: "";
    }
  }

  .button-tel__txt {
    font-size: calc(32 / 780 * 100vw);
  }

  .button-tel__num {
    font-size: calc(71 / 780 * 100vw);
    text-shadow: 4px 4px 4px rgba(76, 76, 76, 0.35);
  }

  .button-mail {
    font-size: calc(53.81 / 780 * 100vw);
    text-shadow: 4px 4px 4px rgba(76, 76, 76, 0.35);

    &::before {
      /*メールアイコン*/
      width: calc(77 / 780 * 100vw);
      height: calc(52 / 780 * 100vw);
      background-image: url(../images/mail-sp.png);
      transform: translateY(calc(6 / 780 * 100vw));
      content: "";
    }

    &::after {
      /*矢印*/
      width: calc(70 / 780 * 100vw);
      height: calc(70 / 780 * 100vw);
      background-image: url(../images/mailarrow.png);
      background-size: contain;
      transform: translateY(calc(10 / 780 * 100vw));
      content: "";
    }
  }

  .cta-area__addition {
    margin-top: calc(43 / 780 * 100vw);
    font-size: calc(30 / 780 * 100vw);
  }
}

/* トップに戻るボタン */
.gotop {
  display: block;
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #999;
  border-radius: 50%;
  padding-top: 30px;
  text-indent: -9999px;
  opacity: 0.5;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}

.gotop::before {
  content: "";
  display: block;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  width: 15px;
  height: 15px;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -25%) rotate(-45deg);
}

.gotop:hover {
  opacity: 1;
}

@media (max-width: 640px) {
  .gotop {
    width: 40px;
    height: 40px;
    bottom: 100px;
    right: 10px;
  }
}

/* FAQ */
#faq {
  padding-block: calc(75 / 1920 * 100vw) calc(120 / 1920 * 100vw);
  font-family: "Noto Sans JP", serif;
}

.faq-list {
  padding-top: calc(62 / 1920 * 100vw);

  > li {
    margin-top: 24px;

    &:first-child {
      margin-top: 0;
    }
  }
}

.details {
  box-shadow: 2px 2px 2px 1px rgba(50, 129, 184, 0.5);
  border-radius: 8px;
  &[open] {
    .summary {
      border-radius: 8px 8px 0 0;

      &::after {
        /*矢印*/
        transform: translateY(-50%) rotate(225deg);
      }
    }
  }
}

.summary {
  position: relative;
  padding: calc(32 / 1920 * 100vw)
    calc((86 / 1920 * 100vw) + (70 / 1920 * 100vw)); /*左のpadding+Qの横幅分*/
  background-color: var(--color-main);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: clamp(12px, 24 / 1920 * 100vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  list-style: none; /*summaryのデフォルト矢印を消す*/
  text-align: left;

  &::before {
    content: "Q";
    position: absolute;
    top: 50%;
    left: calc(86 / 1920 * 100vw);
    transform: translateY(-50%);
    font-size: calc(32 / 1920 * 100vw);
    font-weight: 600;
  }

  &::after {
    /*矢印*/
    content: "";
    position: absolute;
    top: 50%;
    right: calc(86 / 1920 * 100vw);
    transform: translateY(-50%) rotate(45deg);
    width: calc(20 / 1920 * 100vw);
    height: calc(20 / 1920 * 100vw);
    border-bottom: solid calc(6 / 1920 * 100vw) #fff;
    border-right: solid calc(6 / 1920 * 100vw) #fff;
    transition: transform 250ms ease;
  }
}

summary::-webkit-details-marker {
  display: none;
}

.details__answer {
  /*grid-template-rowsで高さを可変にする*/
  display: grid;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
  transition: 250ms grid-template-rows ease;
}

.details__inner {
  overflow: hidden;
}

.details__txt {
  position: relative;
  padding: calc(32 / 1920 * 100vw)
    calc((86 / 1920 * 100vw) + (70 / 1920 * 100vw)); /*左のpadding+Aの横幅分*/
  font-size: clamp(10px, 24 / 1920 * 100vw, 24px);
  text-align: justify;

  &::before {
    content: "A";
    position: absolute;
    top: calc(32 / 1920 * 100vw);
    left: calc(86 / 1920 * 100vw);
    font-size: calc(32 / 1920 * 100vw);
    font-weight: 600;
    color: var(--color-main);
  }
}

/*SP版faq*/
@media screen and (max-width: 640px) {
  .faq-list {
    padding-inline: calc(40 / 780 * 100vw);
  }

  .summary {
    padding: calc(40 / 780 * 100vw)
      calc((20 / 780 * 100vw) + (66 / 780 * 100vw)); /*左のpadding+Qの横幅分*/
    font-size: calc(32 / 780 * 100vw);
    text-align: left;
    white-space: nowrap; /*任意の場所で改行*/
    word-break: keep-all; /*任意の場所で改行*/

    &::before {
      /*Q*/
      top: calc(40 / 780 * 100vw); /*paddingに合わせる*/
      left: calc(20 / 780 * 100vw);
      transform: translateY(0);
      font-size: calc(60 / 780 * 100vw);
      line-height: 1;
    }

    &::after {
      /*矢印*/
      top: 50%;
      width: calc(20 / 780 * 100vw);
      height: calc(20 / 780 * 100vw);
      border-width: calc(6 / 780 * 100vw);
    }
  }

  .details__txt {
    padding: calc(40 / 780 * 100vw)
      calc((20 / 780 * 100vw) + (66 / 780 * 100vw)); /*左のpadding+Qの横幅分*/
    padding-right: calc(58 / 780 * 100vw);
    font-size: calc(36 / 780 * 100vw);

    &::before {
      top: calc(40 / 780 * 100vw);
      left: calc(20 / 780 * 100vw);
      transform: translateY(0);
      font-size: calc(60 / 780 * 100vw);
      line-height: 1;
    }
  }
}

/* PC版フォーム */
#formWrap {
  width: 100%;
  margin: 0 auto;
  color: #555;
  line-height: 120%;
  font-size: 90%;
  background-color: #fff;
  overflow: hidden;
}

table.formTable {
  width: 40%;
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: 10px;
}

table.formTable td,
table.formTable th {
  border: 1px solid #ccc;
  padding: 15px;
  vertical-align: top;
}

table.formTable th {
  width: 25%;
  font-weight: bold;
  background: #f7f7f7;
  text-align: left;
}

table.formTable td {
  width: 30%;
  font-weight: normal;
  background: #fff;
  text-align: left;
}

table.formTable input::placeholder {
  color: #a3a3a3;
  opacity: 0.5;
}

table.formTable span {
  text-align: center;
  padding: 0 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 5px;
  background-color: #eb6100;
}

.note {
  font-weight: 300;
  margin-top: 5px;
  font-size: 0.9em;
  color: #666;
}

.privacy-notice {
  text-align: center;
  padding: 10px;
  color: #555;
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0;
  line-height: 1.6;
}

.submit-button {
  background: transparent;
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 30px;
  width: 30%;
}

.submit-button img {
  width: 100%;
  margin-inline: 0;
}

form input[type="text"],
form textarea {
  width: 95%;
  height: 50px;
  padding: 10px;
  font-size: 110%;
  display: block;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

form textarea {
  height: 150px;
}

/*　スマホ用フォーム（*/
@media screen and (max-width: 640px) {
  table.formTable {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    margin-right: 5px;
    border-collapse: collapse;
    align-items: center;
  }

  table.formTable th,
  table.formTable td {
    width: 85%;
    display: block;
  }

  table.formTable th {
    margin-top: 0;
    border-bottom: 0;
  }

  form input[type="text"],
  form textarea {
    width: 95%;
    padding: 5px;
    font-size: 110%;
    display: block;
  }

  .submit-button {
    width: 50%;
    padding: 0;
  }

  .submit-button img {
    height: auto;
    margin-bottom: 20px;
    margin-top: 0;
  }

  form input[type="reset"],
  form input[type="button"] {
    display: block;
    width: 100%;
    height: 40px;
  }

  .privacy-notice {
    text-align: center;
    padding: 10px;
    color: #555;
    font-size: 12px;
    font-weight: bold;
    margin-top: 20px;
    line-height: 1.6;
    margin-bottom: 0;
  }
}

/*　タブレット用フォーム*/
@media screen and (min-width: 641px) and (max-width: 1024px) {
  table.formTable {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    margin-right: 5px;
    border-collapse: collapse;
    align-items: center;
  }

  table.formTable th,
  table.formTable td {
    width: 85%;
    display: block;
  }

  table.formTable th {
    margin-top: 0;
    border-bottom: 0;
  }

  form input[type="text"],
  form textarea {
    width: 95%;
    padding: 5px;
    font-size: 110%;
    display: block;
  }

  .submit-button {
    padding: 0;
  }

  .submit-button img {
    height: auto;
    margin-bottom: 20px;
    margin-top: 0;
  }

  form input[type="reset"],
  form input[type="button"] {
    display: block;
    width: 100%;
    height: 40px;
  }
}

/* フッター */
footer {
  background-color: #009999;
  text-align: center;
  padding: 16px 0;
  color: #ffffff;
  font-size: 90%;
  width: 100%;
  z-index: 999;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  color: #1997d1;
}

footer a:visited {
  color: #fff;
}

@media screen and (max-width: 640px) {
  footer {
    font-size: 12px;
    z-index: 900;
    padding-bottom: 116px;
  }

  body:not(.thanks-message) footer {
    padding-bottom: 200px;
  }
}

/* サンクスメッセージ */
.thanks-message {
  text-align: center;
  padding: 50px 20px;
  background-color: #eefcfc;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 50px auto;
}

.thanks-message h1 {
  font-size: 2.5em;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  animation: fadeIn 1s ease-in-out;
}

.thanks-message p {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
  animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*企業情報*/
#company-info {
  padding-block: calc(60 / 1920 * 100vw) calc(120 / 1920 * 100vw);

  .sec-ttl {
    margin-top: calc(30 / 1920 * 100vw);
  }
}

.company-info__lead {
  width: calc(490 / 1920 * 100vw);
  margin-top: calc(43 / 1920 * 100vw);
}

.company-info__inner {
  padding-inline: calc(36 / 1920 * 100vw);
  padding-bottom: calc(60 / 1920 * 100vw);
  background-color: #fff;
}

.company {
  margin-top: calc(30 / 1920 * 100vw);
  font-size: calc(24 / 1920 * 100vw);
  text-align: left;
}

.company__item {
  display: flex;
  align-items: center;
  gap: calc(30 / 1920 * 100vw);
  padding: calc(20 / 1920 * 100vw) calc(90 / 1920 * 100vw);

  &:nth-child(odd of .company__item) {
    background-color: rgba(2, 164, 165, 0.1);
  }

  &:nth-child(even of .company__item) {
    background-color: rgba(229, 229, 229, 0.3);
  }

  dt {
    width: 25%;
    font-weight: 600;
  }

  dd {
    width: 75%;
  }
}

@media screen and (max-width: 640px) {
  .company {
    width: 100%;
    margin-top: calc(65 / 780 * 100vw);
    font-size: calc(36 / 780 * 100vw);
  }

  .company__item {
    gap: calc(40 / 780 * 100vw);
    padding: calc(35 / 780 * 100vw) 0 calc(35 / 780 * 100vw)
      calc(19 / 780 * 100vw);
  }

  .small {
    font-size: calc(30 / 780 * 100vw);
  }
}
