/* =========================================================
   コラム記事(single.php) 用スタイル
   hikakuシリーズと同じティール系トンマナーを使用
   ========================================================= */

:root{
  --post-main: #17324D;
  --hikaku-main: #17324D;
  --post-main-dark: #102336;
  --post-accent: #FFD84D;
  --post-bg-soft: #F8FAF9;
  --post-border: #eee;
  --post-text: #1c1c1c;
  --post-text-sub: #777;
  --hikaku-orange: #F28C28;
}

.post-single-frame{
  max-width: 900px;
}

.post-single-inner{
  padding: clamp(20px, 4vw, 40px) clamp(16px, 5vw, 40px) 60px;
}

/* ---------- パンくず ---------- */
.post-breadcrumb{
  font-size: 12px;
  color: var(--post-text-sub);
  margin-bottom: 16px;
}
.post-breadcrumb a{
  color: var(--post-main-dark);
  font-weight: 700;
  text-decoration: none;
}
.post-breadcrumb-sep{
  margin: 0 6px;
  color: #ccc;
}

/* ---------- ジャンルバッジ ---------- */
.post-genre-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.post-genre-badge{
  display: inline-block;
  background: #E4F7F4;
  color: var(--post-main-dark);
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 14px;
  border-radius: 16px;
  text-decoration: none;
}

/* ---------- タイトル・メタ ---------- */
.post-title{
  font-weight: 900;
  font-size: clamp(24px, 4.5vw, 34px);
  line-height: 1.45;
  color: var(--post-text);
  margin-bottom: 16px;
}

.post-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--post-text-sub);
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--post-border);
}
.post-meta-author{
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-meta-author img{
  border-radius: 50%;
  display: block;
}

/* ---------- アイキャッチ ---------- */
.post-eyecatch{
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
}
.post-eyecatch img{
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 目次 ---------- */
.post-toc{
  background: var(--post-bg-soft);
  border: 1px solid var(--post-border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 36px;
}
.post-toc-title{
  font-weight: 900;
  font-size: 14px;
  color: var(--post-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-toc-title::before{
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--post-main);
  border-radius: 2px;
}
.post-toc-list{
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-toc-item{
  counter-increment: toc-counter;
  font-size: 13px;
}
.post-toc-item a{
  color: var(--post-main-dark);
  text-decoration: none;
  font-weight: 700;
}
.post-toc-item a:hover{
  text-decoration: underline;
}
.post-toc-item::before{
  content: counter(toc-counter) ". ";
  color: var(--post-main);
  font-weight: 900;
  margin-right: 2px;
}
.post-toc-level-3{
  padding-left: 20px;
  font-size: 12px;
}
.post-toc-level-3::before{
  content: "- ";
}

/* ---------- 本文タイポグラフィ ---------- */
.post-content{
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--post-text);
}
.post-content p{
  margin-bottom: 1.6em;
}
.post-content h2{
  font-weight: 900;
  font-size: clamp(19px, 3vw, 22px);
  margin: 2.2em 0 0.9em;
  padding: 10px 16px;
  background: var(--post-bg-soft);
  border-left: 5px solid var(--post-main);
  border-radius: 4px;
}
.post-content h2:first-child{
  margin-top: 0;
}
.post-content h3{
  font-weight: 800;
  font-size: clamp(16.5px, 2.6vw, 18px);
  margin: 1.8em 0 0.7em;
  padding-left: 12px;
  border-left: 4px solid #CFECE7;
}
.post-content h4{
  font-weight: 700;
  font-size: 15.5px;
  margin: 1.4em 0 0.6em;
}
.post-content img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 1.4em auto;
}
.post-content ul,
.post-content ol{
  margin: 0 0 1.6em 1.4em;
}
.post-content li{
  margin-bottom: 0.5em;
}
.post-content a{
  color: var(--post-main-dark);
  font-weight: 700;
}
.post-content blockquote{
  background: var(--post-bg-soft);
  border-left: 4px solid var(--post-main);
  padding: 14px 18px;
  margin: 1.6em 0;
  font-size: 14px;
  color: var(--post-text-sub);
  border-radius: 4px;
}
.post-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 13.5px;
}
.post-content table th,
.post-content table td{
  border: 1px solid var(--post-border);
  padding: 10px 12px;
  text-align: left;
}
.post-content table th{
  background: var(--post-bg-soft);
  font-weight: 700;
}

/* よく使う強調ボックス(メモ/注意) */
.post-content .memobox,
.post-content .cautionbox{
  border-radius: 10px;
  padding: 16px 20px;
  margin: 1.6em 0;
  font-size: 14px;
}
.post-content .memobox{
  background: #ffffeb;
  border: 1px solid #ecdecf;
}
.post-content .cautionbox{
  background: #FBF1F1;
  border: 1px solid #F2D9D9;
}

/* ---------- 著者ボックス ---------- */
.post-author-box{
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--post-bg-soft);
  border: 1px solid var(--post-border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 40px;
}
.post-author-avatar img{
  width: 100%;
  max-width: 52px;
  border-radius: 50%;
  display: block;
}
.post-author-name{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 4px;
}
.post-author-desc{
  font-size: 12.5px;
  color: var(--post-text-sub);
  line-height: 1.7;
}

/* ---------- 関連コラム記事(hikaku側のCSSクラスを流用) ---------- */
.related-columns-section{
  margin-top: 44px;
  padding: 0;
  background: none;
}

@media (max-width: 600px){
  .post-meta{ gap: 10px; }
  .post-author-box{ flex-direction: column; text-align: center; }
}



  /* フッター固定CTAバー */
  .hikaku-fixed-cta{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 600;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -4px 16px rgba(20,60,58,.12);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hikaku-fixed-cta a{
    display: block;
    width: 100%;
    max-width: 480px;
    text-align: center;
    background:var(--hikaku-orange);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
  }

  /* ---------- よくある質問(FAQ) ---------- */
.post-content .faq-box{
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.post-content .faq-item{
  background: #fff;
  border: 1px solid var(--post-border);
  border-radius: 10px;
  overflow: hidden;
}
 
.post-content .faq-item summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px 16px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--post-text);
  position: relative;
}
.post-content .faq-item summary::-webkit-details-marker{
  display: none;
}
 
.post-content .faq-item summary::before{
  content: "Q";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--post-main);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.post-content .faq-item summary::after{
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--post-text-sub);
  border-bottom: 2px solid var(--post-text-sub);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
 
.post-content .faq-item[open] summary::after{
  transform: translateY(-30%) rotate(-135deg);
}
 
.post-content .faq-item[open] summary{
  border-bottom: 1px solid var(--post-border);
}
 
.post-content .faq-answer{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--post-text-sub);
  background: var(--post-bg-soft);
}
 
.post-content .faq-answer::before{
  content: "A";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--post-accent);
  color: var(--post-text);
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.post-content .faq-section-title{
  font-weight: 900;
  font-size: clamp(19px, 3vw, 22px);
  margin: 2.2em 0 0.9em;
  padding: 10px 16px;
  background: var(--post-bg-soft);
  border-left: 5px solid var(--post-main);
  border-radius: 4px;
}

/* ---------- 転職者の声(体験談) ---------- */
.post-content .voice-section-title{
  font-weight: 900;
  font-size: clamp(19px, 3vw, 22px);
  margin: 2.2em 0 1em;
  padding: 10px 16px;
  background: var(--post-bg-soft);
  border-left: 5px solid var(--post-main);
  border-radius: 4px;
}
 
.post-content .voice-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 1.6em 0 2.2em;
}
 
.post-content .voice-card{
  position: relative;
  background: #fff;
  border: 1px solid var(--post-border);
  border-radius: 14px;
  padding: 22px 20px 18px;
}
 
.post-content .voice-quote-mark{
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 40px;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--post-accent);
  font-weight: 900;
}
 
.post-content .voice-comment{
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--post-text);
  margin: 20px 0 18px;
  padding-top: 6px;
}
 
.post-content .voice-profile{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--post-border);
}
 
.post-content .voice-photo{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--post-bg-soft);
}
.post-content .voice-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
}
 
.post-content .voice-profile-text{
  flex: 1;
  min-width: 0;
}
 
.post-content .voice-name{
  font-weight: 700;
  font-size: 13px;
  color: var(--post-text);
  margin-bottom: 4px;
}
 
.post-content .voice-transition{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  flex-wrap: wrap;
}
 
.post-content .voice-transition-before{
  color: var(--post-text-sub);
}
 
.post-content .voice-transition-arrow{
  color: var(--post-main);
  font-weight: 900;
}
 
.post-content .voice-transition-after{
  color: var(--post-main-dark);
  font-weight: 700;
  background: #E4F7F4;
  padding: 2px 8px;
  border-radius: 10px;
}
 
@media (max-width: 600px){
  .post-content .voice-grid{ grid-template-columns: 1fr; }
}

/* ---------- タイトルボックス(title-box3など、番号違いの箱パターン) ---------- */
.post-content .title-box3{
  background: #fff;
  border: 1px solid var(--post-border);
  border-radius: 14px;
  overflow: hidden;
  margin: 1.8em 0;
}
 
.post-content .title-box3-title{
  background: linear-gradient(135deg, var(--post-main-dark), var(--post-main));
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  padding: 14px 20px;
  margin: 0;
}
 
.post-content .title-box3 > p{
  padding: 18px 22px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  border-bottom: 1px solid var(--post-border);
}
 
.post-content .title-box3 > p:last-child{
  border-bottom: none;
}
 
.post-content .title-box3 > p strong{
  color: var(--post-text);
  font-size: 14px;
}
 
/* ---------- ステップ(番号+縦線でつなぐ手順リスト) ---------- */
.post-content .step-list{
  margin: 1.8em 0;
}
 
.post-content .step-list > p{
  position: relative;
  padding: 0 0 26px 46px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--post-text-sub);
}
 
.post-content .step-list > p:last-child{
  padding-bottom: 0;
}
 
/* 丸番号(スパン)は絶対配置で左端に固定 */
.post-content .step-list > p > span:first-child{
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}
 
/* 丸番号同士をつなぐ縦線 */
.post-content .step-list > p::before{
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: #CFECE7;
  z-index: 1;
}
 
.post-content .step-list > p:last-child::before{
  display: none;
}
 
.post-content .step-list > p strong{
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  color: var(--post-text);
}