: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;

}

* {
  box-sizing: border-box;
}

*::before {
  box-sizing: border-box;
}

*::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 {
  display: block;
  max-width: 100%;
}

picture {
  display: block;
  max-width: 100%;
}

video {
  display: block;
  max-width: 100%;
}

canvas {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  max-width: 100%;
}

input {
  font: inherit;
}

button {
  font: inherit;
}

textarea {
  font: inherit;
}

select {
  font: inherit;
}

h1 {
  font-size: inherit;
  font-weight: inherit;
}

h2 {
  font-size: inherit;
  font-weight: inherit;
}

h3 {
  font-size: inherit;
  font-weight: inherit;
}

h4 {
  font-size: inherit;
  font-weight: inherit;
}

h5 {
  font-size: inherit;
  font-weight: inherit;
}

h6 {
  font-size: inherit;
  font-weight: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 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: 0px;
  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 20px;
}

.member {
  margin: 0;
  width: 13%;
  text-align: center;
  background-color: sandybrown;
  padding: 20px 0px;
  color: white;

}

.member a {
  color: white;
  text-decoration: none;
}

.navibar li a {
  text-decoration: none;
  color: white;
}

/* JavaScriptで操作する要素に共通のスタイルを設定 */
.nav-item {
  cursor: pointer;
  /* マウスカーソルを指マークにする */
  /* 背景色の変化を0.3秒かけて滑らかにする */
  transition: background-color 0.4s ease;
}

/* ヒーローセクション */
.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;
}

/* お知らせリスト */
.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: 86%;
  color: var(--primary-color);
  font-weight: 600;
  flex-shrink: 0;
}

.announcement-list a,
.member-page-grid a,
.prose-content a {
  color: var(--link-color);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.announcement-list a::after,
.member-page-grid a::after,
.prose-content a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.announcement-list a:hover,
.member-page-grid a:hover,
.prose-content a:hover {
  color: var(--link-color);
}

.announcement-list a:hover::after,
.member-page-grid a:hover::after,
.prose-content a:hover::after {
  width: 100%;
}


/* 会員企業・団体セクション */
.members-content {
  display: flex;
  align-items: center;
  justify-content: 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: 0em;
  margin-bottom: 5px;
}

.member-category-list li.kaicho::before {
  content: "会長";
  color: #fff;
  background: sandybrown;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 12px;
  position: absolute;
  left: -4.5em;
  /* はみ出す幅を調整 */
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

.member-category-list li.fuku-kaicho::before {
  content: "副会長";
  color: #fff;
  background: sandybrown;
  font-size: 0.75em;
  padding: 2px 8px;
  border-radius: 12px;
  position: absolute;
  left: -5em;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}



.member-list {
  list-style: none;
  margin-bottom: 10px;
  flex: 1;
}

.member-list li {
  padding: 4px 0;
}

.table-layout {
  width: 70%;
  font-size: 1rem;
  line-height: 1.4;
  text-align: left;
}

.table-layout td {
  vertical-align: top;
}

/* コンソーシアム紹介 */
.about-content {
  max-width: 700px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* 「もっと見る」ボタン */
.more-button {
  display: inline-flex;
  align-items: center;
  color: var(--more-color2);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid var(--more-color2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background-color 0.5s, color 0.5s;
}

.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);
}

/* フッター */
.site-footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 20px 0 20px 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px;
  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;
  /* 下線の基準位置をa要素にする */
  color: white;
  text-decoration: none;
}

.footer-ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.footer-ul a:hover {
  color: white;
  /* 変数ではなく直接指定 */
}

.footer-ul a:hover::after {
  width: 100%;
}


.copyright {
  text-align: center;
  opacity: 0.7;
  font-size: 0.85rem;
}

.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%;
}


/* お問い合わせページ */
.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 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;
}

/* 会員限定ページ レイアウト */
.member-page-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;

  gap: 30px;
  align-items: flex-start;
}

.archive-section {
  grid-column: 1/2;
  grid-row: 1/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 {
  grid-column: 2/3;
  grid-row: 1/2;
}

.movie-contents {
  grid-column: 2/3;
  grid-row: 2/3;
}

.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;
}

.archive-list a {
  display: inline-flex;
  align-items: center;

}


/* ファイル種類アイコン */
.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');
}

/* 会員へのお知らせセクション */
.member-announcements {
  padding: 0;
}

.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;
}

/* 目的・活動内容ページ（文章コンテンツ） */
.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 0;
}

.prose-content ul {
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 0 0;
  list-style-position: inside;
  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;
}

.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::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.contact-info-card a:hover {
  color: var(--link-color);
  /* hover時も統一色 */
}

.contact-info-card a:hover::after {
  width: 100%;
}




.image_fitscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: auto;
  margin-top: 0px;
}

.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;
}

/* ===== News index (BEM) ===== */
.news-index {
  max-width: 1100px;
  margin: 40px auto 700px;
  padding: 24px 16px;
}

.news-index__title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 25px;
  color: var(--primary-color);
}



.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.news-list li h2 {
  margin-left: 5rem;
}

.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: .85rem;
  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__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.25s ease;
}

.news-card__link:hover {
  color: var(--link-color);
  /* hover時も統一色 */
}

.news-card__link:hover::after {
  width: 100%;
}

.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;
}

a.is_hidden {
  display: none !important;
}

/* 画像リンクだけ下線・ボーダーを消す */
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;
}



/*メディアクエリ*/

@media (max-width: 640px) {
  .news-card {
    grid-template-columns: 1fr;
    align-items: start;
    margin-bottom: 20px;
  }

  .news-card__new {
    margin-left: 0;
  }
}







@media (max-width: 768px) {
  .navibar {
    font-size: 76%;
    flex-direction: column;
    gap: 0;
  }

  .navibar ul {
    flex-direction: row;
    padding-inline-start: 0;
    justify-content: center;
    margin: 0;
  }

  .navibar li {
    text-align: center;
    padding: 10px;
  }

  .member {
    width: 100%;
    padding: 10px 0;
  }

  .two-column {
    display: block;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero-image {
    margin-top: 30px;
  }

  .members-content {
    flex-direction: column;
    align-items: flex-start;
  }





  .more-button {
    margin-top: 10px;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  /* 2カラムレイアウトを縦並びに変更 */
  .two-column {
    display: block;
    gap: 20px;
  }

  .two-column .left-block {
    width: 100%;
    max-width: none;
    margin-bottom: 20px;
  }

  .two-column .right-block {
    width: 100%;
    max-width: none;
    margin-bottom: 20px;
  }

  /* フッターのレスポンシブ対応 */
  .site-footer {
    padding: 10px 10px;
    font-size: 0.75rem;
  }

  .footer-ul {
    display: flex;
    gap: 10px;
    margin: 0 0 10px 0;
    padding: 0px;
  }

  .table-layout {
    width: 90%;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
  }

  .about-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.8;
  }

  .announcement-list {
    font-size: 0.9rem;
  }


  .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;
  }



  .member-list-wrapper {
    grid-template-columns: 1fr;
  }

  .member-category-list li {
    padding: 4px 0;
    /* 各項目に少し余白を追加 */
    font-size: 0.9rem;
    line-height: 1.5;
  }


  .contact-info-wrapper {
    grid-template-columns: 1fr;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .contact-info-card p {
    font-size: 0.85rem;
  }


  .news-card {
    gap: 5px;
  }

  .news-card__date {
    margin-top: 0px;
  }

  .news-card__file.file-link {
    margin-bottom: 10px;
    font-size: 0.7rem;

  }

.news-list li h2 {
  margin-left: 0;
}


}