/* History（history/index.html）の見た目。2026-11-10 リニューアルで追加。
   文字の大きさ・余白・写真の暗さは TOP の章（main.css の body#main article）に合わせている。
   ページの土台は規約と同じ body#legal（ロゴを押すと TOP に戻る）。 */

body.history {
  background-color: #000;
  color: #fff;
}

/* 右上の予約ボタン：TOP では読み込み後に現れる。このページでは最初から出す */
body.history aside#aside-reservation {
  opacity: 1;
}

body.history a {
  color: #fff;
}

/* ふわっと出る（TOP の章と同じ 0.8 秒）。history.js が画面に入ったものに .open を付ける */
body.history [data-fade] {
  transition: opacity 0.8s ease-in-out;
  opacity: 0;
}

body.history [data-fade].open {
  opacity: 1;
}

/* ---- 章の共通 ---- */

body.history .history__content {
  position: relative;
  z-index: 2;
  width: calc(100% - 90px);
  padding: 90px 0 100px 90px;
}

body.history .history__content h2 {
  font-family: UniversalSans-629, sans;
  font-size: 18px;
  font-weight: 300;
  line-height: 18px;
  letter-spacing: 0;
  margin: 0 0 45px -40px;
}

body.history .history__content h2 span {
  display: block;
  opacity: 0.4;
  font-size: 12px;
  line-height: 12px;
  margin-top: 10px;
}

body.history .history__content p.en {
  font-family: UniversalSans-518, sans;
  font-size: 13px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0;
  margin: 0; /* 日本語と英語は片方だけを出す（renewal.css）ので、間の余白はいらない */
}

body.history .history__content p.ja {
  margin: 0;
}

/* 行の終わりに 1〜2 文字だけ残らないように */
body.history .history__content p {
  line-break: strict;
  text-wrap: pretty;
}

/* 文章のあとの SNS・リンク */
body.history .history-archive,
body.history .history-links {
  margin-top: 40px;
}

body.history .history__content p.ja {
  font-family: Zen Kaku Gothic New, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.02em;
}

/* 年（2022・2023）。章の目印になる大きな数字 */
body.history .history-year {
  font-family: UniversalSans-300, sans;
  font-size: 120px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 40px -48px;
}

/* ---- はじめ（History の見出し）。背景はラウンジの写真のめくる束（2026-11-10 ユーザー指示） ----
   画面いっぱいに写真を敷き、上を黒からぼかして見出しを乗せる。読み込むと黒い紙がめくれて写真が現れる */

body.history .history-hero {
  position: relative;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  min-height: 560px;
  overflow: hidden;
  background-color: #000;
}

body.history .history-hero__photos {
  position: absolute;
  inset: 0;
}

body.history .history-hero .flats-pages {
  height: 100%;
}

/* 上は黒、下へ向かって写真が見えてくる（見出しが読めるように） */
body.history .history-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.72) 26%, rgba(0, 0, 0, 0.28) 52%, rgba(0, 0, 0, 0) 72%);
}

/* 見出しと文章は写真の上に乗る。写真の角（左下）と矢印（右下）は押せるように、文字の外は素通し */
body.history .history-hero__text {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  pointer-events: none;
}

body.history .history-hero__text a {
  pointer-events: auto;
}

body.history .history-hero__title {
  font-family: UniversalSans-300, sans;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0 0 40px -48px;
}

body.history .history-scroll {
  display: inline-block;
  margin-top: 40px;
  font-family: UniversalSans-300, sans;
  font-size: 12px;
  line-height: 12px;
}

body.history .history-scroll i {
  display: inline-block;
  vertical-align: middle;
  width: 80px;
  height: 1px;
  margin-left: 12px;
  background-color: #fff;
}

/* ---- 章：大きな年を左に、文章を右隣に（2026-11-10 ユーザー指示。パソコンとタブレット） ---- */
@media only screen and (min-width: 768px) {
  body.history .history-chapter .history__content {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 140px);
    align-items: start;
  }

  body.history .history-chapter .history-year {
    grid-column: 1;
    grid-row: 1 / span 20;
    margin: -14px 0 0 -48px;
  }

  body.history .history-chapter .history__content > :not(.history-year) {
    grid-column: 2;
  }

  body.history .history-chapter .history__content h2 {
    margin-left: 0;
  }
}

/* ---- 章（写真を背景に敷く。TOP と同じく黒を 50% かぶせる） ---- */

body.history .history-chapter {
  position: relative;
  background-color: #000;
  overflow: hidden;
}

body.history .history-chapter__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #000;
}

body.history .history-chapter__bg-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: #000;
  opacity: 0.5;
}

body.history .history-chapter__bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

body.history #history-restaurant__bg-img {
  background-image: url(../images/top/background-info-restaurant-pc.webp);
}

body.history #history-lounge__bg-img {
  background-image: url(../images/top/background-info-bar-pc.webp);
}

/* 章のあいだの細い線（写真なしのとき、章の切れ目がわかるように） */
body.history .history-chapter + .history-chapter {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ラウンジの当時の SNS */
body.history .history-archive span {
  font-family: UniversalSans-629, sans;
  font-size: 9px;
  line-height: 9px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 15px;
  opacity: 0.6;
}

body.history .history-archive a {
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  transition: opacity 0.2s ease-in;
}

body.history .history-archive a:hover {
  opacity: 0.7;
}

body.history .history-archive svg {
  display: block;
  width: 20px;
  height: auto;
}

/* Restaurant / Bar・Reservation（Produced by Asyatt. の章のリンクと同じ形） */
body.history .history-links a {
  font-family: UniversalSans-629, sans;
  font-size: 15px;
  font-weight: 300;
  line-height: 25px;
  display: inline-block;
  margin: 0 45px 15px 0;
}

body.history .history-links a svg {
  transition: transform 0.2s ease-in-out;
  margin-right: 15px;
  vertical-align: middle;
  height: 25px;
  width: auto;
}

body.history .history-links a:hover svg {
  transform: translateX(10px);
}

/* ---- 終わり ---- */

body.history .history-back {
  padding: 20px 0 40px 90px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body.history .history-back a.linker-back {
  font-family: UniversalSans-629, sans;
  font-size: 13px;
  line-height: 13px;
  display: inline-block;
  margin: 60px 0 40px -40px;
  padding-bottom: 7px;
  border-bottom: 1px solid #fff;
}

body.history .history-back a.linker-back svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
  width: 8px;
  height: auto;
  transform: rotate(180deg);
}

/* ---- タブレット ---- */

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  body.history .history__content {
    width: calc(100% - 140px);
  }
}

/* ---- スマホ ---- */

@media only screen and (max-width: 767px) {
  body.history .history__content {
    width: calc(100% - 50px);
    padding: 120px 0 120px 25px;
  }

  body.history .history__content h2 {
    font-size: 17px;
    line-height: 17px;
    margin: 0 0 25px;
  }

  body.history .history__content h2 span {
    font-size: 13px;
    line-height: 13px;
  }

  body.history .history__content p.en {
    margin-bottom: 0;
  }

  body.history .history__content p.ja {
    font-weight: 400;
  }

  body.history .history-year {
    font-size: 72px;
    margin: 0 0 30px -4px;
  }

  body.history .history-hero__title {
    font-size: 44px;
    margin: 0 0 30px;
  }

  body.history .history-hero__text {
    padding-top: 110px;
  }

  body.history #history-restaurant__bg-img {
    background-image: url(../images/top/background-info-restaurant-sp.webp);
  }

  body.history #history-lounge__bg-img {
    background-image: url(../images/top/background-info-bar-sp.webp);
    background-position: 40% 50%;
  }

  body.history .history-archive {
    margin-top: 40px;
  }

  body.history .history-links {
    margin-top: 40px;
  }

  body.history .history-links a {
    font-size: 11px;
    line-height: 20px;
    margin-right: 30px;
  }

  body.history .history-links a svg {
    height: 20px;
    margin-right: 10px;
  }



  body.history .history-back {
    padding-left: 25px;
  }

  body.history .history-back a.linker-back {
    margin-left: 0;
  }

}

/* 2022 の章の背景（雪の日のラウンジ）は明るいので、文字が読めるよう黒を少し濃く */
body.history .history-chapter--lounge .history-chapter__bg-mask {
  opacity: 0.6;
}
