/*
 * TSS RFID Room
 * 利用シーン目次ページ
 * scene-common.cssに対するページ固有スタイル
 */

/* ==========================================================================
   1. メインビジュアル
   ========================================================================== */

.scene-index-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #1f2536;
}

.scene-index-hero__background,
.scene-index-hero__overlay {
  position: absolute;
  inset: 0;
}

.scene-index-hero__background {
  background-image: url("img/index/hero-scene-index.webp");
  background-position: center;
  background-size: contain;
  transform: scale(1.01);
}

.scene-index-hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(25, 31, 48, .98) 0%,
      rgba(25, 31, 48, .91) 36%,
      rgba(25, 31, 48, .58) 65%,
      rgba(25, 31, 48, .1) 100%
    );
}

.scene-index-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 66px;
  padding-bottom: 66px;
}

.scene-index-hero h1 {
  max-width: auto;
  margin: 0 0 24px !important;
  color: #fff !important;
  font-size: 48px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
}

.scene-index-hero p {
  max-width: auto;
  margin: 0 !important;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1.9 !important;
}

/* ==========================================================================
   2. 冒頭説明
   ========================================================================== */

.scene-index-intro__copy {
  margin: 0 auto 70px !important;
  text-align: center;
  font-size: 22px !important;
  line-height: 1.9 !important;
  font-weight: 500;
  letter-spacing: .04em;
}

/* ==========================================================================
   3. 利用シーン一覧
   ========================================================================== */

.scene-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.scene-index-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  min-height: 150px;
  overflow: hidden;
  background: #f0f2f5;
  color: #1f2536 !important;
  text-decoration: none !important;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
  border-radius: 8px;
}

.scene-index-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 37, 54, .13);
}

.scene-index-card__image {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #d9dde4;
}

.scene-index-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform .35s ease;
}

.scene-index-card:hover .scene-index-card__image img {
  transform: scale(1.04);
}

.scene-index-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 18px 14px;
}

.scene-index-card h3 {
  margin: 0 0 8px !important;
  color: #1f2536 !important;
  font-size: 22px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
}

.scene-index-card p {
  margin: 0 0 12px !important;
  color: #4f5561;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.scene-index-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.scene-index-card__tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 9px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  background: #fff;
  color: #555c69;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
}

/* ==========================================================================
   4. 他の選び方
   ========================================================================== */

.scene-index-other {
  padding: 72px 0 78px;
  background:
    radial-gradient(circle at 10% 30%, rgba(211, 190, 109, .42), transparent 35%),
    radial-gradient(circle at 88% 28%, rgba(255, 247, 205, .85), transparent 37%),
    linear-gradient(90deg, #cfc497 0%, #f4ebc6 50%, #fff9e3 100%);
}

.scene-index-other__banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.scene-index-other__banner {
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 37, 54, .12);
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.scene-index-other__banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(31, 37, 54, .17);
}

.scene-index-other__banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   5. 下部CTA
   ========================================================================== */

.scene-index-page #sub-nav-cta-bottom {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3em 0;
  background: var(--grad-surface);
}

.scene-index-page #sub-nav-cta-bottom .cta_buttons ul.buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: .75em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene-index-page #sub-nav-cta-bottom .cta_buttons ul.buttons > li {
  margin: 0;
  list-style: none;
}

.scene-index-page #sub-nav-cta-bottom .cta_buttons .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-width: 280px;
  height: 2.5em;
  padding: 2em;
  border-radius: 6px;
  font-size: 1.5em;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-decoration: none;
  box-sizing: border-box;
}

.scene-index-page #sub-nav-cta-bottom .icon_wrap {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
}

.scene-index-page #sub-nav-cta-bottom .text_wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
  text-align: left;
}

.scene-index-page #sub-nav-cta-bottom .main_text {
  font-size: .95em;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
}

.scene-index-page #sub-nav-cta-bottom .sub_text {
  font-size: .8em;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: .5px;
  opacity: .8;
  white-space: nowrap;
}


/* ==========================================================================
   6. Responsive
   ========================================================================== */

@media screen and (max-width: 1279px) {
  .scene-index-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .scene-index-card h3 {
    font-size: 19px !important;
  }

  .scene-index-card p {
    font-size: 14px !important;
  }
}

@media screen and (max-width: 979px) {
  .scene-index-hero__background {
    background-size: cover;
  }

  .scene-index-hero__content {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .scene-index-hero h1 {
    font-size: 39px !important;
  }

  .scene-index-hero p,
  .scene-index-intro__copy {
    font-size: 16px !important;
  }

  .scene-index-hero__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(25, 31, 48, .97) 0%,
        rgba(25, 31, 48, .88) 58%,
        rgba(25, 31, 48, .48) 100%
      );
  }

  .scene-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-index-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .scene-index-other__banners {
    gap: 18px;
  }
}

@media screen and (max-width: 736px) {
  .scene-index-hero__content {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .scene-index-hero h1 {
    font-size: 28px !important;
  }

  .scene-index-hero p,
  .scene-index-intro__copy {
    font-size: 14px !important;
  }

  .scene-index-hero p br,
  .scene-index-intro__copy br {
    display: none;
  }

  .scene-index-intro__copy {
    margin-bottom: 52px !important;
  }

  .scene-index-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .scene-index-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 132px;
  }

  .scene-index-card__image img {
    min-height: 132px;
  }

  .scene-index-card__body {
    padding: 15px 14px 12px;
  }

  .scene-index-card h3 {
    font-size: 18px !important;
  }

  .scene-index-card p {
    font-size: 13px !important;
  }

  .scene-index-other {
    padding: 56px 0;
  }

  .scene-index-other__banners {
    grid-template-columns: 1fr;
  }

  .scene-index-page #sub-nav-cta-bottom .cta_buttons .button {
    min-width: 230px;
    padding: 2em 1em;
    font-size: 1em;
  }
}

@media screen and (max-width: 480px) {
  .scene-index-page #sub-nav-cta-bottom .cta_buttons ul.buttons {
    flex-direction: column;
  }

  .scene-index-page #sub-nav-cta-bottom .cta_buttons .button {
    width: 100%;
    min-width: 280px;
  }
}
