/* ================================
	style.css : サイト全体共通のスタイル
================================ */
:root {
  --main-color: #28b9b9;
  --sub-color: #efefef;
  --accent-color: #e4007f;
  --text-color: #333;
}

/* 全体 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.85;
}

html {
  margin: 0 !important;
}

body {
  font-family: "メイリオ", "Meiryo", "游ゴシック", YuGothic, "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--main-color);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

@media (min-width: 768px) {
  p {
    font-size: 1.2rem;
  }
}

ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  filter: brightness(105%);
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  width: 25%;
  white-space: nowrap;
  border-bottom: 1px dashed var(--main-color);
  color: var(--main-color);
}

.table td {
  border-bottom: 1px dashed #cdcdcd;
}

@media (max-width: 767.98px) {
  .table tr {
    display: flex;
    flex-direction: column;
    border-bottom: 1px dashed var(--main-color);
    padding: 0.75rem 0;
  }

  .table th,
  .table td {
    display: block;
    width: 100%;
    border: none !important;
    text-align: left;
  }

  .table th {
    font-weight: 700;
    margin-bottom: 0.25rem;
  }
}

/* ----------------------------------------
  ヘッダー
---------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.site-header .h-logo {
  max-height: 30px;
  height: auto;
  width: auto;
  margin-bottom: 0.25rem;
}

.site-header p {
  font-weight: 600;
  margin-bottom: 0;
  color: #555;
}

.header-menu a {
  position: relative;
  text-decoration: none;
  color: #555;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.header-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.header-menu a:hover::after {
  width: 100%;
}

.header-menu a:hover {
  color: var(--main-color);
}

/* ----------------------------------------
  ハンバーガーボタン
---------------------------------------- */
.menu-toggle {
  background: none;
  border: none;
  color: var(--main-color);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-toggle .menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-toggle .menu-text {
  font-size: 0.75rem;
}

.menu-toggle:hover,
.menu-toggle:focus {
  filter: brightness(110%);
  outline: none;
}

#sp-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9;
}

#sp-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#sp-menu .menu-item a {
  display: block;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

#sp-menu .menu-item:last-child a {
  border-bottom: none;
}

#sp-menu .menu-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.header-menu a:hover::after {
  width: 100%;
}

#sp-menu .menu-item a:hover {
  background-color: #f5f5f5;
  color: var(--main-color);
  transition: width 0.3s ease;
}

@media (max-width: 991px) {
  .menu-toggle {
    display: block;
  }
}

/* ----------------------------------------
  コンテンツ共通
---------------------------------------- */

.container {
  max-width: 1000px !important;
}

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

#overview {
  padding: 6rem 0 3rem !important;
}

#news,
#about,
#report,
#organization {
  padding: 3rem 0 !important;
}

#overview .container,
#news .container,
#about .container,
#report .container,
#organization .container {
  padding: 0 1.25rem;
}

.section-title {
  position: relative;
  font-size: 1.8rem;
  font-weight: 700;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--main-color) 0 26px,
    var(--sub-color) 26px 100%
  );
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

@media (max-width: 767px) {
  .section-title {
    font-size: 1.4rem;
  }
}

/* ----------------------------------------
  メインビジュアル
---------------------------------------- */

#main {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

#main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  #main {
    height: 280px;
  }
}

/* ----------------------------------------
  新着情報
---------------------------------------- */

.news-list a {
  text-decoration: underline !important;
  line-height: 1.6;
}

.news-list a:hover {
  text-decoration: none !important;
}

.news-list li.hidden {
  display: none !important;
}

.news-date {
  color: #666;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  #overview {
    padding: 10rem 0 5rem !important;
  }

  #news,
  #about,
  #report,
  #organization {
    padding: 5rem 0 !important;
  }

  .news-list li {
    gap: 3rem !important;
  }

  .news-date {
    margin-bottom: 0;
  }
}

.btn-area {
  display: flex;
  justify-content: center;
}

.news-list-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  color: var(--main-color);
  border-radius: 0;
  border: 1px solid var(--main-color);
  text-decoration: none !important;
}

.news-list-link:hover {
  background-color: var(--main-color);
  border: 1px solid var(--main-color) !important;
  color: #fff !important;
}

.news-list-link:active {
  background-color: var(--main-color) !important;
  color: #fff !important;
  border-color: var(--main-color) !important;
}

.news-list-link:focus,
.news-list-link:focus-visible {
  background-color: var(--main-color);
  color: #fff !important;
  border-color: var(--main-color);
  outline: none;
}

.news-list-link:visited {
  color: var(--main-color);
}

/* ----------------------------------------
  お知らせ詳細
---------------------------------------- */

h1.news-title {
  font-size: 1.75rem !important;
}

.news-detail .news-date {
  margin-bottom: 0.5rem !important;
}

.news-detail h2 {
  font-size: 1.5rem;
}

.news-detail h3 {
  font-size: 1.25rem;
}

.news-detail h4 {
  font-size: 1.15rem;
}

.news-detail p {
  line-height: 1.5 !important;
  font-size: 1.15rem !important;
}

.news-detail a {
  text-decoration: underline;
}

.news-detail h2,
.news-detail h3,
.news-detail h4 {
  position: relative;
  padding-bottom: 1rem;
}

.news-detail h2::after,
.news-detail h3::after,
.news-detail h4::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--main-color) 0 26px,
    var(--sub-color) 26px 100%
  );
  margin: 0.5rem 0;
  border-radius: 2px;
}

/* ----------------------------------------
  事業内容
---------------------------------------- */

#about .num-list {
  list-style: auto !important;
}

#about .num-list {
  counter-reset: num;
  background-color: #f9f9f9;
  padding: 1.5em 2em;
  margin: 1.5rem 0 4rem;
  border: #333 1px dashed;
}

#about .num-list li {
  list-style: none;
  counter-increment: num;
  position: relative;
  margin-bottom: 1em;
  line-height: 1.7;
  padding-left: 2.5em;
}

#about .num-list li:last-child {
  margin-bottom: 0;
}

#about .num-list li::before {
  content: counter(num) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 500;
  color: #333;
  font-size: 1.1em;
}
#about h3 {
  font-size: 1.5rem !important;
}

.about-card {
  margin: 30px 0;
  padding: 0;
}

.about-card .card-content {
  background-color: #dff4f4;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  padding: 1rem;
  position: relative;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-card .card-content h4 {
  text-align: center;
  margin: 0;
}

.about-card .card-content p {
  margin-top: 1rem;
}

.about-card .card-content:before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-left: 20px solid #fff;
  border-bottom: 20px solid #28b9b9;
}

.card-content h4 {
  font-size: 1.25rem !important;
  font-weight: bold;
  line-height: 1.4;
}

.card-content .text {
  font-size: 16px !important;
  color: var(--text-color) !important;
  line-height: 1.75;
}

/* ----------------------------------------
  成果報告
---------------------------------------- */

#report ul {
  margin: 2rem 0;
}

#report li {
  list-style: none;
}

#report h3 {
  font-size: 1.1rem !important;
  font-weight: 600;
  margin-bottom: 0 !important;
}

#report a {
  text-decoration: none;
}

#report a:hover {
  text-decoration: underline;
}

#report .report-comment {
  font-size: 16px !important;
  margin: 0.5rem 0 0.75rem;
}

.no-report {
  text-align: center;
  margin: 5rem 0 0;
}

@media screen and (max-width: 767.98px) {
  #report ul {
    padding-left: 0;
  }
}

/* ----------------------------------------
  フッター
---------------------------------------- */

footer {
  background-color: var(--main-color);
  color: #fff;
  padding: 40px 0;
  font-size: 0.95rem;
}

.footer-logo {
  max-width: 350px;
  width: 100%;
}

footer .copy {
  color: #ffffff !important;
}

/* ----------------------------------------
  TOPへ戻るボタン
---------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  border: 1px #fff solid !important;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 100;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.6;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.back-to-top:focus {
  outline: none;
}

@media screen and (max-width: 767.98px) {
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}
