@charset "utf-8";

/* fireShopMapPageHtml.css */
/* 煙火店マップページ専用 */

/* SNS共有ボタン
-------------------------------------------------- */
.sns-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.sns-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.sns-btn:hover {
  opacity: 0.85;
}

.sns-btn i {
  font-size: 16px;
}

.twitter  { background-color: #1da1f2; }
.facebook { background-color: #4267b2; }
.line     { background-color: #00c300; }

/* 注記
-------------------------------------------------- */
.credit-note {
  font-size: 0.75em;
  color: #666;
  text-align: right;
  margin-top: 0.5em;
  line-height: 1.5;
}

/* FAQ
-------------------------------------------------- */
.faq-section {
  background: #fff;
  border-radius: 6px;
  padding: 2em;
  max-width: 800px;
  margin: 2em auto;
}

.faq-section h2 {
  font-size: 1.4em;
  color: #fff;
  background: #e65348;
  padding: 0.7em 1em;
  border-radius: 6px;
}

.faq-item {
  margin-top: 2em;
  padding: 1em 1.2em;
  background: #fefefe;
  border-left: 4px solid #e65348;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.faq-question {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.6em;
  color: #222;
}

.faq-answer {
  font-size: 1em;
  color: #444;
  line-height: 1.7;
  margin-left: 0.2em;
}

/* イベントカード
-------------------------------------------------- */
.event-card {
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  font-family: Arial, sans-serif;
}

.event-card h3 {
  font-size: 16px;
  margin: 0 0 5px;
}

.event-card p {
  margin: 2px 0;
  font-size: 14px;
}

#searchBtn {
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 16px;
}

/* ページ全体の横はみ出し防止
-------------------------------------------------- */
html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* 地図
-------------------------------------------------- */
#hanabiMap {
  width: 100%;
  height: 50vh;
  max-height: 500px;
  touch-action: none;
}

/* 見出し補助
-------------------------------------------------- */
#main h2 span {
  font-size: 0.9em;
}

/* カスタムマーカー
-------------------------------------------------- */
.custom-marker {
  position: relative;
  width: 120px;
  height: 96px;
  max-width: none;
  word-break: break-word;
}

.marker-label {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  width: 120px;
  max-width: 120px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  z-index: 2;
  pointer-events: none;
}

.marker-date {
  font-weight: bold;
  color: #d63384;
  font-size: 11px;
  margin-bottom: 2px;
}

.marker-title {
  color: #333;
  font-size: 11px;
}

.marker-icon {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  z-index: 1;
}

.hanabi-div-icon {
  background: transparent !important;
  border: 0 !important;
}

/* 地図ラベル表示切替
-------------------------------------------------- */
.hanabi-map-wrap {
  position: relative;
  margin-top: 12px;
}

.map-label-toggle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: inline-block;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #222;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.map-label-toggle-btn:hover {
  background: #f7f7f7;
  opacity: 1;
}

.map-tap-note {
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

#hanabiMap.labels-hidden .marker-label {
  visibility: hidden;
  opacity: 0;
}

/* スマホ調整
-------------------------------------------------- */
@media screen and (max-width: 768px) {
  #hanabiMap {
    height: 46vh;
  }

  .custom-marker {
    width: 110px;
    height: 90px;
  }

  .marker-label {
    width: 110px;
    max-width: 110px;
    bottom: 40px;
    font-size: 10px;
  }

  .marker-date,
  .marker-title {
    font-size: 10px;
  }

  .marker-icon {
    width: 36px;
    height: 36px;
  }
}

@media screen and (max-width: 480px) {
  #hanabiMap {
    height: 42vh;
  }

  .custom-marker {
    width: 96px;
    height: 82px;
  }

  .marker-label {
    width: 96px;
    max-width: 96px;
    bottom: 36px;
    padding: 3px 5px;
    font-size: 9px;
  }

  .marker-date,
  .marker-title {
    font-size: 9px;
  }

  .marker-icon {
    width: 32px;
    height: 32px;
  }

  .map-label-toggle-btn {
    top: 8px;
    right: 8px;
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* =========================================
   煙火店一覧テーブル
   ========================================= */

#my-table1 {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #ddd;
  margin-top: 12px;
  font-size: 15px;
  table-layout: auto;
}

#my-table1 thead th {
  padding: 12px 10px;
  border-bottom: 2px solid #ddd;
  background: #f7f7f7;
  color: #333;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  font-size: 13px;
}

#my-table1 tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: middle;
  text-align: center;
  line-height: 1.5;
  word-break: break-word;
}

#my-table1 tbody tr:nth-child(even) {
  background: #fcfcfc;
}

#my-table1 tbody tr:hover {
  background: #fff8f8;
}

/* 列幅 */
#my-table1 th[data-id="base"],
#my-table1 td:nth-child(1) {
  width: 13%;
  text-align: left;
  white-space: nowrap;
}

#my-table1 th[data-id="name"],
#my-table1 td:nth-child(2) {
  width: 34%;
  text-align: left;
}

#my-table1 th[data-id="facebook"],
#my-table1 td:nth-child(3),
#my-table1 th[data-id="instagram"],
#my-table1 td:nth-child(4),
#my-table1 th[data-id="twitter"],
#my-table1 td:nth-child(5),
#my-table1 th[data-id="other"],
#my-table1 td:nth-child(6),
#my-table1 th[data-id="photo"],
#my-table1 td:nth-child(7) {
  width: 8%;
  min-width: 68px;
}

/* 店名リンク */
#my-table1 td:nth-child(2) a {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#my-table1 td:nth-child(2) a:hover {
  color: #d95f67;
}

/* SNS丸印リンク */
#my-table1 td:nth-child(3) a,
#my-table1 td:nth-child(4) a,
#my-table1 td:nth-child(5) a,
#my-table1 td:nth-child(6) a,
#my-table1 td:nth-child(7) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #444;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

#my-table1 td:nth-child(3) a:hover,
#my-table1 td:nth-child(4) a:hover,
#my-table1 td:nth-child(5) a:hover,
#my-table1 td:nth-child(6) a:hover,
#my-table1 td:nth-child(7) a:hover {
  opacity: 0.85;
}

/* テーブルを横スクロール可能にする */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
}

@media screen and (min-width: 901px) {
  #my-table1 {
    font-size: 16px;
  }

  #my-table1 thead th,
  #my-table1 tbody td {
    padding: 14px 12px;
  }
}

@media screen and (max-width: 900px) {
  #my-table1 {
    font-size: 14px;
  }

  #my-table1 thead th {
    font-size: 12px;
  }

  #my-table1 th[data-id="base"],
  #my-table1 td:nth-child(1) {
    width: 14%;
  }

  #my-table1 th[data-id="name"],
  #my-table1 td:nth-child(2) {
    width: 30%;
  }

  #my-table1 th[data-id="facebook"],
  #my-table1 td:nth-child(3),
  #my-table1 th[data-id="instagram"],
  #my-table1 td:nth-child(4),
  #my-table1 th[data-id="twitter"],
  #my-table1 td:nth-child(5),
  #my-table1 th[data-id="other"],
  #my-table1 td:nth-child(6),
  #my-table1 th[data-id="photo"],
  #my-table1 td:nth-child(7) {
    min-width: 62px;
  }

  #my-table1 thead th,
  #my-table1 tbody td {
    padding: 10px 8px;
  }
}

@media screen and (max-width: 680px) {
  #my-table1 {
    min-width: 760px;
    font-size: 13px;
  }

  #my-table1 thead th {
    white-space: nowrap;
  }

  #my-table1 td:nth-child(2) {
    white-space: normal;
  }
}

/* テーブルを横スクロール可能にする */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
}

.marker-icon-logo {
  background: #fff;
  border-radius: 50%;
  object-fit: contain;
  padding: 3px;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.marker-icon-logo-square {
  border-radius: 10px;
}

@media screen and (max-width: 768px) {
  .marker-icon-logo {
    padding: 3px;
  }
}

@media screen and (max-width: 480px) {
  .marker-icon-logo {
    padding: 2px;
  }
}

/* =========================================
   煙火店一覧 スマホカード化
   ========================================= */

.fire-shop-table-wrap {
  display: block;
}

.fire-shop-card-list {
  display: none;
  margin-top: 12px;
}

.fire-shop-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.fire-shop-card__main {
  display: block;
}

.fire-shop-card__head {
  margin-bottom: 10px;
}

.fire-shop-card__pref {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #777;
  font-weight: bold;
}

.fire-shop-card__name {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #222;
  font-weight: bold;
}

.fire-shop-card__name a {
  color: #222;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.fire-shop-card__name a:hover {
  color: #d95f67;
}

.fire-shop-card__logo {
  display: none;
}

.fire-shop-card__logo.is-square {
  border-radius: 14px;
}

.fire-shop-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.shop-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 9999px;
  background: #444;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1;
  box-sizing: border-box;
}

.shop-card-link:hover {
  opacity: 0.85;
}

.shop-card-link svg {
  width: 20px;
  height: 20px;
  display: block;
}

.shop-card-link.is-facebook {
  background: #1877f2;
}

.shop-card-link.is-instagram {
  background: #e1306c;
}

.shop-card-link.is-x {
  background: #000;
}

.shop-card-link.is-other {
  background: #666;
}

.shop-card-link.is-photo {
  background: #d95f67;
}

.shop-card-empty {
  display: inline-block;
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

@media screen and (max-width: 680px) {
  .fire-shop-table-wrap {
    display: none;
  }

  .fire-shop-card-list {
    display: block;
  }

  .fire-shop-card {
    padding: 14px 12px 12px;
    border-radius: 10px;
  }

  .fire-shop-card__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
  }

  .fire-shop-card__head {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }

  .fire-shop-card__pref {
    font-size: 12px;
  }

  .fire-shop-card__name {
    font-size: 17px;
    line-height: 1.5;
  }

  .fire-shop-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    min-width: 84px;
    height: 84px;
    border-radius: 9999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    box-sizing: border-box;
  }

  .fire-shop-card__logo.is-square {
    border-radius: 14px;
  }

  .fire-shop-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    box-sizing: border-box;
    display: block;
  }

  .shop-card-link {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .shop-card-link svg {
    width: 19px;
    height: 19px;
  }
}

@media screen and (max-width: 680px) {
  #main .fire-shop-card__name {
    border: none;
    padding: 0;
    margin: 0;
    clear: none;
    background: transparent;
  }
}