/* ========== Reset & Base ========== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

:root {
  --c-deepsea:   #1a4659;
  --c-sea:       #3a7e94;
  --c-aqua:      #5bb1c8;
  --c-pale-aqua: #b7dce2;
  --c-sand:      #f5efe3;
  --c-paper:     #fbf7ee;
  --c-cane:      #7a9a5c;
  --c-hibiscus:  #d8576b;
  --c-wood:      #6b4a36;
  --c-ink:       #2a2620;
  --c-ink-soft:  #4d463d;

  --f-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;
}

body {
  font-family: var(--f-jp);
  color: var(--c-ink);
  background: #000;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

h1, h2, h3, h4, h5, h6,
.h-main, .h-yoko, .lead, .lead-sub, .kicker, .num {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}

.nobreak { display: inline-block; white-space: nowrap; }

/* ========== Language Switcher ========== */
.lang-switcher {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  display: flex;
  gap: 6px;
  background: rgba(10, 26, 33, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lang-btn {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 9px;
  border-radius: 999px;
  transition: all 0.25s ease;
  min-width: 32px;
}
.lang-btn.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-deepsea);
  font-weight: 500;
}

/* ========== Site Header ========== */
.site-header {
  position: fixed;
  top: 22px;
  left: 28px;
  z-index: 90;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.site-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.mark-jp {
  font-family: var(--f-jp);
  font-size: 14px;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.mark-en {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.32em;
  margin-top: 4px;
  opacity: 0.85;
  font-style: italic;
}

/* ========== Scene base ========== */
.scene {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene-inner { position: relative; }

.scroll-hint {
  /* relative to scene, not scene-inner */
}

.bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}
.scene.in-view .bg { transform: scale(1); }

.bg-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.scene-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 80px 32px;
  color: #fff;
  opacity: 1;
  transform: none;
  transition: opacity 1.4s ease, transform 1.4s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .scene .scene-inner { opacity: 0; transform: translateY(40px); }
  .scene.in-view .scene-inner { opacity: 1; transform: none; }
}

.align-left   { text-align: left;   margin-right: auto; padding-left: clamp(28px, 8vw, 120px); }
.align-right  { text-align: left;   margin-left:  auto; padding-right: clamp(28px, 8vw, 120px); max-width: 760px; }
.align-center { text-align: center; }

/* ========== Typography ========== */
.kicker {
  font-family: var(--f-en);
  font-size: 13px;
  letter-spacing: 0.3em;
  font-style: italic;
  opacity: 0.88;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.num {
  display: block;
  font-family: var(--f-en);
  font-size: clamp(72px, 14vw, 160px);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0.22;
  margin-bottom: -28px;
  margin-left: -6px;
}

.h-main {
  font-family: var(--f-jp);
  font-weight: 500;
  font-size: clamp(28px, 5.4vw, 56px);
  line-height: 1.55;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}

.h-yoko {
  font-family: var(--f-jp);
  font-weight: 500;
  font-size: clamp(24px, 4.4vw, 44px);
  line-height: 1.7;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.lead {
  font-family: var(--f-jp);
  font-size: clamp(13px, 1.7vw, 17px);
  line-height: 2.1;
  letter-spacing: 0.16em;
  font-weight: 400;
}

.lead-sub {
  font-family: var(--f-jp);
  font-size: clamp(13px, 1.55vw, 16px);
  line-height: 2.2;
  letter-spacing: 0.12em;
  font-weight: 400;
  max-width: 640px;
}

/* ========== Hero (Scene 01) ========== */
.scene-hero { background: var(--c-deepsea); }
.tint-hero {
  background:
    radial-gradient(ellipse at center, rgba(15, 50, 70, 0.35) 0%, rgba(10, 30, 45, 0.7) 100%),
    linear-gradient(180deg, rgba(15, 50, 70, 0.45) 0%, rgba(8, 24, 38, 0.65) 100%);
}
.scene-hero .bg {
  background-position: center 65%;
}
.hero-copy {
  max-width: 900px;
  margin: 0 auto;
}
.hero-copy .kicker { display: block; margin-bottom: 36px; }
.hero-copy .h-main { font-size: clamp(30px, 6.2vw, 64px); }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.7);
}
.scroll-hint .line {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  animation: scrollLine 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0);   opacity: 0.2; }
  50%  { transform: scaleY(1);   opacity: 1;   }
  100% { transform: scaleY(0);   opacity: 0.2; transform-origin: bottom; }
}

/* ========== Concept (Scene 02) — Sugar cane ========== */
.scene-concept { background: var(--c-cane); }
.tint-concept {
  background:
    linear-gradient(90deg, rgba(20, 40, 30, 0.55) 0%, rgba(20, 40, 30, 0.1) 60%, rgba(20, 40, 30, 0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
}

/* ========== Beach (Scene 03) ========== */
.scene-beach { background: var(--c-aqua); }
.tint-beach {
  background:
    linear-gradient(270deg, rgba(15, 60, 80, 0.55) 0%, rgba(15, 60, 80, 0.1) 55%, rgba(15, 60, 80, 0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.2));
}

/* ========== House (Scene 04) — Interior warm ========== */
.scene-house { background: var(--c-wood); }
.tint-house {
  background:
    linear-gradient(90deg, rgba(25, 18, 12, 0.6) 0%, rgba(25, 18, 12, 0.1) 60%, rgba(25, 18, 12, 0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.3));
}

/* ========== Local Stay (Scene 05) — Kotaro ========== */
.scene-local { background: var(--c-wood); }
.tint-local {
  background:
    linear-gradient(270deg, rgba(20, 14, 8, 0.55) 0%, rgba(20, 14, 8, 0.1) 55%, rgba(20, 14, 8, 0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.3));
}

/* ========== Kite & Wind (Scene 06) ========== */
.scene-kite { background: var(--c-sea); }
.tint-kite {
  background:
    linear-gradient(90deg, rgba(10, 50, 70, 0.6) 0%, rgba(10, 50, 70, 0.1) 60%, rgba(10, 50, 70, 0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.2));
}

/* ========== Whole House (Scene 07) — Dark intimate ========== */
.scene-whole { background: #1a1418; }
.tint-whole {
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.price-line {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.price {
  font-family: var(--f-en);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1;
}
.price small {
  font-family: var(--f-jp);
  font-size: 0.28em;
  letter-spacing: 0.18em;
  margin-left: 12px;
  opacity: 0.85;
}
.price-note {
  font-family: var(--f-jp);
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}

/* ========== Info (Scene 08) ========== */
.scene-info { background: var(--c-paper); }
.tint-info {
  background:
    linear-gradient(180deg, rgba(251, 247, 238, 0.7), rgba(251, 247, 238, 0.92));
}
.scene-info .scene-inner { color: var(--c-ink); padding-top: 100px; padding-bottom: 100px; }
.scene-info .kicker { color: var(--c-hibiscus); }
.scene-info .h-yoko { color: var(--c-deepsea); margin-bottom: 48px; }

.info-grid { max-width: 760px; }

.info-dl {
  text-align: left;
  margin: 0 auto;
  max-width: 640px;
  border-top: 1px solid rgba(26, 70, 89, 0.18);
}
.info-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(26, 70, 89, 0.18);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}
.info-row dt {
  font-family: var(--f-jp);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--c-sea);
  font-weight: 500;
  padding-top: 4px;
}
.info-row dd { color: var(--c-ink-soft); }
.info-row dd a { color: var(--c-deepsea); border-bottom: 1px solid rgba(26, 70, 89, 0.25); }

.cta-btn {
  display: inline-block;
  margin-top: 44px;
  padding: 18px 56px;
  background: var(--c-deepsea);
  color: #fff;
  font-family: var(--f-jp);
  font-size: 14px;
  letter-spacing: 0.24em;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}
.cta-btn:hover {
  background: var(--c-hibiscus);
  transform: translateY(-2px);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--c-paper);
  color: var(--c-ink-soft);
  text-align: center;
  padding: 28px 20px;
  font-family: var(--f-jp);
  font-size: 11px;
  letter-spacing: 0.18em;
  border-top: 1px solid rgba(26, 70, 89, 0.1);
}
.footer-note {
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.65;
  letter-spacing: 0.1em;
}

/* ========== Mobile (≤768px) ========== */
@media (max-width: 768px) {
  .site-header { top: 16px; left: 18px; }
  .mark-jp { font-size: 12px; }
  .mark-en { font-size: 9px; letter-spacing: 0.28em; }

  .lang-switcher { top: 12px; right: 12px; padding: 4px; gap: 3px; }
  .lang-btn { font-size: 10px; padding: 4px 7px; min-width: 28px; }

  .scene-inner { padding: 90px 24px 70px; }
  .align-left { padding-left: 24px; }
  .align-right { padding-right: 24px; }

  .num { font-size: 96px; margin-bottom: -16px; }
  .h-main { font-size: 26px; line-height: 1.7; letter-spacing: 0.08em; }
  .h-yoko { font-size: 22px; line-height: 1.8; letter-spacing: 0.08em; margin-bottom: 26px; }
  .lead, .lead-sub { font-size: 13px; line-height: 2.0; letter-spacing: 0.1em; }
  .kicker { font-size: 11px; letter-spacing: 0.24em; margin-bottom: 18px; }

  .price { font-size: 42px; }
  .price small { display: block; margin: 8px 0 0; font-size: 11px; }

  .info-row {
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 12px 2px;
    font-size: 13px;
  }
  .info-row dt { font-size: 10px; letter-spacing: 0.18em; }

  .cta-btn { padding: 16px 36px; font-size: 13px; letter-spacing: 0.18em; width: 100%; max-width: 320px; }

  .scroll-hint { bottom: 24px; font-size: 9px; }
  .scroll-hint .line { height: 40px; }
}

/* ========== Small phones (≤375px) ========== */
@media (max-width: 375px) {
  .h-main { font-size: 23px; }
  .h-yoko { font-size: 20px; }
  .num { font-size: 80px; }
}
