/*
 * 院内紹介ページ - PC用（769px以上）
 */

/* ========================================
   Facility Gallery Section（院内紹介）
   ======================================== */
.facility-gallery {
  margin-top: 80px;
  padding: 80px 0 120px;
  background: var(--color-bg);
}

.facility-gallery__inner {
  width: calc(100% - 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.facility-gallery__title {
  font-size: 28px;
  letter-spacing: 0.1em;
  line-height: 2;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0px;
}

.description_text {
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 2;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
}

.facility-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.facility-gallery__item {
  display: flex;
  flex-direction: column;
  background: #f9f9f9;
}

.facility-gallery__item .text-box{
  padding: 10px 10px 20px 10px;
}

.facility-gallery__image {
  position: relative;
  width: 100%;
  padding-top: 67.1875%; /* 43/64 = 0.671875 -> 64:43のアスペクト比 */
  overflow: hidden;
}

.facility-gallery__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-gallery__item-title {
  font-size: 18px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 12px;
}

.facility-gallery__item-text {
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.facility-gallery__item-text::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  display: block;
  width: 80px;
  height: 2px;
  background: #e9e4dd;
}
.facility-gallery__item-text::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -10px;
  left: 0;
  display: block;
  width: 20px;
  height: 2px;
  background: #cab596;
}

/* 画像クリックカーソル */
.facility-gallery__image {
  cursor: pointer;
}

/* ========================================
   Lightbox（ライトボックス）
   ======================================== */
.facility-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.facility-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.facility-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(238, 230, 218, 0.85);
}

.facility-lightbox__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facility-lightbox__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

.facility-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.facility-lightbox__close-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  background: #333;
  transform-origin: center;
}

.facility-lightbox__close-line:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.facility-lightbox__close-line:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.facility-lightbox__close:hover .facility-lightbox__close-line {
  background: #666;
}

.facility-lightbox__image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.facility-lightbox__image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.facility-lightbox__info {
  margin-top: 20px;
  color: #333;
  max-width: 800px;
}

.facility-lightbox__title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.facility-lightbox__text {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

/* ナビゲーション矢印 */
.facility-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  /* background: rgba(0, 0, 0, 0.1); */
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.facility-lightbox__nav:hover {
  background: rgba(0, 0, 0, 0.2);
}

.facility-lightbox__nav--prev {
  left: 20px;
}

.facility-lightbox__nav--next {
  right: 20px;
}

.facility-lightbox__nav-arrow {
  width: 28px;
  height: 28px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
}

.facility-lightbox__nav--prev .facility-lightbox__nav-arrow {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.facility-lightbox__nav--next .facility-lightbox__nav-arrow {
  transform: rotate(45deg);
  margin-right: 4px;
}
