@import url("./components/event-cards.css");

/**
* PC CSS
* roomのスタイル
*/
#room {
  .toc-container {
    margin: 0 auto clamp(2.188rem, 1.25rem + 4vw, 3.75rem);
    max-width: 680px;
  }

  .room-early-search__description {
    span {
      color: var(--color-sub-pink);
      font-weight: 700;
    }
  }

  .room-early-search__links {
    .room-early-search__link {
      align-items: center;
      border-radius: 9999px;
      color: #fff;
      display: grid;
      font-size: clamp(1rem, 0.925rem + 0.32vw, 1.125rem);
      font-weight: 700;
      grid-template-columns: 1fr auto;
      min-height: 60px;
      text-align: center;

      &.room-early-search__link--komaba {
        background-color: var(--color-sub-pink);
      }

      &.room-early-search__link--utcoop {
        background-color: var(--color-main);
      }
    }
  }

  .room-search-points__title {
    color: var(--color-primary);
    font-size: var(--font-size-h1);
    font-weight: 700;
    text-align: center;
  }

  .room-search-points__map {
    figcaption {
      font-size: var(--font-size-h3);
      font-weight: 700;
    }
  }

  .room-search-points__map-image {
    display: block;
    height: auto;
    width: 100%;
  }

  .room-search-data__image-asset {
    height: auto;
  }

  .room-type-comparison__scroll-guide {
    text-align: center;

    img {
      width: 104.2px;
    }
  }

  .room-type-comparison__table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
      height: 4px;
    }

    &::-webkit-scrollbar-track {
      background: #eee;
    }

    &::-webkit-scrollbar-thumb {
      background: #aaa;
      border: none;
    }

    &::-webkit-scrollbar-thumb:hover {
      background: #999;
    }
  }

  .room-type-comparison__table {
    border: 1px solid #777;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(0.75rem, 0.675rem + 0.32vw, 0.875rem);
    min-width: 720px;
    table-layout: fixed;
    width: 720px;

    th,
    td {
      background-color: #fff;
      border: 0;
      border-left: 1px solid #777;
      border-top: 1px solid #777;
      line-height: 1.45;
      padding: 1rem 0.75rem !important;
      vertical-align: middle;
    }

    thead th {
      border-top: 0;
    }

    tr > :first-child {
      border-left: 0;
    }

    thead th{
      background-color: #179ebc;
      color: #fff;
      font-size: var(--font-size-base);
      text-align: center;
    }

    th:not(.room-type-comparison__row-heading),
    td {
      min-width: 210px;
    }

    .room-type-comparison__row-heading {
      box-sizing: border-box;
      isolation: isolate;
      left: 0;
      max-width: 90px;
      min-width: 90px;
      position: sticky;
      text-align: center;
      width: 90px;
      z-index: 2;

      &::after {
        background-color: #777;
        content: "";
        height: 100%;
        position: absolute;
        right: -1px;
        top: 0;
        width: 1px;
        z-index: 1;
      }
    }

    .room-type-comparison__row-heading + th,
    .room-type-comparison__row-heading + td {
      border-left: 0;
    }

    thead .room-type-comparison__row-heading {
      z-index: 3;
    }
  }

  @media (min-width: 768px) {
    .room-type-comparison__scroll-guide {
      display: none;
    }

    .room-type-comparison__table {
      min-width: 0;
      table-layout: fixed;
      width: 100%;

      th:not(.room-type-comparison__row-heading),
      td {
        min-width: 0;
      }

      .room-type-comparison__row-heading {
        max-width: none;
        min-width: 0;
        width: 14%;
      }
    }
  }

  .room-decision-timing__reservation {
    align-items: center;
    background-color: var(--color-sub-pink);
    border-radius: 9999px;
    color: #fff;
    display: grid;
    font-size: var(--font-size-h4);
    font-weight: 700;
    grid-template-columns: 1fr auto;
    max-width: 520px;
    min-height: 60px;
    text-align: center;
    width: 100%;
  }

  .room-decision-timing__note {
    line-height: 1.6;
  }

  .room-preparation-links__accordion {
    border: 1px solid var(--color-main);

    summary {
      align-items: center;
      background-color: var(--color-main);
      color: #fff;
      cursor: pointer;
      display: flex;
      font-size: var(--font-size-h4);
      font-weight: 700;
      justify-content: space-between;
      list-style: none;
      padding: 1rem 3.5rem 1rem 1.25rem;
      position: relative;

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

      &::before,
      &::after {
        background-color: #fff;
        content: "";
        height: 2px;
        position: absolute;
        right: 1.25rem;
        top: 50%;
        width: 1rem;
      }

      &::after {
        rotate: 90deg;
        transition: rotate 0.3s;
      }
    }

    &[open] summary::after {
      rotate: 0deg;
    }
  }

  .room-preparation-links__item {
    h6 {
      align-items: center;
      color: var(--color-main);
      display: flex;
      font-size: var(--font-size-h4);
      font-weight: 700;
      gap: 0.75rem;

      span {
        align-items: center;
        background-color: var(--color-sub-yellow);
        border-radius: 50%;
        color: var(--color-primary);
        display: inline-flex;
        flex: 0 0 2.5rem;
        height: 2.5rem;
        justify-content: center;
      }
    }

    p {
      line-height: 1.7;
    }

    .room-preparation-links__emphasis {
      color: var(--color-sub-pink);
      font-weight: 700;
    }

    .site-btn {
      max-width: 100%;
    }
  }

  .room-consultation__intro {
    line-height: 1.9;
  }

  .room-consultation__notes {
    font-size: var(--font-size-small);

    p {
      line-height: 1.7;
    }
  }

  .room-consultation__schedule-title {
    color: var(--color-main);
    font-weight: 700;
  }

  .room-consultation__gallery-item {
    figcaption {
      font-size: var(--font-size-small);
      font-weight: 400;
      text-align: center;
    }
  }

  .room-consultation__gallery-image {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
  }

  .event-container {
    margin-bottom: 50px;

    .event-container__content {
      display: grid;
      grid-template-columns: repeat(
        auto-fit,
        minmax(
          calc(370px - (clamp(0.938rem, -2.25rem + 13.6vw, 6.25rem) * 2)),
          1fr
        )
      );
      gap: 0 1.25rem;

      .event-container__bordered-section {
        border: 2px solid var(--color-main);
        border-radius: 15px;
        margin-bottom: 30px;
        padding: 42px 16px 16px;
        position: relative;

        .event-container__bordered-section-title {
          background-color: var(--color-main);
          border-radius: 13px 13px 0 0;
          color: #fff;
          text-align: center;
          padding: 0 0 6px;
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
        }
      }

      /* .event-container__bordered-section */
    }

    /* .event-container__content */
  }

  /* .event-container */
}

/* ---------- 外部サイトリンクボタン2(カラーバリエーションあり) ---------- */
.btn--outsite {
  /* background: var(--color-sub-yellow); */
  border-radius: 9999px !important;
  /* color: var(--color-primary); */
  cursor: pointer;
  display: grid;
  place-content: center;
  padding: 12px 0;
  margin: auto;
  width: 100%;

  span {
    display: grid;
    font-size: var(--font-size-base);
    font-weight: 700;
    text-align: center;
    grid-template-columns: auto 1rem;
    gap: 1rem;

    &:after {
      content: "\f08e";
      font-family: "Font Awesome 6 Free";
      display: block;
    }
  }

  &.btn--outsite--primary {
    background: var(--color-primary);
  }

  &.btn--outsite--main {
    background: var(--color-main) !important;
    color: #fff !important;
  }

  &.btn--outsite--sub-yellow {
    background: var(--color-sub-yellow);
    color: var(--color-primary);
  }

  &.btn--outsite--sub-green {
    background: var(--color-sub-green);
  }

  &.btn--outsite--sub-pink {
    background: var(--color-sub-pink);
    color: var(--color-primary);
  }

  &.btn--outsite--sub-deeppink {
    background: var(--color-sub-deeppink);
    color: var(--color-primary);
  }

  &.btn--outsite--sub-purple {
    background: var(--color-sub-purple);
  }

  &:hover {
    color: #fff;
  }
}
