*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #dfe6e9;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

/* ── Header ── */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover {
  color: var(--primary);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #a29bfe 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

/* ── Section ── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-sub {
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-item summary::before {
  content: "＋";
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item .faq-answer {
  margin-top: 12px;
  color: var(--text-light);
  padding-left: 28px;
  line-height: 1.8;
}

/* ── Contact Form ── */
.form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--surface);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ── News ── */
.news-article {
  max-width: 720px;
}

.news-article .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.news-article .meta .tag {
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 8px;
}

.news-article h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.news-article .content {
  line-height: 1.9;
}

.news-article .content p {
  margin-bottom: 16px;
}

.news-article .content ul {
  margin: 16px 0;
  padding-left: 24px;
}

.news-article .content li {
  margin-bottom: 8px;
}

/* ── About ── */
.about-content {
  max-width: 720px;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.team-card h4 {
  margin-bottom: 4px;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: #b2bec3;
  text-align: center;
  padding: 32px 24px;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer a {
  color: #dfe6e9;
}

/* ── Auth Gate ── */
.auth-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-box .logo {
  display: block;
  margin-bottom: 8px;
}

.auth-box .auth-sub {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-box input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.auth-box input[type="password"]:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-box .auth-error {
  color: #d63031;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-bottom: 12px;
}

/* ── Update Log ── */
.update-log {
  max-width: 720px;
}

.log-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.log-entry .log-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.log-entry .log-files {
  margin-top: 8px;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.log-entry .log-files li {
  margin-bottom: 4px;
}

/* ── Document List ── */
.doc-list {
  list-style: none;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.doc-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.doc-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.doc-info h3 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.doc-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2rem;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .section {
    padding: 40px 16px;
  }

  .auth-box {
    margin: 0 16px;
    padding: 36px 24px;
  }
}
