/* ========================================
   トップページ専用スタイル
======================================== */

.s .top-page {
  padding-top: 68px;
}

/* ベースレイアウト */
.top-page-inner {
  width: 90%;
  margin: 30px auto;
}
.m .top-page-inner {
  width: 100%;
  margin: 12px auto;
  padding: 0 10px;
}
.s .top-page-inner {
  width: 100%;
  margin: 12px auto;
  padding: 0 8px;
}

/* ========================================
   災害情報セクション
======================================== */

/* 災害情報セクション全体 */
.disaster-info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.m .disaster-info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s .disaster-info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 災害情報ボックス */
.disaster-box {
  border-radius: 24px;
  border: 2px solid #fff;
  background-color: #ffffff99;
  padding: 20px;
  color: white;
  position: relative;
  width: 100%;
}
.s .disaster-box {
  padding: 16px 12px;
  border-radius: 16px;
}
.disaster-box-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  margin-bottom: 14px;
}
.s .disaster-box-header {
  margin-bottom: 10px;
  gap: 4px;
}
.disaster-box-header h2 {
  font-size: 26px;
  color: #222;
  text-align: center;
}
.s .disaster-box-header h2 {
  font-size: 20px;
}
.s .disaster-box--v3 .disaster-box-header h2 {
  font-size: 18px;
}
.disaster-info-link {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.disaster-info-link:focus-visible {
  outline: 2px solid #0058c0;
  outline-offset: 2px;
}
.s .disaster-info-link {
  width: 22px;
  height: 22px;
}
/* 「災害情報を知りたい」h2タイトル前アイコン */
.disaster-box h2::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 0 6px -5px 0;
}
.disaster-box--v1 h2::before {
  background: url(../../images/home-icon-03.svg) no-repeat center;
  background-size: 100% 100%;
}
.disaster-box--v2 h2::before {
  background: url(../../images/home-icon-05.svg) no-repeat center;
  background-size: 100% 100%;
}
.disaster-box--v3 h2::before {
  background: url(../../images/home-icon-06.svg) no-repeat center;
  background-size: 100% 100%;
}
.s .disaster-box--v1 h2::before {
  width: 18px;
  height: 18px;
  margin: 0 4px -2px 0;
}
/* 災害情報ボックスのグリッドレイアウト */
.disaster-box--v1 .category-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s .disaster-box--v1 .category-grid {
  gap: 10px;
}

.disaster-box--v2 .category-grid,
.disaster-box--v3 .category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.s .disaster-box--v2 .category-grid,
.s .disaster-box--v3 .category-grid {
  gap: 8px;
  display: flex;
  flex-direction: column;
}

/* ========================================
   情報グリッド
======================================== */

/* 1列グリッド（テキスト＋画像） */
.info-grid-1 {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 10px;
  align-items: end;
}

/* 2列グリッド */
.info-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.s .info-grid-2 {
  gap: 10px;
  display: flex;
  flex-direction: column;
}
.category-grid .info-grid-2 {
  margin-top: auto;
}

/* ========================================
   カテゴリーカード
======================================== */

/* カードベーススタイル */
.category-card {
  --category-card-border: #294ea5;
  background: white;
  border: 6px solid var(--category-card-border);
  border-radius: 16px;
  text-decoration: none;
  color: #1f2937;
  transition: all 0.3s;
  backface-visibility: hidden;
  will-change: transform;
  box-shadow: 4px 4px 10px #00648042;
  cursor: pointer;
}
.s .category-card {
  border-radius: 14px;
  border: 5px solid var(--category-card-border);
}
.category-card:hover {
  transform: scale(1.03) translateZ(0);
  box-shadow: 4px 4px 10px #00648042;
}
/* グリッド内でカード高さを揃える（翻訳で文言が伸びても崩れにくくする） */
/* .info-grid-2 .category-card,
.disaster-box--v2 .category-grid .category-card,
.disaster-box--v3 .category-grid .category-card {
  height: 100%;
} */

/* 内部リンク(a)をカード全体に広げ、縦方向のレイアウト制御を可能にする */
.category-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* クリック領域内で本文を伸縮させ、主要コンテンツを下寄せにする */
.category-card > a .category-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.category-card > a .category-card-body > .info-grid-1 {
  margin-top: auto;
}

/* カードバージョン */
.category-card--v2 {
  --category-card-border: #0c72be;
  border: 6px solid var(--category-card-border);
}
.s .category-card--v2 {
  border: 5px solid var(--category-card-border);
}
.category-card--v2 .category-card-header {
  background: #0c72be;
}
.s .category-card--v2 .category-card-header {
  background: #0c72be;
}
.category-card--v3 {
  --category-card-border: #00727f;
  border: 6px solid var(--category-card-border);
}
.s .category-card--v3 {
  border: 5px solid var(--category-card-border);
}
.category-card--v3 .category-card-header {
  background: #00727f;
  padding: 6px 10px 10px;
}
.s .category-card--v3 .category-card-header {
  background: #00727f;
}

.category-card.category-card--v3 .category-card-body p{
  line-height: 1.8;
}

/* カード全体をリンクにする */
.category-card a {
  text-decoration: none;
  color: inherit;
}
/* カードヘッダー */
.category-card-header {
  background: #294ea5;
  padding: 2px 6px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.category-card--large .category-card-header {
  padding: 6px 6px 12px;
}
.s .category-card--large .category-card-header {
  padding: 4px 4px 8px;
}
/* h3タイトル */
.category-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  overflow-wrap: anywhere;
}
.category-card--large .category-card-header h3 {
  font-size: 24px;
}
.s .category-card--large .category-card-header h3 {
  font-size: 18px;
}
.category-card--v3 h3 {
  font-size: 20px;
}

/* カードアイコン */
.category-card-header h3::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.category-card-header--v1 h3::before {
  background: url(../../images/home-icon-02.svg) no-repeat center;
  background-size: 100% 100%;
  width: 36px;
  height: 36px;
}
.category-card-header--v2 h3::before {
  background: url(../../images/home-icon-07.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v3 h3::before {
  background: url(../../images/home-icon-08.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v4 h3::before {
  background: url(../../images/home-icon-17.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v5 h3::before {
  background: url(../../images/home-icon-09.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v6 h3::before {
  background: url(../../images/home-icon-10.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v7 h3::before {
  background: url(../../images/home-icon-11.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v8 h3::before {
  background: url(../../images/home-icon-12.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v9 h3::before {
  background: url(../../images/home-icon-13.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v10 h3::before {
  background: url(../../images/home-icon-15.svg) no-repeat center;
  background-size: 100% 100%;
}
.category-card-header--v11 h3::before {
  background: url(../../images/home-icon-16.svg) no-repeat center;
  background-size: 100% 100%;
}
.s .category-card-header h3::before {
  width: 24px;
  height: 24px;
}

.category-card-header::after {
  content: '';
  display: inline-block;
  background: url(../../images/home-icon-01.svg) no-repeat center;
  background-size: 100% 100%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.s .category-card-header::after {
  width: 20px;
  height: 20px;
}
.category-card--large .category-card-header::after {
  width: 32px;
  height: 32px;
}
.s .category-card--large .category-card-header::after {
  width: 24px;
  height: 24px;
}
/* カードボディ */
.category-card-body {
  padding: 8px 12px 14px;
}
.category-card-body p {
  overflow-wrap: anywhere;
}
.s .category-card-body {
  padding: 6px 8px 10px;
  font-size: 12px;
}
.category-card-body img {
  margin: 0 auto;
}
/* 大きなカード */
.category-card--large .category-card-body {
  padding: 15px 20px 20px;
}
.s .category-card--large .category-card-body {
  padding: 8px 10px 12px;
}

/* カード内テキスト */
/* .category-card-text {

} */
.category-card--large .category-card-text {
  line-height: 1.7;
  letter-spacing: 0.1em;
}
.s .category-card--large .category-card-text {
  font-size: 14px;
  line-height: 1.6;
}

/* カード内アイテムリスト */
.category-card-items {
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
/* カラーバージョン */
.category-card--v1 .category-card-items {
  color: #294ea5;
  background-color: #eef1f8;
}
.category-card--v2 .category-card-items {
  color: #0c72be;
  background-color: #ecf4fa;
}
.category-card--v3 .category-card-items {
  color: #00727f;
  background-color: #f5f9fa;
}
.s .category-card-items {
  font-size: 11px;
  padding: 6px 8px;
  margin-top: 6px;
}
.category-card--large .category-card-items {
  font-size: 14px;
  padding: 12px 16px;
}
.s .category-card--large .category-card-items {
  font-size: 11px;
  padding: 6px 10px;
}
.category-card-items span + span {
  margin-left: 12px;
}
.s .category-card-items span + span {
  margin-left: 8px;
}

.category-card-items span::before {
  content: '';
  display: inline-block;
  transform: rotate(-45deg);
  margin: 0 4px 4px 0;
}
.category-card--v1 .category-card-items span::before {
  width: 10px;
  height: 6px;
  border-bottom: 2.5px solid #294ea5;
  border-left: 2.5px solid #294ea5;
}
.category-card--v2 .category-card-items span::before {
  width: 10px;
  height: 6px;
  border-bottom: 2.5px solid #0c72be;
  border-left: 2.5px solid #0c72be;
}
.category-card--v3 .category-card-items span::before {
  width: 10px;
  height: 6px;
  border-bottom: 2.5px solid #00727f;
  border-left: 2.5px solid #00727f;
}
.s .category-card-items span::before {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

/* ========================================
   横浜市防災情報ポータル
======================================== */

.disaster-portal {
  display: inline-block;
  width: 100%;
  outline: 2px dotted #d0d0d0 !important;
  outline-offset: -2px;
  border-radius: 12px;
  background-color: #fff7f0;
  font-size: 14px;
  margin-top: 14px;
  padding: 16px 50px 16px 16px;
  color: #333;
  position: relative;
  transition: all 0.3s;
}
.s .disaster-portal {
  font-size: 11px;
  padding: 12px 40px 12px 10px;
  margin-top: 10px;
  border-radius: 8px;
}

.disaster-portal h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #222;
}
.s .disaster-portal h4 {
  font-size: 12px;
}
.disaster-portal p {
  font-size: 14px;
  color: #222;
  margin: 0;
  line-height: 1.5;
}
.s .disaster-portal p {
  font-size: 11px;
}

.disaster-portal::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem /* 32px (基準16px) */;
  height: 100%;
  background: #f97316;
  border-radius: 0 12px 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s .disaster-portal::after {
  border-radius: 0 8px 8px 0;
  width: 24px;
}

.disaster-portal::before {
  content: '';
  position: absolute;
  right: 2.2%;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 10px;
  height: 10px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  z-index: 1;
}
.s .disaster-portal::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  right: 3.5%;
}
.disaster-portal:hover {
  transform: scale(1.03);
}
/* ========================================
   横浜市の防災
======================================== */

.support-news-events-section {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
  margin-bottom: 20px;
  place-items: center;
}
.m .support-news-events-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.s .support-news-events-section {
  display: flex;
  flex-direction: column-reverse;
  gap: 20px;
}
.yokohama-initiative {
  color: #fff;
}
.m .yokohama-initiative {
  text-align: center;
}
.s .yokohama-initiative {
  width: 80%;
  margin: 0 auto;
}
.yokohama-initiative img {
  width: 100%;
}
.yokohama-initiative a img {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.yokohama-initiative a img:hover {
  transform: scale(1.03);
}
.initiative-links {
  background-color: #fff;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
  box-shadow: 4px 4px 10px #00648042;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.s .initiative-links {
  margin-top: 12px;
  border-radius: 7px;
}
.initiative-links a {
  display: block;
  width: 100%;
  color: #222;
  font-size: 20px;
  text-decoration: none;
  padding: 26px 20px;
}
.s .initiative-links a {
  font-size: 14px;
  padding: 18px 12px;
}
.initiative-links a::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 0 4px -8px 0;
  background: url(../../images/home-icon-14.svg) no-repeat center;
  background-size: 100% 100%;
}
.s .initiative-links a::before {
  width: 24px;
  height: 24px;
  margin: 0 2px -6px 0;
}
.initiative-links:hover {
  transform: scale(1.03);
}

/* ========================================
   お知らせとイベント
======================================== */

/* お知らせ・イベントセクション */
.news-events-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.m .news-events-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.s .news-events-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* お知らせボックス */
.news-box,
.events-box {
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.news-box-header,
.events-box-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* margin-bottom: 16px; */
  padding: 14px 20px 8px;
  border-bottom: 1px solid #e5e5e5;
}
.s .news-box-header,
.s .events-box-header {
  padding: 10px 12px 6px;
  margin-bottom: 0;
}
.news-box-header h2,
.events-box-header h2 {
  font-size: 18px;
  max-width: 242px;
  text-align: center;
}
.news-box-header .news-link,
.events-box-header .news-link {
  position: absolute;
  right: 2.5%;
  font-size: 12px;
  color: #666666;
}
.s .news-box-header .news-link,
.s .events-box-header .news-link {
  font-size: 11px;
}
.news-box-header a,
.events-box-header a {
  color: #666666;
  text-decoration: none;
}
.news-box-header a:hover,
.events-box-header a:hover {
  text-decoration: underline;
}
.news-box-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.s .news-box-body {
  padding: 0 14px 2px;
}
.events-box-body {
  flex: 1;
  min-height: 0;
}

/* イベントボックス */
.events-box-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
}
.s .events-box-body {
  padding: 0;
}

/* 0件メッセージ（トップ・イベント） */
.news-box .no-data-message,
.events-box .js-events-no-data {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.news-box .no-data-message p,
.events-box .no-data-message p {
  margin: 0;
  font-size: 1.25rem /* 20px (基準16px) */;
  line-height: 1.6;
  color: #666;
  text-align: center;
}
.s .news-box .no-data-message p,
.s .events-box .no-data-message p {
  font-size: 1.188rem /* 19px (基準16px) */;
}
/* 0件メッセージ（トップ・イベント） */

/* お知らせアイテム */
.news-item {
  padding: 12px 28px;
}
.news-item:not(:first-child) {
  background-image: linear-gradient(to right, #e5e5e5 2px, transparent 2px);
  background-size: 5px 2px;
  background-position: left top;
  background-repeat: repeat-x;
}
.s .news-item {
  padding: 10px 0px;
}
.news-item h3 {
  font-size: 16px;
  font-weight: 400;
}
.s .news-item h3 {
  font-size: 12px;
}
.news-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 14px;
  color: #666;
}
.s .news-item-header {
  font-size: 10px;
  margin-bottom: 2px;
}
.news-item-body a {
  display: block;
  width: 100%;
  color: #222;
  text-decoration: none;
}
.news-item-body {
  display: flex;
  gap: 10px;
}
.news-item-body a:hover {
  text-decoration: underline;
}
/* NEWアイコン */
.news-badge {
  display: inline-block;
  background-color: #df060a;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 0px 6px;
  border-radius: 100px;
  line-height: 1.4;
}
.s .news-badge {
  font-size: 10px;
  padding: 1px 6px;
}
/* イベント日付 */
.event-date {
  text-align: center;
  background: #f3f4f6;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 8px;
}
/* カテゴリアイコン */
.news-category-icon {
  width: 58px;
  height: 20px;
}
.s .news-category-icon {
  width: 44.5px;
  height: 14px;
}

.news-box{
  min-width: 232px;
}

/* お知らせ・今週のイベント スケルトン（Ajax読み込み中のプレースホルダー） */
/* aria-busy="false" になった後は、何らかの事情でスケルトンのマークアップが
   残っていても表示され続けないようにする保険 */
.news-box-body[aria-busy="false"] .news-skeleton,
.events-box-body[aria-busy="false"] .events-skeleton {
  display: none;
}
@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}
.skeleton-block {
  display: inline-block;
  border-radius: 4px;
  background-color: #e5e5e5;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}

/* お知らせ スケルトン */
.skeleton-news-date {
  width: 96px;
  height: 14px;
}
.skeleton-news-title {
  flex: 1;
  height: 16px;
  max-width: 220px;
}
.skeleton-news-title--sm {
  max-width: 160px;
}
.skeleton-news-title--md {
  max-width: 190px;
}

/* 今週のイベント スケルトン */
.skeleton-year {
  width: 34px;
  height: 12px;
}
.skeleton-month {
  width: 50px;
  height: 22px;
  margin-top: 4px;
}
.s .skeleton-month {
  width: 40px;
  height: 19px;
  margin-top: 0;
}
.skeleton-weekday {
  width: 18px;
  height: 12px;
}
.skeleton-date-num {
  width: 20px;
  height: 18px;
  margin-top: 4px;
}
.skeleton-event-title {
  flex: 1;
  height: 16px;
  max-width: 200px;
}
.skeleton-event-title--sm {
  max-width: 140px;
}

@media screen and (max-width: 940px) {
  .ubx-week-calendar .calendar{
    padding: 10px 5px;
  }
  .ubx-week-calendar .calendar-day {
    text-align: center;
    padding: 2px 16px 10px 16px;
  }
  /* カレンダーの曜日 */
  .ubx-month-calendar .calendar .weekday{
    font-size: 12px;
  }
  /* カレンダーの日付 */
  .ubx-month-calendar .calendar .date {
    font-size: 16px;
  }
  .ubx-month-calendar .calendar td {
    height: 65px;
  }
  /* カレンダーの余白 */
  .ubx-month-calendar_flex {
    padding: 20px 20px 0 32px;
}

}


/* ========================================
   災害情報モーダル
======================================== */

.disaster-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.disaster-modal.is-active {
  display: flex;
}

.disaster-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(8px);
  z-index: 999;
}
.disaster-modal-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(../../common/img/bg.png);
  background-size: cover;
  opacity: 0.8; /* 透過度を調整 */
  z-index: 1000; /* 画像がモーダルの後ろに表示されるように */
}

.disaster-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  overflow: auto;
  padding: 60px 0;
}
.s .disaster-modal-content {
  padding: 30px 0;
}
.disaster-modal-content .disaster-box {
  margin-top: 10px;
}
.disaster-modal-content .category-card:hover,
.disaster-modal-content .disaster-portal:hover {
  transform: none;
}

.disaster-modal-header {
  margin: 0 auto;
  position: relative;
}
.disaster-modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.disaster-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #013274;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.disaster-modal-close:hover {
  background: #0c72be;
}

.disaster-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.section-icon {
  width: 28px;
  height: 28px;
}

.modal-section-title h2 {
  font-size: 20px;
  color: #1f2937;
  margin: 0;
}

.help-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #9ca3af;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

/* モーダルカード */
.modal-card {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.modal-card a {
  text-decoration: none;
  display: block;
}

.modal-card--primary {
  border: 3px solid #3b82f6;
  background: white;
}

.modal-card--secondary {
  border: 2px solid #3b82f6;
  background: white;
}

.modal-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #3b82f6;
  color: white;
  position: relative;
}

.card-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.modal-card-header h3 {
  flex: 1;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.modal-card-arrow {
  font-size: 20px;
  font-weight: bold;
}

.modal-card-body {
  padding: 16px;
}

.modal-card-body p {
  font-size: 14px;
  color: #1f2937;
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.modal-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-card-tags span {
  font-size: 12px;
  color: #1f2937;
}

/* モーダル内ポータル */
.modal-portal {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff7ed;
  border: 2px dotted #fb923c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.modal-portal:hover {
  background: #ffedd5;
}

.modal-portal-content h5 {
  font-size: 14px;
  color: #1f2937;
  margin: 0 0 4px 0;
  font-weight: bold;
}

.modal-portal-content p {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.modal-portal-arrow {
  font-size: 24px;
  font-weight: bold;
  color: #fb923c;
}

/* モーダルカードグリッド */
.modal-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===================================================================
   フッター
   =================================================================== */

.top-page-footer {
  position: relative;
  text-align: center;
  padding: 30px 0 160px;
  margin-bottom: 20px;
}
.s .top-page-footer {
  padding: 30px 0 240px;
  margin-bottom: 0;
}

.top-page-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../../common/img/bg-bottom-pc.png) no-repeat center bottom;
  background-size: 100% auto;
  z-index: -1;
}
.s .top-page-footer::before {
  background: url(../../common/img/bg-bottom-sp.png) no-repeat center bottom;
  bottom: -1%;
  background-size: contain;
  z-index: -1;
}

.top-page-footer-title {
  font-size: 16px;
  margin-bottom: 16px;
}
.s .top-page-footer-title {
  font-size: 13px;
  margin-bottom: 12px;
}

.top-page-footer-sns {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.s .top-page-footer-sns {
  gap: 8px;
  margin-bottom: 12px;
  flex-direction: column;
}

.top-page-footer-sns a img {
  width: 40px;
  height: 40px;
}

.top-page-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

.top-page-footer-links a {
  color: #222;
  text-decoration: none;
}

.top-page-footer-links a:hover {
  text-decoration: underline;
}

.top-page-footer-copyright {
  font-size: 0.6875rem;
  color: #222;
  margin-top: 16px;
}
.s .top-page-footer-copyright {
  margin-top: 10px;
}
.sns-title {
  font-size: 24px;
  font-weight: bold;
}
.s .sns-title {
  font-size: 18px;
}
.sns-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.sns-links a {
  flex: 0 0 auto;
}
.sns-links a img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}
.s .sns-links a img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}
