/* =============================================================
   11. News: List (トップの「お知らせ」ボックス)
   ============================================================= */
.news-box {
  background:#fff;
  border:1px solid #c1b39a;
  margin:0 auto 30px;
  padding:0;
}
.news-box .section-title {
  margin:0;
  border-bottom:1px solid #c1b39a;
}
.news-list {
  margin:0;
  padding:0;
}

/* 日付カラム幅 */
:root {
  --news-date-col: 160px;
}

.news-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--news-date-col) auto 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dotted #ccc;
  transition: background-color .18s ease;
  cursor: pointer;
}
.news-row:last-of-type {
  border-bottom:none;
}

.news-row dt,
.news-row dd {
  min-width: 0;
  margin: 0;
  padding: 0 20px;
  line-height: 1.6;
}

/* dt は grid 上では分解して使う */
.news-row dt {
  grid-column: 1 / span 2;
  display: contents;
}

/* タイトル側 dd */
.news-row dd {
  grid-column: 3;
}

/* 日付 */
.news-date {
  grid-column: 1;
  color: #5a4a37;
  font-size: 15px;
  padding: 0 20px;
  white-space: nowrap;
}

/* カテゴリバッジ（使う場合） */
.news-cat {
  grid-column: 2;
  background: transparent;
  color: #5a4a37;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1;
  font-size: 12px;
  justify-self: start;
  align-self: baseline;
}

/* タイトル */
.news-title {
  color:#543a15;
  word-break:break-word;
}

/* ホバー */
.news-row:hover {
  background:#f2e5d4;
}

/* 行全体をクリック可能にするリンク */
.news-row .news-link {
  position:absolute;
  inset:0;
  z-index:3;
  color:transparent;
  background:transparent;
}
.news-row > *:not(.news-link) {
  position:relative;
  z-index:1;
}

/* ボックス下部の「記事一覧」 */
.news-footer {
  border-top:1px solid #c1b39a;
  padding:20px;
  text-align:right;
}

/* =============================================================
   12. News 共通（一覧／詳細）
   ============================================================= */
/* リンク/画像の基本 */
.news-archive .news-link {
  display:block;
  color:inherit;
  text-decoration:none;
}
.news-archive img,
.news-single img {
  max-width:100%;
  height:auto;
}

/* メタ行：日付＋ピン（.entry-meta） */
.entry-meta {
  display:flex;
  align-items:center;
  gap:.5em;
  font-size:clamp(12px,.8rem + .1vw,14px);
  opacity:.9;
}

/* ピンは常に45度傾ける */
.entry-meta .pin-ico {
  display:inline-block;
  transform:rotate(-45deg);
  transform-origin:50% 50%;
  margin-left:.35em;
  line-height:1;
}

/* 一覧ではピン赤、詳細では白 */
.entry-meta.is-archive .pin-ico {
  color:#e63946;
}
.entry-meta.is-single .date,
.entry-meta.is-single .pin-ico {
  color:#fff;
}

/* =============================================================
   13. News アーカイブ一覧
   ============================================================= */
.news-archive .news-item {
  border-bottom:1px solid #eee;
  padding:14px 0 14px 14px;
  transition: background-color .18s ease;
  cursor: pointer;
}
.news-archive .news-item:hover{
  background:#f2e5d4;
}
.news-archive .entry-title {
  margin:6px 0 4px;
  font-size:clamp(15px,1rem + .2vw,18px);
  line-height:1.4;
}
.news-archive .news-excerpt {
  color:#444;
  font-size:clamp(14px,.95rem + .1vw,16px);
  line-height:1.8;
}

/* ページネーション（WP .page-numbers） */
.pagination {
  text-align:center;
  padding:16px 0;
}
.pagination .page-numbers {
  display:inline-block;
  margin:0 4px;
  padding:6px 10px;
  border:1px solid #ddd;
  line-height:1;
}
.pagination .page-numbers.current {
  background:#5d422b;
  color:#fff;
  border-color:#5d422b;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  min-width:2.4em;
}

/* =============================================================
   14. News シングル（記事詳細）
   ============================================================= */
.news-single .news-header {
  background:#5d422b;
  color:#fff;
  border-radius:14px;
  padding:16px 18px;
  margin:0 0 16px;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
}

/* メタ＆タイトルを白に固定 */
.news-single .news-header .entry-meta.is-single .date,
.news-single .news-header .entry-meta.is-single .pin-ico,
.news-single .news-header .news-title {
  color:#fff !important;
}

/* タイトル */
.news-single .news-title {
  margin:8px 0 0;
  font-size:clamp(18px,1.1rem + .8vw,26px);
  line-height:1.35;
}

/* 本文 */
.news-single .news-content {
  font-size:clamp(15px,1rem + .2vw,17px);
  line-height:1.9;
  padding:0 10px;
}

/* ヘッダー内リンクの保険 */
.news-single .news-header a {
  color: #fff !important;
  text-decoration:none;
}
.news-single .news-header a:hover {
  text-decoration:underline;
  text-underline-offset:.2em;
}

/* SP で少しコンパクトに */
@media (max-width: 768px) {
  .news-single .news-header {
    padding:14px 14px;
    border-radius:4px !important;
  }
  .news-single .news-header .news-title {
    font-size:1.06rem;
  }
}

/* =============================================================
   15. News シングル：前後記事／一覧へのページャー
   ============================================================= */
.post-pager {
  margin: 18px auto 6px;
  padding: 2px 0;
}

/* 3分割（前／一覧／次） */
.post-pager .pager-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap; /* PC でも SP でも基本は横3つ */
}

.post-pager .pager-inner > * {
  flex: 1 1 33%;
  min-width: 0;
  max-width: 220px;
}

/* ラッパー：見た目は持たせない（中の a がボタン本体） */
.pager-btn {
  display: block;
}

/* ボタン実体（前／一覧／次 共通） */
.pager-btn > a,
.post-pager .to-archive {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  width: 100%;
  padding: 12px 10px;
  min-height: 46px;
  border-radius: 12px;
  background: #5d422b;
  border: 1px solid #5d422b;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
}

/* hover（PC操作時） */
.pager-btn > a:hover,
.post-pager .to-archive:hover {
  background: #6b4b31;
  border-color: #6b4b31;
}

/* 極狭端末での微調整 */
@media (max-width: 360px) {
  .post-pager .pager-inner {
    gap: 6px;
  }
  .pager-btn > a,
  .post-pager .to-archive {
    padding: 10px 6px;
    min-height: 44px;
    font-size: 14px;
  }
}


/* =============================================================
   16. HOME：SP「お知らせ」ボックス
   ============================================================= */

/* 外枠：上に少し余白をとって枠線を付ける */
.news.news-sp {
  margin-top: 30px;
  border: 1px solid #ccc;
  background: #fff;
}

/* 一覧部分の箱 */
.news.news-sp .home_infomation_box {
  background: #fff;
  padding: 0 10px;
}

/* 各記事リンク：一行ずつ区切り線付きのブロックリンクにする */
.news.news-sp .home_infomation_box a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #ccc;
}

.news.news-sp .home_infomation_box a:last-of-type {
  border-bottom: none;
}

/* 行本体 */
.news.news-sp .home_infomation {
  padding: 15px 0;
  margin: 0;
  font-size: 14px;
}

/* 日付 */
.news.news-sp .home_infomation dt {
  margin: 0 0 5px;
  font-weight: bold;
  font-size: 14px;
  color: #000;
}

/* タイトル */
.news.news-sp .home_infomation dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #000;
}

/* ピンアイコン */
.news.news-sp .home_infomation .icon {
  color: #c94000;
  margin-right: 5px;
  transform: rotate(-45deg);
  transform-origin: 50% 50%;
}

/* 「記事一覧はこちら」ボタン */
.news.news-sp .btn_more {
  text-align: right;
  padding: 10px;
}

.news.news-sp .btn_more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 0px;
  background: #5d422b;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.news.news-sp .btn_more a:hover {
  opacity: 0.85;
}
