/* ===================================================
   STEAK PANDORA — About Page Styles
   =================================================== */

/* ── Page Hero ───────────────────────────────────── */
.about-page-hero {
  position: relative;
  /* 正方形画像を全体表示：横幅100%に対して同比率の高さを確保 */
  height: min(80vw, 86vh);
  min-height: 480px;
  max-height: 820px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 80px;
  background: #0d0703; /* object-fit:containの余白をなじませる */
}

.about-page-hero-bg {
  position: absolute;
  inset: 0;
}

.about-page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 全体を収める */
  object-position: center center;
  filter: grayscale(15%);
}

.about-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 10, 4, 0.85) 0%,
    rgba(20, 10, 4, 0.45) 50%,
    rgba(20, 10, 4, 0.2) 100%
  );
}

.about-page-hero-content {
  position: relative;
  z-index: 3;
  padding: 0 80px;
  animation: fadeUp 1s 0.3s both;
}

.about-page-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-amber-light);
  margin-bottom: 12px;
}

.about-page-heading {
  font-family: var(--font-serif-jp);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.about-page-sub {
  font-family: var(--font-serif-jp);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.14em;
}

/* ── About Main ──────────────────────────────────── */
.about-main {
  background: var(--color-bg);
}

.about-story {
  max-width: 840px;
  margin: 0 auto;
  padding: 100px 60px 120px;
}

.story-intro {
  margin: 0 0 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-bg-deep);
  font-family: var(--font-serif-jp);
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--color-brown-dark);
}

.story-heading {
  margin: 52px 0 18px;
  font-family: var(--font-serif-jp);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--color-brown-dark);
}

.story-body {
  margin: 0;
  font-family: var(--font-serif-jp);
  font-size: 0.94rem;
  line-height: 2.1;
  letter-spacing: 0.02em;
  color: var(--color-text-mid);
}

/* ── Story Chapter (Left/Right layout) ───────────── */
.story-chapter {
  padding: 120px 0;
  border-bottom: 1px solid var(--color-bg-deep);
}

.story-chapter-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-chapter--reverse .story-chapter-inner {
  direction: rtl;
}

.story-chapter--reverse .story-chapter-inner > * {
  direction: ltr;
}

/* Chapter label */
.chapter-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--color-amber);
  letter-spacing: 0.04em;
  line-height: 1;
}

.chapter-rule {
  flex: 1;
  height: 1px;
  background: var(--color-bg-deep);
  max-width: 60px;
}

/* Chapter heading */
.chapter-heading {
  font-family: var(--font-serif-jp);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 400;
  color: var(--color-brown-dark);
  letter-spacing: 0.06em;
  line-height: 1.65;
  margin-bottom: 32px;
}

.chapter-heading-sub {
  display: block;
  font-size: 0.7em;
  color: var(--color-text-mid);
  margin-top: 8px;
}

/* Chapter body */
.chapter-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chapter-body p {
  font-family: var(--font-serif-jp);
  font-size: 0.94rem;
  line-height: 2.1;
  color: var(--color-text-mid);
  letter-spacing: 0.04em;
}

/* Chapter image */
.story-chapter-img-wrap {
  position: relative;
  overflow: hidden;
}

.story-chapter-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

/* Chapter 02 秘伝の醤油ダレ — 画像全体を見せる */
.story-chapter--reverse .story-chapter-img-wrap .story-chapter-img[src="images/sauce2.jpg"] {
  height: auto;
  object-fit: contain;
  background: #0d0a07;
}

.story-chapter-img-wrap:hover .story-chapter-img {
  transform: scale(1.04);
}

.story-img-caption {
  margin-top: 12px;
  font-family: var(--font-sans-jp);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  text-align: center;
}

/* ── Story Divider ───────────────────────────────── */
.story-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 60px;
  max-width: 1160px;
  margin: 0 auto;
}

.story-divider-line {
  flex: 1;
  height: 1px;
  background: var(--color-bg-deep);
}

.story-divider-mark {
  font-size: 0.75rem;
  color: var(--color-amber-light);
  letter-spacing: 0.1em;
}

/* ── Story Chapter Full Width ────────────────────── */
.story-chapter-full {
  padding: 120px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-bg-deep);
}

.story-chapter-full--dark {
  background: var(--color-bg-warm);
}

.chapter-label--center {
  justify-content: center;
  margin-bottom: 28px;
}

.chapter-label--center .chapter-rule {
  display: none;
}

.chapter-heading--center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.chapter-body--center {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.chapter-body--center p {
  font-family: var(--font-serif-jp);
  font-size: 0.94rem;
  line-height: 2.1;
  color: var(--color-text-mid);
  letter-spacing: 0.04em;
}

/* ── Chapter 04 Full-Width Photo ────────────────── */
.story-chapter-full--with-photo {
  padding-bottom: 0;
}

.chapter04-photo-wrap {
  position: relative;
  margin-top: 72px;
  overflow: hidden;
  line-height: 0;
}

.chapter04-photo {
  width: 100%;
  height: clamp(320px, 55vw, 700px);
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 1.2s var(--ease-out);
}

.chapter04-photo-wrap:hover .chapter04-photo {
  transform: scale(1.03);
}

.chapter04-photo-caption {
  position: absolute;
  bottom: 24px;
  right: 32px;
  font-family: var(--font-sans-jp);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1;
}

/* scroll reveal for photo */
.js .chapter04-photo-wrap {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

.js .chapter04-photo-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Closing Message ─────────────────────────────── */
.story-closing-section {
  background: var(--color-bg-warm);
  padding: 100px 0;
  border-top: 1px solid var(--color-bg-deep);
  border-bottom: 1px solid var(--color-bg-deep);
}

.story-closing {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-serif-jp);
  font-size: 1.1rem;
  line-height: 2.4;
  color: var(--color-brown-dark);
  letter-spacing: 0.12em;
}

/* ── Scroll Reveal ───────────────────────────────── */
.js .story-chapter-text,
.js .story-chapter-img-wrap,
.js .story-chapter-full .container > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.js .story-chapter--reverse .story-chapter-text {
  transition-delay: 0.15s;
}

.js .story-chapter--reverse .story-chapter-img-wrap {
  transition-delay: 0s;
}

.js .story-chapter-text.visible,
.js .story-chapter-img-wrap.visible,
.js .story-chapter-full .container > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .about-page-hero-content { padding: 0 40px; }

  .story-chapter { padding: 80px 0; }
  .story-chapter-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 32px;
  }
  .story-chapter--reverse .story-chapter-inner {
    direction: ltr;
  }
  .story-chapter--reverse .story-chapter-text {
    order: -1;
  }
  .story-chapter-img { height: 300px; }
  .story-chapter-full { padding: 80px 0; }
  .story-chapter-full--with-photo { padding-bottom: 0; }
  .chapter04-photo-wrap { margin-top: 48px; }
}

@media (max-width: 600px) {
  .about-page-hero { height: 50vh; padding-bottom: 48px; }
  .about-page-hero-content { padding: 0 24px; }
  .about-story { padding: 64px 24px 80px; }
  .story-intro { font-size: 1rem; margin-bottom: 44px; padding-bottom: 36px; }
  .story-heading { font-size: 1.25rem; margin-top: 40px; }
  .story-chapter-inner { padding: 0 24px; }
  .story-divider { padding: 0 24px; }
  .chapter-heading { font-size: 1.4rem; }
  .story-chapter-img { height: 240px; }
  .story-closing { font-size: 0.92rem; padding: 0 8px; padding-top: 36px; }
  .chapter04-photo { height: 260px; }
  .chapter04-photo-caption { bottom: 16px; right: 20px; }
}

/* ── Access Section (about page) ─────────────────── */
.about-access {
  border-top: 1px solid var(--color-border);
}

.access-sub-title {
  font-family: var(--font-serif-jp);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-brown-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.access-sub-title::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-amber);
  flex-shrink: 0;
}

.access-map-note {
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
}

.access-train {
  max-width: 900px;
  margin: 64px auto 0;
}

.access-train-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.access-train-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--color-text-mid);
}

.access-train-list li:last-child {
  border-bottom: none;
}

.access-train-line {
  font-family: var(--font-serif-jp);
  color: var(--color-brown-dark);
  min-width: 9em;
}

.access-train-walk {
  margin-left: auto;
  font-family: var(--font-serif-jp);
  letter-spacing: 0.08em;
  color: var(--color-amber);
  white-space: nowrap;
}

.access-company {
  max-width: 900px;
  margin: 72px auto 0;
  padding-top: 56px;
  border-top: 1px solid var(--color-border);
}

.access-company .section-eyebrow {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .access-train {
    margin-top: 48px;
  }
  .access-company {
    margin-top: 56px;
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page-hero-content {
    animation: none;
  }

  .story-chapter-img,
  .chapter04-photo,
  .story-chapter-img-wrap:hover .story-chapter-img,
  .chapter04-photo-wrap:hover .chapter04-photo {
    transform: none !important;
  }

  .js .story-chapter-text,
  .js .story-chapter-img-wrap,
  .js .story-chapter-full .container > *,
  .js .chapter04-photo-wrap {
    opacity: 1 !important;
    transform: none !important;
  }
}
