/*
 * 引き継ぎ後の上書き用CSS。
 * style.css はSCSSコンパイル済みファイルのため直接編集せず、変更はこのファイルに追加する。
 */

/* ホバー演出の線色(画像の枠・Contact座布団のアウトライン共通) */
:root {
  --hover-line-color: #C4C4C4;
}

/* Secondary Title(英語副題)のスタイル。
   旧設定はプラグインのフォーマット文字列にインラインCSSで直書きされていた
   (padding-left:10px が「謎の左マージン」の原因)。クラス化してここで管理する */
.secondary-title {
  color: black;
  font-size: 12px;
  line-height: 160%;
  display: block;
  margin-top: 10px;
}

/* View More等のホバー下線を2px→1pxに */
.c-btn .text::after {
  height: 1px;
}
/* 矢印のマウス追従を「即時」から「遅れて吸い付く」に(uniel.jp準拠)。
   カーソルを追う時も離れて戻る時も0.7sのexpo-outで滑らかに */
.c-btn .arrow {
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

/* TOP・Informationページ共通のカード内の日付・カテゴリ表記を10pxに
   (記事詳細ヘッダーの.info-topには適用しない) */
.h-information .info-top time.text-en,
.h-information .info-top .info-category,
.p-information .info-top time.text-en,
.p-information .info-top .info-category {
  font-size: 10px;
}

/* ---- 見出しアニメーション(文字ごとにベースラインから立ち上がる) ----
   js/custom.js が .js-slideup 内のテキストを .js-char に分割し、
   文字ごとの transition-delay をインラインで付与する。
   .action の付与(表示トリガー)は従来通り main.js のスクロール判定 */

/* 分割済みの見出しでは、外側スパンの旧ブロックアニメーションを無効化 */
.js-slideup.is-chars > span {
  transform: none;
  transition: none;
}
.js-slideup.is-chars {
  overflow: visible; /* クリップは文字ごとのclip-pathで行う */
}
/* goldenrecord.jp方式: 文字ごとにclip-pathが下から剥がれつつ、
   文字自体も下からせり上がる */
.js-slideup .js-char {
  display: inline-block;
  white-space: pre; /* スペースの幅を保持 */
  clip-path: inset(0 0 100%);
  transform: translateY(60%);
  color: #ADADAD; /* グレーで現れて、ランダムな順で黒に締まる */
  transition:
    clip-path 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    color 0.4s ease;
}
.js-slideup.action .js-char {
  clip-path: inset(-0.2em -0.1em -0.2em);
  transform: translateY(0);
  color: inherit;
}
/* サブタイトルの「●」装飾は span 全般に効く書き方のため、
   文字分割で生まれた .js-char には付かないよう打ち消す(●は外側スパンに残る) */
.page-header .page-header__inner .title-box .page-text .js-char {
  padding-left: 0;
}
.page-header .page-header__inner .title-box .page-text .js-char::before {
  content: none;
}

/* ---- リード文アニメーション(行ごとにベースラインから浮き上がる) ----
   js/custom.js が .js-lineup 内の文字を「マスク+文字」に分割し、
   実際の表示行を判定して行ごとの transition-delay を付与する */
.js-lineup .js-word {
  white-space: nowrap; /* 欧文単語の途中改行を防ぐ */
}
.js-lineup .js-char-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* イタリック体の傾きや字形のはみ出しがマスクで刈られないよう、
     パディングで余白を作り同量のネガティブマージンで字送りを保つ */
  padding: 0.1em 0.12em;
  margin: -0.1em -0.12em;
}
.js-lineup .js-char {
  display: inline-block;
  white-space: pre;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.js-lineup.action .js-char {
  transform: translateY(0);
}

/* ---- YakuHanJPs: 日本語の約物(カッコ類)を半角にするWebフォント ----
   全ページ・全スタックに適用。YakuHanは約物グリフしか持たないため
   欧文フォント(univers/helvetica)に混ぜても英字には影響しない */
html {
  font-family: "YakuHanJPs", fot-cezanne-pron, sans-serif;
}
.u-en {
  font-family: "YakuHanJPs", "univers-next-pro", sans-serif;
}
.u-menu {
  font-family: "YakuHanJPs", "helvetica-lt-pro", sans-serif;
}

/* ---- 文字詰め: メトリクス詰め(palt)を全体に適用 ----
   ※文字分割アニメーションを当てた見出し類は1文字ずつ独立要素になるため
   文字間のペアカーニングは効かない(各文字内のプロポーショナル字形のみ有効) */
body {
  font-feature-settings: "palt" 1;
}

/* ---- 画像ホバー: 画像内ズームアップ(evolvebeauty.jpのTopic参考) ----
   1秒のease・scale(1.1)。枠はoverflow hiddenで画像内だけが拡大する */
.p-information .p-information__inner .p-information__list a .thumbnail img,
.h-information .h-information__list a .thumbnail img {
  /* 通常時=戻りのtransition: 行きより長めで「戻り切る寸前ねっとり」を出す */
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.p-information .p-information__inner .p-information__list a:hover .thumbnail img,
.h-information .h-information__list a:hover .thumbnail img {
  transform: scale(0.96);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* 行き。元CSSのhover側transition(0.3s ease)を上書き */
}

/* テキストは一文字ずつバラバラの順でグレーに変わる
   (js/custom.jsが.js-gray-charに分割し、ランダムなdelayを付与) */
.info-wrap .js-gray-char {
  transition: color 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.h-information .h-information__list a:hover .info-wrap .js-gray-char,
.p-information .p-information__inner .p-information__list a:hover .info-wrap .js-gray-char {
  color: #ADADAD;
}
/* サムネイルの重ね合わせ用(グレースケール複製・Archivesのホバー画像) */
.p-information .p-information__inner .p-information__list a .thumbnail,
.h-information .h-information__list a .thumbnail {
  position: relative;
}

/* ---- TOP: Information追従エリアの最新ニュース ---- */
.p-information .latest-news {
  display: block;
  width: fit-content; /* ホバー感知範囲をコンテンツ幅だけに */
  margin-top: min(3.3vw, 40px);
  text-decoration: none;
  color: inherit;
}
.p-information .latest-news__label {
  font-size: 12px;
  margin-bottom: 10px;
}
.p-information .latest-news__thumb {
  overflow: hidden;
  width: min(8.5vw, 110px);
  /* 下から上へトリムが捲れて現れる(.actionはmain.jsのスクロール判定で付与) */
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.p-information .latest-news.is-visible .latest-news__thumb {
  clip-path: inset(0);
}
/* ラベルの文字はリード文と同じ出方: ラベル自体をマスクにして
   行ごと下から浮き上がる。トリガーは追従連動のis-visible */
.p-information .latest-news__label {
  overflow: hidden;
}
.latest-news__label .js-char {
  display: inline-block;
  white-space: pre;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0s !important; /* 文字ごとの時差なし=1行まるごと浮き上がる */
}
.latest-news.is-visible .latest-news__label .js-char {
  transform: translateY(0);
}
.p-information .latest-news__thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.p-information .latest-news:hover .latest-news__thumb img {
  transform: scale(0.96);
}

/* ---- Archives詳細ページ(Figma archive_pc準拠) ----
   コンテンツ列は800px中央。1440pxデザインの実測値ベース */

/* サムネイル・本文を800px中央に */
body.single-archives .article-content .thumbnail {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
/* 本文のテキストスタイルはInformation詳細(.content-area)をそのまま継承。
   ここでは列幅の統一だけ行う */
body.single-archives .content-area {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* コンテンツブロック: 1col=1枚を中央大きめ / 2col=ブロック2つ横並び */
.archive-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 800px;
  margin: min(9.7vw, 140px) auto 0;
}
.archive-block.is-1col {
  grid-column: 1 / -1;
  max-width: 515px;
  margin: 0 auto;
  width: 100%;
}
.archive-block__img img {
  width: 100%;
  height: auto;
  display: block;
}
.archive-block__body {
  margin-top: 16px;
}
.archive-block__caption {
  font-size: 14px;
  line-height: 180%;
  margin-bottom: 16px;
}
.archive-block__text {
  font-size: 14px;
  line-height: 180%;
}

/* WorksとAll Worksのセクション余白(デザイン: 前セクションから140px) */
.archive-works,
.archive-all-works {
  margin-top: min(9.7vw, 140px);
}

/* 見出しはFigma実測(44px)、件数(20px)は見出しの右上に寄せる */
.works-section-head {
  align-items: flex-start;
  gap: 3px;
}
.works-heading {
  font-size: min(3vw, 44px);
  line-height: 1.2;
}
.works-count {
  font-size: min(1.4vw, 20px);
  margin-top: -2px;
}

/* Worksスライダー: Figma準拠の縦積みカード(画像→キャプション→説明文)
   カード幅は画像幅に追従し、テキストは画像からはみ出さない */
.works-slider .works-slide {
  width: auto;
  margin-right: min(4.1vw, 60px);
}
.works-slider .slide-inner {
  display: inline-block;
}
.works-slider .slide-img-wrap {
  aspect-ratio: auto;
  background: transparent;
}
.works-slider .slide-img-wrap img {
  max-height: min(29.5vw, 425px);
  max-width: min(26.6vw, 384px);
  width: auto;
  height: auto;
  display: block;
}
.works-slider .slide-text {
  padding: 20px 0 0;
  width: 0;
  min-width: 100%; /* 画像が決めたカード幅に合わせて折り返す */
}
.works-slider .slide-caption {
  font-size: 14px;
  line-height: 180%;
  margin-bottom: 16px;
}
.works-slider .slide-description {
  font-size: 14px;
  line-height: 180%;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 1枚目の左端は見出し(コンテンツ左端)に揃える */
.works-slider .slick-list {
  padding-left: 0;
  overflow: visible; /* スクロール後は右へ続くカードが自然に見える */
}
.works-slider {
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .works-slider .works-slide {
    width: 70vw;
    margin-right: 20px;
  }
  .works-slider .slide-img-wrap img { max-height: 90vw; }
  .works-slider .slick-list { padding-left: 0; }
}

/* ---- Archives一覧: InformationのカードUIを流用 ----
   メイン画像(アイキャッチ)にホバーすると展示風景画像に切り替わる */
.h-information .h-information__list .thumbnail {
  position: relative;
}
.h-information .h-information__list a .thumbnail img.thumb-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* シンプルなフェードで1枚目と入れ替わる。縮小のテンポと同期
     (通常時=戻り1.15s / hover側=行き0.8s) */
  opacity: 0;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.h-information .h-information__list a:hover .thumbnail img.thumb-hover {
  opacity: 1;
  /* 1枚目と同じ縮小率で縮む */
  transform: scale(0.96);
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* All Worksの見出しは中央寄せ(Worksは左のまま) */
.archive-all-works .works-section-head {
  justify-content: center;
}

/* 動画: 800px中央 */
.archive-video {
  margin-top: min(9.7vw, 140px);
}
.archive-video__frame {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}
.archive-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Instagram: スマホ縦型カードを中央に(デザイン実測 318×563) */
.archive-instagram {
  margin-top: min(9.7vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
/* Instagramアカウント表記(丸ロゴ+名前) — Figmaデザインの位置に */
.archive-instagram .instagram-account {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 328px;
}
.archive-instagram .instagram-account__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.archive-instagram .instagram-account__circle img {
  width: 26px;
  height: auto;
}
.archive-instagram .instagram-account__name {
  font-size: 14px;
}
.archive-instagram iframe {
  width: 328px;
  height: 580px;
  border: 0;
}

/* Credits: 罫線の下・800px中央・最下部 */
body.single-archives .archive-credits {
  max-width: 800px;
  margin: min(9.7vw, 140px) auto 0;
  border-top: 1px solid #2B2B2B;
  padding-top: 32px;
}
body.single-archives .archive-credits .credits-heading {
  font-size: 22px;
  line-height: 140%;
  font-weight: 400;
  margin-bottom: 12px;
}
body.single-archives .archive-credits .credits-text {
  font-size: 14px;
  line-height: 160%;
}

/* Backボタンは中央 */
body.single-archives .archive-extra .btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

@media screen and (max-width: 767px) {
  .archive-blocks {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
  }
  .archive-block.is-1col { max-width: 100%; }
  body.single-archives .content-area h2 { font-size: 22px; }
  .archive-video { margin-top: 60px; }
  .archive-instagram { margin-top: 60px; }
  body.single-archives .archive-credits { margin-top: 60px; }
}

/* ---- 全画面リビールフッター(goldenrecord.jp参考) ----
   フッターは画面下に固定し、ページ全体を包む不透明カーテン(.page-curtain)が
   スクロールでめくれ上がることで、下からフッターが現れる。
   カーテンがヘッダー含む全コンテンツを覆うため、トップ表示時に
   フッターが透けて見えることはない */
.page-curtain {
  position: relative;
  z-index: 1;
  background: #F4F4F4;
  margin-bottom: 100vh;
  margin-bottom: 100svh;
  display: flow-root; /* 子のマージン相殺で上端に隙間ができ、背後の白フッターが帯状に見えるのを防ぐ */
}
.js-footer-sentinel {
  height: 1px;
}
.p-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  overflow: hidden;
}
/* 旧・視差アニメーション(JSがtransformを当てる)を無効化 */
.p-footer .footer__container {
  transform: none !important;
  height: 100%;
  position: relative;
  z-index: 1;
}
/* KVと同じ動きの光をフッターにも(トップページ限定・背景が白なのでグレーの光に反転) */
body.home .p-footer::before,
body.home .p-footer::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
body.home .p-footer::before {
  background: radial-gradient(circle, rgba(244, 244, 244, 1) 0%, rgba(255, 255, 255, 0) 55%);
  top: 6%;
  left: 2%;
  animation: mv-drift-a 20s ease-in-out infinite alternate;
}
body.home .p-footer::after {
  background: radial-gradient(circle, rgba(232, 232, 235, 0.9) 0%, rgba(255, 255, 255, 0) 55%);
  bottom: 4%;
  right: 2%;
  animation: mv-drift-b 26s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  body.home .p-footer::before,
  body.home .p-footer::after {
    animation: none;
  }
}
.p-footer .p-footer__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: min(6vw, 80px);
  padding-bottom: 32px;
}
/* 全ページ: 最上部ではメニュー間隔60px、スクロールするとやや詰まる
   (js/custom.jsが最上部で is-page-top を付与) */
.p-header .p-menu-list {
  transition: gap 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}
html:not(.is-page-top) .p-header .p-menu-list {
  gap: 44px;
}

/* フッター表示中はヘッダーのロゴを隠す(js/custom.jsがクラスを付与) */
.p-header .p-logo {
  transition: opacity 0.3s;
}
html.is-footer-in-view .p-header .p-logo {
  opacity: 0;
  pointer-events: none;
}

/* ロゴ: 左上(SVG使用)。少し下げた位置に */
.p-footer .footer-logo {
  display: block;
  width: min(21vw, 300px);
  margin-top: min(8.5vw, 110px);
}
.p-footer .footer-logo img {
  width: 100%;
  height: auto;
}
/* 中段: ナビ+住所を縦中央・右寄りに */
.p-footer .p-footer__inner .footer-top {
  margin: auto 0;
  justify-content: flex-end;
  gap: min(8.3vw, 120px);
  align-items: flex-start;
}
/* スマホは通常フロー(リビールはPCのみ。縦画面では内容が収まらないため) */
@media screen and (max-width: 767px) {
  .page-curtain {
    margin-bottom: 0;
  }
  .p-footer {
    position: static;
    height: auto;
  }
  .p-footer .p-footer__inner {
    height: auto;
    padding-top: 60px;
  }
}

/* ---- KV: 淡い白〜ライトグレーのグラデーションがぼんやり漂う背景 ----
   (mitone design参考)。ぼかした光の玉2つをゆっくり対流させる */
.p-mv {
  position: relative;
  overflow: hidden;
}
.p-mv::before,
.p-mv::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.p-mv::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(244, 244, 244, 0) 55%);
  top: 6%;
  left: 2%;
  animation: mv-drift-a 20s ease-in-out infinite alternate;
}
.p-mv::after {
  background: radial-gradient(circle, rgba(235, 235, 237, 0.9) 0%, rgba(244, 244, 244, 0) 55%);
  bottom: 4%;
  right: 2%;
  animation: mv-drift-b 26s ease-in-out infinite alternate;
}
@keyframes mv-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(14vw, 8vh) scale(1.15); }
}
@keyframes mv-drift-b {
  from { transform: translate(0, 0) scale(1.15); }
  to   { transform: translate(-13vw, -7vh) scale(0.9); }
}
/* 3つ目の光: 中サイズの白、独立した周期で斜めに漂う */
.p-mv .mv-glow {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(244, 244, 244, 0) 55%);
  top: 28%;
  right: 8%;
  animation: mv-drift-c 31s ease-in-out infinite alternate;
}
@keyframes mv-drift-c {
  from { transform: translate(0, 0) scale(0.95); }
  to   { transform: translate(-12vw, 7vh) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .p-mv .mv-glow { animation: none; }
}
.p-mv figure {
  position: relative;
  z-index: 1;
}
/* mv-scrollは元々absolute配置(左下)なのでpositionは触らずz-indexだけ前面に */
.p-mv .mv-scroll {
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .p-mv::before,
  .p-mv::after {
    animation: none;
  }
}

/* ---- Contactバナー ---- */
.p-contact .contact-box .contact-inner .right-box .contact-text {
  line-height: 160%;
  margin-bottom: 12px; /* 日本語と英語の間はほんの少し */
}
.p-contact .contact-text-en {
  margin-top: 0;
  line-height: 160%;
  margin-bottom: min(2.666666vw, 32px); /* 英語とView Moreの間は元の間隔を確保 */
}
/* 座布団のアウトライン: 薄いベース線+カーソル周辺だけ実線が這う(uniel.jp参考) */
.p-contact .contact-box {
  position: relative;
}
.contact-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.contact-outline rect {
  fill: none;
}
.contact-outline .outline-base {
  stroke: none; /* デフォルトは線なし。ホバー時の這う線だけ表示する */
}
.contact-outline .outline-hover {
  stroke: #2B2B2B;
  stroke-width: 1;
}
/* 座布団の幅はjs/custom.jsがスクロール量に連動してリニアに補間する
   (margin-inlineをインラインstyleで直接更新。transitionは使わない) */

/* ---- 住所ブロック: 日英を横並び→上下積みに(フッター・Aboutページ) ---- */
.p-footer .p-footer__inner .footer-top .address-box {
  flex-direction: column;
  gap: 16px;
}
.a-map .a-map__inner .address-wrap {
  flex-direction: column;
  gap: 16px;
}

/* shutto翻訳の言語スイッチャーを右上(メニューに被る)から右下へ移動 */
.stt-lang-select.tr {
  top: auto !important;
  bottom: 0 !important;
  right: 0 !important;
  border-radius: 5px 0 0 0 !important;
}

/* KVロゴの筆順アニメーションは撤去(SVGは静的表示)。svg自体のサイズ指定のみ残す */
.p-mv figure svg {
  width: 100%;
  height: auto;
}

/* ---- Archives詳細のホバー(カードと同じ言語: 縮小+文字グレー) ---- */
.works-slider .works-slide .slide-img-wrap img,
.all-works-btn img {
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.works-slider .works-slide:hover .slide-img-wrap img {
  transform: scale(0.96);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.all-works-btn:hover img {
  transform: scale(0.96);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.works-slide .slide-text .js-gray-char {
  transition: color 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.works-slider .works-slide:hover .slide-text .js-gray-char {
  color: #ADADAD;
}
/* モーダルはキャプション+カウンターのみ(デザイン準拠: 説明文は出さない) */
.works-popup .popup-description {
  display: none;
}

/* ---- Worksモーダル(Figma archive_modal準拠) ----
   旧: 右からのドロワー → 新: 黒50%オーバーレイ+中央の大きな白パネル。
   画像は上部に大きく(contain)、下にキャプション(左)とカウンター(右)、
   矢印はパネル左右の余白中央、✕は右上 */
.works-popup {
  align-items: center;
  justify-content: center;
}
.works-popup .popup-panel {
  margin: auto;
  width: min(90vw, 791px);
  height: min(88vh, 672px);
  transform: none !important; /* 旧スライドイン演出を無効化 */
}
.works-popup .popup-inner {
  height: 100%;
  padding: min(4vw, 57px) min(4.6vw, 66px) min(3vw, 44px);
  gap: 18px;
}
.works-popup .popup-img-wrap {
  aspect-ratio: auto;
  flex: 1;
  min-height: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.works-popup .popup-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.works-popup .popup-content {
  flex: 0 0 auto; /* 元CSSのflex:1(縦に伸びて画像領域を潰す)を打ち消す */
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.works-popup .popup-caption {
  font-size: 14px;
  line-height: 180%;
  color: #2B2B2B;
}
.works-popup .popup-nav {
  margin-top: 0; /* 元CSSのmargin-top:auto(カウンターが最下部に落ちる)を打ち消す */
  display: flex;
  align-items: flex-end;
}
.works-popup .popup-counter {
  font-size: 12px;
}
/* 矢印はパネルの左右余白の中央(画像の高さ中央) */
.works-popup .popup-arrows {
  position: static;
}
.works-popup .popup-prev,
.works-popup .popup-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 12px;
  cursor: pointer;
}
.works-popup .popup-prev { left: min(1.6vw, 22px); }
.works-popup .popup-next { right: min(1.6vw, 22px); }
.works-popup .popup-close {
  top: min(1.8vw, 25px);
  right: min(4.6vw, 66px);
}
@media screen and (max-width: 767px) {
  .works-popup .popup-panel {
    width: 94vw;
    height: 86vh;
  }
  .works-popup .popup-inner {
    padding: 48px 20px 24px;
  }
}

/* ---- ブロックはWorksとモジュール共通: クリックでモーダル、ホバーも同じ ---- */
.archive-block__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.archive-block__img {
  overflow: hidden;
}
.archive-block__img img {
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.archive-block:hover .archive-block__img img {
  transform: scale(0.96);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.archive-block .js-gray-char {
  transition: color 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.archive-block:hover .js-gray-char {
  color: #ADADAD;
}

/* ---- スライダーナビは見出しの行(Figma: Slide+バーが見出し右隣) ---- */
.works-section-head .works-slider-nav {
  margin: 16px 0 0 min(2.7vw, 40px);
}
.works-section-head .slide-progress {
  width: min(12.2vw, 176px);
}

/* ---- モーダル微調整(Figma実測) ---- */
.works-popup .popup-close {
  right: min(1.7vw, 24px); /* パネル右端から24px */
  padding: 10px 0;
}

/* All Works: 縮小時に見えるプレースホルダー背景を消す(枠は透明に) */
.all-works-item {
  background: transparent;
}
.all-works-item .slide-placeholder {
  background: #D9D9D9;
}

/* ---- About: Represented Artistsセクション(カードと同じホバー言語) ---- */
.a-artist .artist-list a .thumbnail {
  overflow: hidden;
  transition: none; /* 元CSSの全体スケールを無効化 */
}
.a-artist .artist-list a:hover .thumbnail {
  transform: none;
}
.a-artist .artist-list a .thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.a-artist .artist-list a:hover .thumbnail img {
  transform: scale(0.96);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.a-artist .artist-info .js-gray-char {
  transition: color 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.a-artist .artist-list a:hover .artist-info .js-gray-char {
  color: #ADADAD;
}

/* ---- Artist詳細(Figma Artist_pc_new準拠) ---- */
.artist-bio-en {
  margin-top: 32px;
  line-height: 160%;
}
.artist-history {
  margin-top: min(6.9vw, 100px);
}
.artist-history__heading {
  font-size: min(3vw, 44px);
  font-weight: 400;
  line-height: 120%;
}
.artist-history__list {
  margin-top: 24px;
  font-size: 14px;
  line-height: 180%;
}
.artist-history__list.u-en {
  margin-top: 32px;
  line-height: 160%;
}
.artist-info .content-box .instagram-link {
  margin-top: 40px;
}

/* Works: Archivesと同じ見出し(中央)+3カラムグリッド(352px/gap32) */
.artist-works {
  margin-top: min(9.7vw, 140px);
  padding-bottom: min(9.7vw, 140px);
}
.artist-works .works-section-head {
  justify-content: center;
}
.artist-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: min(5.5vw, 80px) min(2.2vw, 32px);
  margin-top: min(3.3vw, 40px);
  list-style: none;
  padding: 0;
  align-items: start;
}
.artist-work__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
.artist-work__img {
  overflow: hidden;
}
.artist-work__img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.artist-work:hover .artist-work__img img {
  transform: scale(0.96);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.artist-work__text {
  padding: 16px 40px 0 16px;
}
.artist-work__text .slide-caption {
  font-size: 14px;
  line-height: 180%;
  margin-bottom: 16px;
}
.artist-work__text .slide-description {
  font-size: 14px;
  line-height: 180%;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artist-work .js-gray-char {
  transition: color 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.artist-work:hover .js-gray-char {
  color: #ADADAD;
}
@media screen and (max-width: 767px) {
  .artist-works-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .artist-work__text {
    padding: 12px 0 0;
  }
}

/* ---- Artist写真の枠内パララックス ----
   画像を少し拡大しておき、スクロール進行度に応じてjs/custom.jsが
   translateYを補間する(枠からはみ出た分が動き代) */
.artist-info .img-box figure {
  overflow: hidden;
}
.artist-info .img-box figure img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0) scale(1.28);
  will-change: transform;
}

/* ---- Artist詳細: 本文テキストをAboutリード文と同じ組みに ---- */
.artist-info .content-box p {
  font-size: min(1.1666666vw, 14px);
  font-weight: 500;
  line-height: 180%;
}
.artist-info .content-box .artist-bio-en,
.artist-info .content-box .artist-history__list.u-en,
.artist-info .content-box .instagram-link span {
  font-weight: 400;
  line-height: 160%;
}

/* ---- About On: Use Case / Projects / Flow(Figma About On_new準拠) ---- */
.on-usecase {
  margin-top: min(9.7vw, 140px);
  overflow: hidden;
}
.on-usecase__head {
  display: flex;
  justify-content: center;
  gap: min(5.6vw, 80px);
  align-items: flex-start;
}
.on-usecase__texts {
  max-width: 379px;
}
.on-usecase__texts .text-en {
  margin-top: 24px;
}
.on-usecase__band {
  display: flex;
  align-items: flex-start;
  gap: min(2.2vw, 32px);
  justify-content: center;
  margin-top: min(4.2vw, 60px);
}
.on-usecase__band figure {
  flex-shrink: 0;
}
.on-usecase__band figure img {
  display: block;
  height: auto;
}
.on-usecase__band figure:nth-child(1) img { width: 48.5vw; }
.on-usecase__band figure:nth-child(1) { margin-left: -34vw; }
.on-usecase__band figure:nth-child(2) img { width: 62.4vw; }
.on-usecase__band figure:nth-child(3) img { width: 38.6vw; }
.on-usecase__band figure:nth-child(3) { margin-right: -22vw; }

.on-projects {
  margin-top: min(9.7vw, 140px);
}
.on-projects__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: min(3.3vw, 40px);
}

.on-flow {
  margin-top: min(9.7vw, 140px);
}
.on-flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: min(2.2vw, 32px);
  margin-top: min(3.3vw, 40px);
  list-style: none;
  padding: 0;
}
.on-flow__card {
  background: #fff;
  padding: min(1.7vw, 24px) min(1.4vw, 20px);
  min-height: min(34vw, 489px);
}
.on-flow__step {
  font-size: min(1.5vw, 22px);
  font-weight: 400;
  line-height: 140%;
  margin-bottom: 16px;
}
.on-flow__text {
  font-size: 14px;
  line-height: 180%;
  margin-bottom: 16px;
}
.on-flow__text-en {
  line-height: 160%;
}
@media screen and (max-width: 767px) {
  .on-usecase__head {
    flex-direction: column;
    gap: 24px;
  }
  .on-usecase__band figure:nth-child(1) { margin-left: -20vw; }
  .on-usecase__band figure:nth-child(3) { margin-right: -12vw; }
  .on-flow__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .on-flow__card {
    min-height: 0;
  }
}
