/* ======================================
お知らせ
========================================= */
.s-news__wrapper {
  margin-bottom: 160px;
}

.s-news__content {
  max-width: 900px;
  width: 90%;
  margin: 0px auto;
}

.s-news__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border-left: solid 4px var(--c-ink);
  padding-left: 35px;
}

.s-news__cat {
  background-color: var(--c-ink);
  font-size: 14px;
  color: #fff;
  text-align: center;
  padding: 5px 0px 7px;
  width: 105px;
  margin: 0px 37px 0px 21px;
}

.s-news__title {
  width: 100%;
  font-size: 28px;
  font-weight: 800;
  margin-top: 25px;
}

.s-news__text {
  line-height: 2;
  margin: 55px auto 85px;
}

.s-news__wrapper .all__button a::after {
  right: auto;
  left: 13px;
  transform: translateY(7%) translateX(10%) rotate(225deg);
}

.s-news__wrapper .all__button a:hover::after {
  left: 8px;
}

@media screen and (max-width: 768px) {
  .s-news__wrapper {
    margin: 6% 0px 22%;
  }

  .s-news__top {
    border-left: solid 1.4vw var(--c-ink);
    padding-left: 5%;
  }

  .s-news__cat {
    font-size: 3.7vw;
    font-weight: 400;
    padding: 1.6% 0%;
    width: 34%;
    margin: 0px 0px 0px 6%;
  }

  .s-news__title {
    font-size: 5.6vw;
    letter-spacing: 0.7vw;
    line-height: 1.6;
    margin-top: 5%;
  }

  .s-news__text {
    margin: 10.5% auto 14%;
  }
}


/* =========================================================
   2026-08-24 クライアント指示（お知らせ 記事詳細）
   ---------------------------------------------------------
   「お知らせ詳細のコンテンツサイズは1200pxくらいの幅にして中央寄せに」

   共通の .main_contents .section は画面いっぱいに広がる指定
   （width:100% / max-width:100% / 左右 clamp(24px,5vw,96px)）なので、
   ワイドな画面では本文が端から端まで伸びて1行が長くなりすぎていた。

   記事詳細のときだけ器を絞る。目印は single-news.php で付けた
   .main_contents--news-single。
   2026-08-24（2回目のご指示）「メイン記事の横幅を max-width 1000px に」→ 1280px から 1000px へ。
   狭い画面では余白が 5vw まで縮むので、そのまま1カラムで収まる。
   共通側の指定を打ち消すため html body を前置して詳細度を上げている。
   ========================================================= */

html body .main_contents--news-single .section {
  box-sizing: border-box;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 5vw, 40px);
  padding-right: clamp(24px, 5vw, 40px);
}

/* 本文が入るセクションは id が付いているぶん指定の力が強いので、
   ここでも同じ幅を書いておかないと上の1000pxに勝ってしまい、
   本文だけ画面いっぱいに広がってしまう。 */
html body .main_contents--news-single #tinymce {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(24px, 5vw, 40px);
  padding-right: clamp(24px, 5vw, 40px);
}

/* 本文に貼られた写真や表が器からはみ出さないようにする */
html body .main_contents--news-single #tinymce img,
html body .main_contents--news-single #tinymce table {
  max-width: 100%;
  height: auto;
}

/* 記事の中に置かれた表・箇条書きが左に寄りすぎる件。
   （共通側で .outline-list 等には当て済みだが、記事本文の素の <table> <ul> は対象外）
   かたまりごと中央へ寄せ、中の文字は左のままにする。 */
html body .main_contents--news-single #tinymce > table,
html body .main_contents--news-single #tinymce > ul,
html body .main_contents--news-single #tinymce > ol {
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
