/*
Theme Name: KUU Official
Theme URI: https://example.com/
Author: KUU
Description: 宿泊施設「空 -KUU-」公式サイト向けWordPressテーマ。固定ページとブログ集客に対応。
Version: 1.0.0
Text Domain: kuu
*/

:root {
  --bg: #f7f5f0;
  --paper: #ffffff;
  --ink: #161819;
  --muted: #5d6468;
  --line: #e6e1d8;
  --blue-gray: #d7e1e4;
  --blue-deep: #7d949c;
  --wood: #b8a58a;
  --shadow: 0 18px 50px rgba(26, 31, 33, 0.1);
  --radius: 8px;
  --sans: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.8;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 16% 18%, rgba(215, 225, 228, 0.7), transparent 26%);
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.45;
}
h1 { max-width: 850px; font-size: clamp(2.45rem, 5vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 3rem); }
h3 { font-size: 1.2rem; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--wood));
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(250, 248, 243, 0.82);
  border-bottom: 1px solid rgba(230, 225, 216, 0.75);
  backdrop-filter: blur(18px);
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(250, 248, 243, 0.92);
  box-shadow: 0 12px 34px rgba(26, 31, 33, 0.08);
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1;
}
.logo span { font-size: 1.65rem; }
.logo small {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  font-size: 0.92rem;
  font-weight: 500;
}
.global-nav a { transition: color 0.2s ease; }
.global-nav a:hover { color: var(--blue-deep); }
.nav-booking, .button { border-radius: 999px; }
.nav-booking {
  padding: 9px 20px;
  color: #fff;
  background: var(--ink);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}
.menu-toggle span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 160px clamp(24px, 7vw, 96px) 86px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, rgba(12, 16, 18, 0.67), rgba(12, 16, 18, 0.26) 54%, rgba(12, 16, 18, 0.45)), url("assets/hero-fuji.jpg") center / cover;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -9% 0;
  z-index: -1;
  background: inherit;
  transform: translateY(var(--hero-shift, 0));
  transition: transform 0.08s linear;
}
.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 760px;
  min-width: 0;
  animation: heroIntro 1.1s ease both;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #dce8eb; }
.hero-copy {
  max-width: 660px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  overflow-wrap: anywhere;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.button-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.view-card {
  position: absolute;
  z-index: 1;
  right: clamp(24px, 7vw, 96px);
  bottom: 72px;
  width: min(320px, calc(100% - 48px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(20, 24, 26, 0.42);
  backdrop-filter: blur(16px);
  animation: floatCard 5.5s ease-in-out infinite;
}
.view-card span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.view-card p { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; }

.feature-bar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  width: min(1160px, calc(100% - 40px));
  margin: -42px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}
.feature-item {
  display: grid;
  gap: 2px;
  padding: 22px 14px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.feature-item:hover { transform: translateY(-4px); background: #fff; }
.feature-item strong { font-family: var(--serif); font-size: 1.08rem; }
.feature-item span { color: var(--muted); font-size: 0.88rem; }

.section, .amenity-cards, .stay-scenes {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.section { padding: 120px 0; }
.section.compact { padding-top: 40px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split.reverse .section-text { order: 2; }
.section-text p + p, .section-heading p, .floating-panel p, .booking-section p { color: var(--muted); }
.section-text h2, .section-heading h2 { margin-bottom: 26px; }
.section-text p + p { margin-top: 18px; }
.image-frame, .detail-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-frame img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s ease; }
.image-frame:hover img, .photo-card:hover img { transform: scale(1.055); }

.stay-scenes { padding: 110px 0 24px; }
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.scene-card, .photo-card, .list-card, .info-card, .detail-card, .side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 38px rgba(26, 31, 33, 0.07);
}
.scene-card {
  position: relative;
  min-height: 260px;
  padding: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(215, 225, 228, 0.62));
}
.scene-card span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: var(--serif);
}
.scene-card h3 { margin-bottom: 14px; font-size: 1.45rem; }
.scene-card p, .photo-card p, .list-card li, .info-card p, .detail-card p, .detail-card li, .side-card p, .side-card li { color: var(--muted); }

.photo-ribbon { width: 100%; overflow: hidden; padding: 18px 0 38px; }
.ribbon-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ribbonMove 42s linear infinite;
}
.ribbon-track img {
  width: min(34vw, 360px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(26, 31, 33, 0.12);
}
.photo-ribbon:hover .ribbon-track { animation-play-state: paused; }

.fuji-section { position: relative; width: min(1280px, calc(100% - 40px)); margin: 16px auto 0; }
.fuji-section img {
  height: min(64vw, 680px);
  min-height: 420px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 22px 62px rgba(26, 31, 33, 0.14);
}
.floating-panel {
  position: absolute;
  right: clamp(24px, 6vw, 72px);
  bottom: -54px;
  width: min(440px, calc(100% - 48px));
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}
.section-heading { max-width: 760px; margin-bottom: 44px; }
.card-grid, .amenity-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-card { overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease; }
.photo-card:hover { transform: translateY(-7px); box-shadow: 0 24px 56px rgba(26, 31, 33, 0.13); }
.photo-card img { aspect-ratio: 1.38 / 1; object-fit: cover; transition: transform 0.8s ease; }
.photo-card div, .list-card, .info-card { padding: 24px; }
.list-card ul, .side-card ul, .detail-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
}
.amenity-cards { margin-top: -42px; }
.two-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.location-list span {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-section, .wide-cta {
  width: min(980px, calc(100% - 40px));
  margin: 40px auto 120px;
  padding: clamp(48px, 7vw, 86px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(215, 225, 228, 0.72)), var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}
.booking-section h2 { margin-bottom: 18px; }
.booking-section p { max-width: 620px; margin: 0 auto 30px; }

.sub-page {
  background: linear-gradient(180deg, rgba(215, 225, 228, 0.62), rgba(247, 245, 240, 0) 520px), var(--bg);
}
.sub-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 62vh;
  padding: 150px clamp(24px, 7vw, 96px) 78px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, rgba(12, 16, 18, 0.7), rgba(12, 16, 18, 0.18)), var(--image) center / cover;
}
.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 16, 18, 0.55));
}
.sub-hero-inner { position: relative; z-index: 1; max-width: 850px; }
.sub-hero h1 { margin-bottom: 22px; }
.sub-hero p { max-width: 720px; color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; }
.breadcrumb {
  display: flex;
  gap: 10px;
  width: min(1160px, calc(100% - 40px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.breadcrumb a { color: var(--blue-deep); }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.34fr);
  gap: clamp(28px, 5vw, 64px);
  width: min(1160px, calc(100% - 40px));
  margin: 88px auto 120px;
  align-items: start;
}
.detail-main { display: grid; gap: 64px; }
.detail-block { padding-bottom: 58px; border-bottom: 1px solid var(--line); }
.detail-block:last-child { border-bottom: 0; }
.detail-block h2 { margin-bottom: 22px; }
.detail-block p { color: var(--muted); }
.detail-block p + p { margin-top: 16px; }
.detail-photo { margin-top: 28px; }
.detail-photo img { aspect-ratio: 16 / 9; object-fit: cover; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.detail-card, .side-card { padding: 26px; }
.detail-card h3, .side-card h3, .side-card h2 { margin-bottom: 10px; }
.side-panel { position: sticky; top: 112px; display: grid; gap: 18px; }
.page-links { display: grid; gap: 10px; }
.page-links a {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(215, 225, 228, 0.5);
  font-weight: 700;
}
.flow-list { counter-reset: flow; display: grid; gap: 16px; margin-top: 28px; }
.flow-item {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.flow-item::before {
  content: counter(flow, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-family: var(--serif);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 38px rgba(26, 31, 33, 0.07);
}
.post-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.post-card-body { padding: 24px; }
.post-meta { margin-bottom: 10px; color: var(--blue-deep); font-size: 0.82rem; font-weight: 700; }
.post-card p, .entry-content { color: var(--muted); }
.entry-content {
  width: min(820px, calc(100% - 40px));
  margin: 100px auto 120px;
  font-size: 1.02rem;
}
.entry-content p + p { margin-top: 1.2em; }

.floating-booking {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 170px;
  padding: 14px 20px;
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 24, 25, 0.88);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  animation: bookingBreathe 3.6s ease-in-out infinite;
}
.floating-booking span { font-size: 0.72rem; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.72); }
.floating-booking strong { line-height: 1.2; }
.site-footer {
  padding: 52px 24px;
  color: rgba(255, 255, 255, 0.78);
  background: #171a1b;
  text-align: center;
}
.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.45rem;
}
.site-footer p { margin-bottom: 14px; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.detail-block.reveal,
.side-card.reveal { opacity: 1; transform: none; }

@keyframes heroIntro {
  from { opacity: 0.92; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ribbonMove {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}
@keyframes bookingBreathe {
  0%, 100% { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24); }
  50% { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 0 0 8px rgba(125, 148, 156, 0.16); }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 13px 12px; }
  .nav-booking { margin-top: 8px; text-align: center; }
  .feature-bar { grid-template-columns: repeat(3, 1fr); }
  .split, .split.reverse, .card-grid, .amenity-cards, .two-column, .scene-grid, .detail-layout, .detail-grid, .blog-grid { grid-template-columns: 1fr; }
  .split.reverse .section-text { order: 0; }
  .amenity-cards { margin-top: 0; }
  .floating-panel { position: relative; right: auto; bottom: auto; width: calc(100% - 28px); margin: -80px auto 0; }
  .side-panel { position: static; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 18px; }
  .hero { min-height: 92vh; padding: 120px 20px 46px; }
  h1 { font-size: 2.08rem; }
  .hero-actions, .button { width: 100%; }
  .hero-copy { max-width: 330px; font-size: 0.95rem; word-break: break-all; }
  .hero-actions { max-width: 340px; }
  .button { padding-right: 18px; padding-left: 18px; }
  .feature-bar { grid-template-columns: repeat(2, 1fr); width: calc(100% - 24px); margin-top: -28px; }
  .section, .amenity-cards, .fuji-section, .booking-section, .stay-scenes, .detail-layout, .wide-cta { width: calc(100% - 24px); }
  .section { padding: 78px 0; }
  .sub-hero { min-height: 58vh; padding: 126px 20px 58px; }
  .detail-layout { margin: 58px auto 84px; }
  .location-list { grid-template-columns: 1fr; }
  .ribbon-track img { width: 74vw; }
  .floating-booking {
    right: 14px;
    bottom: 14px;
    left: 14px;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 13px 18px;
  }
}

@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; }
}
