/* ============================================
   運送業許可・運営サポート - 共通スタイルシート
   林税理士社労士事務所
   ============================================ */

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

:root {
  --navy: #1a2744;
  --navy-light: #2c3e6b;
  --navy-dark: #0f1a30;
  --accent: #c8a84e;
  --accent-light: #e8d590;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-light: #e8eaf0;
  --gray: #6b7280;
  --gray-dark: #374151;
  --text: #1f2937;
  --text-light: #4b5563;
  --success: #059669;
  --warning: #d97706;
  --info: #2563eb;
  --shadow: 0 2px 8px rgba(26,39,68,0.08);
  --shadow-lg: 0 8px 24px rgba(26,39,68,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
.header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo { display: flex; flex-direction: column; gap: 2px; }
.logo-main {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.logo-sub {
  font-size: 0.72rem;
  color: var(--accent-light);
  letter-spacing: 0.06em;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  color: rgba(255,255,255,0.85);
  padding: 24px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  transition: all var(--transition);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 3px 3px 0 0;
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { width: 70%; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #3b5998 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,168,78,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.4;
  position: relative;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.8;
  position: relative;
}

/* Sub-page hero (smaller) */
.hero-sub {
  padding: 48px 0;
}
.hero-sub h1 { font-size: 1.8rem; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.82rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 8px; }

/* --- Section --- */
.section { padding: 64px 0; }
.section-alt { background: var(--white); }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 3px;
}
.section-desc {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 0.95rem;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray-light);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --- Info Card (full width) --- */
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border: 1px solid var(--gray-light);
}
.info-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-light);
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-light);
  margin: 24px 0 12px;
}
.info-card p, .info-card li {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.8;
}
.info-card ul, .info-card ol {
  padding-left: 1.5em;
  margin: 12px 0;
}
.info-card li { margin-bottom: 8px; }

/* --- Step Flow --- */
.step-flow { counter-reset: step; }
.step-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-light);
  position: relative;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.step-content { flex: 1; }
.step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step-content p {
  color: var(--text-light);
  font-size: 0.92rem;
}

/* --- Table --- */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead { background: var(--navy); color: var(--white); }
th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text-light);
}
tbody tr:hover { background: rgba(26,39,68,0.03); }

/* --- Alert / Note Box --- */
.note {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.7;
}
.note-info {
  background: #eff6ff;
  border-left: 4px solid var(--info);
  color: #1e40af;
}
.note-warning {
  background: #fffbeb;
  border-left: 4px solid var(--warning);
  color: #92400e;
}
.note-success {
  background: #ecfdf5;
  border-left: 4px solid var(--success);
  color: #065f46;
}

/* --- FAQ --- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid var(--gray-light);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  transition: background var(--transition);
}
.faq-q:hover { background: var(--off-white); }
.faq-q .badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.faq-q .arrow {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--gray);
  transition: transform var(--transition);
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 24px 0 68px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.8;
}
.faq-item.open .faq-a {
  padding: 0 24px 24px 68px;
  max-height: 500px;
}

/* --- CTA --- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius-lg);
  margin: 48px 0;
}
.cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--navy-dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.tag-required { background: #fef2f2; color: #991b1b; }
.tag-important { background: #fffbeb; color: #92400e; }
.tag-new { background: #ecfdf5; color: #065f46; }

/* --- Contact Form --- */
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-family: inherit;
  transition: border var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(44,62,107,0.1);
}
.form-group textarea { min-height: 160px; resize: vertical; }

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer p, .footer a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer a:hover { color: var(--accent-light); }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 8px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .header-inner { min-height: 60px; }
  .hamburger { display: block; }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 0;
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; width: 100%; }
  .nav a::after { display: none; }

  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { padding: 32px 0; }
  .hero-sub h1 { font-size: 1.3rem; }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.3rem; }

  .card-grid { grid-template-columns: 1fr; }
  .info-card { padding: 24px 20px; }

  .step-item { flex-direction: column; gap: 12px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }

  .cta { padding: 40px 20px; }
  .cta h2 { font-size: 1.2rem; }

  .faq-a { padding-left: 24px !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.35rem; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* --- Print Styles --- */
@media print {
  .header, .footer, .cta, .hamburger { display: none; }
  .hero { padding: 24px 0; background: var(--navy) !important; -webkit-print-color-adjust: exact; }
  .section { padding: 24px 0; }
  .card { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
}
