@charset "utf-8";

/* =========================================================
   ABOUT — 5枚のポップアップ
   01 が最前面、05 が最背面。手前から1枚ずつ送っていく。
   ========================================================= */

/* ステートメント下の「詳しくはこちら」 */
.statement__more { margin-top: 26px; display: flex; justify-content: flex-end; }
.statement__more .btn-more {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink);
}

.about {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  background: rgba(14, 14, 12, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: about-fade .24s ease-out;
}
.about[hidden] { display: none; }
@keyframes about-fade { from { opacity: 0 } to { opacity: 1 } }

/* ---------- 重なり ---------- */
.about__stack {
  position: relative;
  width: calc(92vw - 36px);
  height: calc(78vh - 44px);
}

.about-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  transform-origin: 50% 50%;
  /* 重なりの組み替えは短く、キレよく */
  transition: transform .18s cubic-bezier(.2, 1.5, .4, 1), opacity .14s linear, filter .18s linear;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
  outline: 1px solid rgba(255, 255, 255, .16);
  outline-offset: -1px;
}

/* 出現：パン、と弾んで出す */
@keyframes about-pop {
  0%   { opacity: 0; transform: var(--rest) scale(calc(var(--rs, 1) * .82)); }
  55%  { opacity: 1; transform: var(--rest) scale(calc(var(--rs, 1) * 1.04)); }
  100% { opacity: 1; transform: var(--rest) scale(var(--rs, 1)); }
}
.about-card.is-popping {
  animation: about-pop .26s cubic-bezier(.2, 1.4, .4, 1) both;
}

/* 送り出したカード：スッと消す */
.about-card.is-gone {
  transform: translate(0, -3%) scale(1.06);
  opacity: 0;
  pointer-events: none;
  transition: transform .16s ease-out, opacity .16s ease-out;
}

/* ---------- 背景写真 ---------- */
.about-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .38;
}
.about-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,12,.35) 0%, rgba(14,14,12,.72) 100%);
  pointer-events: none;
}

/* ---------- 上部バー ---------- */
.about-card__bar {
  position: relative; z-index: 2;
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
}
.about-card__step {
  font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.72);
}
.about-card__total { color: rgba(255,255,255,.4); }
.about-card__label { margin-left: 10px; color: rgba(255,255,255,.9); }

.about-card__close {
  width: 26px; height: 26px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--white);
  opacity: .8; transition: opacity .2s;
}
.about-card__close:hover { opacity: 1; }
.about-card__close svg { width: 100%; height: 100%; display: block; }

/* ---------- 本文 ---------- */
.about-card__body {
  position: relative; z-index: 2;
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  overflow-y: auto;
}

.about-card__catch {
  font-size: 24px; font-weight: 500; line-height: 1.55;
  letter-spacing: .01em;
  max-width: 22em;
}

.about-card__sub {
  margin-top: 18px;
  font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.92);
}

.about-card__text {
  margin-top: 22px;
  font-size: 12px; line-height: 2.1; color: rgba(255,255,255,.72);
  max-width: 34em;
}

/* 04 のみ英字が主役 */
.about-card--en .about-card__catch {
  font-size: 40px; font-weight: 700; letter-spacing: .04em; line-height: 1.2;
}

/* ---------- 下部 ---------- */
.about-card__foot {
  position: relative; z-index: 2;
  flex: none;
  padding: 0 var(--gutter) 28px;
  display: flex; justify-content: flex-end;
}
.about-card__next {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: var(--white); color: var(--ink);
  border: 0; cursor: pointer;
  font-size: 13px; letter-spacing: .08em;
  transition: opacity .2s;
}
.about-card__next:hover { opacity: .82; }
.about-card__next svg { width: 15px; height: 15px; }

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 768px) {
  .about { padding: 48px 40px; }

  .about__stack {
    width: min(70vw, 980px);
    height: min(72vh, 680px);
    min-width: 560px;
  }

  .about-card {
    box-shadow: 0 26px 64px rgba(0, 0, 0, .5);
  }

  .about-card__bar { padding: 16px 28px; }
  .about-card__body { padding: 0 48px; }
  .about-card__foot { padding: 0 48px 36px; }

  .about-card__catch { font-size: 32px; line-height: 1.5; }
  .about-card--en .about-card__catch { font-size: 60px; }
  .about-card__sub { font-size: 15px; margin-top: 22px; }
  .about-card__text { margin-top: 26px; font-size: 13px; }
}
