/* ========================================
   Common styles (shared across all property LPs)
   Requires a theme file (e.g. kawasaki.css) loaded
   before this one to define the CSS variables below.
   ======================================== */

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

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-light);
}

.btn--large {
  padding: 18px 48px;
  font-size: 1.05rem;
}

/* Section common */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--color-wood);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-accent);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: var(--transition);
}

.header--scrolled {
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.header--scrolled .header__logo-img {
  height: 38px;
}

.header__logo-img--scrolled {
  display: none;
}

.header--scrolled .header__logo-img--default {
  display: none;
}

.header--scrolled .header__logo-img--scrolled {
  display: block;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-list a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
}

.header--scrolled .header__nav-list a {
  color: var(--color-text);
}

.header__nav-list a:hover {
  color: var(--color-gold);
}

.header__nav-cta {
  padding: 8px 20px !important;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-radius: 2px;
}

.header__nav-cta:hover {
  background: var(--color-accent-light) !important;
  color: var(--color-white) !important;
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition);
}

.header--scrolled .header__menu-btn span {
  background: var(--color-accent);
}

.header__menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
}

.hero__location {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__title-ja {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.hero__title-en {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  margin-top: 8px;
  opacity: 0.95;
}

.hero__catch {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.8;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero__scroll span {
  width: 1px;
  height: 8px;
  background: var(--color-white);
  animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

/* Concept */
.concept {
  background: var(--color-white);
}

.concept__body {
  max-width: 640px;
  margin: 0 auto 60px;
  text-align: center;
}

.concept__text {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.concept__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.concept__feature {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--color-border);
}

.concept__feature-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
}

.concept__feature h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.concept__feature p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Gallery */
.gallery__tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gallery__tab {
  padding: 8px 24px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  cursor: pointer;
  transition: var(--transition);
}

.gallery__tab:hover,
.gallery__tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item.hidden {
  display: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  opacity: 0.7;
  transition: var(--transition);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 16px;
  right: 16px;
  font-size: 2.5rem;
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

/* Amenities */
.amenities {
  background: var(--color-white);
}

.amenities__overview {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.spec-list__item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.spec-list__item dt {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.spec-list__item dd {
  font-weight: 500;
  color: var(--color-accent);
}

.amenities__highlight {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight-card {
  display: flex;
  gap: 24px;
  align-items: center;
}

.highlight-card__img {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  overflow: hidden;
}

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

.highlight-card__body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.highlight-card__body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.amenities__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.amenities__list li {
  padding: 8px 20px;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.facility {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.facility__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.facility__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

.facility__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
}

.facility__note {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
}

/* Access */
.access__body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.access__address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.access__address strong {
  font-size: 1.2rem;
  color: var(--color-accent);
}

.access__details div {
  margin-bottom: 20px;
}

.access__details dt {
  font-size: 0.85rem;
  color: var(--color-wood);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.access__details dd {
  font-size: 0.95rem;
}

.access__map {
  aspect-ratio: 16 / 10;
  background: var(--color-border);
  overflow: hidden;
}

.access__map iframe {
  width: 100%;
  height: 100%;
}

/* Surroundings */
.surroundings {
  background: var(--color-white);
}

.surroundings__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.spot-card {
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.spot-card:hover {
  border-color: var(--color-accent);
}

.spot-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.spot-card__distance {
  font-size: 0.8rem;
  color: var(--color-wood);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.spot-card p:last-child {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Booking */
.booking {
  background: var(--color-bg-dark);
  color: var(--color-white);
  text-align: center;
}

.booking__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.booking__text {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 36px;
}

.booking .btn--primary {
  background: var(--color-gold);
  color: var(--color-text);
}

.booking .btn--primary:hover {
  background: var(--color-gold-light, #d2c37e);
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo-img {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer__address {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: right;
}

.footer__copy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 20px;
  }

  .header__nav-list a {
    color: var(--color-text) !important;
    font-size: 1rem;
  }

  .header__nav-list a.header__nav-cta {
    color: var(--color-white) !important;
  }

  .header__menu-btn {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .concept__features {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    margin: 0 -24px;
    padding: 0 24px 8px;
    scrollbar-width: none;
  }

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

  .gallery__item {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .amenities__overview {
    grid-template-columns: 1fr;
  }

  .facility {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .highlight-card {
    flex-direction: column;
    text-align: center;
  }

  .highlight-card__img {
    width: 100%;
    height: 180px;
  }

  .access__body {
    grid-template-columns: 1fr;
  }

  .surroundings__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__legal {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .gallery__item {
    flex: 0 0 88%;
  }
}
