/* =========================================================
   pages/ohana-bld.css  OHANAビル（/ohana-bld/）
   ========================================================= */

/* ---------- 1. 冒頭：全幅の写真に緑を重ね、文字は白・中央揃え ---------- */
.p-ohana-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 24.0625rem;
  margin-top: var(--space-9xl);
  padding-block: var(--space-6xl);
  color: var(--c-white);
  text-align: center;
}
.p-ohana-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.p-ohana-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(51, 152, 124, 0.78);
}
.p-ohana-hero__photo img,
.p-ohana-hero__photo .u-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-ohana-hero__title {
  font-size: var(--fs-h2);
  line-height: 1.8;
}
.p-ohana-hero__text {
  margin-top: var(--space-3xl);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold);
  line-height: 1.5;
}

/* ---------- 3. FLOOR GUIDE ---------- */
.p-ohana-floor {
  padding-top: var(--space-9xl);
}
.p-ohana-floor__head {
  text-align: center;
}
.p-ohana-floor__en {
  color: var(--c-green);
  font-family: var(--ff-en);
  font-size: var(--fs-display);
  font-weight: var(--fw-medium);
  line-height: 1.2;
}
.p-ohana-floor__title {
  color: var(--c-green);
  font-size: var(--fs-h3);
  line-height: 1.8;
}
.p-ohana-floor__floor {
  margin-top: var(--space-xl);
}
.p-ohana-floor__floor + .p-ohana-floor__floor {
  margin-top: var(--space-9xl);
  padding-top: var(--space-8xl);
  border-top: var(--line-light);
}
.p-ohana-floor__number {
  color: var(--c-green);
  font-family: var(--ff-en);
  font-size: var(--fs-floor);
  font-weight: var(--fw-medium);
  line-height: 1.2;
}
.p-ohana-floor__item {
  display: grid;
  grid-template-columns: minmax(0, 27.25rem) minmax(0, 34.4375rem);
  justify-content: space-between;
  align-items: start;
  gap: var(--space-4xl);
  margin-top: var(--space-m);
}
.p-ohana-floor__item + .p-ohana-floor__item {
  margin-top: var(--space-8xl);
}
.p-ohana-floor__label {
  color: var(--c-label);
  font-family: var(--ff-en);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  line-height: 1.2;
}
.p-ohana-floor__logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2xl);
  margin-top: var(--space-l);
}
/* ロゴは書き出しの半分の大きさ（acw_img の width・height）のまま */
.p-ohana-floor__logos span {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}
.p-ohana-floor__text {
  margin-top: var(--space-3xl);
  line-height: 2.25;
}
.p-ohana-floor__body .c-button {
  margin-top: var(--space-3xl);
}
.p-ohana-floor__photo {
  aspect-ratio: 551 / 390;
  overflow: hidden;
  border-radius: var(--r-input);
}
.p-ohana-floor__photo img,
.p-ohana-floor__photo .u-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 4. 登戸のまち：左に写真、右に白い角丸のパネルを重ねる ---------- */
.p-ohana-town {
  position: relative;
  width: min(var(--w-wide), 100% - var(--gutter) * 2);
  margin: var(--section-py) auto 0;
}
.p-ohana-town__photo {
  width: 73.4%;
  aspect-ratio: 998 / 591;
  overflow: hidden;
  border-radius: 6.25rem;
}
.p-ohana-town__photo img,
.p-ohana-town__photo .u-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-ohana-town__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 49.3%;
  padding: var(--space-7xl) var(--space-5xl) var(--space-4xl) 10.4%;
  border: var(--line-green);
  border-radius: 6.25rem;
  background: var(--c-white);
}
.p-ohana-town__title {
  font-size: var(--fs-h2);
  line-height: 1.8;
}
.p-ohana-town__text {
  margin-top: var(--space-xl);
  line-height: 1.6;
}
.p-ohana-town__panel .c-button {
  margin-top: var(--space-4xl);
}

/* ---------- 5. ACCESS ---------- */
.p-ohana-access {
  display: grid;
  grid-template-columns: minmax(0, 32.5rem) minmax(0, 34.4375rem);
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4xl);
  margin-block: var(--section-py) var(--space-6xl);
}
.p-ohana-access__title {
  color: var(--c-green);
  font-family: var(--ff-en);
  font-size: var(--fs-h2);
  font-weight: var(--fw-medium);
  line-height: 1.2;
}
.p-ohana-access__name {
  margin-top: var(--space-m);
  font-family: var(--ff-en);
  font-size: var(--fs-en-md);
  line-height: 1.2;
}
.p-ohana-access__address {
  margin-top: var(--space-m);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold);
  line-height: 1.5;
}
.p-ohana-access__text {
  margin-top: var(--space-3xl);
  line-height: 1.85;
}
.p-ohana-access__map {
  aspect-ratio: 551 / 390;
  overflow: hidden;
  border-radius: var(--r-photo-md);
  background: #e3e3e3;
}
.p-ohana-access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 768〜1199px ---------- */
@media (max-width: 1199px) {
  .p-ohana-town__panel {
    padding: var(--space-5xl) var(--space-3xl) var(--space-3xl) 7%;
  }
  .p-ohana-town__text {
    margin-top: var(--space-m);
  }
  .p-ohana-town__panel .c-button {
    margin-top: var(--space-xl);
  }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .p-ohana-hero {
    min-height: 17.5rem;
    margin-top: var(--space-8xl);
    padding: var(--space-8xl) var(--gutter);
  }
  .p-ohana-hero__text {
    margin-top: var(--space-3xl);
    font-size: var(--fs-body);
  }
  .p-ohana-floor {
    padding-top: var(--space-9xl);
  }
  .p-ohana-floor__floor {
    margin-top: var(--space-4xl);
  }
  .p-ohana-floor__floor + .p-ohana-floor__floor {
    margin-top: var(--space-9xl);
    padding-top: var(--space-8xl);
  }
  .p-ohana-floor__item {
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
  }
  .p-ohana-floor__item + .p-ohana-floor__item {
    margin-top: var(--space-9xl);
  }
  .p-ohana-floor__photo {
    order: -1;
  }
  .p-ohana-floor__logos {
    gap: var(--space-xl);
    margin-top: var(--space-xl);
  }
  .p-ohana-floor__text {
    margin-top: var(--space-3xl);
    line-height: 2;
  }
  .p-ohana-floor__body .c-button {
    margin-top: var(--space-4xl);
  }
  .p-ohana-town__photo {
    width: 100%;
    border-radius: var(--r-photo-lg);
  }
  .p-ohana-town__panel {
    position: relative;
    width: auto;
    margin: calc(var(--space-7xl) * -1) var(--space-m) 0;
    padding: var(--space-6xl) var(--space-4xl);
    border-radius: var(--r-photo-lg);
  }
  .p-ohana-town__title {
    font-size: var(--fs-h3);
  }
  .p-ohana-access {
    grid-template-columns: 1fr;
    margin-bottom: var(--space-7xl);
    gap: var(--space-6xl);
  }
  .p-ohana-access__name {
    margin-top: var(--space-m);
  }
  .p-ohana-access__address {
    font-size: var(--fs-body);
  }
  .p-ohana-access__text {
    margin-top: var(--space-3xl);
    font-size: var(--fs-sm);
  }
  .p-ohana-access__map {
    aspect-ratio: 4 / 3;
  }
}
