@charset "UTF-8";
/* ==========================================================================
   ニュース詳細ページ（single.php）専用スタイル
   ========================================================================== */

.news-single-page {
  --ns-text: #222;
  --ns-sub: #888;
  --ns-line: #e5e5e5;
  --ns-bg-soft: #f6f5f3;
  --ns-accent: #e50042;
  --ns-gothic: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', '游ゴシック Medium', YuGothic, 'Yu Gothic', 'メイリオ', Meiryo, sans-serif;
  background: #fff;
}

.news-single {
  padding: 40px 20px 0;
  color: var(--ns-text);
  font-family: var(--ns-gothic);
}

/* ---------- 記事 ---------- */
.news-single__article {
  max-width: 760px;
  margin: 0 auto;
}

.news-single__head {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--ns-line);
}

.news-single__label {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.3em;
  line-height: 1;
  color: var(--ns-accent);
}

.news-single__title {
  margin: 0;
  font-family: var(--ns-gothic);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ns-text);
}

.news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
}

.news-single__date {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ns-sub);
  line-height: 1;
}

a.news-single__cat {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--ns-text);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ns-text);
  text-decoration: none;
  transition: background-color .3s, color .3s;
}

a.news-single__cat:hover {
  background: var(--ns-text);
  color: #fff;
  text-decoration: none;
}

.news-single__eyecatch {
  margin: 0 0 40px;
  text-align: center;
}

.news-single__eyecatch img {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* ---------- 本文 ---------- */
.news-single__body {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news-single__body::after {
  content: "";
  display: block;
  clear: both;
}

.news-single__body p {
  margin: 0 0 1.6em;
  font-size: 15px;
  line-height: 2;
}

.news-single__body p:empty {
  display: none;
}

.news-single__body strong,
.news-single__body b {
  font-weight: 700;
}

.news-single__body a {
  color: var(--ns-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.news-single__body a:hover {
  opacity: .7;
}

/* 見出し（エディタで H1〜H4 どれを選んでも整うように） */
.news-single__body h1,
.news-single__body h2 {
  margin: 2.8em 0 1.2em;
  padding: 0 0 12px 16px;
  border-left: 3px solid var(--ns-accent);
  border-bottom: 1px solid var(--ns-line);
  font-family: var(--ns-gothic);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--ns-text);
}

.news-single__body h3 {
  margin: 2.4em 0 1em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ns-text);
  font-family: var(--ns-gothic);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ns-text);
}

.news-single__body h4,
.news-single__body h5,
.news-single__body h6 {
  margin: 2em 0 .8em;
  font-family: var(--ns-gothic);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ns-text);
}

.news-single__body h4::before {
  content: "■";
  margin-right: .4em;
  color: var(--ns-accent);
  font-size: .8em;
}

.news-single__body > :first-child {
  margin-top: 0;
}

/* 見出し内の strong にはマーカーを付けない */
.news-single__body h1 strong,
.news-single__body h2 strong,
.news-single__body h3 strong,
.news-single__body h4 strong {
  background: none;
}

/* リスト */
.news-single__body ul,
.news-single__body ol {
  margin: 0 0 1.6em;
  padding-left: 1.5em;
}

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

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

.news-single__body li {
  margin-bottom: .4em;
  line-height: 1.9;
}

/* 引用 */
.news-single__body blockquote {
  margin: 0 0 1.6em;
  padding: 20px 24px;
  background: var(--ns-bg-soft);
  border-left: 3px solid #ccc;
  font-size: 14px;
}

.news-single__body blockquote p:last-child {
  margin-bottom: 0;
}

/* 表 */
.news-single__body table {
  width: 100%;
  margin: 0 0 1.6em;
  border-collapse: collapse;
  font-size: 14px;
}

.news-single__body th,
.news-single__body td {
  padding: 12px 14px;
  border: 1px solid var(--ns-line);
  text-align: left;
  vertical-align: top;
}

.news-single__body th {
  background: var(--ns-bg-soft);
  font-weight: 700;
  white-space: nowrap;
}

.news-single__body hr,
.news-single__body .wp-block-separator {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--ns-line);
}

/* ---------- 画像 ---------- */
/* common.css の img{width:100%} を打ち消し、エディタで指定したサイズを尊重 */
.news-single__body img {
  width: auto;
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.news-single__body figure {
  margin: 0 0 2em;
}

.news-single__body .wp-block-image {
  margin: 2.4em 0;
}

.news-single__body figcaption,
.news-single__body .wp-caption-text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ns-sub);
}

/* 中央寄せ（ブロックエディタ新旧マークアップ + クラシックエディタ） */
.news-single__body .aligncenter,
.news-single__body .wp-block-image.aligncenter,
.news-single__body .wp-block-image .aligncenter {
  display: block;
  clear: both;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.news-single__body .aligncenter img,
.news-single__body img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 段落を中央揃えにして画像を入れた場合 */
.news-single__body .has-text-align-center {
  text-align: center;
}

/* 右寄せ */
.news-single__body .wp-block-image.alignright,
.news-single__body .wp-block-image .alignright {
  text-align: right;
}

.news-single__body .wp-block-image.alignright img,
.news-single__body .wp-block-image .alignright img {
  margin-left: auto;
}

/* 左右回り込み（PCのみ。スマホは縦積みで中央） */
.news-single__body .alignleft,
.news-single__body .alignright {
  float: none;
  margin: 2em auto;
  text-align: center;
}

.news-single__body .alignleft img,
.news-single__body .alignright img {
  margin-left: auto;
  margin-right: auto;
}

/* 埋め込み（YouTube等） */
.news-single__body .wp-block-embed {
  margin: 2.4em 0;
}

.news-single__body .wp-block-embed.aligncenter .wp-block-embed__wrapper {
  margin-left: auto;
  margin-right: auto;
}

.news-single__body iframe {
  max-width: 100%;
}

.news-single__body .wp-block-embed-youtube iframe,
.news-single__body iframe[src*="youtube"] {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* ボタンブロック */
.news-single__body .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 2em 0;
}

.news-single__body .wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

.news-single__body .wp-block-button__link {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--ns-text);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

/* ---------- 最新記事 ---------- */
.news-latest {
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 60px 0 80px;
  border-top: 1px solid var(--ns-line);
}

.news-latest__title {
  margin: 0 0 36px;
  text-align: center;
  font-family: var(--ns-gothic);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--ns-sub);
  line-height: 1.6;
}

.news-latest__title .en {
  display: block;
  margin-bottom: 4px;
  font-size: 30px;
  letter-spacing: 0.15em;
  color: var(--ns-text);
}

.news-latest__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-latest__item {
  list-style: none;
}

.news-latest__item a {
  display: block;
  color: var(--ns-text);
  text-decoration: none;
}

.news-latest__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ns-bg-soft);
  margin-bottom: 12px;
}

.news-latest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.news-latest__item a:hover .news-latest__thumb img {
  transform: scale(1.05);
}

.news-latest__date {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ns-sub);
  line-height: 1.4;
}

.news-latest__name {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-latest__empty {
  text-align: center;
  font-size: 14px;
}

.news-single__back {
  margin-top: 56px;
  text-align: center;
}

.news-single__back a {
  display: inline-block;
  min-width: 240px;
  padding: 16px 40px;
  border: 1px solid var(--ns-text);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ns-text);
  text-decoration: none;
  transition: background-color .3s, color .3s;
}

.news-single__back a:hover {
  background: var(--ns-text);
  color: #fff;
}

/* ---------- PC ---------- */
@media screen and (min-width: 768px) {
  .news-single {
    padding: 100px 40px 0;
  }

  .news-single__head {
    padding-bottom: 32px;
    margin-bottom: 48px;
  }

  .news-single__title {
    font-size: 28px;
  }

  .news-single__body,
  .news-single__body p {
    font-size: 16px;
  }

  .news-single__body h1,
  .news-single__body h2 {
    font-size: 22px;
  }

  .news-single__body h3 {
    font-size: 19px;
  }

  .news-single__body .alignleft {
    float: left;
    margin: .5em 2em 1.5em 0;
    max-width: 50%;
  }

  .news-single__body .alignright {
    float: right;
    margin: .5em 0 1.5em 2em;
    max-width: 50%;
  }

  .news-single__body .wp-block-image .alignleft,
  .news-single__body .wp-block-image .alignright {
    max-width: 50%;
  }

  .news-latest {
    margin-top: 120px;
  }

  .news-latest__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .news-latest__name {
    font-size: 14px;
  }
}

/* ==========================================================================
   カテゴリー一覧（category.php）
   ========================================================================== */
.news-archive__head {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.news-archive__title {
  margin: 0;
  font-family: var(--ns-gothic);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--ns-text);
}

.news-archive__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ns-sub);
}

.news-archive__desc p {
  margin: 0;
}

/* カテゴリー切り替え */
.news-cats {
  max-width: 1000px;
  margin: 32px auto 0;
}

.news-cats ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-cats li {
  list-style: none;
}

.news-cats a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--ns-text);
  text-decoration: none;
  transition: background-color .3s, border-color .3s, color .3s;
}

.news-cats a:hover,
.news-cats a.is-current {
  background: var(--ns-text);
  border-color: var(--ns-text);
  color: #fff;
  text-decoration: none;
}

/* 一覧部分（最新記事のカードを流用） */
.news-archive__list {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
}

/* ページ送り */
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #ccc;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ns-text);
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color .3s, color .3s;
}

.news-pagination a.page-numbers:hover,
.news-pagination .page-numbers.current {
  background: var(--ns-text) !important; /* blog.css の .current{background:#F9F9F9 !important} を打ち消し */
  border-color: var(--ns-text);
  color: #fff;
}

.news-pagination .page-numbers.dots {
  border: 0;
  min-width: auto;
  padding: 0 4px;
}

@media screen and (min-width: 768px) {
  .news-archive__title {
    font-size: 30px;
  }

  .news-cats {
    margin-top: 40px;
  }

  .news-archive__list {
    margin-top: 56px;
  }
}

/* ==========================================================================
   NEWS一覧（page_blog.php）／カテゴリー一覧 共通の一覧カード
   ========================================================================== */
.news-index__title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.2em;
  color: var(--ns-text);
}

.news-index__sub {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--ns-sub);
}

.news-archive .news-latest__list {
  gap: 40px 16px;
}

.news-latest__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.news-latest__cat {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ns-sub);
}

.news-archive .news-latest__thumb {
  margin-bottom: 14px;
}

.news-archive .news-latest__date {
  font-size: 14px;
}

.news-archive .news-latest__name {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.news-archive .news-latest__item a:hover .news-latest__name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media screen and (min-width: 768px) {
  .news-index__title {
    font-size: 36px;
  }

  .news-archive .news-latest__list {
    gap: 56px 32px;
  }

  .news-archive .news-latest__name {
    font-size: 16px;
  }
}

/* ==========================================================================
   カテゴリー切り替え：スマホは横スクロール1行
   ========================================================================== */
@media screen and (max-width: 767px) {
  .news-cats {
    position: relative;
    margin: 24px -20px 0; /* 画面端まで広げる */
  }

  .news-cats ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 20px;
  }

  .news-cats ul::-webkit-scrollbar {
    display: none;
  }

  .news-cats li {
    flex-shrink: 0;
  }

  .news-cats a {
    white-space: nowrap;
  }

  /* 右端をフェードさせて「続きがある」ことを示す */
  .news-cats::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
    transition: opacity .3s;
  }

  .news-cats.is-end::after {
    opacity: 0;
  }

  .news-archive__list {
    margin-top: 28px;
  }
}

/* 見た目は非表示・検索エンジンや読み上げには残す */
.news-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
