.emotion-history { padding: 140px 0 170px; background: #fdfaf6; }

.emotion-history__title {
  text-align: center;
  margin: 0 0 96px;
  font-size: clamp(96px, 9vw, 140px);
  letter-spacing: 0.05em;
  position: sticky;
  top: 96px;
  z-index: 2;
  background: #fdfaf6;
  padding: 16px 0 24px;
}

.emotion-history__layout {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 72px;
  align-items: start;
}

.emotion-history__sticky {
  position: sticky;
  top: 160px;
  height: calc(100vh - 160px);
  display: flex;
  align-items: flex-start;
  padding-left: 32px;
}

.emotion-history__sticky-inner { display: grid; gap: 20px; padding: 56px 12px 56px 0; }
.emotion-history__label { margin: 0; font-size: 14px; letter-spacing: 0.18em; color: var(--muted); }

.emotion-history__chapter-title {
  margin: 0;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.2;
}

.emotion-history__media {
  width: 100%;
  height: clamp(340px, 56vh, 600px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.emotion-history__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.emotion-history__nav { display: flex; gap: 10px; }

.emotion-history__nav-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.emotion-history__nav-btn.primary { background: var(--accent); color: #fff; border-color: transparent; }

.emotion-history__nav-btn:disabled { opacity: 0.5; cursor: default; }

.emotion-history__content { display: grid; gap: 240px; padding-top: 140px; }
.emotion-history__chapter { scroll-margin-top: 120px; }

.emotion-history__chapter h3 {
  margin: 0 0 28px;
  font-size: clamp(40px, 4vw, 52px);
  letter-spacing: 0.04em;
}

.emotion-history__chapter p {
  margin: 0;
  font-size: 26px;
  line-height: 2.2;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* ---- Below this point, keep existing layout/page CSS as-is ---- */
/* The following styles are preserved intentionally to avoid layout regression. */
.history-page { background: #fdfaf6; }

.history-hero {
  position: relative;
  min-height: 58vh;
  padding: 160px 0 120px;
  overflow: hidden;
}

.history-hero__media {
  position: absolute;
  inset: 0;
  background-image: url("https://ik.imagekit.io/yumephoto/sotsugyoalbum.com/top/hero-05.jpg?tr=n-base");
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transform: scale(1.02);
}

.history-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(253, 250, 246, 0.2), rgba(253, 250, 246, 0.92) 60%, rgba(253, 250, 246, 1));
}

.history-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.history-hero__eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.32em; color: #b7b0a5; }
.history-hero h1 { margin: 0; font-size: clamp(36px, 4.2vw, 56px); }
.history-hero__lead { margin: 0; font-size: 18px; line-height: 1.9; color: var(--muted); }

.history-hero__badge {
  position: absolute;
  top: 120px;
  right: clamp(16px, 6vw, 60px);
  background: #fff;
  color: #D7250C;
  border: 2px solid #D7250C;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  z-index: 2;
}

.history-section { padding: 80px 0 96px; }
.history-section + .history-section { padding-top: 20px; }

.history-section__header { display: grid; gap: 10px; margin-bottom: 36px; }
.history-section__header h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.history-section__header p { margin: 0; color: var(--muted); line-height: 1.8; }

.history-timeline { display: grid; gap: 28px; }

.history-item {
  display: grid;
  grid-template-columns: 120px 1fr 240px;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.history-item__year { font-size: 22px; font-weight: 700; color: #D7250C; letter-spacing: 0.08em; }
.history-item__body h3 { margin: 0 0 12px; font-size: 22px; }
.history-item__body p { margin: 0; line-height: 1.8; color: var(--muted); }

.history-item__media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.history-page--sazae { background: #f6e9e1; }
.history-era { border-bottom: 12px solid #D7250C; }

.history-era__header {
  background: #D7250C;
  color: #fff;
  text-align: center;
  padding: 46px 20px 40px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.history-era__icon { width: 46px; height: 22px; position: relative; }

.history-era__icon::before,
.history-era__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(0 55%, 15% 55%, 15% 0, 35% 0, 35% 55%, 50% 55%, 50% 15%, 70% 15%, 70% 55%, 85% 55%, 85% 0, 100% 0, 100% 100%, 0 100%);
}

.history-era__jp { margin: 0; font-size: 20px; font-weight: 700; }
.history-era__en { margin: 0; font-size: 12px; letter-spacing: 0.2em; }

.history-era__body { position: relative; background: #f6e9e1; padding: 80px 0 96px; }
.history-era--light .history-era__body { background: #fff; }

.history-era__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #D7250C;
  transform: translateX(-50%);
}

.history-era__entries { display: grid; gap: 80px; position: relative; z-index: 1; }

.history-era__entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.history-era__media {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  margin-left: auto;
  background: #f0e5dd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-era__media img { width: 100%; height: 100%; object-fit: cover; }
.history-era__media.is-empty { background: transparent; border: none; width: 240px; height: 240px; }

.history-era__year { font-size: 40px; font-weight: 700; color: #D7250C; text-align: center; letter-spacing: 0.08em; }

.history-era__content h3 { margin: 0 0 12px; color: #D7250C; font-size: 22px; }
.history-era__content p { margin: 0; line-height: 1.9; color: #5a4c46; }


@media (max-width: 768px) {
  .emotion-history__title {
    font-size: clamp(52px, 10vw, 72px);
    margin-bottom: 56px;
    position: static;
    background: transparent;
    padding: 0;
  }

  .emotion-history__layout { grid-template-columns: 1fr; }
  .emotion-history__sticky { position: static; height: auto; padding-left: 0; }
  .emotion-history__sticky-inner { padding: 0; }
  .emotion-history__media { height: clamp(220px, 50vw, 340px); }
  .emotion-history__nav { justify-content: flex-start; }
  .emotion-history__content { gap: 160px; padding-top: 40px; }
  .emotion-history__chapter h3 { font-size: clamp(30px, 7vw, 40px); }
  .emotion-history__chapter p { font-size: 21px; line-height: 2.1; letter-spacing: 0.03em; }

  .history-hero { padding: 120px 0 80px; }
  .history-hero__badge {
    position: static;
    margin: 16px auto 0;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-radius: 999px;
  }

  .history-item { grid-template-columns: 1fr; }
  .history-item__media img { height: 200px; }

  .history-era__line { left: 24px; }
  .history-era__entry { grid-template-columns: 1fr; padding-left: 24px; }
  .history-era__media, .history-era__media.is-empty { width: 200px; height: 200px; margin-left: 0; }
  .history-era__year { text-align: left; font-size: 32px; }
}


