/* ==========================================================================
   NOATERRA LP - モバイルファースト
   ========================================================================== */

:root {
  --color-spring-green-17: #1c3a2a; /* Everglade */
  --color-spring-green-9: #0f2017;
  --color-grey-95: #f7f4ee; /* Spring Wood */
  --color-grey-96: #f3f4f6; /* Athens Gray */
  --color-grey-98: #f9fafb; /* Athens Gray (light) */
  --color-orange-61: #c9a96e; /* Laser (gold) */
  --color-orange-41: #8b6347; /* Spicy Mix */
  --color-azure-27: #374151; /* Oxford Blue (body text) */
  --color-white: #ffffff;
  --color-black: #000000;

  --font-en: "Cormorant Garamond", serif;
  --font-jp-serif: "Noto Serif JP", serif;
  --font-jp-sans: "Noto Sans JP", sans-serif;

  --frame-width: 390px; /* Figmaのモバイルフレーム幅と一致させる */
  --page-bg: url('../images/desktop.png'); /* デスクトップ時に背景へ敷く画像 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-spring-green-17);
}

/* --------------------------------------------------------------------------
   モバイルフレーム / デスクトップ背景
   -------------------------------------------------------------------------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-bg) center / cover no-repeat;
}

.page-bg__caption {
  display: none;
  position: fixed;
  top: 38%;
  left: 0;
  width: calc(50% - (var(--frame-width) / 2));
  padding: 0 24px 0 64px;
  text-align: left;
  color: var(--color-grey-95);
  font-family: var(--font-jp-serif);
  font-size: 2.25rem;
  line-height: 1.5;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.6);
}

.page-bg__caption-note {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.85;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 12px rgba(0, 0, 0, 0.6);
}

@media (min-width: 900px) {
  .page-bg__caption {
    display: block;
  }
}

.app {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: var(--color-grey-95);
  color: var(--color-azure-27);
  font-family: var(--font-jp-serif);
  overflow-x: hidden;
}

/* 390pxを超えるモバイル実機(414px/428px/430pxなど)では、ここより手前で
   max-widthを付けると両サイドにpage-bgが透けて見えるため、
   フレーム化(中央寄せ+デスクトップ背景)は十分広い画面幅からのみ有効にする */
@media (min-width: 600px) {
  .app {
    max-width: var(--frame-width);
    margin: 0 auto 40px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.25);
  }
}

img {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   アニメーション
   -------------------------------------------------------------------------- */
@keyframes anim-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js .anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
}

.js .anim-fade-up.is-visible {
  animation: anim-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.image-section--fade img {
  opacity: 1;
  transform: none;
}

.js .image-section--fade img {
  opacity: 0;
  transform: translateY(20px);
}

.js .image-section--fade.is-visible img {
  animation: anim-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__title,
.hero__lead,
.hero__cta {
  opacity: 0;
  transform: translateY(24px);
}

.hero.is-loaded .hero__title {
  animation: anim-fade-up 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero.is-loaded .hero__lead {
  animation: anim-fade-up 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.hero.is-loaded .hero__cta {
  animation: anim-fade-up 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .js .anim-fade-up,
  .hero__title,
  .hero__lead,
  .hero__cta,
  .js .image-section--fade img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   共通: CTAボタン（Hero / CTAセクションで共通利用）
   -------------------------------------------------------------------------- */
.btn-primary {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 312px;
  height: 52px;
  margin: 0 auto;
  background: var(--color-orange-61);
  border-radius: 26px;
  overflow: hidden;
}

.btn-primary__badge {
  position: absolute;
  left: 11px;
  top: 5.5px;
  width: 45.523px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary__badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.btn-primary__badge-text {
  position: relative;
  z-index: 1;
  color: var(--color-grey-98);
  font-family: var(--font-jp-sans);
  font-weight: 500;
  font-size: 1rem;
}

.btn-primary__label {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-spring-green-17);
  font-family: var(--font-jp-sans);
  font-weight: 500;
  font-size: 1.125rem;
  padding-left: 56px;
  padding-right: 40px;
}

.btn-primary__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   0. Global Navigation / 1. Hero (01_hero)
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0 auto;
  mix-blend-mode: difference;
}

@media (min-width: 600px) {
  .site-header {
    max-width: var(--frame-width);
  }
}

.site-header.is-nav-open {
  z-index: 101;
  mix-blend-mode: normal;
}

.site-header.is-nav-open .logo {
  color: var(--color-grey-95);
}

.site-header.is-nav-open .hamburger span {
  background: var(--color-grey-95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  letter-spacing: 2.4px;
  color: var(--color-grey-95);
}

.hamburger {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-grey-95);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 58, 42, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease, z-index 0s 0.4s;
}

@media (min-width: 600px) {
  .site-nav {
    max-width: var(--frame-width);
  }
}

.site-nav.is-open {
  z-index: 100;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease, z-index 0s 0s;
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 80px 20px;
}

.site-nav__item {
  opacity: 0;
  transform: translateY(24px);
}

.site-nav:not(.is-open) .site-nav__item {
  animation: none;
}

.site-nav.is-open .site-nav__item {
  animation: anim-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-nav.is-open .site-nav__item:nth-child(1) { animation-delay: 0.08s; }
.site-nav.is-open .site-nav__item:nth-child(2) { animation-delay: 0.16s; }
.site-nav.is-open .site-nav__item:nth-child(3) { animation-delay: 0.24s; }
.site-nav.is-open .site-nav__item:nth-child(4) { animation-delay: 0.32s; }
.site-nav.is-open .site-nav__item:nth-child(5) { animation-delay: 0.40s; }
.site-nav.is-open .site-nav__item:nth-child(6) { animation-delay: 0.48s; }

.site-nav__item a {
  font-family: var(--font-en);
  font-size: 1.5rem;
  letter-spacing: 2.4px;
  color: var(--color-grey-95);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav__item a:hover,
.site-nav__item a:focus-visible {
  color: var(--color-orange-61);
  outline: none;
}

body.is-nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-nav__item {
    opacity: 1;
    transform: none;
  }

  .site-nav.is-open .site-nav__item {
    animation: none;
  }
}

.hero {
  position: relative;
  height: 788px;
  overflow: hidden;
  background: var(--color-black);
}

.hero__bg {
  position: absolute;
  left: -116px;
  top: -71px;
  width: 560px;
  height: 922px;
  overflow: hidden;
}

.hero__bg img {
  position: absolute;
  left: 0;
  top: -11.62%;
  width: 100%;
  height: 128.23%;
  max-width: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 58, 42, 0) 0%, rgba(0, 0, 0, 0.8) 82.2%);
}

.hero__content {
  position: absolute;
  left: 50%;
  bottom: 121px;
  transform: translateX(-50%);
  width: 342px;
  max-width: calc(100% - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__title {
  font-family: var(--font-jp-serif);
  font-weight: 500;
  font-size: 1.875rem;
  line-height: 37.5px;
  letter-spacing: 1.5px;
  color: var(--color-grey-95);
  text-align: center;
  white-space: nowrap;
}

.hero__lead {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 20px;
  letter-spacing: 1.4px;
  color: var(--color-grey-95);
  text-align: center;
  opacity: 0.9;
}

.hero__cta {
  position: absolute;
  left: 39px;
  top: 683px;
  width: 312px;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   画像差し替えセクション（02, 03, 05, 06）
   -------------------------------------------------------------------------- */
.image-section {
  width: 100%;
  line-height: 0;
}

.image-section img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   04_Member's Voice
   -------------------------------------------------------------------------- */
.voice {
  position: relative;
  background: var(--color-grey-95);
  padding: 96px 0 155px;
  overflow: hidden;
}

.voice__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.voice__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.voice__title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 40px;
  letter-spacing: 1.8px;
  color: var(--color-spring-green-17);
  text-align: center;
}

.voice__subtitle {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 28px;
  letter-spacing: 1.8px;
  color: var(--color-orange-41);
  text-align: center;
}

.voice__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.voice__track:active {
  cursor: grabbing;
}

.voice__track::-webkit-scrollbar {
  display: none;
}

.voice-card {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  flex: 0 0 100%;
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-grey-96);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.voice-card__img {
  width: 100%;
  aspect-ratio: 247.5 / 185.63;
  overflow: hidden;
  margin-bottom: 24px;
}

.voice-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}

.voice-card__text {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 28px;
  letter-spacing: 0.42px;
  color: var(--color-azure-27);
  margin-bottom: 16px;
}

.voice-card__author {
  font-family: var(--font-jp-serif);
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 16px;
  letter-spacing: 0.36px;
  color: var(--color-orange-41);
  text-align: right;
}

.voice__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.voice__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-orange-41);
  background: transparent;
  color: var(--color-orange-41);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.voice__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.voice__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--color-grey-96);
  cursor: pointer;
}

.voice__dot.is-active {
  background: var(--color-orange-41);
}

/* --------------------------------------------------------------------------
   07_CTA
   -------------------------------------------------------------------------- */
.cta {
  padding: 96px 20px;
  background: linear-gradient(135deg, var(--color-spring-green-17) 0%, var(--color-spring-green-9) 100%);
}

.cta__inner {
  max-width: 672px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__badge {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--color-orange-61);
  padding: 10px 26px;
  color: var(--color-orange-61);
  font-family: var(--font-jp-serif);
  font-size: 0.875rem;
  letter-spacing: 1.4px;
  white-space: nowrap;
}

.cta__badge-number {
  font-family: var(--font-jp-serif);
  font-size: 0.875rem;
}

.cta__badge-number strong {
  font-weight: 400;
  font-family: var(--font-jp-serif);
  font-size: 1.5rem;
  margin: 0 2px;
}

.cta__note {
  margin-top: 30px;
  font-family: var(--font-jp-serif);
  font-size: 0.75rem;
  line-height: 16px;
  letter-spacing: 0.36px;
  color: var(--color-grey-95);
  opacity: 0.5;
  text-align: center;
}

.cta__divider {
  width: 64px;
  height: 1px;
  background: var(--color-orange-61);
  margin: 32px 0;
}

.cta__text {
  font-family: var(--font-jp-serif);
  font-size: 1rem;
  line-height: 32px;
  letter-spacing: 0.48px;
  color: var(--color-grey-95);
  text-align: center;
}

.cta__booklet {
  margin: 45px 0;
  display: flex;
  justify-content: center;
}

.cta__booklet-card {
  width: 192px;
  background: var(--color-grey-95);
  padding: 8px;
  transform: rotate(2deg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.cta__booklet-brand {
  font-family: var(--font-en);
  font-size: 0.875rem;
  letter-spacing: 0.42px;
  color: var(--color-orange-61);
  text-align: center;
  padding-top: 29px;
}

.cta__booklet-label {
  font-family: var(--font-jp-serif);
  font-size: 0.75rem;
  letter-spacing: 1.2px;
  color: var(--color-spring-green-17);
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-spring-green-17);
}

.cta__booklet-img {
  width: 100%;
  aspect-ratio: 174 / 174;
  background: var(--color-grey-96);
  overflow: hidden;
}

.cta__booklet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta .btn-primary {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   08_Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-spring-green-17);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 57px 20px 40px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__logo {
  font-family: var(--font-en);
  font-size: 1.875rem;
  line-height: 36px;
  letter-spacing: 6px;
  color: var(--color-orange-61);
  text-align: center;
}

.site-footer__tagline {
  margin-top: 16px;
  font-family: var(--font-jp-serif);
  font-size: 0.875rem;
  line-height: 20px;
  letter-spacing: 4.2px;
  color: var(--color-grey-95);
  opacity: 0.8;
  text-align: center;
}

.site-footer__nav {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0.6;
}

.site-footer__nav a {
  font-family: var(--font-jp-serif);
  font-size: 0.75rem;
  line-height: 16px;
  letter-spacing: 1.2px;
  color: var(--color-grey-95);
  text-align: center;
}

.site-footer__copyright {
  margin-top: 32px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  line-height: 16px;
  letter-spacing: 0.36px;
  color: var(--color-grey-95);
  opacity: 0.4;
  text-align: center;
}
