/*
Theme Name: DX Nova Article
Theme URI: https://dx-nova.com/article
Author: DX Nova
Author URI: https://dx-nova.com
Description: DX Nova コラム・お役立ち記事テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: dx-nova-article
*/

/* ============================================================
   CSS カスタムプロパティ（カラー・フォント変数）
   ============================================================ */
:root {
  --color-bg:          #F7FAFF;
  --color-bg-secondary:#111328;
  --color-surface:     #161a30;
  --color-surface-alt: #1c2040;
  --color-border:      #2a2f52;
  --color-accent:      #4f8ef7;
  --color-accent-2:    #7b5cf7;
  --color-accent-grad: linear-gradient(135deg, #4f8ef7, #7b5cf7);
  --color-text:        #e8eaf6;
  --color-text-muted:  #8892b0;
  --color-text-light:  #ccd6f6;
  --color-white:       #ffffff;
  --color-success:     #43d9ad;
  --color-warning:     #f7c94f;
  --color-danger:      #f76f8e;

  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,0.5);

  --transition: 0.25s ease;
}

/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #FFF;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--color-accent-2);
  text-decoration: underline;
}

/* ============================================================
   レイアウト
   ============================================================ */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-logo .logo-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.header-nav a:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.header-nav .btn-contact {
  background: var(--color-accent-grad);
  color: var(--color-white) !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
}

.header-nav .btn-contact:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* パンくず */
.breadcrumb-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb li + li::before {
  content: '›';
  color: var(--color-border);
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-accent); }

/* ============================================================
   メインコンテンツエリア（2カラム）
   ============================================================ */
.site-main {
  flex: 1;
  padding: 48px 0 80px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ============================================================
   記事一覧ページ
   ============================================================ */
.archive-header {
  margin-bottom: 36px;
}

.archive-header .page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1A2E5A;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

.archive-header .page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent-grad);
  border-radius: 2px;
}

.archive-header .page-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* 記事カード */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.post-card {
  background: #F7FAFF;
  border: 1px solid #d0e0ed;
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.post-card-link {
  display: flex;
  gap: 0;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.post-card-link:hover {
  text-decoration: none;
}

.post-card-thumb {
  flex-shrink: 0;
  width: 220px;
  min-height: 148px;
  overflow: hidden;
  background: var(--color-surface-alt);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

.post-card-thumb .no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-border);
  background: linear-gradient(135deg, var(--color-surface-alt), var(--color-surface));
}

.post-card-body {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(79, 142, 247, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(79, 142, 247, 0.3);
  text-decoration: none;
}

.post-card-cat:hover {
  background: rgba(79, 142, 247, 0.25);
  text-decoration: none;
}

.post-card-date {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.post-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1B6AC9;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-footer {
  padding: 14px 24px;
  display: flex;
  justify-content: flex-end;
}

.post-card-more {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ページネーション */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination .current,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

.pagination .current {
  background: var(--color-accent-grad);
  border-color: transparent;
  color: var(--color-white);
}

/* ============================================================
   単一記事ページ
   ============================================================ */
.article-header {
  margin-bottom: 36px;
}

.article-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(79, 142, 247, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(79, 142, 247, 0.3);
  text-decoration: none;
}

.article-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #1A2E5A;
  line-height: 1.45;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.article-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* サムネイル */
.article-thumb {
  overflow: hidden;
  margin-bottom: 40px;
}

.article-thumb img {
  width: 100%;
  height: auto;
  /*max-height: 440px;*/
  object-fit: cover;
}

/* ============================================================
   目次（TOC）
   ============================================================ */
.toc-box {
background: linear-gradient(135deg, rgba(27, 106, 201, 0.06) 0%, rgba(13, 181, 160, 0.06) 100%);
  border-radius: 8px;
  padding: 28px 28px 24px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.toc-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent-grad);
}

.toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--color-accent);
}

.toc-list {
  list-style: none;
  counter-reset: toc-h2;
}

.toc-list > li {
  counter-increment: toc-h2;
  border-bottom: 1px solid var(--color-border);
  padding: 8px 0;
}

.toc-list > li:last-child { border-bottom: none; }

.toc-list > li > a {
  color: #1A2E5A;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  transition: color var(--transition);
}

.toc-list > li > a::before {
  content: counter(toc-h2) '.';
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.toc-list > li > a:hover { color: var(--color-accent); text-decoration: none; }

.toc-sub {
  list-style: none;
  margin-top: 6px;
  padding-left: 24px;
  counter-reset: toc-h3;
}

.toc-sub > li {
  counter-increment: toc-h3;
  padding: 4px 0;
}

.toc-sub > li > a {
  color: var(--color-text-muted);
  font-size: 0.84rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  transition: color var(--transition);
}

.toc-sub > li > a::before {
  content: counter(toc-h2) '-' counter(toc-h3) '.';
  color: var(--color-text-muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.toc-sub > li > a:hover { color: var(--color-accent); text-decoration: none; }

/* ============================================================
   記事本文スタイル
   ============================================================ */
.article-body {
  color:#1A2E5A;
  font-size: 1rem;
  line-height: 1.9;
}

/* 見出し */
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-white);
  margin: 56px 0 24px;
  padding: 18px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border-left: 5px solid var(--color-accent);
  line-height: 1.4;
  position: relative;
  scroll-margin-top: 80px;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0DB5A0;
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
  scroll-margin-top: 80px;
}

.article-body h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--color-accent-grad);
}

.article-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--color-accent-2);
  scroll-margin-top: 80px;
}

.article-body h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin: 24px 0 10px;
}

.article-body h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 20px 0 8px;
}

/* 段落 */
.article-body p {
  margin-bottom: 1.5em;
}

/* 強調 */
.article-body strong, .article-body b {
  color: #1B6AC9;
  font-weight: 700;
}

.article-body em {
  font-style: italic;
  color: var(--color-accent);
}

/* リンク */
.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--color-accent-2);
}

/* リスト */
.article-body ul {
  margin: 1.2em 0 1.8em 0;
  padding: 0;
  list-style: none;
}

.article-body ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  border-bottom: 1px dashed var(--color-border);
}

.article-body ul li:last-child { border-bottom: none; }

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-grad);
}

.article-body ol {
  margin: 1.2em 0 1.8em 0;
  padding: 0;
  list-style: none;
  counter-reset: ol-counter;
}

.article-body ol li {
  padding: 10px 0 10px 40px;
  position: relative;
  counter-increment: ol-counter;
  border-bottom: 1px solid var(--color-border);
}

.article-body ol li:last-child { border-bottom: none; }

.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent-grad);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* テーブル */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 0.9rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.article-body th {
  background: var(--color-surface-alt);
  color: var(--color-white);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--color-accent);
}

.article-body td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
}

.article-body tr:last-child td { border-bottom: none; }

.article-body tr:nth-child(even) td {
  background: rgba(255,255,255,0.02);
}

/* 引用 */
.article-body blockquote {
  margin: 1.8em 0;
  padding: 20px 24px;
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  color: var(--color-text-light);
  position: relative;
}

.article-body blockquote::before {
  content: '"';
  font-size: 3rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: Georgia, serif;
}

.article-body blockquote p {
  margin: 0;
  padding-left: 20px;
}

.article-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: normal;
  padding-left: 20px;
}

/* コード */
.article-body code {
  background: var(--color-surface-alt);
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.article-body pre {
  background: #0d1117;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 1.8em 0;
  overflow-x: auto;
  position: relative;
}

.article-body pre code {
  background: none;
  color: var(--color-success);
  font-size: 0.875rem;
  padding: 0;
  border: none;
  border-radius: 0;
}

/* 水平線 */
.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
}

/* 画像 */
.article-body figure {
  margin: 2em 0;
}

.article-body figure img {

}

.article-body figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ポイントボックス */
.article-body .point-box {
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.8em 0;
}

.article-body .point-box::before {
  content: '📌 ポイント';
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* 注意ボックス */
.article-body .caution-box {
  background: rgba(247, 111, 142, 0.08);
  border: 1px solid rgba(247, 111, 142, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.8em 0;
}

.article-body .caution-box::before {
  content: '⚠️ 注意';
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-danger);
  margin-bottom: 10px;
}

/* まとめボックス */
.article-body .summary-box {
  background: rgba(67, 217, 173, 0.08);
  border: 1px solid rgba(67, 217, 173, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 1.8em 0;
}

.article-body .summary-box::before {
  content: '✅ まとめ';
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-success);
  margin-bottom: 10px;
}

/* ============================================================
   記事フッター・タグ・SNSシェア
   ============================================================ */
.article-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.article-tags {
  margin-bottom: 32px;
}

.article-tags .tags-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tags-list a {
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.tags-list a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* SNSシェア */
.share-section {
  margin-bottom: 40px;
}

.share-section .share-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.share-btn.twitter  { border-color: #1d9bf0; color: #1d9bf0; }
.share-btn.facebook { border-color: #1877f2; color: #1877f2; }
.share-btn.line     { border-color: #06c755; color: #06c755; }
.share-btn.copy     { border-color: var(--color-border); color: var(--color-text-muted); }

.share-btn:hover { filter: brightness(1.2); text-decoration: none; }

/* 前後記事ナビ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}

.post-nav-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-decoration: none;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-nav-item:hover {
  border-color: var(--color-accent);
  text-decoration: none;
}

.post-nav-item .nav-label {
  font-size: 0.72rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.post-nav-item .nav-title {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
  font-weight: 600;
}

.post-nav-item.next-post { text-align: right; }

/* CTA */
.article-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent-grad);
}

.article-cta .cta-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.article-cta .cta-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

.article-cta .cta-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-accent-grad);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-white);
}

/* ============================================================
   サイドバー
   ============================================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
background: #F7FAFF;
border-radius: 4px;
overflow: hidden;
}

.widget-header {
  background: linear-gradient(120deg, #1B6AC9 0%, #3FA9F5 55%, #0DB5A0 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-header .widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.08em;
}

.widget-header .widget-icon {
  width: 20px;
  height: 20px;
  background: var(--color-accent-grad);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

/* カテゴリウィジェット */
.category-list {
  list-style: none;
  padding: 8px 0;
}

.category-list li {

}

.category-list li:last-child { border-bottom: none; }

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.category-list a:hover {
  color: var(--color-accent);
  background: rgba(79, 142, 247, 0.05);
  text-decoration: none;
  padding-left: 26px;
}

.category-list .cat-count {
  font-size: 0.72rem;
  background: #FFF;
  color: var(--color-text-muted);
  padding: 2px 8px;
  border-radius: 20px;
}

/* 新着記事ウィジェット */
.recent-posts-list {
  list-style: none;
  padding: 8px 0;
}

.recent-post-item {

}

.recent-post-item:last-child { border-bottom: none; }

.recent-post-link {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  transition: all var(--transition);
}

.recent-post-link:hover {
  background: rgba(79, 142, 247, 0.05);
  text-decoration: none;
}

.recent-post-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-alt);
}

.recent-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-thumb .no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-border);
}

.recent-post-info {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.recent-post-date {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* バナーウィジェット */
.sidebar-banner {
  padding: 20px;
  text-align: center;
}

.sidebar-banner .banner-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.sidebar-banner .banner-title {
  font-size: 1.6rem;
  font-weight: 800;
  color:#1B6AC9;
  margin-bottom: 8px;
  line-height: 1.4;
}

.sidebar-banner .banner-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.btn-sm {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-accent-grad);
  color: var(--color-white);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.btn-sm:hover { opacity: 0.88; text-decoration: none; color: var(--color-white); }

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-logo img { height: 30px; }
.footer-logo .logo-name {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-nav a:hover { color: var(--color-accent); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.tag-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--color-accent-grad);
  color: var(--color-white);
  vertical-align: middle;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 960px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: -1; /* スマホでは上に */
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .post-card-link { flex-direction: column; }
  .post-card-thumb { width: 100%; min-height: 180px; }
  .post-nav { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 20px; }
  .header-nav { display: none; }
  .site-header .container { justify-content: center; }
  .article-body h2 { font-size: 1.2rem; }
  .article-body h3 { font-size: 1.05rem; }
}

/* ============================================================
   スクロールアニメーション
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}


/* HEADER */
.header {
  position: sticky; top: 0; z-index: 1000;
  padding: 14px 0;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1.5px solid rgba(27,106,201,0.09);
  transition: all 0.35s;
}
.header.scrolled { padding: 11px 0; box-shadow: 0 4px 24px rgba(27,106,201,0.10); }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 16px;
    color: #1A2E5A;
}
.logo-badge {
    padding: 0;
    width: 140px;
}
.company-name{
padding-top: 12px;
}
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  color: #5D7290; letter-spacing: 0.02em; transition: color 0.25s;
  position: relative;
}
.nav a::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(.22,1,.36,1);
}
.nav a:hover { color: #1B6AC9; }
.nav a:hover::after { width: 100%; }
.btn-header {
  background: linear-gradient(135deg, #F47B20 0%, #d96010 100%);
  color: #fff !important; padding: 10px 50px;
  font-family: var(--font-head); font-size: 14px; font-weight: 800;
  border-radius: 9999px; letter-spacing: 0.06em;
  transition: all 0.3s !important;
  box-shadow: 0 4px 16px rgba(244,123,32,0.45), 0 0 0 0 rgba(244,123,32,0.4);
  animation: pulse-btn 2.4s cubic-bezier(.4,0,.6,1) infinite;
  position: relative;
}
@keyframes pulse-btn {
  0%   { box-shadow: 0 4px 16px rgba(244,123,32,0.45), 0 0 0 0   rgba(244,123,32,0.4); }
  60%  { box-shadow: 0 4px 16px rgba(244,123,32,0.45), 0 0 0 10px rgba(244,123,32,0);   }
  100% { box-shadow: 0 4px 16px rgba(244,123,32,0.45), 0 0 0 0   rgba(244,123,32,0);   }
}
.btn-header::after { display: none !important; }
.btn-header:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 32px rgba(244,123,32,0.55) !important;
  animation: none !important;
  color: #fff !important;
}
/* FOOTER */
.footer { background: #1A2E5A; padding: 60px 0 28px; border-top: 3px solid #1B6AC9; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 44px; }
.footer-content .logo-badge { display: inline-block; vertical-align: middle;}
.footer-content .company-name {display: inline-block; vertical-align: middle; margin-left10px; color: #FFF;}
.footer-logo { font-family: var(--font-head); font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.footer-logo span { background: linear-gradient(90deg, #3FA9F5, #0DB5A0); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-address { font-size: 13px; color: rgba(255,255,255,0.48); line-height: 1.85; margin-bottom: 10px; }
.footer-business { font-size: 13px; color: rgba(255,255,255,0.42); line-height: 1.7; }
.footer-links { display: flex; gap: 44px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-family: var(--font-head); font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.5); transition: all 0.25s; }
.footer-nav a:hover { color: rgba(255,255,255,0.92); padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.07); font-family: var(--font-head); font-size: 12px; color: rgba(255,255,255,0.28); letter-spacing: 0.05em; }

/* PROGRESS BAR */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky), var(--mint)); z-index: 9999; width: 0%; transition: width 0.1s linear; box-shadow: 0 0 10px rgba(63,169,245,0.6); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content   { grid-template-columns: 1fr; gap: 48px; }
  .about-content  { grid-template-columns: 1fr; gap: 48px; }
  .subsidy-layout { grid-template-columns: 1fr; gap: 36px; }
  .custom-layout  { grid-template-columns: 1fr; gap: 44px; }
  .price-layout   { grid-template-columns: 1fr; }
  .benefits-grid  { grid-template-columns: repeat(2, 1fr); }
  .cases-grid     { grid-template-columns: repeat(2, 1fr); }
  .reasons-grid   { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .hero .container { width: auto; }
}
@media (max-width: 768px) {
  .nav             { display: none; }
  section          { padding: 72px 0; }
  .benefits-grid   { grid-template-columns: 1fr; }
  .cases-grid      { grid-template-columns: 1fr; }
  .problems-grid   { grid-template-columns: 1fr; }
  .reasons-grid    { grid-template-columns: 1fr; }
  .footer-content  { grid-template-columns: 1fr; gap: 36px; }
  .footer-links    { flex-direction: column; gap: 24px; }
  .subsidy-inner   { padding: 44px 26px; }
  .final-cta-notes { flex-direction: column; align-items: center; gap: 10px; }
  .timeline::before{ left: 50px; }
  .hero-stats      { flex-wrap: wrap; }
}

.problems .container {
  background-image: url(img/t-s-02.png);
  background-position: top right 10%;
  background-repeat: no-repeat;
  background-size: 200px;
}
.about .about-content .reveal:first-child {
    background-image: url(img/t-s-03.png);
    background-position: top right;
    background-repeat: no-repeat;
    background-size: 140px;
}
.curriculum .container {
    background-image: url(img/t-s-01.png);
    background-position: top right 10%;
    background-repeat: no-repeat;
    background-size: 240px;
}

@media (max-width: 600px) {
  .logo-badge {width: 120px;}
  .company-name {font-size: 12px;}
  .hero{padding: 50px 0px;}
  .hero-subtitle br { display: none;}
  .hero-title {text-align: center;}
  .hero-stat-divider { display: none;}
  .hero-stats {width: 100%; display: block;  text-align: center;}
  .hero-stat { border-bottom: 1px solid #1b6ac973;}
  .hero-stat:last-child { border-bottom: 0;}
  .hero-badge {display: block;padding: 7px 24px; text-align: center;}
  .hero-tag {width: 48%;font-size: 14px;}
  .timeline-day-label {transform: none;}
 .contact-layout { display: block;}
 .contact-text {margin-bottom: 40px;}
 .form-row {    grid-template-columns: 1fr;}
 .form-panel {    border-radius: 8px;
    padding: 30px 15px;}
  .price-cta {padding: 15px;}
  .timeline-item {    grid-template-columns: 80px 1fr;}
  .timeline-day {display: block;}

.about .about-content .reveal:first-child {
    background-image: url(img/t-s-03.png);
    background-position: top 14px right;
    background-repeat: no-repeat;
    background-size: 25%;
}
.problems .container{background-size:0;}
.curriculum .container {background-size:0;}
.section-desc{ font-size: 14px;}
}

/* ========================================
   繝上Φ繝舌�繧ｬ繝ｼ繝｡繝九Η繝ｼ
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  z-index: 1100;
}
.hamburger:hover { background: var(--bg2); }
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: #1A2E5A;
  border-radius: 9999px;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), opacity 0.25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26,46,90,0.45);
  backdrop-filter: blur(3px);
  z-index: 1050;
  opacity: 0; transition: opacity 0.3s;
}
.mobile-nav-overlay.active { display: block; opacity: 1; }

.mobile-nav {
  position: fixed; top: 0; right: -320px;
  width: 300px; height: 100%; background: #FFF;
  z-index: 1100;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(27,106,201,0.18);
  transition: right 0.38s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1.5px solid var(--border);
  background: var(--bg);
}
.mobile-nav-logo { font-family: var(--font-head); font-weight: 800; font-size: 16px; color: #1A2E5A; }
.mobile-nav-close {
  background: none; border: none; font-size: 28px; cursor: pointer;
  color: #5D7290; line-height: 1; padding: 0 4px; transition: color 0.2s;
}
.mobile-nav-close:hover { color: #1A2E5A; }
.mobile-nav-links { display: flex; flex-direction: column; padding: 18px 0; flex: 1; }
.mobile-nav-link {
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  color: #1E3050; padding: 15px 28px;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  display: flex; align-items: center;
}
.mobile-nav-link::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #1B6AC9, #3FA9F5);
  margin-right: 14px; flex-shrink: 0;
}
.mobile-nav-link:hover { background: var(--bg2); color: #1B6AC9; padding-left: 34px; }
.mobile-nav-cta { padding: 24px 20px 32px; border-top: 1.5px solid var(--border); }
.mobile-cta-btn { display: block; text-align: center; padding: 15px 20px !important; font-size: 15px !important; width: 100%; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
}