/* ===== トップページ専用（お知らせ最上部・県内先進事例） ===== */

/* top1（介護テクノロジー導入ブロック）：SPのみ上の要素に食い込ませる。
   top.css の .top1 は .map 付きのため直接編集せず、後読みの front.css で上書き。
   @744 以降は top.css が margin-top:-6.6rem を指定するため、SP(<744)限定で適用 */
@media screen and (max-width: 743.98px) {
  .top1 {
    margin-top: -4rem;
  }
}

/* お知らせ（FV直後・青背景＋白カード） */
.news {
  background: linear-gradient(to right, #085dbb 0%, #01a0c7 100%);
  /* 上辺のみ左下がり・下辺は水平。斜めの高さは PSD 実測の vw（FV の写真の高さと揃える。top_preload.css の --fv-slant） */
  clip-path: polygon(0 11.07vw, 100% 0, 100% 100%, 0 100%);
  padding: 15.45rem 0 8rem;
  margin-top: 0;
}
.news .ttl {
  color: #fff;
  text-align: center;
  padding-top: 3.5rem;
  margin-bottom: 0.8rem;
}
.news-box {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.8rem 3rem;
}
.news .list {
  margin: 0;
}
/* 日付・タイトルは Medium（Figma node 1:372 準拠）。body は 500 だが継承に依らず明示 */
.news .list a time,
.news .list a p {
  font-weight: 500;
}
/* 最下段の記事にも下線を残す（Figma 1:372：最終行の下にも区切り線あり） */
.news-box .btn {
  margin-top: 2.4rem;
}

/* 県内先進事例（白背景・ピンク箱・白カード） PSD「CSSをコピー」準拠 rem=PSD/20 */
.case {
  background: #fff;
  padding: 8rem 0 9rem;
}
.case .ttl {
  text-align: left;
  color: #085dbb;
  margin-left: 1rem;
}
.case-box {
  background-color: #f0748b;
  border-radius: 4rem;
  padding: 3rem 1.6rem 3rem;
  position: relative;
}
.case-box__body {
  position: relative;
}
/* SP: ラベル「成果」は白カード上に横並び・中央（744+で左の縦書きに戻す） */
.case-box__label {
  text-align: center;
  color: #2c2c2c;
  font-weight: bold;
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  margin-bottom: 1.2rem;
}
/* 見出し：濃グレー＋青ドーナツ● */
.case-box__ttl {
  display: flex;
  align-items: center;
  gap: 0 1rem;
  color: #2c2c2c;
  font-weight: bold;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}
.case-box__ttl::before {
  content: "";
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: solid 0.5rem #085dbb;
}
.case-box__lead {
  color: #2c2c2c;
  margin-bottom: 2rem;
  line-height: 2;
}
.case-inner {
  background: #fff;
  border-radius: 4rem;
  padding: 2.4rem 1.6rem 2.8rem;
}

/* 年度バッジ：青枠の吹き出しSVG（下辺右寄りのしっぽ＝ご指定SVGと同一形状の support-catch-balloon.svg）。
   旧・border＋::after の菱形しっぽは廃止。文字は Inter 指定（※日本語はCJKのため実表示は Noto Sans JP 継続。Inter は未同梱）。
   下paddingはしっぽ分（SVGの下辺123〜156＝約20%）を確保し、本文を枠内に収める */
.case-year {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2rem;
  color: #085dbb;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: bold;
  /* SP: 「令和7年度　◯◯事業所」を1行に収める（事業所名は1.22em拡大のため、
     1.8rem/2.4rem では長い事業所名が折返す）。@744/@1210 は font-size・padding を上書き済み */
  font-size: 1.6rem;
  line-height: 1.4;
  text-align: center;
  padding: 1rem 1.6rem 2.6rem;
  background: url(../img/support-catch-balloon.svg) center/100% 100% no-repeat;
}
/* 事業所名は年度表記より一回り大きく（Figma: 46.3px→56.4px ≒ 1.22倍） */
.case-year__name {
  font-size: 1.22em;
}
.case-year:not(:first-child) {
  margin-top: 3rem;
}
.case-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.case-list > li {
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
}
.case-list h4 {
  display: flex;
  align-items: center;
  gap: 0 1rem;
  color: #085dbb;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.case-no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #085dbb;
  color: #fff;
  font-size: 1.4rem;
}
.case-list p {
  line-height: 2;
  color: #2c2c2c;
}
.case-list p + p {
  margin-top: 0.4rem;
}
.case-note {
  line-height: 2;
  color: #2c2c2c;
  margin-bottom: 1rem;
}

.case .btn {
  width: 100%;
  max-width: 62rem;
  height: auto;
  line-height: 1.4;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 1.2rem 4rem;
  text-align: center;
  margin: 1.6rem auto 0;
}

/* SP(<744)のみ：県内先進事例ボックスの角丸を左上以外小さく（@1210 は 16rem 4rem 4rem 4rem で上書き済み） */
@media screen and (max-width: 743.98px) {
  .case-box {
    border-radius: 4rem 1rem 1rem 1rem;
  }
  /* SPのみ：資料ボタンは左寄せ・右に矢印ぶんの余白（744px以上は中央寄せのまま） */
  .case .btn {
    padding: 1.2rem 4rem 1.2rem 2rem;
    text-align: left;
    border-radius: 45px;
  }
}

@media screen and (min-width: 744px) {
  .news {
    padding: calc(6.48vw + 0.2rem) 0 11rem;
    clip-path: polygon(0 6.48vw, 100% 0, 100% 100%, 0 100%);
  }
  .news .ttl {
    text-align: left;
    padding-top: 6rem;
    margin-bottom: 3.7rem;
  }
  .news-box {
    padding: 4rem 5rem 5rem;
  }
  /* 日付を独立ブロック化し固定幅に（top.css の .news article a time:width:auto を上書き。
     front.css は top.css の後に読み込まれ、同詳細度で後勝ち） */
  .news article a time {
    display: block;
    width: 14rem;
  }
  .case {
    padding: 12rem 0 13rem;
  }
  .case .ttl {
    margin-left: 3.2rem;
  }
  .case-box {
    padding: 5rem 3rem;
  }
  .case-box__label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    left: 0.4rem;
    font-size: 2.6rem;
    letter-spacing: 0.2em;
    margin-bottom: 0;
  }
  .case-box__ttl {
    font-size: 2.6rem;
    padding-left: 4.4rem;
  }
  .case-box__ttl::before {
    width: 2.4rem;
    height: 2.4rem;
    border-width: 0.7rem;
  }
  .case-box__lead {
    padding-left: 4.4rem;
    font-size: 1.6rem;
  }
  /* 744px〜は「成果」を左の縦書きにするので、白カードをその分だけ右へ（見出しの字下げ 4.4rem と揃える）。
     PC（1210px〜）は下の 9.2rem で上書き */
  .case-inner {
    margin-left: 4.4rem;
    padding: 4rem 5rem 4.5rem;
  }
  .case-year {
    font-size: 2.2rem;
    padding: 1.4rem 4rem 3.4rem;
    min-width: 50rem;
  }
  .case-list h4 {
    font-size: 2rem;
  }
  .case-no {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 1.8rem;
  }
  .case-list p {
    font-size: 1.6rem;
  }
  .case-note {
    font-size: 1.6rem;
  }
  /* 左右 6rem: 右端の矢印（幅4rem・right .75rem）に文字が重ならないように。左右対称にして文字は中央のまま */
  .case .btn {
    max-width: 62rem;
    font-size: 1.6rem;
    padding: 1.2rem 6rem;
  }
  /* 資料ボタンは全角スペースの位置でだけ折り返す（SPは1行の文字数が足りず、はみ出すので対象外） */
  .case .btn .case-btn-seg {
    white-space: nowrap;
  }
}
/* PC（1210px以上）: PSD「CSSをコピー」の厳密値（rem = PSD px / 20） */
@media screen and (min-width: 1210px) {
  .case-box {
    /* .support-group と同じ角丸（左上のみ大きく） */
    border-radius: 16rem 4rem 4rem 4rem;
    padding: 10rem 7.15rem 7rem 6.6rem;
  }
  .case-box__label {
    font-size: 3.1rem;
    left: 0;
    letter-spacing: 0.2em;
  }
  .case-box__ttl {
    font-size: 3.1rem;
    gap: 0 1.6rem;
    padding-left: 0;
    margin-bottom: 1.2rem;
  }
  .case-box__ttl::before {
    width: 3rem;
    height: 3rem;
    border-width: 1rem;
  }
  .case-box__lead {
    font-size: 1.8rem;
    padding-left: 4.6rem;
    margin-bottom: 2rem;
  }
  .case-inner {
    border-radius: 4rem;
    margin-left: 9.2rem;
    padding: 5rem 6rem 7.5rem;
  }
  .case-year {
    font-size: 2.3rem;
    padding: 1.8rem 4rem 3.8rem;
    min-width: 53rem;
  }
  .case-list h4 {
    font-size: 2rem;
    gap: 0 1.2rem;
  }
  .case-no {
    width: 3.9rem;
    height: 3.9rem;
    font-size: 2.5rem;
  }
  .case-list p {
    font-size: 1.8rem;
  }
  .case-note {
    font-size: 1.8rem;
  }
  /* PSDは 62rem だが、矢印をよける余白（左右6rem）を取ると最長の「西鳳会…資料」（約52rem）が収まらず「資/料」で折れるため 68rem に広げる */
  .case .btn {
    max-width: 68rem;
    font-size: 1.8rem;
    height: 5rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* 「Smart Care Work」の英語ラベルのみ：文言が長く固定幅19remだと見切れるため、内容幅＋左右paddingで可変に */
@media screen and (min-width: 744px) {
  .ttl[data-en="Smart Care Work"]::before {
    font-size: 2.1rem;
    width: max-content;
    height: 2.7rem;
    line-height: 2.7rem;
    padding: 0 1rem;
  }
}

/* 「当センターの支援」「県内先進事例」の両脇の線（PSD 1_index2026 実測 ÷ 20。SP の PSD には無い）。
   縦位置は見出しラベルの上端が基準。1920px で PSD の位置になり、狭い画面では左右の余白に収まるまで縮める。
   余白に入らない 1300px 未満では出さない */
@media screen and (min-width: 1300px) {
  .support .container,
  .case .container {
    position: relative;
  }
  /* 事例の左の線は .case の上端からはみ出し、.support(z-index:150)の白背景に隠れる。
     .case の z-index を上げると次の .center の斜めが隠れるので、.support 側から出す */
  .support .container::before,
  .support .container::after,
  .support::after,
  .case .container::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;
  }
  .support .container::before,
  .support::after {
    left: max(calc(50% - 94.45rem), calc(50% - 50vw + 0.5rem));
  }
  .support .container::after,
  .case .container::after {
    right: max(calc(50% - 95.25rem), calc(50% - 50vw + 0.5rem));
  }
  .support .container::before {
    top: -6.35rem;
  }
  .support .container::after {
    top: 43.3rem;
  }
  /* .case の padding-top 12rem の見出しラベルから -14.7rem ＝ .support の下端から -2.7rem */
  .support::after {
    top: calc(100% - 2.7rem);
  }
  .case .container::after {
    top: 35.3rem;
  }
}

/* 県内先進事例: 準備中の資料ボタン（リンクなし・矢印なし）。押せないので中央寄せ・押し込みアニメなし */
.case .btn.case-btn-pending {
  cursor: default;
}
/* SPは資料ボタンを左寄せ＋右に矢印ぶんの余白にしているが、矢印が無いので中央寄せ（左右の合計余白は同じ 6rem で幅を揃える） */
@media screen and (max-width: 743.98px) {
  .case .btn.case-btn-pending {
    padding-left: 3rem;
    padding-right: 3rem;
    text-align: center;
  }
}
.case .btn.case-btn-pending:hover {
  box-shadow: 0 5px 0 #085899;
  transform: none;
}
