@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&display=swap');

/* ============================================
   粟井村 モダンレスポンシブテーマ
   カラーパレット:
   - 青緑(和紙): #5a7a8a (bgnavi.pngから)
   - 緑: #9bb097
   - オレンジ: #E07845
   - テキスト: #434343
   - 背景: #faf9f6
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 400;
  color: #434343;
  line-height: 1.8;
  background-color: #faf9f6;
  -webkit-text-size-adjust: 100%;
}

a {
  color: #5a7a5a;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: #E07845; }

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

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: url('/wp-content/themes/awai/i/bgnavi-opt.jpg?v=2') repeat;
  border-bottom: 3px solid #9bb097;
  padding: 0;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.header-logo img {
  height: 60px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 0;
  list-style: none;
}

.header-nav a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background 0.2s;
}

.header-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: block;
  padding: 8px 16px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-dropdown > a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 1100;
  padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #434343 !important;
  font-size: 0.85rem;
  font-weight: normal;
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background: #f5f5f0 !important;
  color: #E07845 !important;
}

/* Mobile sub-items */
.mobile-sub {
  padding-left: 28px !important;
  font-size: 0.9rem !important;
  color: #888 !important;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}

.mobile-menu-inner {
  background: #fff;
  width: 280px;
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  margin-left: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #434343;
  float: right;
  margin-bottom: 16px;
}

.mobile-menu-nav {
  list-style: none;
  clear: both;
}

.mobile-menu-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  color: #434343;
  font-size: 1rem;
}

.mobile-menu-nav a:hover {
  color: #E07845;
}

/* === Hero === */
.hero {
  position: relative;
  height: 40vh;
  min-height: 250px;
  max-height: 400px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes hero-scroll {
  0%   { object-position: 0% 50%; }
  100% { object-position: 100% 50%; }
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.55) 100%);
  padding: 60px 24px 32px;
  color: #fff;
  text-align: center;
}

.hero-overlay h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-overlay p {
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

/* === Container === */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* === Section === */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #9bb097;
}

.section-header h2 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #434343;
  font-weight: normal;
}

.section-header .section-icon {
  color: #9bb097;
  font-size: 1.2rem;
}

.section-link {
  margin-left: auto;
  font-size: 0.85rem;
  color: #E07845;
  white-space: nowrap;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

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

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  color: inherit;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #434343;
}

.card-body p {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.5;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}

.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.gallery-grid img:hover { opacity: 0.8; }

/* === Content Page (下層ページ) === */
.page-hero {
  background: url('/wp-content/themes/awai/i/bgnavi-opt.jpg?v=2') repeat;
  padding: 32px 16px;
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 16px;
}

.page-content h2 {
  font-size: 1.3rem;
  color: #434343;
  border-left: 4px solid #9bb097;
  padding-left: 12px;
  margin: 32px 0 16px;
}

.page-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 2;
}

.page-content img {
  width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.page-content .gallery-tiling img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.page-content th {
  background: #5a7a8a;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
}

.page-content td {
  border-bottom: 1px solid #ddd;
  padding: 8px 12px;
}

/* === Footer === */
.site-footer {
  background: url('/wp-content/themes/awai/i/footer.gif') center/cover;
  color: #fff;
  text-align: center;
  padding: 40px 16px;
  margin-top: 48px;
}

.site-footer a { color: #9bb097; }

.site-footer .footer-logo img {
  height: 28px;
  margin: 0 auto 12px;
}

.site-footer small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ddd;
  font-size: 0.85rem;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #888;
  max-width: 1000px;
  margin: 0 auto;
}

.breadcrumb a { color: #9bb097; }

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .header-nav { display: none; }

  .hero {
    height: 35vh;
    min-height: 180px;
    max-height: 300px;
  }

  .hero img {
    animation: hero-scroll 90s linear infinite alternate;
  }

  .section { padding: 32px 0; }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .card-img {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
  }

  .card-body { padding: 12px; }
  .card-body h3 { font-size: 0.95rem; }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .gallery-grid img { height: 100px; }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .page-content { padding: 24px 16px; }
}

@media (max-width: 480px) {
  .card-img {
    width: 100px;
    height: 75px;
  }

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

/* Fix iframe overflow on mobile */
.page-content iframe {
  max-width: 100% !important;
  width: 100% !important;
}

/* Legacy WP content within page-content */
.page-content #side,
.page-content .flotl,
.page-content .room,
.page-content .rooms,
.page-content .roomtitle,
#side,
#side .flotl,
#side .room,
#side .rooms,
#side .roomtitle {
  width: 100% !important;
  float: none !important;
}

#side {
  margin-top: 32px;
  padding: 24px 16px 0;
  border-top: 2px solid #9bb097;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#side .flotl {
  margin-bottom: 20px !important;
}

#side h2 {
  font-size: 1.1rem;
  color: #fff;
  background: url('/wp-content/themes/awai/i/bgnavi-opt.jpg?v=2') repeat;
  padding: 8px 12px;
  border-bottom: 2px solid #9bb097;
  margin-bottom: 12px;
}

#side .rooms,
.page-content .rooms {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  height: auto !important;
}

#side .rooms img,
.page-content .rooms img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.page-content .roomtitle {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 1.05rem;
}

.price-table caption {
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: left;
}

.price-table th {
  background: #5a7a8a;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: normal;
  font-size: 0.85rem;
}

.price-table td {
  border-bottom: 1px solid #ddd;
  padding: 10px 12px;
  font-size: 1.05rem;
}

.price-table td:nth-child(2),
.price-table td:nth-child(3),
.price-table th:nth-child(2),
.price-table th:nth-child(3) {
  text-align: right;
}

.price-table.info-table td,
.price-table.info-table th {
  text-align: left;
}

.price-table tr:hover td {
  background: #f5f5f0;
}

.price-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 8px;
}

/* === Gallery Tiling Grid === */
.gallery-tiling {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 24px;
}

.gallery-tiling img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-tiling img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.gallery-category {
  font-size: 1.2rem;
  color: #434343;
  border-left: 4px solid #9bb097;
  padding-left: 12px;
  margin: 32px 0 12px;
}

@media (min-width: 600px) {
  .gallery-tiling {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-tiling img {
    height: 200px;
  }
}

@media (min-width: 960px) {
  .gallery-tiling {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-tiling img {
    height: 200px;
  }
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
}

.lightbox img,
.lightbox.active img,
.page-content .lightbox img {
  max-width: 95vw !important;
  max-height: 85vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  margin: 0 !important;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
}

/* Price note list */
.price-note-list {
  margin: 12px 0 0 20px;
  font-size: 0.85rem;
  color: #888;
  line-height: 1.8;
  list-style: disc;
}

/* Anchor offset for sticky header */
[id^="spot"],
[id^="k-"] {
  scroll-margin-top: 80px;
}

/* Spot thumbnail with text wrap */
.spot-thumb {
  float: left;
  width: 33% !important;
  height: auto !important;
  margin: 4px 20px 8px 0 !important;
  border-radius: 6px;
  object-fit: cover;
}

/* Map clickable pins */
.map-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(224,120,69,0.9);
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none !important;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s;
  z-index: 10;
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.3);
  background: rgba(224,120,69,1);
}

@media (max-width: 480px) {
  .map-pin {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
}

/* Public facility badge */
.public-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 12px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .public-badge { display: none; }
}
