/* ==========================================================
   あわらタイムズ
   健康・福祉｜共通ブログパーツ

   File: awt-health-welfare-parts.css
   Version: 0.2
   共通CSSの見出し装飾とLINEボタン文字色の競合を解消。

   対象:
   - 健康・医療 3968
   - 高齢者・介護 3969
   - 障がい・福祉 3970
========================================================== */

/* 01. 共通設定 */

.awt-hw-common-end {
  --hw-end-accent: #A5533F;
  --hw-end-soft: #F6EAE5;
  --hw-end-text: #30343A;
  --hw-end-muted: #62676D;
  --hw-end-border: #DDD8D1;

  color: var(--hw-end-text);
  font-size: 17px;
  line-height: 1.8;
}

.awt-hw-common-end,
.awt-hw-common-end *,
.awt-hw-common-end *::before,
.awt-hw-common-end *::after {
  box-sizing: border-box;
}

.awt-hw-common-end--elderly {
  --hw-end-accent: #916A31;
  --hw-end-soft: #F6F0E5;
}

.awt-hw-common-end--welfare {
  --hw-end-accent: #506F5C;
  --hw-end-soft: #EAF1EB;
}

.awt-hw-common-end a:focus-visible {
  outline: 3px solid var(--hw-end-accent);
  outline-offset: 4px;
}

/* 02. 特集エリア */

.awt-hw-common-end .awt-hw-feature {
  margin: 0 0 56px;
  padding: 36px 30px;
  background: #FAF8F4;
  border-radius: 16px;
}

.awt-hw-common-end .awt-hw-feature__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.awt-hw-common-end .awt-hw-feature__head {
  margin-bottom: 30px;
}

.awt-hw-common-end .awt-hw-feature__eyebrow {
  margin: 0 0 8px;
  color: var(--hw-end-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.awt-hw-common-end .awt-hw-feature__title {
  margin: 0 0 12px;
  padding: 0 !important;
  background: none;
  border: 0 !important;
  color: var(--hw-end-text) !important;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.5;
}

.awt-hw-common-end .awt-hw-feature__title::before,
.awt-hw-common-end .awt-hw-feature__title::after,
.awt-hw-common-end .awt-hw-feature__latest-title::before,
.awt-hw-common-end .awt-hw-feature__latest-title::after,
.awt-hw-common-end .awt-hw-line__title::before,
.awt-hw-common-end .awt-hw-line__title::after {
  display: none;
}

.awt-hw-common-end .awt-hw-feature__lead {
  margin: 0;
  color: var(--hw-end-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* 03. 3カラム */

.awt-hw-common-end .awt-hw-feature__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.15fr)
    minmax(0, .82fr);
  gap: 20px;
  align-items: start;
}

.awt-hw-common-end .awt-hw-feature__column {
  min-width: 0;
}

.awt-hw-common-end .awt-hw-feature__column-label {
  margin: 0 0 14px;
  color: var(--hw-end-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.awt-hw-common-end .awt-hw-feature__latest-title {
  margin: 0 0 16px;
  padding: 0 !important;
  background: none;
  border: 0 !important;
  color: var(--hw-end-text) !important;
  font-size: 19px;
  font-weight: 700;
}

.awt-hw-common-end .awt-hw-feature__empty {
  margin: 0;
  padding: 20px;
  color: var(--hw-end-muted);
  background: #FFFFFF;
  border: 1px solid var(--hw-end-border);
  border-radius: 10px;
  font-size: 15px;
}

/* 04. 広告 */

.awt-hw-common-end .awt-hw-feature__column--ad {
  position: relative;
}

.awt-hw-common-end .awt-hw-feature__ad-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--hw-end-muted);
  font-size: 12px;
}

.awt-hw-common-end .awt-hw-feature__ad-link {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
}

.awt-hw-common-end .awt-hw-feature__ad-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* 05. LINE */

.awt-hw-common-end .awt-hw-line {
  margin: 0 0 48px;
  padding: 34px 30px;
  background: var(--hw-end-soft);
  border-radius: 16px;
}

.awt-hw-common-end .awt-hw-line__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.awt-hw-common-end .awt-hw-line__content {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.awt-hw-common-end .awt-hw-line__icon img {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  margin: 0 auto;
}

.awt-hw-common-end .awt-hw-line__eyebrow {
  margin: 0 0 8px;
  color: var(--hw-end-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.awt-hw-common-end .awt-hw-line__title {
  margin: 0 0 14px;
  padding: 0 !important;
  background: none;
  border: 0 !important;
  color: var(--hw-end-text) !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.awt-hw-common-end .awt-hw-line__text {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
}

.awt-hw-common-end .awt-hw-line__button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  max-width: 100%;
  padding: 12px 20px;
  color: #FFFFFF !important;
  background: #167B45;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none !important;
}

.awt-hw-common-end .awt-hw-line__button:hover {
  color: #FFFFFF !important;
  background: #0D6034;
}

.awt-hw-common-end .awt-hw-line__button-arrow {
  flex-shrink: 0;
  font-size: 20px;
}

.awt-hw-common-end .awt-hw-line__note {
  margin: 14px 0 0;
  color: var(--hw-end-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* 06. タブレット */

@media (max-width: 959px) {

  .awt-hw-common-end .awt-hw-feature__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .awt-hw-common-end .awt-hw-feature__column--ad {
    grid-column: 1 / -1;
    max-width: 320px;
  }

}

/* 07. スマートフォン */

@media (max-width: 767px) {

  .awt-hw-common-end {
    font-size: 16px;
  }

  .awt-hw-common-end .awt-hw-feature {
    padding: 26px 18px;
    margin-bottom: 36px;
  }

  .awt-hw-common-end .awt-hw-feature__title {
    font-size: 23px;
  }

  .awt-hw-common-end .awt-hw-feature__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .awt-hw-common-end .awt-hw-feature__column--ad {
    grid-column: auto;
    max-width: 100%;
  }

  .awt-hw-common-end .awt-hw-line {
    padding: 26px 20px;
  }

  .awt-hw-common-end .awt-hw-line__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    text-align: center;
  }

  .awt-hw-common-end .awt-hw-line__icon img {
    max-width: 110px;
  }

  .awt-hw-common-end .awt-hw-line__title {
    font-size: 22px;
  }

  .awt-hw-common-end .awt-hw-line__pc-break {
    display: none;
  }

  .awt-hw-common-end .awt-hw-line__button {
    width: 100%;
  }

}