@charset "UTF-8";
/* ---------------------------------------
  2026 リニューアル: 作品詳細
  基準は Figma PC 1440×1024 / SP 393×852。
  --band : 写真エリアの上下の帯（PC 120/1024 = 11.72vh、72〜140px）
  --W    : 写真に使える幅（画面幅 − 左右の余白）
  --H    : 写真に使える高さ（画面の高さ − 上下の帯。大画面では 900px で頭打ち）
  写真は枠に収める（切り抜かない）。2枚組は内側を寄せて間隔 --gap を保つ。
-----------------------------------------*/
body.single-work {
  overflow: hidden;
  height: 100svh;
}
/* 写真送り: 参考サイト（hideakihamada.com）と同じく、前の写真と次の写真を同時にクロスフェード（本人要望で 0.9→0.6 秒）。
   Splide 標準は次の写真だけに transition を付け、前の写真が一瞬で消えて背景がチカッと見えるため上書きする。
   ページを開いた直後に2枚目以降がフェードアウトして見えないよう、準備が終わってから（.is_ready）有効にする */
.wk.is_ready .wk_stage .splide__track--fade > .splide__list > .splide__slide {
  transition: opacity 0.3s cubic-bezier(0.45, 0, 0.55, 1) !important;   /* 本人要望で 0.9→0.6→0.3 秒 */
}
/* 準備が終わるまでは1枚目以外を出さない */
.wk:not(.is_ready) .wk_stage .splide__slide:not(:first-child) {
  opacity: 0 !important;
  visibility: hidden;
}
.wk {
  --band: clamp(72px, 11.72vh, 140px);
  --W: calc(100vw - 2 * var(--sh-side));
  --H: min(calc(100svh - 2 * var(--band)), 900px);
  --gap: clamp(16px, 2.08vw, 40px);            /* 30 / 1440 */
  --stage-top: calc((100svh - var(--H)) / 2);
  --c-txt: #5E5E5E;
}
.wk_h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 写真エリア */
.wk_stage {
  position: fixed;
  top: var(--stage-top);
  left: 0;
  width: 100%;
  height: var(--H);
  z-index: 2;
  pointer-events: none;
  transform-origin: 50% 0;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wk_stage .splide,
.wk_stage .splide__track,
.wk_stage .splide__list {
  height: 100%;
}
.wk_slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.wk_imgs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap);
  height: 100%;
}
.wk_img {
  margin: 0;
  display: flex;
  align-items: center;
}
.wk_img img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--W);
  max-height: var(--H);
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* 2枚組: 1枚あたりの幅は (W − 間隔) / 2 */
[class*="is_two_"] .wk_img img {
  max-width: calc((var(--W) - var(--gap)) / 2);
}
/* 縦2枚: Figma では枠の高さが 724 / 784 */
.is_two_tall_tall .wk_img img {
  max-height: calc(var(--H) * 0.9235);
}

/* 動画（Figma 1169×657 = 写真エリアの幅 87.25%・高さ 83.8%） */
.wk_movie {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(calc(var(--W) * 0.8725), calc(var(--H) * 0.838 * 16 / 9));
  background-color: #000;
  pointer-events: auto;
  cursor: default;
}
.wk_movie.is_5-4 {
  aspect-ratio: 5 / 4;
  width: min(calc(var(--W) * 0.8725), calc(var(--H) * 0.838 * 5 / 4));
}
.wk_movie > img,
.wk_movie > video,
.wk_movie > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.wk_movie > video {
  object-fit: contain;
}
.wk_play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.wk_play span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 43px;
  transform: translate(-50%, -50%) rotate(90deg);
  background: url(../img/common2026/play.svg) center / contain no-repeat;
  transition: opacity 0.3s ease;
}
@media (any-hover: hover) {
  .wk_play:hover {
    opacity: 1;
  }
  .wk_play:hover span {
    opacity: 0.7;
  }
}
/* フェードで重なっている表示中以外のスライドの動画は、触れない・見えないようにする */
.wk_slide:not(.is-active) .wk_movie {
  pointer-events: none;
  visibility: hidden;
}
.wk_movie.is_playing .wk_play,
.wk_movie.is_playing > img {
  display: none;
}

/* 左右のクリック領域（写真の上でも反応し、動画の上では反応しない） */
.wk_hit {
  position: fixed;
  top: calc(var(--stage-top) * 0.6);   /* 上のヘッダーの帯でも写真を送らない（メニューを押しやすく） */
  bottom: calc(var(--stage-top) * 0.6);   /* 下のバーの帯では写真を送らない（タイトルを押しやすく） */
  width: 50%;
  z-index: 1;
}
.wk_hit_prev {
  left: 0;
  cursor: url(../img/work/cursor_left.svg), w-resize;
}
.wk_hit_next {
  right: 0;
  cursor: url(../img/work/cursor_right.svg), e-resize;
}

/* 下のバー */
.wk_bar {
  position: fixed;
  left: var(--sh-side);
  right: var(--sh-side);
  bottom: clamp(24px, 3.91vh, 48px);   /* 40 / 1024 */
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.wk_bar > * {
  pointer-events: auto;
}
.wk_count {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "Noto Sans", sans-serif;
  font-weight: 300;
  font-size: 11px;
  line-height: 1;
  color: var(--sh-c80);
}
.wk_sep {
  font-size: 8px;
  font-weight: 900;
  transform: translateY(-0.5px);
}
.wk_ttl {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--sh-c80);
  text-align: right;
}
button.wk_ttl {
  cursor: pointer;
  /* 押せる範囲を文字より広げる */
  position: relative;
}
button.wk_ttl::before {
  content: "";
  position: absolute;
  inset: -14px -12px -14px -16px;
}
.wk_ttl.has_note .wk_ttl_txt {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.wk_ttl_icon {
  display: block;
  width: 15px;
  height: auto;
}
.wk_ttl_icon.is_minus,
.wk.is_note .wk_ttl_icon.is_plus {
  display: none;
}
.wk.is_note .wk_ttl_icon.is_minus {
  display: block;
}
@media (any-hover: hover) {
  button.wk_ttl:hover {
    opacity: 0.6;
  }
}

/* コメントのドロワー（下からせり上がる。URL は変えない） */
.wk_drawer {
  --note-top: 60vh;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--note-top);
  bottom: 0;
  z-index: 4;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 120px;
  background-color: #F0F4F4;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.7s;
  cursor: pointer;   /* 本文の外側（左右の余白）をクリックすると閉じる */
}
.wk.is_note .wk_drawer {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s;
}
.wk_drawer_inner {
  width: min(600px, var(--W));
  margin: 0 auto;
  cursor: auto;
}
.wk_note + .wk_note {
  margin-top: 40px;
}
.wk_note_ttl {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--c-txt);
}
.wk_note_txt {
  margin-top: 10px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--c-txt);
  text-align: justify;
}
/* 段落の間は1行分（1.8em）より詰める */
.wk_note_txt p {
  margin: 0;
}
.wk_note_txt p + p {
  margin-top: 1em;
}
.wk_note_txt a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.wk.is_note .wk_hit {
  cursor: pointer;
  z-index: 3;
}

/* ---------------------------------------
  SP（Figma 393×852。ヘッダー44px・写真エリア・下のバー）
-----------------------------------------*/
@media screen and (max-width: 767px) {
  .wk {
    --head: calc(4.4rem + 3rem + env(safe-area-inset-top));   /* ヘッダーの下端 */
    --foot: calc(4.2rem + env(safe-area-inset-bottom));        /* 下のバーの領域 */
    --W: calc(100vw - 4rem);
    --H: calc(100svh - var(--head) - var(--foot));
    --gap: 1rem;
    --stage-top: var(--head);
  }
  /* 横1枚と動画は画面幅いっぱい（Figma 393px） */
  .is_one_wide .wk_img img {
    max-width: 100vw;
  }
  [class*="is_two_"] .wk_imgs {
    flex-direction: column;
  }
  [class*="is_two_"] .wk_img img,
  .is_two_tall_tall .wk_img img {
    max-width: var(--W);
    max-height: calc((var(--H) - var(--gap) - 4rem) / 2);
  }
  .wk_movie,
  .wk_movie.is_5-4 {
    width: 100vw;
  }
  .wk_play span {
    width: 2.1rem;
    height: 2rem;
  }
  .wk_hit {
    display: none;
  }
  /* SP はスワイプで送るので、写真エリアでタッチを受ける */
  .wk_stage {
    pointer-events: auto;
    touch-action: pan-y;
  }
  .wk_bar {
    left: 2rem;
    right: 2rem;
    bottom: calc(1.6rem + env(safe-area-inset-bottom));
  }
  .wk_count {
    font-size: 1.1rem;
  }
  .wk_sep {
    font-size: 0.8rem;
  }
  .wk_ttl {
    font-size: 1.1rem;
  }
  .wk_drawer {
    padding: 0 2rem 8rem;
    cursor: auto;
  }
  .wk_drawer_inner {
    width: 100%;
  }
  .wk_note + .wk_note {
    margin-top: 4rem;
  }
  /* 本人指定の参考サイト（lifes-203.com の LP、SP 表示）を基準に、小数にならない 11px・9px で固定 */
  .wk_note_ttl {
    font-size: 11px;
  }
  .wk_note_txt {
    margin-top: 1rem;
    font-size: 9px;
    line-height: 1.8;
    letter-spacing: 0.02em;
  }
}

/* コメントを開いている間、下のバーの裏に背景色のグラデーションを敷いて本文と重ならないようにする（Figma SP comment の下部バーと同じ考え方） */
.wk::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 10vh, 120px);
  z-index: 4;
  background: linear-gradient(rgba(240, 244, 244, 0), #F0F4F4 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.wk.is_note::after {
  opacity: 1;
}
@media screen and (max-width: 767px) {
  .wk::after {
    height: calc(10rem + env(safe-area-inset-bottom));
  }
}
