/* ============================================================
   技術メモ - stylesheet
   淡い青ベース / 明るい雰囲気
   ============================================================ */

:root {
  --bg: #EAF6FF;
  --surface: #FFFFFF;
  --surface-soft: #F2FAFF;
  --primary: #2E9BDF;
  --primary-deep: #1B6DA8;
  --primary-dark: #155D92;
  --accent: #4FB8F0;
  --accent-soft: #D8EFFF;
  --accent-pale: #EFF8FF;
  --ink: #1C3A52;
  --muted: #5E7A91;
  --border: #CFE6F8;
  --yellow: #FFD166;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(46, 155, 223, 0.14);
  --shadow-sm: 0 4px 14px rgba(46, 155, 223, 0.1);
  --maxw: 1120px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { color: var(--primary-deep); }
.brand-logo { width: 38px; height: 38px; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--muted);
}
.site-nav a:hover { color: var(--primary-deep); background: var(--accent-soft); }
.site-nav a.is-active { color: #fff; background: var(--primary); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary-deep);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-deep); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .85); color: var(--primary-deep); border: 2px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary-deep); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--accent-pale); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-pale) 100%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
}
.hero-title {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.35;
  color: var(--primary-dark);
  letter-spacing: .02em;
}
.hero-lead { margin: 0 0 26px; color: var(--muted); font-size: 1.05rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 20px 0 0; color: var(--primary-deep); font-size: .9rem; }
.hero-note i { color: var(--primary); }
.hero-media { display: flex; justify-content: center; }
.hero-image {
  width: 100%;
  max-width: 520px;
  filter: drop-shadow(var(--shadow));
  border-radius: var(--radius);
}

/* ---------- Sections (common) ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  flex-wrap: wrap;
}
.section-head.left { text-align: left; }
.section-eyebrow {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--primary);
}
.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--primary-dark);
}
.section-lead { margin: 10px 0 0; color: var(--muted); }
.section-link {
  font-weight: 700;
  color: var(--primary-deep);
  white-space: nowrap;
}
.section-link:hover { color: var(--primary); }
.section-link i { transition: transform .2s; }
.section-link:hover i { transform: translateX(4px); }

/* ---------- Feature cards ---------- */
.feature-section { background: var(--accent-pale); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.feature-title { margin: 0 0 10px; font-size: 1.15rem; color: var(--primary-dark); }
.feature-text { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- News / post list ---------- */
.news-section .container > ul { padding: 0; margin: 0; }
.post-section { background: var(--accent-pale); }

.post-list-wrap > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.post-list-wrap li { margin: 0; }

.post-card {
  display: flex;
  gap: 24px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: all .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.post-card-date {
  flex: 0 0 auto;
  width: 76px;
  padding-top: 4px;
  text-align: center;
  color: var(--primary-deep);
  font-size: .85rem;
  font-weight: 700;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}
.post-card-body { min-width: 0; }
.post-card-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.5;
}
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-card-tag {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-size: .78rem;
  font-weight: 600;
}

/* ---------- Topic chips ---------- */
.topic-section { background: var(--surface-soft); }
.topic-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.topic-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ---------- CTA ---------- */
.cta {
  padding: 72px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
}
.cta-inner { text-align: center; }
.cta-title { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-text { margin: 0 0 28px; opacity: .92; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, var(--accent-pale), var(--bg));
  text-align: center;
}
.page-hero-eyebrow {
  margin: 0 0 10px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--primary);
}
.page-hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--primary-dark);
}
.page-hero-lead { margin: 0; color: var(--muted); }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
}
.about-text { margin: 0 0 16px; color: var(--muted); }
.about-icons { display: flex; gap: 12px; margin-top: 8px; }
.about-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-size: 1.1rem;
}
.company-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.company-title { margin: 0 0 16px; font-size: 1.2rem; color: var(--primary-dark); }
.company-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.company-table th,
.company-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }
.company-table th { text-align: left; white-space: nowrap; color: var(--primary-deep); font-weight: 700; width: 34%; }

.policy-section { background: var(--accent-pale); }
.policy-list { display: grid; gap: 20px; }
.policy-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.policy-number {
  grid-row: 1 / 3;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.policy-title { margin: 0 0 6px; font-size: 1.1rem; color: var(--primary-dark); }
.policy-title i { color: var(--primary); margin-right: 6px; }
.policy-text { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- Contact page ---------- */
.contact-section { background: var(--accent-pale); }
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 1.1rem;
}
.contact-label { margin: 0; font-weight: 700; color: var(--primary-dark); font-size: .9rem; }
.contact-value { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.contact-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-size: .85rem;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-title { margin: 0 0 22px; font-size: 1.2rem; color: var(--primary-dark); }
.form-title i { color: var(--primary); margin-right: 8px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; color: var(--primary-dark); }
.form-required {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #FFE3E0;
  color: #D4522E;
  font-size: .72rem;
  font-weight: 700;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--accent-pale);
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: all .2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea.form-input { resize: vertical; }
.form-submit { width: 100%; justify-content: center; }

/* ---------- Post detail ---------- */
.post-main { padding: 48px 0 72px; }
.post-wrap { max-width: 780px; }
.post-breadcrumb { margin: 0 0 18px; color: var(--muted); font-size: .85rem; }
.post-breadcrumb a { color: var(--muted); }
.post-breadcrumb a:hover { color: var(--primary); }
.post-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.post-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.post-date { margin: 0 0 10px; color: var(--primary); font-weight: 600; font-size: .9rem; }
.post-title { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.4; color: var(--primary-dark); }

.post-body { font-size: .98rem; }
.post-body h2 {
  margin: 2em 0 .8em;
  padding-bottom: .4em;
  border-bottom: 2px solid var(--border);
  color: var(--primary-dark);
  font-size: 1.35rem;
}
.post-body h3 { margin: 1.8em 0 .6em; color: var(--primary-dark); font-size: 1.12rem; }
.post-body p { margin: 0 0 1.2em; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.post-body li { margin-bottom: .4em; }
.post-body blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
}
.post-body code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--accent-pale);
  border: 1px solid var(--border);
  color: var(--primary-deep);
  font-size: .88em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.post-body pre {
  margin: 1.5em 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  background: #102A43;
  color: #D8EEFF;
  line-height: 1.6;
}
.post-body pre code {
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: .88rem;
}
.post-body table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: .92rem;
}
.post-body th,
.post-body td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.post-body th { background: var(--accent-soft); color: var(--primary-deep); }
.post-nav { margin-top: 24px; }

/* ---------- Post layout with index sidebar ---------- */
.post-wrap { max-width: 1080px; }
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}
.post-layout-main { min-width: 0; }
.post-aside { min-width: 0; }
.post-index {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.post-index-title {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-index-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 4px;
  max-height: 60vh;
  overflow-y: auto;
}
.post-index-item a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.5;
}
.post-index-item a:hover { background: var(--accent-pale); color: var(--primary-deep); }
.post-index-all { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.post-index-empty { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Blog archive page ---------- */
.blog-main { padding: 48px 0 72px; }
.blog-wrap { max-width: 900px; }
.blog-breadcrumb { margin: 0 0 18px; color: var(--muted); font-size: .85rem; }
.blog-breadcrumb a { color: var(--muted); }
.blog-breadcrumb a:hover { color: var(--primary); }
.blog-head { margin-bottom: 32px; }
.blog-eyebrow { margin: 0 0 8px; color: var(--primary); font-weight: 700; font-size: .85rem; letter-spacing: .06em; }
.blog-title { margin: 0 0 10px; font-size: clamp(1.7rem, 3.6vw, 2.3rem); color: var(--primary-dark); }
.blog-lead { margin: 0; color: var(--muted); }
.blog-back { margin-top: 32px; }
.post-list { display: grid; gap: 20px; }
/* ---------- Blog archive: category accordion ---------- */
.blog-index .cat-group {
  list-style: none;
  margin: 0;
  padding: 4px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.blog-index .cat-item { border-bottom: 1px solid var(--border); }
.blog-index .cat-item:last-child { border-bottom: none; }
.blog-index .cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 4px;
  background: none;
  border: none;
  font: inherit;
  color: var(--primary-deep);
  text-align: left;
  cursor: pointer;
  transition: background .2s;
}
.blog-index .cat-head:hover { background: var(--accent-pale); }
.blog-index .cat-head-name { flex: 1 1 auto; min-width: 0; font-size: 1rem; font-weight: 700; }
.blog-index .cat-head-count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary-deep);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}
.blog-index .cat-head-icon {
  flex: 0 0 auto;
  font-size: .85rem;
  color: var(--muted);
  transition: transform .2s;
}
.blog-index .cat-head.is-open .cat-head-icon { transform: rotate(180deg); }
.blog-index .cat-body { border-top: 1px dashed var(--border); }
.blog-index .cat-body .post-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.blog-index .cat-body .post-card:last-child { border-bottom: none; }
.blog-index .cat-body .post-card:hover { background: var(--accent-pale); transform: none; }
.blog-index .cat-body .post-card .post-title,
.blog-index .cat-body .post-card .post-card-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .98rem; line-height: 1.5; }
.blog-index .cat-body .post-card .post-title a,
.blog-index .cat-body .post-card .post-card-title a { color: var(--ink); }
.blog-index .cat-body .post-card .post-title a:hover,
.blog-index .cat-body .post-card .post-card-title a:hover { color: var(--primary); }
.blog-index .cat-body .post-card .post-date,
.blog-index .cat-body .post-card .post-card-date {
  flex: 0 0 auto;
  margin: 0 0 0 16px;
  padding: 0;
  width: auto;
  border: none;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.blog-index .cat-body .post-card .post-excerpt,
.blog-index .cat-body .post-card .post-card-excerpt { display: none; }

/* ---------- Pager ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.pager-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary-deep);
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
}
.pager-btn:hover:not(:disabled) { background: var(--accent-soft); }
.pager-btn.is-current { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Row tooltip ---------- */
.blog-index .cat-body .post-card { position: relative; }
.blog-index .cat-body .post-card[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 12px;
  right: auto;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: max-content;
  max-width: 340px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary-dark);
  color: #EAF6FF;
  font-size: .8rem;
  line-height: 1.6;
  white-space: normal;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s, visibility .2s;
  pointer-events: none;
}
.blog-index .cat-body .post-card[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 640px) {
  .blog-index .cat-body .post-card[data-tooltip]::after { max-width: 240px; }
}

/* ---------- Blog search ---------- */
[hidden] { display: none !important; }
.blog-search { margin: 0 0 28px; }
.search-box {
  position: relative;
  max-width: 560px;
}
.search-box-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  font-size: 1rem;
}
.search-input {
  width: 100%;
  padding: 14px 52px 14px 46px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.search-input::placeholder { color: var(--muted); opacity: .7; }
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--primary-deep);
  cursor: pointer;
  transition: background .2s;
}
.search-clear:hover { background: var(--accent); color: #fff; }
.search-result { margin: 10px 4px 0; color: var(--muted); font-size: .88rem; }
.search-result strong { color: var(--primary-deep); }
.search-empty {
  margin: 12px 0 0;
  padding: 24px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-index { position: static; }
  .post-wrap { max-width: 780px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #CBE8FB;
  text-align: center;
  padding: 26px 0;
  font-size: .9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-actions, .hero-notes { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .feature-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .policy-card { grid-template-columns: 1fr; gap: 6px; }
  .policy-number { grid-row: auto; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 4%; }
  .site-nav a { padding: 8px 14px; border-radius: 999px; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 48px; }
  .hero-title { font-size: 1.7rem; }
  .blog-index .cat-group { padding: 2px 16px; }
  .blog-index .cat-body .post-card { flex-wrap: wrap; flex-direction: row; padding: 12px 2px; }
  .blog-index .cat-body .post-card .post-date,
  .blog-index .cat-body .post-card .post-card-date { margin-left: 0; }
  .post-card { flex-direction: column; gap: 8px; padding: 18px 20px; }
  .post-card-date {
    width: auto;
    border-right: none;
    padding-top: 0;
    text-align: left;
  }
  .post-article { padding: 26px 20px; }
  .contact-form-wrap { padding: 24px 20px; }
  .post-body pre { padding: 14px; }
  .company-table th { white-space: normal; }
}
