/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* デフォルト（日本語）フォント設定 */
html {
  font-family: 'Noto Sans JP', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
}

/* 英語版フォント */
html.lang-en {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

html.lang-en h1,
html.lang-en h2,
html.lang-en h3,
html.lang-en h4,
html.lang-en h5,
html.lang-en h6 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
}

html.lang-en .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
}

html.lang-en .font-sans {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.005em;
}

/* Color Variables */
:root {
  --color-primary: #1B4965;
  --color-secondary: #F2E8DC;
  --color-background: #F5F5F5;
  --color-text: #333333;
  --color-text-gray: rgba(51, 51, 51, 0.8);
  --color-white: #ffffff;
  --color-black: #000000;
  --color-overlay: rgba(0, 0, 0, 0.3);
  --color-gray-50: #f9fafb;
  --color-gray-600: #4b5563;
  --color-border: #e5e7eb;
}

body {
  min-height: 100vh;
  color: var(--color-text);
  line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-screen.hidden {
  display: none;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid var(--color-primary);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.loading-content p {
  margin-top: 1rem;
  color: var(--color-gray-600);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 40;
  transition: all 0.3s ease;
  background: transparent;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: all 0.3s ease;
}

html.lang-en .logo {
  font-family: 'Playfair Display', serif;
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Main Content */
.main-content {
  padding-top: 4rem;
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
}

.hero-video-container {
  position: absolute;
  top: -5rem;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-content .container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 32rem;
  color: var(--color-white);
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

html.lang-en .hero-title {
  font-family: 'Playfair Display', serif;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: var(--color-gray-50);
}

.about-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: var(--color-text-gray);
}

.intro-text {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* Recommended Section */
.recommended-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(27, 73, 101, 0.05);
  border-radius: 0.5rem;
  border-left: 4px solid var(--color-primary);
}

.recommended-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.recommended-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .recommended-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.recommended-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.recommended-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-primary);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.feature-card {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-card-image {
  position: relative;
  height: 8rem;
  cursor: pointer;
}

.feature-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.feature-card-image:hover .feature-overlay {
  background: rgba(0, 0, 0, 0.3);
}

.feature-content {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
}

.feature-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-card-text {
  background: var(--color-white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 8rem;
}

.feature-card-text .feature-title {
  color: var(--color-primary);
  text-shadow: none;
  margin-bottom: 0.75rem;
}

.feature-price {
  font-size: 1.25rem;
  color: var(--color-text-gray);
}

/* Rooms Section */
.rooms-section {
  padding: 6rem 0;
  background: var(--color-white);
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .rooms-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.room-card {
  display: block;
}

.room-image-container {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
}

.room-image {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.room-image-container:hover .room-image {
  transform: scale(1.05);
}

.room-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.room-description {
  color: var(--color-text-gray);
  margin-bottom: 1rem;
}

.room-details-link {
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.room-details-link:hover {
  color: rgba(27, 73, 101, 0.8);
}

/* Access Section */
.access-section {
  padding: 6rem 0;
  background: var(--color-gray-50);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.access-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.access-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.location-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.map-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.address-link {
  color: var(--color-text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.address-link:hover {
  color: var(--color-primary);
}

.access-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-text-gray);
}

.access-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.access-bullet {
  color: var(--color-primary);
}

/* Usage Guide Section */
.usage-guide-section {
  padding: 6rem 0;
  background: var(--color-gray-50);
}

.usage-guide-content {
  max-width: 56rem;
  margin: 0 auto;
}

.usage-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.5rem;
}

html.lang-en .usage-subtitle {
  font-family: 'Playfair Display', serif;
}

.usage-guide-basic {
  margin-bottom: 3rem;
}

.usage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-text);
}

.usage-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1.125rem;
}

.usage-item::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.usage-guide-services {
  margin-bottom: 2rem;
}

.usage-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .usage-services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.usage-service-item {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.usage-service-item:hover {
  transform: translateY(-2px);
}

.usage-service-item h4 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
  padding-left: 1rem;
}

html.lang-en .usage-service-item h4 {
  font-family: 'Playfair Display', serif;
}

.usage-service-item p {
  color: var(--color-text-gray);
  line-height: 1.6;
}

/* Booking Section */
.booking-section {
  padding: 6rem 0;
  background: var(--color-white);
}

.booking-content {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.contact-label {
  font-weight: 500;
}

.contact-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: rgba(27, 73, 101, 0.8);
}

.booking-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .booking-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  white-space: nowrap;
  min-width: 150px;
}

.booking-btn-official {
  background: var(--color-secondary);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  position: relative;
}

.booking-btn-official:hover {
  background: rgba(242, 232, 220, 0.9);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(27, 73, 101, 0.3);
}

.booking-btn-text {
  font-size: 0.875rem;
  font-weight: bold;
}

.booking-btn-badge {
  margin-left: 0.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.booking-btn-ota {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: var(--color-primary);
  border: 1px solid rgba(27, 73, 101, 0.3);
}

.booking-btn-ota:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0 1rem;
  margin-top: 2rem;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-info {
  text-align: center;
}

.footer-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

html.lang-en .footer-title {
  font-family: 'Playfair Display', serif;
}

.footer-description {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-contact {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact-label {
  font-weight: 500;
  opacity: 0.9;
}

.footer-contact-link {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-link:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Fixed Booking Button */
.fixed-booking-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
}

.fixed-booking-link {
  display: block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(27, 73, 101, 0.3);
  transition: all 0.3s ease;
}

.fixed-booking-link:hover {
  background: rgba(27, 73, 101, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 73, 101, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .about-section,
  .rooms-section,
  .access-section,
  .booking-section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .fixed-booking-btn {
    bottom: 0.5rem;
    right: 0.5rem;
  }
}

/* Smooth Animations */
.hero-section,
.about-section,
.rooms-section,
.access-section,
.booking-section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.about-section {
  animation-delay: 0.2s;
}

.rooms-section {
  animation-delay: 0.4s;
}

.access-section {
  animation-delay: 0.6s;
}

.booking-section {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}