/* ==========================================================================
   かくれみのの森 — concept.css (page-specific styles for concept.html)
   ========================================================================== */

/* ---------- Hero ---------- */
.hero-concept {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-block: 12px;
}
@media (min-width: 768px) {
  .hero-concept {
    gap: 24px;
    padding-block: 16px;
  }
}

.hero-concept__lead {
  max-width: 700px;
}

/* ---------- Quote section ---------- */
.quote-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.quote-section__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-section__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 238, 227, 0.75); /* --color-background @ 75% */
}

.quote-section__content {
  margin-inline: auto;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding-block: 56px;
}
@media (min-width: 768px) {
  .quote-section__content {
    gap: 24px;
    padding-block: 96px;
  }
}

.quote-section__mark {
  margin: 0;
  font-family: var(--font-shippori);
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  color: var(--color-primary);
}
@media (min-width: 768px) {
  .quote-section__mark {
    font-size: 48px;
  }
}

.quote-section__heading {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .quote-section__heading {
    font-size: 26px;
  }
}

.quote-section__rule {
  height: 1.5px;
  width: 40px;
  background: var(--color-primary);
}
@media (min-width: 768px) {
  .quote-section__rule {
    width: 56px;
  }
}

.quote-section__body {
  max-width: 680px;
}

/* ---------- Quiet camp (2-col swap without duplicating the heading) ---------- */
.quiet-camp {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "heading"
    "body"
    "photo";
  gap: 20px;
  padding-block: 8px;
}
@media (min-width: 768px) {
  /*
   * CSS Grid can't cleanly do "photo spans two rows, but the tracks it
   * spans should size to the *other* content in those rows, not to the
   * photo" — a track a spanning item crosses always contributes to that
   * track's size (tried `auto`, tried `minmax(0, auto)`: both still
   * pulled the heading/body rows open to match the photo's height,
   * leaving a large empty gap between the heading and the body). So on
   * desktop the photo is taken out of grid flow entirely (`position:
   * absolute`) and placed over a reserved left column via padding,
   * while the heading and body stay in normal, tightly-stacked block
   * flow in the remaining space. Mobile (below) is unaffected — no
   * spanning there, just a plain single-column stack.
   */
  .quiet-camp {
    position: relative;
    display: block;
    min-height: 480px;
    padding-block: 24px;
    /* Text (heading + body) is the normally-flowing content here, so it
       occupies the LEFT column; reserve the RIGHT column for the
       absolutely-positioned photo. */
    padding-right: calc(50% + 32px);
  }
}

.quiet-camp__heading {
  grid-area: heading;
}

.quiet-camp__photo {
  grid-area: photo;
  height: 200px;
}
@media (min-width: 768px) {
  .quiet-camp__photo {
    position: absolute;
    top: 24px;
    right: 0;
    width: calc(50% - 32px);
    height: 480px;
  }
}

.quiet-camp__body {
  grid-area: body;
}
@media (min-width: 768px) {
  .quiet-camp__body {
    /* Mobile spacing between items comes from the parent grid's `gap`;
       once desktop switches the parent to `display: block`, `gap` no
       longer applies, so this margin takes over. */
    margin-top: 16px;
  }
}

/* ---------- Facility overview ---------- */
.facility-overview {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 8px;
}
@media (min-width: 768px) {
  .facility-overview {
    flex-direction: row;
    align-items: flex-start;
    gap: 64px;
    padding-block: 24px;
  }
}

.facility-overview__photo {
  display: none;
}
@media (min-width: 768px) {
  .facility-overview__photo {
    display: block;
    height: 420px;
    flex: 1;
    order: 0;
  }
}

.facility-overview__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  order: 1;
}
@media (min-width: 768px) {
  .facility-overview__info {
    flex: 1;
    order: 0;
  }
}

.facility-overview__list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.facility-overview__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 768px) {
  .facility-overview__row {
    gap: 24px;
    padding-block: 18px;
  }
}

.facility-overview__row--last {
  border-bottom: none;
}

.facility-overview__row dt {
  width: 80px;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-secondary);
}
@media (min-width: 768px) {
  .facility-overview__row dt {
    width: 140px;
    font-size: 14px;
  }
}

.facility-overview__row dd {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .facility-overview__row dd {
    font-size: 16px;
    line-height: 1.75;
  }
}

/* ---------- Green Topia Forest ---------- */
.green-topia {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "heading"
    "body"
    "photo"
    "cta";
  gap: 16px;
  padding-block: 8px;
}
@media (min-width: 768px) {
  .green-topia {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "eyebrow photo"
      "heading photo"
      "body photo"
      "cta photo";
    align-items: center;
    column-gap: 64px;
    row-gap: 20px;
    padding-block: 24px;
  }
}

.green-topia__eyebrow {
  grid-area: eyebrow;
}

.green-topia__heading {
  grid-area: heading;
}
/* This heading runs longer than the others ("グリーントピアフォレストの
   想い" — 15 characters); at the shared 24px mobile size it wraps with a
   single orphaned character ("い") on its own line. Size it down just
   enough to read as two balanced lines instead. */
@media (max-width: 767px) {
  .green-topia__heading {
    font-size: 21px;
  }
}

.green-topia__photo {
  grid-area: photo;
  display: none;
}
@media (min-width: 768px) {
  .green-topia__photo {
    display: block;
    height: 420px;
    width: 100%;
  }
}

.green-topia__body {
  grid-area: body;
}

.green-topia__cta {
  grid-area: cta;
  width: 100%;
}
@media (min-width: 768px) {
  .green-topia__cta {
    width: fit-content;
  }
}
