/* FlashVault History — styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #e8642a;
  --accent-dark: #c2501e;
  --bg: #f5f5f0;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e0e0d8;
  --max-width: 860px;
  --font: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ── */
.site-header {
  background: #1a1a1a;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.logo-icon { font-size: 22px; }

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: #ccc;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); text-decoration: none; }

/* ── HERO (top page) ── */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero p {
  font-size: 1.1rem;
  color: #bbb;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s;
}
.hero-btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ── MAIN LAYOUT ── */
.main-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.5px;
}
.section-title span { color: var(--accent); }

/* ── ARTICLE CARDS ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #2a2a2a, #3d3d3d);
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 8px;
}
.card-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--accent); text-decoration: none; }
.card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* ── ABOUT BOX ── */
.about-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.about-box h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.about-box p { color: var(--text-secondary); font-size: 14px; line-height: 1.8; }

/* ── ARTICLE PAGE ── */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

.article-header { margin-bottom: 32px; }
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.article-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.4px;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--accent-dark);
}
.article-body p {
  margin-bottom: 18px;
  color: var(--text);
  line-height: 1.9;
}
.article-body ul, .article-body ol {
  margin: 0 0 18px 24px;
  color: var(--text);
  line-height: 1.9;
}
.article-body li { margin-bottom: 6px; }

.article-highlight {
  background: #fff8f4;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.article-nav a {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color 0.15s, color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}
.article-nav a:hover { border-color: var(--accent); color: var(--text); }
.article-nav a strong { font-size: 14px; color: var(--text); font-weight: 700; }
.article-nav a.next { text-align: right; }

/* ── RELATED ARTICLES ── */
.related-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.related-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.related-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s;
  text-decoration: none;
}
.related-list a:hover { border-color: var(--accent); }
.related-list a .rel-icon { font-size: 22px; width: 36px; text-align: center; }

/* ── FOOTER ── */
.site-footer {
  background: #1a1a1a;
  color: #888;
  padding: 40px 24px 24px;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-brand .logo { font-size: 18px; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #888; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── LANGUAGE SWITCHER ── */
.lang-link {
  margin-left: auto;
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 10px;
  letter-spacing: 0.5px;
  transition: color 0.15s, border-color 0.15s;
}
.lang-link:hover { color: #fff; border-color: var(--accent); text-decoration: none; }

/* ── CONTACT FORM ── */
.contact-wrap { max-width: 560px; }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.form-submit:hover { background: var(--accent-dark); }
.contact-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}

/* ── THANKS PAGE ── */
.thanks-wrap { max-width: 480px; margin: 80px auto; padding: 0 24px; text-align: center; }
.thanks-icon { font-size: 4rem; margin-bottom: 16px; }
.thanks-wrap h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.thanks-wrap p { color: var(--text-secondary); margin-bottom: 28px; }

/* ── 404 PAGE ── */
.footer-fixed { position: fixed; bottom: 0; width: 100%; }
.error-wrap { max-width: 480px; margin: 80px auto; padding: 0 24px; text-align: center; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.error-wrap h1 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.error-wrap p { color: var(--text-secondary); margin-bottom: 28px; font-size: 15px; }

/* ── TIMELINE BOX ── */
.timeline-box { border-left-color: #555; background: #fff; }
.timeline-text { font-size: 14px; line-height: 2.2; color: #444; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .article-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 16px; }
  .site-nav a { padding: 6px 8px; font-size: 13px; }
  .article-header h1 { font-size: 1.5rem; }
  .article-nav { flex-direction: column; }
}
