/* ===== 全体 ===== */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f8ff; /* ページ全体の背景色 */
  color: #333;
}

.wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 767px) {
h1, h2, h3, h4, h5, h6 {
  margin: 10px 0;
  padding: 0;
}
}

/* ===== ヘッダー ===== */
header {
  padding: 0;       /* 内側の余白を削除 */
  margin: 0;        /* 外側の余白を削除 */
  height: auto;     /* 必要に応じて高さ自動 */
  background: #0077b6; /* 任意で背景色 */
  text-align: center;   /* 中央寄せ（必要なら） */
}

header h1 {
  margin: 0;       /* h1 の上下余白も削除 */
  padding: 0;
}

/* ===== フッター ===== */
footer {
  text-align: center;      /* テキストを中央寄せ */
  font-size: 0.6rem;       /* 小さめの文字サイズ（必要に応じて調整） */
  color: #333;             /* テキスト色 */
  padding: 5px 0;         /* 上下の余白 */
  background: #0077b6;     /* フッター背景色（必要なら） */
}

/* ===== container 内テキスト中央寄せ ===== */
.container {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 15px;
  text-align: center;
}

/* ===== ページ上部画像 ===== */
.intro-hero img.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* ===== スポットブロック ===== */
.spot {
  margin: 0 auto 30px;
  border: 2px solid #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 15px;
  background: #80d0c7;
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s;
}

.spot h2 a {
  color: #000 !important;
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-color: #000 !important;
  -webkit-text-decoration-color: #000 !important;
}

.spot h2 a:hover {
  color: #000 !important;
  text-decoration-color: #000 !important;
  -webkit-text-decoration-color: #000 !important;
}

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden; /* 横スクロール防止 */
  }

  .wrapper {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .spot {
    width: 100%;
    margin: 0 auto 15px;
    padding: 8px;
    box-sizing: border-box;
  }

  .spot-content,
  .shop-info,
  .recommend {
    text-align: left;
    padding: 8px;
    box-sizing: border-box;

  }

  .sub-imgs {
    justify-content: center;
    margin: 0 auto 10px;
    padding: 0;
    gap: 5px; /* 安全なギャップ */
  }

  .sub-imgs img {
    width: calc(50% - 2.5px); /* 横幅オーバーを防止 */
    object-fit: cover;
    border-radius: 5px;
  }
}


.spot.show {
  opacity: 1;
  transform: translateX(0);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


/* メイン写真 */
.spot-images { margin-bottom: 10px; }
.main-img { width: 100%; object-fit: cover; border-radius: 5px; }

/* サブ写真 */
.sub-imgs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 10px;
}

.sub-imgs img {
  width: calc(25% - 3.75px);
  object-fit: cover;
  border-radius: 5px;
}

/* 施設紹介 */
.spot-content { padding: 10px 0; }

/* おすすめ */
.recommend { background: #ffffffcc; padding: 10px; margin: 15px 0; border-left: 5px solid #0077b6; font-size: 1em; }

/* 店舗情報 */
.shop-info { background: #ffffffdd; padding: 12px 18px; border-left: 5px solid #0077b6; margin: 20px 0; line-height: 1.6; font-size: 0.8em; text-align: left;}
.shop-info a { color: #0077b6; text-decoration: none; }
.shop-info a:hover { text-decoration: underline; }

/* SNSリンク */
.sns-links {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin: 15px 0;
}
.sns-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 22px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sns-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.x { background: #000; }
.tiktok { background: linear-gradient(135deg, #25f4ee, #fe2c55); }

/* ボタン */
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; justify-content: center; }
.btn { flex: 1; text-align: center; padding: 10px; border-radius: 0; text-decoration: none; font-weight: bold; transition: background 0.3s, color 0.3s; max-width: 150px; }
.btn-link { background: #0077b6; color: #fff; }
.btn-link:hover { background: #0096c7; }
.btn-contact { background: #ff6b6b; color: #fff; }
.btn-contact:hover { background: #ff8787; }

/* ===== メディアクエリ ===== */
@media(max-width: 767px) {
    .sub-imgs {
      justify-content: center; /* スマホでも中央寄せ */
    }

    .sub-imgs img {
      width: calc(50% - 2.5px); /* 2列表示 */
    }

    .menu table td {
      font-size: 0.9em;
      padding: 8px;
    }
  }

  /* ===== 宮古島エリア案内セクション ===== */
  .area-bridge {
    margin: 20px auto;
    padding: 10px 0;
    border-top: 2px solid #ccc; /* 上の線 */
    border-bottom: 2px solid #ccc; /* 下の線 */
    background: none; /* 背景色なし */
    color: #023e8a;
    display: flex;
    justify-content: center;
  }

  .area-bridge-inner {
    display: flex;
    flex-direction: column; /* テキスト縦並び */
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 95%;
    max-width: 900px;
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }

  /* テキスト */
  .area-bridge-text h2 {
    margin: 0;
    font-size: 1.6rem;
    color: #023e8a;
    font-weight: 700;
  }

  .area-bridge-text p {
    margin: 0;
    line-height: 1.7;
    color: #034a7a;
    max-width: 800px;
  }

  /* ボタン関連削除 */
  .area-bridge-cta {
    display: none;
  }

  /* レスポンシブ対応 */
  @media (max-width: 880px) {
    .area-bridge {
      margin: 5px auto;
      padding: 3px 0;
    }

    .area-bridge-text h2 {
      margin: 5px auto; /* 上下左右すべて0にするならこれだけでOK */
      padding: 0;
      font-size: 1.1rem;
    }

    .area-bridge-text p {
      font-size: 0.95rem;
    }
  }
