/* ========================================
   森の隠れ家 - 宿泊施設サイト スタイル
   ======================================== */

:root {
  --color-forest: #1c1c1e;
  --color-forest-light: #3a3a3c;
  --color-forest-dark: #0a0a0b;
  --color-cream: #faf6f0;
  --color-warm-white: #fafaf8;
  --color-wood: #c9a96e;
  --color-wood-light: #d4b98a;
  --color-sage: #b8b0a4;
  --color-text: #1c1c1e;
  --color-text-muted: #6b6b73;
  --font-serif: 'Noto Serif JP', serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 4px 24px rgba(28, 28, 30, 0.08);
  --shadow-medium: 0 8px 40px rgba(28, 28, 30, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-warm-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ========== ヘッダー・ナビゲーション ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  transition: background var(--transition), padding var(--transition);
}

.header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--color-text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-forest);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-reserve {
  padding: 0.5rem 1.25rem !important;
  background: var(--color-forest);
  color: var(--color-cream) !important;
  border-radius: 2px;
}

.btn-reserve::after {
  display: none !important;
}

.btn-reserve:hover {
  background: var(--color-forest-dark);
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-forest);
  transition: var(--transition);
}

/* ========== ヒーローセクション ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(28, 28, 30, 0.65) 0%, rgba(10, 10, 11, 0.45) 50%),
    url('images/TOP pic.JPG') center/cover no-repeat;
  color: var(--color-cream);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 2px solid var(--color-cream);
  color: var(--color-cream);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: var(--color-cream);
  color: var(--color-forest);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1.5s ease-out 0.5s both;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-cream), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.6); }
}

/* ========== セクション共通 ========== */
.section {
  padding: 6rem 0;
}

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--color-wood);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-forest);
  line-height: 1.5;
  margin-bottom: 3rem;
}

/* ========== 宿のご紹介 ========== */
.about {
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 4/5;
}

.about-image-frame {
  position: absolute;
  inset: 0;
  background: url('images/about2.PNG') center/contain no-repeat;
}

.about-content {
  padding-left: 2rem;
}

.about-text {
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--color-forest);
  font-weight: 500;
}

.link-arrow:hover {
  color: var(--color-wood);
}

/* ========== お部屋 ========== */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* 7枚目のカードを中央に配置 */
.room-card--last {
  grid-column: 2;
}

.room-card {
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.room-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.room-card:hover .room-image {
  transform: scale(1.05);
}

/* 各部屋のプレースホルダー画像（写真差し替え時はURLを追加） */
.room-1 { background: url('images/room101.jpg') center/cover; }
.room-2 { background: url('images/room201.jpg') center/cover; }
.room-3 { background: url('images/room301.JPG') center/cover; }
.room-4 { background: url('images/room302.JPG') center/cover; }
.room-5 { background: url('images/room303.jpg') center/cover; }
.room-6 { background: url('images/room401.jpg') center/cover; }
.room-7 { background: url('images/room402.JPG') center/cover; }

.room-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.room-info h3 {
  font-size: 1.15rem;
  color: var(--color-forest);
}

.room-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
}

.room-price {
  font-size: 0.85rem;
  color: var(--color-wood);
  font-weight: 500;
}

.btn-airbnb {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.25rem;
  background: #FF5A5F;
  color: white !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.btn-airbnb:hover {
  background: #e0484d;
  transform: translateY(-1px);
  opacity: 1;
}

/* ========== 施設・サービス ========== */
.amenities {
  background: var(--color-cream);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.amenity-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.amenity-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.amenity-item h3 {
  font-size: 1.1rem;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
}

.amenity-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ========== アクセス ========== */
.access-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.access-info {
  font-style: normal;
  line-height: 2;
  color: var(--color-text-muted);
}

.access-info p {
  margin-bottom: 0.5rem;
}

.access-map {
  aspect-ratio: 16/9;
  min-height: 300px;
}

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

.map-placeholder small {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ========== お問い合わせフォーム ========== */
.contact {
  background: var(--color-cream);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group label span {
  color: var(--color-wood);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #ddd;
  background: white;
  font-family: var(--font-serif);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--color-forest);
  color: var(--color-cream);
  border: none;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-submit:hover {
  background: var(--color-forest-dark);
}

/* ========== フッター ========== */
.footer {
  background: var(--color-forest-dark);
  color: var(--color-cream);
  padding: 3rem 0;
  text-align: center;
}

.footer .logo {
  color: var(--color-cream);
  margin-bottom: 1rem;
}

.footer-address,
.footer-tel {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ========== レスポンシブ ========== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-warm-white);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    gap: 1.5rem;
  }

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

  .about-image {
    aspect-ratio: 3/2;
  }

  .about-content {
    padding-left: 0;
  }

  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 7枚目を1列目に戻す */
  .room-card--last {
    grid-column: 1;
  }

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

  .access-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .container {
    width: 92%;
  }

  .header {
    padding: 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-cta {
    padding: 0.8rem 1.75rem;
    font-size: 0.9rem;
  }

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

  /* 7枚目を確実に1列目に */
  .room-card--last {
    grid-column: 1;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .amenities-grid {
    gap: 1.5rem;
  }

  .footer {
    padding: 2rem 0;
  }
}
