/* =========================================================
   フッター全体：背景をプライマリカラー、文字を白
   ========================================================= */
footer.site-footer,
#footer {
  background: var(--vk-color-primary, #c9333e) !important;
  color: #fff !important;
}

/* フッター内部のテキストすべて白 */
footer.site-footer *,
#footer * {
  color: #fff !important;
}

/* リンクも白 */
footer.site-footer a,
#footer a {
  color: #fff !important;
  text-decoration: none;
}

footer.site-footer a:hover,
#footer a:hover {
  opacity: 0.8;
}

/* 「お問い合わせボタン」の文字色だけ白支配から救済して赤に戻す */
footer.site-footer .asc-footer-btn--contact,
#footer .asc-footer-btn--contact {
  color: var(--vk-color-primary, #c9333e) !important;
  border-color: var(--vk-color-primary, #c9333e) !important;
}

/* =========================================================
   フッター内部コンテナ幅：ページの 90%
   ========================================================= */
footer.site-footer .container,
footer.site-footer .vk-container,
#footer .container,
#footer .vk-container {
  width: 90% !important;
  max-width: 1700px !important;
  /* 広すぎ防止 */
  margin: 0 auto !important;
  padding: 20px 0;
}

/* =========================================================
   共通：フッター内カラムの上部余白を揃える
   （会社情報カラム・サイトマップカラム・カレンダー）
   ========================================================= */
.asc-footer-company,
.asc-footer-sitemap,
.asc-footer-calendar {
  padding-top: 32px;
}

/* =========================================================
   フッター：店舗情報（ロゴ → 店舗2件 → ボタン）
   ========================================================= */
.asc-footer-company {
  font-size: 13px;
  line-height: 1.8;
}

/* =========================================================
   ロゴ（共通：最上部）
   ========================================================= */
.asc-footer-company__logo {
  margin: 0 0 14px;
}

.asc-footer-company__logo img {
  display: block;
  max-width: 260px;
  height: auto;
}

@media (max-width: 600px) {

  /* フッターロゴを中央寄せ */
  .asc-footer-company__logo {
    text-align: center;
  }

  .asc-footer-company__logo img {
    margin: 0 auto;   /* 画像自体を中央に */
  }
}

/* =========================================================
   店ブロック（店舗一覧）
   ========================================================= */
.asc-footer-company__stores {
  display: flex;
  flex-direction: column;
  gap: 16px; /* 店舗間の余白 */
}

/* 各店舗：左=情報 / 右=地図 */
.asc-footer-company__store {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;           /* 幅が足りない場合は地図が下へ */
}

/* 店舗情報 */
.asc-footer-company__info {
  flex: 1 1 260px;
  min-width: 240px;
}

/* 店名 */
.asc-footer-company__name {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* テキスト行 */
.asc-footer-company__addr,
.asc-footer-company__tel,
.asc-footer-company__time {
  margin: 0 0 4px;
}

/* 地図（小さめ） */
.asc-footer-company__map {
  flex: 0 0 260px;          /* ← 小さめに固定 */
  max-width: 260px;
  margin-top: 2px;
}

.asc-footer-company__map iframe {
  display: block;
  width: 100%;
  height: 140px;            /* ← 小さめ */
  border: 0;
}

/* タブレット以下：地図を下へ（店舗ごと） */
@media (max-width: 980px) {
  .asc-footer-company__map {
    flex: 1 1 100%;
    max-width: 100%;
    margin-top: 10px;
  }
  .asc-footer-company__map iframe {
    height: 170px;
  }
}

/* =========================================================
   ボタン（共通：店ブロックの下）
   ========================================================= */
.asc-footer-company__actions{
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* =========================================================
   シンプル枠線ボタン（白枠 × 白文字 × FA矢印）
   ========================================================= */
.asc-simple-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  border: 1px solid #fff;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.asc-simple-btn i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  line-height: 1;
}

.asc-simple-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* =========================================================
   モバイル：1列 + 既存の見た目調整は維持
   ========================================================= */
@media (max-width: 768px) {
  .asc-footer-company__actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .asc-footer-company__actions .asc-simple-btn {
    width: 100% !important;      /* なくても動くが保険で残してOK */
    justify-content: center;
    padding-right: 40px;
  }

  .asc-footer-company__actions .asc-simple-btn i {
    right: 16px;
  }
}


/* =========================================================
   フッター：サイトマップ（3カラム）
   ========================================================= */
.asc-footer-sitemap {
  padding-left: 10px;
  padding-right: 10px;
}

/* 3カラムレイアウト（PC） */
.asc-footer-sitemap__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px; /* 横gapを40→24に（任意） */
}

/* 各カラム：左端のズレを完全消す */
.asc-footer-sitemap__col {
  flex: 0 0 calc(50% - 20px);  /* 2列固定 */
  max-width: calc(50% - 20px);
  min-width: 0;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Lightning の h3 に入っている after 下線を打ち消す */
.asc-footer-sitemap__title::after {
  content: none !important;
  display: none !important;
}

/* タイトル本体 */
.asc-footer-sitemap__title {
  position: relative;
  display: block;
  margin: 0 0 8px;
  padding: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding-left: 0 !important;
  margin-left: 0 !様;
  border: none;
}

/* 固定長の下線（全タイトルで同じ長さ） */
.asc-footer-sitemap__title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 180px;
  /* ← 下線の長さ。必要ならここだけ変えればOK */
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

/* リスト */
.asc-footer-sitemap__list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.asc-footer-sitemap__list li {
  margin: 3px 0;
  line-height: 1.6;
}

.asc-footer-sitemap__list li a {
  text-decoration: none;
  color: #fff !important;
  opacity: 0.9;
}

.asc-footer-sitemap__list li a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =========================================================
   モバイル調整
   ========================================================= */
@media (max-width: 768px) {

  footer.site-footer .container,
  #footer .container {
    width: 94% !important;
    padding: 0 10px;
  }

  .asc-footer-company {
    font-size: 14px;
    line-height: 1.7;
  }

  .asc-footer-company__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .asc-footer-btn {
    width: 100%;
  }

  .asc-footer-company__map iframe,
  .asc-footer-company__map img {
    max-width: 100%;
  }

  .asc-footer-sitemap__cols {
    flex-direction: column;
    gap: 12px;
  }

  .asc-footer-sitemap__title {
    font-size: 15px;
  }

  .asc-footer-sitemap__list li a {
    font-size: 14px;
  }
}

/* =========================================================
   フッター：ミニカレンダー（ショートコード用）
   ========================================================= */

/* カレンダー全体をラップ */
.asc-footer-calendar {
  /* 上は company/sitemap と共通で 32px */
  padding-bottom: 8px;
  color: #fff;
  font-size: 13px;
}

/* WordPress 標準カレンダーの table */
.asc-footer-calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
  color: #fff;
}

/* 見出し（caption） */
.asc-footer-calendar caption {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: #fff;
}

/* 曜日行 */
.asc-footer-calendar th {
  padding: 6px 0;
  opacity: 0.85;
  font-weight: 600;
}

/* 日付セル（高さは中身に任せる） */
.asc-footer-calendar td {
  padding: 6px 0;
  color: #fff;
  box-sizing: border-box;
}

/* 今日 */
.asc-footer-calendar td#today {
  background: rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

/* 休刊日セル -------------------------------------------------- */
.asc-footer-calendar td.holiday {
  position: relative;
  padding: 6px 0;
  background: transparent;
  color: #fff;
  box-sizing: border-box;
}

/* 数字本体（色だけ変える） */
.asc-footer-calendar td.holiday .holiday-day {
  position: relative;
  z-index: 1;
  color: var(--vk-color-primary, #c62828) !important;
  /* 赤文字 */
  font-weight: 700;
}

/* 円は疑似要素で描く：サイズを変えても列幅に影響しない */
.asc-footer-calendar td.holiday::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  /* ← 円の大きさ（ここを大きく/小さく調整） */
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  z-index: 0;
}

/* カレンダー下のメッセージ（当月の休刊日） -------------------- */
.asc-footer-calendar .holiday-message {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
}

.asc-footer-calendar .holiday-message i {
  margin-right: 4px;
}

/* 下部注釈：夕刊休刊日の案内 ---------------------------------- */
.asc-footer-calendar .calendar-note {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.95;
  text-align: left;
}

/* 見出し行 */
.asc-footer-calendar .calendar-note__title {
  font-weight: 700;
  margin-bottom: 2px;
}

/* 本文 */
.asc-footer-calendar .calendar-note__text {
  margin: 0;
}

/* リンク色も白で統一 */
.asc-footer-calendar a {
  color: #fff !important;
  text-decoration: none;
}

.asc-footer-calendar a:hover {
  text-decoration: underline;
}

/* スマホ調整（カレンダー） ------------------------------------ */
@media (max-width: 600px) {
  .asc-footer-calendar table {
    font-size: 12px;
  }

  .asc-footer-calendar caption {
    font-size: 14px;
  }
}