/* サブページ共通スタイル */

/* —— Page hero —— */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 42vh;
  min-height: 42svh;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  padding: calc(var(--header-height) + 2rem) 0 3rem;
  color: var(--color-white);
}

.page-hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.page-hero__sub {
  margin: 0.5rem 0 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500;
  opacity: 0.95;
}

/* —— Section blocks —— */
.page-section {
  padding: 4rem 0;
}

.page-section--gray {
  background: var(--color-bg);
}

.section-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--color-text);
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.section-lead {
  margin: -1rem 0 2rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--color-text-light);
}

/* —— Placeholder image —— */
.img-placeholder {
  background: #e8e8e8;
  object-fit: cover;
}

/* —— Z-pattern rows (service etc.) —— */
.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.media-row:last-child {
  margin-bottom: 0;
}

.media-row--reverse {
  direction: rtl;
}

.media-row--reverse > * {
  direction: ltr;
}

.media-row__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.media-row__image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.media-row__title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.media-row__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--color-text-light);
}

@media (max-width: 768px) {
  .media-row,
  .media-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .media-row--reverse .media-row__image {
    order: -1;
  }
}
