@charset "utf-8";
/* ---------------------- main -------------------------------- */

main {
  background-color: #f1f8ff;
  > .pageTitle {
    color: #132f56;
    display: grid;
    gap: 32px 0;
    width: 42.5%;
    padding-top: 64px;
    text-align: center;
    margin-inline: auto;
    > .ribbon {
      font-size: clamp(12px, 1.66vw, 32px);
      font-weight: bold;
      --r: 0.8em; /* control the ribbon shape */
      padding-inline: calc(var(--r) + 0.3em);
      line-height: 1.8;
      clip-path: polygon(
        0 0,
        100% 0,
        calc(100% - var(--r)) 50%,
        100% 100%,
        0 100%,
        var(--r) 50%
      );
      background-color: #8fd7ff;
    }
    > p {
      font-size: clamp(10px, 0.833vw, 16px);
      line-height: 24px;
    }
  }
}

section {
  margin-inline: auto;
  padding: 32px 0;
}

.mainContactBar {
  background-color: white;
  container: cq-mainContactBar / inline-size;
  padding: 42px 0;
  > .barContent {
    width: 73.95%;
    display: grid;
    gap: 16px 0;
    margin-inline: auto;
    margin-bottom: 32px;
    > h2 {
      color: #132f56;
      font-size: clamp(19px, 1.66vw, 32px);
      text-align: center;
    }
    > .contactBox {
      display: flex;
      justify-content: center;
      gap: 32px;
      > a {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
      }
      > .phone {
        width: 32.18%;
        color: #6dc300;
        > img {
          width: 19.25%;
        }
        > div {
          > p {
            &:first-of-type {
              font-size: clamp(32px, 2.5vw, 48px);
              font-weight: 700;
            }
            &:nth-of-type(2) {
              position: relative;
              font-size: clamp(14px, 1.25vw, 24px);
              &::after {
                position: absolute;
                top: 100%;
                left: 0;
                content: "(定休日) 日・祝";
                font-size: clamp(14px, 1.25vw, 24px);
              }
            }
          }
        }
      }
      > .mail {
        width: 26.47%;
        background-color: #6dc300;
        color: white;
        border-radius: 6px;
        padding: 16px 48px;
        font-size: clamp(15px, 1.25vw, 24px);
        > img {
          min-width: 20px;
          width: 11.7%;
        }
      }
    }
  }
}
@container cq-mainContactBar (width < 900px) {
  .mainContactBar {
    > .barContent {
      margin-bottom: 0;
      > .contactBox {
        display: grid;
        > .phone,
        > .mail {
          width: 100%;
        }
      }
    }
  }
}

.mainLinkSection {
  padding: 128px 0;
  > .linkButtonBox {
    display: flex;
    justify-content: center;
    gap: 36px;
    > a {
      position: relative;
      width: 20%;
      padding: 8px 24px;
      border-radius: 100vmax;
      color: white;
      font-size: clamp(10px, 0.9375vw, 18px);
      font-weight: 600;
      text-align: center;
      &::after {
        position: absolute;
        content: "→";
        right: 12px;
      }
    }
    > .exampleButton {
      background-color: #8c67c7;
    }
    > .priceButton {
      background-color: #c767a1;
    }
  }
}

.rentalFlowSection {
  width: 73.95%;
  display: grid;
  gap: 32px 0;
  > .rentalFlowCards {
    display: grid;
    justify-content: center;
    gap: 32px 0;
    padding: 32px;
    > h2 {
      width: fit-content;
      margin-inline: auto;
      color: #132f56;
      font-size: clamp(16px, 1.66vw, 32px);
      font-weight: 700;
    }
    > .flowCard:has(.flowWithContact) {
      align-items: center;
      > .flowWithContact {
        container: cq-flowWithContact / inline-size;
        width: 63%;
        display: grid;
        gap: 32px 0;
        > p {
          font-size: clamp(10px, 0.83vw, 16px);
          line-height: 32px;
        }
        > .contactBox {
          display: flex;
          gap: 0 32px;
          > a {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
          }
          > .phone {
            color: #6dc300;
            > img {
              width: 19.25%;
            }
            > div {
              > p {
                &:first-of-type {
                  font-size: clamp(32px, 2.5vw, 48px);
                  font-weight: 700;
                }
                &:nth-of-type(2) {
                  position: relative;
                  font-size: clamp(14px, 1.25vw, 24px);
                  &::after {
                    position: absolute;
                    top: 100%;
                    left: 0;
                    content: "(定休日) 日・祝";
                    font-size: clamp(14px, 1.25vw, 24px);
                  }
                }
              }
            }
          }
          > .mail {
            background-color: #6dc300;
            color: white;
            border-radius: 6px;
            padding: 16px 48px;
            font-size: clamp(12px, 1.25vw, 24px);
            > img {
              min-width: 20px;
              width: 11.7%;
            }
          }
        }
      }
    }
    > .flowCard {
      display: flex;
      gap: 0 36px;
      > img {
        width: 37%;
        max-width: 297px;
      }
      > p {
        font-size: clamp(10px, 0.83vw, 16px);
        line-height: 32px;
        padding: 16px;
      }
    }
    > img {
      width: 6.338%;
      margin-inline: auto;
    }
  }
}
@container cq-flowWithContact (width < 500px) {
  .rentalFlowSection {
    > .rentalFlowCards {
      > .flowCard:has(.flowWithContact) {
        .flowWithContact {
          > .contactBox {
            display: grid;
            justify-content: center;
            gap: 32px 0;
            > .phone,
            > .mail {
              width: 100%;
            }
          }
        }
      }
    }
  }
}

/* --------------------- マウスホバー ---------------------- */
/* transition */
:is(.phone, .mail).hoverScale {
  transition: scale 0.3s;
}
.linkButtonBox.hoverBgColor {
  > a {
    transition: opacity 0.3s;
  }
}
/*  */
@media (any-hover: hover) {
  :is(.phone, .mail).hoverScale:hover {
    scale: 1.05;
  }
  .linkButtonBox.hoverBgColor {
    > a:hover {
      opacity: 0.8;
    }
  }
}

/* メディアクエリ ////////////////////////////////*/
@media (width <= 520px) {
  main {
    background-color: revert;
    > .pageTitle {
      gap: 32px 0;
      width: 85%;
      padding-top: 32px;
    }
  }

  .mainContactBar:not(:last-child) {
    display: none;
  }
  .mainLinkSection {
    display: none;
  }
  .rentalFlowSection {
    width: 100%;
    > .rentalFlowCards {
      padding: 16px;
      > .flowCard:has(.flowWithContact) {
        > .flowWithContact {
          width: 100%;
          gap: 16px 0;
          > p {
            padding: 16px;
            line-height: 20px;
          }
          > .contactBox {
            display: grid;
            gap: 32px 0;
          }
        }
      }
      > .flowCard {
        display: grid;
        place-items: center;
        gap: 8px 0;
        > img {
          width: 50%;
        }
        > p {
          line-height: 20px;
        }
      }
    }
  }
}
