/* ===== 東京税理士紹介.com 共通CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@400;700&display=swap');

:root {
  --primary: #1a3a6b;
  --primary-light: #2d5aa0;
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --bg: #f8f9fc;
  --bg-white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #5a6a7a;
  --border: #dde3ed;
  --cta-bg: #1a3a6b;
  --cta-hover: #122d55;
  --card-shadow: 0 2px 12px rgba(26,58,107,0.08);
  --radius: 10px;
  --max-width: 860px;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* Header */
header {
  background: var(--primary);
  color: #fff;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-logo {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.header-cta {
  background: #f59e0b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

/* Breadcrumb */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb span { margin: 0 6px; }

/* Main Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 16px 60px;
}

/* Article Header */
.article-header {
  margin-bottom: 32px;
}
.article-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Intro Box */
.intro-text {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.9;
}
.intro-text .issue-list {
  background: #f0f4ff;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 14px;
}
.intro-text .issue-list li {
  list-style: none;
  padding: 3px 0;
}
.intro-text .issue-list li::before {
  content: "・";
  color: var(--accent);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #1a3a6b 0%, #2d5aa0 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 32px 0;
  color: #fff;
  text-align: center;
}
.cta-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.cta-box p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
  line-height: 1.7;
}
.cta-btn {
  display: inline-block;
  background: #f59e0b;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.cta-btn:hover { background: #d97706; }

/* Top Guide Link */
.top-guide {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
}
.top-guide p { margin-bottom: 8px; color: var(--text-muted); }
.top-guide a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.top-guide a::before { content: "→"; }

/* H2 / H3 */
h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin: 40px 0 20px;
  line-height: 1.4;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

p { margin-bottom: 16px; font-size: 15px; }

/* Image Block */
.img-block {
  margin: 24px 0;
  text-align: center;
}
.img-block img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* Inline Link */
.text-link {
  color: var(--accent);
  text-decoration: underline;
  font-size: 14px;
}
.inline-link-box {
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
}
.inline-link-box a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.inline-link-box a::before { content: "→ "; }

/* Step Cards (Flow) */
.flow-steps {
  margin: 20px 0;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
}
.flow-step-num {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-step-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.flow-step-body p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--card-shadow);
}
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* Article End TOP Link */
.article-end-top {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 40px 0 32px;
  font-size: 14px;
}
.article-end-top p { margin-bottom: 10px; color: var(--text-muted); }
.article-end-top a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.article-end-top a::before { content: "→ "; }

/* Related Articles */
.related-articles {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.related-articles h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary);
}
.related-articles h3::before { display: none; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
  display: block;
}
.related-card:hover {
  box-shadow: 0 4px 16px rgba(26,58,107,0.12);
  border-color: var(--accent-light);
}
.related-card-label {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.related-card p {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
  line-height: 1.5;
}

/* FAQ Section */
.faq-section { margin: 40px 0; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}
.faq-q::after {
  content: "▼";
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-top: 3px;
}
.faq-item.open .faq-q::after { transform: rotate(180deg); }
.faq-q-label {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-a {
  display: none;
  padding: 0 20px 18px 54px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }
.faq-a-label {
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  vertical-align: middle;
}

/* TOP Related 6 Cards */
.related-6-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 32px 16px;
  margin-top: 60px;
  font-size: 13px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-inner p { margin-bottom: 8px; color: rgba(255,255,255,0.7); }

/* Responsive */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .related-6-grid { grid-template-columns: 1fr; }
  .cta-btn { font-size: 15px; padding: 14px 20px; }
}

/* ============================================================
   東京税理士紹介.com 追加コンポーネント
   ============================================================ */

/* エリア特徴バッジ */
.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: #e8f0fe;
  color: #1a3a8a;
  border: 1px solid #b3c8f9;
  margin: 0 4px 6px 0;
}

/* 業種チェックリスト */
.industry-check {
  margin: 20px 0;
  padding: 18px 20px;
  background: #f4f7fd;
  border-left: 4px solid #1a3a8a;
  border-radius: 0 10px 10px 0;
}
.industry-check__title {
  font-size: .88rem;
  font-weight: 800;
  color: #1a3a8a;
  margin: 0 0 10px;
}
.industry-check ul {
  margin: 0;
  padding-left: 1.2em;
}
.industry-check li {
  font-size: .93rem;
  line-height: 1.75;
  margin-bottom: 4px;
  color: #333;
}

/* 東京エリア比較表 */
.area-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .91rem;
  margin: 18px 0;
}
.area-table th {
  background: #1a3a8a;
  color: #fff;
  padding: 9px 12px;
  text-align: left;
  font-weight: 700;
}
.area-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #e0e8f5;
  vertical-align: top;
}
.area-table tr:nth-child(even) td {
  background: #f4f7fd;
}

@media (max-width: 600px) {
  .area-table { font-size: .83rem; }
  .area-table th, .area-table td { padding: 7px 8px; }
  .industry-check { padding: 14px 14px; }
}
