:root {
  --barbnb-pink: #e0265e;
  --barbnb-pink-dark: #b01545;
  --barbnb-charcoal: #333333;
  --barbnb-bg: #f7f4f6;
  --barbnb-radius-lg: 18px;
  --barbnb-radius-md: 12px;
  --barbnb-radius-pill: 999px;
}

/* ベース設定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Noto Sans JP", "Helvetica Neue", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background: var(--barbnb-bg);
}

/* リンク */
a {
  color: #0c7abf;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 上部バナー */
.top-banner {
  position: relative;
  padding: 0.5rem 1rem;
  background: #fffbcc;
  border-bottom: 1px solid #e5dd9f;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.top-banner a {
  font-weight: 600;
}

.banner-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
}

/* スキップリンク */
.skip-link,
a[href="#page"] {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 1000;
}

.skip-link:focus,
a[href="#page"]:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ページラッパー */
#page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ヘッダー & グローバルナビ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 3px solid var(--barbnb-pink);
  background: #fff;
}

.site-title a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--barbnb-charcoal);
}

.global-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.global-nav a {
  color: var(--barbnb-charcoal);
  padding: 0.35rem 0.75rem;
  border-radius: var(--barbnb-radius-pill);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.global-nav a:hover {
  background: rgba(224, 38, 94, 0.08);
}

.global-nav a.active {
  font-weight: 700;
  background: var(--barbnb-pink);
  color: #ffffff;
}

/* ハンバーガー */
.nav-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 999px;
}

.nav-toggle-label {
  font-size: 0.8rem;
  color: #333;
}

/* メイン共通 */
main {
  padding-top: 1.5rem;
}

/* Hero セクション */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
  border-radius: var(--barbnb-radius-lg);
  margin-top: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 1rem;
  text-align: center;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
}

.hero-media {
  margin: 1.5rem auto;
  background: #ddd;
  height: 220px;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
}

/* 共通: セクションタイトル */
article > h2,
section > h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1.25rem;
}

/* 検索フォーム */
.search-form {
  margin-top: 1.5rem;
  background: #ffffff;
  border-radius: var(--barbnb-radius-lg);
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.search-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.search-field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.search-field label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}

.search-field input[type="text"],
.search-field input[type="date"],
.search-field input[type="number"],
.search-field select {
  border-radius: 999px;
  border: 1px solid #d0d4dd;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  background-color: #fdfdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-field input:focus,
.search-field select:focus {
  outline: none;
  border-color: var(--barbnb-pink);
  box-shadow: 0 0 0 2px rgba(224, 38, 94, 0.18);
  background-color: #ffffff;
}

.search-field.search-submit {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.search-field.search-submit .hero-btn {
  width: 100%;
  max-width: 210px;
}

/* 共通ボタン */
.hero-btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: var(--barbnb-radius-pill);
  border: none;
  text-decoration: none;
  color: #ffffff;
  background: var(--barbnb-pink);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(224, 38, 94, 0.45);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.hero-btn:hover {
  background: var(--barbnb-pink-dark);
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(176, 21, 69, 0.5);
}

/* 地図トグル＋地図 */
.map-toggle-container {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.map-toggle-button {
  padding: 0.55rem 1.4rem;
  border-radius: var(--barbnb-radius-pill);
  border: 1px solid #c2c7d3;
  background: linear-gradient(135deg, #ffffff, #f5f6fa);
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease, border-color 0.2s ease;
}

.map-toggle-button::before {
  content: "📍";
  font-size: 1rem;
}

.map-toggle-button:hover {
  background: linear-gradient(135deg, #ffffff, #eef0f7);
  border-color: var(--barbnb-pink);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.map-toggle-button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.map-toggle-button.is-active {
  border-color: var(--barbnb-pink);
  background: linear-gradient(135deg, #ffe7f0, #f8f0f5);
}

.map-toggle-note {
  font-size: 0.8rem;
  color: #666;
}

.map-section {
  margin: 1.8rem 0 2.5rem;
  background: #ffffff;
  border-radius: var(--barbnb-radius-lg);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.map-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.map-section p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.9rem;
}

.map-canvas {
  width: 100%;
  height: 360px;
  border-radius: var(--barbnb-radius-md);
  overflow: hidden;
  border: 1px solid #dde1ea;
}

/* 施設一覧 / カード */
.facility-listing {
  font-family: inherit;
  background: #f3d3db;
  padding: 24px;
  margin: 2rem auto;
  border-radius: var(--barbnb-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.facility-listing h2 {
  color: #222;
  margin: 0 0 1.5em;
  border-bottom: 2px solid #e0e0e0;
  text-align: center;
  padding-bottom: 0.3em;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 2em;
}

.tab-button {
  background: var(--barbnb-pink);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  margin: 0 0.6em;
  cursor: pointer;
  border-radius: var(--barbnb-radius-pill);
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s, transform 0.1s;
}

.tab-button:hover {
  background: var(--barbnb-pink-dark);
  transform: translateY(1px);
}

.tab-button.active {
  background: var(--barbnb-charcoal);
}

.facilities-container {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--barbnb-radius-md);
  min-height: 280px;
}

.district-group {
  margin-bottom: 2em;
}

.district-group h3 {
  color: #444;
  margin-bottom: 1em;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3em;
}

.facility-cards-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.facility-card {
  flex: 1 1 300px;
  background: #ffffff;
  box-shadow: 0 2px 12px #ddd;
  border-radius: var(--barbnb-radius-md);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.facility-image-placeholder {
  width: 100%;
  height: 180px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.2em;
  margin-bottom: 12px;
}

.facility-title {
  font-weight: bold;
  color: var(--barbnb-pink);
  font-size: 1.15em;
}

.facility-address {
  margin-top: 0.3em;
  font-size: 0.9em;
}

.facility-buttons {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reservation-button,
.map-button {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.9em;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s;
}

.reservation-button {
  background-color: var(--barbnb-pink);
  color: #ffffff;
}

.reservation-button:hover {
  background-color: var(--barbnb-pink-dark);
}

.map-button {
  background-color: #237acd;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-button:hover {
  background-color: #1a5ca5;
}

/* トップの簡易カード */
.featured-listings {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2rem;
  margin-top: 2.5rem;
}

.featured-listings .listing {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  max-width: 320px;
  margin: 0 1rem 1.5rem 0;
}

.featured-listings .listing-media {
  background: #ddd;
  height: 150px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.85rem;
}

/* 安心できる最適な空間 */
.comfort-space {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2.5rem;
}

.comfort-space .comfort-block {
  margin-bottom: 2rem;
}

.comfort-media {
  background: #ddd;
  height: 180px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.85rem;
}

.comfort-space h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

/* プラン / SNS */
.plans-inner,
.sns-inner {
  background: #f0f0f0;
  padding: 1.5rem;
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

/* お問い合わせ */
.contact p {
  max-width: 640px;
}

.contact-form {
  margin-top: 1.5rem;
  max-width: 640px;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 0.95rem;
}

.field-group textarea {
  min-height: 140px;
  resize: vertical;
}

.field-group input[type="submit"],
.contact-form input[type="submit"] {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #0c7abf;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}

.field-group input[type="submit"]:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #666;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-nav a {
  color: #666;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .site-header {
    position: relative;
    flex-wrap: nowrap;
    padding: 10px;
  }

  .nav-toggle {
    padding: 10px;
    display: inline-flex;
    flex-direction: column;
    z-index: 1600;
  }

  .global-nav {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    border-top: 1px solid #eee;
    padding: 0.5rem 1rem 0.75rem;
    display: none;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 1500;
  }

  .global-nav a {
    padding: 0.7rem 0;
  }

  .global-nav.is-open {
    display: flex;
  }

  .nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .search-form {
    padding: 1.1rem 1rem 1rem;
  }

  .featured-listings .listing {
    max-width: 100%;
    margin-right: 0;
  }

  .map-canvas {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .facility-cards-flex {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 12px;
  }

  .facility-card {
    flex: 0 0 80%;
  }
}

@media (min-width: 600px) {
  .facility-card {
    max-width: 50%;
  }
}

/* パインレンタカー バナー */
.promo-banner {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.6rem 1.5rem;
  border-radius: var(--barbnb-radius-lg);
  background: linear-gradient(135deg, #ffffff, #f2f6ff);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.promo-banner__body {
  display: flex;
  gap: 1.8rem;
  align-items: stretch;
}

.promo-banner__text {
  flex: 2;
}

.promo-banner__visual {
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-banner__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
  margin: 0 0 0.4rem;
}

.promo-banner__title {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 0.6rem;
  color: var(--barbnb-charcoal);
}

.promo-banner__desc {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 0.8rem;
}

.promo-banner__points {
  margin: 0 0 1.0rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #555;
}

.promo-banner__points li {
  margin-bottom: 0.25rem;
  list-style-type: disc;
}

.promo-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.promo-banner__btn-main,
.promo-banner__btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--barbnb-radius-pill);
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.promo-banner__btn-main {
  background: var(--barbnb-pink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(224, 38, 94, 0.45);
}

.promo-banner__btn-main:hover {
  background: var(--barbnb-pink-dark);
  box-shadow: 0 4px 12px rgba(176, 21, 69, 0.5);
  transform: translateY(1px);
}

.promo-banner__btn-sub {
  background: #fff;
  color: var(--barbnb-charcoal);
  border-color: #cfd3de;
}

.promo-banner__btn-sub:hover {
  background: #f4f6fb;
}

/* 画像プレースホルダー（実装時は画像に置き換え可） */
.promo-banner__image-placeholder {
  width: 100%;
  min-height: 140px;
  border-radius: var(--barbnb-radius-md);
  background: linear-gradient(135deg, #e8f0ff, #fdfbff);
  border: 1px solid #d6dff2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6070a0;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
}

/* SPレイアウト */
@media (max-width: 768px) {
  .promo-banner {
    padding: 1.3rem 1rem;
  }

  .promo-banner__body {
    flex-direction: column;
  }

  .promo-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-banner__btn-main,
  .promo-banner__btn-sub {
    width: 100%;
    justify-content: center;
  }
}
