/* ページ全体のスクロールを滑らかにする設定を追加 */
html {
  scroll-behavior: smooth;
  /* 固定ヘッダー（高さ70px）の裏にコンテンツが回り込んで隠れるのを防ぐ設定 */
  scroll-padding-top: 90px;
}

/* Base Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans',
    Meiryo, sans-serif;
}

:root {
  --bg-color: #0d0f12;
  --surface-color: #161b22;
  --surface-muted: #21262d;
  --primary-color: #3fb950;
  --primary-gradient: linear-gradient(135deg, #2ea043, #3fb950);
  --accent-color: #8957e5;
  --text-main: #f0f6fc;
  --text-sub: #8b949e;
  --border-color: #30363d;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--text-main);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Header */
header {
  background-color: rgba(22, 27, 34, 0.95);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.logo-img {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img img {
  max-width: 100%;
  max-height: 100%;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(63, 185, 80, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(137, 87, 229, 0.1),
      transparent 45%
    ),
    var(--bg-color);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-badge {
  display: inline-block;
  background-color: rgba(63, 185, 80, 0.15);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 20px;
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slogan {
  font-size: 1.8rem;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 30px;
  font-style: italic;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.hero-cta {
  display: inline-block;
  background: var(--primary-gradient);
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(63, 185, 80, 0.4);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(63, 185, 80, 0.6);
  color: #fff;
}

/* Common Section Padding */
section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Mission Section */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.mission-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.mission-text p {
  color: var(--text-sub);
  margin-bottom: 20px;
  text-align: justify;
}

.mission-img-wrap {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mission-img-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Features/Activities Section */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.card-icon {
  margin-bottom: 20px;
  display: inline-block;
  width: 48px;
  height: 48px;
}

.card-icon img {
  width: 100%;
  height: 100%;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.card p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* Security Guidelines Section */
.security-box {
  background-color: #1b1329;
  border: 1px solid var(--accent-color);
  border-radius: 12px;
  padding: 40px;
}

.security-box h3 {
  color: #d3b6ff;
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.security-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.security-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.security-list li span {
  display: block;
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* News Section */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  gap: 20px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--text-sub);
  font-size: 0.9rem;
  min-width: 100px;
}

.news-category {
  background-color: var(--surface-muted);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  height: fit-content;
  color: var(--text-main);
}

.news-title {
  flex: 1;
  font-weight: 500;
}

/* Profile Section */
.profile-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.profile-table th {
  color: var(--text-sub);
  font-weight: 500;
  width: 250px;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  display: block;
  width: 100%;
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* Footer */
footer {
  background-color: #090b0d;
  padding: 40px 0;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-sub);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 15px 0;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero {
    padding: 180px 0 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .slogan {
    font-size: 1.4rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mission-img-wrap {
    order: -1;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .news-date {
    min-width: auto;
  }

  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .profile-table th {
    border-bottom: none;
    padding-bottom: 0;
  }
}
