/* =========================================================
   未経験エンジニア転職ガイド LP
   モバイルファースト / 外部フォント不使用（表示速度優先）
   ========================================================= */

:root {
  --navy-900: #0b2440;
  --navy: #12355b;
  --navy-600: #1d4b7a;
  --turquoise: #12a5a5;
  --turquoise-text: #0b7d80;   /* 白背景で4.5:1以上 */
  --turquoise-50: #e8f6f6;
  --green: #06875a;            /* CTA（白文字で4.5:1以上） */
  --green-hover: #046b47;
  --text: #1f2a37;
  --text-sub: #4b5563;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-tint: #f4f8fb;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(18, 53, 91, 0.08);
  --header-h: 56px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  overflow-wrap: anywhere;
  line-break: strict;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
h1, h2, h3, .hero__lead, .section__lead, .bridge, .cta-band__text, .checklist li, .point-list li, .btn { word-break: auto-phrase; }
p { margin: 0; }
a { color: var(--navy-600); }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 700; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; line-height: 1.4; text-align: center; text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn--line { background: var(--green); color: #fff; box-shadow: 0 4px 0 #035c3d; }
.btn--line:hover { background: var(--green-hover); }
.btn--line:active { transform: translateY(2px); box-shadow: 0 2px 0 #035c3d; }
.btn--lg { width: 100%; max-width: 420px; min-height: 60px; font-size: 17px; }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 14px; box-shadow: none; }
.btn--block { width: 100%; }
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }
.btn__icon { width: 24px; height: 24px; flex: none; }

/* ---------- Common section ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-tint); }
.section__title { color: var(--navy); font-size: 24px; text-align: center; margin-bottom: 28px; }
.section__title::after {
  content: ""; display: block; width: 40px; height: 3px; margin: 14px auto 0;
  background: var(--turquoise); border-radius: 2px;
}
.section__lead { color: var(--text-sub); margin: -8px auto 28px; max-width: 640px; }
.eyebrow { color: var(--turquoise-text); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; margin-bottom: 8px; }
.notice { margin-top: 24px; font-size: 14px; color: var(--text-sub); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .section__title { font-size: 30px; }
  .section__lead { text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 80% at 100% 0%, var(--turquoise-50) 0%, rgba(232, 246, 246, 0) 60%),
    var(--bg);
  padding: 40px 0 56px;
}
.hero__inner { display: grid; gap: 32px; align-items: center; }
.hero__title { color: var(--navy); font-size: clamp(30px, 8.4vw, 48px); font-weight: 800; letter-spacing: 0.01em; margin-bottom: 20px; }
.hero__lead { font-size: 16px; color: var(--text); margin-bottom: 28px; }
.hero__visual { margin: 0; border-radius: 16px; overflow: hidden; background: var(--turquoise-50); aspect-ratio: 4 / 3; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.cta-note { margin-top: 14px; font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }
@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .hero__lead { font-size: 18px; }
}

/* ---------- Worries ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 14px 52px; font-weight: 500;
}
.checklist li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--turquoise);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 6.8-6.8 1.8 1.8-8.6 8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 6.8-6.8 1.8 1.8-8.6 8.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bridge { margin-top: 28px; text-align: center; font-size: 17px; color: var(--navy); }
.bridge strong { background: linear-gradient(transparent 62%, #bfe9e6 62%); }

/* ---------- Jobs ---------- */
.job-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.job-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: var(--radius); padding: 24px 20px 20px; box-shadow: var(--shadow);
}
.job-card__num { position: absolute; right: 16px; top: 12px; font-size: 28px; font-weight: 800; color: var(--turquoise-50); line-height: 1; -webkit-text-stroke: 1px var(--turquoise); }
.job-card__title { color: var(--navy); font-size: 19px; margin-bottom: 10px; padding-right: 48px; }
.job-card p { font-size: 15px; }
.job-card__skill { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--text-sub); font-size: 14px !important; }
.job-card__skill span { display: block; color: var(--turquoise-text); font-weight: 700; font-size: 12px; }
@media (min-width: 768px) { .job-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

.job-card__icon { width: 52px; height: 52px; margin-bottom: 12px; }

/* ---------- Career step example ---------- */
.career { margin-top: 48px; background: var(--bg-tint); border-radius: 16px; padding: 28px 20px; }
.career__title { color: var(--navy); font-size: 20px; text-align: center; margin-bottom: 10px; }
.career__lead { color: var(--text-sub); font-size: 15px; margin-bottom: 24px; }
.career__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: none; }
.career__step { position: relative; background: #fff; border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.career__step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -22px; width: 14px; height: 14px; margin-left: -7px;
  border-right: 3px solid var(--turquoise); border-bottom: 3px solid var(--turquoise); transform: rotate(45deg);
}
.career__icon { width: 64px; height: 64px; margin-bottom: 6px; }
.career__label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--turquoise-text); }
.career__step strong { color: var(--navy); font-size: 17px; word-break: auto-phrase; }
.career__step > span:last-child { color: var(--text-sub); font-size: 14px; word-break: auto-phrase; }
.career__note { margin-top: 20px; font-size: 13px; color: var(--text-sub); }
@media (min-width: 768px) {
  .career { padding: 40px 36px; }
  .career__lead { text-align: center; }
  .career__steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .career__step:not(:last-child)::after { left: auto; right: -24px; top: 50%; bottom: auto; margin: -7px 0 0; transform: rotate(-45deg); }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 48px 0; }
.cta-band__text { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.cta-band .btn--line { box-shadow: 0 4px 0 #021a2f; }

/* ---------- Consult points ---------- */
.point-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.point-list li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius); padding: 14px 18px; font-weight: 700; color: var(--navy); box-shadow: var(--shadow); }
.point-list__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; }
@media (min-width: 768px) { .point-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow__step { position: relative; padding: 0 0 28px 28px; border-left: 2px solid var(--turquoise); margin-left: 8px; }
.flow__step:last-child { border-left-color: transparent; padding-bottom: 0; }
.flow__step::before { content: ""; position: absolute; left: -9px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--turquoise); }
.flow__label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: #fff; background: var(--navy); border-radius: 4px; padding: 2px 8px; margin-bottom: 6px; }
.flow__title { color: var(--navy); font-size: 17px; margin-bottom: 4px; }
.flow__step p { color: var(--text-sub); font-size: 15px; }
.flow__extra { margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 16px 48px 16px 52px; font-weight: 700; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 18px; top: 14px; font-weight: 800; color: var(--turquoise-text); font-size: 18px; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { position: relative; padding: 0 20px 18px 52px; color: var(--text); }
.faq details p::before { content: "A"; position: absolute; left: 18px; top: -2px; font-weight: 800; color: var(--green); font-size: 18px; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 64px 0 72px; }
.final-cta__title { font-size: 22px; margin-bottom: 28px; }
.final-cta .btn--line { box-shadow: 0 4px 0 #021a2f; }
.final-cta__id { margin-top: 18px; font-size: 13px; opacity: 0.9; }
@media (min-width: 768px) { .final-cta__title { font-size: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: #0a1d33; color: #c9d4e0; padding: 48px 0 120px; font-size: 14px; }
.footer-grid { display: grid; gap: 28px; }
.footer-title { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.footer-dl dt { color: #93a4b8; }
.footer-dl dd { margin: 0; }
.footer-dl a { color: #9fd9d6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #1f3550; }
.footer-nav a { color: #fff; }
.analytics-note { margin-top: 20px; color: #93a4b8; font-size: 12px; }
.analytics-note a { color: #c9d4e0; }
.copyright { margin-top: 12px; color: #93a4b8; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 48px; } .site-footer { padding-bottom: 48px; } }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(11, 36, 64, 0.08);
  transform: translateY(110%); transition: transform .2s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { box-shadow: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- Sub page (privacy) ---------- */
.doc { padding: 48px 0 80px; }
.doc h1 { color: var(--navy); font-size: 26px; margin-bottom: 24px; }
.doc h2 { color: var(--navy); font-size: 19px; margin: 36px 0 12px; padding-left: 12px; border-left: 4px solid var(--turquoise); }
.doc p, .doc ul, .doc table { margin: 0 0 14px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-tint); white-space: nowrap; }
.doc .draft-banner { background: #fff7e6; border: 1px solid #f0c36d; border-radius: 8px; padding: 12px 16px; font-size: 14px; }
