@charset "utf-8";
/* ===============================================================
   お知らせCSS（news.css）
   2026/10/09 UP
=============================================================== */

/* ----------------------------------------------------------------
   お知らせ
   class: news-（ページ固有）
---------------------------------------------------------------- */
.news-index {
  max-width: 1200px;
  margin-inline: auto;
  padding: 64px 40px 80px;
}
/* 絞り込み */
.news-filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.news-filter-fields > .news-filter-field:first-child {
  flex: 0 0 16rem;
  width: 16rem;
  max-width: 100%;
}
.news-filter-fields > .news-filter-field:last-child {
  flex: 1 1 24rem;
  max-width: 42rem;
  min-width: min(100%, 24rem);
}
.news-filter-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-filter-label {
  font-weight: 500;
}
.news-filter-fields .news-filter-label {
  padding-left: 24px;
}
.news-filter-control {
  width: 100%;
  height: 5.6rem;
  padding-inline: 24px;
  border: 1px solid var(--color-black);
  border-radius: 50rem;
  background-color: var(--color-white);
  color: var(--color-black);
}
.news-filter-control::placeholder {
  color: var(--color-gray-500);
}
select.news-filter-control {
  appearance: none;
  padding-right: 48px;
  font-size: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23181818' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  cursor: pointer;
}
.news-filter-search {
  position: relative;
}
.news-filter-search .news-filter-control {
  padding-right: 64px;
  appearance: none;
  background-color: var(--color-white);
}
.news-filter-search .news-filter-control:focus {
  background-color: var(--color-white);
}
.news-filter-search .news-filter-control:-webkit-autofill,
.news-filter-search .news-filter-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-black);
  caret-color: var(--color-black);
  box-shadow: 0 0 0 1000px var(--color-white) inset;
}
.news-filter-search:has(.news-filter-clear:not([hidden])) .news-filter-control {
  padding-right: 100px;
}
.news-filter-clear {
  position: absolute;
  top: 50%;
  right: 56px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  min-width: 28px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--color-gray-100);
  color: var(--color-black);
  cursor: pointer;
  transform: translateY(-50%);
}
.news-filter-clear[hidden] {
  display: none;
}
.news-filter-reset {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
  font-size: 1.4rem;
}
.news-index .news-filter-reset {
  text-align: left;
}
.news-filter-reset a,
.news-filter-reset a:link,
.news-filter-reset a:visited {
  color: #0071bc;
  text-decoration: underline;
}
.news-filter-reset a:hover {
  color: #0071bc;
  opacity: 0.8;
}
.news-filter-submit {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-black);
  color: var(--color-white);
  cursor: pointer;
  transform: translateY(-50%);
}
.news-filter-submit svg {
  display: block;
}
.news-filter-cat {
  margin-top: 28px;
}
.news-filter-cat .news-filter-label {
  margin-bottom: 12px;
  padding-left: 24px;
}
.news-index .news-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 18rem;
  padding-block: 22px;
  padding-inline: 20px;
  white-space: nowrap;
}
.news-index .news-tab-box {
  width: 100%;
  margin-inline: 0;
  gap: 24px;
}
.news-index .news-list {
  margin-top: 36px;
}
.news-list-empty {
  margin: 14% 0 10%;
  text-align: center;
  font-size: 2rem;
}
.news-index .news-link {
  align-items: center;
  padding-block: 36px;
  padding-right: 64px;
  background-position: right 16px bottom 36px;
  background-size: 36px auto;
}
.news-index .news-link .news-date {
  margin-bottom: 0;
}
.news-index .news-link span.news-text {
  flex-basis: 100%;
  width: auto;
  margin-top: 10px;
  margin-right: 0;
}
/* ***************** ▼▼▼デバイス対応 1376px以下 */
@media screen and (max-width: 1376px) {
  .news-index .news-tab {
    min-width: 14rem;
  }
}

/* ***************** ▼▼▼デバイス対応 1024px以下 */
@media screen and (max-width: 1024px) {
  .news-index .news-tab {
    padding-block: 16px;
  }
}

/* ***************** ▼▼▼デバイス対応 896px以下 */
@media screen and (max-width: 896px) {
  .news-filter-fields .news-filter-label, .news-filter-cat .news-filter-label {
    padding-left: 15px;
  }
  .news-filter-fields {
    gap: 20px;
  }
  .news-filter-fields > .news-filter-field:first-child {
    width: 13rem;
    flex: 0 0 13rem;
  }
  .news-filter-control {
    height: 4.5rem;
  }
  .news-filter-submit {
    width: 35px;
    height: 35px;
  }
  .news-filter-clear {
    right: 46px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    aspect-ratio: 1;
  }
  .news-filter-fields > .news-filter-field:last-child {
    max-width: 36rem;
}
  .news-index {
    padding: 25px 20px 50px;
  }
  
  .news-index .news-tab-box {
    flex-wrap: wrap;
    gap: 15px;
    
  }
  .news-index .news-tab {
    flex: 0 0 auto;
    min-width: 11.5rem;
    font-size: 1.5rem;
  }
  .news-list-empty {
    font-size: 1.6rem;
  }
}

/* ***************** ▼▼▼デバイス対応 680px以下 */
@media screen and (max-width: 680px) {
  .news-filter-cat {
    margin-top: 20px;
  }
  .news-index .news-tab {
    min-width: 0;
  }
  .news-index .news-list {
    margin-inline: -20px;
  }
  .news-index .news-link {
    align-items: start;
    padding: 16px 20px;
    grid-template-columns: auto minmax(0, 1fr) 36px;
  }
  .news-index .news-link span.news-text {
    margin-top: 0;
  }
  .news-index .news-link::after {
    width: 36px;
    height: 36px;
    background-size: 36px auto;
  }
}

/* ***************** ▼▼▼デバイス対応 480px以下 */
@media screen and (max-width: 480px) {
  .news-list-empty {
    margin-top: 16%;
    font-size: 1.5rem;
}
}



/* ----------------------------------------------------------------
   お知らせ詳細
   class: news-article-（ページ固有）
---------------------------------------------------------------- */
.news-article {
  width: min(99rem, calc(100% - 80px));
  margin: 56px auto 80px;
}
.news-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.news-article-meta .news-date {
  flex: none;
  width: auto;
  margin-bottom: 0;
}
.news-article-meta .news-cat {
  margin-left: 0;
}
.news-article-ttl {
  margin-bottom: 3rem;
  padding-bottom: 16px;
  border-bottom: 1px solid #d8d8d8;
  font-weight: 700;
}
.news-article-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #d8d8d8;
}
.news-article-prev {
  justify-self: start;
}
.news-article-back {
  justify-self: center;
}
.news-article-next {
  justify-self: end;
}
.news-article-nav a,
.news-article-nav .is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--color-black);
  border-radius: 50rem;
  background-color: var(--color-white);
  line-height: 1;
  transition: background-color var(--transition-default), opacity var(--transition-default);
}
.news-article-nav .is-disabled {
  border-color: var(--color-gray-500);
  color: var(--color-gray-500);
  opacity: 0.6;
  pointer-events: none;
  font-size: 1.6rem;
}
.news-article-nav .is-disabled img {
  opacity: 0.45;
}
.news-article-prev:hover,
.news-article-next:hover {
  background-color: var(--color-gray-200);
  color: var(--color-black);
}
.news-article-prev,
.news-article-next {
  gap: 8px;
}
.news-article-prev img,
.news-article-next img {
  width: 18px;
  height: auto;
}
.news-article-prev img {
  transform: scaleX(-1);
}
.news-article-nav .news-article-back,
.news-article-nav .news-article-back:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}
.news-article-nav .news-article-back:hover {
  opacity: 0.7;
}
@media screen and (max-width: 896px) {
  .news-article {
    width: calc(100% - 40px);
    margin: 30px auto 40px;
  }
  .news-article-ttl {
    margin-bottom: 2rem;
    font-size: 2.2rem;
  }
  .news-article-meta {
    margin-bottom: 10px;
  }
}
@media screen and (max-width: 480px) {
  .news-article-nav {
    gap: 8px;
  }
  .news-article-nav a,
  .news-article-nav .is-disabled {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 1.4rem;
  }
  .news-article-ttl {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    font-size: 2rem;
  }
  .news-article-prev img, .news-article-next img {
    width: 15px;
  }
}

/* ----------------------------------------------------------------
   エディタ
   class: editor（本文。MTのエディタ用）
---------------------------------------------------------------- */
.editor {
  /* flex だと子の float が無効になり、キャプション付き左右寄せで回り込みできない */
  display: flow-root;
  container-type: inline-size;
}
.editor > * {
  min-width: 0;
  max-width: 100%;
}
.editor > *:first-child {
  margin-top: 0;
}
.editor h2, .editor h3 {
  margin: 4rem 0 2.2rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-base-green);
  font-size: 2.2rem;
  font-weight: 700;
}
/* 旧サイトからの引継ぎ */
.editor .wysiwyg h3 {
  background-color: transparent;
  padding: 0;
}
.editor h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2rem 0;
  font-size: 2rem;
  font-weight: 700;
}
.editor h4::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background-color: var(--color-deep-green);
}
.editor h5 {
  margin: 4.2rem 0 1.6rem;
  font-size: 1.8rem;
  font-weight: 700;
}
/* 見出し6: 見出し5と同サイズ＋サイトの緑（段落スタイルに専用設定が無いためCSSで表現） */
.editor h6 {
  margin: 4.2rem 0 1.6rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-deep-green);
}
.editor p {
  margin-bottom: 0;
  line-height: 2;
}
/* .editor p:not(:last-child) {
  margin-bottom: 2rem;
} */
.editor ul,
.editor ol {
  margin: 0 0 1rem;
  padding-left: 2.5rem;
}
.editor ul > li,
.editor ol > li {
  margin-bottom: 1.2rem;
  line-height: 1.4;
}
.editor ul > li:last-child,
.editor ol > li:last-child {
  margin-bottom: 0;
}
.editor ul {
  list-style-type: disc;
}
.editor ol {
  /* padding-left: 1.2em; */
  list-style-type: decimal;
}
.editor ol > li {
  padding-left: 0.2em;
}
.editor table {
  width: 100%;
  margin: 3.6rem 0;
  border-collapse: collapse;
  /* RTE挿入の border="1" を打ち消し、サイトCSSの罫線を使う */
  border: none;
  border-top: 1px solid var(--color-black);
  line-height: 1.4;
}
.editor table th,
.editor table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-black);
  border-left: 1px solid var(--color-black);
  border-right: 1px solid var(--color-black);
  vertical-align: top;
  text-align: left;
}
.editor table th p,
.editor table td p {
  line-height: 1.4;
}
.editor table th {
  background-color: var(--color-gray-200);
  font-weight: 500;
  box-shadow: none;
}
/* 行見出し（左列の th）だけ幅固定。列見出し行の th には当てない */
.editor table tr > th:first-child:has(+ td) {
  width: 15rem;
}
.editor a {
  color: var(--color-link);
  /* text-decoration: underline; */
}
.editor strong,
.editor b {
  font-weight: 700;
}
.editor sup {
  vertical-align: text-top;
  line-height: 1;
}
.editor sub {
  vertical-align: text-bottom;
  line-height: 1;
}
.editor hr {
  margin: 2rem 0;
  border:none;
  height: 0;
  border-top: 1px solid var(--color-black);
}
.editor img {
  max-width: 100%;
  height: auto;
}
.editor figure {
  margin: 3rem 0;
}
.editor figure figcaption {
  margin-top: 12px;
  font-size: 1.5rem;
  font-weight: 500;
}
.editor figure img:not([width]) {
  width: min(100%, 470px);
}
/*
 * MT は style="display:inline-block;float:…" を付ける。
 * インライン display を !important で打ち消さないと回り込み・grid が効かない。
 */
.editor figure:has(img.mt-image-left),
.editor figure.mt-figure-left {
  float: left !important;
  display: block !important;
  /* clear: both; */
  width: max-content;
  max-width: min(50%, 500px);
  min-width: 0;
  margin: 3rem 20px 20px 0;
}
.editor > img.mt-image-left {
  float: left;
  max-width: attr(width px);
  min-width: 0;
  margin: 3rem 20px 20px 0;
}
/* RTE: 同一段落内の左寄せ画像（テキスト回り込み） */
.editor p img.mt-image-left,
.editor li img.mt-image-left {
  float: left;
  margin: 1.5rem 20px 1.5rem 0;
}
.editor figure:has(img.mt-image-right),
.editor figure.mt-figure-right {
  float: right !important;
  display: block !important;
  /* clear: both; */
  width: max-content;
  max-width: min(50%, 500px);
  min-width: 0;
  margin: 3rem 0 20px 20px;
}
.editor > img.mt-image-right {
  float: right;
  max-width: attr(width px);
  min-width: 0;
  margin: 3rem 0 20px 20px;
}
.editor p img.mt-image-right,
.editor li img.mt-image-right {
  float: right;
  margin: 0.75em 0 0.75em 20px;
}
.editor img.mt-image-left[width],
.editor img.mt-image-right[width] {
  width: attr(width px);
  max-width: 100%;
  height: auto;
}
.editor figure:has(img.mt-image-left) img.mt-image-left,
.editor figure:has(img.mt-image-right) img.mt-image-right {
  float: none;
  display: block;
  margin: 0;
}
/*
 * 本文が figure 内に残っている異常HTML用（JS抽出前・未再保存の互換）。
 * 左: [画像/キャプション | 本文]  右: [本文 | 画像/キャプション]
 */
.editor figure.mt-figure-left:has(> p),
.editor figure:has(> img.mt-image-left):has(> p) {
  display: grid !important;
  grid-template-columns: max-content minmax(10rem, 1fr);
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: start;
  float: none !important;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 3rem 0;
}
.editor figure.mt-figure-right:has(> p),
.editor figure:has(> img.mt-image-right):has(> p) {
  display: grid !important;
  grid-template-columns: minmax(10rem, 1fr) max-content;
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: start;
  float: none !important;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 3rem 0;
}
.editor figure.mt-figure-left:has(> p) > img,
.editor figure:has(> img.mt-image-left):has(> p) > img {
  grid-column: 1;
  grid-row: 1;
}
.editor figure.mt-figure-left:has(> p) > figcaption,
.editor figure:has(> img.mt-image-left):has(> p) > figcaption {
  grid-column: 1;
  grid-row: 2;
}
.editor figure.mt-figure-left:has(> p) > p,
.editor figure:has(> img.mt-image-left):has(> p) > p {
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
  margin: 0;
  align-self: start;
}
.editor figure.mt-figure-right:has(> p) > img,
.editor figure:has(> img.mt-image-right):has(> p) > img {
  grid-column: 2;
  grid-row: 1;
}
.editor figure.mt-figure-right:has(> p) > figcaption,
.editor figure:has(> img.mt-image-right):has(> p) > figcaption {
  grid-column: 2;
  grid-row: 2;
}
.editor figure.mt-figure-right:has(> p) > p,
.editor figure:has(> img.mt-image-right):has(> p) > p {
  grid-column: 1;
  grid-row: 1 / -1;
  min-width: 0;
  margin: 0;
  align-self: start;
}
/* キャプションなしの左右画像が隣接するときも、続きの本文は下から */
.editor > img.mt-image-left + img.mt-image-right + *,
.editor > img.mt-image-right + img.mt-image-left + *,
.editor figure:has(img.mt-image-left) + figure:has(img.mt-image-left) + *:not(figure):not(img) {
  clear: both;
}
.editor img.mt-image-center {
  display: block;
  margin-right: auto;
  margin-left: auto;
}
.editor figure:has(img.mt-image-center) {
  display: block;
  clear: both;
  width: fit-content;
  max-width: min(100%, 470px);
  margin-right: auto;
  margin-left: auto;
}
.editor figure:has(img.mt-image-center) img {
  width: auto;
  max-width: 100%;
}
.editor figure img + img {
  margin-top: 20px;
}
.editor figure:has(img.mt-image-center) figcaption {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* 引用（文字サイズは段落 p と同じ 1.6rem。未指定だと html=62.5% 基準で小さく見える） */
.editor blockquote {
  position: relative;
  border-left: 5px solid var(--color-gray-300);
  padding-left: 20px;
  margin-left: 5px;
  font-size: 1.6rem;
  line-height: 2;
}
.editor blockquote p {
  position: relative;
  font-size: 1.6rem;
  line-height: 1.8;
}

/* 回り込み解除 */
.editor h2,
.editor h3,
.editor h4,
.editor h5,
.editor h6,
.editor table,
.editor blockquote,
.editor ul,
.editor ol,
.editor figure.mt-figure-left p,
.editor figure.mt-figure-right p {
  clear: both;
}

@container (max-width: 959px) {
  .editor img.mt-image-left[width],
  .editor img.mt-image-right[width] {
    width: calc(attr(width px) * (100cqi - 24px) / 960px);
  }
  .editor figure:has(img.mt-image-left),
  .editor figure.mt-figure-left,
  .editor > img.mt-image-left,
  .editor figure:has(img.mt-image-right),
  .editor figure.mt-figure-right,
  .editor > img.mt-image-right {
    max-width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .editor {
    display: flow-root;
  }
  .editor ul,
  .editor ol {
    padding-left: 1.6rem;
  }
  .editor img.mt-image-left,
  .editor img.mt-image-right {
    float: none;
    margin-right: auto;
    margin-left: auto;
  }
  .editor img.mt-image-left[width],
  .editor img.mt-image-right[width] {
    width: attr(width px);
    max-width: 100%;
  }
  .editor figure:has(img.mt-image-left),
  .editor figure.mt-figure-left,
  .editor figure:has(img.mt-image-right),
  .editor figure.mt-figure-right {
    float: none !important;
    display: block !important;
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }
  .editor figure.mt-figure-left:has(> p),
  .editor figure:has(> img.mt-image-left):has(> p),
  .editor figure.mt-figure-right:has(> p),
  .editor figure:has(> img.mt-image-right):has(> p) {
    display: block !important;
    width: fit-content;
    max-width: 100%;
  }
  .editor figure.mt-figure-left:has(> p) > p,
  .editor figure:has(> img.mt-image-left):has(> p) > p,
  .editor figure.mt-figure-right:has(> p) > p,
  .editor figure:has(> img.mt-image-right):has(> p) > p {
    grid-column: auto;
    grid-row: auto;
    margin-top: 1em;
  }
}

/* ----------------------------------------------------------------
   ブレイクポイント  
---------------------------------------------------------------- */
@media screen and (max-width: 1376px) {
}
@media screen and (max-width: 1024px) {
}
@media screen and (max-width: 896px) {
}
@media screen and (max-width: 480px) {
}
