/* =========================================================
 * あわらタイムズ｜子育て共通下部・ブログパーツ2368
 * 特集・お役立ち情報 ＋ あわら市公式LINE
 *
 * 添付の専用CSSを、この完全版で置き換えます。
 * 本文用 awt-childcare-common.css は置き換えません。
 * HTML・投稿抽出条件・リンク先は変更しません。
 * ========================================================= */

/* 01. 共通設定・1180pxの誌面 */

.awt-childcare-common-end {
  --awt-cc-end-text: #102a3a;
  --awt-cc-end-muted: #62717a;
  --awt-cc-end-pink: #e9788f;
  --awt-cc-end-pink-deep: #a23f5b;
  --awt-cc-end-pink-soft: #fff3f5;
  --awt-cc-end-cream: #fffaf5;
  --awt-cc-end-beige: #faf5f0;
  --awt-cc-end-border: #f0dfe2;
  --awt-cc-end-line-bg: #f8f3ee;
  --awt-cc-end-line-accent: #a23f5b;
  --awt-cc-end-white: #fff;
  --awt-cc-end-heading: clamp(24px, 2.4vw, 32px);
  --awt-cc-end-side: clamp(16px, 2vw, 24px);
  --awt-cc-end-serif:
    "Noto Serif JP",
    "Noto Serif CJK JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  --awt-cc-end-sans:
    "Noto Sans JP",
    "Noto Sans CJK JP",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    sans-serif;

  position: relative;
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  margin: clamp(40px, 5vw, 64px) 0 0 50%;
  padding: 0;
  transform: translateX(-50%);
  color: var(--awt-cc-end-text);
  font-family: var(--awt-cc-end-sans);
  font-size: 16px;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
}

/* 02. 2368内だけのリセット */

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

.awt-childcare-common-end img {
  display: block;
  max-width: 100%;
  height: auto;
}

.awt-childcare-common-end a {
  color: inherit;
  text-decoration: none;
}

.awt-childcare-common-end a:focus-visible {
  outline: 3px solid var(--awt-cc-end-pink-deep);
  outline-offset: 4px;
}

/* SWELL・本文側の見出し装飾は、このパーツ内だけ解除。 */

.awt-childcare-common-end :is(
  .awt-childcare-feature__title,
  .awt-childcare-feature__latest-title,
  .awt-childcare-line__title,
  .p-postList__title
) {
  position: static;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: var(--awt-cc-end-text) !important;
  text-align: left;
}

.awt-childcare-common-end :is(
  .awt-childcare-feature__title,
  .awt-childcare-feature__latest-title,
  .awt-childcare-line__title,
  .p-postList__title
)::before,
.awt-childcare-common-end :is(
  .awt-childcare-feature__title,
  .awt-childcare-feature__latest-title,
  .awt-childcare-line__title,
  .p-postList__title
)::after {
  content: none !important;
  display: none !important;
}

/* 03. 特集エリア・見出し */

.awt-childcare-common-end .awt-childcare-feature {
  width: 100%;
  max-width: none;
  margin: 0;
  padding:
    clamp(24px, 3vw, 40px)
    var(--awt-cc-end-side)
    clamp(32px, 4vw, 48px);
  background: linear-gradient(
    180deg,
    #fff 0%,
    var(--awt-cc-end-cream) 100%
  );
}

.awt-childcare-common-end :is(
  .awt-childcare-feature__inner,
  .awt-childcare-line__inner
) {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}

.awt-childcare-common-end .awt-childcare-feature__head {
  max-width: 860px;
  margin: 0 0 clamp(24px, 3vw, 32px);
}

.awt-childcare-common-end :is(
  p.awt-childcare-feature__eyebrow,
  p.awt-childcare-feature__column-label,
  p.awt-childcare-line__eyebrow
) {
  margin: 0 0 10px;
  color: var(--awt-cc-end-pink-deep);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.awt-childcare-common-end
.awt-childcare-feature__head .awt-childcare-feature__title,
.awt-childcare-common-end
.awt-childcare-line__body .awt-childcare-line__title {
  font-family: var(--awt-cc-end-serif);
  font-size: var(--awt-cc-end-heading);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.025em;
  text-wrap: pretty;
}

.awt-childcare-common-end p.awt-childcare-feature__lead {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--awt-cc-end-muted);
  font-size: 16px;
  line-height: 1.85;
}

/* 04. PCは3列・従来の1.6 : 1.4 : 1を維持 */

.awt-childcare-common-end .awt-childcare-feature__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(0, 1.4fr)
    minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 2vw, 24px);
}

.awt-childcare-common-end .awt-childcare-feature__column {
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* 05. SWELL投稿リストの幅・余白・省略表示 */

.awt-childcare-common-end :is(
  .awt-childcare-feature__pickup,
  .awt-childcare-feature__latest-list
) {
  min-width: 0;
}

.awt-childcare-common-end
.awt-childcare-feature :is(.p-postList, .p-postList__item) {
  display: block;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.awt-childcare-common-end
.awt-childcare-feature .p-postList__item::before,
.awt-childcare-common-end
.awt-childcare-feature .p-postList__item::after {
  content: none !important;
  display: none !important;
}

.awt-childcare-common-end
.awt-childcare-feature .p-postList__body {
  flex: 1 1 auto;
  width: 100% !important;
  max-width: none;
  min-width: 0;
  margin: 0 !important;
}

.awt-childcare-common-end
.awt-childcare-feature .p-postList__title {
  display: block;
  height: auto;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  white-space: normal;
  text-overflow: clip;
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}

/* 日付・カテゴリー等を非表示にする既存仕様を維持。 */

.awt-childcare-common-end
.awt-childcare-feature :is(
  .p-postList__excerpt,
  .p-postList__meta,
  .p-postList__times,
  .c-postThumb__cat,
  .p-postList__cat,
  .c-categoryList,
  time
) {
  display: none !important;
}

/* 06. PICK UPカード・16:9画像 */

.awt-childcare-common-end
.awt-childcare-feature__pickup .p-postList__link {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--awt-cc-end-border);
  border-radius: 16px;
  background: var(--awt-cc-end-white);
  box-shadow: 0 6px 20px rgba(16, 42, 58, 0.06);
  color: var(--awt-cc-end-text);
  text-decoration: none !important;
  transition: box-shadow 0.2s ease;
}

.awt-childcare-common-end
.awt-childcare-feature__pickup .p-postList__link::before,
.awt-childcare-common-end
.awt-childcare-feature__pickup .p-postList__link::after {
  content: none !important;
  display: none !important;
}

.awt-childcare-common-end
.awt-childcare-feature__pickup .p-postList__thumb,
.awt-childcare-common-end
.awt-childcare-feature__pickup .c-postThumb__figure {
  position: relative;
  display: block;
  float: none;
  width: 100% !important;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  background: var(--awt-cc-end-beige);
}

.awt-childcare-common-end
.awt-childcare-feature__pickup .c-postThumb__figure::before,
.awt-childcare-common-end
.awt-childcare-feature__pickup .c-postThumb__figure::after {
  content: none;
  display: none;
}

.awt-childcare-common-end
.awt-childcare-feature__pickup .p-postList__thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center top;
}

.awt-childcare-common-end
.awt-childcare-feature__pickup .p-postList__body {
  padding: 18px !important;
}

.awt-childcare-common-end
.awt-childcare-feature__pickup .p-postList__title {
  font-family: var(--awt-cc-end-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

/* 07. 新着記事・全文を自然に折り返す */

.awt-childcare-common-end .awt-childcare-feature__latest-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 12px;
}

.awt-childcare-common-end
.awt-childcare-feature__latest-head
.awt-childcare-feature__latest-title,
.awt-childcare-common-end .awt-childcare-feature__ad-label {
  font-family: var(--awt-cc-end-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.025em;
}

.awt-childcare-common-end .awt-childcare-feature__latest-list {
  border-top: 1px solid var(--awt-cc-end-border);
}

.awt-childcare-common-end
.awt-childcare-feature__latest-list .p-postList__item {
  border-bottom: 1px solid var(--awt-cc-end-border);
}

.awt-childcare-common-end
.awt-childcare-feature__latest-list .p-postList__thumb {
  display: none !important;
}

.awt-childcare-common-end
.awt-childcare-feature__latest-list .p-postList__link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 18px 26px 18px 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--awt-cc-end-text);
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.awt-childcare-common-end
.awt-childcare-feature__latest-list .p-postList__body {
  padding: 0 !important;
}

.awt-childcare-common-end
.awt-childcare-feature__latest-list .p-postList__title {
  font-family: var(--awt-cc-end-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.awt-childcare-common-end
.awt-childcare-feature__latest-list .p-postList__link::before {
  content: none !important;
  display: none !important;
}

.awt-childcare-common-end
.awt-childcare-feature__latest-list .p-postList__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  left: auto;
  width: 8px;
  height: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 2px solid var(--awt-cc-end-pink-deep);
  border-right: 2px solid var(--awt-cc-end-pink-deep);
  background: none;
  transform: translateY(-50%) rotate(45deg);
}

/* 08. 広告・画像は切り抜かず表示 */

.awt-childcare-common-end .awt-childcare-feature__column--ad {
  position: relative;
  align-self: start;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.awt-childcare-common-end
.awt-childcare-feature__column--ad::before {
  content: "AD";
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 10px;
  padding: 0;
  background: none;
  color: var(--awt-cc-end-pink-deep);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.awt-childcare-common-end .awt-childcare-feature__ad-label {
  position: static;
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--awt-cc-end-text);
}

.awt-childcare-common-end .awt-childcare-feature__ad-link {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--awt-cc-end-border);
  border-radius: 16px;
  background: var(--awt-cc-end-white);
  box-shadow: 0 6px 20px rgba(16, 42, 58, 0.05);
  text-decoration: none !important;
}

.awt-childcare-common-end .awt-childcare-feature__ad-link img {
  width: 100%;
  height: auto !important;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}

/* 09. LINE・特集と同じ文字サイズの基準 */

.awt-childcare-common-end .awt-childcare-line {
  width: 100%;
  max-width: none;
  margin: 0;
  padding:
    clamp(32px, 4vw, 48px)
    var(--awt-cc-end-side);
  background: linear-gradient(
    135deg,
    var(--awt-cc-end-line-bg) 0%,
    #fff9f8 100%
  );
}

.awt-childcare-common-end .awt-childcare-line__content {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.awt-childcare-common-end .awt-childcare-line__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
}

.awt-childcare-common-end .awt-childcare-line__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.awt-childcare-common-end .awt-childcare-line__body {
  min-width: 0;
}

.awt-childcare-common-end p.awt-childcare-line__text {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--awt-cc-end-muted);
  font-size: 16px;
  line-height: 1.85;
}

.awt-childcare-common-end a.awt-childcare-line__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 420px);
  min-height: 56px;
  margin-top: 24px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--awt-cc-end-line-accent);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(162, 63, 91, 0.16);
  transition: background-color 0.2s ease;
}

.awt-childcare-common-end
.awt-childcare-line__button > span:first-child {
  min-width: 0;
  text-wrap: balance;
}

.awt-childcare-common-end
.awt-childcare-line__button .awt-childcare-line__button-arrow {
  flex: 0 0 auto;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
}

/* LINEの矢印は既存HTMLの1個だけを使います。 */

.awt-childcare-common-end .awt-childcare-line__button::before,
.awt-childcare-common-end .awt-childcare-line__button::after,
.awt-childcare-common-end .awt-childcare-feature__ad-link::before,
.awt-childcare-common-end .awt-childcare-feature__ad-link::after {
  content: none !important;
  display: none !important;
}

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

/* 10. タブレット */

@media (max-width: 959px) {
  .awt-childcare-common-end .awt-childcare-feature__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .awt-childcare-common-end .awt-childcare-feature__column--ad {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 360px;
  }

  .awt-childcare-common-end .awt-childcare-line__content {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 24px;
  }

  .awt-childcare-common-end .awt-childcare-line__icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }
}

/* 11. スマホ・文字を縮めず1列に */

@media (max-width: 599px) {
  .awt-childcare-common-end .awt-childcare-feature__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .awt-childcare-common-end .awt-childcare-feature__column--ad {
    grid-column: auto;
  }

  .awt-childcare-common-end
  .awt-childcare-feature__pickup .p-postList__body {
    padding: 16px !important;
  }

  .awt-childcare-common-end
  .awt-childcare-feature__pickup .p-postList__title {
    font-size: 17px;
  }

  .awt-childcare-common-end
  .awt-childcare-feature__latest-list .p-postList__link {
    min-height: 80px;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .awt-childcare-common-end .awt-childcare-line__content {
    display: block;
  }

  .awt-childcare-common-end .awt-childcare-line__icon {
    width: 72px;
    height: 72px;
    margin: 0 0 20px;
    border-radius: 16px;
  }

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

  .awt-childcare-common-end a.awt-childcare-line__button {
    width: 100%;
    padding-inline: 18px;
  }
}

/* 12. マウス操作・動きを抑える設定 */

@media (hover: hover) {
  .awt-childcare-common-end
  .awt-childcare-feature__pickup .p-postList__link:hover {
    box-shadow: 0 8px 24px rgba(16, 42, 58, 0.1);
  }

  .awt-childcare-common-end
  .awt-childcare-feature__latest-list .p-postList__link:hover {
    background: var(--awt-cc-end-pink-soft);
  }

  .awt-childcare-common-end a.awt-childcare-line__button:hover {
    background: #8c344d;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awt-childcare-common-end *,
  .awt-childcare-common-end *::before,
  .awt-childcare-common-end *::after {
    transition: none !important;
    animation: none !important;
  }
}