/* ====================================================
   Claude Cowork 活用サイト - 共通スタイルシート
   税理士・社労士・行政書士業務効率化ガイド
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary:    #1A3C5E;
  --accent:     #2E86AB;
  --green:      #27AE60;
  --orange:     #E67E22;
  --red:        #C0392B;
  --bg:         #FFFFFF;
  --bg-sub:     #F5F7FA;
  --bg-dark:    #0F2540;
  --text:       #222222;
  --text-sub:   #666666;
  --border:     #DDE3EC;
  --shadow:     0 4px 18px rgba(26,60,94,0.10);
  --shadow-lg:  0 8px 32px rgba(26,60,94,0.16);
  --radius:     10px;
  --radius-lg:  18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
}

/* ---- Navigation ---- */
.nav {
  background: var(--primary);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-logo span { color: #90D4F0; }
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
}
.nav-links a:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-links a.active { background: var(--accent); color: #fff; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 60%, #1C5F8A 100%);
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #90D4F0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: #90D4F0; }
.hero-sub {
  font-size: 1rem;
  opacity: 0.88;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.9;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.btn-white { background: #fff; color: var(--primary); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 72px 24px; }
.section-sub { padding: 60px 24px; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-gray { background: var(--bg-sub); }
.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-dark .section-label { color: #90D4F0; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.section-dark .section-title { color: #fff; }
.section-desc {
  color: var(--text-sub);
  font-size: 0.94rem;
  margin-bottom: 48px;
  max-width: 640px;
}
.section-dark .section-desc { color: rgba(255,255,255,0.75); }

/* ---- Cards Grid ---- */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border: 1px solid var(--border);
  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: 14px;
  display: block;
}
.card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.card p { font-size: 0.88rem; color: var(--text-sub); line-height: 1.8; }
.card-accent { border-left: 4px solid var(--accent); }
.card-green { border-left: 4px solid var(--green); }
.card-orange { border-left: 4px solid var(--orange); }

/* ---- Skill Cards ---- */
.skill-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 22px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.skill-card:hover { box-shadow: var(--shadow); }
.skill-num {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.skill-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.skill-body p { font-size: 0.84rem; color: var(--text-sub); line-height: 1.7; }

/* ---- Step Flow ---- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-body h4 { font-size: 0.98rem; font-weight: 700; color: var(--primary); margin-bottom: 5px; }
.step-body p { font-size: 0.87rem; color: var(--text-sub); }

/* ---- Code Block ---- */
.code-block {
  background: #0F2540;
  color: #90D4F0;
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: 'Courier New', 'Menlo', monospace;
  font-size: 0.84rem;
  line-height: 1.9;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid rgba(255,255,255,0.08);
}
.code-block .comment { color: rgba(255,255,255,0.38); }
.code-block .highlight { color: #FFD36B; }
.code-block .green { color: #7ED994; }

/* ---- Alert / Info Box ---- */
.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.alert-info { background: #EBF6FB; border-left: 4px solid var(--accent); }
.alert-warn { background: #FEF9EB; border-left: 4px solid var(--orange); }
.alert-good { background: #EBF8EF; border-left: 4px solid var(--green); }
.alert-bad  { background: #FAEAEA; border-left: 4px solid var(--red); }
.alert strong { display: block; margin-bottom: 4px; color: var(--primary); }

/* ---- QA (Dog mascot) ---- */
.qa-block {
  background: var(--bg-sub);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 28px 0;
}
.qa-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}
.qa-item { margin-bottom: 20px; }
.qa-item:last-child { margin-bottom: 0; }
.qa-q {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.qa-q-tag {
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.qa-q p { font-size: 0.92rem; font-weight: 700; color: var(--primary); }
.qa-a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding-left: 20px;
}
.qa-a-tag {
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.qa-a p { font-size: 0.9rem; color: var(--text); line-height: 1.8; }

/* ---- Table ---- */
.tbl-wrap { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table th {
  background: var(--primary);
  color: #fff;
  padding: 11px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.84rem;
}
table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table tr:nth-child(even) td { background: var(--bg-sub); }

/* ---- Page Hero (sub pages) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1C5F8A 100%);
  color: #fff;
  padding: 52px 24px 48px;
}
.page-hero-inner { max-width: 1080px; margin: 0 auto; }
.page-hero-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #90D4F0;
  margin-bottom: 10px;
}
.page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; line-height: 1.3; margin-bottom: 10px; }
.page-hero p { font-size: 0.92rem; opacity: 0.85; max-width: 600px; }

/* ---- Breadcrumb ---- */
.breadcrumb { padding: 12px 24px; background: var(--bg-sub); border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--text-sub); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}
.cta-banner h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 12px; }
.cta-banner p { opacity: 0.88; margin-bottom: 30px; font-size: 0.94rem; }

/* ---- Footer ---- */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.82rem;
}
footer a { color: rgba(255,255,255,0.5); text-decoration: none; }

/* ---- Tag / Badge ---- */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 6px;
}
.tag-blue { background: #D8EEF9; color: var(--accent); }
.tag-green { background: #D4F1E1; color: var(--green); }
.tag-orange { background: #FDF0E0; color: var(--orange); }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border); margin: 48px 0; }

/* ---- Highlight Box ---- */
.highlight-box {
  background: linear-gradient(135deg, #EBF6FB, #F5F7FA);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}

/* ---- Flow Arrow ---- */
.flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 480px;
}
.flow-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.flow-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.2rem;
  padding: 4px 0;
}
.flow-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .section, .section-sub { padding: 48px 16px; }
  .hero { padding: 56px 16px 48px; }
  .page-hero { padding: 36px 16px 32px; }
  .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .cta-banner { padding: 40px 16px; }
  table { font-size: 0.8rem; }
  table th, table td { padding: 9px 12px; }
}
