/* ===================================================
   hope.css - 私たちの想い ページ専用スタイル
   CENTURY21ココカラ
   =================================================== */

/* ===== Page Header (taller to match directory top) ===== */
.page-header {
  padding: 180px 0 120px;
}

/* ===== Hope Section Common ===== */
.hope-section {
  padding: 140px 0;
  position: relative;
}
.hope-section .container {
  position: relative;
  z-index: 1;
}
.hope-section .reveal {
  transition: all 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Decorative Large Number ===== */
.hope-header-group {
  position: relative;
}
.hope-header-group::before {
  content: attr(data-number);
  position: absolute;
  top: -0.3em;
  left: -0.08em;
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
  color: rgba(199, 186, 140, 0.12);
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}
.hope-lead .hope-header-group {
  display: inline-block;
}
.hope-lead .hope-header-group::before {
  left: 50%;
  transform: translateX(-50%);
  top: -0.25em;
}
.hope-section-dark .hope-header-group::before {
  color: rgba(255, 255, 255, 0.15);
}

/* ===== Hope Heading ===== */
.hope-heading {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

/* ===== Hope Body Text ===== */
.hope-body {
  font-size: 16px;
  line-height: 2.4;
  font-weight: 400;
  max-width: 720px;
}
.hope-body + .hope-body {
  margin-top: 32px;
}

/* ===== Light Section (white bg) ===== */
.hope-section-light {
  background: #fff;
}
.hope-section-light .hope-heading {
  color: var(--text-main);
}
.hope-section-light .hope-body {
  color: var(--text-main);
}

/* ===== Dark Section (parallax bg) ===== */
.hope-section-dark {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #333;
  color: #fff;
}
.hope-section-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.hope-section-dark .hope-heading {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hope-section-dark .hope-body {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

/* ===== Lead Section (Section 1) ===== */
.hope-lead {
  padding: 160px 0;
  text-align: center;
}
.hope-lead .hope-heading {
  font-size: 38px;
  margin-bottom: 56px;
}
.hope-lead .hope-body {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* ===== Section with Side Layout ===== */
.hope-side-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hope-side-image {
  border-radius: 8px;
  overflow: hidden;
}
.hope-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Full-Bleed Right Image Section (Section 3) ===== */
.hope-bleed-section {
  padding: 0;
}
.hope-bleed-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 600px;
}
.hope-bleed-content {
  padding: 80px 60px 80px max(5vw, calc((100vw - 1200px) / 2));
  position: relative;
  z-index: 1;
}
.hope-bleed-content .hope-header-group::before {
  z-index: 2;
}
.hope-bleed-content .hope-body {
  max-width: 600px;
}
.hope-bleed-image {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hope-bleed-parallax {
  flex: 1;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hope-bleed-parallax::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.18);
}
.hope-bleed-parallax:first-child::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.35));
  z-index: 1;
}

/* Fade-in from left for bleed content */
.hope-bleed-content.reveal {
  transform: translateX(-40px);
}
.hope-bleed-content.reveal.active {
  transform: translateX(0);
}

/* ===== Right-Aligned Section (DREAM) ===== */
.hope-align-right .hope-header-group {
  max-width: 720px;
  margin-left: auto;
}
.hope-align-right .hope-body {
  margin-left: auto;
}
.hope-align-right .hope-header-group::before {
  left: auto;
  right: -0.08em;
}
.hope-align-right .reveal {
  transform: translateX(40px);
}
.hope-align-right .reveal.active {
  transform: translateX(0);
}

/* ===== Center-Aligned Section (FOREVER) ===== */
.hope-align-center {
  text-align: center;
}
.hope-align-center .hope-header-group {
  display: inline-block;
}
.hope-align-center .hope-header-group::before {
  left: 50%;
  transform: translateX(-50%);
}
.hope-align-center .hope-body {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  max-width: 680px;
}

/* ===== CTA Link ===== */
.hope-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.8);
  padding-bottom: 4px;
  transition: opacity 0.3s, gap 0.3s;
  margin-top: 40px;
  text-decoration: none;
}
.hope-cta-link:hover {
  opacity: 0.8;
  gap: 20px;
  border-bottom-color: #fff;
}
.hope-section-light .hope-cta-link {
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}
.hope-section-light .hope-cta-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
  .hope-section {
    padding: 100px 0;
  }
  .hope-lead {
    padding: 100px 0;
  }
  .hope-heading {
    font-size: 28px;
  }
  .hope-lead .hope-heading {
    font-size: 30px;
  }
  .hope-header-group::before {
    font-size: 140px;
  }
  .hope-side-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hope-side-image {
    max-width: 560px;
    aspect-ratio: 3 / 2;
  }
  .hope-section-dark {
    background-attachment: scroll;
  }
  /* All sections left-aligned on TB/SP */
  .hope-lead {
    text-align: left;
  }
  .hope-lead .hope-body {
    margin-left: 0;
    margin-right: 0;
  }
  .hope-lead .hope-header-group {
    display: block;
  }
  .hope-lead .hope-header-group::before {
    left: -0.08em;
    transform: none;
  }
  .hope-align-right .hope-header-group {
    max-width: none;
    margin-left: 0;
  }
  .hope-align-right .hope-body {
    margin-left: 0;
  }
  .hope-align-right .hope-header-group::before {
    left: -0.08em;
    right: auto;
  }
  .hope-align-center {
    text-align: left;
  }
  .hope-align-center .hope-body {
    margin-left: 0;
    margin-right: 0;
  }
  .hope-align-center .hope-header-group {
    display: block;
  }
  .hope-align-center .hope-header-group::before {
    left: -0.08em;
    transform: none;
  }
  .hope-bleed-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hope-bleed-content {
    padding: 80px 5vw;
  }
  .hope-bleed-image {
    flex-direction: row;
    max-height: 420px;
  }
  .hope-bleed-parallax {
    background-attachment: scroll;
  }
  .hope-bleed-parallax:first-child::after {
    display: none;
  }
}

/* ===== Responsive: SP ===== */
@media (max-width: 768px) {
  .hope-section {
    padding: 72px 0;
  }
  .hope-lead {
    padding: 72px 0;
  }
  .hope-heading {
    font-size: 24px;
    margin-bottom: 36px;
  }
  .hope-lead .hope-heading {
    font-size: 26px;
    margin-bottom: 40px;
  }
  .hope-header-group::before {
    font-size: 90px;
  }
  .hope-body {
    font-size: 15px;
    line-height: 2.2;
  }
  .hope-side-layout {
    gap: 32px;
  }
  .hope-side-image {
    max-width: 100%;
  }
  .hope-bleed-content {
    padding: 60px 5vw;
  }
  .hope-bleed-image {
    flex-direction: row;
    max-height: 300px;
  }
}
