/* ============================================
   しずおかAI — Site Styles (Web media redesign 2026-08-20)
   構成: STUDIO「Webメディア｜Fresh」/ roxguide.com のWebメディア骨格を踏襲。
   意匠: 白基調 × 藍 #1F4E79 一滴・ヘアライン・Noto Sans JP＋明朝アクセント。
   roxのスポーティ（丸ゴ・ライム・パステル）とは明確に別物。
   Shared primitives live in parent core.css — this file overrides + adds
   the iwt magazine (iw-*) layer.
   ============================================ */

/* ============================================
   1. Global overrides
   ============================================ */

body { background: var(--color-bg); color: var(--color-text); }

.l-main { padding: 0 0 72px; }
.l-container { max-width: 100%; padding: 0; }
.l-contents { padding: 0; }
.l-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.l-section { padding: 56px 0; }
.l-section--surface,
.l-section--alt { background: var(--color-bg-alt); }

/* ---- Buttons: フラット・角丸最小限 ---- */
.c-btn {
  border-radius: var(--radius-btn);
  padding: 12px 26px;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  box-shadow: none;
}
.c-btn:hover { transform: none; box-shadow: none; }
.c-btn--primary { background: var(--accent); color: #fff; }
.c-btn--primary:hover { background: var(--accent-dark); color: #fff; }
.c-btn--outline {
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--hairline-strong);
}
.c-btn--outline:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--color-surface); }

/* 進捗バー */
.p-progress { background: var(--accent); height: 2px; }

/* ============================================
   2. Header — 会社サイト型 sticky 1段ヘッダー（2026-08-27 corporate redesign）
   ロゴ左 / グローバルナビ右 / 検索＋CTA / ハンバーガー(〜1023px)
   ⚠ LPヘッダー停止線: 白背景＋カラーロゴ（テキストロゴ=藍/墨）のみ。白反転・透明ヘッダー禁止。
   同内容を critical/base.css にも複製（above-the-fold）。変更時は両方を更新する。
   ============================================ */

.iw-topbar { height: 3px; background: var(--accent); }

.iw-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--color-surface);
  border-bottom: var(--hairline);
}
.iw-header__in {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  min-height: 72px;
  display: flex; align-items: center; gap: 24px;
}
.iw-logo a { display: flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1; }
.iw-logo__name {
  font-family: var(--font-serif-ja);
  font-size: 2.4rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.1;
  color: var(--ink);
}
.iw-logo__sub {
  font-family: var(--font-en);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.24em;
  color: var(--color-text-muted); margin-top: 5px;
}
.iw-catnav { margin-left: auto; }
.iw-catnav ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.iw-catnav li { margin: 0; padding: 0; list-style: none; }
.iw-catnav a {
  display: block; position: relative;
  padding: 27px 13px;
  font-size: 1.35rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--color-text); text-decoration: none;
  transition: color var(--transition-fast);
}
.iw-catnav a:hover { color: var(--accent); }
.iw-catnav a.is-current,
.iw-catnav .current-menu-item > a { color: var(--accent); }
.iw-catnav a.is-current::after,
.iw-catnav .current-menu-item > a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: -1px;
  height: 2px; background: var(--accent);
}
/* メニューfallback（素のaタグ）受け */
.iw-catnav > a { display: inline-block; }

.iw-header__tools { display: flex; align-items: center; gap: 8px; }
.iw-search {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.iw-search:hover { background: var(--accent-light); color: var(--accent); }
.iw-search svg { display: block; }
.iw-header__cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 1.3rem; font-weight: 700; letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--transition-fast);
}
.iw-header__cta:hover { background: var(--accent-dark); color: #fff; }
.iw-menu-btn {
  display: none; width: 40px; height: 40px; margin-left: 4px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.iw-menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
body.is-nav-open .iw-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.is-nav-open .iw-menu-btn span:nth-child(2) { opacity: 0; }
body.is-nav-open .iw-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
[id] { scroll-margin-top: 88px; }

/* ============================================
   3. Footer — 白基調・中央揃え
   ============================================ */

.l-footer {
  background: var(--color-surface);
  color: var(--color-text-light);
  border-top: var(--hairline);
  padding: 56px 0 36px;
  position: relative;
  text-align: center;
}
.l-footer::before {
  content: '';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 3px; background: var(--accent);
}
.l-footer__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.l-footer__top {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  margin-bottom: 28px;
}
.l-footer__brand { max-width: 560px; }
.l-footer__logo {
  font-family: var(--font-serif-ja);
  font-size: 2.4rem; font-weight: 700; letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
}
.l-footer__logo:hover { color: var(--accent-dark); }
.l-footer__desc { font-size: 1.3rem; color: var(--color-text-light); margin-top: 10px; line-height: 1.9; }
.l-footer__nav ul,
.l-footer__nav .menu {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  list-style: none; margin: 0; padding: 0;
}
.l-footer__nav li { list-style: none; }
.l-footer__nav a { font-size: 1.3rem; color: var(--color-text-light); text-decoration: none; }
.l-footer__nav a:hover { color: var(--accent); }
.l-footer__bottom { border-top: var(--hairline); padding-top: 22px; }
.l-footer__copy { font-size: 1.2rem; color: var(--color-text-muted); }
.l-footer__operator { margin-top: 8px; font-size: 1.2rem; color: var(--color-text-muted); }
.l-footer__operator a {
  color: var(--color-text-light);
  text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 3px;
}
.l-footer__operator a:hover { color: var(--accent); }

/* ============================================
   4. iwt magazine primitives
   ============================================ */

.iw-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.iw-hairline {
  border: none;
  border-top: var(--hairline);
  margin: 0;
}

/* セクション見出し: 欧文大＋和文小、下ヘアライン＋藍の短罫 */
.iw-sec-h {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: var(--hairline-strong);
  position: relative;
}
.iw-sec-h::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 56px; height: 2px; background: var(--accent);
}
.iw-sec-h .en {
  font-family: var(--font-en);
  font-size: 2.5rem; font-weight: 800; letter-spacing: 0.01em;
  color: var(--ink); line-height: 1.2;
}
.iw-sec-h .ja { font-size: 1.3rem; font-weight: 600; color: var(--color-text-light); }
.iw-sec-h--center { justify-content: center; }
.iw-sec-h--center::after { left: 50%; transform: translateX(-50%); }

/* Newバッジ: 小さな藍の矩形ラベル */
.iw-new {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-en);
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 3px 9px; border-radius: 2px;
}

/* カテゴリピル（淡色地×濃紺文字・角丸最小） */
.iw-chip {
  display: inline-block;
  font-size: 1.15rem; font-weight: 700;
  color: var(--accent-dark);
  background: var(--chip-news);
  border: 1px solid rgba(26, 34, 44, 0.06);
  padding: 3px 12px; border-radius: 3px;
  white-space: nowrap;
}
.iw-chip--workflow { background: var(--chip-workflow); }
.iw-chip--training { background: var(--chip-training); }
.iw-chip--grants { background: var(--chip-grants); }
.iw-chip--case-study { background: var(--chip-case); }

/* meta行（日付＋ピル） */
.iw-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 1.25rem; color: var(--color-text-muted);
}
.iw-meta time { font-family: var(--font-en); font-weight: 500; letter-spacing: 0.02em; }

/* 編集部クレジット */
.iw-author {
  display: flex; justify-content: flex-end; align-items: center; gap: 7px;
  font-size: 1.2rem; color: var(--color-text-muted);
  margin-top: auto;
  padding-top: 12px;
}
.iw-author i {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid var(--accent-soft);
  display: inline-block;
}

/* サムネなしプレースホルダ */
.iw-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
}
.iw-noimg span {
  font-family: var(--font-serif-ja);
  font-size: 1.6rem; font-weight: 700; letter-spacing: 0.2em;
  color: var(--accent-soft);
}

/* ============================================
   5. Front page — 注目3枚
   ============================================ */

.iw-hero { padding: 44px 0 48px; overflow: hidden; }
.iw-hero__track {
  display: flex; gap: 26px; justify-content: center; align-items: stretch;
  padding: 0 24px;
}
.iw-fcard {
  background: var(--color-surface);
  border: var(--hairline);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-card);
  overflow: hidden;
  width: 560px; flex: 0 0 auto;
  transition: border-color var(--transition-fast);
  display: flex;
}
.iw-fcard.is-side { width: 400px; }
.iw-fcard:hover { border-color: var(--accent-soft); border-top-color: var(--accent); }
.iw-fcard > a { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.iw-fcard__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-bg-alt); }
.iw-fcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.iw-fcard:hover .iw-fcard__img img { transform: scale(1.03); }
.iw-fcard__body { padding: 16px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.iw-fcard__body h3 {
  font-size: 1.75rem; font-weight: 700; line-height: 1.6;
  margin: 10px 0 8px; color: var(--ink);
}
.iw-fcard.is-side .iw-fcard__body h3 { font-size: 1.55rem; }
.iw-fcard__body p {
  font-size: 1.3rem; color: var(--color-text-light); line-height: 1.8; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.iw-fcard.is-side .iw-fcard__body p { -webkit-line-clamp: 2; }
.iw-arrow {
  align-self: center; flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: var(--hairline-strong);
  color: var(--color-text-muted); background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 1.6rem;
}

/* ============================================
   6. Front page — Latest＋サイドバー / グリッド
   ============================================ */

.iw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: start;
  padding: 52px 24px 40px;
}
.iw-main { min-width: 0; }
.iw-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.iw-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: left; }

.iw-allbtn {
  display: block;
  width: min(300px, 100%);
  margin: 40px auto 0;
  text-align: center;
  border: var(--hairline-strong);
  border-radius: 999px;
  background: var(--color-surface);
  padding: 13px 0;
  font-size: 1.4rem; font-weight: 700; color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.iw-allbtn:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---- 記事カード（Latest/カテゴリ/archive/関連 共通） ---- */
.iw-acard {
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition-fast);
  display: flex;
}
.iw-acard:hover { border-color: var(--accent-soft); }
.iw-acard > a { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.iw-acard__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-bg-alt); }
.iw-acard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.iw-acard:hover .iw-acard__img img { transform: scale(1.03); }
.iw-acard__body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.iw-acard__body h3 {
  font-size: 1.55rem; font-weight: 700; line-height: 1.6;
  margin: 10px 0 8px; color: var(--ink);
}
.iw-acard:hover .iw-acard__body h3 { color: var(--accent-dark); }
.iw-acard__body p {
  font-size: 1.28rem; color: var(--color-text-light); line-height: 1.8; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- サイドバー ---- */
.iw-side {
  display: flex; flex-direction: column; gap: 36px;
  position: sticky; top: 24px;
  min-width: 0;
}
.iw-widget__h,
.iw-widget > .iw-widget__h {
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  padding-bottom: 10px;
  border-bottom: var(--hairline-strong);
  margin: 0 0 16px;
  position: relative;
}
.iw-widget__h::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 40px; height: 2px; background: var(--accent);
}
.iw-widget__h.en { font-family: var(--font-en); font-size: 1.7rem; font-weight: 800; letter-spacing: 0.01em; }

.iw-tags { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.iw-tags a { font-size: 1.3rem; font-weight: 600; color: var(--color-text-light); text-decoration: none; }
.iw-tags a:hover { color: var(--accent); }

.iw-pick { display: flex; flex-direction: column; }
.iw-pcard {
  display: block; text-decoration: none; color: inherit;
  border-bottom: var(--hairline);
  padding: 12px 0;
}
.iw-pcard:first-child { padding-top: 0; }
.iw-pcard:last-child { border-bottom: none; padding-bottom: 0; }
.iw-pcard__top { display: flex; gap: 12px; align-items: center; font-size: 1.15rem; color: var(--color-text-muted); margin-bottom: 7px; }
.iw-pcard__top b { color: var(--accent); font-family: var(--font-en); font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.iw-pcard__top time { font-family: var(--font-en); }
.iw-pcard__row { display: flex; gap: 12px; align-items: center; }
.iw-pcard__row img {
  width: 76px; height: 51px; object-fit: cover; flex: 0 0 auto;
  border-radius: var(--radius-sm); border: var(--hairline);
}
.iw-pcard__row > span {
  font-size: 1.3rem; font-weight: 600; line-height: 1.6; color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.iw-pcard:hover .iw-pcard__row > span { color: var(--accent-dark); }

/* 目次（single時のみ表示） */
.iw-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.iw-toc li { counter-increment: toc; margin-bottom: 8px; font-size: 1.25rem; line-height: 1.6; }
.iw-toc a { color: var(--color-text-2); text-decoration: none; display: flex; gap: 9px; }
.iw-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent); font-weight: 700; font-family: var(--font-en);
}
.iw-toc a:hover { color: var(--accent-dark); }

/* 相談カード（深い藍〜鉄色 — サイト内で唯一の濃色面） */
.iw-consult {
  background: var(--gradient-subhero);
  border-radius: var(--radius-card);
  color: #fff;
  padding: 24px 22px 22px;
}
.iw-consult__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.14em;
  border-radius: 2px; padding: 3px 10px; margin: 0 0 12px;
}
.iw-consult__title { font-size: 1.65rem; font-weight: 700; line-height: 1.6; margin: 0 0 10px; }
.iw-consult__body { font-size: 1.25rem; line-height: 1.85; color: rgba(255, 255, 255, 0.82); margin: 0 0 16px; }
.iw-consult__btn {
  display: block; text-align: center;
  background: #fff; color: var(--accent-dark);
  border-radius: var(--radius-btn);
  padding: 11px 0;
  font-size: 1.35rem; font-weight: 700;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.iw-consult__btn:hover { opacity: 0.9; color: var(--accent-dark); }

/* ============================================
   7. Front page — カテゴリセクション / テーマ / 帯
   ============================================ */

.iw-catsec { padding: 52px 24px 8px; text-align: center; }
.iw-catsec .en {
  font-family: var(--font-en);
  font-size: 2.5rem; font-weight: 800; letter-spacing: 0.01em; color: var(--ink);
}
.iw-catsec .ja { font-size: 1.3rem; font-weight: 600; color: var(--color-text-light); margin: 6px 0 30px; }

.iw-themes { padding: 48px 24px 56px; }
.iw-themes__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.iw-theme-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--color-surface);
  border: var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px 20px 20px;
  text-decoration: none; color: inherit;
  transition: border-color var(--transition-fast);
  position: relative;
}
.iw-theme-card::before {
  content: '';
  position: absolute; top: 0; left: 20px;
  width: 32px; height: 2px; background: var(--accent);
}
.iw-theme-card:hover { border-color: var(--accent-soft); }
.iw-theme-card__label {
  font-family: var(--font-serif-ja);
  font-size: 1.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink);
}
.iw-theme-card__count { font-family: var(--font-en); font-size: 1.15rem; font-weight: 600; color: var(--accent); }
.iw-theme-card p { font-size: 1.25rem; line-height: 1.8; color: var(--color-text-light); margin: 0; }
.iw-theme-card:hover .iw-theme-card__label { color: var(--accent-dark); }

/* コミュニティ帯 */
.iw-band { background: var(--color-bg-alt); border-top: var(--hairline); border-bottom: var(--hairline); padding: 56px 0; }
.iw-band__in {
  display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 44px; align-items: center;
}
.iw-band__in > img {
  width: 100%; height: 280px; object-fit: cover;
  border-radius: var(--radius-card);
  border: var(--hairline);
}
.iw-band__in h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif-ja);
  font-size: 2.2rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink);
  padding-bottom: 14px; margin: 0 0 18px;
  border-bottom: var(--hairline-strong);
  position: relative;
}
.iw-band__in h2::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 56px; height: 2px; background: var(--accent-tetsu);
}
.iw-band__in h2 img { flex: 0 0 auto; }
.iw-band__in p { font-size: 1.4rem; line-height: 1.9; color: var(--color-text-2); margin: 0 0 10px; }
.iw-band__btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--color-surface);
  border: var(--hairline-strong);
  border-radius: 999px;
  padding: 12px 40px;
  font-size: 1.35rem; font-weight: 700; color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.iw-band__btn:hover { border-color: var(--accent); color: var(--accent-dark); }

/* 運営会社ストリップ */
.iw-operator { padding: 44px 0 8px; }
.iw-operator__in {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 32px; align-items: center;
  border: var(--hairline);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 26px 30px;
}
.iw-operator__label {
  font-family: var(--font-en);
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 6px;
}
.iw-operator__name { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin: 0; }
.iw-operator__desc { font-size: 1.3rem; line-height: 1.9; color: var(--color-text-light); margin: 0; }
.iw-operator__links { display: flex; flex-direction: column; gap: 10px; }
.iw-operator__links a {
  font-size: 1.3rem; font-weight: 600; color: var(--accent-dark);
  text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px;
}
.iw-operator__links a:hover { color: var(--accent); }

/* ============================================
   8. Sub-hero / breadcrumb（single・archive・page共通）
   ============================================ */

.p-sub-hero {
  background: var(--color-surface);
  padding: 40px 24px 26px;
  text-align: center;
  min-height: 0;
}
.single .p-sub-hero { display: none; }
.p-sub-hero__eyebrow {
  font-family: var(--font-en);
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.p-sub-hero__title {
  display: inline-block;
  font-family: var(--font-serif-ja);
  font-size: 2.6rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1.5;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.p-sub-hero__title::after {
  content: '';
  position: absolute; left: 50%; transform: translateX(-50%); bottom: -2px;
  width: 56px; height: 2px; background: var(--accent);
}
.p-sub-hero__sub {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.25rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-top: 10px; border: none;
}

.p-breadcrumb {
  background: var(--color-surface);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: 11px 0;
  font-size: 1.25rem;
  margin-bottom: 0;
}
.p-breadcrumb__list {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  list-style: none; margin: 0; padding: 0;
  color: var(--color-text-muted);
}
.p-breadcrumb__item { display: flex; align-items: center; gap: 8px; }
.p-breadcrumb__item + .p-breadcrumb__item::before { content: '›'; color: var(--color-text-muted); }
.p-breadcrumb__link { color: var(--color-text-muted); text-decoration: none; }
.p-breadcrumb__link:hover { color: var(--accent); }
.p-breadcrumb__link--current { color: var(--color-text); font-weight: 600; }

/* ============================================
   9. Single article — 大ヒーロー + 読み幅680px
   ============================================ */

.p-article-header {
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 0 20px;
}
.p-article-header__category {
  display: inline-block;
  font-size: 1.2rem; font-weight: 700;
  color: var(--accent-dark);
  background: var(--chip-workflow);
  border: 1px solid rgba(26, 34, 44, 0.06);
  padding: 3px 14px; border-radius: 3px;
  margin-bottom: 14px;
}
.p-article-header__title {
  font-family: var(--font-serif-ja);
  font-size: clamp(2.4rem, 3.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 18px;
}
.p-article-header__meta {
  display: flex; align-items: center; gap: 18px;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: 10px 2px;
  font-size: 1.25rem; color: var(--color-text-muted);
}
.p-article-header__meta time { font-family: var(--font-en); font-weight: 500; }

/* 大ヒーロー画像 — 本文(680px)より広い940px */
.p-article-thumbnail {
  max-width: 940px;
  margin: 26px auto 44px;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: var(--hairline);
}
.p-article-thumbnail img { width: 100%; height: auto; display: block; }

/* 本文 — 読み幅680px・17px・行間1.9 */
.p-article-body {
  max-width: var(--article-max-width);
  margin: 0 auto;
  color: var(--color-text);
  font-size: 1.7rem;
  line-height: 1.9;
}
.p-article-body > p:first-child {
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--color-bg-alt);
  color: var(--ink);
  font-weight: 500;
}
.p-article-body h2 {
  font-family: var(--font-serif-ja);
  margin: 2.6em 0 1em;
  padding: 0 0 12px;
  border-top: none;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-size: clamp(2.1rem, 2.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  position: relative;
}
.p-article-body h2::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 56px; height: 2px; background: var(--accent);
}
.p-article-body h3 {
  margin: 2em 0 0.7em;
  padding-left: 13px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.55;
}
.p-article-body h4 {
  margin: 1.6em 0 0.6em;
  color: var(--ink);
  font-size: 1.7rem;
  font-weight: 700;
}
.p-article-body p { margin-bottom: 1em; }
.p-article-body ul,
.p-article-body ol {
  margin: 18px 0 28px;
  padding: 20px 26px 20px 44px;
  border: var(--hairline);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}
.p-article-body ul { list-style: disc; }
.p-article-body ol { list-style: decimal; }
.p-article-body ul ul { list-style: circle; margin: 8px 0 0; padding: 0 0 0 22px; border: none; }
.p-article-body ol ol { margin: 8px 0 0; padding: 0 0 0 22px; border: none; }
.p-article-body li + li { margin-top: 8px; }
.p-article-body blockquote {
  margin: 22px 0 28px;
  padding: 16px 22px;
  border-left: 3px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text-2);
}
.p-article-body pre {
  margin: 22px 0 32px;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: #131A22;
  color: #E4E9EF;
  font-size: 1.3rem;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre-wrap;
}
.p-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}
.p-article-body :not(pre) > code {
  background: var(--color-bg-alt);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 0.92em;
}
.p-article-body table {
  width: 100%;
  margin: 22px 0 32px;
  border-collapse: collapse;
  border: var(--hairline-strong);
  font-size: 1.4rem;
}
.p-article-body th,
.p-article-body td {
  padding: 12px 14px;
  border: var(--hairline);
  text-align: left;
  vertical-align: top;
}
.p-article-body th { background: var(--color-bg-alt); color: var(--ink); font-weight: 700; }
.p-article-body a {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-underline-offset: 3px;
}
.p-article-body a:hover { text-decoration-color: var(--accent-dark); }
.p-article-body img { border-radius: var(--radius-sm); border: var(--hairline); }
.p-article-body hr { border: none; border-top: var(--hairline); margin: 40px 0; }

/* 記事下 相談帯（NEXT ACTION — 白面＋藍左罫） */
.p-article-action {
  max-width: 940px;
  margin: 56px auto 0;
  border: var(--hairline-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  padding: 34px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.9fr);
  gap: 32px;
  align-items: center;
}
.p-article-action__eyebrow {
  font-family: var(--font-en);
  font-size: 1.15rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.p-article-action h2 {
  font-size: 2rem; font-weight: 700; line-height: 1.55; color: var(--ink);
  margin: 0 0 10px;
}
.p-article-action p { font-size: 1.4rem; line-height: 1.9; color: var(--color-text-light); margin: 0; }
.p-article-action__side { display: flex; flex-direction: column; gap: 10px; }
.p-article-action .c-btn { text-align: center; justify-content: center; }

/* シェア */
.p-article-footer {
  max-width: 940px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: var(--hairline);
}
.p-article-footer__share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-article-footer__share-label { font-size: 1.25rem; font-weight: 600; color: var(--color-text-muted); }
.c-share-btn {
  display: inline-block;
  border: var(--hairline-strong);
  border-radius: 3px;
  background: var(--color-surface);
  padding: 7px 16px;
  font-size: 1.25rem; font-weight: 600; color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.c-share-btn:hover { border-color: var(--accent); color: var(--accent-dark); }

/* 関連記事見出し（p-section-heading 継続利用分） */
.p-section-heading {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: var(--hairline-strong);
  position: relative;
}
.p-section-heading::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 56px; height: 2px; background: var(--accent);
}
.p-section-heading__en {
  font-family: var(--font-en);
  font-size: 2.2rem; font-weight: 800; letter-spacing: 0.01em; text-transform: capitalize;
  color: var(--ink);
}
.p-section-heading__ja { font-size: 1.3rem; font-weight: 600; color: var(--color-text-light); }

/* 記事グリッド（archive・関連） */
.p-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ============================================
   10. Archive
   ============================================ */

.p-archive-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 34px;
}
.p-archive-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: var(--hairline-strong);
  border-radius: 3px;
  background: var(--color-surface);
  padding: 7px 16px;
  font-size: 1.3rem; font-weight: 600; color: var(--color-text-light);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.p-archive-tab em {
  font-style: normal; font-family: var(--font-en);
  font-size: 1.1rem; font-weight: 600; color: var(--color-text-muted);
}
.p-archive-tab:hover { border-color: var(--accent-soft); color: var(--accent-dark); }
.p-archive-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-archive-tab.is-active em { color: rgba(255, 255, 255, 0.75); }

.p-page-desc {
  max-width: 720px; margin: 0 auto 30px;
  text-align: center;
  font-size: 1.35rem; line-height: 1.9; color: var(--color-text-light);
}

.p-pagination { margin-top: 44px; display: flex; justify-content: center; }
.p-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px; margin: 0 3px;
  border: var(--hairline-strong); border-radius: 3px;
  background: var(--color-surface);
  font-family: var(--font-en); font-size: 1.3rem; font-weight: 600;
  color: var(--color-text); text-decoration: none;
}
.p-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent-dark); }
.p-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-pagination .page-numbers.dots { border: none; background: none; }

.p-empty { color: var(--color-text-muted); padding: 24px 0; text-align: center; }

/* ============================================
   11. 固定ページ（親page.php: p-article / p-article-content）
   ============================================ */

.p-article { max-width: 940px; margin: 0 auto; padding: 8px 24px 0; }
.p-article__header { padding: 32px 0 8px; }
.p-article__title {
  display: inline-block;
  font-family: var(--font-serif-ja);
  font-size: 2.6rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.5;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.p-article__title::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 56px; height: 2px; background: var(--accent);
}
.p-article .p-breadcrumb { border: none; padding: 18px 0 0; background: none; }
.p-article-content {
  max-width: var(--article-max-width);
  margin: 24px auto 0;
  font-size: 1.7rem;
  line-height: 1.9;
}

/* ============================================
   12. Responsive article guardrails（既存記事資産の保護 — 旧CSSから承継）
   ============================================ */

.p-article,
.p-article-content,
.p-article-body,
.entry-content,
.l-main,
.l-contents,
.l-container,
.l-inner { min-width: 0; }

.p-article-content,
.p-article-body {
  max-width: min(var(--article-max-width), 100%);
  overflow-wrap: anywhere;
  word-break: normal;
}

.p-article-content *,
.p-article-body * { box-sizing: border-box; max-width: 100%; }

.p-article-content img,
.p-article-content iframe,
.p-article-content video,
.p-article-body img,
.p-article-body iframe,
.p-article-body video { max-width: 100%; height: auto; }

.p-article-content a,
.p-article-body a { overflow-wrap: anywhere; word-break: break-word; }

.p-article-content table,
.p-article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.p-article-content pre,
.p-article-body pre {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.p-article-content pre code,
.p-article-body pre code,
.p-article-content code.hljs {
  display: block;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  white-space: inherit;
  overflow-wrap: inherit;
  word-break: inherit;
  background: transparent;
}

.p-article-content :not(pre) > code,
.p-article-body :not(pre) > code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 記事本文内に埋め込み済みの関連記事ブロック（本文HTML側依存 — 削除禁止） */
.urv-related-articles {
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
.urv-related-articles > div[style] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
}
.urv-related-articles a,
.urv-related-articles strong {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.p-article-content p,
.p-article-content li,
.p-article-content h2,
.p-article-content h3,
.p-article-content h4,
.p-article-content strong,
.p-article-content span,
.p-article-body p,
.p-article-body li,
.p-article-body h2,
.p-article-body h3,
.p-article-body h4,
.p-article-body strong,
.p-article-body span {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============================================
   13. Responsive
   ============================================ */

@media (max-width: 1180px) {
  .iw-fcard { width: 500px; }
  .iw-fcard.is-side { width: 360px; }
  .iw-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
}

@media (max-width: 1023px) {
  .iw-header__in { min-height: 64px; gap: 12px; }
  .iw-menu-btn { display: flex; }
  .iw-catnav { display: none; }
  body.is-nav-open .iw-catnav {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--color-surface);
    z-index: 1000; overflow-y: auto; padding-top: 80px; margin: 0;
  }
  body.is-nav-open .iw-catnav ul { flex-direction: column; align-items: stretch; }
  body.is-nav-open .iw-catnav a {
    text-align: center; padding: 17px 26px; font-size: 1.55rem;
    border-bottom: var(--hairline);
  }
  body.is-nav-open .iw-catnav a.is-current::after,
  body.is-nav-open .iw-catnav .current-menu-item > a::after { content: none; }
  body.is-nav-open .iw-logo,
  body.is-nav-open .iw-header__tools { position: relative; z-index: 1002; }
  body.is-nav-open { overflow: hidden; }

  .iw-hero { padding: 32px 0 40px; }
  .iw-hero__track { flex-direction: column; align-items: center; }
  .iw-fcard, .iw-fcard.is-side { width: 100%; max-width: 620px; }
  .iw-fcard.is-side { order: 2; } /* モバイルでは最新（中央カード）を先頭に */
  .iw-arrow { display: none; }
  .iw-layout { grid-template-columns: 1fr; gap: 40px; }
  .iw-side { position: static; }
  .iw-themes__grid { grid-template-columns: 1fr 1fr; }
  .iw-band__in { grid-template-columns: 1fr; gap: 28px; }
  .iw-band__in > img { height: 220px; }
  .iw-operator__in { grid-template-columns: 1fr; gap: 18px; }
  .iw-operator__links { flex-direction: row; gap: 24px; }
  .p-article-action { grid-template-columns: 1fr; padding: 28px 26px; }
  .p-articles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .iw-header__in { padding: 0 18px; min-height: 60px; }
  .iw-logo__name { font-size: 2.1rem; }
  .iw-logo__sub { display: none; }
  .iw-grid2 { grid-template-columns: 1fr; }
  .iw-layout { padding: 40px 20px 32px; }
  .iw-catsec { padding: 44px 20px 8px; }
  .iw-themes { padding: 40px 20px 48px; }
  .p-article-header { padding: 32px 0 16px; }
  .p-article-thumbnail { margin: 20px auto 32px; }
}

@media (max-width: 640px) {
  .iw-sec-h .en,
  .iw-catsec .en { font-size: 2.1rem; }
  .iw-grid3,
  .iw-themes__grid,
  .p-articles-grid { grid-template-columns: 1fr; }
  .p-sub-hero__title { font-size: 2.2rem; }
  .p-article-header__title { font-size: 2.3rem; }
  .p-article-body { font-size: 1.6rem; line-height: 1.85; }
  .p-article-body ul,
  .p-article-body ol { margin-left: 0; padding: 16px 18px 16px 34px; }
  .p-article-body pre { padding: 14px; font-size: 1.25rem; }
  .p-article__title { font-size: 2.2rem; }
  .p-article-content { font-size: 1.6rem; line-height: 1.85; }
  .iw-band { padding: 44px 0; }
  .iw-band__in h2 { font-size: 1.9rem; }
  .urv-related-articles { margin: 40px 0 24px !important; padding: 24px 16px !important; }
  .urv-related-articles > div[style] { grid-template-columns: minmax(0, 1fr) !important; }
  .urv-related-articles a[style] { padding: 16px 14px !important; }
}

/* ============================================================
   Rich pass 2026-08-21 — 藍×明朝の格調深化(佐藤指示「もうちょっとだけリッチに」)
   ゴースト英字 / 見出しの明朝ヒエラルキー / hoverの手触り / 数字タイポ
   ============================================================ */

/* 1. ヒーロー背景にゴースト英字(輪郭線・CSSのみ) */
.iw-hero { position: relative; }
.iw-hero::before {
  content: 'SHIZUOKA AI';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Georgia, 'Times New Roman', 'Hiragino Mincho ProN', serif;
  font-size: clamp(6rem, 12vw, 13rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(31, 78, 121, 0.10);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}
.iw-hero__track { position: relative; z-index: 1; }

/* 2. セクション見出し — 藍の短い太線+明朝の格 */
.iw-sec-h::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  background: var(--accent);
}
.iw-sec-h .iw-sec-h__en,
.iw-sec-h b,
.iw-sec-h strong { font-variant-numeric: tabular-nums; }

/* 3. Latestカード(iw-acard)のhover深化 — リフト+サムネ微ズーム */
.iw-acard { transition: border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease; }
.iw-acard:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 6px rgba(14, 39, 64, 0.05), 0 14px 30px rgba(14, 39, 64, 0.08);
}
.iw-acard__img { overflow: hidden; }
.iw-acard__img img { transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.iw-acard:hover .iw-acard__img img { transform: scale(1.045); }

/* 4. featuredカードのhoverも僅かにリフト */
.iw-fcard { transition: border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease; }
.iw-fcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 6px rgba(14, 39, 64, 0.05), 0 16px 34px rgba(14, 39, 64, 0.09);
}

/* 5. 日付・メタの数字を上品に */
.iw-meta,
.iw-meta time { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }

/* 6. テーマカード(iw-theme-card)のhover */
.iw-theme-card { transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease; }
.iw-theme-card:hover { transform: translateY(-2px); border-color: var(--accent-soft); }

/* 7. 藍バンドの縁を深青緑で締める */
.iw-band { border-top: 3px solid var(--accent-tetsu); }

/* 8. カテゴリナビリンクの下線スライド(currentは既存の実線を維持) */
.iw-catnav a:not(.is-current) {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 50% calc(100% - 10px);
  background-size: 0% 2px;
  transition: background-size 0.3s ease, color 0.25s ease;
}
.iw-catnav a:not(.is-current):hover { background-size: calc(100% - 48px) 2px; }

@media (max-width: 760px) {
  .iw-hero::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .iw-acard, .iw-fcard, .iw-theme-card, .iw-acard__img img, .iw-catnav a:not(.is-current) { transition: none; }
  .iw-acard:hover, .iw-fcard:hover, .iw-theme-card:hover { transform: none; }
  .iw-acard:hover .iw-acard__img img { transform: none; }
}

/* 9. ナビcurrent下線の誤爆修正: トップへのアンカーリンク(#community/#themes)は
      トップ表示時にWPがcurrent-menu-item判定するため、アンカー項目は下線・強調を出さない */
.iw-catnav .current-menu-item > a[href*="#"] { color: var(--color-text-2); }
.iw-catnav .current-menu-item > a[href*="#"]:hover { color: var(--accent); }
.iw-catnav .current-menu-item > a[href*="#"]::after { content: none; }

/* 10. ゴースト英字の表示調整: ヒーロー上部に余白を確保して覗かせる(カードに隠れていた) */
.iw-hero { padding-top: 84px; }
.iw-hero::before {
  top: 10px;
  font-size: clamp(5rem, 8.5vw, 9.5rem);
}

/* 11. 記事面2カラム(サイドタブ・佐藤指示 8/21): sidebar-fresh を single に接続 */
.iw-layout--article { padding-top: 24px; }
.iw-layout--article .p-article-header,
.iw-layout--article .p-article-thumbnail { max-width: none; }
.iw-layout--article .p-article-body { margin: 0 auto; }
@media (max-width: 1023px) {
  .iw-layout--article { padding-top: 8px; }
}

/* ============================================================
   Corporate header overrides 2026-08-27 — Rich pass(上)より後置で勝たせる
   ============================================================ */
.iw-header--corp .iw-catnav a:not(.is-current) { background-image: none; }
.iw-header--corp .iw-catnav a::before { content: ''; position: absolute; left: 13px; right: 13px; bottom: 18px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.iw-header--corp .iw-catnav a:hover::before { transform: scaleX(1); }
.iw-header--corp .iw-catnav a.is-current::before,
.iw-header--corp .iw-catnav .current-menu-item > a::before { content: none; }
@media (max-width: 1023px) {
  .iw-header--corp .iw-catnav a::before { content: none; }
  .iw-header--corp .iw-catnav a { background-image: none; }
}
@media (max-width: 480px) {
  .iw-header__cta { display: none; }
}
.cp-articles .iw-sec-h, .cp-programs .iw-sec-h, .cp-flow .iw-sec-h { justify-content: center; }
.cp-clients__grid img { height: 36px; max-height: none; object-fit: contain; }
/* sticky sidebar は新sticky header(72px)の下に潜らないよう offset を 96px に（2026-08-27） */
.iw-side, .iw-sidebar, .iw-layout > aside { top: 96px; }
