
/*//赤枠用レイアウト//*/
.alert-card {
  max-width: 600px;
  width: 90%;
  margin: 1.2rem auto;
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  background-color: #fff;
}

.alert-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 12px 12px 0 0;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.alert-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}

.alert-button {
  text-align: center;
  margin-top: 1.2rem;
}

.alert-button a {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #d32f2f;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.alert-button a:hover {
  background-color: #b71c1c;
}

/*//ヘッダーボタン//*/

.header {
  padding: 1.0rem 0 0.5rem 0; /* 下方向の余白を増やす方法 */
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4列 */
  gap: 0.4rem 0.6rem; /* 横と縦の隙間をさらに縮小 */
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 700px; /* 全体幅を強めに制限 */
}

.button-grid li {
  list-style: none;
}

.button-grid a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  width: 100%;             /* カラム幅にフィット */
  height: 65px;            /* 固定高さ */
  border: 2px solid #333;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1.3;
  box-sizing: border-box;
  word-break: keep-all;
}

.button-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* スマホ縦 */
@media (max-width: 600px) and (orientation: portrait) {
  .button-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    max-width: 90vw;
  }

  .button-grid a {
    height: 60px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
}

/* スマホ横 */
@media (max-width: 1000px) and (orientation: landscape) {
  .button-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    max-width: 100vw;
  }

  .button-grid a {
    font-size: 0.88rem;
    height: 60px;
  }
}



/*//ナビボタン3種TOPHOMETEL//*/


.fixed-buttons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 40px;
  font-size: 0.9rem;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  box-shadow: var(--fixed-btn-shadow, 0 4px 10px rgba(0, 0, 0, 0.2));
}

.fixed-buttons span:hover {
  transform: translateY(-2px);
}

/*//ナビボタンの背景帯//*/
/* ナビボタン全体の外枠 */
.fixed-nav-container {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none; /* 子要素だけにクリックを通す */
}

/* 背景の帯 */
.fixed-nav-bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.4); /* 半透明 */
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;  /* 背景だけクリック無効 */
}

/* 実際のボタン配置 */

/*//!ナビボタン帯のスタイル再定義!//*/
.fixed-nav-container {
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.fixed-nav-bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* ボタン配置の修正 */
/* ✅ 通常：PC・タブレット → 右下に縦配置 */
.fixed-buttons {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: auto;
}

/* ✅ スマホだけ：中央下に横並び */
@media (max-width: 768px) and (max-height: 1024px) and (orientation: portrait) {
  .fixed-buttons {
    bottom: 0.5rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 1rem;
  }
}

/* ✅ ナビボタン背景：PCや横長画面では消す */
@media (min-aspect-ratio: 4/3) {
  .fixed-nav-bg {
    display: none;
  }
}

/*//フッター調整用CSS//*/
/* ページ全体を縦に伸ばす */
html, body {
  height: 100%;
}

/* メインラッパー */
body {
  display: flex;
  flex-direction: column;
}

/* ヘッダー・メイン・フッター */
#header-area {
  flex-shrink: 0;
}

main {
  flex-grow: 1; /* これで中央部分が画面いっぱいに伸びる */
}

#footer-area {
  flex-shrink: 0;
}

/*//店舗カード//*/
/* === layout.css に入れるべきスタイル === */
.shop-card {
  background-color: var(--color-shop-bg);
  border: 2px solid var(--color-shop-border);
  border-radius: 12px;
  padding: 0.4rem;/*カード上下太さ*/
  margin-bottom: 0.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-family: var(--font-main, "M PLUS Rounded 1c", sans-serif);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;/*カード間すきま*/
}

.shop-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-text-main);
}

.shop-icons {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-shrink: 0; /* アイコンが縮まないように */
}


.shop-icons img {
  width: 24px;
  height: 24px;
}

.shop-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.shop-row strong {
  width: 5rem;
  display: inline-block;
  color: var(--color-text-bold);
}

.shop-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.shop-buttons img {
  width: 64px;
  height: 64px;
}

/* スマホでは左寄せ */
.shop-name {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-text-main, #333);
  margin-bottom: 0;
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PCでは中央寄せ */
@media (min-width: 768px) {
  .shop-summary {
    position: relative;
  }

  .shop-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
  }
}





/*//店舗カード展開アニメーション//*/
.toggle-header {
  cursor: pointer;
  font-weight: bold;
  background-color: #f0f0f0;
  padding: 0.5em;
  border-radius: 8px;
}

.toggle-body {
  margin-top: 0.5em;
  padding-left: 1em;
}

/*//店舗カード店舗名右端アイコン郡制御//*/
.shop-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ECE3D0;
  padding: 0.6em 1em;
  border-radius: 10px;
}



.shop-icons {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-left: auto;
}

.detail-button {
  width: 50px !important;
  height: 50px !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}



/*//加盟店分類ボタン整列//*/
/* カテゴリアイコンの親要素 */
.category-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  justify-content: center;
  grid-template-columns: repeat(2, 1fr); /* スマホ：2列 */
}

/* それぞれのカテゴリボタン */
.category-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 1rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
}
.category-button img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}

.category-title {
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #0b3c91; /* お好みでカラー調整（例: 濃い青） */
  border-bottom: 2px solid #0b3c91;
  padding-bottom: 0.3em;
  margin: 1.2em 0 0.6em;
}

/* タブレット以上（横ワイド）では4列に */
@media (min-width: 700px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 店舗カテゴリアイコン配置制御 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/*//スマホ表示不具合の解消//*/
/* 📌 デフォルトでは背景帯を非表示にする */
.fixed-nav-bg {
  display: none;
}

/* --- スマホ縦画面：下中央に帯＋ボタン --- */
@media (max-width: 600px) and (orientation: portrait) {
  .fixed-nav-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    display: flex;
    z-index: 9999;
  }

  .fixed-nav-bg {
    display: block;
  }

  .fixed-buttons {
    flex-direction: row;
    padding: 0.5rem 0;
    gap: 0.8rem;
  }
}

/* --- PC・タブレット：右下に表示（帯なし） --- */
@media (min-width: 601px), (orientation: landscape) {
  .fixed-nav-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    width: auto;
    z-index: 9999;
  }

  .fixed-nav-bg {
    display: none;
  }

  .fixed-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/*//トップページ常設チラシorigin-window-notice//*/
.pdf-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pdf-section img {
  max-width: 95%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.alert-title {/*チラシボックスタイトル中央揃えに*/
  justify-content: center;  /* ← これが中央揃えのキモ */
  text-align: center;       /* ← テキスト自体も中央揃えに */
  padding-top: 0.8rem; /*文字上下幅整理*/
  padding-bottom: 0.5rem; /*文字上下幅整理*/
}

.alert-body {/*チラシボックス本文中央揃え*/
  text-align: center;
}

.pdf-section img {/*チラシボックス内画像中央揃え*/
  display: block;
  margin: 0 auto;
}

/*//お知らせ//*/
.news-card {
  padding: 1em;
  margin: 1em 0;
  border-radius: 10px;
  box-shadow: 2px 2px 5px #ccc;  /* ※装飾感あるが構造的にも影響大のため layout 側でOK */
  cursor: pointer;
  overflow: visible;
}


/*お知らせカード展開ギミック*/
.news-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding-top: 0.5em;
}

.news-detail.open {
  max-height: 1000px; /* 大きめにしておく。JSでnoneに切り替わるのでOK */
}

/*//店舗カードアイコン//*/
.icon-badge {
  font-size: 1.2em;
  margin-right: 0.5em;
}

/*//店舗ポイント商品券フィルターボタン装飾//*/
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 1.2em;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #b388eb); /* 藤×ピンクグラデ */
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-button:hover,
.filter-button:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 押下状態 */
.filter-button.active {
  background: linear-gradient(135deg, #6a1b9a); /* 濃い紫×濃ピンク */
  color: #fff;
}

#filter-buttons {
  display: flex;
  justify-content: center;    /* 中央揃え */
  align-items: center;
  flex-wrap: wrap;            /* 折り返し */
  gap: 1rem;                  /* ボタン間の隙間 */
  margin: 1.2rem auto;        /* 上下に余白 + 中央揃え */
  max-width: 100%;
  text-align: center;
}

/*//検索ウィンドウ//*/
#searchInput {
  padding: 16px;
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  border: 2px solid #aaa;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/*//項目タイトル装飾//*/
.section-heading {
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  border-bottom: 2px solid var(--section-heading-color);
  padding-bottom: 0.3em;
  margin: 1.2em 0 0.6em;
}

/* ニュースカード共通調整 */
.news-card,
.important-news-card {
  max-width: 600px; /* ここで最大幅を指定 */
  margin: 1rem auto; /* 中央寄せ */
  width: 90%;        /* モバイル時にはやや余白を持たせる */
  box-sizing: border-box;
}

.news-heading {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 601px) {
  .shop-detail {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
  }
}

/*//カテゴリボタン整頓//*/
/* ====== カテゴリグリッド全体 ====== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* ====== 各カテゴリボタン ====== */
.category-button {
  width: 100%;
  max-width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: #f48fb1;
  color: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.category-button:hover {
  transform: translateY(-4px);
}

.category-button img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}

/*--//スマホ画面でのカテゴリボタン2列強制//*/
/* ====== スマホ（600px以下）：2列固定、パディング調整 ====== */
@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 0.5rem;
  }
}

/*--/店舗カードの幅修正/--*/
/* スマホは現状のまま、ワイド画面ではカード幅を制限 */
@media screen and (min-width: 768px) {
  #shop-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .shop-category-section {
    width: 100%;
    max-width: 1000px;
  }

  .shop-card {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px auto; /* 中央寄せ + 下マージン */
  }
}

/*//利用規約ボタン//*/
/* リンクボタンのレイアウト・構造 */
.tokutei-button-wrapper {
  text-align: center;
  margin: 2em 0;
}

.tokutei-button {
  display: inline-block;
  font-size: 1.1em;
  font-weight: bold;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'M PLUS Rounded 1c', 'ヒラギノ丸ゴ ProN', 'Yu Gothic', 'メイリオ', serif;
}

.tokutei-button:hover {
  transform: translateY(-2px);
}

/*--挿入画像--*/
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 画面幅が900px以上（ワイド）のときは最大幅を800pxに制限 */
@media (min-width: 900px) {
  img {
    max-width: 800px;
    margin: 0 auto;
  }
}

/*//--スピーチバブル--//*/
.speech-bubble {
  position: relative;
  background: #fff;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 10px 16px;
  width: 260px;
  height: 48px;               /* ← 高さを固定 */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #000;
  font-family: "M PLUS Rounded 1c", sans-serif;
  overflow: hidden;           /* 文字が伸びてもはみ出さない */
  text-align: center;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 30px;
  border: 10px solid transparent;
  border-top-color: #fff;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -23px;
  left: 29px;
  border: 11px solid transparent;
  border-top-color: #000;
}

.typing-text {
  display: inline-block;
  white-space: nowrap;
}

.text-placeholder {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

/*--/お知らせ内の画像チラシに関して/--*/
.news-image {
  max-width: 90%;
  margin-top: 10px;
  border-radius: 8px;
}

.pdf-link {
  display: inline-block;
  margin-top: 8px;
  color: #3366cc;
  text-decoration: underline;
  font-weight: bold;
}

/*--/店舗カードの地図・電話アイコン/--*/


.shop-detail-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.shop-detail-left {
  flex: 1;
}

.shop-detail-icons {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ← center から変更 */
  gap: 12px;
  margin-left: 8px;
}

.icon-link-image {
  width: 60px;
  height: 60px;
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.icon-link-image:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.shop-detail-icons {
  transform: translateX(-10px); /* ← 左へ6pxずらす */
}

@media screen and (min-width: 768px) {
  .shop-detail-icons {
    margin-left: 32px; /* ← テキストとの間に余白を作る */
  }
}

/*--//リンク//--*/
.shop-card-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.shop-card {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 16px 20px;
  background-color: #f9f9f9;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.shop-card:hover {
  transform: scale(1.02);
  background-color: #e6f0ff;
}

.shop-card a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.1em;
  display: block;
}

/*--/店舗アイコン用バッジ/--*/


.icon-badge-image {
  width: 60px;       /* ← サイズアップ */
  height: auto;
  display: inline-block;
  border-radius: 6px;  /* オプション：角丸にする */
  box-shadow: 0 0 2px rgba(0,0,0,0.2);  /* オプション：影で視認性UP */
}

.shop-icons img.icon-badge-image {
  width: 60px !important;
  height: auto !important;
}

.icon-badge {
  display: flex;
  flex-direction: column;  /* ← ここがポイント：縦に並べる */
  align-items: center;
  gap: 4px;                /* 上下の間隔 */
  margin-left: 8px;
}

.shop-icons {
  display: flex;
  flex-direction: row;     /* ボタンとアイコンは横並びのまま */
  align-items: center;
  gap: 0.5rem;
}

.filter-icon {
  width: 32px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
}

/*-/ここにお知らせページのレイアウト/-*/
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}

.page-button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
}

.page-button.active {
  background-color: #333;
  color: white;
}

/*--//ホバー//--*/
.pdf-section img:hover {
transform: scale(1.05);
transition: transform 0.3s ease;
cursor: pointer;}