/* ===== 伴走支援・モデル事業所育成ページ（PSD 4_model-support2026 実測準拠） ===== */
.model-overview {
  padding: 3.5rem 0 0;
}
main p {
  font-weight: 500;
}
.model-overview .ttl,
.model-point .ttl,
.model-schedule .ttl,
.model-news .ttl {
  text-align: left;
}
.model-overview__text p {
  line-height: 1.9;
}
.model-point {
  padding: 7rem 0 0;
}
.model-schedule {
  /* SP: PSD 実測（最終ボタン下〜青背景の上辺右端 213px ÷ 2 ÷ 10） */
  padding: 7rem 0 10.6rem;
}
.model-figure {
  margin: 0;
}
.model-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.model-figure figcaption {
  text-align: right;
}

/* 事業所一覧ボタン（PSD: 縦積み・中央・幅広） */
.model-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* お知らせ（PSD: 青背景＋白カード＋白見出し）
   上下とも左下がりの平行四辺形（下辺は PSD ではフッター画像の上辺）。
   傾きを画面幅によらず揃えるため、要素高に比例する % ではなく vw で指定
   （SP 実測: 上辺 750px 幅で 87px ≒ 11.6vw / 下辺 12.3vw）。
   切り欠きから見える下はフッターと同じ白地（body） */
.news.model-news {
  margin-top: 0;
  background: linear-gradient(to right, #085dbb 0%, #01a0c7 100%);
  clip-path: polygon(0 11.6vw, 100% 0, 100% calc(100% - 12.3vw), 0 100%);
  padding: 10.2rem 0 max(8.95rem, 16vw);
}
.news.model-news .ttl {
  color: #fff;
}
.news.model-news .news-box {
  background: #fff;
  border-radius: 10px;
}
.news.model-news .list {
  margin-bottom: 0;
}
/* ページネーション（PSD 実測）: 通常 #0459c6・現在ページは淡い地に濃紺文字 */
.news.model-news .pagination {
  margin-top: 3rem;
}
.news.model-news .pagination button,
.news.model-news .pagination span {
  background-color: #0459c6;
  border-color: #0459c6;
}
.news.model-news .pagination button:disabled {
  background-color: #f0f4ff;
  border-color: #5f83bf;
  color: #1c50a5;
}

@media screen and (min-width: 744px) {
  .model-overview {
    padding: 5.7rem 0 0;
  }
  .model-overview__text p {
    font-size: 1.8rem;
  }
  .model-point {
    padding: 16.9rem 0 0;
  }
  .model-schedule {
    padding: 16.7rem 0 11.65rem;
  }
  .news.model-news {
    /* PC 実測: 上辺 6.6vw / 下辺 6.5vw。
       下余白はカード下端〜下辺左端（PSD 605px ÷ 20）。ページネーションはこの中に置く */
    clip-path: polygon(0 6.6vw, 100% 0, 100% calc(100% - 6.5vw), 0 100%);
    padding: 11rem 0 30.25rem;
  }
  .news.model-news .news-box {
    position: relative;
  }
  /* PC/タブ: ページネーションは白カードの外（青背景の上）。
     マークアップはカード内（SP はカード内表示）のまま絶対配置で外へ出す */
  .news.model-news .pagination {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8.75rem;
    gap: 0 1.55rem;
  }
}

/* ===== PSD 突き合わせでの調整（実測 ÷ 20）=====
   base.css / under-kv.css は後から inline で読まれるので、上書きは main を付けて詳細度を上げる */
main .under-fv {
  padding: 4.5rem 0 5.5rem;
}
main .under-fv__ttl h1 {
  margin-top: 2.1rem;
}
main .breadcrumb {
  padding-top: 0.8rem;
}
main .model-overview .ttl,
main .model-point .ttl,
main .model-schedule .ttl {
  padding-top: 4.2rem;
  text-align: center;
}
main .model-overview .ttl {
  margin-bottom: 1.6rem;
}
main .model-point .ttl {
  margin-bottom: 1.9rem;
}
main .model-schedule .ttl {
  margin-bottom: 2.5rem;
}
main .model-overview__text p + p {
  margin-top: 3.7rem;
}
/* SP: 1行に収める（PSD も同じくコンテナ幅を少しはみ出す） */
@media screen and (max-width: 743.98px) {
  main .model-overview .ttl,
  main .model-schedule .ttl {
    margin-left: -0.4rem;
    margin-right: -0.4rem;
    white-space: nowrap;
  }
  main .model-overview .ttl::before,
  main .model-schedule .ttl::before {
    left: 0.4rem;
  }
}
main .model-figure figcaption {
  margin-top: 2rem;
  font-size: 1rem;
  color: #2c2c2c;
}
.model-btns {
  margin-top: 3.2rem;
  gap: 4.2rem 0;
}
main .model-btns .btn {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: 6.75rem;
  padding: 0 5.6rem 0 2rem;
  border-radius: 3.4rem;
  font-size: 1.5rem;
  line-height: 1.6;
  text-align: left;
}
main .model-btns .btn .arrow {
  right: 1.65rem;
  width: 3.15rem;
  height: 3.15rem;
}
main .model-btns .btn .arrow img {
  width: 1.9rem;
  height: 1.35rem;
}
main .news.model-news .ttl {
  margin-left: 0;
  padding-top: 3.4rem;
  margin-bottom: 1.3rem;
  text-align: center;
}
.news.model-news .news-box {
  padding: 2rem 0.6rem 3rem;
}
.news.model-news article a {
  display: block;
  position: relative;
  padding: 1.1rem 4.6rem 1.1rem 0.35rem;
}
.news.model-news article a + a {
  padding-top: 1.1rem;
}
.news.model-news article a time,
.news.model-news article a p {
  display: block;
  width: auto;
  font-size: 1.5rem;
  line-height: 1.45;
}
.news.model-news article a .arrow {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 3.3rem;
  height: 3.3rem;
  margin: 0;
  transform: translateY(-50%);
}
.news.model-news article a .arrow img {
  width: 1.7rem;
  height: 1.2rem;
}

@media screen and (min-width: 744px) {
  main .under-fv {
    padding: 5.5rem 0 7.75rem;
  }
  main .under-fv__ttl h1 {
    margin-top: 1.4rem;
  }
  main .breadcrumb {
    padding-top: 1rem;
  }
  main .breadcrumb li a,
  main .breadcrumb li span {
    font-size: 1.5rem;
  }
  main .model-overview .ttl,
  main .model-point .ttl,
  main .model-schedule .ttl {
    padding-top: 7.3rem;
    text-align: left;
  }
  main .model-overview .ttl {
    margin-bottom: 3.1rem;
  }
  main .model-point .ttl {
    margin-bottom: 4.15rem;
  }
  main .model-schedule .ttl {
    margin-bottom: 4.85rem;
  }
  main .model-figure figcaption {
    margin-top: 5.6rem;
    font-size: 1.5rem;
  }
  /* gap 7.5rem はご指定の値 */
  .model-btns {
    margin-top: 4.65rem;
    gap: 7.5rem 0;
  }
  main .model-btns .btn {
    display: block;
    max-width: 62.4rem;
    height: 5.15rem;
    padding: 0 7rem;
    border-radius: 9999px;
    font-size: 1.8rem;
    line-height: 5.15rem;
    text-align: center;
  }
  main .model-btns .btn .arrow {
    right: 0.85rem;
    width: 4.2rem;
    height: 4.2rem;
  }
  main .model-btns .btn .arrow img {
    width: 2.7rem;
    height: 1.95rem;
  }
  main .news.model-news .ttl {
    padding-top: 7.3rem;
    margin-bottom: 2.3rem;
    text-align: left;
  }
  .news.model-news .news-box {
    padding: 3.8rem 3.7rem 13.8rem;
  }
  .news.model-news article a {
    display: flex;
    align-items: center;
    gap: 0 1.4rem;
    min-height: 10rem;
    padding: 0 8rem 0 3.2rem;
  }
  .news.model-news article a + a {
    padding-top: 0;
  }
  .news.model-news article a time {
    flex: 0 0 auto;
    font-size: 1.6rem;
  }
  .news.model-news article a p {
    flex: 1 1 auto;
    font-size: 1.6rem;
  }
  .news.model-news article a .arrow {
    right: 1.9rem;
    width: 4.6rem;
    height: 4.6rem;
  }
  .news.model-news article a .arrow img {
    width: 2.4rem;
    height: 1.7rem;
  }
  .news.model-news .pagination button,
  .news.model-news .pagination span {
    width: 4.2rem;
    height: 4.2rem;
  }
}
@media screen and (min-width: 1210px) {
  /* 見出しが斜めカットに掛からないよう、超ワイド画面では傾き分まで上余白を広げる */
  .news.model-news {
    padding-top: max(13.5rem, 6.6vw);
  }
  /* 見出し帯の右の青い線（PSD 実測）。上側は固定ヘッダーの下に入る */
  main .under-fv::before {
    content: "";
    position: absolute;
    top: -3.25rem;
    left: calc(50% + 63rem);
    width: 22.05rem;
    height: 12.95rem;
    background: url("../img/under_deco.webp") no-repeat center / contain;
    pointer-events: none;
  }
}
/* お知らせの両脇の線（PSD 実測。縦位置は白カード上端が基準）。余白に入らない 1300px 未満は出さない */
@media screen and (min-width: 1300px) {
  .news.model-news .news-box::before,
  .news.model-news .news-box::after {
    content: "";
    position: absolute;
    width: min(30.65rem, calc(50vw - 59.5rem));
    aspect-ratio: 611 / 451;
    background: url("../img/bg_line.svg") no-repeat center / contain;
    pointer-events: none;
  }
  .news.model-news .news-box::before {
    top: 34.6rem;
    left: max(calc(50% - 93.4rem), calc(50% - 50vw + 0.5rem));
  }
  .news.model-news .news-box::after {
    top: 57.7rem;
    right: max(calc(50% - 96.3rem), calc(50% - 50vw + 0.5rem));
  }
}
