@charset "utf-8";

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

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.custom-marker {
    max-width: 80vw;
    word-break: break-word;
}

.marker-label {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 4px 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  max-width: 120px; /* ← 増やすと長く表示される */
  text-align: left;
  white-space: normal; /* ← 折り返しを許可 */
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word; /* ← 英数字も途中で折り返し可 */
  line-height: 1.3;
}

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

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

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


/* カード */
.sns-section{
  margin:1.5rem 0;
  padding:1rem;                 /* ← この padding が狭く見える原因 */
  border:1px solid #eee;
  border-radius:12px;
  background:#fff;
}

/* 見出し：親paddingを打ち消してフル幅に（full-bleed） */
.sns-heading{
  background:#d85656; color:#fff;
  border-radius:8px;
  padding:.75rem 1rem;
  margin: -1rem -1rem 1rem;     /* ← ここがポイント */
  display:block; width:100%; box-sizing:border-box;
}

/* 左の縦バーは文字ではなく疑似要素で固定幅に */
.sns-heading::before{
  content:""; display:inline-block;
  width:6px; height:1.2em; background:#fff;
  border-radius:999px; margin-right:.75rem; vertical-align:middle;
}
.sns-lead{margin:0 0 .75rem;color:#666;font-size:.95rem}
.sns-links{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:12px;
}
.sns-links > li{ margin:0; padding:0; border:0; background:transparent; }
.sns-links > li > a{ display:block; width:100%; padding:.85rem 1rem; border:1px solid #e5e7eb; border-radius:12px; }

/* =========================================
   観覧マップ上部のX導線
   ========================================= */
.activity-profile-actions {
  margin: 10px 0 14px;
}

.activity-x-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.activity-x-btn:hover {
  opacity: 0.88;
  text-decoration: none;
  color: #fff;
}

.activity-x-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fff;
}

.activity-x-svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.activity-x-btn-text {
  display: inline-block;
}

@media screen and (max-width: 600px) {
  .activity-x-btn {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
}

/* =========================================
   観覧予定／観覧履歴 一覧
   ========================================= */
.activity-history-list {
  margin: 0 0 24px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3ddd2;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow-x: auto;
}

.activity-history-list .actTbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.activity-history-list .actTbl th {
  padding: 11px 8px;
  text-align: center;
  font-weight: 700;
  color: #5e5038;
  background: linear-gradient(#f3ecde, #e5dac3);
  border-top: 1px solid #d5c7ac;
  border-bottom: 1px solid #d5c7ac;
  border-left: 1px solid #d5c7ac;
  box-shadow: 0 1px 1px rgba(255,255,255,0.45) inset;
}

.activity-history-list .actTbl th:last-child {
  border-right: 1px solid #d5c7ac;
}

.activity-history-list .actTbl th:first-child {
  border-radius: 6px 0 0 0;
}

.activity-history-list .actTbl th:last-child {
  border-radius: 0 6px 0 0;
}

.activity-history-list .actTbl td {
  padding: 12px 10px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.5;
  border-left: 1px solid #e0d7c7;
  border-bottom: 1px solid #e0d7c7;
  background: #fff;
}

.activity-history-list .actTbl td:last-child {
  border-right: 1px solid #e0d7c7;
  text-align: left;
}

.activity-history-list .actTbl tr:nth-child(even) td {
  background: #faf8f3;
}

.activity-history-list .actTbl tr:last-child td:first-child {
  border-radius: 0 0 0 6px;
}

.activity-history-list .actTbl tr:last-child td:last-child {
  border-radius: 0 0 6px 0;
}

/* NO列は弱める */
.activity-history-list .actTbl th:first-child,
.activity-history-list .actTbl td:first-child {
  width: 56px;
  color: #888;
  font-size: 13px;
  white-space: nowrap;
}

/* 日付列 */
.activity-history-list .actTbl th:nth-child(2),
.activity-history-list .actTbl td:nth-child(2) {
  white-space: nowrap;
}

/* 都道府県列：潰さない */
.activity-history-list .actTbl th:nth-child(3),
.activity-history-list .actTbl td:nth-child(3) {
  white-space: nowrap;
  width: 1%;
}

/* セル内labelの余計な癖を抑える */
.activity-history-list .actTbl td label,
.activity-history-list .actTbl th label {
  display: inline;
  margin: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
}

/* 花火名リンクを主役に */
.activity-history-list .actTbl td:last-child a {
  color: #333;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.activity-history-list .actTbl td:last-child a:hover {
  color: #d85656;
}

/* 長い花火名対策 */
.activity-history-list .actTbl td:last-child,
.activity-history-list .actTbl td:last-child label {
  word-break: break-word;
}

/* スマホ */
@media screen and (max-width: 600px) {
  .activity-history-list {
    padding: 8px;
  }

  .activity-history-list .actTbl th,
  .activity-history-list .actTbl td {
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 6px;
  }

  .activity-history-list .actTbl th:first-child,
  .activity-history-list .actTbl td:first-child {
    width: 42px;
  }
}

@media screen and (max-width: 480px) {
  .activity-history-list .actTbl th,
  .activity-history-list .actTbl td {
    font-size: 11px;
    padding: 7px 5px;
  }
}