/* =========================================================
   TOP：Solutions グリッド（カードUI）
   ========================================================= */
.solution-grid {
  --gap: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  width: 90vw;
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
  max-width: none;
  padding: 0 24px;
  margin-bottom: 24px;
}

@media (max-width:1024px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
}

.solution-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  transition: transform .2s, box-shadow .2s;
  background: #fff;
  counter-increment: solution;
}

.solution-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
}

.solution-card>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) blur(2px) brightness(1.1);
  opacity: .9;
}

.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .25);
  z-index: 1;
}

.solution-ribbon {
  position: absolute;
  inset: 0 0 auto 0;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
  background: var(--ribbon, #0aa);
  font-size: clamp(18px, 2vw, 24px);
  z-index: 3;
}

.solution-ribbon::before {
  content: counter(solution, decimal-leading-zero);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 50%;
  background: #fff;
  color: var(--ribbon, #015cab);
  font-weight: 900;
  font-size: 24px;
  text-shadow: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

.solution-ribbon::after {
  content: "\00BB";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  line-height: 1;
  opacity: .95;
}

.solution-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #333;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 22px);
  line-height: 1.3;
  padding: 10px;
  flex-direction: column;
  transform: translateY(10%);
}

.solution-overlay .accent {
  color: #e53935;
  font-weight: 900;
  font-size: clamp(22px, 2.8vw, 24px);
}

.solution-link {
  position: absolute;
  inset: 0;
  display: block;
  text-indent: -9999px;
  z-index: 5;
}

.solution-card:focus-within {
  outline: 2px solid #2ea3f2;
  outline-offset: 2px;
}

/* モバイル（カード） */
@media (max-width: 768px) {
  .solution-grid {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 12px;
    --gap: 12px;
    gap: var(--gap);
  }

  .solution-card {
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
  }

  .solution-card>img {
    filter: saturate(1.03) blur(1.5px) brightness(1.06);
  }

  .solution-ribbon {
    height: 44px;
    padding: 0 14px;
    font-size: clamp(14px, 4.2vw, 16px);
    letter-spacing: .01em;
  }

  .solution-ribbon::before {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    font-size: 20px;
  }

  .solution-ribbon::after {
    right: 12px;
    font-size: 20px;
  }

  .solution-overlay {
    padding: 8px 10px;
    padding-top: 52px;
    transform: none;
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .solution-overlay .accent {
    font-size: clamp(18px, 4.8vw, 20px);
  }
}

@media (max-width: 360px) {
  .solution-ribbon {
    height: 40px;
    padding: 0 12px;
  }

  .solution-ribbon::before {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .solution-ribbon::after {
    font-size: 18px;
    right: 10px;
  }

  .solution-overlay {
    padding-top: 48px;
    font-size: 15px;
  }

  .solution-overlay .accent {
    font-size: 17px;
  }
}

/* =========================================================
   TOP：休刊日カレンダー（タイル）
   ========================================================= */
.papers-holiday-tiles {
  margin-top: 48px;
  position: relative;
  text-align: center;
}

.papers-holiday-tiles__header {
  position: relative;
  display: inline-block;
  padding: 16px 36px 12px;
  background: #f9fafb;
  border: 2px solid var(--vk-color-primary, #0a66c2);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.papers-holiday-tiles__title {
  margin: 0;
  font-weight: 900;
  color: var(--vk-color-primary, #0a66c2);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: .05em;
}

.papers-holiday-tiles__title .year {
  display: block;
  font-size: 24px;
  color: #c62828;
}

.papers-holiday-tiles__title .subtitle {
  display: block;
  font-size: 18px;
  color: var(--vk-color-primary, #0a66c2);
}

/* ピン飾り */
.papers-holiday-tiles__pin {
  position: absolute;
  top: -10px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--vk-color-primary, #0a66c2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.papers-holiday-tiles__pin--left {
  left: 18px;
}

.papers-holiday-tiles__pin--right {
  right: 18px;
}

/* タイルレイアウト（12か月） */
.holiday-tiles {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .holiday-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .holiday-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* タイル1個 */
.h-tile {
  position: relative;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  padding: 10px 10px 8px;
  text-align: center;
  overflow: hidden;
}

.h-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 18px;
  background: var(--tile-accent, #c62828);
  clip-path: path("M0,18 Q16,0 32,18 L100%,18 L100%,0 L0,0 Z");
  opacity: .12;
}

.h-tile__pin {
  position: absolute;
  top: 6px;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, .15);
  border-radius: 999px;
}

.h-tile__pin--l {
  left: 10px;
}

.h-tile__pin--r {
  right: 10px;
}

.h-tile__month {
  font-size: 16px;
  font-weight: 700;
  color: var(--tile-accent, #c62828);
  margin-top: 2px;
}

.h-tile__day {
  font-size: 50px;
  line-height: 1;
  font-weight: 900;
  margin: 0 0 0;
  color: var(--tile-accent, #c62828);
}

.h-tile__wday {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--tile-accent, #c62828);
}

.h-tile__note {
  font-size: 11px;
  color: #6b7280;
  margin-top: 6px;
}

.h-tile--red {
  --tile-accent: #c62828;
  border-color: rgba(198, 40, 40, .35);
}

.h-tile--blue {
  --tile-accent: #0a66c2;
  border-color: rgba(10, 102, 194, .35);
}

/* =========================
   TOP：リンクバナー 本体
   ========================= */
/* バナーグリッド */
.top-banners__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 24px;
}

/* バナー1セル */
.top-banners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 260px;
  height: 80px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

/* ロゴ画像フィット */
.top-banners__item img {
  max-width: calc(100% - 8px);
  max-height: calc(100% - 8px);
  object-fit: contain;
  display: block;
}

/* タブレット：2列 */
@media (max-width:900px) {
  .top-banners__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0px 24px;
  }
}

/* スマホ：1列 */
@media (max-width:600px) {
  .top-banners__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .top-banners__item {
    height: 70px;
  }
}

/* ================================================
   自然災害カード（共通）
   ================================================ */
.asc-card--alert {
  position: relative;
  padding: 32px 40px;
  background: #fff;
  border-color: rgba(0, 0, 0, .05);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  border-radius: 14px;
}

/* 本文ブロック：背景 + フィルター + 右下イラスト */
.disaster-notice__body {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 24px 32px 28px;
  max-width: none;

  /* 背景イラスト（右下寄せ） */
  background-image: url("https://asa-test2.asc-developers.blog/wp-content/uploads/2025/12/disaster-02.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 20% auto;
  /* ← PCのサイズ。好みで調整OK */
}

/* 白フィルター（背景全体にうっすら） */
.disaster-notice__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  z-index: -1;
  /* ← テキストより奥に */
}

/* PC用の右上アイコンはもう使わないので念のため消す */
.disaster-body-icon {
  display: none !important;
}

/* ================================================
   ラベル「重要なお知らせ」装飾
   ================================================ */
/* 「重要なお知らせ」ラベル */
.disaster-notice__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(201, 51, 62, .08);
  /* うっすら赤 */
  color: var(--vk-color-primary, #c9333e);
}

/* タイトル行 */
.disaster-notice__title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* タイトル下の細いライン（ベタ塗りにならないように） */
.disaster-notice__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg,
      var(--vk-color-primary, #c9333e),
      rgba(201, 51, 62, .0));
}


/* 本文テキスト */
.disaster-notice__lead {
  font-size: 15px;
  line-height: 1.9;
  font-weight: 600;
  margin: 0 0 12px;
  color: #444;
}

.disaster-notice__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.85;
  color: #444;
}

.disaster-notice__note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #6b7280;
}

/* 本文内の強調文字 */
.disaster-em {
  margin: 16px 0 0;
  color: var(--vk-color-primary, #c9333e);
  font-weight: 700;
  line-height: 1.85;
  background: rgba(201, 51, 62, 0.08);
  padding: 2px 4px;
  border-radius: 4px;
}

/* ================================================
   モバイル（～768px）：サイズだけ調整
   ================================================ */
@media (max-width: 768px) {

  .asc-card--alert {
    padding: 20px 12px;
    border-radius: 12px;
  }

  .disaster-notice__body {
    padding: 20px 16px 24px;

    /* 背景イラストを少し大きめに／狭い画面向け */
    background-size: 40% auto;
    background-position: right bottom;
  }

  .disaster-notice__title {
    font-size: 17px;
    padding-bottom: 8px;
    margin-bottom: 14px;
  }

  .disaster-notice__title::after {
    width: 96px;
    height: 2px;
  }

  .disaster-notice__lead,
  .disaster-notice__text {
    font-size: 13px;
    line-height: 1.7;
  }

  .disaster-notice__note {
    font-size: 12px;
    line-height: 1.7;
  }
}