/* ====================================
   RESET
==================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  color: #1f1f1f;
  background: #f7f4ef;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ====================================
   COMMON
==================================== */

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.section {
  padding: 140px 0;
}

.story-label {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #8b7f67;
  margin-bottom: 20px;
}

.story-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ====================================
   HERO
==================================== */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #ede8df;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ede8df;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 8%;
  bottom: 10%;
  color: #fff;
  max-width: 720px;
  z-index: 2;
}

.hero-label {
  font-size: 13px;
  letter-spacing: 0.25em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  z-index: 2;
}

/* ====================================
   SPEC
==================================== */

.spec {
  background: #f7f4ef;
}

.spec-inner {
  max-width: 900px;
}

.spec-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 48px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 60px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.spec-label {
  color: #777;
  white-space: nowrap;
}

.spec-value {
  font-weight: 500;
  text-align: right;
}

/* ====================================
   STORY
==================================== */

.story {
  background: #fff;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text p:not(.story-label) {
  margin-bottom: 28px;
}

.story-image img {
  max-height: 720px;
  object-fit: contain;
  background: #f1ede6;
}

/* ====================================
   PHOTO WALK
==================================== */

.gallery {
  background: #f7f4ef;
  overflow: hidden;
}

.gallery-head {
  text-align: center;
  margin-bottom: 70px;
}

.gallery-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
}

.gallery-slider {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 8vw 28px;
  -webkit-overflow-scrolling: touch;
}

.gallery-slider::-webkit-scrollbar {
  height: 8px;
}

.gallery-slider::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
}

.gallery-slider::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.gallery-item {
  flex: 0 0 auto;
  width: min(78vw, 900px);
  scroll-snap-align: center;
}

.gallery-item img {
  width: 100%;
  height: 620px;
  object-fit: contain;
  object-position: center;
  background: #eee9e1;
}

.gallery-caption {
  margin-top: 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* ====================================
   DESIGN POINT
==================================== */

.feature {
  background: #f0ece6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background: #fff;
  padding: 42px;
}

.feature-card h3 {
  margin-bottom: 20px;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.7;
}

.feature-card p {
  color: #555;
}

/* ====================================
   RELATED GALLERY
==================================== */

.gallery-link {
  text-align: center;
  background: #fff;
}

.gallery-link-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.6;
}

.gallery-link-text {
  max-width: 760px;
  margin: 0 auto 44px;
  color: #666;
}

.gallery-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 44px;
  border: 1px solid #1f1f1f;
  font-size: 14px;
  transition: 0.3s ease;
}

.gallery-button:hover {
  background: #1f1f1f;
  color: #fff;
}

/* ====================================
   WORKS NAVIGATION
==================================== */

.works-navigation {
  padding: 90px 20px;
  background: #fff;
}

.works-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.works-nav-item {
  display: block;
  padding: 28px;
  background: #f7f4ef;
  transition: 0.3s ease;
}

.works-nav-item:hover {
  transform: translateY(-4px);
}

.works-nav-item span {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #8b6f47;
}

.works-nav-item strong {
  display: block;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}

.works-nav-prev {
  text-align: left;
}

.works-nav-next {
  text-align: right;
}

.works-nav-empty {
  background: transparent;
  pointer-events: none;
}

.works-nav-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 38px;
  border: 1px solid #1f1f1f;
  font-size: 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: 0.3s ease;
}

.works-nav-list:hover {
  background: #1f1f1f;
  color: #fff;
}

/* ====================================
   FOOTER
==================================== */

.footer {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f4ef;
}

.footer-logo-link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
  opacity: 0.65;
}

.footer-logo-image {
  width: 180px;
  height: auto;
  margin: 0 auto;
}

/* ====================================
   JS REVEAL
==================================== */

.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================
   MOBILE
==================================== */

@media screen and (max-width: 768px) {
  .container {
    width: min(100% - 48px, 1200px);
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    height: 92vh;
  }

  .hero-image {
    object-fit: cover;
    object-position: center;
  }

  .hero-overlay {
    background: rgba(0, 0, 0, 0.22);
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 12%;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .spec-title {
    font-size: 1.8rem;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .spec-item {
    padding: 16px 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .story-title {
    font-size: 1.8rem;
    line-height: 1.7;
  }

  .story-image img {
    max-height: none;
  }

  .gallery-head {
    margin-bottom: 48px;
  }

  .gallery-slider {
    gap: 20px;
    padding: 0 24px 24px;
  }

  .gallery-item {
    width: 86vw;
  }

  .gallery-item img {
    height: 520px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 32px 26px;
  }

  .gallery-button {
    width: 100%;
    max-width: 320px;
  }

  .works-navigation {
    padding: 70px 20px;
  }

  .works-nav-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .works-nav-item,
  .works-nav-prev,
  .works-nav-next {
    text-align: left;
  }

  .works-nav-empty {
    display: none;
  }

  .works-nav-list {
    width: 100%;
    order: 3;
  }

  .footer-logo-image {
    width: 150px;
  }
}