/* ============================================================
   BASE - 変数 / リセット / 基本要素
   ============================================================ */
@charset "UTF-8";

:root {
  --primary-color: #2A8C4C;
  --nav-bg: #085a32;
  --cta-bg: #d6c352;
  --cta-text: #ffffff;
  --section-bg: #ffffff;
  --text-color: #222222;
  --border-color: #cceecc;
  --link-color: #6495ed;
  --more-color: #191970;
  --more-color2: #4a4a4a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
  color: var(--text-color);
  background-color: #ffffff;
}

/* メディア要素の幅制限 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* フォーム要素のフォント継承 */
input,
button,
textarea,
select {
  font: inherit;
}

/* 見出しリセット（全ページでスタイルを明示指定しているため） */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}


/* ============================================================
   LAYOUT - コンテナ / ナビ / ヒーロー / フッター / 共通レイアウト
   ============================================================ */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ナビバー --- */

.navibar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: var(--primary-color);
  flex-wrap: nowrap;
  font-size: 1em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navibar ul {
  display: flex;
  gap: 0;
  list-style: none;
  background-color: var(--primary-color);
  margin: 0 0 0 60px;
  color: white;
  padding-inline-start: 10px;
}

.navibar li {
  background-color: var(--primary-color);
  padding: 20px;
}

.navibar li a {
  text-decoration: none;
  color: white;
}

.nav-item {
  cursor: pointer;
  transition: background-color 0.4s ease;
}

.member {
  margin: 0;
  width: 13%;
  text-align: center;
  background-color: sandybrown;
  padding: 20px 0;
  color: white;
}

.member a {
  color: white;
  text-decoration: none;
}

/* --- ヒーロー --- */

.hero {
  background-color: var(--section-bg);
  padding: 50px 0 30px;
}

.hero h1 {
  flex: 1;
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 span {
  display: block;
}

.title-image {
  display: block;
  max-width: 48%;
  height: auto;
  min-width: 280px;
  margin-top: 30px;
}

.hero-image {
  flex: 1;
  max-width: 100%;
  height: auto;
  min-width: 280px;
  margin-top: 40px;
}

/* --- セクション共通 --- */

.section-block {
  border-top: 1px solid var(--border-color);
  padding: 50px 0;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  margin-right: 10px;
}

.section-header .icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  vertical-align: middle;
}

.section-header h1 {
  color: var(--primary-color);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.4;
}

/* --- 2カラムレイアウト --- */

.two-column {
  display: flex;
  gap: 40px;
}

.two-column .left-block {
  flex: 1 1 25%;
  max-width: 30%;
}

.two-column .right-block {
  flex: 3 1 70%;
}

/* --- フッター --- */

.site-footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 20px 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 10px;
}

.footer-ul {
  display: flex;
  gap: 25px;
  font-size: 80%;
  list-style: none;
}

.footer-ul a {
  position: relative;
  color: white;
  text-decoration: none;
}

.copyright {
  text-align: center;
  opacity: 0.7;
  font-size: 0.85rem;
}


/* ============================================================
   LINKS - リンク共通スタイル
   ============================================================ */

/* 通常リンク（.more-button除く） */
main a:not(.more-button),
.gx-post-title,
.news-list a,
.announcement-list a,
.member-page-grid a,
.prose-content a,
.contact-info-card a,
.archive-list a,
.member-announce-list li a {
  color: var(--link-color);
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

main a:not(.more-button):hover,
.gx-post-title:hover,
.news-list a:hover,
.announcement-list a:hover,
.member-page-grid a:hover,
.prose-content a:hover,
.contact-info-card a:hover,
.archive-list a:hover,
.member-announce-list li a:hover {
  color: var(--primary-color) !important;
  transform: translateY(1px);
  opacity: 0.8;
  text-decoration: none !important;
}

/* フッターリンク */
.footer-ul a {
  color: #ffffff !important;
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-ul a:hover {
  color: #ffffff !important;
  transform: translateY(1px);
  opacity: 0.7;
  text-decoration: none !important;
}

/* お知らせリストのリンクは inline に戻す */
.member-announce-list li a {
  display: inline !important;
  position: relative;
  top: 0;
  transition: top 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.member-announce-list li a:hover {
  transform: none !important;
  top: 1px;
  color: var(--primary-color) !important;
  opacity: 0.8;
}

/* アーカイブリンクは inline-flex */
.archive-list a {
  display: inline-flex !important;
  align-items: center;
}

/* img 専用リンク */
a.img-link {
  text-decoration: none;
  border-bottom: none;
  display: inline-block;
}

a.img-link:hover {
  text-decoration: none;
  border-bottom: none;
}

a.img-link img {
  display: block;
  border: none;
}

/* ============================================================
   COMPONENTS - 共通UIパーツ
   ============================================================ */

/* --- もっと見るボタン --- */

.more-button {
  display: inline-flex;
  align-items: center;
  color: var(--more-color2);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--more-color2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background-color 0.5s, color 0.5s;
  background-color: transparent;
  cursor: pointer;
}

.more-button::after {
  content: '\2192';
  margin-left: 8px;
  transition: transform 0.4s;
}

.more-button:hover {
  background-color: var(--nav-bg);
  border: 2px solid var(--nav-bg);
  color: #ffffff;
}

.more-button:hover::after {
  transform: translateX(5px);
}

/* --- ファイルリンクアイコン（PDF, Excel等） --- */

/* ファイル種別クラスのないリンクは非表示 */
.file-link:not(.pdf):not(.pptx):not(.xlsx):not(.word):not(.zip) {
  display: none !important;
}

.file-link::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.file-link.pdf::before {
  background-image: url('img/pdf_icon.png');
}

.file-link.pptx::before {
  background-image: url('img/pp_icon.png');
}

.file-link.xlsx::before {
  background-image: url('img/excel_icon.png');
}

.file-link.word::before {
  background-image: url('img/word_icon.png');
}

.file-link.zip::before {
  content: 'ZIP';
  width: auto;
  height: auto;
  margin-right: 8px;
  padding: 1px 4px;
  border: 1px solid var(--link-color);
  border-radius: 3px;
  background-image: none;
  color: var(--link-color);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
}

/* --- 画像フルスクリーン表示 --- */

.image_fitscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  margin-top: 0;
}

.image_fitscreen img {
  max-width: 100%;
  width: auto;
  height: 100vh;
  object-fit: contain;
}

.image_fitscreen a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.image_fitscreen a:hover {
  text-decoration: none;
  color: var(--link-color);
  opacity: 0.7;
  transition: color 0.5s;
}


/* ============================================================
   PAGE: お知らせ (news-card, news-list, osirase)
   ============================================================ */

.news-index {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 24px 16px;
}

.news-index__title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 25px;
  color: var(--primary-color);
}

/* お知らせ一覧 */
.osirase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.osirase-list li h2 {
  margin-left: 5rem;
}

.osirase-list li p {
  font-size: .8rem;
}

/* ニュース一覧 */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.news-list li h2 {
  margin-left: 5rem;
  margin-top: .6rem;
  margin-bottom: .3rem;
}

.news-list li p {
  font-size: .9rem;
  margin-left: 6rem;
  margin-top: 0;
}

.news-list-capt {
  font-size: 1rem;
  line-height: 1.8;
  margin-left: 5rem;
}

/* 行間を詰めて一塊で見せる情報ブロック（日時・場所など） */
.event-info {
  margin-left: 5rem;
  margin-bottom: 24px;
}

.event-info p {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.event-info__title {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

/* ダウンロードページ共通 */
.news-download-page .container>h2 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.65;
  color: #38624a;
  margin: 32px 0 10px 35px;
  padding: 0 0 8px 0.85rem;
  border-left: 6px solid var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

.news-download-page .container>h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: #38624a;
  margin: 32px 0 10px 45px;
  padding: 0 0 0px 0.85rem;
  border-left: 6px solid var(--primary-color);
}

.news-download-page .container>p:not(.news-list-capt) {
  font-size: 1rem;
  line-height: 1.9;
  color: #444444;
  margin: 0 0 28px 5rem;
}

.news-download-page .news-list {
  gap: 14px;
}

.news-download-page .news-list li h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.75;
  color: #2f4f3a;
}

.news-download-page .news-list li p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555555;
}

/* ニュースカード */
.news-card {
  display: grid;
  grid-template-columns: 40px 40px auto 128px 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.2);
}

.news-card p {
  font-size: 0.8rem;
  margin: 0;
}

.news-card__date {
  font-size: .8em;
  color: #666;
}

.news-card__cat {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef5ff;
  font-size: .8rem;
  text-align: center;
}

.news-card__link {
  position: relative;
  display: inline-block;
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.25s ease;
  width: fit-content;
}

.news-card__file.file-link {
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.news-card__new {
  margin: 0;
  font-size: .8rem;
  color: #d00;
  font-weight: bold;
}

/* お知らせリスト（announcement） */
.announcement-list {
  list-style: none;
}

.announcement-list li {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid #cccccc;
  padding: 10px 0;
}

.announcement-list li:last-child {
  border-bottom: none;
}

.announcement-list .date {
  width: 90px;
  font-size: .75em;
  color: var(--primary-color);
  font-weight: 500;
  flex-shrink: 0;
}

/* 区切り線 */
.divider_temp {
  width: 70%;
  margin: 24px auto;
  border: 0;
  border-top: 1px solid #bbb;
}


/* ============================================================
   PAGE: 静岡GXニュース
   ============================================================ */
/* --- カード（記号なし・余白と濃淡によるデザイン） --- */
.gx-news-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  padding: 12px 14px;
  border-bottom: 1px solid #eaeaea;
  /* dottedより実線でごく薄く */
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 4px;
}

.gx-news-card:hover {
  background-color: #f4faf6;
  transform: translateY(-1px);
  /* 1ミリだけ浮く微細なアクション */
}

/* 固定記事（肌色から、清潔感のある極薄い緑へ変更） */
.pinned-article {
  background-color: #e8f8ea !important;
  /* 清潔感のある色 */
  margin-bottom: 2px !important;
  margin-top: 0 !important;
  border-radius: 4px !important;
  border-bottom: none !important;
}

.gx-news-card-main {
  display: flex;
  flex-direction: column;
  /* メタ情報とタイトルを縦積みに */
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

/* メタ情報のコンテナ（gapで美しい余白を作る） */
.gx-news-meta {
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  /* 記号を使わず余白で区切る */
  line-height: 1.2;
}

/* 日付：一番控えめな薄いグレー */
.meta-date {
  color: #999999;
}

/* 地域：中くらいのグレー */
.meta-location {
  color: #777777;
}

/* 主体：少し濃いグレーで存在感を出す */
.meta-subject {
  color: #444444;
}

/* カテゴリ：アクセント色＆太字（クリック可能であることを示す） */
.meta-category {
  color: var(--primary-color);
  /* 紺色(#2c5282) から テーマカラーの緑 に変更 */
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;

  /* これで自動的に「薄い緑の背景」になります */
  background-color: color-mix(in srgb, currentColor 15%, transparent);
}

.meta-category:hover {
  opacity: 0.7;
}

.meta-category {
  color: #c46b21;
  /* 少し濃いめのオレンジ（sandybrownの同系色で可読性の高い色） */
  font-weight: 600;
  background-color: color-mix(in srgb, currentColor 15%, transparent);
}

/* 地域と主体（グレーで統一して控えめに） */
.meta-location,
.meta-subject {
  display: inline-block;
  line-height: 1;
  padding: 4px 6px 3px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #666666;
  /* 文字色はグレー */
  background-color: #f5f5f5;
  /* 背景も薄いグレー */
}

/* カテゴリ（テーマカラーの緑で統一） */
.meta-category {
  display: inline-block;
  line-height: 1;
  padding: 4px 6px 3px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  color: var(--primary-color);
  /* 文字色は緑 */
  background-color: color-mix(in srgb, var(--primary-color) 10%, transparent);
  /* 背景は極めて薄い緑 */
}

/* スマホ用の微調整 (@media (max-width: 768px) 内に追記) */
@media (max-width: 768px) {

  .meta-location,
  .meta-subject,
  .meta-category {
    font-size: 0.7rem;
    padding: 3px 5px 2px;
  }
}


/* タイトル部分 */
.gx-post-title {
  width: 100%;
  font-size: .95rem !important;
  font-weight: bold;
  line-height: 1.5 !important;
  color: #444449 !important;
  text-decoration: none !important;
  margin-top: 0;
  transition: color 0.2s ease;
}


/* --- 動的カテゴリ絞り込みボタン --- */
.gx-cat-btn {
  padding: 4px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  color: #555;
  transition: all 0.2s;
}

.gx-cat-btn:hover {
  background: #f4f4f4;
}

.gx-cat-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* --- 要約 --- */

.gx-summary-wrap {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
  padding-left: 330px;
  box-sizing: border-box;
  min-width: 0;
}

.gx-news-card.is-active .gx-summary-wrap,
.gx-news-card.is-open .gx-summary-wrap {
  max-height: 150px;
  opacity: 1;
  margin-top: 10px;
  padding-bottom: 10px;
}

.gx-summary-box {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.6;
  background: #f9f9f9;
  padding: 12px;
  border-left: 3px solid #5e8a75;
  min-width: 0;
}

/* 要約内リンクは折り返し */
.gx-summary-box a,
main .gx-summary-box a {
  display: inline !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

main .gx-summary-box {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* --- タブ --- */

.gx-tab-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 12px;
}

.gx-tab-btn {
  padding: 8px 18px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.gx-tab-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.gx-tab-btn.active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

.section-title-container {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
}

.section-title {
  margin: 0;
}

#update-timestamp {
  font-size: 0.8rem;
  color: #666666;
  font-weight: 400;
}

.gx-search-container {
  margin-top: 16px;
  margin-bottom: 16px;
}

.gx-search-label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
}

.gx-search-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gx-search-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #b7b7b7;
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gx-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 14%, transparent);
}

.gx-search-clear {
  padding: 8px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  background: #f7f7f7;
  color: #555;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gx-search-clear:hover:not(:disabled) {
  background: #efefef;
  border-color: #bdbdbd;
}

.gx-search-clear:disabled {
  opacity: 0.5;
  cursor: default;
}

.gx-search-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #666;
}

.gx-news-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 10px;
}

.gx-news-section-heading:first-child {
  margin-top: 6px;
}

.gx-news-section-heading::after {
  content: "";
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.03));
}

.gx-news-section-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4f5b53;
  background: #f2f5f3;
  border: 1px solid #dfe6e1;
  white-space: nowrap;
}

.gx-news-section-meta {
  font-size: 0.74rem;
  color: #6d766f;
  white-space: nowrap;
}

.gx-news-section-heading.is-search-results .gx-news-section-label {
  color: #315344;
  background: #eef6f1;
  border-color: #d2e5d8;
}

.gx-news-card.search-hit-card {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--primary-color) 32%, transparent);
}

.gx-news-card.search-hit-card:not(.pinned-article) {
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--primary-color) 7%, #ffffff) 0%,
      #ffffff 72%);
}

.gx-news-card.search-hit-card:hover:not(.pinned-article) {
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--primary-color) 11%, #ffffff) 0%,
      #f4faf6 72%);
}

#category-filter-wrapper {
  display: none;
  margin-bottom: 15px;
}

#category-filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#local-area-ranking-wrapper {
  display: none;
  margin-bottom: 36px;
}

.gx-area-ranking-panel {
  padding: 16px 18px 18px;
  border: 1px solid #e3e8e4;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcfb 0%, #f6f8f7 100%);
}

.gx-area-ranking-panel .gx-news-section-heading {
  margin-top: 0;
}

.gx-area-ranking-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gx-area-rank-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.gx-area-rank-order {
  font-weight: 700;
  color: #4f5b53;
}

.gx-area-rank-count {
  color: #6d766f;
  font-variant-numeric: tabular-nums;
}

.gx-area-rank-btn.active .gx-area-rank-order,
.gx-area-rank-btn.active .gx-area-rank-count {
  color: inherit;
}

.gx-area-ranking-empty {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: #6d766f;
}

#more-btn-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 24px;
}

#more-btn-container .more-button {
  padding: 8px 24px;
}

/* 「もっと見る」ボタンのホバー色 */
#more-btn-container .gx-tab-btn:hover {
  background-color: var(--nav-bg);
  border-color: var(--nav-bg);
  color: #ffffff !important;
}

/* --- 説明文 --- */

.description_gxnews {
  margin-bottom: 40px;
}

.description_gxnews h2 {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.7;
  font-weight: normal;
}

/* --- 注意事項 --- */

.news-disclaimer {
  margin-top: 40px;
  margin-bottom: 60px;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
}

.disclaimer-title {
  display: block;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #333;
}

.news-disclaimer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-disclaimer li {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.7;
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
}

.news-disclaimer li:last-child {
  margin-bottom: 0;
}

.news-disclaimer li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #5e8a75;
  font-weight: bold;
}

.master-tab-container {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  border-bottom: 2px solid #ccc;
  flex-wrap: wrap;
}

.master-tab-btn {
  padding: 8px 22px;
  cursor: pointer;
  background-color: #f1f1f1;
  border: none;
  border-radius: 8px 8px 0 0;
  font-weight: bold;
  color: #666;
  font-size: .95rem;
  transition: background-color 0.3s, color 0.3s;
}

.master-tab-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.master-tab-btn:hover:not(.active) {
  background-color: #e2e2e2;
}

/* ▼ 補助金：各カテゴリ用のカラー設定（上品なくすみカラー） ▼ */
.type-sub-energy {
  background-color: #6c8c73;
  color: #ffffff;
}

/* 省エネ：くすんだグリーン */
.type-sub-renew {
  background-color: #6b8aab;
  color: #ffffff;
}

/* 再エネ：くすんだブルー */
.type-sub-ev {
  background-color: #9284a8;
  color: #ffffff;
}

/* EV・モビリティ：くすんだパープル */
.type-sub-decarb {
  background-color: #ab846b;
  color: #ffffff;
}

/* 脱炭素全般：くすんだオレンジ（テラコッタ風） */
.type-sub-vis {
  background-color: #6b948a;
  color: #ffffff;
}

/* 見える化：くすんだティール */
.type-sub-other {
  background-color: #7f8c8d;
  color: #ffffff;
}

/* その他：グレー系（そのまま） */
.type-subsidy-cat {
  background-color: #ab846b;
  color: #ffffff;
}

/* 予備用（脱炭素全般と同じ） */


/* ============================================================
   PAGE: 会員 (members, member-page)
   ============================================================ */

.members-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.member-list-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.member-category-group {
  margin-bottom: 20px;
}

.member-category-group h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  padding-left: 0;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.member-category-list {
  list-style: none;
  padding: 0 0 0 3.5rem;
  margin: 0;
}

.member-category-list li {
  position: relative;
  padding-left: 0;
  margin-bottom: 5px;
}

.member-category-list li.kaicho::before,
.member-category-list li.fuku-kaicho::before {
  color: #fff;
  background: sandybrown;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.member-category-list li.kaicho::before {
  content: "会長";
  left: -4.5em;
}

.member-category-list li.fuku-kaicho::before {
  content: "副会長";
  left: -5em;
}

.member-list {
  list-style: none;
  margin-bottom: 10px;
  flex: 1;
}

.member-list li {
  padding: 4px 0;
}

/* 会員限定ページ グリッド */
#member-content-container {
  max-width: 1000px;
  margin: 0 auto;
}

.member-page-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
  align-items: start;
}


.archive-section {
  grid-column: 1/2;
  grid-row: 1/3;
}

.member-announcements {
  grid-column: 2/3;
  grid-row: 1/2;
  padding: 0;
}

.movie-contents {
  grid-column: 2/3;
  grid-row: 2/3;
}

.archive-section h2,
.member-announcements h2,
.movie-contents h2 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-left: 13px solid #aaa;
  padding-left: 10px;
}

.member-announcements h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.archive-section h3 {
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  margin-top: 25px;
  margin-bottom: 2px;
}

.archive-list {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.archive-list li {
  margin-bottom: 2px;
}

.member-announce-list {
  list-style-position: inside;
  padding-left: 20px;
}

.member-announce-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.member-announce-list li a {
  display: inline;
}

.archive-list li,
.member-announce-list li {
  font-size: 0.85rem;
  line-height: 1.5;
}


/* ログイン・ログアウト */
#welcome-container {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ============================================================
   PAGE: 本文コンテンツ (prose, about, notes)
   ============================================================ */

.prose-content {
  max-width: 900px;
  margin: 20px auto 0;
}

.prose-content h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 25px;
}

.prose-content h3 {
  font-size: 1.0rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0;
}

.prose-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 5px 0 0;
}

.prose-content ul {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  list-style: none;
  padding-left: 10px;
}

.prose-content ul li::before {
  content: '∙';
  margin-right: 8px;
}

.prose-content.bigtext {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

.prose-content .strong {
  font-weight: bold;
}

.about-content {
  max-width: 700px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.notes {
  margin-left: 1rem;
  font-size: 0.8rem;
  color: #333;
}


/* ============================================================
   PAGE: お問合せ (contact) — リファイン版
   ============================================================ */

/* ページヘッダーバー */
.contact-page-header {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary-color) 8%, #fff) 0%,
    #fff 60%);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0 36px;
}

.contact-page-header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-page-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-page-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-page-header-inner h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
}

.contact-page-header-inner .contact-subtitle {
  font-size: .9rem;
  color: #666;
  margin: 4px 0 0;
}

/* コンタクトセクション */
.contact-section {
  padding: 56px 0 80px;
}

/* カードグリッド */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

/* カード本体 */
.contact-card {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--primary-color) 4%, #ffffff) 0%,
    #ffffff 82%);
  border: 1px solid #dfe9e3;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(42, 140, 76, .05);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.contact-card:hover {
  border-color: color-mix(in srgb, var(--primary-color) 20%, #dfe9e3);
  box-shadow: 0 8px 26px rgba(42, 140, 76, .10);
  transform: translateY(-2px);
}

/* カードラベル */
.contact-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* カードタイトル */
.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 20px;
  line-height: 1.5;
}

.contact-card h3 a {
  color: var(--link-color);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}

.contact-card h3 a:hover {
  color: var(--primary-color);
  opacity: .8;
}

/* 仕切り線 */
.contact-card-divider {
  border: none;
  border-top: 1px solid #edf2ee;
  margin: 16px 0;
}

/* 情報行 */
.contact-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.contact-info-row:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f3f8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.contact-info-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary-color);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--primary-color);
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: .92rem;
  color: #333;
  line-height: 1.65;
  margin: 0;
}

.contact-info-value a {
  color: var(--link-color);
  text-decoration: none;
}

.contact-info-value a:hover {
  color: var(--primary-color);
}

/* 旧スタイル（他ページとの後方互換） */
.contact-info-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  min-height: 50vh;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.contact-info-card {
  background-color: #eee;
  border-radius: 8px;
  padding: 30px;
}

.contact-info-card h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-info-card p {
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1rem;
}

.contact-info-card strong {
  font-weight: 600;
}

.contact-info-card a {
  position: relative;
  display: inline-block;
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.25s ease;
  width: fit-content;
}

.contact-info-card a:hover {
  color: var(--link-color);
}

.contact-info-card a:hover::after {
  width: 100%;
}


/* ============================================================
   PAGE: テーブルレイアウト
   ============================================================ */

.table-layout {
  width: 70%;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
}

.table-layout td {
  vertical-align: top;
}


/* --- トップページ専用：ニュースリストの抑制デザイン --- */
.gx-news-preview .gx-news-card {
  padding: 6px 0;
  /* 上下余白をさらに圧縮 */
  border-bottom: 1px solid #f0f0f0;
}

.gx-news-preview .gx-news-meta {
  font-size: 0.7rem !important;
  /* メタ情報をさらに小さく */
  gap: 10px !important;
  margin-bottom: 1px;
}

.gx-news-preview .gx-post-title {
  font-size: 0.9rem !important;
  /* タイトルを0.9remまで縮小 */
  font-weight: 500 !important;
  /* 太字(bold)をやめ、中間的な太さに */
  color: #444444 !important;
  /* 真っ黒を避け、少し色を落とす */
  line-height: 1.4 !important;
}


/* ============================================================
   RESPONSIVE - スマホ対応 (max-width: 768px)　メディアクエリ
   ============================================================ */

@media (max-width: 768px) {

  /* === 共通・レイアウト === */

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .section-block {
    padding: 20px 0;
  }

  .two-column {
    display: block;
    gap: 20px;
  }

  .two-column .left-block,
  .two-column .right-block {
    width: 100%;
    max-width: none;
    margin-bottom: 5px;
  }

  .section-header {
    margin-bottom: 5px;
  }

  .section-header h1,
  .section-header h2 {
    font-size: 1.3rem;
  }

  /* === ヘッダー・ナビ === */

  .navibar {
    font-size: 76%;
    flex-direction: column;
    gap: 0;
  }

  .navibar ul {
    flex-direction: row;
    padding-inline-start: 0;
    justify-content: center;
    margin: 0;
    gap: 5px;
  }

  .navibar li {
    text-align: center;
    font-size: .7rem;
    padding: 12px 4px;
    white-space: nowrap;
  }

  /* === ヒーロー === */

  .hero {
    padding: 15px 0;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .title-image {
    max-width: 60%;
    min-width: 200px;
    margin-top: 15px;
  }

  .hero-image {
    max-width: 100%;
    min-width: 200px;
    margin-top: 20px;
  }

  /* === お知らせ・AboutUs === */

  .about-content {
    padding-left: 0;
  }

  .about-content p {
    padding-left: 44px;
    font-size: 0.8rem;
    margin-bottom: 20px;
    line-height: 1.8;
  }

  .announcement-list {
    font-size: 0.8rem;
  }

  .announcement-list li {
    font-size: 0.8rem;
    padding: 8px 0;
  }

  .announcement-list .date {
    width: 75px;
    font-size: 0.7rem;
    margin-top: 2px;
  }

  /* === もっと見るボタン === */

  .more-button {
    display: flex;
    width: fit-content;
    margin: 30px auto;
    align-items: center;
    color: var(--more-color2);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--more-color2);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    transition: background-color 0.5s, color 0.5s;
    background-color: transparent;
    cursor: pointer;
  }

  /* === 会員 === */

  .member {
    width: 100%;
    padding: 10px 0;
  }

  .members-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-category-group {
    margin-bottom: 0 !important;
  }

  .member-category-group h3 {
    padding-left: 0 !important;
    font-size: 0.95rem !important;
    margin-bottom: 5px !important;
  }

  .member-category-list {
    padding-left: 0 !important;
    margin-top: 0 !important;
  }

  .member-category-list li {
    font-size: 0.75rem !important;
    padding: 4px 0 4px 5.2rem !important;
    margin-bottom: 2px !important;
    line-height: 1.4 !important;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
  }

  .member-category-list li.kaicho::before,
  .member-category-list li.fuku-kaicho::before {
    position: absolute;
    left: 0 !important;
    font-size: 0.65rem !important;
    padding: 2px 8px !important;
    width: 3.6rem;
    text-align: center;
  }

  .member-list-wrapper {
    grid-template-columns: 1fr;
    gap: 15px !important;
  }

  .member-list {
    padding-left: 2rem;
  }

  .member-list li {
    white-space: nowrap;
  }

  /* === 会員限定ページ === */

  .table-layout {
    width: 100%;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
  }

  .member-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: flex-start;
  }

  .archive-section {
    grid-column: 1/2;
    grid-row: 1/2;
  }

  .member-announcements {
    grid-column: 1/2;
    grid-row: 2/3;
  }

  .movie-contents {
    grid-column: 1/2;
    grid-row: 3/4;
  }

  #welcome-container {
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 5px;
  }

  #welcome-message {
    font-size: 0.7rem !important;
  }

  .logout-btn {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
  }

  .archive-section h2,
  .member-announcements h2,
  .movie-contents h2 {
    font-size: 1.0rem !important;
    border-left-width: 8px !important;
    margin-bottom: 15px !important;
  }

  .archive-list li,
  .member-announce-list li {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
    line-height: 1.5 !important;
  }

  .file-link::before {
    width: 18px !important;
    height: 18px !important;
    margin-right: 6px !important;
  }

  .member-announce-list,
  .archive-list {
    padding-left: 5px !important;
  }

  .movie-contents iframe {
    width: 100% !important;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .movie-contents h3 {
    font-size: 0.8rem !important;
    margin-top: 15px !important;
  }

  .file-subtext {
    font-size: .8rem;
  }

  /* === 本文コンテンツ (prose) === */

  .prose-content h3 {
    font-size: 0.95rem;
    margin-top: 25px;
    margin-bottom: 5px;
  }

  .prose-content h4 {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 5px;
  }

  .prose-content p,
  .prose-content ul,
  .prose-content li {
    font-size: 0.8rem;
    line-height: 1.7;
    margin-right: 10px;
    margin-left: 10px;
  }

  .prose-content ul {
    margin-top: 5px;
    margin-bottom: 15px;
    padding-left: 0;
  }

  /* === お問合せ（リファイン版） === */

  .contact-page-header {
    padding: 30px 0 24px;
  }

  .contact-page-header-inner h1 {
    font-size: 1.3rem;
  }

  .contact-section {
    padding: 32px 0 56px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-card h3 {
    font-size: .95rem;
  }

  /* 旧スタイル（後方互換） */
  .contact-info-wrapper {
    grid-template-columns: 1fr;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .contact-info-card p {
    font-size: 0.85rem;
  }

  /* === フッター === */

  .site-footer {
    padding: 10px;
    font-size: 0.75rem;
  }

  .footer-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
    margin: 0 0 10px;
    padding: 0;
  }

  .footer-ul li {
    font-size: 0.6rem;
    white-space: nowrap;
  }

  /* === お知らせ一覧ページ === */

  .news-index {
    padding: 16px 10px;
    margin-top: 5px;
    margin-bottom: 40px;
  }

  .news-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 0;
    gap: 6px 10px;
  }

  .news-card p,
  .news-card__new {
    margin: 0;
    font-size: 0.7rem;
  }

  .news-card__cat {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .news-card__link {
    width: 100%;
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .news-card__file.file-link {
    margin-bottom: 0;
    font-size: 0.75rem;
  }

  .news-card__date {
    margin-top: 0;
  }

  .news-card__new {
    margin-left: 0;
  }

  .news-list li h2 {
    margin-left: 0;
  }

  .news-list-capt {
    margin-left: 0;
    font-size: .9rem;
    line-height: 1.6;
  }

  .event-info {
    margin-left: 0;
  }

  .event-info p {
    font-size: .9rem;
    line-height: 1.4;
  }

  .news-download-page .container>h2 {
    font-size: 1rem;
    margin-top: 24px;
    margin-left: 30px;
    padding-left: 0.7rem;
  }

  .news-download-page .container>p:not(.news-list-capt) {
    margin-left: 0;
    margin-right: 0;
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .news-download-page .news-list li h2 {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .news-download-page .news-list li p {
    margin-left: 0;
    font-size: 0.85rem;
    line-height: 1.7;
  }

  /* === GXニュース === */
  .gx-news-card {
    padding: 10px 12px;
  }

  .gx-news-card-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  .gx-news-meta {
    font-size: 0.75rem;
    gap: 8px;
  }

  .gx-badge {
    min-height: 20px !important;
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    border-radius: 3px !important;
    margin-top: 4px !important;
    vertical-align: bottom !important;
  }

  .gx-post-date {
    margin-top: 8px;
  }

  .gx-tag-area,
  .gx-tag-type {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .gx-post-title {
    width: 100% !important;
    margin-top: 0;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    display: block !important;
  }

  .gx-badge,
  .gx-tag-area,
  .gx-tag-type {
    display: none !important;
  }

  .gx-summary-wrap {
    padding-left: 0;
    max-height: 0;
    opacity: 0;
  }

  .gx-tab-btn {
    font-size: 0.65rem;
    padding: 6px 12px;
  }

  .gx-search-container {
    margin-top: 12px;
    margin-bottom: 14px;
  }

  .gx-search-label {
    font-size: 0.75rem;
  }

  .gx-search-controls {
    gap: 8px;
  }

  .gx-search-input {
    flex-basis: 100%;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .gx-search-clear {
    padding: 7px 13px;
    font-size: 0.72rem;
  }

  .gx-search-status {
    font-size: 0.7rem;
  }

  .gx-news-section-heading {
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 8px;
  }

  .gx-news-section-label,
  .gx-news-section-meta {
    font-size: 0.68rem;
  }

  .gx-cat-btn {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  .gx-area-ranking-panel {
    padding: 14px 12px 15px;
  }

  .gx-area-rank-btn {
    gap: 5px;
  }

  #local-area-ranking-wrapper {
    margin-bottom: 28px;
  }

  .gx-gradient-text {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    display: inline-block;
    filter: drop-shadow(0 0 2px rgba(79, 172, 254, 0.3));
  }

  /* === 注意事項 === */

  .news-disclaimer {
    padding: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .disclaimer-title {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .news-disclaimer li {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .master-tab-container {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 2px solid #ccc;
    flex-wrap: wrap;
  }

  .master-tab-btn {
    padding: 6px 10px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: none;
    border-radius: 6px 6px 0 0;
    font-weight: bold;
    color: #666;
    font-size: .85rem;
    transition: background-color 0.3s, color 0.3s;
  }

  .gx-news-preview .gx-post-title {
    font-size: 0.85rem !important;
  }

  .gx-news-preview .gx-news-meta {
    gap: 8px !important;
  }

}

/* end @media (max-width: 768px) */
