/* ============================================================
   intro — ページ全体の前段に置くリード文セクション
   strengths / company / recruit / works / contact / privacy など
   下層ページ共通で使う
   ============================================================ */
main.docs .intro {
  padding: clamp(40px, 5vw, 56px) 0 0;
  border-bottom: none;
}

.intro-inner {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-sub);
  max-width: 760px;
}
/* ============================================================
   WORK EXAMPLE DETAIL PAGE — 開発実例 詳細ページ専用スタイル
   reference/assets/css/pages/works-example1/ を 1 ファイルに統合
   セクション: overview / tech / features / notes / others / back-link
   page-hero は src/styles/common/page-hero.css 経由
   intro は src/styles/common/intro.css 経由
   h-section は src/styles/common/h-section.css 経由（下記 @import）
   フォントサイズはモック text-scale-lg.css 相当値を反映
   ============================================================ */
/* =========================================================
   N-1 / SOFT CARD section heading
   ========================================================= */
.sec-head:has(.h-section) {
  display: block;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: clamp(28px, 3.4vw, 40px);
  gap: 0;
}
.h-section {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 24px 18px 28px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #eef0f2;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.02),
    0 12px 28px -16px rgba(15, 23, 42, 0.18),
    0 2px 6px -2px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}
.h-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, #8a0014 100%);
  border-radius: 10px 0 0 10px;
}
.h-section h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--text);
  padding-left: 0;
  border-left: none;
}
.sec-head .h-section + .sec-lead,
.h-section + .sec-lead {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.95;
  margin: 16px 0 0;
  max-width: 720px;
}
/* ==========================================
   1. Section overrides — このページ用の余白とリード文
   ========================================== */
main.docs section {
  padding: clamp(40px, 5vw, 64px) 0;
}
/* h-section 見出しのサイズをモック準拠（LG値）に */
.h-section h2 {
  font-size: clamp(24px, 2.8vw, 30px);
}
/* sec-head の下マージンをモック準拠（28px）に固定。
   共通 h-section.css の clamp(28-40) は viewport 1200 で 40px を返してしまうため、
   詳細度を上げて 28px に明示固定する。 */
main.docs .sec-head {
  margin-bottom: 28px;
}
.sec-body p {
  margin: 0 0 1.2em;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}
.sec-body p:last-child {
  margin-bottom: 0;
}
.feature-lead {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.8;
}
/* ==========================================
   1-2. 特徴セクション — 代表画像（左）＋本文（右）の2カラム
   ========================================== */
.feature-overview {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3vw, 36px);
}
.feature-overview .lead-figure {
  flex: 0 0 clamp(200px, 32%, 340px);
  margin: 0;
}
.feature-overview .lead-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.28);
}
.feature-overview .lead-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.92);
}
.feature-overview .lead-figure figcaption {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.feature-overview .feature-overview-text {
  flex: 1 1 auto;
  min-width: 0;
}
.feature-overview .feature-overview-text > p {
  margin: 0;
}
.feature-overview .feature-overview-text > p + p {
  margin-top: 12px;
}
/* ==========================================
   2. Tech — 主要技術およびアプリケーション
   ========================================== */
.tech-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.tech-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.tech-list dt {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.08em;
}
.tech-list dd {
  margin: 0;
  font-size: 16px;
  font-family: "JetBrains Mono", "Noto Sans JP", monospace;
  color: var(--text);
  word-break: break-word;
}
/* ==========================================
   3. Features — 機能紹介
   ========================================== */
.feature-item {
  overflow: hidden; /* float 解除 */
  padding: 0 0 clamp(20px, 3vw, 28px);
  margin-bottom: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}
.feature-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.feature-item .feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feature-item .feature-meta::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--text);
}
.feature-item .feature-meta .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}
.feature-item h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--text);
}
.feature-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}
.feature-item p em {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
}
/* 機能紹介に小サイズの参考図をインライン配置 */
.ref-figure {
  float: right;
  width: clamp(190px, 24%, 248px);
  margin: 2px 0 14px 28px;
}
.ref-figure .ref-frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px -16px rgba(15, 23, 42, 0.28);
}
.ref-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.92);
}
.ref-figure figcaption {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-mute);
}
.ref-figure figcaption .ref-no {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.16em;
  color: var(--text-sub);
  font-weight: 600;
  margin-right: 6px;
}
/* 末尾の加工に関する注記（控えめ・脚注扱い） */
#features .feat-note {
  clear: both;
  margin-top: clamp(22px, 3vw, 30px);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-mute);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
}
/* ==========================================
   4. Notes — 特記事項
   ========================================== */
.notes {
  padding: 24px 0 0;
  border-top: 1px solid var(--line-strong);
}
.notes-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}
.notes p {
  margin: 0;
  font-family: "JetBrains Mono", "Noto Sans JP", monospace;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  word-break: break-word;
}
/* ==========================================
   5. Others — その他開発実例（テキストリンク縦リスト）
   ========================================== */
.other-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.other-list li {
  border-bottom: 1px solid var(--line);
}
.other-list a {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 18px 4px;
  align-items: baseline;
  transition:
    color 0.15s,
    background 0.15s;
}
.other-list a:hover {
  color: var(--accent);
  background: #fafafa;
}
.other-list a.current {
  color: var(--text-sub);
  pointer-events: none;
}
.other-list .no {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
}
.other-list a:hover .no {
  color: var(--accent);
}
.other-list .tag {
  font-size: 14.5px;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}
.other-list .name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ==========================================
   6. Back-link — TOPへ戻る
   ========================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 28px;
  font-size: 14.5px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  width: 100%;
  transition: color 0.15s;
}
.back-link:hover {
  color: var(--accent);
}
.back-link .arrow {
  display: inline-block;
  transition: transform 0.15s;
}
.back-link:hover .arrow {
  transform: translateX(-3px);
}
/* ==========================================
   レスポンシブ（≤ 767px）
   - 特徴：図と本文を縦積み
   - 参考図：右回り込み解除→縦並び
   ========================================== */
@media (max-width: 767px) {
  /* 特徴：図と本文を縦積み */
  .feature-overview {
    flex-direction: column;
  }
  .feature-overview .lead-figure {
    flex-basis: auto;
    width: min(280px, 70%);
  }
  /* 機能紹介の参考図：右回り込み解除→縦並び */
  .ref-figure {
    float: none;
    width: min(280px, 70%);
    margin: 4px 0 16px;
  }
  /* 主要技術：160px 1fr → 横並び維持＋ラベル列を80pxへ詰める */
  .tech-list > div {
    grid-template-columns: 80px 1fr;
    gap: 14px;
  }
  /* その他開発実例：120px 1fr auto → 縦積み（番号→名称→タグ） */
  .other-list a {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .other-list .name {
    white-space: normal;
  }
}

