/* ============================================
   michikusa resorts — landing page
   トーン: エディトリアル × 旅の記憶 × 三拠点の物語
   ============================================ */

:root {
  --paper: #f6f1e6;
  --paper-deep: #efe7d6;
  --ink: #2a2520;
  --ink-soft: #55483d;
  --gold: #b3894a;
  --line: rgba(42, 37, 32, 0.14);

  --kinone: #2f4a3c;
  --kinone-soft: #7c9a7a;
  --kinone-bg: #eef1e8;

  --anone: #9c3b34;
  --anone-soft: #d99a5b;
  --anone-bg: #f7ece2;

  --asobe: #c98a2e;
  --asobe-soft: #f0c26b;
  --asobe-night: #1a1610;

  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "游明朝", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 6vw; }

/* grain overlay */
.grain {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 999;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw;
  background: linear-gradient(to bottom, rgba(20,17,12,0.5), transparent);
  transition: background 0.4s ease, padding 0.4s ease;
}
.nav.solid {
  background: rgba(246, 241, 230, 0.94);
  backdrop-filter: blur(6px);
  padding: 11px 6vw;
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo { height: 140px; display: flex; align-items: center; transition: height 0.4s ease; }
.nav.solid .nav__logo { height: 116px; }
.nav__logo img {
  height: 100%; width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 5px rgba(0,0,0,0.35));
  transition: filter 0.4s ease;
}
.nav.solid .nav__logo img { filter: none; }
.nav__links {
  display: flex; gap: clamp(14px, 2.6vw, 30px);
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em;
  list-style: none; margin: 0; padding: 0;
  color: #fff; transition: color 0.4s ease;
}
.nav.solid .nav__links { color: var(--ink); }
.nav__links a { text-decoration: none; opacity: 0.88; }
.nav__links a:hover { opacity: 1; }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff;
}
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 2.4s ease;
}
.hero__bg.active { opacity: 1; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,12,8,0.35) 0%, rgba(15,12,8,0.22) 45%, rgba(15,12,8,0.68) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 0 6vw; }
.hero__tagline {
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  letter-spacing: 0.08em; margin: 0 0 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero__sub {
  font-family: var(--sans); font-size: 0.84rem; letter-spacing: 0.1em; opacity: 0.88;
}
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 1px; height: 54px; background: rgba(255,255,255,0.5); overflow: hidden;
}
.hero__scroll::after {
  content: ""; position: absolute; top: -100%; left: 0; right: 0; height: 100%;
  background: #fff; animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.4s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ---------- story (concept / 縦書き) ---------- */
.story { padding: min(7vw, 70px) 0 min(5vw, 50px); text-align: center; }
.story__mark { width: 34px; margin: 0 auto 18px; opacity: 0.6; }
.story h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 500;
  margin: 0 0 26px; letter-spacing: 0.16em;
}
.story__text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-align: start;
  height: min(58vh, 500px);
  max-width: 100%;
  margin: 0 auto;
  padding: 4px 4px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.story__text p {
  display: inline-block;
  vertical-align: top;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.95;
  letter-spacing: 0.05em;
  margin: 0 24px 0 0;
}
.story__thesis {
  color: var(--ink) !important;
  font-size: clamp(1.08rem, 1.8vw, 1.24rem) !important;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}
.story .reveal { transform: none; }
.story .reveal.in { transform: none; }
.story__credit {
  margin-top: 46px; font-family: var(--sans); font-size: 0.75rem;
  letter-spacing: 0.14em; color: var(--ink-soft); opacity: 0.8;
}

/* ---------- location teaser ---------- */
.teaser { padding: 0 0 min(14vw, 140px); }
.teaser__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  background: var(--paper);
}
.teaser__card {
  position: relative; height: min(62vh, 620px); min-height: 380px;
  text-align: center; text-decoration: none; color: #fff;
  overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 24px 46px;
}
.teaser__card::before {
  content: ""; position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform 6s ease; transform: scale(1.06); z-index: -2;
}
.teaser__card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(10,8,5,0.1) 0%, rgba(10,8,5,0.28) 55%, rgba(10,8,5,0.82) 100%);
}
.teaser__card:hover::before { transform: scale(1.14); }
.teaser__card--kinone::before { background-image: url("images/kinone/hero-night.jpg"); }
.teaser__card--anone::before { background-image: url("images/anone/dining.jpg"); }
.teaser__card--asobe::before { background-image: url("images/asobe/hero-dotonbori.jpg"); }
.teaser__num { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.3em; opacity: 0.82; }
.teaser__name { font-size: clamp(1.2rem, 2.1vw, 1.55rem); margin: 16px 0 12px; letter-spacing: 0.05em; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.teaser__hook { font-size: 0.85rem; opacity: 0.92; margin-bottom: 22px; }
.teaser__arrow { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; opacity: 0.85; }
@media (max-width: 820px) {
  .teaser__grid { grid-template-columns: 1fr; }
  .teaser__card { height: 68vh; min-height: 320px; }
}

/* ---------- villa sections ---------- */
.villa { position: relative; padding: min(10vw, 110px) 0; }
.villa--kinone { background: var(--kinone-bg); }
.villa--anone { background: var(--anone-bg); }
.villa--asobe { background: var(--asobe-night); color: #f3ead9; }

.villa__head { text-align: center; margin-bottom: min(8vw, 78px); }
.villa__logo { width: min(210px, 46vw); margin: 0 auto 22px; }
.villa__logo--card {
  width: min(200px, 44vw);
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
}
.villa__eyebrow { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.3em; }
.villa--kinone .villa__eyebrow { color: var(--kinone); }
.villa--anone .villa__eyebrow { color: var(--anone); }
.villa--asobe .villa__eyebrow { color: var(--asobe-soft); }
.villa__title { font-size: clamp(1.5rem, 3.2vw, 2.3rem); margin: 16px 0 20px; letter-spacing: 0.05em; font-weight: 500; }
.villa__lede { max-width: 620px; margin: 0 auto; font-size: clamp(0.94rem, 1.5vw, 1.02rem); }
.villa--kinone .villa__lede, .villa--anone .villa__lede { color: var(--ink-soft); }
.villa--asobe .villa__lede { color: #d9cdb8; }

/* photo mosaic */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 12vw; gap: 8px; margin: 0 0 min(7vw, 68px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.mosaic__item--a { grid-column: span 4; grid-row: span 2; }
.mosaic__item--b { grid-column: span 2; grid-row: span 1; }
.mosaic__item--c { grid-column: span 2; grid-row: span 1; }
.mosaic__item--d { grid-column: span 3; grid-row: span 1; }
.mosaic__item--e { grid-column: span 3; grid-row: span 1; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; }
  .mosaic__item--a { grid-column: span 2; grid-row: span 2; }
  .mosaic__item--b, .mosaic__item--c, .mosaic__item--d, .mosaic__item--e { grid-column: span 1; grid-row: span 1; }
}

/* info + map + floorplan */
.villa__detail { display: grid; grid-template-columns: 1fr 1fr; gap: min(6vw, 60px); align-items: start; }
@media (max-width: 860px) { .villa__detail { grid-template-columns: 1fr; } }
.detail__block { background: rgba(255,255,255,0.5); border: 1px solid var(--line); padding: 30px 28px; }
.villa--asobe .detail__block { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.16); }
.detail__label { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; opacity: 0.6; margin-bottom: 8px; }
.detail__value { font-size: 0.98rem; margin-bottom: 20px; }
.detail__value:last-child { margin-bottom: 0; }
.detail__map { width: 100%; height: 260px; border: 0; filter: grayscale(0.25) contrast(1.05); }
.villa--asobe .detail__map { filter: grayscale(0.3) contrast(1.05) invert(0.92) hue-rotate(180deg); }

.villa__floorplan { text-align: center; }
.villa__floorplan img { border: 1px solid var(--line); background: #fff; }
.villa__floorplan figcaption { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.14em; margin-top: 10px; opacity: 0.6; }
.villa__nofloorplan {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 200px; border: 1px dashed rgba(255,255,255,0.2);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; opacity: 0.55; text-align: center; padding: 20px;
}

.villa__cta { text-align: center; margin-top: min(7vw, 66px); }
.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.16em;
  text-decoration: none; padding: 16px 44px; border: 1px solid currentColor;
  transition: background 0.3s ease, color 0.3s ease;
}
.villa--kinone .btn { color: var(--kinone); }
.villa--kinone .btn:hover { background: var(--kinone); color: #fff; }
.villa--anone .btn { color: var(--anone); }
.villa--anone .btn:hover { background: var(--anone); color: #fff; }
.villa--asobe .btn { color: var(--asobe-soft); }
.villa--asobe .btn:hover { background: var(--asobe-soft); color: var(--asobe-night); }
.badge-soon { display: inline-block; font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em; opacity: 0.72; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #d8d0c2; padding: min(10vw, 88px) 0 40px; text-align: center; }
.footer__logo { width: 260px; margin: 0 auto 26px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer__vision { font-size: 1rem; letter-spacing: 0.06em; max-width: 460px; margin: 0 auto 34px; color: #efe8d8; }
.footer__meta { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; color: #a89e8c; line-height: 2; }
.footer__nav { display: flex; justify-content: center; gap: 26px; margin: 30px 0; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; }
.footer__nav a { text-decoration: none; color: #cfc6b4; }
.footer__rule { width: 40px; height: 1px; background: rgba(255,255,255,0.2); margin: 30px auto; }
.footer__copy { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.1em; color: #6f6656; }
