/* IT転職・社内SEガイド — indigo, cool gray, cyan; rounded-square mark, grid hero — mobile-first, no external fonts */
:root {
  --bg: #eef1f6;
  --bg-elev: #ffffff;
  --ink: #1b1f2a;
  --ink-soft: #4b5568;
  --line: #d5dbe6;
  --navy: #312e81;
  --navy-deep: #1e1b4b;
  --accent: #0f9d9a;
  --accent-soft: #d7f3f1;
  --teal: #0f766e;
  --warn-bg: #fff6e8;
  --warn-line: #c9892e;
  --pr-bg: #eef6f8;
  --hero-from: rgba(30, 27, 75, 0.95);
  --hero-to: rgba(49, 46, 129, 0.80);
  --header-ink: #eef2ff;
  --max: 68rem;
  --measure: 42rem;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(30, 27, 75, 0.06);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Yu Gothic Medium", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}


*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  letter-spacing: 0.02em;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, .nav-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.measure { width: min(var(--measure), 100%); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--navy-deep);
  color: #f6f1e8;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: inherit; }
.mark {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #e8d5c4;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #f3e2d8;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-name { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.06em; }
.brand-tag { font-size: 0.7rem; color: #c9c0b4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #3d5563;
  background: transparent;
  color: #f6f1e8;
  cursor: pointer;
  border-radius: 6px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

#nav-check { position: absolute; opacity: 0; pointer-events: none; }
.site-nav {
  display: none;
  background: var(--navy);
  border-top: 1px solid #314650;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
}
.site-nav a {
  display: block;
  color: #f6f1e8;
  text-decoration: none;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid #314650;
}
.site-nav a:hover { color: #f3e2d8; }
#nav-check:checked ~ .site-nav { display: block; }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  #nav-check { display: none; }
  .header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.55rem 0;
  }
  .header-inner {
    padding: 0;
    flex: none;
  }
  .site-nav {
    display: block !important;
    background: transparent;
    border: 0;
    flex: 1;
    position: static;
  }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem 0.15rem;
    padding: 0;
    justify-content: flex-end;
  }
  .site-nav a {
    border: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
  }
  .site-nav a:hover { background: rgba(255,255,255,0.08); }
}

/* Hide desktop nav structure helpers on small screens — we use one nav */
@media (max-width: 879px) {
  .header-desktop { display: block; }
}

main { padding: 1.6rem 0 3.5rem; }
.page-hero, .home-hero {
  background:
    linear-gradient(160deg, rgba(18,40,51,0.92), rgba(27,58,75,0.82)),
    repeating-linear-gradient(-12deg, transparent, transparent 12px, rgba(255,255,255,0.03) 12px, rgba(255,255,255,0.03) 13px);
  color: #f6f1e8;
  padding: 2.2rem 0 2.4rem;
  margin: -1.6rem 0 1.8rem;
}
.home-hero h1, .page-hero h1 {
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  line-height: 1.4;
  margin: 0 0 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lede { font-size: 1rem; color: #e6ddd2; margin: 0; max-width: 40rem; }
.disclaimer-inline {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #d9cfc3;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid.cats { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card:hover { border-color: var(--teal); }
.card h2, .card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--navy); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.section-title {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 2rem 0 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--navy);
  letter-spacing: 0.06em;
}

.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.article-list a { color: var(--navy); font-weight: 700; text-decoration: none; }
.article-list a:hover { color: var(--accent); text-decoration: underline; }
.meta { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* Article */
.article-header { margin-bottom: 1.2rem; }
.crumbs { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.8rem; }
.crumbs a { color: var(--ink-soft); }
.article-header h1 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.45;
  color: var(--navy-deep);
  margin: 0 0 0.6rem;
}
.pr-notice, .caution {
  background: var(--pr-bg);
  border-left: 4px solid var(--warn-line);
  padding: 0.85rem 1rem;
  margin: 0 0 1.3rem;
  font-size: 0.9rem;
  border-radius: 0 8px 8px 0;
}
.caution { background: #eef5f4; border-left-color: var(--teal); }
.article-body h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 2rem 0 0.7rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.article-body h3 { font-size: 1.05rem; color: var(--navy); margin: 1.4rem 0 0.5rem; }
.article-body p { margin: 0 0 1em; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li { margin: 0.25rem 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.6rem;
  text-align: left;
  background: var(--bg-elev);
}
.unverified {
  display: inline;
  font-size: 0.78em;
  font-weight: 700;
  color: #8a4b12;
  background: #f8e8c8;
  padding: 0.05em 0.4em;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-left: 0.2em;
}
.article-endnote {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.related { margin-top: 2rem; }
.related h2 { font-size: 1.05rem; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d9d0c3;
  padding: 2rem 0 2.4rem;
  font-size: 0.85rem;
}
.site-footer a { color: #f3e2d8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 1rem; padding: 0; list-style: none; }

.sister-sites { margin: 0.8rem 0 0.6rem; }
.sister-sites h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3e2d8;
  margin: 0.2rem 0 0.4rem;
}
.sister-sites ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0 0 0.6rem;
  padding: 0;
  list-style: none;
}

.site-footer p { margin: 0.4rem 0; }
.small { font-size: 0.8rem; }

.static-page { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.8rem; box-shadow: var(--shadow); }
.static-page h1 { margin-top: 0; color: var(--navy-deep); font-size: 1.5rem; }
.static-page h2 { color: var(--navy); font-size: 1.15rem; margin-top: 1.8rem; }

@media (min-width: 880px) {
  .home-hero, .page-hero { padding: 3rem 0 3.1rem; }
}

img.vc-beacon {
  border: 0;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}


/* Theme: IT career — indigo header, cyan accent, subtle grid */
.mark {
  border-radius: 8px;
  border-color: #67e8f9;
  background: rgba(15, 157, 154, 0.2);
  color: #e0fdfa;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
}
.site-header {
  border-bottom: 0;
  box-shadow: 4px 0 0 var(--accent) inset;
}
.page-hero, .home-hero {
  background:
    linear-gradient(135deg, var(--hero-from), var(--hero-to)),
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}
.section-title {
  border-bottom: 2px solid var(--accent);
  color: var(--navy-deep);
}
.card { border-radius: 10px; }
a.card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(15, 157, 154, 0.12); }


/* 次のステップ（記事末尾のまとめ後。広告リンクを含む場合は「広告（PR）」を併記） */
.next-step {
  margin: 1.6rem 0 1rem;
  padding: 0.95rem 1rem;
  background: var(--pr-bg, #f3f6f9);
  border: 1px solid var(--line, #d9e1e8);
  border-left: 4px solid var(--accent, #1b6ca8);
  border-radius: 8px;
}
.article-body .next-step h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.next-step p { margin: 0.4rem 0 0.7rem; }
.next-step ul { margin: 0.3rem 0 0.8rem; }
.next-step-jump { margin: 0 0 1rem; font-size: 0.92rem; }
.next-step-jump a { display: inline-block; padding: 0.35rem 0; font-weight: 700; }
