@charset "UTF-8";
/*
Theme Name: お知らせページスタイル
Description: お知らせページ用CSS
*/

/* ========================================
   カラー変数
======================================== */
:root {
  --blue: #004597;
  --black: #373737;
  --navy: #1b1f23;
  --dblue: #32517b;
  --lgray: #d3d3d3;
  --bluegreen: #136a8a;
  --gold: #c0994b;
}

/* ========================================
   お知らせページレイアウト
======================================== */
.news-container {
  display: flex;
  flex-wrap: wrap;
  column-gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.news-container .breadcrumbs {
  width: 100%;
}
.news-main {
  flex: 1;
  min-width: 0;
}

/* ========================================
   記事ヘッダー
======================================== */
.news-article {
  background: #fff;
  padding: 2em;
  border-radius: 6px;
}

.news-header {
  margin-bottom: 3em;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--blue);
}

.news-thumbnail {
  margin: 15px 0 20px 0;
}

.news-featured-image {
  max-width: 250px; /* 最大幅を制限 */
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.news-date {
  display: inline-block;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.news-title {
  font-size: 28px;
  line-height: 1.5;
  color: var(--navy);
  font-weight: bold;
  margin: 0;
}

/* ========================================
   記事本文
======================================== */
.news-content {
  line-height: 1.9;
  margin-bottom: 50px;
  color: var(--black);
  font-size: 16px;
}

.news-content .main {
  padding: 0;
}

.news-content p {
  margin-bottom: 1.5em;
}

.news-content h2 {
  font-size: 24px;
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  color: var(--navy);
}

.news-content h3 {
  font-size: 20px;
  margin: 30px 0 15px;
  color: var(--dblue);
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}

.news-content h4 {
  font-size: 18px;
  margin: 25px 0 12px;
  color: var(--bluegreen);
}

.news-content img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
}

.news-content ul,
.news-content ol {
  margin: 1.5em 0;
  padding-left: 2em;
}

.news-content li {
  margin-bottom: 0.5em;
}

.news-content a {
  color: var(--bluegreen);
  text-decoration: underline;
  transition: color 0.3s;
}

.news-content a:hover {
  color: var(--blue);
}

.news-content strong {
  color: var(--navy);
  font-weight: bold;
}

/* ========================================
   前後記事ナビゲーション
======================================== */
.news-navigation {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 2px solid var(--lgray);
  gap: 20px;
  min-height: 50px;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

.news-navigation a {
  color: var(--blue);
  text-decoration: none;
  font-size: 12px;
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.news-navigation a:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 69, 151, 0.2);
}

/* ========================================
   レスポンシブ（タブレット・スマホ）
======================================== */
@media (max-width: 1024px) {
  .news-container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .news-article {
    padding: 2em 5%;
  }
  .news-container {
    width: 100%;
    flex-direction: column;
    padding: 20px 15px;
    gap: 40px;
  }

  .news-title {
    font-size: 22px;
  }

  .news-content {
    font-size: 15px;
  }

  .news-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .nav-next {
    text-align: left;
  }
  .news-content ul,
  .news-content ol {
    padding-left: 0;
  }
}

/* ========================================
   アーカイブヘッダー
======================================== */
.archive-header {
  margin-top: 1em;
  margin-bottom: 3em;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--blue);
}

.archive-title {
  font-size: 32px;
  color: var(--navy);
  font-weight: bold;
  margin: 0 0 10px;
}

.archive-description {
  color: var(--black);
  font-size: 16px;
  margin: 0;
}

/* ========================================
   お知らせ一覧
======================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-bottom: 50px;
}

.news-item {
  background: #fff;
  border-bottom: 1px solid var(--lgray);
  transition: all 0.3s ease;
  overflow: hidden;
}

.news-item:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 69, 151, 0.15);
  transform: translateY(-2px);
}

.news-item-link {
  display: block;
  padding: 1em 1.5em;
  text-decoration: none;
  color: inherit;
}

.news-item-header {
  margin-bottom: 12px;
}

.news-item-date {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.news-item-title {
  font-size: 20px;
  color: var(--navy);
  font-weight: bold;
  margin: 0 0 12px;
  line-height: 1.5;
  transition: color 0.3s;
}

.news-item:hover .news-item-title {
  color: var(--blue);
}

.news-item-excerpt {
  color: var(--black);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   ページネーション
======================================== */
.news-pagination {
  margin-top: 50px;
}

.news-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-pagination .page-numbers li {
  margin: 0;
}

.news-pagination a,
.news-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--lgray);
  border-radius: 4px;
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.news-pagination a:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  transform: translateY(-2px);
}
.news-pagination .current {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.news-pagination .prev,
.news-pagination .next {
  font-weight: bold;
  padding: 0 20px;
}

.news-pagination .dots {
  border: none;
  color: var(--black);
}

/* ========================================
   投稿がない場合
======================================== */
.no-posts {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 2px dashed var(--lgray);
}

.no-posts p {
  color: var(--black);
  font-size: 16px;
  margin: 0;
}

/* ========================================
   レスポンシブ（タブレット・スマホ）
======================================== */
@media (max-width: 1024px) {
  .archive-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .archive-header {
    margin-bottom: 30px;
  }

  .archive-title {
    font-size: 24px;
  }

  .archive-description {
    font-size: 14px;
  }

  .news-list {
    gap: 15px;
    margin-bottom: 40px;
  }

  .news-item-link {
    padding: 20px;
  }

  .news-item-title {
    font-size: 18px;
  }

  .news-item-excerpt {
    font-size: 13px;
  }

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

  .news-pagination .page-numbers {
    gap: 6px;
    flex-wrap: wrap;
  }

  .news-pagination a,
  .news-pagination span {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .news-pagination .prev,
  .news-pagination .next {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .news-item-link {
    padding: 16px;
  }

  .news-item-date {
    font-size: 12px;
    padding: 4px 10px;
  }

  .news-item-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .news-pagination a,
  .news-pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .news-pagination .prev,
  .news-pagination .next {
    padding: 0 12px;
    font-size: 11px;
  }
}

/* ========================================
   サイドバー基本
======================================== */
.news-sidebar {
  width: 320px;
  flex-shrink: 0;
}
.news-sidebar {
  position: sticky;
  top: 150px; /* お好みで調整 */
  align-self: flex-start;
  max-height: calc(100vh - 40px);
  transition: all 0.3s ease; /* スムーズな動き */
}

/* タブレット以下では固定しない */
@media (max-width: 1024px) {
  .news-sidebar {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}
/* ========================================
   ウィジェット共通スタイル
======================================== */
.news-sidebar .widget {
  background: #f8f9fa;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.09);
  transition: box-shadow 0.3s;
}

.news-sidebar .widget:hover {
  box-shadow: 0 4px 12px rgba(0, 69, 151, 0.1);
}

.news-sidebar .widget-title {
  font-size: 17px;
  font-weight: bold;
  color: var(--navy);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--blue);
  position: relative;
}

.news-sidebar .widget-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gold);
}

/* ========================================
   月別アーカイブ（ドロップダウン）
======================================== */
.news-sidebar .widget_archive select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 2px solid var(--lgray);
  border-radius: 4px;
  font-size: 14px;
  color: var(--black);
  background: white;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23004597" d="M6 8L0 0h12z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s;
}

.news-sidebar .widget_archive select:hover {
  border-color: var(--blue);
}

.news-sidebar .widget_archive select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 69, 151, 0.1);
}

.news-sidebar .widget_archive .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   過去のお知らせリスト
======================================== */
.news-sidebar .widget_recent_entries ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-sidebar .widget_recent_entries li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--lgray);
}

.news-sidebar .widget_recent_entries li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-sidebar .widget_recent_entries a {
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  display: block;
  line-height: 1.6;
  transition: color 0.3s;
  position: relative;
  padding-left: 16px;
}

.news-sidebar .widget_recent_entries a::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 10px;
  top: 4px;
}

.news-sidebar .widget_recent_entries a:hover {
  color: var(--blue);
}

.news-sidebar .widget_recent_entries .post-date {
  color: #999;
  font-size: 12px;
  display: block;
  margin-top: 6px;
  padding-left: 16px;
}

/* ========================================
   検索フォーム
======================================== */
.news-sidebar .widget_search .search-form {
  position: relative;
  display: flex;
  gap: 8px;
}

.news-sidebar .widget_search label {
  flex: 1;
  margin: 0;
}

.news-sidebar .widget_search .search-field {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--lgray);
  border-radius: 4px;
  font-size: 14px;
  color: var(--black);
  transition: border-color 0.3s;
}

.news-sidebar .widget_search .search-field:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 69, 151, 0.1);
}

.news-sidebar .widget_search .search-field::placeholder {
  color: #999;
}

.news-sidebar .widget_search .search-submit {
  width: 50px;
  height: 46px;
  padding: 0;
  background: var(--blue);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.news-sidebar .widget_search .search-submit:hover {
  background: var(--dblue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 69, 151, 0.2);
}

.news-sidebar .widget_search .search-submit .gp-icon {
  color: white;
  font-size: 18px;
}

.news-sidebar .widget_search .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   カテゴリー・タグウィジェット
======================================== */
.news-sidebar .widget_categories ul,
.news-sidebar .widget_tag_cloud .tagcloud {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-sidebar .widget_categories li {
  margin-bottom: 10px;
}

.news-sidebar .widget_categories a {
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 4px;
  border: 1px solid var(--lgray);
  transition: all 0.3s;
}

.news-sidebar .widget_categories a:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.news-sidebar .widget_categories .count {
  background: var(--lgray);
  color: var(--black);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.news-sidebar .widget_categories a:hover .count {
  background: white;
  color: var(--blue);
}

/* タグクラウド */
.news-sidebar .widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-sidebar .widget_tag_cloud a {
  display: inline-block;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--lgray);
  border-radius: 20px;
  color: var(--black);
  text-decoration: none;
  font-size: 13px !important;
  transition: all 0.3s;
}

.news-sidebar .widget_tag_cloud a:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ========================================
   カスタムウィジェット（テキスト等）
======================================== */
.news-sidebar .widget_text p {
  margin-bottom: 1em;
  line-height: 1.7;
  color: var(--black);
  font-size: 14px;
}

.news-sidebar .widget_text p:last-child {
  margin-bottom: 0;
}

.news-sidebar .widget_text a {
  color: var(--bluegreen);
  text-decoration: underline;
  transition: color 0.3s;
}

.news-sidebar .widget_text a:hover {
  color: var(--blue);
}

/* ========================================
   レスポンシブ（タブレット・スマホ）
======================================== */
@media (max-width: 1024px) {
  .news-sidebar {
    width: 280px;
  }

  .news-sidebar .widget {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .news-sidebar {
    width: 100%;
  }

  .news-sidebar .widget {
    padding: 20px;
    margin-bottom: 20px;
  }

  .news-sidebar .widget-title {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .news-sidebar .widget_search .search-form {
    flex-direction: column;
  }

  .news-sidebar .widget_search .search-submit {
    width: 100%;
    height: 46px;
  }
}

/* ========================================
   月別アーカイブウィジェット
======================================== */
.news-sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-sidebar .widget ul li {
  border-bottom: 1px solid var(--lgray);
}

.news-sidebar .widget ul li:last-child {
  border-bottom: none;
}

.news-sidebar .widget ul li a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  padding-left: 2.5em;
}

/* 月別アーカイブ - カレンダーアイコン */
.news-sidebar .widget_archive ul li a:before {
  content: "\f073"; /* Font Awesome カレンダー */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
}
/* 最近のお知らせ  */
.news-sidebar .widget_recent_news ul li a:before {
  content: "-";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
}

.news-sidebar .widget ul li a:hover {
  background: var(--bg);
  color: var(--blue);
  padding-left: 32px;
}
