/* ============================================================
   case-single.html — 事例詳細（WordPress single テンプレート想定）
   .sg-entry 配下は WP の the_content() 出力（WYSIWYG）を想定した
   コンテンツスタイル。loaded AFTER style.css / case-detail.css
   ============================================================ */

/* 記事本文は読みやすい中間幅（一覧より狭く、narrowより広く） */
.container.narrow-wide{max-width:960px}

.sg-breadcrumb{padding:24px 0 8px}

.sg-article{background:#fff;padding:24px 0 96px}

/* ---------- 記事ヘッダー ---------- */
.sg-head{padding:16px 0 28px}
.sg-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.sg-tag{
  display:inline-flex;align-items:center;height:26px;padding:0 14px;
  border:1px solid var(--accent);border-radius:30px;
  font-size:12px;font-weight:500;color:var(--accent);letter-spacing:.04em;line-height:1;
  transition:.2s;
}
.sg-tag:hover{background:var(--accent);color:#fff}
.sg-title{
  font-family:var(--serif);color:var(--text);font-weight:600;
  font-size:32px;line-height:1.6;letter-spacing:.03em;
}
.sg-meta{margin-top:10px;font-size:13px;color:var(--lgray);font-weight:500;letter-spacing:.04em}

/* ---------- アイキャッチ ---------- */
.sg-eyecatch{margin:0 0 32px}
.sg-eyecatch img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}

/* ---------- リード ---------- */
.sg-lead{
  font-size:16px;color:var(--text);font-weight:500;line-height:2.1;letter-spacing:.02em;
  padding-bottom:36px;border-bottom:1px solid var(--line);margin-bottom:40px;
}

/* ---------- 概要スペック（カスタムフィールド） ---------- */
.sg-spec{margin-bottom:56px}
.sg-spec-title{
  display:flex;align-items:baseline;gap:14px;margin-bottom:18px;
  font-family:var(--serif);font-size:20px;font-weight:600;color:var(--text);letter-spacing:.02em;
}
.sg-spec-title .label{margin:0;font-size:15px}
.sg-spec-table{border-top:1px solid var(--line)}
.sg-spec-table .row{display:flex;border-bottom:1px solid var(--line)}
.sg-spec-table dt{
  flex:0 0 160px;padding:13px 18px;background:var(--cream);
  font-size:14px;font-weight:700;color:var(--text);letter-spacing:.04em;line-height:1.7;
}
.sg-spec-table dd{
  flex:1;padding:13px 20px;
  font-size:14px;font-weight:500;color:var(--text);letter-spacing:.02em;line-height:1.7;
}

/* ---------- 本文（the_content 相当のWYSIWYGスタイル） ---------- */
.sg-entry{font-size:15px;color:var(--text);font-weight:500;line-height:2.1;letter-spacing:.02em}
.sg-entry h2{
  position:relative;margin:56px 0 22px;padding-left:18px;
  font-family:var(--serif);font-size:24px;font-weight:600;color:var(--text);line-height:1.6;letter-spacing:.03em;
}
.sg-entry h2::before{
  content:"";position:absolute;left:0;top:.35em;bottom:.35em;width:3px;background:var(--accent);
}
.sg-entry h2:first-child{margin-top:0}
.sg-entry h3{
  margin:36px 0 14px;
  font-family:var(--serif);font-size:19px;font-weight:600;color:var(--accent);line-height:1.6;
}
.sg-entry p{margin:0 0 18px}
.sg-entry ul{margin:20px 0 26px;display:flex;flex-direction:column;gap:8px}
.sg-entry ul li{
  position:relative;padding-left:20px;line-height:1.9;
}
.sg-entry ul li::before{
  content:"";position:absolute;left:2px;top:.85em;width:10px;height:1px;background:var(--accent);
}
.sg-entry figure{margin:34px 0 38px}
.sg-entry figure img,.sg-entry > img{width:100%;height:auto;display:block}
.sg-entry figcaption{
  margin-top:10px;font-size:12.5px;color:var(--gray);font-weight:500;line-height:1.8;letter-spacing:.03em;
}
.sg-entry blockquote{
  margin:32px 0;padding:28px 32px;background:var(--offwhite);
  border-left:3px solid var(--accent);
}
.sg-entry blockquote p{margin:0;font-family:var(--serif);font-size:15.5px;line-height:2.05}
.sg-entry blockquote cite{
  display:block;margin-top:12px;font-style:normal;
  font-size:13px;color:var(--gray);letter-spacing:.04em;
}

/* ---------- 前後の事例ナビ ---------- */
.sg-pn{
  margin-top:72px;padding-top:28px;border-top:1px solid var(--line2);
  display:flex;align-items:center;gap:24px;
}
.sg-pn-item{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;transition:.2s}
.sg-pn-item:hover{opacity:.7}
.sg-pn-next{text-align:right}
.sg-pn-item .dir{font-family:var(--en);font-size:13px;color:var(--accent);letter-spacing:.06em}
.sg-pn-item .ttl{
  font-family:var(--serif);font-size:15px;font-weight:600;color:var(--text);line-height:1.6;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.sg-pn-list{
  flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;
  height:44px;padding:0 26px;border:1px solid var(--accent);
  font-family:var(--serif);font-size:13px;font-weight:600;color:var(--accent);letter-spacing:.06em;
  transition:.25s;
}
.sg-pn-list:hover{background:var(--accent);color:#fff}

/* ---------- 関連事例 ---------- */
.sg-related{background:var(--offwhite);padding:96px 0 110px}
.sg-related .sec-head{margin-bottom:48px}

/* ============================================================
   Responsive
   ============================================================ */
@media(max-width:768px){
  .sg-breadcrumb{padding:16px 0 4px}
  .sg-breadcrumb ol{flex-wrap:nowrap;overflow:hidden}
  .sg-breadcrumb li:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sg-article{padding:12px 0 72px}
  .sg-title{font-size:24px;line-height:1.7}
  .sg-eyecatch{margin-bottom:24px}
  .sg-eyecatch img{aspect-ratio:4/3}
  .sg-lead{font-size:15px;padding-bottom:26px;margin-bottom:30px}

  .sg-spec{margin-bottom:44px}
  .sg-spec-table .row{flex-direction:column}
  .sg-spec-table dt{flex:none;padding:9px 14px;font-size:13px}
  .sg-spec-table dd{padding:10px 14px}

  .sg-entry{font-size:14px;line-height:2.05}
  .sg-entry h2{font-size:20px;margin:44px 0 18px;padding-left:14px}
  .sg-entry h3{font-size:17px}
  .sg-entry blockquote{padding:22px 20px}

  .sg-pn{flex-direction:column;align-items:stretch;gap:16px;margin-top:56px}
  .sg-pn-next{text-align:left}
  .sg-pn-list{order:3;width:100%}

  .sg-related{padding:64px 0 80px}
}
