:root {
  --black: rgb(30, 30, 30);
  --dark-gray: #686868;
  --light-gray: rgb(220, 220, 220);
  --blue: #1a5999;
  --white: #fff;
  --page: rgb(247, 247, 247);
  --body-font: "筑紫A丸ゴシック", "Tsukushi A Round Gothic", "TsukushiAMaruGothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --bold-font: "筑紫A丸ゴシック", "Tsukushi A Round Gothic", "TsukushiAMaruGothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--dark-gray);
  font-family: var(--body-font);
  letter-spacing: 0.05em;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

p,
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
}

.hero {
  position: relative;
  min-height: min(1017px, 100svh);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 55%), url("assets/hero.webp") left center / 135% auto no-repeat;
  display: flex;
  align-items: flex-start;
  padding: clamp(96px, 12vw, 160px) 8vw;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.08) 48%, transparent 78%);
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transform: translateX(5vw);
}

.hero h1 {
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.4;
  margin-bottom: 8px;
}

.hero p {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
}

.story {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(36px, 6vw, 88px) clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 156px) clamp(32px, 6vw, 80px);
  background: var(--white);
  overflow: hidden;
}

.story__intro {
  grid-column: 1 / -1;
  max-width: 980px;
  margin: 0 auto clamp(12px, 2vw, 32px);
}

.story__intro h2 {
  font-family: var(--bold-font);
  font-size: clamp(28px, 3vw, 32px);
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: clamp(28px, 4vw, 48px);
  text-align: center;
}

.story__intro p,
.story__text {
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 2.35;
  text-align: justify;
}

.story__intro p {
  max-width: 920px;
  margin: 0 auto;
}

.story__image {
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  height: auto;
}

.story__image--one {
  aspect-ratio: 2679 / 2287;
}

.story__image--two {
  grid-column: 2;
  aspect-ratio: 899 / 1200;
  width: min(72%, 360px);
  justify-self: center;
}

.story__image--three {
  aspect-ratio: 3560 / 2665;
}

.story__text {
  min-width: 0;
}

.story__text--right {
  grid-column: 2;
  grid-row: 2;
}

.story__text--left {
  grid-column: 1;
  grid-row: 3;
}

.meeting {
  background: var(--light-gray);
  padding: 180px 80px 220px;
}

.section-row {
  width: min(1034px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.side-title {
  flex: 0 0 45px;
  min-height: 207px;
  margin-right: 80px;
  padding-right: 12px;
  border-right: 2px solid var(--black);
  color: var(--black);
  font-family: var(--bold-font);
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: 1.4;
  writing-mode: vertical-rl;
}

.section-body {
  flex: 1;
  position: relative;
  padding-top: 40px;
}

.section-body h3 {
  color: var(--black);
  font-family: var(--bold-font);
  font-size: 28px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  margin-bottom: 16px;
}

.section-body p {
  color: var(--black);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 0;
  text-align: justify;
}

.sketches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 88px;
}

.sketches img {
  aspect-ratio: 403 / 504;
  border-radius: 8px;
}

.movie,
.carving {
  background: var(--light-gray);
  padding: 96px 80px 0;
}

.section-row--compact {
  align-items: flex-start;
  margin-bottom: 72px;
}

.movie .section-row--compact {
  margin-bottom: 104px;
}

.carving .section-row--compact {
  margin-bottom: 72px;
}

.carving .side-title {
  min-height: 104px;
}

.carving .lead {
  padding-top: 62px;
}

.section-row--compact .side-title {
  min-height: 104px;
}

.section-row--compact .lead {
  padding-top: 62px;
}

.lead {
  color: var(--black);
  font-size: 24px;
  line-height: 1.6;
  padding-top: 40px;
}

.video {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  aspect-ratio: 980 / 717;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.carousel {
  display: flex;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--light-gray);
}

.carousel img {
  flex: 0 0 80%;
  height: 120%;
  margin-top: -5%;
  mix-blend-mode: soft-light;
  animation: slideShow 13.5s linear infinite;
}

.pin {
  position: relative;
  min-height: 1105px;
  overflow: hidden;
}

.pin__image {
  position: absolute;
  inset: 0;
}

.pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.08));
}

.pin__copy {
  position: relative;
  z-index: 1;
  width: min(70%, 1080px);
  padding: 46px 0 0 8.5%;
  color: var(--white);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pin__copy h2 {
  font-size: 24px;
  line-height: 1.6;
  margin-bottom: 36px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
}

.pin__copy p {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0.15em;
  margin: 0 0 26px 8.5%;
  max-width: 880px;
}

.contact {
  background: var(--light-gray);
  padding: 120px 40px 140px;
}

.contact__panel {
  width: min(822px, 100%);
  margin: 0 auto;
  padding: 96px 40px 64px;
  border-radius: 12px;
  background: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.contact h2 {
  color: var(--black);
  font-size: 24px;
  line-height: 1.6;
  text-align: center;
}

.contact p {
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

form {
  width: min(600px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

label {
  width: 100%;
}

textarea {
  width: 100%;
  height: 302px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  font: 400 16px / 1.8 var(--body-font);
  letter-spacing: 0.02em;
  padding: 10px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 3px 3px 0 var(--blue);
}

button {
  width: 200px;
  height: 60px;
  border: 1px solid var(--blue);
  border-radius: 40px;
  background: var(--blue);
  color: var(--white);
  font: 400 16px / 1.6 var(--body-font);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

button:hover {
  background: transparent;
  color: var(--blue);
}

.reveal {
  opacity: 0.12;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
  filter: blur(3px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes slideShow {
  0%,
  30% {
    transform: translateX(0);
  }
  33%,
  63% {
    transform: translateX(-100%);
  }
  66%,
  96% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: 820px;
    background-size: auto 100%;
    padding: 120px 7vw;
  }

  .hero__copy {
    transform: none;
  }

  .story {
    padding: 120px 7vw;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }

  .story__intro,
  .story__image,
  .story__text {
    width: auto;
  }

  .story__intro {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .story__intro h2 {
    font-size: 30px;
    margin-bottom: 40px;
  }

  .story__intro p,
  .story__text {
    font-size: 16px;
    line-height: 2.2;
    padding: 0;
  }

  .story__image {
    aspect-ratio: 4 / 3;
  }

  .story__image--two {
    grid-column: auto;
    width: auto;
    aspect-ratio: 899 / 1200;
  }

  .story__text--right,
  .story__text--left {
    grid-column: auto;
    grid-row: auto;
  }

  .story__text--right,
  .story__text--left {
    align-self: center;
  }

  .meeting,
  .movie,
  .carving {
    padding-left: 7vw;
    padding-right: 7vw;
  }

  .section-row {
    width: min(74%, 680px);
    flex-direction: column;
    align-items: center;
  }

  .section-row--compact {
    margin-bottom: 60px;
  }

  .side-title {
    flex: none;
    min-height: 0;
    width: auto;
    margin: 0 0 40px;
    padding: 0 0 4px;
    border-right: 0;
    border-bottom: 2px solid var(--black);
    font-size: 16px;
    text-align: center;
    writing-mode: horizontal-tb;
  }

  .section-body {
    padding-top: 0;
  }

  .section-body h3,
  .lead {
    font-size: 26px;
    text-align: center;
  }

  .lead {
    padding-top: 0;
  }

  .sketches {
    gap: 32px;
  }

  .carousel {
    height: 640px;
    min-height: 0;
  }

  .pin {
    min-height: 980px;
  }

  .pin__copy {
    width: min(82%, 760px);
    margin: 0 auto;
    padding: 48px 0 0;
    text-align: left;
  }

  .pin__copy h2 {
    margin-bottom: 28px;
  }

  .pin__copy p {
    margin-left: 10%;
    max-width: 640px;
  }
}

@media (max-width: 720px) {
  .story {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story__intro,
  .story__image,
  .story__text,
  .story__image--two,
  .story__text--right,
  .story__text--left {
    grid-column: auto;
    grid-row: auto;
    width: auto;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 680px;
    background-position: 36% center;
    padding: 96px 30px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08) 46%, transparent 76%);
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .story {
    padding: 70px 30px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .story__intro h2 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: left;
  }

  .story__intro p,
  .story__text {
    font-size: 15px;
    line-height: 2.1;
  }

  .story__image {
    aspect-ratio: 16 / 11;
  }

  .story__image--two {
    aspect-ratio: 4 / 5;
  }

  .meeting,
  .movie,
  .carving {
    padding: 48px 30px 40px;
  }

  .section-row {
    width: 100%;
    align-items: flex-start;
  }

  .side-title {
    margin-bottom: 18px;
    font-size: 14px;
    text-align: left;
  }

  .section-row--compact {
    margin-bottom: 28px;
  }

  .movie .section-row--compact,
  .carving .section-row--compact {
    margin-bottom: 28px;
  }

  .section-row--compact .side-title,
  .carving .side-title {
    min-height: 0;
    margin-bottom: 22px;
    padding-bottom: 10px;
    width: 96px;
  }

  .section-row--compact .lead,
  .carving .lead {
    padding-top: 0;
  }

  .section-body h3,
  .lead {
    font-size: 22px;
    text-align: left;
  }

  .section-body p {
    font-size: 15px;
    line-height: 2;
  }

  .sketches {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }

  .video {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .carousel {
    height: 500px;
    margin-left: -30px;
    width: calc(100% + 60px);
  }

  .carousel img {
    flex-basis: 100%;
    height: 100%;
    margin-top: 0;
  }

  .pin {
    min-height: 760px;
  }

  .pin__image {
    object-position: 56% center;
  }

  .pin__copy {
    width: auto;
    padding: 48px 30px 0;
    text-align: left;
  }

  .pin__copy h2 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .pin__copy p {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.08em;
    margin-left: 0;
  }

  .contact {
    padding: 20px 20px 80px;
  }

  .contact__panel {
    align-items: flex-start;
    gap: 32px;
    padding: 70px 10px 40px;
    border-radius: 0;
  }

  .contact h2,
  .contact p {
    text-align: left;
  }

  .contact h2 {
    font-size: 20px;
  }

  button {
    width: 170px;
    height: 56px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
