:root {
  --color-primary: #2c7873;
  --color-secondary: #6fb98f;
  --color-accent: #4d9078;
  --color-background: #f7f9f9;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-secondary);
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 500;
}

/* ハンバーガーメニュー */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  box-shadow: var(--shadow);
  position: relative;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: var(--color-primary);
  transition: var(--transition);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.hamburger-line:nth-child(1) {
  transform: translate(-50%, -8px);
}

.hamburger-line:nth-child(2) {
  transform: translate(-50%, 0);
}

.hamburger-line:nth-child(3) {
  transform: translate(-50%, 8px);
}

.hamburger-menu.active {
  background: rgba(255, 255, 255, 0.9);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  color: var(--color-white);
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

/* スライドショーのコンテナ */
.hero-slides-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* スライドよりも上に表示するために高いz-indexを設定 */
  background-color: rgba(0, 0, 0, 0.4); /* 半透明の背景を追加 */
  backdrop-filter: blur(2px); /* 背景をわずかにぼかす効果を追加 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-card-img {
  height: 200px;
  overflow: hidden;
}

.about-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-card:hover .about-card-img img {
  transform: scale(1.05);
}

.about-card-content {
  padding: 1.5rem;
}

.about-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.about-card-icon {
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Recommended Plan Styling */
.pricing-card.recommended {
  border: 2px solid var(--color-secondary);
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.pricing-card.recommended:hover {
  transform: scale(1.05) translateY(-5px);
}

.recommended-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background-color: var(--color-secondary);
  color: white;
  font-weight: bold;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-recommended {
  background-color: var(--color-secondary);
  font-weight: bold;
}

.btn-recommended:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.currency-symbol {
  font-size: 1.5rem;
  font-weight: 500;
  vertical-align: baseline;
  position: relative;
  bottom: 0.1em;
  margin-right: 2px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Access Section */
.access-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.access-info h3 {
  margin-bottom: 1rem;
}

.access-info ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.access-info li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.access-info li::before {
  content: "place";
  font-family: 'Material Symbols Outlined';
  margin-right: 0.5rem;
  color: var(--color-secondary);
}

.access-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}

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

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.contact-info li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.contact-info li::before {
  content: "info";
  font-family: 'Material Symbols Outlined';
  margin-right: 0.5rem;
  color: var(--color-secondary);
}

.contact-form {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(111, 185, 143, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Plan selection styling */
.plan-selection {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
}

.plan-option {
  flex: 1;
  position: relative;
}

.plan-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.plan-box {
  border: 2px solid #ddd;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.plan-box h4 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 1.1rem;
}

.plan-box p {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--color-primary);
}

/* Hover state */
.plan-option:hover .plan-box {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(111, 185, 143, 0.2);
}

/* Selected state */
.plan-option input[type="radio"]:checked + label .plan-box {
  border-color: var(--color-secondary);
  background-color: rgba(111, 185, 143, 0.1);
  box-shadow: 0 0 0 2px rgba(111, 185, 143, 0.3);
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links h3 {
  color: var(--color-white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-bottom {
  margin-top: 3rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Usage Flow Section */
.usage-flow {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.flow-step {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.flow-image {
  height: 100%;
  text-align: center;
}

.placeholder-image {
  background-color: #f0f0f0;
  height: 200px;
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-weight: bold;
  box-shadow: var(--shadow);
}

.flow-content h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
}

.flow-content p {
  margin-bottom: 0.5rem;
}

.flow-content .note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
  padding-left: 1rem;
  border-left: 3px solid var(--color-secondary);
  margin-top: 0.5rem;
}

/* 追従予約ボタン */
.floating-reservation-btn {
  opacity: 0; /* デフォルトでは透明 */
  visibility: hidden; /* デフォルトでは非表示 */
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 99;
  text-align: center;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.floating-reservation-btn:hover,
.floating-reservation-btn:visited,
.floating-reservation-btn:active,
.floating-reservation-btn:focus {
  background-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  color: var(--color-white); /* 常に白色を維持 */
}

/* ライトボックス */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
}

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

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background-color: white;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.lightbox-content p {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
}

.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.close-btn:hover {
  background-color: var(--color-accent);
  transform: scale(1.1);
}

/* Google reCAPTCHA */
.grecaptcha-badge { visibility: hidden; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .access-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  /* ハンバーガーメニュー表示 */
  .hamburger-menu {
    display: flex;
  }
  
  /* ロゴとナビゲーションを横並びに */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }
  
  /* ナビゲーションを非表示にする（デフォルト） */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 100;
    padding: 80px 20px 20px;
  }
  
  /* ナビゲーションがアクティブな時 */
  .nav.active {
    right: 0;
  }
  
  /* ナビリンクを縦並びに */
  .nav-links {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }
  
  .flow-step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .flow-content {
    order: 2;
  }
  
  .flow-image {
    order: 1;
  }
  
  .flow-content h3 {
    justify-content: center;
  }
  
  .flow-content .note {
    text-align: left;
  }
  
  /* スマホ表示時のみ追従予約ボタンを表示 */
  .floating-reservation-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 100vh; /* スマホ表示時に画面いっぱいに表示 */
  }

  .hero h1 {
    font-size: 2rem;
  }

  .header {
    background-color: transparent;
    box-shadow: none;
    position: fixed; /* スクロール追従するように固定位置に変更 */
    width: 100%;
    z-index: 1000; /* 最前面に表示されるように高いz-indexを設定 */
    top: 0;
    right: 0;
  }

  .header-container {
    background: none;
    padding: 1rem;
    justify-content: flex-end; /* ハンバーガーメニューを右寄せ */
  }

  .section {
    padding: 3rem 0;
  }

  /* スマホ表示時にロゴを非表示 */
  .logo {
    display: none;
  }

  /* ハンバーガーメニューのスタイル調整 */
  .hamburger-menu {
    margin-right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明の背景 */
  }
}

/* Date Picker */
.date-picker-wrapper {
  position: relative;
}

.date-picker-container {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  margin-top: 0.5rem;
  width: 320px;
  max-width: 100%;
}

.date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.date-picker-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.date-picker-nav {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--color-text);
}

.date-picker-nav:hover {
  background-color: var(--color-background);
  color: var(--color-primary);
}

.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.date-picker-day-name {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 0.5rem 0;
}

.date-picker-day-name.sunday {
  color: #e74c3c;
}

.date-picker-day-name.saturday {
  color: #3498db;
}

.date-picker-day {
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.date-picker-day:not(.empty):not(.disabled):hover {
  background-color: var(--color-background);
}

.date-picker-day.empty {
  cursor: default;
}

.date-picker-day.disabled {
  color: #ccc;
  cursor: not-allowed;
  text-decoration: line-through;
}

.date-picker-day.booked {
  background-color: #fee;
  color: #c00;
}

.date-picker-day.selected {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.date-picker-day.sunday:not(.disabled):not(.selected) {
  color: #e74c3c;
}

.date-picker-day.saturday:not(.disabled):not(.selected) {
  color: #3498db;
}

.date-picker-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color.booked {
  background-color: #fee;
  border: 1px solid #fcc;
}

.legend-color.available {
  background-color: var(--color-background);
  border: 1px solid #ddd;
}

/* Date Picker Responsive */
@media (max-width: 480px) {
  .date-picker-container {
    width: 100%;
    left: 0;
    right: 0;
  }
}