@charset "UTF-8";
/* ==========================================================================
   TSX-61 お知らせ機能
   - ヘッダー（固定バー・下層ページのナビ）の「お知らせ」追加
   - TOP（メインビジュアル内のナビ5項目、お知らせ5件）
   - お知らせ一覧（/news/）・詳細（/news/YYYYMMDD/）・本文モジュール
   ========================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   共通：一覧の行（TOP・/news/）
   -------------------------------------------------------------------------- */
.news-inner {
  width: 970px;
  margin: 0 auto;
}

.news-list {
  background: #FFF;
}

.news-list--border {
  border-top: 1px solid #CCC;
}

.news-list__item {
  border-bottom: 1px solid #CCC;
}

a.news-list__link,
a.news-list__link:link,
a.news-list__link:visited {
  position: relative;
  display: flex;
  align-items: center;
  padding: 24px 56px 24px 24px;
  color: #000;
  text-decoration: none;
}

a.news-list__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 26px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #468FC5;
  border-right: 2px solid #468FC5;
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.3s ease;
}

.news-list__date {
  flex: 0 0 130px;
  font-family: 'Akshar', sans-serif;
  font-size: 16.8px;
  line-height: 25.6px;
  letter-spacing: 0.08em;
  color: #468FC5;
}

.news-list__title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  transition: color 0.3s ease;
}

a.news-list__link:hover .news-list__title {
  color: #468FC5;
}

a.news-list__link:hover::after {
  right: 22px;
}

.news-empty {
  padding: 40px 0;
  text-align: center;
}

/* ボタン（TOP「お知らせ一覧へ」、詳細「お知らせ一覧へ戻る」、本文の a.news-btn） */
a.news-btn,
a.news-btn:link,
a.news-btn:visited {
  display: block;
  width: 324px;
  margin: 0 auto;
  padding: 15px;
  border: 1px solid #468FC5;
  border-radius: 100px;
  background: #468FC5;
  color: #FFF;
  font-size: 19.2px;
  font-weight: 500;
  line-height: 25.6px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

a.news-btn::after {
  content: "›";
  margin-left: 12px;
}

a.news-btn--back::before {
  content: "‹";
  margin-right: 12px;
}

a.news-btn--back::after {
  content: none;
}

a.news-btn:hover {
  background: #FFF;
  color: #468FC5;
}

/* パンくず */
.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 500;
  line-height: 25.6px;
  color: #666;
}

.news-breadcrumb__item + .news-breadcrumb__item::before {
  content: "›";
  margin: 0 10px;
  color: #999;
}

.news-breadcrumb__item a,
.news-breadcrumb__item a:link,
.news-breadcrumb__item a:visited {
  color: #468FC5;
}

.news-breadcrumb__item a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   一覧・詳細ページ
   -------------------------------------------------------------------------- */
.news-main {
  background: #F7F7F7;
}

main .news-section {
  padding: 24px 0 100px;
}

/* ページ送り */
.news-pagination {
  margin-top: 48px;
}

.news-pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.news-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid #468FC5;
  background: #FFF;
  color: #468FC5;
  font-family: 'Akshar', sans-serif;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-pagination a.page-numbers:link,
.news-pagination a.page-numbers:visited {
  color: #468FC5;
}

.news-pagination a.page-numbers:hover,
.news-pagination .page-numbers.current {
  background: #468FC5;
  color: #FFF;
}

.news-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: #468FC5;
}

/* 詳細 */
.news-detail {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.news-article {
  padding: 50px 60px 60px;
  border-top: 3px solid #468FC5;
  background: #FFF;
}

.news-article__head {
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid #CCC;
}

.news-article__date {
  display: block;
  font-family: 'Akshar', sans-serif;
  font-size: 16.8px;
  line-height: 25.6px;
  letter-spacing: 0.08em;
  color: #468FC5;
}

.news-article__title {
  margin-top: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 38px;
}

/* --------------------------------------------------------------------------
   本文モジュール（.news-body）
   ブロックエディタ（段落・見出し・リスト・表・画像・グループ・ボタン）の出力にも効くようにしている
   -------------------------------------------------------------------------- */
.news-body {
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: #000;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news-body > * + * {
  margin-top: 16px;
}

.news-body p {
  margin: 0;
}

.news-body > * + p {
  margin-top: 16px;
}

/* 02 テキスト装飾 */
.news-body strong,
.news-body b {
  font-weight: 700;
}

.news-body .news-marker {
  background: linear-gradient(transparent 8%, #DCEBF7 8%, #DCEBF7 92%, transparent 92%);
  font-weight: 700;
}

.news-body a:not(.news-btn):not(.wp-block-button__link),
.news-body a:not(.news-btn):not(.wp-block-button__link):link,
.news-body a:not(.news-btn):not(.wp-block-button__link):visited {
  color: #468FC5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-body a:not(.news-btn):not(.wp-block-button__link):hover {
  text-decoration: none;
}

/* 03 大見出し h4（ブロックエディタの h2 も同じ見た目） */
.news-body h2,
.news-body h4 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0.08em;
}

.news-body h2::before,
.news-body h4::before {
  content: "";
  flex: 0 0 24px;
  height: 2px;
  background: #CCC;
}

/* 04 中見出し h5（ブロックエディタの h3 も同じ見た目） */
.news-body h3,
.news-body h5 {
  padding: 2px 0 2px 14px;
  border-left: 4px solid #468FC5;
  font-size: 16.8px;
  font-weight: 700;
  line-height: 28.8px;
}

.news-body > * + h2,
.news-body > * + h4 {
  margin-top: 56px;
}

.news-body > * + h3,
.news-body > * + h5 {
  margin-top: 40px;
}

/* 05 箇条書き ul / 06 番号付きリスト ol */
.news-body ul,
.news-body ol {
  padding-left: 24px;
}

.news-body ul > li {
  list-style: disc;
}

.news-body ol > li {
  list-style: decimal;
}

.news-body li::marker {
  color: #000;
}

/* 07 注釈 */
.news-body .news-note {
  font-size: 13.6px;
  line-height: 25.6px;
  color: #666;
}

.news-body > * + .news-note {
  margin-top: 8px;
}

/* 08 表（2列） / 09 表（複数列） */
.news-body figure.wp-block-table {
  margin: 0;
}

.news-body > * + figure.wp-block-table {
  margin-top: 16px;
}

.news-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 25.6px;
}

.news-body th,
.news-body td {
  padding: 13px 16px;
  border: 1px solid #CCC;
  vertical-align: middle;
  text-align: left;
}

.news-body th {
  width: 30%;
  background: #438FC4;
  color: #FFF;
  font-weight: 500;
  text-align: center;
}

.news-body td {
  background: #FFF;
}

/* 長い URL でセルが広がらないように */
.news-body td a {
  word-break: break-all;
}

.news-body table.news-table--col th,
.news-body table.news-table--col td,
.news-body .news-table--col table th,
.news-body .news-table--col table td {
  width: auto;
  text-align: center;
}

.news-body table.news-table--col tbody tr > :first-child,
.news-body .news-table--col table tbody tr > :first-child {
  background: #F0F6FB;
  color: #000;
}

.news-body table.news-table--col thead th,
.news-body .news-table--col table thead th,
.news-body table.news-table--col thead td,
.news-body .news-table--col table thead td {
  background: #438FC4;
  color: #FFF;
}

/* 10 画像（キャプション付き） */
.news-body img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.news-body figure {
  margin: 0;
}

.news-body figure.news-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.news-body figcaption {
  margin-top: 7px;
  font-size: 12.8px;
  line-height: 22.4px;
  color: #666;
  text-align: center;
}

/* 11 囲みボックス（ポイント） / 12 囲みボックス（グレー） */
.news-body .news-box {
  padding: 23px 28px 24px;
  border: 1px solid #468FC5;
  background: #F0F6FB;
}

.news-body .news-box > * + *,
.news-body .news-box > .wp-block-group__inner-container > * + * {
  margin-top: 8px;
}

.news-body .news-box__title {
  font-weight: 700;
  line-height: 28.8px;
  color: #468FC5;
}

.news-body .news-box--gray {
  border-color: #CCC;
  background: #F7F7F7;
}

.news-body .news-box--gray .news-box__title {
  color: #333;
}

/* 13 ボタン（ブロックエディタのボタンに news-btn を付けた場合も同じ見た目） */
.news-body > * + .news-btn,
.news-body > * + .wp-block-buttons {
  margin-top: 24px;
}

.news-body .wp-block-buttons {
  justify-content: center;
}

.news-body .news-btn .wp-block-button__link {
  display: block;
  width: 324px;
  max-width: 100%;
  padding: 15px;
  border: 1px solid #468FC5;
  border-radius: 100px;
  background: #468FC5;
  color: #FFF;
  font-size: 19.2px;
  font-weight: 500;
  line-height: 25.6px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-body .news-btn .wp-block-button__link::after {
  content: "›";
  margin-left: 12px;
}

.news-body .news-btn .wp-block-button__link:hover {
  background: #FFF;
  color: #468FC5;
}

/* 14 お問い合わせ誘導 */
.news-body .news-contact {
  padding: 32px 24px;
  border: 1px solid #468FC5;
  background: #FFF;
  text-align: center;
}

.news-body .news-contact > *,
.news-body .news-contact > .wp-block-group__inner-container > * {
  margin: 0;
}

.news-body .news-contact__title {
  font-size: 17.6px;
  font-weight: 700;
  line-height: 32px;
  color: #468FC5;
}

.news-body .news-contact__tel {
  font-family: 'Akshar', sans-serif;
  font-size: 38.4px;
  line-height: 51.2px;
  letter-spacing: 1.6px;
}

.news-body .news-contact .news-contact__tel a,
.news-body .news-contact .news-contact__tel a:link,
.news-body .news-contact .news-contact__tel a:visited,
.news-body .news-contact .news-contact__tel a:hover {
  color: #438FC4;
  text-decoration: none;
}

.news-body .news-contact__time {
  font-size: 13.6px;
  line-height: 25.6px;
  color: #666;
}

/* モジュール確認ページ（/news/module/）の見出しラベル */
.news-body .news-label {
  display: inline-block;
  padding: 0 8px;
  border: 1px dashed #BBB;
  font-size: 11px;
  font-weight: 400;
  line-height: 20px;
  color: #999;
}

.news-body > * + .news-label {
  margin-top: 64px;
}

.news-body > .news-label + * {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   TOP：お知らせ5件（お問い合わせの上）
   -------------------------------------------------------------------------- */
main section#news {
  overflow: hidden;
  padding-bottom: 100px;
  background-color: #F7F7F7;
}

main section#news .ttl {
  padding-bottom: 40px;
}

main section#news .news-btn {
  margin-top: 50px;
}

/* ==========================================================================
   PC
   ========================================================================== */
@media screen and (min-width: 768px) {

  /* 下層ページのヘッダーナビ：ホームを外してお知らせを追加（5項目） */
  body header nav#sec ul li:nth-child(n) {
    width: 229px;
    height: 100px;
    padding: 0;
    text-align: center;
  }

  body header nav#sec ul li:nth-child(n) a {
    margin-top: 35px;
    padding-left: 36px;
  }

  body header nav#sec ul li:nth-child(n) a img {
    top: 33px;
    left: 34px;
  }

  body header nav#sec ul li:nth-child(n) a span {
    width: auto;
    padding-top: 0;
    font-family: 'Droid Serif', serif;
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1rem;
  }

  /* スクロール後の固定バー：ホームを外してお知らせを追加（5項目） */
  body .cb-header .inner #subNav ul li:nth-child(n) img {
    margin-top: -5px;
    margin-right: 10px;
  }

  /* TOP のメインビジュアル内のナビ（固定ページ本文）：5項目のときだけ5等分 */
  main #mv nav#top ul li:first-child:nth-last-child(5),
  main #mv nav#top ul li:first-child:nth-last-child(5) ~ li {
    width: 20%;
  }

  main #mv nav#top ul li:first-child:nth-last-child(5) a,
  main #mv nav#top ul li:first-child:nth-last-child(5) ~ li a {
    padding-left: 36px;
  }

  main #mv nav#top ul li:first-child:nth-last-child(5) img,
  main #mv nav#top ul li:first-child:nth-last-child(5) ~ li img {
    left: 34px;
  }
}

/* ==========================================================================
   SP
   ========================================================================== */
@media screen and (max-width: 768px) {

  /* 下層ページのヘッダーナビ（5項目） */
  body header nav#sec ul li:nth-child(n) {
    display: block;
    width: 20%;
    padding: 10px 0;
  }

  body header nav#sec ul li:nth-child(n):last-child {
    border-right: none;
  }

  body header nav#sec ul li:nth-child(n) img {
    width: auto;
    height: 22px;
    margin: 0 auto 8px;
  }

  body header nav#sec ul li:nth-child(n) a {
    font-size: 0.65rem;
    line-height: 0.8rem;
    letter-spacing: -0.02em;
  }

  /* TOP のメインビジュアル内のナビ：5項目のときだけ5等分 */
  main #mv nav#top ul li:first-child:nth-last-child(5),
  main #mv nav#top ul li:first-child:nth-last-child(5) ~ li {
    width: 20%;
    padding: 10px 0;
  }

  main #mv nav#top ul li:first-child:nth-last-child(5) img,
  main #mv nav#top ul li:first-child:nth-last-child(5) ~ li img {
    width: auto;
    height: 22px;
    margin: 0 auto 8px;
  }

  main #mv nav#top ul li:first-child:nth-last-child(5) a,
  main #mv nav#top ul li:first-child:nth-last-child(5) ~ li a {
    font-size: 0.65rem;
    letter-spacing: -0.02em;
  }

  .news-inner {
    width: 90%;
  }

  a.news-list__link,
  a.news-list__link:link,
  a.news-list__link:visited {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 40px 16px 16px;
  }

  a.news-list__link::after {
    right: 18px;
  }

  a.news-list__link:hover::after {
    right: 18px;
  }

  .news-list__date {
    flex: none;
    font-size: 15.2px;
  }

  .news-list__title {
    margin-top: 6px;
    font-size: 14.4px;
    line-height: 24px;
  }

  a.news-btn,
  a.news-btn:link,
  a.news-btn:visited {
    width: 75%;
    padding: 10px;
    font-size: 1rem;
  }

  main .news-section {
    padding: 16px 0 60px;
  }

  .news-breadcrumb {
    margin-bottom: 16px;
  }

  .news-pagination {
    margin-top: 32px;
  }

  .news-pagination__list {
    gap: 6px;
  }

  .news-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .news-detail {
    gap: 30px;
  }

  .news-article {
    padding: 30px 20px 40px;
  }

  .news-article__head {
    padding-bottom: 20px;
    margin-bottom: 32px;
  }

  .news-article__date {
    font-size: 15.2px;
  }

  .news-article__title {
    margin-top: 8px;
    font-size: 19.2px;
    line-height: 1.6;
  }

  .news-body {
    font-size: 15px;
    line-height: 1.9;
  }

  .news-body h2,
  .news-body h4 {
    gap: 12px;
    font-size: 17.6px;
    line-height: 1.6;
  }

  .news-body h2::before,
  .news-body h4::before {
    flex-basis: 18px;
  }

  .news-body h3,
  .news-body h5 {
    font-size: 16px;
    line-height: 1.6;
  }

  .news-body > * + h2,
  .news-body > * + h4 {
    margin-top: 40px;
  }

  .news-body > * + h3,
  .news-body > * + h5 {
    margin-top: 32px;
  }

  .news-body table {
    font-size: 14px;
    line-height: 1.6;
  }

  .news-body th,
  .news-body td {
    padding: 10px 12px;
  }

  .news-body th {
    width: 36%;
  }

  /* 09 表（複数列）はスマホで横スクロール */
  .news-body table.news-table--col {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .news-body .news-table--col:not(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .news-body .news-table--col:not(table) table {
    min-width: 560px;
    white-space: nowrap;
  }

  .news-body figure.news-figure img {
    max-height: 220px;
  }

  .news-body .news-box {
    padding: 18px 16px;
  }

  .news-body .news-contact {
    padding: 24px 16px;
  }

  .news-body .news-contact__tel {
    font-size: 30px;
    line-height: 1.4;
  }

  .news-body .news-btn .wp-block-button__link {
    width: 75%;
    padding: 10px;
    font-size: 1rem;
  }

  .news-body > * + .news-label {
    margin-top: 48px;
  }

  main section#news {
    padding-bottom: 60px;
  }

  main section#news .ttl {
    padding-bottom: 20px;
  }

  main section#news .news-btn {
    margin-top: 30px;
  }
}
