*, *::before, *::after {box-sizing:border-box;}
:root {--font-body: Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
--color-bg: rgb(250 250 250 / 1);
--color-text:#333;
}
html {font-size:15px; -webkit-text-size-adjust:100%;}
body,
h1, h2, h3, h4, h5, h6,
p, blockquote, figure, dl, dd {margin:0;}
body {min-height:100vh;line-height:1.5;text-rendering:optimizeLegibility;}
h1, h2, h3, h4, h5, h6 {font-weight: 200; line-height:1.2;}
p, h1, h2, h3, h4, h5, h6 {overflow-wrap:break-word;}
ul, ol {list-style:none;margin:0;padding:0;}
a {text-decoration:none;color:inherit;}
img,picture,video,canvas,svg {display:block;max-width:100%;height:auto;}

/* Scoped opacity transition only for targeted page images with spinner */
.has-spinner img,
.works_archive img,
.image_rep img,
#single figure.wp-block-image img,
#single .wp-block-gallery img {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fullSlideShow img {
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.has-spinner img.loaded,
.fullSlideShow img.loaded,
.works_archive img.loaded,
.image_rep img.loaded,
#single figure.wp-block-image img.loaded,
#single .wp-block-gallery img.loaded,
img.loaded {
  opacity: 1;
}

/* Ensure logo and header/footer elements are always fully visible */
#logo img,
header img,
.slide_comp img {
  opacity: 1 !important;
}

/* Lightbox & PhotoSwipe compatibility */
.pswp,
.pswp *,
.pswp__img,
.pswp img,
[class*="pswp"] img,
[class*="lightbox"] img,
.lb-image {
  opacity: 1 !important;
  max-width: none !important;
  transition: none !important;
}

/* Spinner Animation & Image Loading States */
@keyframes moa-spinner {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.has-spinner {
  position: relative;
}

.has-spinner.is-loading::after,
.thumbnail-wrapper:not(:has(img.loaded))::after,
.image_rep:not(:has(img.loaded))::after,
.fullSlideShow:not(:has(img.loaded))::after,
.fullSlideShow ul li:not(:has(img.loaded))::after,
#single figure.wp-block-image:not(:has(img.loaded))::after,
#single .wp-block-gallery .wp-block-image:not(:has(img.loaded))::after,
#single .wp-block-gallery li:not(:has(img.loaded))::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: #222;
  border-radius: 50%;
  animation: moa-spinner 0.75s linear infinite;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullSlideShow.has-spinner.is-loading::after {
  z-index: 1000;
}

.has-spinner.is-loaded::after,
.thumbnail-wrapper:has(img.loaded)::after,
.image_rep:has(img.loaded)::after,
.fullSlideShow:has(img.loaded)::after,
.fullSlideShow ul li:has(img.loaded)::after,
#single figure.wp-block-image:has(img.loaded)::after,
#single .wp-block-gallery .wp-block-image:has(img.loaded)::after,
#single .wp-block-gallery li:has(img.loaded)::after {
  opacity: 0;
  visibility: hidden;
  animation: none;
}
svg {max-height:100vh;}
picture img {height:auto;width:100%;}
input,button,textarea,select {font:inherit;}
button {background:none;border:none;padding:0;cursor:pointer;}
table {border-collapse:collapse;border-spacing:0;}
blockquote,q {quotes:none;}
blockquote::before,blockquote::after,q::before,q::after {content:'';}
article,aside,footer,header,nav,section,main {display:block;}
:target {scroll-margin-block:5ex;}
:focus-visible {outline:2px solid currentColor;outline-offset:2px;}
@media (prefers-reduced-motion:reduce) {*{animation-duration:0.01ms!important;animation-iteration-count:1!important;transition-duration:0.01ms!important;}}