/* ==========================================
       基本スタイル & レイアウト
       ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* スムーズスクロールを有効にする */
}

body {
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo,
    sans-serif;
  background: #0a1a39;
  color: #ffffff;
  min-height: 100vh;
}

header {
  background: #fff;
}

header .inner {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  padding: 0 60px;
  justify-content: space-between;
  height: 80px;
}

.logo {
  align-items: center;
  font-size: 20px;
  color: #016f30;
  display: flex;
}

.logo_icon {
  margin-right: 15px;
}

.logo .en {
  color: #000;
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.hero {
  background: url(../images/news_bg.jpg) no-repeat top center;
  background-size: contain;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  padding: 120px 0;
  margin: 0 auto;
  width: 1100px;
}

.hero-mark {
  margin: 0 50px 0 0;
  width: 450px;
}

.hero-mark img {
  width: 100%;
}

.copy {
  font-family:
    "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "遊明朝",
    "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 60px;
  letter-spacing: 0.1em;
}

.copy span {
  display: block;
}

.en-copy {
  letter-spacing: 0.3em;
}

.copy-sub {
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  margin-top: 30px;
}

.hero-wrap {
  display: flex;
  justify-content: center;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 720px;
  overflow: hidden;
}

/* 日本地図の背景（画像読み込み） */
.map-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/map-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.85;
  z-index: 1;
}

/* 左側テキストコンテンツ */
.hero-content {
  position: absolute;
  top: 60px;
  left: 0;
  z-index: 10;
}

.hero-title {
  font-size: 38px;
  font-family:
    "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "遊明朝",
    "Hiragino Mincho ProN", "MS PMincho", serif;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: #cfdcf0;
  margin-bottom: 24px;
}

.btn-wrap {
  margin: 50px 0 100px;
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  background: linear-gradient(135deg, #0f4c81, #062b50);
  border: 1px solid #f1d38e;
  color: #fff;
  justify-content: center;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 40px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 400px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1860a0, #0a3d70);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ==========================================
       店舗吹き出しピン (Popups)
       ========================================== */
.shop-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  transition:
    opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.shop-pin.active {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(0);
  pointer-events: auto;
}

.shop-pin:not(.active) {
  transform: translate(-50%, -100%) translateY(10px);
}

.shop-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.shop-card::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95) transparent transparent;
}

.carrier-logo {
  font-size: 11px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 4px;
}

.carrier-au {
  color: #e65100;
  font-style: italic;
}

.carrier-docomo {
  color: #cc0000;
  font-weight: 800;
}

.carrier-softbank {
  color: #555;
}

.shop-info {
  display: flex;
  flex-direction: column;
}

.shop-name {
  font-size: 15px;
  font-weight: bold;
  color: #111;
}

.shop-meta {
  font-size: 12px;
  color: #666;
}

.pin-point {
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  margin: 5px auto 0;
  box-shadow:
    0 0 10px #ffd700,
    0 0 15px #ffd700;
  position: relative;
}

.pin-point::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border: 1px solid #ffd700;
  border-radius: 50%;
  animation: pulse 2s infinite ease-out;
}

.shoplist {
  background: #f6f9ff;
  padding: 100px 0;
}

.shoplist-title {
  color: #02235a;
  font-family:
    "Noto Serif JP", "Shippori Mincho", "Yu Mincho", "遊明朝",
    "Hiragino Mincho ProN", "MS PMincho", serif;
  font-size: 38px;
  margin-bottom: 50px;
}

.shoplist-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.shoplist-en {
  color: #ba8c41;
  letter-spacing: 0.3em;
}

.shoplist-items {
  background: #fff;
  border-radius: 20px;
  color: #02235a;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 50px 30px;
}

.shoplist-item {
  border: 1px solid #d4e0ec;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  min-height: 70px;
}

.shoplist-filter {
  border-radius: 20px;
  color: #02235a;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 50px;
}

.shoplist-filter-item {
  cursor: pointer;
  background: #fff;
  border: 1px solid #d4e0ec;
  border-radius: 10px;
  padding: 20px;
  width: 13%;
  text-align: center;
  user-select: none;
  transition: 0.3s;
}

.shoplist-filter-item:hover {
  background: #dbe3ef;
  border-color: #dbe3ef;
  color: #02235a;
}

.shoplist-filter-active {
  border-color: #02235a;
  background: #02235a;
  color: #fff;
}

.shoplist-item.is-hidden {
  display: none !important;
}

.footer {
  background: #fff;
  padding: 40px 0;
  text-align: center;
  font-size: 12px;
}

.footer-logo {
  color: #016f30;
  font-size: 22px;
  font-weight: 900;
  border-bottom: 1px solid #dedede;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.footer .contact-info {
  color: #000;
}


@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ==========================================
   レスポンシブ対応（スマホ・タブレット向け：画面幅768px以下）
   ========================================== */
@media screen and (max-width: 768px) {

  /* 1. ヘッダーの余白調整 */
  header .inner {
    padding: 0 20px;
  }

  /* 2. ヒーローセクション上部（タイトルとマーク）の縦並び化 */
  .hero-top {
    flex-direction: column;
    width: 100%;
    padding: 60px 20px;
    text-align: center;
  }
  .hero-mark {
    margin: 30px auto 0;
    width: 280px;
  }
  .hero-container {
    display: none;
  }
  .copy {
    font-size: 36px; /* 文字サイズをスマホ向けに縮小 */
  }

  /* 3. メインビジュアル（地図）エリアのスマホ最適化 */
  .hero-container {
    height: 500px; /* スマホで見やすい高さに調整 */
    max-width: 100%;
    border-radius: 0;
  }
  .hero-content {
    position: relative;
    top: 20px;
    left: 0;
    padding: 0 20px;
    max-width: 100%;
    text-align: center;
  }
  .hero-title {
    font-size: 24px;
  }

  /* 4. 「通過店舗一覧を見る」ボタンの幅調整 */
  .btn-primary {
    width: 90%;
    max-width: 320px;
    padding: 16px 0;
    font-size: 16px;
  }

  /* 5. 店舗リストのグリッドを3列から「1列（または2列）」に変更 */
  .shoplist-container {
    padding: 0 20px;
  }
  .shoplist-items {
    grid-template-columns: 1fr; /* スマホでは1列に縦並び */
    padding: 30px 15px;
    gap: 12px;
  }
  .shoplist-title {
    font-size: 24px;
  }

  /* 6. フィルターボタンの幅とレイアウト調整 */
  .shoplist-filter {
    gap: 8px;
  }
  .shoplist-filter-item {
    padding: 8px 16px;
    font-size: 13px;
    flex-grow: 1; /* スマホでボタンが綺麗に並ぶように調整 */
    text-align: center;
  }

  /* フィルターコンテナ：タイル状に並べるため Gridレイアウトに変更 */
  .shoplist-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* スマホでは2列のタイル状に配置 */
    gap: 10px;                             /* タイル同士の隙間 */
    margin-bottom: 30px;
  }

  /* フィルターボタン（タイル）のデザイン調整 */
  .shoplist-filter-item {
    width: 100% !important;   /* グリッドの幅に合わせる */
    padding: 12px 10px;       /* 上下の押しやすさを考慮した余白 */
    font-size: 13px;          /* スマホで収まりやすい文字サイズ */
    white-space: normal;      /* 必要に応じて自然に改行させる */
    text-align: center;
    border-radius: 8px;
    box-sizing: border-box;
  }
}