/* ==========================================================
   履歴書 pSEO サイト共通スタイル
   モバイルファースト / 軽量 / 印刷も視野
   ========================================================== */

/* === Reset & 基本 === */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴシック",
               "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  font-feature-settings: "palt";
  line-height: 1.7;
  color: #1f2937;
  background: #f8fafc;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin-bottom: .35em; }

/* === ヘッダ === */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: .9rem 1.25rem;
}
.site-header .logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  text-decoration: none;
}
.site-header .logo:hover { color: #1d4ed8; }

/* === メインレイアウト === */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

/* === パンくず === */
.breadcrumbs {
  font-size: .82rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
}
.breadcrumbs ol {
  display: flex;
  gap: .35rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs li::after {
  content: "›";
  margin-left: .35rem;
  color: #cbd5e1;
}
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: #64748b; }
.breadcrumbs a:hover { color: #1d4ed8; }
.breadcrumbs span[aria-current="page"] {
  color: #0f172a;
  font-weight: 500;
}

/* === 記事 === */
.resume-article {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
  border: 1px solid #e5e7eb;
}

.article-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: 1.5rem;
  margin: 0 0 .5rem;
  letter-spacing: .01em;
}

.article-meta {
  font-size: .82rem;
  color: #64748b;
  margin: 0;
}

.resume-article > section {
  margin: 2rem 0;
}

.resume-article h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  padding-left: .85rem;
  border-left: 4px solid #1d4ed8;
}

.resume-article h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 .75rem;
  color: #1e3a8a;
}

/* === TL;DR === */
.tldr {
  background: linear-gradient(180deg, #eff6ff 0%, #f0f9ff 100%);
  border-left: 4px solid #1d4ed8;
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1rem;
}
.tldr h2 {
  border-left: none;
  padding-left: 0;
  font-size: 1.05rem;
  color: #1e3a8a;
  margin-bottom: .75rem;
}
.tldr ul {
  margin: 0;
  padding-left: 1.25rem;
}
.tldr li::marker { color: #1d4ed8; }
.tldr strong {
  background: linear-gradient(180deg, transparent 60%, #fde68a 60%);
  font-weight: 700;
  padding: 0 .15rem;
}

/* === 例文ブロック === */
.example {
  background: #fafafa;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 1.25rem;
}
#resume-text {
  font-size: .98rem;
  background: #fff;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin: 0;
}

/* === 解説・NG === */
.commentary p, .ng-examples p, .takeaway p {
  font-size: .95rem;
}
.commentary ul li,
.ng-examples ul li {
  margin-bottom: .65rem;
}
.ng-examples strong { color: #b91c1c; }
.ng-examples li {
  background: #fff7ed;
  border-left: 3px solid #f59e0b;
  padding: .5rem .75rem;
  border-radius: 4px;
  list-style: none;
  margin-left: -1.5em;
}
.ng-examples ul {
  padding-left: 0;
}

/* === FAQ === */
.faq dl {
  margin: 0;
}
.faq dt {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
  padding-left: 1.5rem;
  position: relative;
}
.faq dt::before {
  content: "Q.";
  color: #1d4ed8;
  font-weight: 800;
  position: absolute;
  left: 0;
}
.faq dd {
  margin: .35rem 0 .75rem 1.5rem;
  color: #334155;
  font-size: .95rem;
}
.faq dd::before {
  content: "A. ";
  color: #16a34a;
  font-weight: 800;
}

/* === CTA === */
.cta-box {
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin: 2.5rem 0 0;
  text-align: center;
}
.cta-box h2 {
  color: #fff;
  border-left: none;
  padding-left: 0;
  margin: 0 0 .5rem;
  font-size: 1.15rem;
}
.cta-box p {
  margin: 0 0 1.25rem;
  font-size: .92rem;
  opacity: .95;
}
.btn-primary {
  display: inline-block;
  background: #fff;
  color: #1d4ed8;
  font-weight: 700;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .15s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}
.btn-line {
  display: inline-block;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  padding: .85rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .15s, background-color .15s;
}
.btn-line:hover {
  transform: translateY(-1px);
  background: #05b34c;
  color: #fff;
  text-decoration: none;
}
.btn-line::before {
  content: "LINE";
  display: inline-block;
  background: #fff;
  color: #06C755;
  font-size: .72rem;
  font-weight: 800;
  padding: .12rem .45rem;
  border-radius: 4px;
  margin-right: .55rem;
  vertical-align: 1px;
  letter-spacing: .03em;
}

/* === ハブページ (portal / occupation-top / item-top) === */
.hub {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
  border: 1px solid #e5e7eb;
}
.hub-eyecatch {
  margin: -2rem -1.5rem 1.75rem;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.hub-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}
.hub-intro,
.hub-market,
.hub-attributes,
.hub-faq {
  padding: 0;
  background: transparent;
  margin: 2rem 0;
}
.hub-intro ol {
  counter-reset: hub-intro-counter;
  list-style: none;
  padding-left: 0;
}
.hub-intro ol li {
  counter-increment: hub-intro-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border-left: 3px solid #1d4ed8;
  padding: .85rem 1rem .85rem 2.5rem;
  border-radius: 0 8px 8px 0;
}
.hub-intro ol li::before {
  content: counter(hub-intro-counter);
  position: absolute;
  left: .75rem;
  top: .85rem;
  width: 1.4rem;
  height: 1.4rem;
  background: #1d4ed8;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4rem;
}
/* === 監修者ブロック (ページ上部) === */
.supervisor-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(180deg, #fef9f3 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.25rem 0;
}
.supervisor-block .sup-photo img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.supervisor-block .sup-meta {
  flex: 1;
  min-width: 0;
}
.supervisor-block .sup-label {
  font-size: .75rem;
  color: #92400e;
  background: #fde68a;
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 4px;
  margin: 0 0 .35rem;
  font-weight: 700;
}
.supervisor-block .sup-name {
  font-size: 1.05rem;
  margin: 0 0 .15rem;
}
.supervisor-block .sup-title,
.supervisor-block .sup-field {
  font-size: .82rem;
  color: #6b5e3a;
  margin: 0 0 .15rem;
}
.supervisor-block .sup-bio {
  font-size: .85rem;
  color: #44403c;
  line-height: 1.7;
  margin: .5rem 0 0;
}

/* === 執筆者ブロック (ページ下部) === */
.writer-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  margin: 2rem 0 0;
}
.writer-block .wri-photo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.writer-block .wri-meta { flex: 1; min-width: 0; }
.writer-block .wri-label {
  font-size: .72rem;
  color: #1e3a8a;
  background: #dbeafe;
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 4px;
  margin: 0 0 .35rem;
  font-weight: 700;
}
.writer-block .wri-name {
  font-size: .98rem;
  margin: 0 0 .25rem;
}
.writer-block .wri-bio {
  font-size: .82rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* モバイル */
@media (max-width: 480px) {
  .supervisor-block, .writer-block { flex-direction: column; }
  .supervisor-block .sup-photo, .writer-block .wri-photo { align-self: center; }
}

.author-bio {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.author-bio h2 {
  font-size: 1rem;
  border-left: 3px solid #1d4ed8;
  padding-left: .75rem;
  margin: 0 0 .75rem;
}
.author-bio p {
  font-size: .92rem;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 .5rem;
}
.author-bio p:last-child { margin-bottom: 0; }
.author-bio strong {
  color: #0f172a;
  font-size: 1.05rem;
}
.hub-header {
  text-align: center;
  margin-bottom: 2rem;
}
.hub-header h1 {
  font-size: 1.6rem;
  margin: 0 0 .75rem;
}
.hub-lead {
  color: #64748b;
  font-size: .98rem;
  margin: 0;
  line-height: 1.7;
}

.hub h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 1rem;
  padding-left: .85rem;
  border-left: 4px solid #1d4ed8;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .card-list { grid-template-columns: 1fr 1fr; }
}

.card a {
  display: block;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: all .2s;
  height: 100%;
}
.card a:hover {
  border-color: #1d4ed8;
  background: #f0f9ff;
  box-shadow: 0 4px 12px rgba(29,78,216,.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.card h3 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
  color: #0f172a;
}
.card p {
  font-size: .88rem;
  color: #475569;
  margin: 0 0 .75rem;
  line-height: 1.6;
}
.card-stats {
  display: inline-block;
  font-size: .78rem;
  color: #64748b;
  background: #fff;
  padding: .2rem .6rem;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

/* === フッタ === */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 3rem;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: .87rem;
}
.footer-nav a {
  color: #cbd5e1;
}
.footer-nav a:hover {
  color: #fff;
}
.copyright {
  margin: 0;
  font-size: .8rem;
  color: #64748b;
}

/* === タブレット以上 === */
@media (min-width: 768px) {
  main { padding: 2rem 1.5rem 5rem; }
  .resume-article, .hub { padding: 2.5rem 2.25rem; }
  .article-header h1, .hub-header h1 { font-size: 1.85rem; }
  .resume-article h2, .hub h2 { font-size: 1.3rem; }
}

/* === 印刷 === */
@media print {
  .site-header, .site-footer, .cta-box, .breadcrumbs { display: none; }
  body { background: #fff; }
  .resume-article, .hub { box-shadow: none; border: none; }
}

/* === 項目トップの共通原則ガイド === */
.item-principles {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
}
.item-principles h2 {
  margin-top: 0;
  color: #0f172a;
}
.item-principles h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: #1e293b;
}
.principles-intro {
  color: #475569;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}
.principles-list {
  counter-reset: pl-counter;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.principles-list li {
  counter-increment: pl-counter;
  position: relative;
  padding: .75rem 0 .75rem 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.principles-list li:last-child { border-bottom: none; }
.principles-list li::before {
  content: counter(pl-counter);
  position: absolute;
  left: 0;
  top: .8rem;
  width: 1.75rem;
  height: 1.75rem;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
}
.principles-list strong {
  display: block;
  color: #0f172a;
  margin-bottom: .25rem;
}
.principles-list p {
  margin: 0;
  color: #475569;
  font-size: .92rem;
  line-height: 1.7;
}
.structure-list {
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  margin: 0 0 1.25rem;
}
.structure-list dt {
  font-weight: 700;
  color: #0f172a;
  margin-top: .5rem;
}
.structure-list dt:first-child { margin-top: 0; }
.structure-list dd {
  margin: .25rem 0 .75rem 0;
  color: #475569;
  line-height: 1.7;
}
.ng-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.ng-list li {
  position: relative;
  padding: .5rem 0 .5rem 1.75rem;
  color: #475569;
  line-height: 1.7;
}
.ng-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: .5rem;
  color: #dc2626;
  font-weight: 700;
}

/* === /resume/guide/ 完全ガイド === */
.guide-toc {
  background: #f1f5f9;
  padding: 1.5rem 1.75rem;
  border-radius: 6px;
  margin: 2rem 0;
}
.guide-toc h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #0f172a;
}
.toc-list {
  margin: 0;
  padding-left: 1.25rem;
}
.toc-list li {
  margin: .35rem 0;
  line-height: 1.6;
}
.toc-list a {
  color: #2563eb;
  text-decoration: none;
}
.toc-list a:hover { text-decoration: underline; }
.guide-section {
  margin: 2.5rem 0;
  scroll-margin-top: 5rem;
}
.guide-section h2 {
  border-bottom: 2px solid #2563eb;
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}
.guide-section h3 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: #1e293b;
}
.guide-section p {
  line-height: 1.85;
  color: #334155;
}
.guide-section ul,
.guide-section ol {
  line-height: 1.85;
  color: #334155;
}
.guide-section dl dt {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
  line-height: 1.6;
}
.guide-section dl dd {
  margin: .35rem 0 .75rem 1rem;
  color: #475569;
  line-height: 1.85;
}
