@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100;300;400;500;700;900&family=Noto+Serif+JP:wght@400;500;600&display=swap");

:root {
  --window-max-size: 1920px;
  --clr-bg: #fff;
  --primary-color: #0485fc;
  --active-color: #0485fc;

  --font-family: "Noto Sans JP", Arial, メイリオ, Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Helvetica, Verdana, sans-serif;
  --font-family-serif: "Noto Serif JP", 游明朝体, "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  --primary-font-color: #424242;
  --headline-font-color: #0485fc;
  /* 375/12-1920/26 */
  --primary-font-size: clamp(0.75rem, 0.5376rem + 0.9061vw, 1.625rem);
  --main-margin-top: 70px;
}
@media (max-width: 767px) {
  :root {
    --main-margin-top: 40px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family-serif);
  font-weight: 400;
  font-feature-settings: "palt";

  user-select: none; /* CSS3 */
  -moz-user-select: none; /* Firefox */
  -webkit-user-select: none; /* Safari、Chromeなど */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -ms-overflow-style: none; /* IE, Edge 対応 */
  scrollbar-width: none; /* Firefox 対応 */
}
*::-webkit-scrollbar {
  /* Chrome, Safari 対応 */
  display: none;
}
html {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--clr-bg);
  width: 100%;
  height: 100vh;
  position: relative;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

body.page-loaded {
  opacity: 1;
}

a {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--headline-font-color);
  font-family: var(--font-family-serif);
}

p {
  color: var(--primary-font-color);
  font-family: var(--font-family);
  font-size: var(--primary-font-size);
  line-height: 1.8;
  letter-spacing: 0;
}

img {
  max-width: 100%;
}
sub {
  vertical-align: sub;
  margin-left: 0.1em;
  margin-right: 0.1em;
}
#contentsWrapper {
  width: 100%;

  margin-inline: auto;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  opacity: 0;
}
.loaded #contentsWrapper {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

/* 共通 */
main {
  background-color: #fff;
  padding-bottom: 70px;
}

.pconly {
  display: block;
}

.sponly {
  display: none;
}
.grid img {
  transition: transform 0.3s ease-in-out;
}
.grid img:hover {
  transform: translateX(10px) scale(1.2);
}
@media (max-width: 767px) {
  main {
    margin-top: 55px;
  }
  .pconly {
    display: none;
  }

  .sponly {
    display: block;
  }
}

.header {
  margin-top: 0;
  background-image: url("../images/header_img.jpg");
  background-size: contain;
  background-position: top left;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 1920/295;
  display: flex;
  flex-direction: column;
  justify-content: end;
  max-width: var(--window-max-size);
  margin-inline: auto;
}
.header-content {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-inline: min(calc(30 / 1920 * 100%), 30px);
  padding-bottom: min(calc(55 / 1920 * 100%), 55px);
}
.site-title {
  font-size: clamp(1.375rem, -0.2083rem + 3.2986vw, 3.75rem);
  font-family: var(--font-family-serif);
  color: #2000bf;
  font-weight: normal;

  letter-spacing: -0.04em;
}
.site-title a {
  color: #2000bf;
  transition: 0.3s;
}
.site-title a:hover {
  color: var(--primary-color) !important;
  text-decoration: none !important;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
  transform: translateZ(0);
  will-change: filter;
}
.nav {
  margin-bottom: 8px;
  font-size: clamp(0.75rem, -0.0833rem + 1.7361vw, 1.7rem);
  letter-spacing: -0.01em;
  color: #1300aa;
  margin-bottom: 0.6em;
  display: flex;
}
.nav a {
  font-weight: 300;
  color: inherit;
  text-decoration: none;
  transition: color 0.5s;
}
.nav a:hover {
  color: var(--primary-color);
}
.nav a::after {
  content: "|";
  margin-inline: 0.24em;
  color: #1300aa;
  font-size: clamp(0.75rem, -0.0833rem + 1.7361vw, 2rem);
  font-family: var(--font-family-serif);
  font-weight: normal;
}
.nav .nav-group:last-of-type a:last-child::after {
  display: none;
}

.btn-group {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}
#profile_page .btn-group a:first-child {
  pointer-events: none;
  background-color: #2000bf;
}

.btn {
  background-color: #007bff;
  color: white;
  padding: 4px 13px;
  font-size: min(21px, 2.8vw);
  line-height: 1;
  text-decoration: none;
  border-radius: 1px;
  transition:
    color 0.5s,
    background-color 0.5s;
}
.btn:hover {
  background-color: #2000bf;
  color: white;
}

@media (max-width: 767px) {
  main {
    background-color: #fff;
    padding-bottom: 20px;
  }
  .header {
    margin-top: 0;
    background-image: url("../images/header_img_sp.jpg");
    background-size: contain;
    background-position: center 10px;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: initial;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding-top: 10px;
  }
  .header-content {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: min(calc(150 / 767 * 100vw), 150px);
  }
  .site-title {
    font-size: clamp(1rem, 0rem + 4.2667vw, 2rem);
    font-family: var(--font-family-serif);
    color: #2000bf;
    font-weight: normal;
    margin-top: 0.3em;
    margin-bottom: 1em;
    letter-spacing: -0.05em;
  }
  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: calc(20 / 750 * 100vw);
  }
  .nav {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .nav a {
    font-size: clamp(0.75rem, 0.25rem + 2.1333vw, 1.25rem);
    color: #1300aa;
    letter-spacing: -0.01em;
  }
  .nav > a::after {
    display: inline-block;
  }
  .nav .nav-group {
    width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .nav .nav-group a:last-child::after {
    display: none;
  }
  .nav .nav-group:first-of-type {
    margin-bottom: 0.7em;
  }
  .btn-group {
    display: flex;
    justify-content: flex-end;
    gap: 0;
  }
  #profile_page .btn-group a:first-child {
    pointer-events: none;
    background-color: transparent;
    color: #2000bf;
    font-style: italic;
  }
  .btn {
    background-color: transparent;
    color: #2000bf;
    padding: 0;
    font-size: clamp(0.75rem, 0.25rem + 2.1333vw, 1.25rem);
    text-decoration: none;
    border-radius: none;
    letter-spacing: -0.01em;
  }
  .btn::before {
    content: "|";
    margin-inline: 0.1em;
    color: #2000bf;
    font-size: clamp(0.75rem, 0.25rem + 2.1333vw, 1.25rem);
    font-family: var(--font-family-serif);
    font-weight: normal;
  }
  #profile_page .btn-group a:hover {
    background-color: transparent;
    color: var(--primary-color);
  }
}

main {
  width: 100%;
  max-width: var(--window-max-size);
  margin-inline: auto;
  padding-inline: min(calc(45 / 1920 * 100%), 45px);
  margin-top: calc(var(--main-margin-top) / 1920 * 100%);
}
footer {
  display: block;
  width: 100%;
  height: auto;
  background-color: #007bff;
  margin-top: auto;
}
.footer-copyright {
  width: 100%;
  max-width: var(--window-max-size);
  margin-inline: auto;
  font-size: min(24px, 2.4vw);
  line-height: 1;
  font-family: var(--font-family);
  font-weight: normal;
  color: white;
  text-align: right;
  padding: 0.6em;
  display: flex;
  justify-content: end;
  align-items: center;
}

/* TOPへ戻るボタン */
p#back-top a {
  position: fixed;
  width: 60px;
  height: 60px;
  font-size: 21px;
  line-height: 1;
  z-index: 100;
  right: 30px;
  bottom: 80px;
  display: grid;
  place-items: center;
  transition: 0.5s;
  color: #fff;
  border-radius: 50%;
  background-color: var(--active-color);
  opacity: 0.7;
}

p#back-top a:hover {
  opacity: 1;
}

p#modal-top a {
  position: absolute;
  width: 45px;
  height: 45px;
  font-size: 21px;
  line-height: 1;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  transition: 0.5s;
  color: #fff;
  border-radius: 50%;
  opacity: 0.7;
}

/* SECTION */
section {
  margin-bottom: 50px;
}
.section-title {
  font-size: clamp(1.125rem, 0.9029rem + 1.7476vw, 3rem);
  color: var(--primary-color);
  font-weight: normal;
  margin: 35px 0 12px 0;
  letter-spacing: 0.05em;
}

.grid-video {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.grid a {
  overflow: hidden;
}
@media (max-width: 900px) {
  .grid-video {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

.grid-print,
.grid-scene {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 2px;
}
.grid-print .inner,
.grid-scene .inner {
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}
.grid-print .inner img,
.grid-scene .inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 展示 */
.inline-scene {
  display: none;
}
.inline-scene ul {
  width: 100%;
  height: 100%;
  background-color: #f7f3f4 !important;
  display: grid;
  grid-auto-flow: column;
  column-gap: 20px;
  row-gap: 20px;
  grid-template-rows: 70% auto;
  overflow: hidden;
  overflow-y: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* cursor: grab; */
}
.inline-scene ul.is-dragging {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  cursor: grabbing;
}
.inline-scene ul li {
  width: 100%;
  min-width: min(88vw, 750px);
  display: grid;
  grid-row: 1 / 3;
  grid-template-rows: subgrid;
  scroll-snap-align: start;
  padding-inline: 10px;
  background-color: #fff;
  padding-block: 1em;
  display: none;
}
.inline-scene ul li.active {
  display: grid;
}
#scene003.inline-scene ul {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important ;
}
#scene003.inline-scene ul li {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.inline-scene ul li .img-wrap {
  /* background-color: #000; */
  padding: 0;
}
.inline-scene ul li .img-wrap img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

/* プロフィール */

#profile h2.section-title {
  padding-bottom: 0.2em;
  border-bottom: 2px solid var(--primary-color);
}
.profile-content {
  width: 100%;
  margin-inline: auto;
  /* max-width: 1630px; */
  padding-inline: min(calc(100 / 1930 * 100%), 100px);
  margin-top: calc(90 / 1830 * 100%);
}
.profile-content * {
  font-size: 14px;
  color: #424242;
  font-weight: 400;
  font-family: var(--font-family);
  margin-bottom: 1em;
  line-height: 1.8;
}
.profile-content .ttl {
  font-size: 20px;
  color: black;
  font-weight: 400;
  font-family: var(--font-family);
  margin-bottom: 2em;
  line-height: 1.5;
}
.profile-content dl {
  display: flex;
  gap: 1em;
  /* margin-bottom: 1em; */
}
.profile-content dl dt {
  white-space: nowrap;
}
.profile-content dl dt::after {
  content: ":";
  margin-left: 0.5em;
}
.inner_profile {
  display: grid;
  grid-template-columns: 1fr calc(541 / 1830 * 100%);
  gap: calc(135 / 1830 * 100%);
  margin-bottom: 90px;
}
.inner_works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(135 / 1830 * 100%);
  margin-bottom: 90px;
}
@media (max-width: 767px) {
  section {
    margin-bottom: 50px;
  }
  .section-title {
    margin: 0 0 12px 0 !important;
  }
  p#back-top a {
    position: fixed;
    width: 50px;
    height: 50px;
    font-size: 18px;
    line-height: 1;
    z-index: 100;
    right: 15px;
    bottom: 10px;
    display: grid;
    place-items: center;
    transition: 0.5s;
    color: #fff;
    border-radius: 50%;
    background-color: var(--active-color);
    opacity: 0.7;
  }
}
@media (max-width: 900px) {
  .profile-content {
    width: 100%;
    margin-inline: auto;
    padding-inline: 0;
    margin-top: 45px;
  }
  .inner_profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 45px;
    position: relative;
  }
  .inner_profile_txt_wrap {
    position: relative;
    z-index: 1;
  }
  .inner_profile_img_wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    z-index: 0;
  }
  .inner_profile_img_wrap img {
    opacity: 0.8;
  }
  .profile-content .ttl {
    font-size: 21px;
    margin-bottom: 1.2em;
  }
  .profile-content * {
    font-size: 14px;
  }
  .inner_works {
    display: grid;
    grid-template-columns: 1fr;
    gap: 45px;
    margin-bottom: 45px;
  }
  .profile-content * {
    margin-bottom: 0.2em;
  }
  .inner_profile,
  .inner_works {
    margin-bottom: 45px;
  }
}

/* glightbox カスタマイズ */
.glightbox-container .ginner-container.desc-bottom,
.glightbox-container .ginner-container.desc-top {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  display: grid !important;
  aspect-ratio: 1 !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 1fr 200px !important;
  max-height: 740px !important;
}
@media (min-width: 769px) {
  .glightbox-container .ginner-container {
    width: auto;
    height: 100%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }
}

.goverlay {
  background: rgba(0, 0, 0, 0.7) !important;
}
body.glightbox3-open .goverlay {
  background: rgba(0, 0, 0, 1) !important;
}
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  display: none !important;
}
.gslide-inner-content {
  width: min(100%, 850px) !important;
  height: auto !important;
  aspect-ratio: 1 !important;
  padding: 30px !important;
  background-color: #f7f3f4 !important;
  /* f7f3f4 */
}
body.glightbox3-open .gslide-inner-content {
  background-color: transparent !important;
}
.zoomed .gslide-inner-content {
  width: 100% !important;
  max-height: 740px !important;
}
.glightbox-clean .gslide-media {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  height: 100% !important;
  width: 100%;
  aspect-ratio: 3 / 2;
}
.glightbox-clean .gslide-media img {
  max-height: 100% !important;
}
.glightbox-clean .gslide-description {
  background-color: transparent !important;
}
.glightbox-clean .gdesc-inner {
  padding: 30px 20px 0 0 !important;
}
.gslide-inline .ginlined-content {
  padding: 0 !important;
}
.glightbox-clean .gslide-title,
.gdesc-inner .title,
.inline-scene .ttl {
  font-size: 18px !important;
  font-weight: 400 !important;
  font-family: var(--font-family);
  color: #000 !important;
  margin-bottom: 1em;
  line-height: 1.4em;
}
.gdesc-inner *,
.inline-scene .txt {
  font-size: 14px !important;
  font-family: var(--font-family);
  font-weight: 500;
}
.inline-scene .ex {
  font-size: 13px !important;
  font-family: var(--font-family);
  font-weight: 300;
  margin-top: 0.4em;
}
.gdesc-inner p {
  margin-bottom: 0;
  line-height: 1.5;
}
.content-right {
  padding-left: 60% !important;
}
.content-default {
  padding-left: 0 !important;
}

@media (max-width: 767px) {
  .gslide-inner-content {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    padding: 15px !important;
    background-color: #f7f3f4 !important;
  }
  .glightbox-clean .gslide-media {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    height: auto !important;
    width: 100%;
    aspect-ratio: initial;
  }
  .inline-scene ul {
    width: 100%;
    background-color: #f7f3f4 !important;
    display: grid;
    grid-auto-flow: column;
    column-gap: 20px;
    row-gap: 10px;
    grid-template-rows: 80% 1fr;
    overflow: hidden;
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab; /* 操作可能であることを視覚的に提示 */
  }
  .glightbox-clean .gslide-title,
  .gdesc-inner .title,
  .inline-scene .ttl {
    font-size: 14px !important;
  }
  .gdesc-inner *,
  .inline-scene .txt {
    font-size: 12px !important;
    font-family: var(--font-family);
  }
  .inline-scene ul li .img-wrap {
    /* background-color: #000; */
    padding: 0;
  }
  .footer-copyright {
    width: 100%;
    max-width: var(--window-max-size);
    margin-inline: auto;
    font-size: min(24px, 4.4vw);
    line-height: 1;
    font-family: var(--font-family);
    font-weight: normal;
    color: white;
    text-align: right;
    padding: 0.6em;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
/* フォーム */
.inline-form {
  display: none;
}
#contact h2.section-title {
  padding-bottom: 0.2em;
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 1em;
}
.inner_contact_wrap {
  width: 100%;
  margin-inline: auto;
  padding-inline: min(calc(100 / 1930 * 100%), 100px);
}
.inner_contact {
  width: 100%;
}
.inner_contact .ttl {
  font-size: 20px;
  color: black;
  font-weight: 400;
  font-family: var(--font-family);
  margin-bottom: 2em;
  line-height: 1.5;
}
.inner_contact p {
  font-size: 14px;
  color: #424242;
}
.form-wrap {
  width: 100%;
  margin-top: 3rem;
}
.form-item {
  margin-bottom: 20px;
}
.form-item label {
  display: block;
  font-size: 14px;
  color: #424242;
  font-weight: 400;
  font-family: var(--font-family);
  margin-bottom: 0.3em;
  line-height: 1.5;
}
.form-item input,
.form-item textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: #fcfcfc;
  font-size: 16px;
  color: #424242;
  font-weight: 400;
  font-family: var(--font-family);
  line-height: 1.5;
}
.send_btn_w {
  text-align: center;
  margin-block: 3rem 2rem;
}
.send_btn {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  padding: 10px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  font-family: var(--font-family);
  line-height: 1.5;
}
.send_btn:hover {
  background-color: #2000bf;
  color: #fff;
}

.gslide-inner-content:has(#contact) {
  width: min(100%, 1400px) !important;
  height: auto !important;
  padding: 30px !important;
  background-color: #fff !important;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
  transform: translateZ(0);
  will-change: filter;
}
.error_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
  margin-bottom: -1rem;
  display: none;
}
body.validation .error_wrap {
  display: flex;
}
.error_wrap .error {
  font-size: 17px;
  color: red;
  font-weight: 400;
  font-family: var(--font-family);
  line-height: 1.5;
}

#thanks_part,
body.thanks_sending #contact_form {
  display: none;
}
body.thanks_sending #thanks_part {
  display: block;
  animation: fadeIn 1s ease forwards;
}

.gtrigger-close {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  padding: 10px;
  background-color: #42424285;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  font-family: var(--font-family);
  line-height: 1.5;
  transition: 0.5s;
}
.gtrigger-close:hover {
  background-color: #424242;
  color: #fff;
}
@media (max-width: 767px) {
  .inner_contact_wrap {
    width: 100%;
    padding-inline: 0;
  }
  .gslide-inner-content:has(#contact) {
    width: min(100%, 100%) !important;
    height: auto !important;
    padding: 20px !important;
  }
  .inner_contact .ttl {
    font-size: 22px;
  }
  .inner_contact p {
    font-size: 17px;
    color: #424242;
  }
  .form-item label {
    display: block;
    font-size: 18px;
    color: #424242;
  }
  .send_btn {
    width: 80%;
    max-width: 400px;
    margin-inline: auto;
    padding: 10px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 18px;
    font-weight: 400;
    font-family: var(--font-family);
    line-height: 1.5;
  }
  .send_btn {
    width: 80%;
    max-width: 300px;
    font-size: 18px;
  }
}
.glightbox-clean .gclose svg {
  width: 42px;
  height: auto;
}
@media (max-width: 767px) {
  .glightbox-clean .gclose svg {
    width: 24px;
    height: auto;
  }
}
.icon-close {
  color: #0485fc !important;
  width: 24px;
  height: 24px;
}
.glightbox-clean .gclose,
.glightbox-clean .gclose:hover,
.glightbox-clean .gnext,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev,
.glightbox-clean .gprev:hover {
  background-color: rgba(0, 0, 0, 0);
  border-radius: 4px;
}
.glightbox-clean .gclose path,
.glightbox-clean .gnext path,
.glightbox-clean .gprev path {
  fill: #0485fc;
}

@media (min-width: 992px) {
  .glightbox-clean .gclose {
    opacity: 0.7;
    right: 30px;
    top: 30px;
  }
}
/* GLightbox表示中の不自然なスクロールジャンプを防止 */
html.glightbox-open {
  scroll-behavior: auto !important;
}

/* --- ポップアップ（モーダル） --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease 0s 1 normal forwards;
}

/* アニメーション */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.modal-content {
  height: 90%;
  background: #f7f3f4;
  padding: 30px;
  max-width: 850px;
  max-height: 850px;
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.modal-content .inner {
  background-color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  gap: 10px;
}
/* 既存の #modal-media に対する調整 */
#modal-media {
  height: 90%; /*[cite: 2] */
  width: 100%; /*[cite: 2] */
  display: flex; /*[cite: 2] */
  justify-content: center; /*[cite: 2] */
  align-items: center; /*[cite: 2] */
  object-fit: contain; /*[cite: 2] */
  overflow: hidden; /* 追加: 画像拡大時にコンテナ外へのはみ出しを防ぐ */
}

/* --- 拡大時のアニメーション定義 --- */
@keyframes expandToViewport {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- モーダル内の基本画像スタイル --- */
.modal-content img {
  height: 100%; /*[cite: 2] */
  max-width: 100%; /*[cite: 2] */
  object-fit: contain; /*[cite: 2] */
  cursor: zoom-in; /* クリック可能であることを提示 */
}

/* --- ズーム状態の画像（ブラウザー全体へ拡大） --- */
.modal-content img.is-zoomed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: none; /* 親要素の制約を解除 */
  max-height: none;
  z-index: 2000; /* モーダル本体(z-index:1000)よりも手前に配置 */
  background-color: rgba(0, 0, 0, 1); /* 画像の背景を暗くし、背後を隠蔽 */
  object-fit: contain;
  cursor: zoom-out;
  margin: 0;
  padding: 2vw; /* 画面端ギリギリにならないよう適度な余白を設定 */
  box-sizing: border-box;
  animation: expandToViewport 0.2s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

.txt_wrap {
  width: 50%;
  margin-left: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
}
.modal-title {
  font-size: 18px;
  font-weight: 400;
  font-family: var(--font-family);
  color: #000;
  margin-bottom: 0.5em;
  line-height: 1.4em;
  text-align: left;
}
.modal-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  text-align: left;
}
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: min(calc(62 / 850 * 100vw), 42px);
  cursor: pointer;
  color: var(--primary-color);
}

@media screen and (max-width: 767px) {
  .txt_wrap {
    width: 100%;
  }
  .modal-content {
    height: initial;
    background: #f7f3f4;
    padding: 15px;
    max-width: initial;
    max-height: initial;
    width: 100%;
    aspect-ratio: 1;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .modal-content .inner {
    background-color: #fff;
    width: 100%;
    height: initial;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    gap: 10px;
  }
  .modal-title {
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-family);
    color: #000;
    margin-bottom: 0.5em;
    line-height: 1.4em;
    text-align: left;
  }
  .modal-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    text-align: left;
  }
  .close-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: min(calc(62 / 850 * 100vw), 42px);
    cursor: pointer;
    color: var(--primary-color);
  }
}

/* --- Scene of Exhibition 用モーダル --- */
#modal-scene {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85); /* 背後を暗くする */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* JavaScriptで .is-active が付与されたら表示 */
#modal-scene.is-active {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

/* 閉じるボタン */
#modal-scene .scene-close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 48px;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1001;
  line-height: 1;
}

/* 左右のナビゲーションボタン（今回は見た目のみ配置） */
#modal-scene .scene-prev-btn,
#modal-scene .scene-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--primary-color);
  cursor: pointer;
  z-index: 1001;
  user-select: none;
  /* ナビゲーションボタンを非表示にする */
  display: none;
}
#modal-scene .scene-prev-btn {
  left: 15px;
  transform: rotate(45deg);
}
#modal-scene .scene-next-btn {
  right: 15px;
  transform: rotate(225deg);
}

/* --- 左右ナビゲーションボタンの無効化状態 --- */
#modal-scene .scene-prev-btn.is-disabled,
#modal-scene .scene-next-btn.is-disabled {
  opacity: 0.2;
  pointer-events: none;
  cursor: default;
}

/* 展開されるコンテンツ領域の幅調整 */

#modal-scene .inline-scene {
  background: #f7f3f4;

  max-width: 100%;
  max-height: 100%;
  width: 100%;
  aspect-ratio: 1;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

@media screen and (max-width: 767px) {
  #modal-scene .inline-scene {
    background: #f7f3f4;
    padding: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .inline-scene ul {
    width: 100%;
    overflow-y: auto;
    background-color: #f7f3f4 !important;
    display: grid;
    grid-auto-flow: column;
    column-gap: 20px;
    row-gap: 10px;
    grid-template-rows: 50% auto;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
  }
  .inline-scene ul li {
    width: 100%;
    min-width: 93vw;
    display: grid;
    grid-row: 1 / 3;
    grid-template-rows: subgrid;
    scroll-snap-align: start;
    padding-inline: 10px;
    background-color: #fff;
    padding-block: 1em;
    display: none;
  }
  .inline-scene ul li .img-wrap img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }
  /* 閉じるボタン */
  #modal-scene .scene-close-btn {
    position: absolute;
    top: 5px;
    right: 0px;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
  }
  /* 左右のナビゲーションボタン（今回は見た目のみ配置） */
  #modal-scene .scene-prev-btn,
  #modal-scene .scene-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    user-select: none;
  }
  #modal-scene .scene-prev-btn {
    left: 5px;
    transform: rotate(45deg);
  }
  #modal-scene .scene-next-btn {
    right: 5px;
    transform: rotate(225deg);
  }
}

/* --- Scene of Exhibition 用：画像クリック時のカーソル設定 --- */
#modal-scene .img-wrap img {
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Scene of Exhibition 用：ズーム状態の独立クラス --- */
/* Print Works側（.is-zoomed）に影響を与えないようクラス名を分離 */
#modal-scene img.scene-is-zoomed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: none !important;
  max-height: none !important;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.95);
  object-fit: contain;
  cursor: zoom-out;
  margin: 0;
  padding: 2vw;
  box-sizing: border-box;
  animation: expandToViewport 0.2s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}
/* --- モーダル表示時の背景スクロールロック --- */
body.is-locked {
  overflow: hidden;
}

@view-transition {
  navigation: auto;
}
.container {
  view-transition-name: container;
}
::view-transition-group(container) {
  animation-duration: 1s;
}
::view-transition-old(container) {
  animation: slide-out 0.5s ease-in-out forwards;
}
::view-transition-new(container) {
  animation: slide-in 0.5s ease-in-out forwards;
}
@keyframes slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-80px);
    opacity: 0;
  }
}
@keyframes slide-in {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
