/*
 * page-facility.css
 * 施設紹介ページ
 * TOPページのトンマナに合わせた固定ページ用CSS
 */

.om-facility-page {
  background:
    radial-gradient(circle at 8% 12%, rgba(126, 200, 246, .08), transparent 20%),
    radial-gradient(circle at 92% 18%, rgba(245, 138, 173, .08), transparent 18%),
    #ffffff !important;
}

.om-sub-hero {
  position: relative;
  padding: 70px 0 34px;
}

.om-sub-hero__inner {
  position: relative;
  z-index: 3;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 40px;
  padding: 48px 56px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 92% 18%, rgba(126, 200, 246, .14), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(245, 138, 173, .12), transparent 24%),
    linear-gradient(120deg, #ffffff 0%, #f0fbff 55%, #fff7fb 100%);
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: 0 14px 34px rgba(116, 88, 63, .08);
  overflow: hidden;
}

.om-sub-hero__label {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #55aee2;
  background: #eaf8ff;
  border: 1px solid rgba(126, 200, 246, .22);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
}

.om-sub-hero h1 {
  margin: 0 0 16px;
  color: #4b372e;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .04em;
}

.om-sub-hero__copy p:not(.om-sub-hero__label) {
  margin: 0;
  color: #66564c;
  font-weight: 800;
  line-height: 2;
}

.om-sub-hero__deco {
  position: relative;
  min-height: 190px;
}

.om-sub-deco {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  animation: omSoftBob 5.2s ease-in-out infinite alternate;
}

.om-sub-deco--note {
  right: 48px;
  top: 20px;
  width: 116px;
  height: 116px;
  color: #55aee2;
  background: #eaf8ff;
  font-size: 66px;
}

.om-sub-deco--heart {
  left: 34px;
  bottom: 22px;
  width: 78px;
  height: 78px;
  color: #ee729c;
  background: #fff1f6;
  font-size: 44px;
  animation-delay: -.8s;
}

.om-sub-deco--circle {
  right: 152px;
  bottom: 10px;
  width: 56px;
  height: 56px;
  background: #ffd95b;
  opacity: .72;
  animation-delay: -1.4s;
}

.om-facility-section {
  padding-top: 28px;
  padding-bottom: 72px;
}

.om-facility-card {
  position: relative;
  z-index: 3;
  margin: 0 0 30px;
  padding: 32px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.om-facility-card::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 134px;
  height: 134px;
  border-radius: 999px;
  background: rgba(126, 200, 246, .13);
  pointer-events: none;
}

.om-facility-card:nth-of-type(even)::before {
  background: rgba(245, 138, 173, .12);
}

.om-facility-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}

.om-facility-heading__icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #55aee2;
  background: #eaf8ff;
  font-size: 27px;
  font-weight: 900;
  animation: omSoftBob 5.2s ease-in-out infinite alternate;
}

.om-facility-card:nth-of-type(even) .om-facility-heading__icon {
  color: #ee729c;
  background: #fff1f6;
}

.om-facility-heading p {
  margin: 0 0 2px;
  color: #55aee2;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .16em;
}

.om-facility-card:nth-of-type(even) .om-facility-heading p {
  color: #ee729c;
}

.om-facility-heading h3 {
  margin: 0;
  color: #4b372e;
  font-size: 25px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .04em;
}

.om-facility-photo-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
}

.om-facility-photo-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.om-facility-photo-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 830px;
}

.om-facility-photo-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 1 / .78;
  border-radius: 46px;
  background: #f3f0eb;
  box-shadow: 0 10px 24px rgba(116, 88, 63, .10);
}

.om-facility-photo-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 38px;
  border: 2px solid rgba(255, 255, 255, .75);
  pointer-events: none;
}

.om-facility-photo-card img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
}

@media (hover: hover) {
  .om-facility-photo-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.04);
  }
}

.om-facility-group {
  position: relative;
  z-index: 2;
  margin: 0 0 34px;
  padding: 26px;
  border-radius: 26px;
  border: 1px solid rgba(240, 232, 223, .88);
}

.om-facility-group:last-child {
  margin-bottom: 0;
}

.om-facility-group--otonomori {
  background:
    radial-gradient(circle at 96% 12%, rgba(126, 200, 246, .14), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #f0fbff 100%);
}

.om-facility-group--ainomori {
  background:
    radial-gradient(circle at 96% 12%, rgba(245, 138, 173, .14), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fff7fb 100%);
}

.om-facility-group h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #4b372e;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: .04em;
}

.om-facility-group h4 span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 26px;
  font-weight: 900;
}

.om-facility-group--otonomori h4 span {
  color: #55aee2;
  background: #eaf8ff;
}

.om-facility-group--ainomori h4 span {
  color: #ee729c;
  background: #fff1f6;
}

.om-facility-cta {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: center;
  margin: 38px auto 0;
  padding: 26px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 50%, rgba(126, 200, 246, .13), transparent 20%),
    linear-gradient(90deg, #ffffff 0%, #f0fbff 55%, #fff7fb 100%);
  border: 1px solid rgba(240, 232, 223, .88);
  box-shadow: var(--shadow);
}

.om-facility-cta > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.om-facility-cta__icon {
  display: grid;
  place-items: center;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  color: #ee729c;
  background: #fff1f6;
  font-size: 34px;
  font-weight: 900;
}

.om-facility-cta p {
  margin: 0;
  color: #5b4b42;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.8;
}

.om-facility-page .om-cta__btn {
  background: linear-gradient(180deg, #7ec8f6 0%, #55aee2 100%) !important;
  box-shadow: 0 10px 22px rgba(85, 174, 226, .20) !important;
}

@media (max-width: 1180px) {
  .om-sub-hero__inner,
  .om-facility-cta {
    grid-template-columns: 1fr;
  }

  .om-sub-hero__deco {
    display: none;
  }

  .om-facility-photo-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .om-sub-hero {
    padding: 34px 0 24px;
  }

  .om-sub-hero__inner {
    padding: 32px 22px;
    border-radius: 26px;
  }

  .om-sub-hero h1 {
    font-size: 32px;
  }

  .om-facility-card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .om-facility-heading {
    align-items: flex-start;
  }

  .om-facility-heading__icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .om-facility-heading h3 {
    font-size: 22px;
  }

  .om-facility-photo-grid--3,
  .om-facility-photo-grid--2 {
    grid-template-columns: 1fr;
  }

  .om-facility-photo-card {
    border-radius: 34px;
  }

  .om-facility-photo-card::after {
    border-radius: 27px;
  }

  .om-facility-group {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .om-facility-group h4 {
    font-size: 20px;
  }

  .om-facility-cta {
    padding: 22px 16px;
  }

  .om-facility-cta > div {
    align-items: flex-start;
  }

  .om-facility-cta .om-cta__btn {
    max-width: none;
  }
}


/* ========================================
   Facility image URL replace / fit 2026052231
   施設紹介の画像差し替え後、枠いっぱいに中央表示
======================================== */
.om-facility-page .om-facility-photo-card img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}
