/*
  TOB SEO Independent Website Template
  Static front-end: HTML + CSS + JavaScript/jQuery-friendly structure
*/
:root {
  --primary: #0b4f8a;
  --primary-dark: #08385f;
  --secondary: #0f766e;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #f5f7fb;
  --white: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-light { background: var(--light); }
.section-title { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-title span, .eyebrow { color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.section-title h2, .content-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 10px 0 12px; color: #0f172a; }
.section-title p { color: var(--muted); margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 22px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: var(--white); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary); }
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #0f172a; font-size: 20px; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 900; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-dropdown > a { display: inline-flex; align-items: center; min-height: 78px; padding: 0 12px; color: #334155; font-weight: 700; }
.nav > a:hover, .nav-dropdown > a:hover { color: var(--primary); }
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown > a::after { content: '▾'; font-size: 11px; margin-left: 6px; color: var(--muted); }
.nav-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; padding: 10px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: #334155; font-weight: 600; }
.nav-dropdown-menu a:hover { background: var(--light); color: var(--primary); }
.mobile-toggle { display: none; border: 0; background: transparent; font-size: 28px; color: var(--text); cursor: pointer; }
.hero { position: relative; overflow: hidden; padding: 96px 0; background: linear-gradient(135deg, #eef7ff, #f6fffb); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.08; margin: 12px 0 20px; color: #0f172a; }
.hero p { font-size: 18px; color: #475569; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { background: var(--white); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; }
.page-hero { padding: 64px 0; background: linear-gradient(135deg, #eef7ff, #f7fafc); }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.15; margin: 10px 0 12px; color: #0f172a; }
.page-hero p { max-width: 760px; color: #475569; font-size: 18px; margin: 0; }
.breadcrumb { padding: 18px 0; border-bottom: 1px solid var(--border); background: #fff; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: #cbd5e1; }
.breadcrumb a { color: var(--primary); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04); overflow: hidden; transition: .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; color: #0f172a; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: 13px; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-link { border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; color: #334155; background: #fff; font-weight: 700; }
.filter-link.active, .filter-link:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.sidebar-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.sidebar { position: sticky; top: 100px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.sidebar h3 { margin-top: 0; }
.sidebar a { display: block; padding: 10px 12px; border-radius: 10px; color: #334155; font-weight: 700; }
.sidebar a:hover, .sidebar a.active { background: var(--light); color: var(--primary); }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 38px; align-items: start; }
.detail-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 18px rgba(15,23,42,.04); }
.rich-text { font-size: 17px; color: #334155; }
.rich-text h2 { color: #0f172a; margin-top: 32px; line-height: 1.25; }
.rich-text h3 { color: #0f172a; margin-top: 24px; }
.rich-text ul, .rich-text ol { padding-left: 22px; }
.rich-text blockquote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid var(--primary); background: var(--light); color: #334155; border-radius: 0 12px 12px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--light); color: #0f172a; }
.feature-list { display: grid; gap: 14px; }
.feature-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.feature-icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; background: #dcfce7; color: #166534; font-weight: 900; }
.process { counter-reset: step; display: grid; gap: 16px; }
.process-item { counter-increment: step; display: grid; grid-template-columns: 46px 1fr; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.process-item::before { content: counter(step); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: #fff; border: 0; padding: 18px 20px; font-weight: 800; color: #0f172a; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; }
.faq-question::after { content: '+'; font-size: 22px; color: var(--primary); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--muted); }
.faq-item.active .faq-answer { display: block; }
.cta { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: 28px; padding: 42px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 38px); }
.cta p { margin: 0; color: rgba(255,255,255,.86); }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; font: inherit; background: #fff; color: var(--text); }
.textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--muted); font-size: 14px; margin: 0; }
.map-embed { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--light); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }
.contact-info { display: grid; gap: 14px; }
.contact-item { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.footer { background: #0f172a; color: #cbd5e1; padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.footer h3, .footer h4 { color: #fff; margin: 0 0 14px; }
.footer a { display: block; color: #cbd5e1; margin: 8px 0; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #94a3b8; font-size: 14px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; display: none; box-shadow: var(--shadow); }
.back-to-top.show { display: block; }
.notice { padding: 12px 14px; border-radius: 12px; background: #ecfdf5; color: #166534; display: none; }
.notice.show { display: block; }
@media (max-width: 980px) {
  .mobile-toggle { display: block; }
  .nav { position: absolute; top: 78px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); display: none; flex-direction: column; align-items: stretch; padding: 12px 16px 18px; }
  .nav.open { display: flex; }
  .nav > a, .nav-dropdown > a { min-height: auto; padding: 11px 6px; }
  .nav-dropdown { display: block; }
  .nav-dropdown-menu { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown::after { display: none; }
  .hero .container, .detail-layout, .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero, .page-hero { padding: 58px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta { padding: 28px; border-radius: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { height: 70px; }
  .nav { top: 70px; }
}
