/* ==========================================================================
   在宅ワークの孤立・自己否定対策ガイド - 全ページ共通スタイルシート
   ========================================================================== */

:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-primary: #0f766e;
  --color-primary-dark: #115e59;
  --color-primary-light: #f0fdfa;
  --color-primary-border: #ccfbf1;
  --color-accent: #2563eb;
  --color-accent-light: #eff6ff;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fef3c7;
  --color-warning-text: #92400e;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --max-width: 1000px;
}

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

html {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.site-title a {
  color: var(--color-text-main);
  text-decoration: none;
}

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

.site-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Global Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  text-decoration: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text-main);
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Main Content Wrapper */
.site-main {
  flex: 1;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

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

.breadcrumb-separator {
  color: var(--color-text-light);
}

/* Article / Content Card */
.content-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

/* Typography in Content */
.entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.entry-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-primary-border);
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.entry-title {
  font-size: 1.85rem;
  line-height: 1.4;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.entry-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  background-color: #f8fafc;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

/* Featured / Illustration Image */
.figure-wrapper {
  margin: 2rem 0;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.figure-wrapper img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin: 0 auto;
}

.figure-caption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 0.6rem 1rem;
  background-color: #fafbfc;
  border-top: 1px solid var(--color-border-subtle);
  font-style: italic;
}

/* Heading Levels */
.entry-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-content h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.3em;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.entry-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.85;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

/* Highlight & Callout Boxes */
.callout {
  background-color: var(--color-primary-light);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-main);
}

.callout-body ul {
  margin-bottom: 0;
}

/* Framework / Diagram Box */
.framework-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.framework-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--color-border);
}

.framework-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--color-text-main);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Checklist Table / Styling */
.checklist-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.checklist-table th,
.checklist-table td {
  padding: 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.checklist-table th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: var(--color-text-main);
}

.checklist-table tr:nth-child(even) {
  background-color: #f8fafc;
}

/* Card Grid for Homepage */
.hero-banner {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

.hero-text p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-header {
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-border);
}

.article-card-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: #e2e8f0;
}

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

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

.article-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-tag {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.article-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.article-card-title a {
  color: var(--color-text-main);
  text-decoration: none;
}

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

.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.article-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-subtle);
}

.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Button Component */
.btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Simple Static Page Content */
.static-page-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.static-page-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.static-page-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
}

.static-page-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.contact-action-box {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.contact-notice {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* Info Table for About Page */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

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

.info-table th {
  width: 25%;
  background-color: #f8fafc;
  color: var(--color-text-main);
  font-weight: 700;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 3rem;
  padding-bottom: 2rem;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e293b;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto 1.5rem auto;
  font-size: 0.8rem;
  line-height: 1.7;
  color: #64748b;
  text-align: center;
}

.footer-copy {
  text-align: center;
  font-size: 0.775rem;
  color: #475569;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }
  
  .content-card,
  .static-page-content {
    padding: 1.75rem;
  }

  .entry-title {
    font-size: 1.5rem;
  }
  
  .hero-text h1 {
    font-size: 1.7rem;
  }

  .site-header .container {
    height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    gap: 0.5rem;
  }

  .site-nav a {
    font-size: 0.825rem;
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
  }

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

  .info-table th {
    background-color: transparent;
    padding-bottom: 0.25rem;
    color: var(--color-primary);
  }
}
