/* 展示の光・額装・作者紹介を、同じ美術館の素材でつなぐ。 */
:root {
  --bronze: #a68a68;
  --bronze-light: #e6cba5;
  --exhibit-mat: #17141a;
}
/* 額の画面外配置やフォーカス移動で、舞台の内部がスクロールしないようにする。 */
.stage { overflow: clip; }

/* 動画の終盤から照明を落とす。FVの乳白色のベールはそのまま。 */
.gallery-dimmer,
.gallery-light {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
.gallery-dimmer {
  z-index: 10;
  background: linear-gradient(180deg, rgba(7, 7, 14, .76), rgba(9, 7, 13, .58) 45%, rgba(9, 7, 13, .82));
}
.gallery-light {
  z-index: 11;
  background: radial-gradient(ellipse 32% 60% at 50% 49%, rgba(244, 203, 145, .12), transparent 78%);
}
.gallery-heading {
  top: max(112px, 15%);
  text-shadow: 0 2px 20px #09070e;
}
.gallery-heading h2 { margin-top: 14px; }
.gallery-heading > p:last-child { color: #d8c9bb; }
.gallery-heading .eyebrow { color: var(--bronze-light); }
.gallery-controls { color: #f0e0ca; }
.gallery-controls .round-button {
  background: #0c0b13a6;
  border-color: #d1b18988;
}
.gallery-controls .round-button:not(:disabled):hover {
  background: #ae8b5926;
  border-color: #ebcfa5;
}
.gallery-controls .index-link { color: #ddcbb7; }

/* 生成した額縁を四隅・四辺に分けて描き、中央に元の作品画像を収める。 */
.art-card { isolation: isolate; }
.art-card .art-mount {
  --frame-width: 23px;
  position: relative;
  padding: 3px;
  border: var(--frame-width) solid #6f553a;
  border-image-source: url('assets/museum-frame.webp');
  border-image-slice: 170;
  border-image-width: 1;
  border-image-repeat: round;
  background: var(--exhibit-mat);
  background-clip: padding-box;
  box-shadow:
    8px 10px 12px #0008,
    0 25px 42px #000b;
  transition: box-shadow .3s;
}
.art-card .art-mount::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  box-shadow: inset 0 3px 7px #0009;
}
.art-card img,
.video-card .art-mount img {
  object-fit: contain;
  object-position: center;
  border: 0;
  background: var(--exhibit-mat);
  box-shadow: none;
}
.art-card[data-current='true'] .art-mount,
.art-card:hover .art-mount,
.art-card:focus-visible .art-mount {
  filter: none;
  box-shadow:
    8px 10px 13px #0009,
    0 27px 46px #000c,
    -1px -2px 13px #efc79326;
}
.art-card .art-title { color: #dfceba; text-shadow: 0 2px 14px #08070c; }
.art-card .art-category { color: #c8b6a1; text-shadow: 0 1px 9px #08070c; }
.art-card[data-current='true'] .art-title { color: #fff0db; }
.art-card .art-arrow { color: var(--bronze-light); }
.video-play-mark { border-color: #e9c9a1b3; background: #100d16b8; }

/* 詳細の鑑賞リンクに続く、控えめな相談窓口。 */
.work-dialog { border-color: #ac896565; box-shadow: 0 35px 130px #000e; }
.dialog-image { background: #110e15; }
.dialog-image img { border: 1px solid #ad8c6266; }
.dialog-consult {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 48px;
  margin-top: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #b8996b5c;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
  color: #ddc3a3;
  transition: color .2s, border-color .2s;
}
.dialog-consult > span { font-family: var(--sans); font-size: 20px; }
.dialog-consult:hover { color: #fff0d5; border-color: #e7c598; }
.work-dialog.is-video .dialog-consult { max-width: 320px; margin-left: auto; }

@media (max-width: 768px) {
  .gallery-scene { --gallery-art-top: clamp(250px, 39svh, 360px); }
  .gallery-scene .arc-stage { top: var(--gallery-art-top); bottom: auto; height: 250px; }
  .gallery-controls { top: calc(var(--gallery-art-top) + 280px); bottom: auto; }
  .gallery-heading { top: max(108px, 16%); }
  .gallery-heading h2 { margin-top: 13px; }
  .gallery-heading > p:last-child { margin-top: 12px; }
  .gallery-light { background: radial-gradient(ellipse 66% 52% at 50% 50%, #f4cb911c, transparent 78%); }
  .art-card .art-mount { --frame-width: 19px; padding: 2px; }
  .dialog-consult { font-size: 12px; }
}
@media (max-width: 768px) and (max-height: 650px) {
  .gallery-scene { --gallery-art-top: 205px; }
  .gallery-heading { top: 90px; }
  .gallery-heading h2 { margin-top: 8px; }
  .gallery-heading > p:last-child { margin-top: 8px; }
  .gallery-controls { top: calc(var(--gallery-art-top) + 270px); }
}
@media (max-height: 720px) and (min-width: 769px) {
  .gallery-heading { top: 100px; }
  .gallery-heading h2 { font-size: 31px; margin-top: 8px; }
  .gallery-heading > p:last-child { margin-top: 10px; font-size: 13px; }
}
.motion-off .gallery-dimmer,
.motion-off .gallery-light { display: none; }
@media (prefers-reduced-motion: reduce) {
  .gallery-dimmer,
  .gallery-light { display: none; }
}

/* 作者に会う場所から、深紅の受付へ。 */
#about.about-section {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(40px, 6vw, 94px);
  min-height: 0;
  padding: clamp(74px, 7vw, 112px) 7vw;
  background:
    radial-gradient(ellipse at 15% 37%, #38232b66, transparent 58%),
    linear-gradient(135deg, #171117, #101016 72%);
  border-top: 1px solid #baa08a26;
  border-bottom: 1px solid #baa08a26;
}

#about .about-art.profile-photo {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
  opacity: 1;
  background: none;
  border: 0;
  box-shadow: none;
}

#about .portrait-frame {
  display: block;
  position: relative;
  padding: 4px;
  border: clamp(27px, 3vw, 39px) solid #6f553a;
  border-image: url('assets/museum-frame.webp') 170 / 1 / 0 round;
  background: #171216;
  background-clip: padding-box;
  box-shadow: 0 12px 22px #0006, 0 30px 64px #0008;
}

#about .portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 4px 10px #0009;
  pointer-events: none;
}

#about .profile-photo img {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
}

#about .profile-photo .guide-label {
  position: static;
  display: block;
  width: auto;
  padding: 24px 3px 3px;
  background: none;
  color: #d1b79b;
  font-family: var(--latin);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .13em;
  text-align: center;
}

#about .about-copy {
  min-width: 0;
  padding: 0;
}

#about .about-copy > .eyebrow {
  color: #bca085;
  font-size: 9px;
  letter-spacing: .2em;
}

#about #about-title {
  margin: 28px 0 28px;
  color: #eee0cd;
  font-family: var(--display);
  font-size: clamp(25px, 2.5vw, 37px);
  line-height: 1.55;
  letter-spacing: .035em;
}

#about #about-title .profile-name {
  display: block;
  margin-top: 14px;
  color: #f4e7d5;
  font-family: var(--latin);
  font-size: clamp(76px, 7.2vw, 112px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: .015em;
}

#about .about-copy .profile-role {
  margin: 0 0 29px;
  padding-top: 18px;
  border-top: 1px solid #b998754d;
  color: #ccb5a0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .025em;
}

#about .about-copy > p:not(.eyebrow):not(.profile-role) {
  margin-bottom: 21px;
  color: #d1c4b7;
  font-size: 15px;
  line-height: 2.2;
}

#about .profile-socials {
  margin-top: 27px;
  margin-bottom: 18px;
}

#about .about-copy > .enter-link {
  margin-top: 15px;
  border-bottom-color: #c5a88280;
}

/* 入口の左側にあるベルベットだけを、受付の背景に引き継ぐ。 */
#contact.contact-section {
  isolation: isolate;
  position: relative;
  padding: 105px 7vw 99px;
  background: #30141f;
  border-top: 1px solid #c9a47e59;
}

#contact.contact-section::before,
#contact.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#contact.contact-section::before {
  background-image:
    linear-gradient(90deg, #1c0b1333, #28101be6 90%),
    url('assets/grok-start.jpg');
  background-position: center, left 58%;
  background-size: cover, 250% auto;
  background-repeat: no-repeat;
  opacity: .63;
}

#contact.contact-section::after {
  background:
    radial-gradient(ellipse at 50% 100%, #b371493b, transparent 66%),
    linear-gradient(180deg, #dab58a10, transparent 110px);
}

#contact > .eyebrow {
  color: #d2b18e;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: .2em;
}

#contact #contact-title {
  margin-top: 29px;
  color: #f5e7d4;
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.62;
  letter-spacing: .04em;
  white-space: normal;
}

#contact .contact-lead {
  max-width: 43em;
  margin: 26px auto 35px;
  color: #dfcbbb;
  font-size: 15px;
  line-height: 2.1;
}
#contact .contact-lead > span { display: block; text-wrap: balance; }

#contact .line-contact {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 25px;
  width: min(100%, 400px);
  min-height: 78px;
  padding: 20px 25px;
  border: 1px solid #ead1af;
  background: linear-gradient(115deg, #f6ebdc, #e4ceb1);
  color: #32202a;
  box-shadow: 0 14px 35px #10040a42, inset 0 1px 0 #ffffffb3;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

#contact .line-contact .line-mark {
  padding: 8px 7px;
  border-color: #876b565e;
  background: #fffcf52e;
  color: #624938;
  font-size: 9px;
  font-weight: 700;
}

#contact .line-contact > span:last-child {
  font-size: 24px;
}

#contact .line-contact:hover {
  background: linear-gradient(115deg, #fff6e9, #ecd8bc);
  transform: translateY(-2px);
}

#contact .line-contact:focus-visible {
  outline: 3px solid #fff1d5;
  outline-offset: 7px;
}

#contact .contact-note {
  margin-top: 18px;
  color: #d3bba6;
  font-size: 12px;
  line-height: 1.9;
}

#contact .contact-hint {
  margin-top: 31px;
  color: #c4a98f;
  font-size: 11px;
  line-height: 2;
}

@media (max-width: 1024px) and (min-width: 769px) {
  #about.about-section { gap: 4vw; padding-inline: 6vw; }
  #about .about-copy > p:not(.eyebrow):not(.profile-role) { font-size: 14px; }
  #about #about-title { font-size: 27px; }
  #about #about-title .profile-name { font-size: 81px; }
}

@media (max-height: 720px) and (min-width: 769px) {
  #about.about-section { padding-block: 68px; }
  #about .about-art.profile-photo { max-width: 440px; }
  #contact.contact-section { padding-block: 85px; }
}

@media (max-width: 768px) {
  #about.about-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 43px;
    padding: 62px 7vw 70px;
  }
  #about .about-art.profile-photo { max-width: 440px; padding: 0; }
  #about .portrait-frame { border-width: 27px; padding: 3px; }
  #about .profile-photo .guide-label { padding-top: 22px; font-size: 12px; }
  #about .about-copy { padding: 0; }
  #about .about-copy > .eyebrow { font-size: 8px; }
  #about #about-title { margin: 22px 0 24px; font-size: 28px; line-height: 1.55; }
  #about #about-title .profile-name { margin-top: 12px; font-size: clamp(72px, 21vw, 90px); }
  #about .about-copy .profile-role { padding-top: 17px; margin-bottom: 25px; font-size: 12px; }
  #about .about-copy > p:not(.eyebrow):not(.profile-role) { font-size: 14px; line-height: 2.1; }
  #about .profile-socials { gap: 23px; margin-top: 24px; }
  #about .about-copy > .enter-link { margin-top: 12px; font-size: 15px; }
  #contact.contact-section { padding: 72px 7vw 69px; }
  #contact.contact-section::before { background-size: cover, auto 165%; background-position: center, left center; }
  #contact > .eyebrow { font-size: 8px; letter-spacing: .15em; }
  #contact #contact-title { margin-top: 25px; font-size: clamp(29px, 7.8vw, 37px); line-height: 1.65; }
  #contact .contact-lead { margin: 24px auto 30px; font-size: 13px; line-height: 2; }
  #contact .line-contact { gap: 16px; min-height: 72px; padding: 17px 18px; font-size: 16px; }
  #contact .line-contact .line-mark { padding: 7px 6px; }
  #contact .line-contact > span:last-child { font-size: 23px; }
  #contact .contact-note { margin-top: 17px; font-size: 11px; }
  #contact .contact-hint { margin-top: 28px; font-size: 11px; }
}

@media (max-width: 360px) {
  #about #about-title { font-size: 25px; }
  #about .profile-socials { gap: 19px; }
  #contact .contact-lead { font-size: 12px; }
  #contact .line-contact { gap: 12px; padding-inline: 15px; font-size: 15px; }
}
