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

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, sans-serif;
  color: #333;
  background: #fff;
}

/* ========== カラーパレット（グリッド11番より）==========
  dark forest green : #2d4f2a
  sage green        : #5a7a58
  warm beige        : #c8b898
  brown             : #8a5a3a
  navy              : #2a3a5a
  cream             : #f5f0e8
========================================================= */

/* ========== Header ========== */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}

.logo-rakuten {
  font-size: 22px;
  font-weight: 900;
  color: #bf0000;
  letter-spacing: -0.5px;
}

.logo-travel {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.header-nav {
  display: flex;
  gap: 18px;
  flex: 1;
}

.header-nav a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
}

.header-nav a:hover { color: #bf0000; }

.header-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.header-action {
  text-decoration: none;
  color: #555;
  font-size: 13px;
  white-space: nowrap;
}

.header-action:hover { color: #bf0000; }

/* ========== Breadcrumb ========== */
.breadcrumb {
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}

.breadcrumb-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 12px;
  color: #888;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

/* 茅葺き屋根の古民家 + 緑の山の背景 */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://elysiabase.github.io/nipponia-miyama/images/hero.jpg') center center / cover no-repeat;
}

.hero-bg::before {
  content: none;
}

.hero-bg::after {
  content: none;
}

/* 左側に暗めのオーバーレイ（テキスト可読性） */
.hero-content-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.30) 50%, rgba(0,0,0,0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.hero-subtitle {
  font-size: 15px;
  color: #fff;
  line-height: 2;
  margin-bottom: 20px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* 評価 */
.hero-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stars {
  display: flex;
  gap: 1px;
}

.star {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
}

.star.filled {
  color: #f5c518;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.star.half {
  position: relative;
  color: rgba(255,255,255,0.4);
}

.star.half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 55%;
  overflow: hidden;
  color: #f5c518;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.rating-score {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.rating-count {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

/* サステナブルバッジ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  color: #fff;
  width: fit-content;
}

.badge-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1); /* ヒーロー暗背景で白に反転 */
}

/* ========== Features ========== */
.features {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}

.features-header {
  text-align: center;
  padding: 44px 20px 28px;
  border-bottom: 1px solid #ebebeb;
}

.features-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.01em;
}

.features-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 20px 36px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 28px;
  gap: 14px;
}

.feature-divider {
  width: 1px;
  height: 80px;
  background: #e0e0e0;
  margin-top: 14px;
  flex-shrink: 0;
}

.feature-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-title {
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.feature-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.75;
}

/* ========== Common Section ========== */
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.section-title.left {
  text-align: left;
  font-size: 20px;
}

.section-subtitle {
  font-size: 13px;
  color: #777;
  text-align: center;
  margin-bottom: 36px;
}

/* ========== Rooms ========== */
.rooms {
  background: #fafaf8;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.room-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.room-img {
  height: 128px;
  position: relative;
}

/* ---- 蛍火 101&102 ---- */
.room-img-1 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/room-hotarubi.jpg') center / cover no-repeat;
}

/* ---- 蛍火 103 ---- */
.room-img-2 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/room-hotarubi103.jpg') center / cover no-repeat;
}

/* ---- 松明 ---- */
.room-img-3 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/room-matsuakari.jpg') center / cover no-repeat;
}

/* ---- 水音 ---- */
.room-img-4 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/room-mizuoto.jpg') center / cover no-repeat;
}

/* ---- つなぐ ---- */
.room-img-5 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/room-tsunagu.jpg') center / cover no-repeat;
}

/* ---- Hola MIYAMA: 昼間、茅葺き、青空 ---- */
.room-img-6 {
  background:
    linear-gradient(180deg, #7bb8d8 0%, #5aa0c0 20%, #4a8858 35%, #5a9a50 50%, #6aaa60 65%, #8aba78 80%, #7aaa65 100%);
}
.room-img-6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 45%;
  background: linear-gradient(160deg, #8a7858 0%, #b09878 50%, #c8b090 100%);
  clip-path: polygon(5% 100%, 5% 40%, 0% 40%, 50% 0%, 100% 40%, 95% 40%, 95% 100%);
  opacity: 0.8;
}

.room-info {
  padding: 12px 13px 15px;
}

.room-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.45;
}

.room-name span {
  font-size: 10px;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.3px;
}

.room-desc {
  font-size: 11px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 12px;
}

a.room-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 11px;
  border-radius: 3px;
  transition: border-color 0.2s, background 0.2s;
}

a.room-btn:hover {
  border-color: #2d4f2a;
  color: #2d4f2a !important;
  background: #f0f5ee;
}

/* ========== Activities ========== */
.activities {
  background: #fff;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.activity-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.22s ease;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
}

.activity-card:hover {
  transform: translateY(-4px);
}

.activity-img {
  height: 180px;
  position: relative;
  background-size: cover;
  background-position: center;
}

.activity-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 55%, transparent 100%);
}

/* アイコンを画像下部中央にオーバーレイ */
.activity-img-icon {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 6px;
}

.activity-img-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1); /* 暗背景で白アイコンに反転 */
}

/* ---- 川遊び・自然体験 ---- */
.activity-img-1 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/activity-river.jpg') center / cover no-repeat;
}

/* ---- 美山の食体験 ---- */
.activity-img-2 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/activity-food.jpg') center / cover no-repeat;
}

/* ---- 文化体験 ---- */
.activity-img-3 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/activity-culture.jpg') center / cover no-repeat;
}

/* ---- 季節のイベント ---- */
.activity-img-4 {
  background: url('https://elysiabase.github.io/nipponia-miyama/images/activity-event.jpg') center / cover no-repeat;
}

.activity-info {
  padding: 14px 16px 18px;
  background: #fff;
}

.activity-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.activity-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

/* ========== Travel Guide ========== */
.travel-guide {
  background: #fafaf8;
  border-top: 1px solid #e8e8e5;
}

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

.guide-card {
  display: flex;
  flex-direction: row;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.13);
}

.guide-img {
  width: 180px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.guide-img-facility {
  background-image: url('https://elysiabase.github.io/nipponia-miyama/images/guide-facility.jpg');
}

.guide-img-cycling {
  background-image: url('https://elysiabase.github.io/nipponia-miyama/images/guide-cycling.jpg');
}

.guide-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.guide-label {
  font-size: 11px;
  font-weight: 600;
  color: #2d4f2a;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
}

.guide-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.7;
}

.guide-link {
  font-size: 13px;
  font-weight: 600;
  color: #2d4f2a;
  margin-top: 4px;
}

/* ========== Pet ========== */
.pet {
  background: #fff;
  border-top: 1px solid #e8e8e5;
  border-bottom: 1px solid #e8e8e5;
}

.pet-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.pet-img {
  width: 340px;
  flex-shrink: 0;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: url('https://elysiabase.github.io/nipponia-miyama/images/pet-banner.jpg') center / cover no-repeat;
  position: relative;
}

.pet-img::after {
  content: 'ペットとのご宿泊';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.18) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pet-body {
  flex: 1;
}

.pet-label {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.pet-types {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
}

.pet-check {
  font-size: 14px;
  font-weight: 600;
  color: #2d7a3a;
}

.pet-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.pet-link {
  font-size: 13px;
  color: #1a6eb5;
  text-decoration: none;
}

.pet-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .pet-inner {
    flex-direction: column;
    gap: 20px;
  }
  .pet-img {
    width: 100%;
    height: 160px;
  }
}

/* ========== Access ========== */
.access {
  background: #f8f8f6;
  border-top: 1px solid #e8e8e5;
}

.access-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.access-info {
  flex: 1;
  min-width: 260px;
}

.access-address {
  font-style: normal;
  font-size: 14px;
  color: #555;
  line-height: 2.1;
  margin: 20px 0 26px;
}

.access-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 26px;
  font-size: 13px;
}

.access-table th,
.access-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #e8e8e5;
  text-align: left;
  vertical-align: top;
}

.access-table th {
  font-weight: 700;
  color: #444;
  white-space: nowrap;
  width: 130px;
}

.access-table td {
  color: #555;
}

a.access-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  border: 1px solid #ccc;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 13px;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}

a.access-btn:hover {
  border-color: #2d4f2a;
  color: #2d4f2a !important;
}

.access-map {
  flex: 1.6;
}

.map-placeholder {
  height: 270px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  border: 1px solid #d0ccc4;
}

/* 地図背景（緑・山地） */
.map-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #c8ddb8 0%, #b8cca8 40%, #c8d8b0 70%, #b0c098 100%);
}

.map-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(255,255,255,0.12) 28px, rgba(255,255,255,0.12) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 36px, rgba(255,255,255,0.12) 36px, rgba(255,255,255,0.12) 37px);
}

/* 道路ライン */
.map-roads {
  position: absolute;
  inset: 0;
}

.map-roads::before {
  content: '';
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  height: 7px;
  background: rgba(230,220,195,0.9);
  border-top: 1px solid rgba(200,185,155,0.8);
  border-bottom: 1px solid rgba(200,185,155,0.8);
  transform: rotate(-4deg);
}

.map-roads::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 57%;
  width: 6px;
  background: rgba(230,220,195,0.85);
  border-left: 1px solid rgba(200,185,155,0.7);
  border-right: 1px solid rgba(200,185,155,0.7);
}

/* マップピン */
.map-pin {
  position: absolute;
  top: 40%;
  left: 55%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.map-pin-marker {
  width: 28px;
  height: 36px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.map-pin-marker svg {
  width: 100%;
  height: 100%;
}

.map-pin-label {
  background: #fff;
  border: 1px solid #d0ccc4;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ========== Detail Link ========== */
.detail-link-bar {
  background: #f8f8f6;
  border-top: 1px solid #e8e8e5;
  padding: 28px 20px;
  text-align: center;
}

a.detail-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 32px;
  border: 1px solid #2d4f2a;
  color: #2d4f2a !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

a.detail-link-btn:hover {
  background: #2d4f2a;
  color: #fff !important;
}

/* ========== Footer CTA ========== */
.footer-cta {
  background: #2d4f2a;
}

.footer-cta-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-cta-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

a.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 30px;
  background: #3d6e38;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
}

a.footer-cta-btn:hover {
  background: #4a8544;
  color: #fff !important;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .rooms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* 5枚を3+2レイアウトで表示 */

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

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

  .access-inner {
    flex-direction: column;
  }

  .access-map {
    width: 100%;
  }

  .features-inner {
    flex-wrap: wrap;
    gap: 24px;
  }

  .feature-divider {
    display: none;
  }

  .feature-item {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }

  .hero {
    height: 400px;
  }

  .hero-content {
    padding: 0 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .features-title {
    font-size: 18px;
  }

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

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

  .guide-img {
    width: 120px;
  }

  .footer-cta-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
