:root {
  --color-ink: #142033;
  --color-forest: #1a365d;
  --color-moss: #3d5a80;
  --color-cedar: #6e4f34;
  --color-river: #2c4a6e;
  --color-mist: #e8eef5;
  --color-snow: #f5f8fc;
  --color-gold: #b8975a;
  --header-h: 5.5rem;
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(61, 90, 128, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(26, 54, 93, 0.1), transparent 50%),
    linear-gradient(180deg, var(--color-snow) 0%, var(--color-mist) 100%);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-mincho);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.site-main {
  overflow-x: clip;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: #3d5a80;
  border-bottom: 1px solid rgba(20, 32, 51, 0.12);
  transition: background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.site-header.is-scrolled {
  background: #355274;
  box-shadow: 0 8px 24px rgba(10, 20, 36, 0.16);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 2rem 0 1.5rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.site-header__logo img {
  width: min(260px, 56vw);
  height: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.site-header__nav a {
  position: relative;
  color: #f5f8fc;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header__nav a:not(.site-header__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-soft);
}

.site-header__nav a:not(.site-header__cta):hover::after {
  transform: scaleX(1);
}

.site-header__cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(245, 248, 252, 0.55);
  border-radius: 999px;
  background: transparent;
}

.site-header__cta:hover {
  background: #fff;
  color: var(--color-forest);
  border-color: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s var(--ease-soft);
  will-change: opacity, transform;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: hero-zoom 5s linear forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(14, 24, 40, 0.28) 0%, rgba(14, 24, 40, 0.4) 45%, rgba(14, 24, 40, 0.58) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: calc(var(--header-h) + 1rem) 1.25rem 2rem;
  animation: hero-title-in 1.6s var(--ease-soft) both;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  margin: 1.25rem 0 0;
  font-family: var(--font-mincho);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.18em;
  opacity: 0.92;
}

@keyframes hero-title-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide.is-active {
    animation: none;
  }

  .hero__content {
    animation: none;
  }

  .marquee__track {
    animation: none !important;
  }
}

/* ===== Sections ===== */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section__head {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.section__title {
  margin: 0;
  color: var(--color-forest);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.1em;
}

.section__desc {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  color: rgba(20, 32, 51, 0.72);
}

/* ===== Marquee (section 2) ===== */
.section--marquee {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.marquee {
  overflow: hidden;
  margin-top: 0.75rem;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0.5rem;
  will-change: transform;
}

.marquee--left .marquee__track {
  animation: marquee-left 48s linear infinite;
}

.marquee--right .marquee__track {
  animation: marquee-right 52s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.marquee__item {
  position: relative;
  flex: 0 0 auto;
  width: min(42vw, 360px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: #fff;
}

.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease-soft);
}

.marquee__item:hover img {
  transform: scale(1.08);
}

.marquee__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(14, 24, 40, 0.15), rgba(14, 24, 40, 0.5));
}

.marquee__overlay h3 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.12em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.marquee__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ===== Kurashi (section 3) ===== */
.kurashi {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.kurashi__media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.kurashi__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.kurashi__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(20, 32, 51, 0.25));
  pointer-events: none;
}

.kurashi__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--color-moss);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
}

.kurashi__text {
  margin: 1rem 0 1.75rem;
  color: rgba(20, 32, 51, 0.78);
}

/* ===== Search (section 4) ===== */
.section--search {
  background:
    linear-gradient(180deg, rgba(26, 54, 93, 0.07), rgba(44, 74, 110, 0.1));
}

.search-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.search-panel__intro {
  margin-bottom: 1.75rem;
}

.search-panel__form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.25rem 0;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--color-river);
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 0;
  border-bottom: 1px solid rgba(26, 54, 93, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--color-forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
  background: var(--color-forest);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-river);
}

.btn--ghost {
  border-color: rgba(26, 54, 93, 0.4);
  color: var(--color-forest);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--color-forest);
  color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  color: #f2f6f3;
  background: #122033;
  overflow: hidden;
}

.site-footer__visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 32, 51, 0.84), rgba(18, 32, 51, 0.93)),
    url("../img/hero/pixta_139076727.jpg") center / cover;
  opacity: 0.9;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
}

.site-footer__brand img {
  width: min(220px, 70vw);
  mix-blend-mode: lighten;
  filter: brightness(1.05);
}

.site-footer__brand p {
  margin: 0.9rem 0 0;
  font-family: var(--font-mincho);
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  letter-spacing: 0.12em;
}

.site-footer__nav a:hover {
  color: var(--color-gold);
}

.site-footer__copy {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  opacity: 0.65;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .kurashi {
    grid-template-columns: 1fr;
  }

  .kurashi__media img {
    min-height: 260px;
  }

  .search-panel__form {
    grid-template-columns: 1fr 1fr;
  }

  .search-panel__form .btn {
    grid-column: 1 / -1;
  }

  .marquee__item {
    width: min(70vw, 300px);
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0 1.25rem 0 1rem;
  }

  .site-header__nav {
    gap: 1.15rem;
    font-size: 0.85rem;
  }

  .site-header__cta {
    padding: 0.45rem 0.85rem;
  }

  .hero__title {
    letter-spacing: 0.08em;
  }

  .search-panel__form {
    grid-template-columns: 1fr;
  }
}
