html {
  scroll-behavior: auto;
}

.about-detail-page {
  --about-header-height: clamp(88px, 10vh, 104px);
  --site-header-safe-height: var(--about-header-height);
  color: var(--service-ink);
}

.about-detail-page .site-header {
  position: fixed;
  display: grid;
  grid-template-columns: auto minmax(440px, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 2.8vw, 42px);
  min-height: var(--about-header-height);
  padding: 12px clamp(20px, 4.8vw, 58px);
  color: rgba(53, 40, 29, 0.86);
  background:
    linear-gradient(180deg, rgba(247, 240, 228, 0.94), rgba(239, 232, 218, 0.88)),
    var(--background-wood-mist) center / cover no-repeat;
  border-bottom: 1px solid rgba(88, 66, 45, 0.08);
  backdrop-filter: blur(8px);
}

.about-detail-page .site-header::after {
  opacity: 0;
}

.about-detail-page .brand {
  justify-self: start;
}

.about-detail-page .brand-mark {
  filter:
    brightness(0)
    sepia(26%)
    saturate(430%)
    hue-rotate(344deg)
    brightness(0.74)
    drop-shadow(0 5px 10px rgba(255, 250, 238, 0.32));
}

.about-detail-page .brand-name {
  color: rgba(53, 40, 29, 0.72);
  text-shadow: 0 2px 10px rgba(255, 250, 238, 0.34);
}

.about-detail-page .site-menu {
  grid-column: 3;
  justify-self: end;
  text-shadow: 0 2px 10px rgba(255, 250, 238, 0.34);
}

.about-detail-page .site-navigation {
  top: var(--about-header-height);
}

.about-page-navigation {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: clamp(6px, 0.8vw, 12px);
  min-width: 0;
  color: rgba(53, 40, 29, 0.68);
  pointer-events: auto;
}

.about-page-navigation button {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 62px;
  min-height: 44px;
  padding: 0 clamp(7px, 0.7vw, 11px);
  color: rgba(53, 40, 29, 0.44);
  font: inherit;
  font-size: clamp(0.76rem, 0.88vw, 0.86rem);
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 260ms ease;
}

.about-page-navigation button::after {
  position: absolute;
  right: 18%;
  bottom: 2px;
  left: 18%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0.28);
  transform-origin: center;
  transition: transform 260ms ease;
}

.about-page-navigation button[aria-current="true"] {
  color: rgba(53, 40, 29, 0.92);
}

.about-page-navigation button[aria-current="true"]::after {
  transform: scaleX(1);
}

.about-page-navigation button:focus-visible,
.about-return-link:focus-visible {
  outline: 2px solid rgba(88, 66, 45, 0.58);
  outline-offset: 3px;
}

.about-story {
  position: fixed;
  top: var(--about-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(120deg, rgba(255, 250, 240, 0.2), rgba(234, 226, 211, 0.1)),
    var(--background-wood-mist) center / cover fixed no-repeat;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
}

.about-era {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: calc(100svh - var(--about-header-height));
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.about-story-media {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #352b25;
}

.about-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.56) contrast(1.04) brightness(0.84);
}

.about-story-media[data-about-media="1972"] img {
  object-fit: contain;
  /* 史料写真の人物・看板・原木を切り落とさず、元の構図を見せます。 */
  filter: saturate(0.72) contrast(1.06) brightness(0.95);
}

.about-story-media[data-about-media="20-years-later"] img {
  object-fit: contain;
  filter: saturate(0.72) contrast(1.06) brightness(0.95);
}

.about-story-media[data-about-media="changing-times"] img {
  object-fit: contain;
  filter: saturate(0.72) contrast(1.06) brightness(0.95);
}

.about-story-media[data-about-media="reiwa"] img {
  object-position: 51% 50%;
  filter: saturate(0.45) contrast(1.04) brightness(0.83);
}

.about-story-media[data-about-media="future"] img {
  object-position: 49% 50%;
  /* 黒いTシャツの文字が読める明るさを保ちつつ、青空の彩度を抑えます。 */
  filter: saturate(0.28) contrast(1.03) brightness(0.87);
}

.about-story-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding: clamp(18px, 3.2vh, 36px) clamp(34px, 5vw, 78px);
}

.about-story-copy-inner {
  width: min(100%, 42rem);
  margin: auto;
}

.about-story-heading {
  margin-bottom: clamp(14px, 2.2vh, 24px);
}

.about-story-title {
  margin: 0 0 clamp(12px, 1.8vh, 20px);
  color: rgba(53, 40, 29, 0.62);
  font-family: var(--font-main);
  font-size: clamp(1rem, min(1.45vw, 2.5vh), 1.35rem);
  font-weight: 500;
  line-height: 1.5;
}

.about-story-heading h2 {
  max-width: 17em;
  margin: 0;
  color: rgba(53, 40, 29, 0.94);
  font-family: var(--font-main);
  font-size: clamp(1.75rem, min(2.3vw, 4.2vh), 2.7rem);
  font-weight: 500;
  line-height: 1.34;
  text-wrap: balance;
}

.about-story-heading h2 span {
  display: block;
}

.about-story-heading h2 .about-title-phrase {
  display: inline-block;
  white-space: nowrap;
}

.about-story-body {
  width: 100%;
  max-width: 42em;
}

.about-story-body p {
  margin: 0;
  color: rgba(53, 40, 29, 0.77);
  font-size: clamp(1rem, min(1.04vw, 2.15vh), 1.06rem);
  font-weight: 400;
  line-height: 1.72;
}

.about-story-body p + p {
  margin-top: 0.62em;
}

.about-story-body strong {
  color: rgba(53, 40, 29, 0.96);
  font-weight: 500;
}

.about-story-footer {
  margin-top: clamp(12px, 1.9vh, 20px);
  padding-top: clamp(8px, 1.3vh, 14px);
  border-top: 1px solid rgba(88, 66, 45, 0.16);
}

.about-return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(53, 40, 29, 0.58);
  font-size: clamp(0.86rem, 0.92vw, 0.94rem);
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgba(53, 40, 29, 0.24);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 240ms ease, text-decoration-color 240ms ease;
}

@media (min-width: 901px) and (max-height: 820px) {
  .about-story-copy {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .about-story-heading {
    margin-bottom: 12px;
  }

  .about-story-title {
    margin-bottom: 10px;
  }

  .about-story-heading h2 {
    font-size: clamp(1.68rem, 2.15vw, 2rem);
    line-height: 1.3;
  }

  .about-story-body p {
    line-height: 1.62;
  }

  .about-story-body p + p {
    margin-top: 0.48em;
  }

  .about-story-footer {
    margin-top: 10px;
    padding-top: 7px;
  }
}

.about-return-link:hover {
  color: var(--service-ink);
  text-decoration-color: currentColor;
}

@media (max-width: 900px) {
  .about-detail-page {
    --about-header-height: 138px;
  }

  .about-detail-page .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 76px 48px;
    gap: 0 12px;
    align-items: center;
    min-height: var(--about-header-height);
    padding: max(6px, env(safe-area-inset-top)) 12px 8px;
  }

  .about-detail-page .brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    margin-left: 6px;
  }

  .about-detail-page .site-menu {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .about-detail-page .site-navigation {
    top: 0;
    padding-top: var(--about-header-height);
  }

  .about-page-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    padding: 0 2px 2px;
    gap: 2px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .about-page-navigation::-webkit-scrollbar {
    display: none;
  }

  .about-page-navigation button {
    min-width: auto;
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .about-page-navigation button::after {
    right: 20%;
    bottom: 1px;
    left: 20%;
  }

  .about-story {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    margin-top: var(--about-header-height);
    height: auto;
    min-height: 0;
    overflow-x: clip;
    overflow-y: visible;
    background-attachment: scroll;
    overscroll-behavior-y: auto;
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .about-era {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    scroll-margin-top: var(--about-header-height);
    scroll-snap-align: none;
  }

  .about-story-media {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .about-story-media[data-about-media="20-years-later"],
  .about-story-media[data-about-media="reiwa"],
  .about-story-media[data-about-media="future"] {
    aspect-ratio: 4 / 5;
  }

  .about-story-media[data-about-media="1972"],
  .about-story-media[data-about-media="20-years-later"],
  .about-story-media[data-about-media="changing-times"] {
    aspect-ratio: auto;
  }

  .about-story-media[data-about-media="1972"] img,
  .about-story-media[data-about-media="20-years-later"] img,
  .about-story-media[data-about-media="changing-times"] img {
    display: block;
    height: auto;
  }

  .about-story-copy {
    order: 2;
    display: block;
    height: auto;
    min-height: auto;
    padding: clamp(52px, 14vw, 76px) 24px max(96px, calc(env(safe-area-inset-bottom) + 78px));
  }

  .about-story-copy-inner {
    width: 100%;
    max-width: 40rem;
  }

  .about-story-heading {
    margin-bottom: clamp(42px, 12vw, 58px);
  }

  .about-story-title {
    margin-bottom: 28px;
    font-size: clamp(1.1rem, 5vw, 1.34rem);
  }

  .about-story-heading h2 {
    max-width: 13em;
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.46;
  }

  .about-story-body {
    max-width: none;
  }

  .about-story-body p {
    font-size: clamp(1rem, 4.25vw, 1.08rem);
    line-height: 2;
  }

  .about-story-body p + p {
    margin-top: 1.28em;
  }

  .about-story-footer {
    margin-top: 72px;
    padding-top: 28px;
  }

  .about-return-link {
    font-size: 0.9rem;
  }

  .about-story-media[data-about-media="reiwa"] img {
    object-position: 50% 50%;
  }

  .about-story-media[data-about-media="future"] img {
    object-position: 49% 50%;
  }
}

@media (max-width: 360px) {
  .about-story-copy {
    padding-right: 20px;
    padding-left: 20px;
  }

  .about-story-heading h2 {
    font-size: 1.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-story {
    scroll-behavior: auto;
  }

  .about-page-navigation button,
  .about-page-navigation button::after,
  .about-return-link {
    transition: none;
  }
}
