.gallery {
  --gallery-ink: #29241e;
  --white: var(--gallery-ink);
  --muted: #554b40;
  --line: rgb(80 65 49 / .29);
  --surface: #e9dfcf;
  --vermilion: #9d2f24;
  --serif-en: Georgia, "Times New Roman", serif;
  color: var(--gallery-ink);
  background: #f0ebe2;
}

.scroll-gallery {
  padding: clamp(36px, 5.5vw, 84px) clamp(12px, 5.4vw, 88px) clamp(20px, 3.2vw, 44px);
  background: var(--ink);
}

.kakemono {
  --paper-ink: #281d13;
  --white: var(--paper-ink);
  --muted: #5b422d;
  --line: rgb(97 60 29 / .35);
  --surface: #ebcfa6;
  --vermilion: #9d2f24;
  --margin: clamp(22px, 5vw, 78px);
  --brocade-edge: clamp(9px, 1.7vw, 24px);
  --rod-overhang: clamp(5px, 1.4vw, 21px);
  --upper-rod: clamp(10px, 1.7vw, 19px);
  --upper-mount: clamp(32px, 5.1vw, 72px);
  --paper-grain: url("assets/kakemono-washi.webp");
  --brocade: url("assets/kakemono-brocade.webp");
  --side-brocade: url("assets/kakemono-side-brocade.webp");
  --wood: url("assets/kakemono-wood.webp");
  position: relative;
  isolation: isolate;
  max-inline-size: 1330px;
  margin-inline: auto;
  color: var(--paper-ink);
  background: linear-gradient(90deg, rgb(92 56 28 / .13), rgb(248 229 193 / .28) 16%, rgb(255 239 210 / .34) 58%, rgb(248 229 193 / .22) 87%, rgb(92 56 28 / .12)),
    var(--paper-grain) center top / clamp(500px, 54vw, 740px) auto repeat #eed0a3;
  box-shadow: 2px 6px 16px rgb(56 35 19 / .26), 12px 19px 36px rgb(56 35 19 / .12);
}

.kakemono::before,
.kakemono::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset-block: 0;
  inline-size: var(--brocade-edge);
  background: var(--side-brocade) center / 100% auto repeat-y #2e3944;
  pointer-events: none;
}

.kakemono::before {
  inset-inline-start: 0;
  border-inline-end: 1px solid #947144;
  box-shadow: 2px 0 4px rgb(60 33 14 / .33);
}

.kakemono::after {
  inset-inline-end: 0;
  border-inline-start: 1px solid #947144;
  box-shadow: -2px 0 4px rgb(60 33 14 / .30);
}

.kakemono-mount {
  position: relative;
  z-index: 4;
  background: var(--brocade) center / auto 100% repeat-x #2e3944;
  box-shadow: inset 0 2px 5px rgb(27 20 18 / .44), inset 0 -1px rgb(221 178 113 / .40);
}

.kakemono-mount--top {
  block-size: var(--upper-mount);
  border-block-end: 3px double #b38a52;
}

.kakemono-mount--top::before,
.kakemono-mount--top::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset-block: -12px 22%;
  inline-size: clamp(14px, 3.3vw, 37px);
  border: 1px solid rgb(100 72 39 / .58);
  border-block-end: 2px solid #997247;
  background: repeating-linear-gradient(44deg, transparent 0 4px, rgb(108 78 49 / .22) 4px 5px),
    repeating-linear-gradient(-44deg, transparent 0 4px, rgb(108 78 49 / .22) 4px 5px),
    linear-gradient(#bf9c69, #eed8b0 43%, #d1b183);
  box-shadow: 2px 5px 5px rgb(26 17 12 / .46);
}

.kakemono-mount--top::before { inset-inline-start: 26%; transform: rotate(6deg); }
.kakemono-mount--top::after { inset-inline-end: 26%; transform: rotate(-6deg); }

.kakemono-mount--bottom {
  block-size: clamp(23px, 4.3vw, 57px);
  border-block-start: 3px double #b38a52;
}

.kakemono-rod {
  position: relative;
  z-index: 4;
  margin-inline: calc(-1 * var(--rod-overhang));
  border-radius: 3px;
  background: var(--wood) center / auto 100% repeat-x #563520;
  box-shadow: 0 4px 6px rgb(37 23 14 / .43);
}

.kakemono-rod::before,
.kakemono-rod::after {
  content: "";
  position: absolute;
  inset-block: 5%;
  inline-size: var(--rod-overhang);
  border-radius: 3px;
  background: linear-gradient(#523728, #8d6747 31%, #362116 69%, #180e0a);
}

.kakemono-rod::before { inset-inline-start: 0; }
.kakemono-rod::after { inset-inline-end: 0; }
.kakemono-rod--top {
  block-size: var(--upper-rod);
  background-image: linear-gradient(rgb(229 191 132 / .54), rgb(184 127 70 / .31)), var(--wood);
}
.kakemono-rod--bottom { block-size: clamp(14px, 2.55vw, 30px); }

.gallery .frame { max-inline-size: 1200px; }
.kakemono .works {
  padding-block-start: clamp(27px, 4vw, 58px);
  scroll-margin-block-start: calc(var(--upper-rod) + var(--upper-mount) + 12px);
}
.gallery .works .section-heading { padding-bottom: 0; }
.gallery .exhibition-photos { margin-top: clamp(22px, 3.7vw, 54px); }

.gallery .works .work-card::before {
  inset: -36px -22px 0;
  background: radial-gradient(ellipse 65% 51% at 43% 33%,
    rgb(255 246 218 / .76), rgb(255 246 218 / .23) 59%, transparent 100%);
}

.gallery .work-scroll {
  --mat-color: #d7cbb8;
  --mat-width: clamp(6px, .85vw, 12px);
  --frame-color: #3c342c;
}

.gallery .work-flag {
  --mat-color: #e0ddd4;
  --mat-width: clamp(6px, .8vw, 11px);
  --frame-color: #343432;
}

.gallery .work-daruma {
  --mat-color: #3d3127;
  --mat-width: clamp(3px, .44vw, 6px);
  --frame-color: #2d241c;
}

.gallery .works .work-image {
  padding: var(--mat-width);
  border: 2px solid var(--frame-color);
  background: linear-gradient(145deg, rgb(255 252 241 / .22), transparent 42%, rgb(0 0 0 / .10)), var(--mat-color);
  box-shadow: inset 0 0 0 1px rgb(255 246 227 / .23),
    2px 3px 0 var(--frame-color),
    4px 8px 12px rgb(52 35 20 / .35),
    15px 21px 27px -14px rgb(52 35 20 / .54);
}

.gallery .works .work-image img {
  box-shadow: 0 0 0 1px rgb(51 43 34 / .36), 1px 3px 5px rgb(46 35 24 / .36);
}
.gallery .works .work-image:hover img { transform: none; }
.gallery .works .work-zoom {
  inset-inline-end: calc(var(--mat-width) + 8px);
  inset-block-end: calc(var(--mat-width) + 8px);
  color: #f8f0e3;
}

.gallery [data-title-reveal] > .title-telop {
  aspect-ratio: auto;
  justify-items: start;
}
.gallery [data-title-reveal] .title-lettering {
  color: inherit;
  font: 500 clamp(30px, 4.55vw, 60px)/1.16 var(--serif-en);
  letter-spacing: .14em;
}
.gallery [data-title-reveal] .title-telop--wide .title-lettering {
  font-size: clamp(22px, 3.6vw, 47px);
  white-space: normal;
}
.gallery .title-smoke-stage { max-inline-size: 440px; }
.gallery :is(#career-title, #contact-title) .title-smoke-canvas { filter: brightness(.48); }

.gallery .news { padding-block: clamp(38px, 5.5vw, 70px) clamp(48px, 6.2vw, 80px); }
.news-updates summary {
  grid-template-columns: 7.4em minmax(0, 1fr) 20px;
  min-height: 71px;
  font-size: clamp(13px, 1.15vw, 16px);
}
.news-updates .career-detail { padding-inline: 0; }
.news-updates .career-detail > p + p { margin-top: 12px; }
@media (max-width: 790px) {
  .news-updates.career-list summary { grid-template-columns: 6.8em minmax(0, 1fr) 15px; gap: 9px; }
  .news-updates.career-list summary time { font-size: 11px; }
}
#news-title { --news-art-width: clamp(82px, 9vw, 124px); }
.gallery #news-title .title-lettering {
  font-size: clamp(23px, 2.9vw, 38px);
  color: #655c51;
}
#news-title .title-news-lockup {
  inset-inline: 0 auto;
  inline-size: var(--news-art-width);
  filter: brightness(0);
  opacity: .64;
}
#news-title .title-smoke-canvas {
  inset-inline: calc(var(--news-art-width) * -.5) auto;
  inline-size: calc(var(--news-art-width) * 2);
}

.gallery .message,
.gallery .profile {
  --photo-veil: linear-gradient(90deg, rgb(15 14 16 / .95) 0%, rgb(15 14 16 / .85) 38%, rgb(15 14 16 / .30) 68%, rgb(15 14 16 / .07) 100%);
  --muted: #eee8dc;
  --line: rgb(238 232 220 / .44);
  --vermilion: #ea9b89;
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(64px, 8vw, 112px);
  color: #fff9ee;
  background: #231f20;
}

.gallery .message {
  --section-photo: url("assets/kenshin-challenge-stage.webp");
  --photo-position: center 48%;
}

.gallery .profile {
  --section-photo: url("assets/kenshin-portrait.webp");
  --photo-position: center 82%;
  display: flex;
  align-items: center;
  min-block-size: clamp(580px, 50vw, 740px);
}

.gallery .message::before,
.gallery .profile::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--section-photo) var(--photo-position) / cover no-repeat;
  filter: saturate(.88);
}

.gallery .message::after,
.gallery .profile::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--photo-veil);
}

.gallery .message-copy,
.gallery .profile-copy { max-inline-size: min(58%, 660px); }
.gallery .message-lead,
.gallery .profile-name { margin-top: clamp(28px, 3.3vw, 44px); }
.gallery :is(.message, .profile) .body-text { margin-top: 24px; line-height: 2.1; }
.gallery .profile .text-link { margin-top: 28px; }
.gallery .profile-social { margin-top: 14px; }
.gallery .profile-instagram {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding-block: 8px;
  color: #f8f2e8;
  font: 400 16px/1.5 var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
}
.gallery .profile-instagram .instagram-icon { flex: 0 0 24px; }
.gallery .profile-instagram-handle { margin-inline-start: 7px; font-size: 14px; letter-spacing: .015em; }
.gallery .profile-instagram:hover { text-decoration: underline; text-underline-offset: 5px; }
.gallery .profile-instagram:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.gallery .message ruby { ruby-position: over; }
.gallery .message rt { font-size: .62em; letter-spacing: .04em; }

.gallery .message-film { margin-block-start: clamp(28px, 3.5vw, 42px); }
.gallery .message-film {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.gallery .message-film-frame {
  padding-inline: 2px;
  border-inline: clamp(8px, .85vw, 12px) solid #3d3831;
  background: #b7a281;
  box-shadow: 0 8px 20px rgb(35 30 25 / .14);
}
.gallery .message-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #131212;
  box-shadow: none;
}
.gallery .message-film figcaption {
  margin-block-start: 13px;
  color: var(--muted);
  font-size: 13px;
}
.gallery .message-film--story {
  max-width: 420px;
  margin-inline: auto;
  scroll-margin-top: 96px;
}
.gallery .message-film--story video { aspect-ratio: 9 / 16; }

.gallery .contact { color: var(--gallery-ink); padding-block-end: 0; }
.gallery .contact::after { content: none; }
.gallery .contact .eyebrow,
.gallery .contact .body-text,
.gallery .contact-company { color: var(--muted); }
.gallery .contact .eyebrow::before { background: var(--vermilion); }
.gallery .contact :focus-visible { outline-color: var(--vermilion); }
.gallery .footer-bar { border-color: var(--line); }
.gallery .contact-form input,
.gallery .contact-form textarea {
  color: var(--gallery-ink);
  border-color: var(--line);
  background: rgb(255 252 244 / .68);
}
.gallery .contact-form :is(input, textarea):focus { border-color: var(--vermilion); }
.gallery .contact-submit { color: #fff3e2; background: #302115; border-color: #302115; }
.gallery .contact-submit:hover { background: var(--vermilion); border-color: var(--vermilion); }
.gallery #izumo .career-photo-frame--daruma {
  position: relative;
  isolation: isolate;
  background: #dedcd4;
}
.gallery #izumo .career-photo-frame--daruma::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/izumo.webp") center top / 135% auto no-repeat;
  filter: grayscale(.8);
  opacity: .24;
}
.gallery #izumo .career-photo-frame--daruma img {
  filter: drop-shadow(0 5px 5px rgb(45 40 32 / .18));
}
.gallery .ceremony-related-film .ceremony-video-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #121114;
}
.gallery .ceremony-video-link img { height: 100%; object-fit: cover; }
.gallery .ceremony-video-link .ceremony-play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 14px rgb(0 0 0 / .25);
}
.gallery .ceremony-video-label {
  position: absolute;
  inset: auto 12px 12px auto;
  padding: 4px 9px;
  color: #fff;
  background: rgb(18 17 20 / .82);
}

@media (min-width: 621px) and (max-width: 900px) {
  .gallery .message,
  .gallery .profile {
    --photo-veil: linear-gradient(90deg, rgb(15 14 16 / .95), rgb(15 14 16 / .81) 52%, rgb(15 14 16 / .24));
  }
  .gallery .message-copy,
  .gallery .profile-copy { max-inline-size: min(76%, 600px); }
}

@media (max-width: 620px) {
  .gallery .ceremony-detail { padding-inline: 0; }
  .scroll-gallery { padding-inline: clamp(11px, 4vw, 24px); }
  .kakemono .works { padding-block-start: 24px; }
  .gallery .message,
  .gallery .profile {
    --photo-veil: linear-gradient(90deg, rgb(15 14 16 / .85), rgb(15 14 16 / .70) 49%, rgb(15 14 16 / .49));
    padding-block: 64px;
  }
  .gallery .message { --photo-position: 51% center; }
  .gallery .profile { --photo-position: center 83%; min-block-size: 600px; }
  .gallery .message-copy,
  .gallery .profile-copy { max-inline-size: none; }
  .gallery .contact-company { padding-block-end: 36px; }
}
