/* =========================================
   BASIC SETUP
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #222222;

  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;

  -webkit-font-smoothing: antialiased;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
  width: 88%;
  max-width: 1600px;
  margin: 0 auto;

  padding: 38px 0 55px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  color: #222222;
  text-decoration: none;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.14em;

  display: flex;
  flex-direction: column;
}

.site-name-ja {
  display: none;

  margin-top: 5px;

  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* Handwritten signature header */
.site-signature {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
}

/* Light/dark mode */
html.dark-mode .site-signature {
  filter: invert(1);
}


html[data-language="ja"] .site-name-ja {
  display: block;
}

html[data-language="ja"] .season-overlay span {
  font-size: 25px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: #555555;
  text-decoration: none;

  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition: opacity 0.3s ease;
}

.site-nav a:hover {
  opacity: 0.5;
}


/* =========================================
   SEASONAL HOMEPAGE IMAGES
   ========================================= */

.season-grid {
  width: 88%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.season-card {
  position: relative;
  display: block;
  overflow: hidden;

  /* Wide panoramic slide */
  aspect-ratio: 5 / 1;

  background: #eeeeee;
  text-decoration: none;
}

.season-card .slide {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  transition:
    opacity 1.4s ease,
    transform 0.7s ease;
}

.season-card .slide.visible {
  opacity: 1;
}


/* =========================================
   HOVER OVERLAY
   ========================================= */

.season-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(40, 40, 40, 0);

  transition: background 0.45s ease;
}

.season-overlay span {
  color: #ffffff;

  font-size: 17px;
  font-weight: 400;

  letter-spacing: 0.18em;
  text-transform: uppercase;

  opacity: 0;

  transform: translateY(5px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.season-card:hover .season-overlay {
  background: rgba(40, 40, 40, 0.5);
}

.season-card:hover .season-overlay span {
  opacity: 1;
  transform: translateY(0);
}

.season-card:hover .slide {
  transform: scale(1.015);
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  width: 88%;
  max-width: 1600px;

  margin: 0 auto;
  padding: 70px 0 35px;

  color: #888888;

  font-size: 10px;
  letter-spacing: 0.06em;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

  .site-header {
    width: 90%;

    padding: 25px 0 35px;

    flex-direction: column;
    align-items: flex-start;

    gap: 18px;
  }

  .site-title {
    font-size: 17px;
  }

   .site-signature {
     width: 185px;
   }

  .site-nav {
    gap: 20px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .season-grid {
    width: 90%;
    gap: 28px;
  }

   html[data-language="ja"] .season-overlay span {
  font-size: 21px;
}
  /*
     A little taller on phones so the photographs
     don't become extremely thin panoramic strips.
  */

  .season-card {
    aspect-ratio: 1.6 / 1;
  }

  /*
     Phones don't have a meaningful hover state,
     so display the season name over the image.
  */

  .season-overlay {
    background: rgba(40, 40, 40, 0.12);
  }

  .season-overlay span {
    opacity: 1;
    transform: none;

    font-size: 14px;
  }

  .site-footer {
    width: 90%;
    padding: 50px 0 25px;
  }
}

/* =========================================
   ABOUT PAGE
   ========================================= */

.about-page {
  width: 88%;
  max-width: 1200px;
  margin: 30px auto 0;

  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);

  gap: 80px;
  align-items: center;
}

.about-image img {
  display: block;

  width: 100%;
  height: auto;

  object-fit: cover;
}

.about-copy {
  max-width: 520px;
}

.about-copy h1 {
  margin: 0 0 30px;

  font-size: 18px;
  font-weight: 500;

  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-copy p {
  margin: 0 0 22px;

  color: #444444;

  font-size: 15px;
  line-height: 1.8;
}

.social-links {
  margin-top: 35px;

  display: flex;
  align-items: center;

  gap: 18px;
}

.social-links a {
  display: inline-flex;

  opacity: 0.65;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-links img {
  display: block;

  width: 50px;
  height: 50px;

  object-fit: contain;
}


/* =========================================
   ABOUT PAGE — MOBILE
   ========================================= */

@media (max-width: 700px) {

  .about-page {
    width: 90%;

    margin-top: 5px;

    grid-template-columns: 1fr;

    gap: 38px;
  }

  .about-copy {
    max-width: none;
  }

  .about-copy h1 {
    font-size: 16px;
  }

  .about-copy p {
    font-size: 14px;
    line-height: 1.75;
  }

  .social-links {
    margin-top: 28px;
  }

}

/* =========================================
   COMING SOON PAGE
   ========================================= */

.coming-soon {
  width: 88%;
  max-width: 1600px;

  min-height: 55vh;

  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: center;
}

.coming-soon p {
  margin: 0;

  color: #777777;

  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================
   SEASONAL GALLERY
   ========================================= */

.gallery-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.gallery-header {
  padding-bottom: 25px;
}


/* Main gallery area */

.gallery-viewer {
  width: 88%;
  max-width: 1600px;
  margin: 0 auto;
}

.gallery-heading {
  margin-bottom: 15px;
}

.gallery-heading h1 {
  margin: 0;

  font-size: 12px;
  font-weight: 400;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: #777777;
}

html[data-language="ja"] .gallery-heading h1 {
  font-size: 18px;
  letter-spacing: 0;
}

/* The fixed visual stage */

.gallery-stage {
  position: relative;

  width: 100%;
  height: min(76vh, 950px);

  overflow: hidden;

  background: #f2f2f2;
  transition: background-color 0.75s ease;
}

.gallery-slide {
  position: absolute;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 18px 6px;
}

.gallery-slide img {
  display: block;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;

  opacity: 1;

  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}


/* Caption and counter */

.gallery-info {
  min-height: 50px;

  padding-top: 13px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  gap: 30px;
}

.gallery-caption {
  color: #666666;

  font-size: 11px;
  line-height: 1.6;

  letter-spacing: 0.03em;
}

/* Caption position for horizontal photographs */

.gallery-caption.landscape {
  margin-left: 22.5%;
}


/* Caption position for vertical photographs */

.gallery-caption.portrait {
  margin-left: 34.5%;
}
.gallery-counter {
  flex-shrink: 0;

  color: #888888;

  font-size: 10px;
  letter-spacing: 0.08em;
}

.counter-divider {
  padding: 0 4px;
}


/* Previous / Next */

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-top: 6px;

  gap: 10px;
}

.gallery-controls button {
  padding: 5px 0;

  border: 0;
  background: none;

  color: #555555;

  font-family: inherit;
  font-size: 10px;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  cursor: pointer;

  transition: opacity 0.25s ease;
}

.gallery-controls button:hover {
  opacity: 0.45;
}

.gallery-controls button:disabled {
  opacity: 0.2;
  cursor: default;
}

.control-divider {
  color: #aaaaaa;
  font-size: 10px;
}


/* Previous / next season */

.gallery-season-nav {
  width: 88%;
  max-width: 1600px;

  margin: 45px auto 0;
  padding-bottom: 30px;

  display: flex;
  justify-content: space-between;

  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-season-nav a {
  color: #666666;
  text-decoration: none;

  transition: opacity 0.3s ease;
}

.gallery-season-nav a:hover {
  opacity: 0.5;
}

.season-nav-disabled {
  color: #bbbbbb;
}


/* =========================================
   GALLERY — MOBILE
   ========================================= */

@media (max-width: 700px) {

  .gallery-header {
    padding-bottom: 20px;
  }

  .gallery-viewer {
    width: 90%;
  }

  .gallery-stage {
    height: 58vh;
  }

  .gallery-slide {
    padding: 8px;
  }

  .gallery-info {
    min-height: 55px;
  }

  .gallery-season-nav {
    width: 90%;
    margin-top: 35px;
  }

  .gallery-caption.landscape,
  .gallery-caption.portrait {
    margin-left: 0;
  }

}

/* ========================================
   LIGHT / DARK THEME
   ======================================== */

body {
  transition:
    background-color 0.75s ease,
    color 0.75s ease;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 0;
  background: none;

  color: #555555;

  font-family:
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.04em;

  cursor: pointer;

  transition:
    color 0.75s ease,
    opacity 0.3s ease;
}

.language-toggle {
  transform: translateY(-1px);
}

.theme-toggle {
  transform: translateY(-2px);
}

.language-toggle:hover {
  opacity: 0.5;
}

/* Theme toggle */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 0;
  background: none;

  color: #555555;

  font-family: inherit;
  font-size: 16px;
  line-height: 1;

  cursor: pointer;

  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

.theme-toggle:hover {
  opacity: 0.5;
}


/* Dark mode */

html.dark-mode body {
  background: #111111;
  color: #eeeeee;
}

html.dark-mode .site-title {
  color: #eeeeee;
}

html.dark-mode .site-nav a {
  color: #bbbbbb;
}

html.dark-mode .language-toggle {
  color: #bbbbbb;
}

html.dark-mode .theme-toggle {
  color: #dddddd;
}

html.dark-mode .gallery-heading h1 {
  color: #aaaaaa;
}

html.dark-mode .gallery-stage {
  background: #202020;
}

html.dark-mode .gallery-caption {
  color: #aaaaaa;
}

html.dark-mode .gallery-counter {
  color: #999999;
}

html.dark-mode .gallery-controls button {
  color: #bbbbbb;
}

html.dark-mode .control-divider {
  color: #777777;
}

html.dark-mode .gallery-season-nav a {
  color: #aaaaaa;
}

html.dark-mode .site-footer {
  color: #888888;
}

html.dark-mode .about-copy p {
  color: #bbbbbb;
}

.site-title,
.site-nav a,
.theme-toggle,
.gallery-heading h1,
.gallery-caption,
.gallery-counter,
.gallery-controls button,
.control-divider,
.gallery-season-nav a,
.site-footer,
.about-copy p {
  transition:
    color 0.75s ease,
    opacity 0.3s ease;
}

html[data-language="ja"]:not(.language-ready)
  [data-en][data-ja] {
  visibility: hidden;
}

/* --------------------------------
   Gallery typography controls
   -------------------------------- */

/* ENGLISH */

html[data-language="en"] .gallery-caption {
  font-size: 12px;
}

html[data-language="en"] .gallery-counter {
  font-size: 11px;
}

html[data-language="en"] .gallery-controls button {
  font-size: 11px;
}

html[data-language="en"] .control-divider {
  font-size: 11px;
}

html[data-language="en"] .gallery-season-nav {
  font-size: 11px;
}


/* JAPANESE */

html[data-language="ja"] .gallery-caption {
  font-size: 12px;
}

html[data-language="ja"] .location-ja {
  font-size: 12px;
}

html[data-language="ja"] .gallery-counter {
  font-size: 12px;
}

html[data-language="ja"] .gallery-controls button {
  font-size: 13px;
}

html[data-language="ja"] .control-divider {
  font-size: 12px;
}

html[data-language="ja"] .gallery-season-nav {
  font-size: 13px;
}

/* Mobile */

@media (max-width: 700px) {

  .theme-toggle {
    font-size: 15px;
  }

}

/* About page bilingual biography */
.bio-japanese {
  display: none;
}

html[data-language="ja"] .bio-english {
  display: none;
}

html[data-language="ja"] .bio-japanese {
  display: block;
}
