/* スクロール後に背景色を付けるためのクラス */
.header.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
}

.section {
  padding: 0 4%;
  max-width: 1000px;
  margin: 0 auto 100px;
  text-align: center;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 60px;
  border-bottom: 2px solid #333;
  display: inline-block;
  text-align: center;
  padding-bottom: 8px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notice-container {
  border: 1px solid black;
  padding: 20px;
  max-width: 1000px;
  width: 100%;
  margin-top: 20px;
}

.notice-item {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.notice-item:last-child {
  margin-bottom: 0;
}

.notice-date {
  width: 120px;
  font-size: 14px;
}

.notice-text a {
  color: #1859a4;
  text-decoration: underline;
}

.notice-text a:hover {
  opacity: 0.8;
}

.notice-label {
  background-color: #fe2e8c;
  color: #fff;
  font-size: 12px;
  padding: 2px 4px;
  margin-right: 10px;
  border-radius: 4px;
}

.notice-text {
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .notice-container {
    width: 100%;
    padding: 16px;
  }

  .notice-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .notice-date {
    width: auto;
    font-size: 12px;
    margin-bottom: 4px;
  }

  .notice-label {
    margin-right: 0;
    margin-bottom: 4px;
  }

  .notice-text {
    font-size: 14px;
    text-align: left;
  }
}

.mission-container {
  background: #daf2fe;
  padding: 24px;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.mission-container:hover {
  box-shadow: 0 8px 24px rgba(30, 66, 128, 0.15);
  transform: translateY(-8px) scale(1.03);
  background: #b8e2fa;
  cursor: pointer;
}

.mission-container h2 {
  color: #1e4280;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding-bottom: 16px;
}

.mission-container p {
  font-size: 16px;
  text-align: left;
}

@media (max-width: 768px) {
  .mission-container h2 {
    font-size: 20px;
    text-align: center;
  }

  .mission-container p {
    font-size: 14px;
    text-align: left;
  }
}

.see-more {
  width: 800px;
  margin-top: 16px;
  text-align: right;
  font-size: 14px;
}

.see-more a {
  text-decoration: none;
}

.see-more a::after {
  content: " ＞";
}

.business {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
  align-items: center;
}

.business img {
  width: 100%;
  border-radius: 8px;
}

.business .text {
  width: 100%;
  text-align: left;
}

.business .text h3 {
  font-size: 32px;
  font-weight: bold;
}

.business .text .sub-title {
  font-size: 16px;
  padding-bottom: 16px;
}

/* PC時のみ横並び＆.reverse に対応 */
@media (min-width: 769px) {
  .business {
    flex-direction: row;
  }

  .business .text,
  .business img {
    width: 50%;
  }

  .business.reverse {
    flex-direction: row-reverse;
  }
}
.button-container {
  text-align: center;
  margin-top: 40px;
}

.button {
  display: inline-flex; /* ←ここがポイント */
  align-items: center;
  gap: 8px;
  padding: 16px 56px;
  background: #1e3a8a;
  color: #fff;
  border-radius: 48px;
  font-weight: bold;
  transition: background 0.3s;
  text-decoration: none;
}

.button:hover {
  background: #3b82f6;
}

.button .icon {
  width: 16px;
  height: 16px;
}

.section-gray {
  background-color: #f5f5f5;
  padding: 32px 4%;
  text-align: center;
}

.works {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  max-width: 848px;
  margin: 0 auto;
}

.card {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  width: 400px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(30, 66, 128, 0.15);
  transform: translateY(-8px) scale(1.03);
  cursor: pointer;
}

.works .card .card-title {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0 auto 16px auto;
  text-align: center;
  width: 280px;
  border: #1859a4 1px solid;
  padding: 8px;
  border-radius: 40px;
  background: #1859a4;
}

.works .card .card-year {
  font-size: 16px;
  font-weight: bold;
  color: #1859a4;
  margin-bottom: 8px;
  text-align: center;
}

.works .card .card-location {
  font-weight: 700;
}

.footer {
  background: #1e293b;
  color: #fff;
  text-align: center;
  padding: 40px 48px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
}

.footer-logo img {
  width: auto;
  height: auto;
}

.footer-menu a {
  margin: 0 10px;
  color: #ccc;
  font-size: 14px;
}

.footer-menu a:hover {
  color: #fff;
}

footer p {
  font-size: 12px;
  margin-top: 20px;
  color: #888;
}
@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-menu a {
    margin: 6px 0;
  }
}
