@charset "UTF-8";

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-primary: #1e3a8a;
  --color-primary-hover: #1d4ed8;
  --color-accent: #0f766e;
  --color-text-main: #1e293b;
  --color-text-sub: #475569;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Yu Gothic Medium", sans-serif;
  --max-width: 1000px;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.09);
  --transition: all 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

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

ul, ol {
  padding-left: 1.4rem;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.main-content {
  flex: 1;
  padding: 40px 0 60px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-logo {
  display: flex;
  flex-direction: column;
}

.site-logo a {
  display: inline-block;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

.nav-item a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-sub);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0;
  margin-bottom: 40px;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background-color: #e0e7ff;
  color: #3730a3;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--color-text-main);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ==========================================================================
   Section Styling
   ========================================================================== */
.content-section {
  margin-bottom: 56px;
}

.section-header {
  margin-bottom: 28px;
  text-align: center;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* ==========================================================================
   Article Cards Grid (3 Columns)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.article-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  color: inherit;
}

.card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--color-surface-alt);
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .card-thumb {
  transform: scale(1.04);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-accent);
  background-color: #f0fdfa;
  border: 1px solid #ccfbf1;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-text-main);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.article-card:hover .card-title {
  color: var(--color-primary-hover);
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.card-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.card-action svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.article-card:hover .card-action svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Guide & Overview Info Box
   ========================================================================== */
.overview-panel {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.overview-panel h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border-light);
}

.overview-panel p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.85;
  margin-bottom: 16px;
}

.overview-panel p:last-child {
  margin-bottom: 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.pillar-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 20px;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-desc {
  font-size: 0.875rem;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   Static Pages (Privacy, Terms, About, Contact)
   ========================================================================== */
.page-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 36px 0;
  margin-bottom: 36px;
}

.page-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.page-lead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.page-article {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.page-article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.page-article h2:first-of-type {
  margin-top: 0;
}

.page-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-article p {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.85;
  margin-bottom: 18px;
}

.page-article ul,
.page-article ol {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 1.6rem;
}

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

/* Table Style for About Page */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.info-table th,
.info-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  line-height: 1.7;
}

.info-table th {
  width: 25%;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  font-weight: 600;
  vertical-align: top;
}

.info-table td {
  color: var(--color-text-sub);
}

/* Contact Button Card */
.contact-card {
  text-align: center;
  padding: 48px 24px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-note {
  background-color: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: var(--border-radius-sm);
  padding: 18px 20px;
  margin-bottom: 32px;
  text-align: left;
}

.contact-note-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-note-text {
  font-size: 0.875rem;
  color: #7f1d1d;
  line-height: 1.7;
  margin: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.25);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 48px 0 32px;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li a {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.footer-nav li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-disclaimer {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  text-align: center;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media screen and (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media screen and (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero-section {
    padding: 32px 0;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-article {
    padding: 24px 18px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 4px;
    background-color: transparent;
    color: var(--color-primary);
  }

  .info-table td {
    padding-top: 0;
    padding-bottom: 16px;
  }
}
