/* =========================================================
   フッター全体：背景をプライマリカラー、文字を白
   ========================================================= */
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;
}

/* =========================================================
   会社情報カラム（左）
   ========================================================= */
.asc-footer-company {
  font-size: 13px;
  line-height: 1.8;
}

/* ロゴ */
.asc-footer-company__logo {
  margin: 0 0 12px;
}

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

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

/* ボタンエリア */
.asc-footer-company__actions {
  margin: 14px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================================
   シンプル枠線ボタン（白枠 × 白文字 × FA矢印）
   ========================================================= */

.asc-simple-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  /* ← テキストを中央に配置 */
  align-items: center;
  width: 220px;
  /* ★ ボタン幅を統一（必要なら変更OK） */
  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;
}

/* =========================================================
   モバイル：フッターのボタンを横幅100%にする
   ========================================================= */
@media (max-width: 768px) {
  .asc-footer-company__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .asc-simple-btn {
    width: 100% !important;   /* ← 画面幅いっぱい */
    justify-content: center;  /* ← テキスト中央（崩れ防止） */
    padding-right: 40px;      /* ← 右のアイコン分の余白確保 */
  }

  .asc-simple-btn i {
    right: 16px;              /* ← 右の矢印位置を調整 */
  }
}


/* Google マップ */
.asc-footer-company__map {
  margin-top: 10px;
}

.asc-footer-company__map iframe,
.asc-footer-company__map img {
  display: block;
  width: 100%;
  max-width: 530px;
  height: auto;
  border: 0;
}

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

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

/* 各カラム：左端のズレを完全消す */
.asc-footer-sitemap__col {
  flex: 1 1 190px;
  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;
  }
}