/* =========================================================
   FULL HEIGHT DOOR® BRAND STORY PAGE
   ---------------------------------------------------------
   対象：
   BRAND STORY専用ページ

   主な内容：
   - BODY
   - MOVIE HERO
   - ページ内アンカーナビ
   - HISTORY
   - QUALITY
   - CRAFTSMANSHIP
   - FUTURE

   共通部分：
   - HEADER
   - PRODUCTS PANEL
   - GLOBAL MENU
   - FOOTER

   上記共通部分は top.css を使用。

   レスポンシブ：
   - PC
   - iPad / iPad Air
   - Smartphone

   HISTORY：
   - 大きな横長画像で印象的に見せる
   - 画像下に見出し・本文

   QUALITY / CRAFTSMANSHIP / FUTURE：
   - 左画像 / 右テキスト
   ========================================================= */


/* =========================================================
   BODY
========================================================= */

body.brand-story-body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: #050505;
  color: #fff;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
  letter-spacing: .04em;
  overflow-x: hidden;
}


/* =========================================================
   PAGE
========================================================= */

.brand-story-page {
  width: 100%;
  background: #050505;
  color: #fff;
  overflow: hidden;
}


/* =========================================================
   BRAND STORY MOVIE HERO
========================================================= */

.brand-story-page-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  background: #050505;
}


/* =========================================================
   HERO VIDEO
========================================================= */

.brand-story-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  filter: grayscale(.55) brightness(.74) contrast(1.20) saturate(.8);
}

.brand-story-hero-video--pc {
  display: block;
}

.brand-story-hero-video--tablet,
.brand-story-hero-video--sp {
  display: none;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.brand-story-page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, .22) 70%, rgba(0, 0, 0, .66) 100%);
}


/* =========================================================
   HERO TYPOGRAPHY
   ---------------------------------------------------------
   HENGEのように映像を主役にし、
   タイトル・サブコピー・リンクを左下へ集約
========================================================= */

.brand-story-page-hero__inner {
  position: absolute;
  left: 8.8vw;
  bottom: 10vh;
  z-index: 2;
  width: auto;
  max-width: 82vw;
  padding: 0;
}

.brand-story-page-hero__title {
  margin: 0;
  font-family: "DIN Next LT Pro Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(54px, 5vw, 82px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: #fff;
}

.brand-story-page-hero__copy {
  margin: 10px 0 0;
  font-family: "DIN Next LT Pro Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
}

.brand-story-page-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-family: "DIN Next LT Pro Condensed", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .06em;
  color: #fff;
  text-decoration: none;
  transition: opacity .3s ease;
}

.brand-story-page-hero__link:hover {
  opacity: .65;
}

.brand-story-page-hero__link span {
  font-size: 11px;
}


/* =========================================================
   HERO SCROLL
========================================================= */

.brand-story-page-hero__scroll {
  position: absolute;
  right: 32px;
  bottom: 42px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, .58);
  pointer-events: none;
}

.brand-story-page-hero__scroll span {
  font-family: "DIN Next LT Pro Condensed", "Inter", sans-serif;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
}

.brand-story-page-hero__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 54px;
  overflow: hidden;
  background: rgba(255, 255, 255, .22);
}

.brand-story-page-hero__scroll i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: #fff;
  animation: brandStoryScrollLine 2.2s ease-in-out infinite;
}

@keyframes brandStoryScrollLine {
  0% {
    transform: translateY(0);
  }

  55% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(200%);
  }
}


/* =========================================================
   BRAND STORY ANCHOR NAV
========================================================= */

.brand-story-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: rgba(5, 5, 5, .96);
  border-top: 1px solid rgba(255, 255, 255, .10);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.brand-story-nav__inner {
  width: min(1200px, 86vw);
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(36px, 5vw, 80px);
}

.brand-story-nav__link {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: "DIN Next LT Pro Condensed", "Inter", sans-serif;
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .10em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .58);
  transition: color .35s ease;
}

.brand-story-nav__link span {
  flex: 0 0 auto;
  font-size: .68em;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .30);
}

.brand-story-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width .45s cubic-bezier(.16, 1, .3, 1);
}

.brand-story-nav__link:hover {
  color: #fff;
}

.brand-story-nav__link:hover::after {
  width: 100%;
}


/* =========================================================
   CHAPTER COMMON
========================================================= */

.brand-story-chapter {
  position: relative;
  padding: clamp(110px, 11vw, 180px) 7vw;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  scroll-margin-top: 100px;
}

.brand-story-chapter__inner {
  width: min(1300px, 100%);
  margin: 0 auto;
}


/* =========================================================
   CHAPTER NUMBER
========================================================= */

.brand-story-chapter__number {
  margin: 0 0 clamp(54px, 6vw, 90px);
  font-family: "DIN Next LT Pro Condensed", "Inter", sans-serif;
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: .10em;
  color: rgba(255, 255, 255, .68);
}


/* =========================================================
   HISTORY
   ---------------------------------------------------------
   HISTORYのみ大きな横長画像で印象的に表示
========================================================= */

.brand-story-chapter--history {
  padding-top: clamp(120px, 12vw, 190px);
  padding-bottom: clamp(130px, 13vw, 210px);
}


/* =========================================================
   HISTORY LARGE IMAGE
========================================================= */

.brand-story-history__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background: #111;
}

.brand-story-history__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(.92);
  transform: scale(1.01);
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1), filter .8s ease;
}

.brand-story-chapter--history:hover .brand-story-history__media img {
  transform: scale(1.025);
  filter: brightness(.97);
}


/* =========================================================
   HISTORY TEXT
========================================================= */

.brand-story-history__text {
  width: min(760px, 58%);
  margin-top: clamp(42px, 5vw, 72px);
}

.brand-story-history__text h2 {
  margin: 0 0 clamp(28px, 3vw, 42px);
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .03em;
  color: #fff;
}

.brand-story-history__text p {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 2;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .76);
}


/* =========================================================
   QUALITY / CRAFTSMANSHIP / FUTURE
   LEFT IMAGE / RIGHT TEXT
========================================================= */

.brand-story-chapter__content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: center;
}


/* =========================================================
   CHAPTER IMAGE
========================================================= */

.brand-story-chapter__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #111;
}

.brand-story-chapter__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(.92);
  transform: scale(1.01);
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .8s ease;
}

.brand-story-chapter:hover .brand-story-chapter__media img {
  transform: scale(1.025);
  filter: brightness(.97);
}

/* =========================================================
   CRAFTSMANSHIP
   Vertical Layout
========================================================= */

#craftsmanship .brand-story-chapter__content {
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

#craftsmanship .brand-story-chapter__media {
  width: 100%;
  aspect-ratio: 16 / 9;
}

#craftsmanship .brand-story-chapter__text {
  max-width: 760px;
}

/* =========================================================
   CHAPTER TEXT
========================================================= */

.brand-story-chapter__text {
  width: 100%;
  max-width: 620px;
}

.brand-story-chapter__text h2 {
  margin: 0 0 clamp(28px, 3vw, 42px) 0;
  font-size: clamp(8px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .03em;
  color: #fff;
}

.brand-story-chapter__text p {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 2;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .76);
}


/* =========================================================
   REVEAL
========================================================= */

.brand-story-chapter.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}

.brand-story-chapter.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   iPad / iPad Air
========================================================= */

@media (max-width: 1200px) {

  .brand-story-nav__inner {
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 28px 0;
    justify-content: flex-start;
    gap: clamp(32px, 5vw, 56px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .brand-story-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .brand-story-nav__link {
    font-size: clamp(14px, 1.8vw, 18px);
  }

  .brand-story-history__media {
    aspect-ratio: 16 / 9;
  }

  .brand-story-history__text {
    width: 68%;
  }

  .brand-story-chapter {
    padding: 100px 6vw;
  }

  .brand-story-chapter__content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .brand-story-chapter__number {
    margin-bottom: 54px;
  }

  .brand-story-chapter__text h2 {
    font-size: clamp(28px, 3.6vw, 30px);
  }

  .brand-story-chapter__text p {
    font-size: clamp(13px, 1.35vw, 15px);
  }

}


/* =========================================================
   iPad / iPad Air PORTRAIT
========================================================= */

@media (max-width: 1200px) and (orientation: portrait) {

  .brand-story-hero-video--pc {
    display: none;
  }

  .brand-story-hero-video--tablet {
    display: block;
  }

  .brand-story-hero-video--sp {
    display: none;
  }

  .brand-story-page-hero {
    height: 100svh;
    min-height: 700px;
  }

  .brand-story-page-hero__inner {
    left: 6vw;
    bottom: 9vh;
    max-width: 88vw;
  }

  .brand-story-page-hero__title {
    font-size: clamp(52px, 8vw, 76px);
  }

  .brand-story-page-hero__copy {
    font-size: clamp(20px, 3vw, 28px);
  }

}


/* =========================================================
   Smartphone
========================================================= */

@media (max-width: 768px) {

  body.brand-story-body {
    width: 100%;
    overflow-x: hidden;
  }


  /* ---------------------------------------------------------
     HERO
  --------------------------------------------------------- */

  .brand-story-page-hero {
    height: 100svh;
    min-height: 600px;
  }

  .brand-story-page-hero__inner {
    left: 24px;
    bottom: 10vh;
    width: calc(100% - 48px);
    max-width: none;
  }

  .brand-story-page-hero__title {
    font-size: clamp(44px, 12vw, 60px);
    line-height: .92;
  }

  .brand-story-page-hero__copy {
    margin-top: 9px;
    font-size: clamp(17px, 5vw, 23px);
    line-height: 1.05;
  }

  .brand-story-page-hero__link {
    margin-top: 18px;
    font-size: 10px;
  }

  .brand-story-page-hero__scroll {
    right: 16px;
    bottom: 34px;
  }

  .brand-story-page-hero__scroll i {
    height: 42px;
  }


  /* ---------------------------------------------------------
     MOBILE NAV
     横一列 + スワイプ
  --------------------------------------------------------- */

  .brand-story-nav {
    width: 100%;
    overflow: hidden;
  }

  .brand-story-nav__inner {
    width: 100%;
    margin: 0;
    padding: 24px 24px 27px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-left: 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  .brand-story-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .brand-story-nav__link {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .09em;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .brand-story-nav__link span {
    font-size: 9px;
  }

  .brand-story-nav__link::after {
    bottom: -7px;
  }


  /* ---------------------------------------------------------
     HISTORY
  --------------------------------------------------------- */

  .brand-story-chapter--history {
    padding-top: 82px;
    padding-bottom: 100px;
  }

  .brand-story-history__media {
    aspect-ratio: 4 / 3;
  }

  .brand-story-history__text {
    width: 100%;
    margin-top: 36px;
  }

  .brand-story-history__text h2 {
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.5;
  }

  .brand-story-history__text p {
    font-size: 13px;
    line-height: 1.95;
  }


  /* ---------------------------------------------------------
     OTHER CHAPTERS
  --------------------------------------------------------- */

  .brand-story-chapter {
    padding: 82px 24px;
    scroll-margin-top: 82px;
  }

  .brand-story-chapter__inner {
    width: 100%;
  }

  .brand-story-chapter__number {
    margin-bottom: 34px;
    font-size: 15px;
    letter-spacing: .10em;
  }

  .brand-story-chapter__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brand-story-chapter__media {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .brand-story-chapter__text {
    width: 100%;
    max-width: none;
  }

  .brand-story-chapter__text h2 {
    margin-bottom: 24px;
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.5;
  }

  .brand-story-chapter__text p {
    font-size: 13px;
    line-height: 1.95;
    letter-spacing: .025em;
  }

}


/* =========================================================
   Smartphone PORTRAIT MOVIE
========================================================= */

@media (max-width: 768px) and (orientation: portrait) {

  .brand-story-hero-video--pc,
  .brand-story-hero-video--tablet {
    display: none;
  }

  .brand-story-hero-video--sp {
    display: block;
  }

}


/* =========================================================
   Smartphone LANDSCAPE
========================================================= */

@media (max-width: 932px) and (orientation: landscape) {

  .brand-story-hero-video--pc {
    display: block;
  }

  .brand-story-hero-video--tablet,
  .brand-story-hero-video--sp {
    display: none;
  }

  .brand-story-page-hero {
    height: 100svh;
    min-height: 430px;
  }

  .brand-story-page-hero__inner {
    left: 6vw;
    bottom: 9vh;
  }

  .brand-story-page-hero__title {
    font-size: clamp(48px, 7vw, 72px);
  }

  .brand-story-page-hero__copy {
    font-size: clamp(18px, 3vw, 26px);
  }

}


/* =========================================================
   SMALL SMARTPHONE
========================================================= */

@media (max-width: 390px) {

  .brand-story-page-hero__inner {
    left: 20px;
    width: calc(100% - 40px);
  }

  .brand-story-nav__inner {
    padding-left: 20px;
    padding-right: 20px;
    gap: 28px;
    scroll-padding-left: 20px;
  }

  .brand-story-nav__link {
    font-size: 13px;
  }

  .brand-story-chapter {
    padding-left: 20px;
    padding-right: 20px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .brand-story-chapter.reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .brand-story-chapter__media img,
  .brand-story-history__media img {
    transform: none;
    transition: none;
  }

  .brand-story-chapter:hover .brand-story-chapter__media img,
  .brand-story-chapter--history:hover .brand-story-history__media img {
    transform: none;
  }

  .brand-story-page-hero__scroll i::after {
    animation: none;
  }

}