:root {
  --color-primary: #198342;
  --color-primary-hover: rgba(25, 131, 66, 0.7);
  --color-text: #333;
  --color-text-light: #555;
  --color-text-muted: #999;
  --color-border: #e0e0d8;
  --color-bg-light: #f9f9f6;
  --color-white-95: rgba(255, 255, 255, 0.95);
  --font-base: 'Shippori Mincho', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  font-weight: 300;
  overflow-x: clip;
}

/* ========== Loading Screen ========== */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

#loading.loaded {
  opacity: 0;
  pointer-events: none;
}

.loading-inner {
  text-align: center;
}

.loading-logo {
  width: 120px;
  opacity: 0;
  animation: loadingFadeIn 1.2s ease forwards;
}

@keyframes loadingFadeIn {
  0% { opacity: 0; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

/* ========== Header ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 50px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s, box-shadow 0.4s;
}

header.scrolled,
.header-sub {
  background-color: var(--color-white-95);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}

header a.logo img {
  height: 104px;
  width: 104px;
  transition: filter 0.4s;
}

header nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

header nav a {
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.15em;
  transition: color 0.4s;
}

header.scrolled nav a,
.header-sub nav a {
  color: var(--color-text);
}

header nav a:hover {
  color: var(--color-primary);
}

header nav a.nav-cta {
  padding: 10px 24px;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
  transition: background 0.3s, color 0.4s, border-color 0.3s;
}

header nav a.nav-cta:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
}

header.scrolled nav a.nav-cta {
  color: #fff;
}

/* ========== Section common ========== */
section {
  min-height: 100vh;
  position: relative;
}

p.section-subtitle {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

p.section-subtitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-primary);
  margin-top: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 44px;
  line-height: 1.6;
}

/* ========== MV ========== */
#mv {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

#mv video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Concept ========== */
#concept {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 80px;
  background: #fff;
}

.concept-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
}

.concept-text {
  flex: 1;
}

.concept-text .section-subtitle {
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.concept-text .section-title {
  margin-bottom: 20px;
}

.concept-text p:not(.section-subtitle) {
  font-size: 14px;
  line-height: 2.2;
  color: var(--color-text-light);
}

.concept-text .section-link-btn {
  margin-top: 32px;
}

.concept-images {
  flex-shrink: 0;
}

.concept-images img {
  width: 600px;
  height: 450px;
  object-fit: cover;
}

/* ========== Outline Button ========== */
.section-link-btn,
.news-more-btn,
.complete-btn {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  font-family: var(--font-base);
  transition: background 0.3s, color 0.3s;
}

.section-link-btn:hover,
.news-more-btn:hover,
.complete-btn:hover {
  background: var(--color-text);
  color: #fff;
}

.section-link-btn {
  margin-top: 60px;
}

/* ========== Full Image Section ========== */
.full-image-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.full-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== Swiper common ========== */
.swiper {
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255, 255, 255, 1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
  color: var(--color-text);
}

.swiper .swiper-pagination {
  bottom: 16px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0.5;
  transition: opacity 0.3s, background 0.3s;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-primary);
}

/* ========== Rooms ========== */
#rooms {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 80px;
  background: #fff;
}

.rooms-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
}

.rooms-slider {
  width: calc((100% - 80px) * 0.5);
  flex-shrink: 0;
  overflow: hidden;
}

.rooms-info {
  flex: 1;
  max-width: 400px;
}

.rooms-info .section-subtitle {
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.rooms-info .section-title {
  margin-bottom: 20px;
}

.rooms-info p:not(.section-subtitle) {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.rooms-info .section-link-btn {
  margin-top: 24px;
}

.rooms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.rooms-table th,
.rooms-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-weight: 300;
}

.rooms-table th {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ========== Facility ========== */
#facility {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 80px;
  background: #fff;
}

.facility-inner {
  max-width: 1200px;
  width: 100%;
}

.facility-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.facility-text {
  flex: 1;
  padding-top: 20px;
}

.facility-text p:not(.section-subtitle) {
  font-size: 14px;
  line-height: 2.2;
  color: var(--color-text-light);
}

.facility-slider {
  width: calc((100% - 60px) * 0.6);
  flex-shrink: 0;
  overflow: hidden;
}

.facility-slider .swiper-slide img {
  height: 480px;
}

/* ========== News ========== */
#news {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 80px;
}

.news-section-inner {
  max-width: 800px;
  width: 100%;
}

.news-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.news-section-header .section-subtitle::after {
  margin-left: auto;
  margin-right: auto;
}

.news-section-list,
.news-list {
  border-top: 1px solid var(--color-border);
}

.news-section-item,
.news-item {
  border-bottom: 1px solid var(--color-border);
}

.news-section-link,
.news-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 10px;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.3s;
}

.news-section-link:hover,
.news-link:hover {
  background: var(--color-bg-light);
}

.news-section-date,
.news-date {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 90px;
}

.news-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 12px;
  flex-shrink: 0;
}

.tag-info {
  background: #f0f5f1;
  color: var(--color-primary);
}

.tag-event {
  background: #f5f0e8;
  color: #a67c3d;
}

.tag-media {
  background: #eef0f5;
  color: #4a6fa5;
}

.news-section-title,
.news-title {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
}

.news-section-more {
  text-align: center;
  margin-top: 40px;
}

/* ========== Access ========== */
#access {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 80px;
  background: var(--color-bg-light);
}

.access-inner {
  display: flex;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.access-map {
  flex: 1.2;
  height: 520px;
  background: var(--color-border);
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.access-info {
  flex: 1;
}

.access-info .address {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 36px;
}

.access-info .access-detail {
  font-size: 13px;
  line-height: 2.2;
  color: #777;
}

.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 40px;
}

.access-table th,
.access-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  font-weight: 300;
  text-align: left;
  vertical-align: top;
}

.access-table th {
  color: var(--color-text-muted);
  font-weight: 400;
  white-space: nowrap;
  min-width: 4em;
}

.access-table td {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ========== CTA ========== */
#cta,
.page-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

#cta::before,
.page-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/footer.jpg') center / cover no-repeat;
  filter: brightness(0.5);
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-inner .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  padding-bottom: 0;
}

.cta-inner .section-subtitle::after {
  display: none;
}

.cta-inner h2 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.cta-inner > p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 56px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.15em;
  transition: background 0.3s, border-color 0.3s;
  font-family: var(--font-base);
}

.cta-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

/* ========== Footer ========== */
footer {
  background: #1a1a1a;
  color: var(--color-text-muted);
  padding: 60px 80px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.footer-logo img {
  height: 60px;
  filter: brightness(0) invert(1) brightness(0.6);
}

.footer-nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  padding-bottom: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-text);
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-contact {
  text-align: right;
  font-size: 12px;
  line-height: 2;
}

.footer-bottom {
  border-top: 1px solid var(--color-text);
  padding-top: 20px;
  text-align: center;
}

.footer-copy {
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* ========== Scroll Animations (observer.js) ========== */
.object {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.object.show {
  opacity: 1;
  transform: translateY(0);
}

.object.from-left {
  transform: translateX(-40px);
}

.object.from-left.show {
  transform: translateX(0);
}

.object.from-right {
  transform: translateX(40px);
}

.object.from-right.show {
  transform: translateX(0);
}

.object.from-scale {
  transform: scale(0.95);
}

.object.from-scale.show {
  transform: scale(1);
}

/* CTA: fade-in only */
.cta-inner.object {
  transform: none;
}

.cta-inner.object.show {
  transform: none;
}

/* Stagger delay (list items) */
.object.delay-1 { transition-delay: 0.15s; }
.object.delay-2 { transition-delay: 0.3s; }
.object.delay-3 { transition-delay: 0.45s; }
.object.delay-4 { transition-delay: 0.6s; }
.object.delay-5 { transition-delay: 0.75s; }
.object.delay-6 { transition-delay: 0.9s; }
.object.delay-7 { transition-delay: 1.05s; }
.object.delay-8 { transition-delay: 1.2s; }

/* Side-by-side delay */
.object.delay-side { transition-delay: 0.5s; }

/* MV overlay animation */
#mv video {
  animation: mvZoom 20s ease-out forwards;
}

@keyframes mvZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

/* ========== Hamburger Menu ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

header.scrolled .hamburger span,
header.header-sub .hamburger span {
  background: var(--color-text);
}

header.menu-open .hamburger span {
  background: var(--color-text);
}

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

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

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

/* ========== Responsive (Tablet) ========== */
@media (max-width: 1024px) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  header {
    padding: 12px 40px;
  }

  header a.logo img {
    height: 70px;
    width: 70px;
  }

  header nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 40px;
    gap: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s ease, visibility 0.4s;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  header nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  header nav a {
    font-size: 14px;
    color: var(--color-text);
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid #f0f0ec;
  }

  header nav a:first-child {
    border-top: 1px solid #f0f0ec;
  }

  header.scrolled nav a,
  header.header-sub nav a {
    color: var(--color-text);
  }

  header nav a.nav-cta {
    margin-top: 24px;
    padding: 14px 24px;
    text-align: center;
    border: 1px solid var(--color-primary);
    color: #fff;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99;
  }

  .menu-overlay.active {
    display: block;
  }

  header.menu-open {
    background-color: var(--color-white-95);
  }

  .full-image-section {
    height: auto;
    min-height: auto;
  }

  .full-image-section img {
    height: auto;
  }

  #concept {
    padding: 80px 50px;
  }

  .concept-inner {
    gap: 50px;
  }

  .concept-images {
    flex-shrink: 1;
    min-width: 0;
  }

  .concept-images img {
    width: 100%;
    height: 380px;
  }

  #rooms {
    padding: 80px 50px;
  }

  .rooms-slider {
    width: calc((100% - 50px) * 0.5);
  }

  .rooms-inner {
    gap: 50px;
  }

  #facility {
    padding: 80px 50px;
  }

  .facility-slider {
    width: calc((100% - 50px) * 0.6);
  }

  .facility-slider .swiper-slide img {
    height: 380px;
  }

  #news {
    padding: 80px 50px;
  }

  #access {
    padding: 80px 50px;
  }

  .access-inner {
    gap: 50px;
  }

  .access-map {
    height: 420px;
  }

  footer {
    padding: 50px 50px 25px;
  }

  .footer-nav {
    gap: 20px;
  }
}

/* ========== Responsive (Mobile) ========== */
@media (max-width: 767px) {
  header {
    padding: 12px 28px;
  }

  header a.logo img {
    height: 50px;
    width: 50px;
  }

  header nav {
    width: 260px;
    padding: 80px 32px;
  }

  section {
    min-height: auto;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .full-image-section {
    height: 100vh;
  }

  .full-image-section img {
    display: block;
    height: 100vh;
  }

  .swiper-slide img {
    height: 260px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
  }

  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 12px;
  }

  #concept {
    padding: 60px 24px;
    min-height: auto;
  }

  .concept-inner {
    flex-direction: column;
    gap: 32px;
  }

  .concept-images img {
    width: 100%;
    height: auto;
  }

  #rooms {
    padding: 60px 24px;
    min-height: auto;
  }

  .rooms-inner {
    flex-direction: column;
    gap: 32px;
  }

  .rooms-slider {
    width: 100%;
  }

  .rooms-info {
    max-width: 100%;
  }

  #facility {
    padding: 60px 24px;
    min-height: auto;
  }

  .facility-content {
    flex-direction: column;
  }

  .facility-slider {
    width: 100%;
  }

  .facility-slider .swiper-slide img {
    height: 240px;
  }

  #news {
    padding: 60px 24px;
  }

  .news-section-link,
  .news-link {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 20px 6px;
  }

  .news-section-title,
  .news-title {
    width: 100%;
  }

  #access {
    padding: 60px 24px;
    min-height: auto;
  }

  .access-inner {
    flex-direction: column;
    gap: 32px;
  }

  .access-map {
    width: 100%;
    height: 300px;
  }

  #cta {
    min-height: 100vh;
  }

  .cta-inner h2 {
    font-size: 22px;
  }

  .cta-btn {
    padding: 14px 40px;
    font-size: 13px;
  }

  footer {
    padding: 40px 24px 20px;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-logo img {
    height: 45px;
  }
}
