:root {
  --navy: #1a2744;
  --navy-light: #243159;
  --gold: #a07820;
  --text: #111111;
  --text-mid: #333333;
  --text-dim: #666666;
  --bg: #f8f7f4;
  --white: #ffffff;
  --border: #d8d0c0;
  --tag-bg: #e8edf8;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* iframe に余った領域はフッター色(ネイビー)で埋める */
html, body { background: var(--navy); }
body {
  font-family: "Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic UI","Yu Gothic","Meiryo",sans-serif;
  font-weight: 400;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* HERO */
.hero {
  background: var(--navy);
  color: white;
  padding: 48px 40px;
  display: flex;
  gap: 40px;
  align-items: center;
}
.hero-portrait {
  flex-shrink: 0;
  width: 150px;
  height: 178px;
  border: 3px solid rgba(184,148,42,0.7);
  overflow: hidden;
  background: var(--navy-light);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-info { flex: 1; }
.hero-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 12px;
  font-weight: 500;
}
.hero-name-ja {
  font-family: "Hiragino Mincho ProN","Yu Mincho","MS Mincho",serif;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  margin-bottom: 4px;
  -webkit-font-smoothing: subpixel-antialiased;
}
.hero-name-en {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.22em;
  margin-bottom: 22px;
  font-weight: 400;
}
.hero-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
  line-height: 2;
  border-left: 2px solid #c9a84c;
  padding-left: 16px;
  margin-bottom: 26px;
  max-width: 480px;
  font-weight: 400;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  padding: 6px 16px;
  border: 1px solid rgba(201,168,76,0.55);
  font-size: 11.5px;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.06em;
  font-weight: 400;
}
.badge.primary {
  background: #b8942a;
  border-color: #b8942a;
  color: white;
  font-weight: 600;
}

/* LAYOUT */
.wrap { background: var(--bg); padding: 52px 40px; }
.wrap > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.wrap-alt { background: var(--white); padding: 52px 40px; }
.wrap-alt .wi { max-width: 960px; margin: 0 auto; }

/* SECTION TITLE */
.sec-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy);
}
.sec-num { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); font-weight: 600; }
.sec-ja {
  font-family: "Hiragino Mincho ProN","Yu Mincho","MS Mincho",serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
}
.sec-en { font-size: 11px; color: var(--text-dim); letter-spacing: 0.15em; margin-left: auto; font-weight: 400; }

/* SUMMARY */
.summary-text { font-size: 14px; line-height: 2.1; color: var(--text-mid); font-weight: 400; }
.summary-text strong { color: var(--navy); font-weight: 700; }

/* TIMELINE */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 4px; bottom: 4px;
  width: 1px;
  background: linear-gradient(to bottom, var(--navy), var(--border));
}
.tl { position: relative; margin-bottom: 44px; padding-left: 12px; }
.tl-dot {
  position: absolute;
  left: -24px; top: 5px;
  width: 10px; height: 10px;
  border: 2px solid var(--navy);
  background: var(--bg);
  transform: rotate(45deg);
}
.tl-dot.now { background: var(--gold); border-color: var(--gold); }
.tl-period { font-size: 11px; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 4px; font-weight: 600; }
.tl-industry {
  font-family: "Hiragino Mincho ProN","Yu Mincho","MS Mincho",serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.tl-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.95; max-width: 680px; margin-bottom: 10px; font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 10px;
  background: var(--tag-bg);
  border: 1px solid #c0cce8;
  font-size: 11px;
  color: var(--navy);
  font-weight: 500;
}
.tag.g { background: #fef6e4; border-color: #ddc070; color: #6a4a00; }

/* SKILLS - flex layout so the final row centers */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.sk {
  flex: 1 1 260px;
  max-width: calc(33.333% - 10px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.sk-title {
  font-family: "Hiragino Mincho ProN","Yu Mincho","MS Mincho",serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.sk-desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.85; font-weight: 400; flex: 1; }
.sk-years { font-size: 22px; color: #ccc; font-weight: 300; text-align: right; margin-top: 12px; }

/* TECH */
.tech-group { margin-bottom: 26px; }
.tech-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.tech-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  padding: 4px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 400;
}

/* CERT */
.cert-list { display: flex; flex-direction: column; gap: 10px; }
.cert {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.cert-year { font-size: 12px; color: var(--gold); min-width: 92px; font-weight: 700; }
.cert-name { font-size: 14px; color: var(--navy); font-weight: 600; }

/* 資格の補足（クリックで開閉） */
details.cert {
  display: block;
  padding: 0;
}
details.cert > summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
}
details.cert > summary::-webkit-details-marker { display: none; }
details.cert > summary::after {
  content: '＋ 詳細';
  margin-left: auto;
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
details.cert[open] > summary::after { content: '－ 閉じる'; }
.cert-detail {
  padding: 0 22px 20px;
  border-top: 1px dashed var(--border);
  margin-top: 2px;
  padding-top: 16px;
}
.cert-detail p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 12px;
}
.cert-detail p strong { color: var(--navy); }
.radar-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.radar-wrap svg { width: 300px; max-width: 100%; height: auto; flex-shrink: 0; }
.radar-legend { font-size: 12px; color: var(--text-mid); line-height: 2; }
.radar-legend .lg { display: inline-block; width: 22px; height: 3px; vertical-align: middle; margin-right: 6px; }
.radar-legend .lg.t { background: #1a2744; }
.radar-legend .lg.a { background: #a07820; }

/* FOOTER */
footer {
  background: var(--navy);
  color: white;
  padding: 52px 40px 72px;
  text-align: center;
}
.foot-name {
  font-family: "Hiragino Mincho ProN","Yu Mincho","MS Mincho",serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.foot-sub { font-size: 11.5px; letter-spacing: 0.2em; color: rgba(255,255,255,0.5); margin-bottom: 30px; font-weight: 400; }
.contact-row { display: flex; justify-content: center; gap: 40px; margin-bottom: 26px; flex-wrap: wrap; }
.ci { text-align: center; }
.ci-label { font-size: 9px; letter-spacing: 0.28em; color: #c9a84c; text-transform: uppercase; display: block; margin-bottom: 4px; font-weight: 600; }
.ci-val { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 400; }
.remote {
  display: inline-block;
  padding: 8px 28px;
  border: 1px solid rgba(201,168,76,0.6);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #c9a84c;
  margin-bottom: 30px;
  font-weight: 600;
}
.contact-btn {
  display: inline-block;
  padding: 12px 40px;
  margin-bottom: 30px;
  background: #b8942a;
  border: 1px solid #b8942a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.contact-btn:hover {
  background: transparent;
  color: #c9a84c;
  border-color: #c9a84c;
}
.copy { font-size: 10px; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; }

@media (max-width: 900px) {
  .sk { max-width: calc(50% - 7px); }
}
@media (max-width: 640px) {
  .hero { flex-direction: column; padding: 32px 20px; }
  .wrap, .wrap-alt { padding: 36px 20px; }
  .hero-name-ja { font-size: 36px; }
  .sk { max-width: 100%; }
}

/* 本文中の強調・補足 */
.em-navy { color: var(--navy); }
.note-muted { color: #999; }
