*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }

:root {
  --red:     #E60012;
  --blue:    #0096DC;
  --yellow:  #FFE800;
  --navy:    #1E293B;
  --body:    #334155;
  --sub:     #64748B;
  --border:  #E2E8F0;
  --bg:      #F5F5F5;
  --white:   #FFFFFF;
}

html { scroll-behavior:smooth; }
body { font-family:'Noto Sans JP',sans-serif; color:var(--body); line-height:var(--lh-body); overflow-x:hidden; background:#fff; }

/* ── Hero ─────────────────────────────── */
.hero {
  margin-top:var(--header-height);
  background:#d9c5a8;
  border-bottom:none;
  height:460px;
  min-height:460px;
  position:relative; overflow:visible;
}
.blog-hero-media {
  position:absolute;
  inset:0;
  overflow:hidden;
  z-index:0;
}
.blog-hero-img {
  display:block;
  width:100%;
  max-width:none;
  height:auto;
}
.hero::before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,0) 100%);
  pointer-events:none;
  z-index:1;
}
.page-template-page-blog .hero > .hero-inner { max-width:none; margin:0; position:absolute; inset:0; min-height:0; padding:150px 64px 0; z-index:2; }

.breadcrumb { visibility:visible; display:flex; gap:8px; margin-bottom:18px; }
.breadcrumb a { font-size:var(--font-caption); color:rgba(255,255,255,.75); text-decoration:none; }
.breadcrumb span { font-size:var(--font-caption); color:rgba(255,255,255,.6); }
.breadcrumb .cur { color:#fff; }

.hero-top { display:grid; grid-template-columns:1fr auto; gap:40px; align-items:end; margin-bottom:0; }
.hero-en {
  font-family:'Outfit',sans-serif; font-size:var(--font-label); font-weight:var(--weight-bold);
  letter-spacing:.16em; color:#fff;
  display:flex; align-items:center; gap:12px; margin-bottom:12px;
  text-transform:uppercase; text-shadow:0 1px 8px rgba(0,0,0,.25);
}
.hero-h1 {
  font-family:'Zen Kaku Gothic New',sans-serif;
  font-size:clamp(2.35rem,4vw,3.55rem);
  font-weight:var(--weight-black); color:#fff;
  line-height:1.1; letter-spacing:var(--tracking-none); margin-bottom:16px;
  text-shadow:0 2px 12px rgba(0,0,0,.24);
}
.hero-desc { font-size:var(--font-lead); color:#fff; line-height:1.85; max-width:520px; text-shadow:0 1px 8px rgba(0,0,0,.22); }

/* Tab nav inside hero */
.tab-nav {
  position:absolute; left:0; bottom:-84px;
  display:flex; gap:0; margin-top:0;
  border-bottom:none;
  z-index:3;
}
.tab-nav::before {
  content:'';
  position:absolute;
  left:calc(-1 * var(--blog-tab-offset-left, 0px));
  bottom:-1px;
  width:100vw;
  height:2px;
  background:#CACACA;
  pointer-events:none;
  z-index:0;
}
.tab-btn {
  position:relative;
  z-index:1;
  display:flex; align-items:center; gap:8px;
  min-width:178px; justify-content:center;
  padding:20px 32px; font-size:.9rem; font-weight:var(--weight-semibold);
  color:var(--navy); background:#fff; border:none; cursor:pointer;
  font-family:'Noto Sans JP',sans-serif;
  border-bottom:1px solid #CACACA;
  transition:all .2s; white-space:nowrap;
  border-top:1px solid #CACACA;
  border-left:1px solid #CACACA;
  border-right:none;
}
.tab-btn:first-child { border-radius:10px 0 0 0; overflow:hidden; }
.tab-btn:last-child { border-right:1px solid #CACACA; border-radius:0 10px 0 0; overflow:hidden; }
.tab-btn:hover { color:var(--navy); background:var(--bg); }
.tab-btn.on { color:var(--white); background:#050505; border-color:#050505; font-weight:var(--weight-bold); }
.tab-count {
  font-family:'Outfit',sans-serif; font-size:var(--font-badge); font-weight:var(--weight-bold);
  background:rgba(255,255,255,.2); color:inherit;
  padding:2px 8px; border-radius:99px;
}
.tab-btn:not(.on) .tab-count { background:var(--bg); color:var(--sub); }
.tab-label {
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
}

/* ── Main layout ─────────────────────── */
.main-wrap {
  max-width:1200px; margin:0 auto; padding:140px 40px 280px;
  display:grid; grid-template-columns:1fr 300px; gap:56px; align-items:start;
}

/* ── Article list ────────────────────── */
.articles { }

/* Featured article */
.article-featured {
  border:1px solid var(--border); border-radius:14px; overflow:hidden;
  display:grid; grid-template-columns:430px 1fr;
  margin-bottom:44px;
  transition:box-shadow .3s;
  text-decoration:none; color:inherit;
}
.article-featured:hover { box-shadow:0 12px 40px rgba(0,0,0,.08); }
.pickup-list {
  display:flex; flex-direction:column; gap:40px;
  margin-bottom:54px;
}
.pickup-list .article-featured { margin-bottom:0; }
.feat-thumb {
  aspect-ratio:auto; height:100%; min-height:420px;
  display:flex; align-items:center; justify-content:center;
  font-size:4rem; position:relative;
}
.feat-thumb img,
.article-thumb-sm img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.feat-body { padding:42px 36px; display:flex; flex-direction:column; justify-content:center; }
.feat-label {
  display:inline-flex; align-items:center; gap:6px;
  font-family:'Outfit',sans-serif; font-size:.65rem; font-weight:var(--weight-bold);
  letter-spacing:var(--tracking-label); color:var(--red); margin-bottom:12px;
}
.feat-label::before { content:''; display:block; width:20px; height:2px; background:var(--red); }
.feat-body h2 {
  font-family:'Zen Kaku Gothic New',sans-serif;
  font-size:1.28rem; font-weight:var(--weight-bold); color:var(--navy);
  line-height:1.55; margin-bottom:14px;
}
.feat-body p { font-size:var(--font-body-sm); color:var(--sub); line-height:1.92; margin-bottom:22px; }
.feat-meta { display:flex; align-items:center; gap:12px; }
.article-date { font-family:'Outfit',sans-serif; font-size:.75rem; color:var(--sub); }
.article-cat { font-size:var(--font-badge); font-weight:var(--weight-bold); padding:3px 10px; border-radius:4px; }
.cat-news { background:#FFF1F2; color:var(--red); }
.cat-culture { background:#FFFBEB; color:#B45309; }
body.single-post .article-cat.cat-culture { text-shadow:none !important; }
.cat-recruit { background:#FFF2B8; color:#B45309; }
.cat-info { background:#F8FAFC; color:var(--sub); }

/* Article card list */
.article-list { display:flex; flex-direction:column; gap:0; }
.article-item {
  display:grid; grid-template-columns:120px 1fr;
  gap:20px; align-items:start;
  padding:26px 0; border-bottom:1px solid var(--border);
  text-decoration:none; color:inherit;
  transition:background .2s;
}
.article-item:first-child { border-top:1px solid var(--border); }
.article-item:hover { background:var(--bg); padding-left:12px; padding-right:12px; margin:0 -12px; border-radius:8px; }
.article-item:hover { border-top-color:transparent; border-bottom-color:transparent; }

.article-thumb-sm {
  aspect-ratio:4/3; border-radius:8px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; flex-shrink:0;
}
.thumb-news   { background:linear-gradient(135deg,#fee2e2,#fca5a5); }
.thumb-culture{ background:linear-gradient(135deg,#fef3c7,#fde68a); }
.thumb-recruit{ background:linear-gradient(135deg,#dcfce7,#86efac); }
.thumb-info   { background:linear-gradient(135deg,#f1f5f9,#e2e8f0); }
.article-featured-sample .feat-thumb.thumb-culture { background:url('../img/president.avif') center 38% / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(1) .article-thumb-sm { background:url('../img/voice-01.avif') center center / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(2) .article-thumb-sm { background:url('../img/voice-yamada.avif') center center / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(3) .article-thumb-sm { background:url('../img/voice-mihune.avif') center center / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(4) .article-thumb-sm { background:url('../img/voice-kishikawa.avif') center center / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(5) .article-thumb-sm { background:url('../img/mid-career.avif') center 22% / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(6) .article-thumb-sm { background:url('../img/office-workers.avif') center center / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(7) .article-thumb-sm { background:url('../img/service-maintenance.avif') center center / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(8) .article-thumb-sm { background:url('../img/services-hero-code.avif') center center / cover no-repeat; }
#panel-all .article-list-sample .article-item:nth-child(9) .article-thumb-sm { background:url('../img/blog-hero.avif') center center / cover no-repeat; }

#panel-all .article-list-sample .article-item:nth-child(7) {
  display:block;
  padding:70px 0 36px;
}
#panel-all .article-list-sample .article-item:nth-child(7):hover {
  padding-left:0;
  padding-right:0;
  margin:0;
  background:transparent;
}
#panel-all .article-list-sample .article-item:nth-child(7) .article-thumb-sm {
  width:100%;
  height:440px;
  aspect-ratio:auto;
  border-radius:8px;
  margin-bottom:22px;
  background:
    linear-gradient(135deg, rgba(0,150,220,.72), rgba(255,255,255,.18)),
    url('../img/service-maintenance.avif') center center / cover no-repeat;
}
#panel-all .article-list-sample .article-item:nth-child(7) .article-content h3 {
  font-size:1rem;
  margin-bottom:8px;
}
#panel-all .article-list-sample .article-item:nth-child(7) .article-excerpt {
  max-width:720px;
}

.article-content {}
.article-meta { display:flex; align-items:center; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
.article-content h3 {
  font-family:'Zen Kaku Gothic New',sans-serif;
  font-size:.97rem; font-weight:var(--weight-bold); color:var(--navy);
  line-height:1.5; margin-bottom:4px;
}
.article-excerpt { font-size:var(--font-body-xs); color:var(--sub); line-height:1.7; }

/* Pagination */
.pagination { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:48px; }
.page-btn,
.pagination .page-numbers {
  width:40px; height:40px; border-radius:6px; border:1px solid var(--border);
  background:#fff; display:flex; align-items:center; justify-content:center;
  font-size:var(--font-body-sm); font-weight:var(--weight-semibold); color:var(--sub); cursor:pointer;
  font-family:'Outfit',sans-serif; transition:all .2s;
  text-decoration:none;
}
.page-btn:hover,
.pagination .page-numbers:hover { border-color:var(--navy); color:var(--navy); }
.page-btn.on,
.pagination .page-numbers.current { background:#050505; border-color:#050505; color:#fff; }
.page-btn.arrow,
.pagination .prev,
.pagination .next { font-size:var(--font-button-lg); }

/* ── Sidebar ─────────────────────────── */
.sidebar { position:static; }

.side-block {
  background:#fff; border:1px solid var(--border); border-radius:12px;
  overflow:hidden; margin-bottom:24px;
}
.side-head {
  padding:16px 20px; border-bottom:1px solid var(--border);
  background:var(--bg);
}
.side-head h3 {
  font-family:'Outfit',sans-serif; font-size:.72rem; font-weight:var(--weight-bold);
  letter-spacing:var(--tracking-label); text-transform:uppercase; color:var(--sub);
}
.side-body { padding:20px; }

/* Search */
.search-form { display:flex; gap:0; }
.search-input {
  flex:1; border:1px solid var(--border); border-right:none;
  border-radius:6px 0 0 6px; padding:10px 14px;
  font-size:.85rem; outline:none; font-family:'Noto Sans JP',sans-serif;
  transition:border-color .2s;
}
.search-input:focus { border-color:var(--blue); }
.search-btn {
  background:var(--navy); color:#fff; border:none;
  width:48px; padding:0; border-radius:0 6px 6px 0; cursor:pointer;
  font-size:0; transition:background .2s; position:relative; flex-shrink:0;
}
.search-btn::before {
  content:'';
  position:absolute;
  left:16px;
  top:12px;
  width:12px;
  height:12px;
  border:2px solid #fff;
  border-radius:50%;
}
.search-btn::after {
  content:'';
  position:absolute;
  left:29px;
  top:25px;
  width:9px;
  height:2px;
  background:#fff;
  transform:rotate(45deg);
  transform-origin:left center;
}
.search-btn:hover { background:var(--blue); }

/* Category list in sidebar */
.side-cat-list { list-style:none; }
.side-cat-list li { }
.side-cat-list a {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 0; border-bottom:1px solid var(--border);
  font-size:var(--font-body-sm); color:var(--body); text-decoration:none;
  transition:color .2s;
}
.side-cat-list li:last-child a { border-bottom:none; }
.side-cat-list a:hover { color:var(--red); }
.side-cat-count {
  font-family:'Outfit',sans-serif; font-size:.72rem; font-weight:var(--weight-bold);
  background:var(--bg); color:var(--sub); padding:2px 8px; border-radius:99px;
}
.cat-dot { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:8px; }

/* Popular posts */
.popular-list { list-style:none; }
.popular-item {
  display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--border);
}
.popular-item:last-child { border-bottom:none; }
.popular-num {
  font-family:'Outfit',sans-serif; font-size:1.2rem; font-weight:var(--weight-black);
  color:var(--navy); line-height:var(--lh-tight); flex-shrink:0; width:24px;
}
.popular-item:first-child .popular-num { color:var(--red); }
.popular-item:nth-child(2) .popular-num { color:var(--yellow); }
.popular-item:nth-child(3) .popular-num { color:var(--blue); }
.popular-text h4 { font-size:.83rem; font-weight:var(--weight-semibold); color:var(--navy); line-height:1.5; margin-bottom:3px; }
.popular-text h4 a { color:inherit; text-decoration:none; }
.popular-text h4 a:hover { color:var(--red); }
.popular-text .popular-date { font-size:.72rem; color:var(--sub); }

/* Tags cloud */
.tag-cloud { display:flex; flex-wrap:wrap; gap:8px; }
.tag-link {
  font-size:.75rem; color:var(--sub); background:var(--bg);
  border:1px solid var(--border); padding:4px 12px; border-radius:99px;
  text-decoration:none; transition:all .2s; font-family:'Outfit',sans-serif;
}
.tag-link:hover { background:var(--navy); color:#fff; border-color:var(--navy); }
.tag-link-empty { cursor:default; }
.tag-link-empty:hover { background:var(--bg); color:var(--sub); border-color:var(--border); }

/* Newsletter */
.newsletter-block {
  background:var(--navy); border-radius:12px; padding:24px;
}
.newsletter-block h3 { font-family:'Zen Kaku Gothic New',sans-serif; font-size:var(--font-body); font-weight:var(--weight-bold); color:#fff; margin-bottom:8px; }
.newsletter-block p { font-size:var(--font-body-xs); color:rgba(255,255,255,.55); line-height:1.7; margin-bottom:16px; }
.newsletter-input {
  width:100%; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.08);
  border-radius:6px; padding:10px 14px; font-size:.85rem;
  color:#fff; outline:none; margin-bottom:10px;
  font-family:'Noto Sans JP',sans-serif;
}
.newsletter-input::placeholder { color:rgba(255,255,255,.35); }
.newsletter-btn {
  width:100%; background:var(--red); color:#fff; border:none;
  border-radius:6px; padding:11px; font-size:var(--font-button-sm); font-weight:var(--weight-bold);
  cursor:pointer; font-family:'Noto Sans JP',sans-serif; transition:background .2s;
}
.newsletter-btn:hover { background:#c0000f; }

/* ── hidden panels ───────────────────── */
.tab-panel { display:none; }
.tab-panel.on { display:block; }

/* News list (flat, no thumb) */
.news-list { list-style:none; }
.news-list li { list-style:none; }
.news-item {
  display:flex; align-items:baseline; gap:20px;
  padding:18px 0; border-bottom:1px solid var(--border);
  text-decoration:none; color:inherit; transition:background .2s;
}
.news-list > .news-item:first-child,
.news-list > li:first-child .news-item { border-top:1px solid var(--border); }
.news-item:hover { background:var(--bg); padding-left:12px; padding-right:12px; margin:0 -12px; border-radius:6px; border-color:transparent; }
.news-date { font-family:'Outfit',sans-serif; font-size:var(--font-caption); color:var(--sub); white-space:nowrap; flex-shrink:0; }
.news-cat { font-size:.68rem; font-weight:var(--weight-bold); padding:2px 8px; border-radius:3px; white-space:nowrap; flex-shrink:0; }
.news-title { font-size:.9rem; color:var(--navy); font-weight:var(--weight-medium); line-height:1.55; flex:1; }
.news-item:hover .news-title { color:var(--red); }

/* ── CTA bottom ──────────────────────── */
.cta-section {
  background:#E9E9E9; border-top:none; padding:132px 40px;
}
.cta-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.cta-card {
  background:#fff; border:1px solid var(--border); border-radius:14px;
  min-height:150px; padding:42px 40px; display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.cta-card-text h3 { font-family:'Zen Kaku Gothic New',sans-serif; font-size:1.2rem; font-weight:var(--weight-bold); color:var(--navy); margin-bottom:8px; }
.cta-card-text p { font-size:.85rem; color:var(--sub); line-height:1.7; }
.btn-red-sm {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--red); color:#fff; font-weight:var(--weight-bold); font-size:var(--font-button-sm);
  padding:12px 24px; border-radius:4px; text-decoration:none;
  white-space:nowrap; transition:all .2s; flex-shrink:0;
}
.btn-red-sm:hover { background:#c0000f; transform:translateY(-1px); }
.btn-blue-sm {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--blue); color:#fff; font-weight:var(--weight-bold); font-size:var(--font-button-sm);
  padding:12px 24px; border-radius:4px; text-decoration:none;
  white-space:nowrap; transition:all .2s; flex-shrink:0;
}
.btn-blue-sm:hover { background:#0055aa; transform:translateY(-1px); }

/* ── Footer ──────────────────────────── */
footer { background:var(--navy); padding:64px 0 0; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr 1fr; gap:48px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.07); }
.footer-logo { font-family:'Outfit',sans-serif; font-size:1.4rem; font-weight:var(--weight-black); color:#fff; display:block; margin-bottom:14px; text-decoration:none; letter-spacing:.05em; }
.footer-brand p { font-size:var(--font-ui-sm); color:rgba(255,255,255,.38); line-height:1.8; max-width:240px; }
.footer-nav h4 { font-size:var(--font-label); font-weight:var(--weight-bold); letter-spacing:var(--tracking-label); color:rgba(255,255,255,.4); text-transform:uppercase; margin-bottom:14px; font-family:'Outfit',sans-serif; }
.footer-nav ul { list-style:none; }
.footer-nav li { margin-bottom:9px; }
.footer-nav a { font-size:var(--font-ui-sm); color:rgba(255,255,255,.46); text-decoration:none; transition:color .2s; }
.footer-nav a:hover { color:#fff; }
.footer-btm { padding:20px 0; display:flex; justify-content:space-between; align-items:center; }
.footer-btm p { font-size:.74rem; color:rgba(255,255,255,.24); }
.footer-btm-links { display:flex; gap:24px; }
.footer-btm-links a { font-size:.74rem; color:rgba(255,255,255,.28); text-decoration:none; }

/* ---- モバイル対応（追加） ---- */
@media (max-width: 768px) {
  .hero { margin-top:0; height:auto; min-height:auto; padding:0; }
  .page-template-page-blog .hero > .hero-inner { position:relative; inset:auto; min-height:0; padding:calc(var(--header-height) + 96px) 20px 0; }
  .tab-nav { position:static; margin-top:34px; overflow-x:auto; max-width:100%; }
  .tab-nav::before { content:none; }
  .tab-btn { min-width:0; flex:1 1 0; padding:14px 10px; font-size:var(--font-caption); }
  .tab-btn { height:auto; }
  .tab-count { padding:1px 6px; }
  .main-wrap { grid-template-columns: 1fr !important; padding: 64px 20px 96px; gap: 40px; }
  .article-featured { grid-template-columns: 1fr !important; }
  .feat-thumb { min-height: 220px; height:220px; }
  #panel-all .article-list-sample .article-item:nth-child(7) { padding:38px 0 28px; }
  #panel-all .article-list-sample .article-item:nth-child(7) .article-thumb-sm { height:190px; }
  .article-item { grid-template-columns:96px 1fr; gap:14px; padding:22px 0; }
  .article-thumb-sm { border-radius:6px; }
  .cta-inner { grid-template-columns: 1fr !important; }
  .cta-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (min-width: 769px) and (max-width: 1060px) {
  .main-wrap {
    grid-template-columns:1fr;
    max-width:820px;
    padding-left:40px;
    padding-right:40px;
    gap:56px;
  }
  .sidebar {
    position:static;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:20px;
  }
  .side-block { margin-bottom:0; }
  .article-featured { grid-template-columns:360px 1fr; }
  .feat-thumb { min-height:360px; }
}

/* ===== 決定稿追補 0.5.7：下部の早着とCTAボタン寸法を補正 ===== */
.page-template-page-blog .main-wrap { padding-bottom: 520px; }
.page-template-page-blog .article-featured { margin-bottom: 54px; }
.page-template-page-blog .pickup-list { margin-bottom: 54px; }
.page-template-page-blog .pickup-list .article-featured { margin-bottom: 0; }
.page-template-page-blog .article-item { padding-top: 30px; padding-bottom: 30px; }
.page-template-page-blog #panel-all .article-list-sample .article-item:nth-child(7) { padding-top: 82px; padding-bottom: 48px; }
.page-template-page-blog .pagination { margin-top: 58px; }
.page-template-page-blog .cta-section { padding-top: 134px; padding-bottom: 132px; }
.page-template-page-blog .btn-red-sm,
.page-template-page-blog .btn-blue-sm { min-width: 134px; min-height: 39px; padding: 9px 22px; justify-content: center; }
.page-template-page-blog .btn-blue-sm { min-width: 135px; }

/* ===== 決定稿追補 0.5.19：Blog本文2カラム・大型記事・CTA位置を決定稿へ ===== */
@media (min-width: 769px) {
  .page-template-page-blog .tab-nav {
    --blog-tab-offset-left: 70px;
    left: 6px;
    bottom: -101px;
  }

  .page-template-page-blog .tab-btn {
    flex: 0 0 auto;
    min-width: 0;
    width: 187px;
    height: 72px;
    padding: 0 34px;
    gap: 9px;
    color: #050505;
    font-size: 1.25rem;
    font-weight: var(--weight-bold);
    line-height: var(--lh-tight);
  }

  .page-template-page-blog .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 3px 7px 2px;
    background: #8A8A8A;
    color: #fff;
    font-size: .75rem;
    line-height: var(--lh-tight);
  }

  .page-template-page-blog .tab-btn:not(.on) .tab-count {
    background: #8A8A8A;
    color: #fff;
  }

  .page-template-page-blog .tab-btn.on {
    color: #fff;
    background: #050505;
    border-color: #050505;
  }

  .page-template-page-blog .tab-btn:nth-child(2) {
    width: 185px;
  }

  .page-template-page-blog .tab-btn:nth-child(3) {
    width: 239px;
  }

  .page-template-page-blog .main-wrap {
    max-width: 1200px;
    padding: 180px 0 170px;
    grid-template-columns: 752px 398px;
    gap: 50px;
  }

  .page-template-page-blog .article-featured {
    grid-template-columns: 440px 1fr;
    min-height: 485px;
    margin-bottom: 104px;
  }

  .page-template-page-blog .pickup-list {
    gap: 40px;
    margin-bottom: 104px;
  }

  .page-template-page-blog .pickup-list .article-featured {
    margin-bottom: 0;
  }

  .page-template-page-blog .feat-thumb {
    min-height: 485px;
  }

  .page-template-page-blog #panel-all .article-list-sample .article-item:nth-child(7) {
    padding-top: 120px;
  }

  .page-template-page-blog #panel-all .article-list-sample .article-item:nth-child(7) .article-thumb-sm {
    height: 472px;
  }

  .page-template-page-blog .side-head {
    background: #EAEAEA;
  }

  .page-template-page-blog .cta-section {
    padding: 123px 40px 113px;
  }

  .page-template-page-blog .cta-inner {
    max-width: 1134px;
    gap: 30px;
  }
}

/* ===== 決定稿追補 0.5.31：Blog決定稿のHERO/本文/フッター座標へ再補正 ===== */
@media (min-width: 769px) {
  .page-template-page-blog .hero {
    height: 485px;
    min-height: 485px;
    background-image: none;
  }

  .page-template-page-blog .hero::before {
    background: linear-gradient(90deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,.10) 45%, rgba(0,0,0,0) 100%);
  }

  .page-template-page-blog .hero-inner {
    min-height: 0;
  }

  .page-template-page-blog .article-featured,
  .page-template-page-blog .side-block,
  .page-template-page-blog .cta-card {
    border-radius: 8px;
    border-color: #D9D9D9;
  }

  .page-template-page-blog .article-thumb-sm {
    border-radius: 7px;
  }

  .page-template-page-blog .ast-footer {
    padding-top: 160px;
  }

  .page-template-page-blog .ast-footer .footer-grid {
    padding-bottom: 156px;
  }

  .page-template-page-blog .ast-footer .footer-btm {
    padding-top: 49px;
    padding-bottom: 49px;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .page-template-page-blog .main-wrap {
    max-width: 820px;
    padding-left: 40px;
    padding-right: 40px;
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .page-template-page-blog .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .page-template-page-blog .side-block {
    margin-bottom: 0;
  }
}

/* ===== 0.5.60：モバイル指摘反映 ===== */
@media (max-width: 768px) {
  .page-template-page-blog .main-wrap {
    padding-bottom: 64px;
  }

  .page-template-page-blog .sidebar {
    gap: 16px;
  }

  .page-template-page-blog .side-block {
    margin-bottom: 16px;
  }

  .page-template-page-blog .side-block:last-child {
    margin-bottom: 0;
  }

  .page-template-page-blog .tag-cloud {
    margin-bottom: 0;
  }
}

/* ===== 0.5.61：モバイルHEROをタブ込み100svhへ統一 ===== */
@media (max-width: 768px) {
  .page-template-page-blog .hero {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    background-color: #dfe3e8;
    overflow: hidden;
  }

  .page-template-page-blog .hero::before {
    background: linear-gradient(90deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,0) 100%);
  }

  .page-template-page-blog .blog-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
  }

  .page-template-page-blog .blog-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-template-page-blog .hero > .hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: calc(var(--header-height) + 42px) 20px 0;
  }

  .page-template-page-blog .breadcrumb a,
  .page-template-page-blog .breadcrumb span {
    color: var(--sub);
  }

  .page-template-page-blog .breadcrumb .cur,
  .page-template-page-blog .hero-en {
    color: var(--red);
  }

  .page-template-page-blog .hero-en,
  .page-template-page-blog .hero-h1,
  .page-template-page-blog .hero-desc {
    text-shadow: none;
  }

  .page-template-page-blog .hero-h1 {
    color: var(--navy);
  }

  .page-template-page-blog .hero-desc {
    color: var(--body);
  }

  .page-template-page-blog .tab-nav {
    margin-top: auto;
  }
}

/* HERO動画の白フェードを解除。ブログ既存の黒フェードは維持する。 */
.page-template-page-blog .hero::before {
  background: linear-gradient(90deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,0) 100%);
}
.page-template-page-blog .blog-hero-media::after {
  background: transparent;
}

/* Single post */
.single-post .hero {
  height: 485px;
  min-height: 485px;
  background-image: none;
  overflow: hidden;
}

.single-post .hero::before {
  background: linear-gradient(90deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.14) 45%, rgba(0,0,0,0) 100%);
}

.single-post .blog-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.single-post .blog-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-post .hero > .hero-inner {
  max-width: none;
  margin: 0;
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 150px 64px 0;
  z-index: 2;
}

.single-post .breadcrumb {
  width: 100%;
  max-width: 820px;
}

.single-post .breadcrumb .cur {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.single-post .hero-h1 {
  max-width: 820px;
  font-size: 2.75rem;
  line-height: 1.2;
}

.single-post .hero-desc {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
}

.single-hero-date {
  font-family: 'Outfit', sans-serif;
  font-size: .86rem;
  color: rgba(255,255,255,.88);
}

.single-post .main-wrap {
  max-width: 1200px;
  padding: 88px 0 156px;
  grid-template-columns: 752px 398px;
  gap: 50px;
}

.single-article {
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  padding: 48px;
  min-width: 0;
}

.single-content {
  font-size: 1rem;
  line-height: 2;
  color: var(--body);
}

.single-content > *:first-child {
  margin-top: 0;
}

.single-content p,
.single-content ul,
.single-content ol,
.single-content figure,
.single-content blockquote {
  margin-bottom: 1.7em;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--navy);
  line-height: 1.45;
  margin: 2.2em 0 .85em;
}

.single-content h2 {
  font-size: 1.55rem;
  font-weight: var(--weight-black);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.single-content h3 {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
}

.single-content h4 {
  font-size: 1.08rem;
  font-weight: var(--weight-bold);
}

.single-content ul,
.single-content ol {
  padding-left: 1.4em;
}

.single-content li {
  margin-bottom: .45em;
}

.single-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.single-content blockquote {
  border-left: 4px solid var(--blue);
  background: var(--bg);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  color: var(--navy);
}

.single-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.single-nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s, background .2s;
}

.single-nav-link:hover {
  border-color: var(--navy);
  background: var(--bg);
}

.single-nav-next {
  text-align: right;
  align-items: flex-end;
}

.single-nav-kicker {
  font-size: .76rem;
  font-weight: var(--weight-bold);
  color: var(--sub);
}

.single-nav-title {
  font-size: .95rem;
  font-weight: var(--weight-bold);
  line-height: 1.55;
  color: var(--navy);
}

.single-nav-spacer {
  display: block;
}

@media (min-width: 769px) and (max-width: 1280px) {
  .single-post .main-wrap {
    max-width: 820px;
    padding-left: 40px;
    padding-right: 40px;
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .single-post .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .single-post .side-block {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .single-post .hero {
    height: 72vh;
    height: 72svh;
    min-height: 520px;
    background-color: #dfe3e8;
    overflow: hidden;
  }

  .single-post .hero > .hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: calc(var(--header-height) + 42px) 20px 0;
  }

  .single-post .breadcrumb {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .single-post .breadcrumb .cur {
    max-width: 100%;
    white-space: normal;
  }

  .single-post .hero-h1 {
    max-width: 100%;
    font-size: 2rem;
    line-height: 1.28;
  }

  .single-post .hero-desc {
    flex-wrap: wrap;
  }

  .single-post .main-wrap {
    padding: 56px 20px 88px;
  }

  .single-article {
    padding: 28px 22px;
  }

  .single-post-nav {
    grid-template-columns: 1fr;
  }

  .single-nav-spacer {
    display: none;
  }

  .single-nav-next {
    text-align: left;
    align-items: flex-start;
  }
}

/* 0.5.92: Mobile blog hero vertical centering and tab label wrapping */
@media (max-width: 768px) {
  .page-template-page-blog .breadcrumb {
    justify-content: flex-start;
    margin-top: auto;
    text-align: left;
    width: 100%;
  }

  .page-template-page-blog .hero-top {
    display: block;
    width: 100%;
    text-align: left;
  }

  .page-template-page-blog .hero-top > div {
    display: block;
  }

  .page-template-page-blog .hero-en {
    justify-content: flex-start;
  }

  .page-template-page-blog .hero-desc {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-template-page-blog .tab-nav {
    margin-top: auto;
  }

  .page-template-page-blog .tab-label-news {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.12;
  }

  .page-template-page-blog .tab-count {
    flex: 0 0 auto;
  }
}

/* 0.5.131: Compact the blog index HERO without clipping the breadcrumb. */
@media (max-width: 768px) {
  .page-template-page-blog .hero {
    height: 380px;
    min-height: 380px;
  }

  .page-template-page-blog .hero > .hero-inner {
    padding: 56px 20px 0;
  }
}

/* 0.5.154: Mobile HERO typography and page-specific vertical placement. */
@media (max-width: 768px) {
  .page-template-page-blog .hero > .hero-inner {
    display: flex;
    flex-direction: column;
    padding: var(--header-height) 20px 0 !important;
  }

  .page-template-page-blog .hero-halftone-target {
    width: 100%;
    margin: auto 0 !important;
  }

  .page-template-page-blog .breadcrumb {
    margin-top: 0 !important;
  }

  .page-template-page-blog .tab-nav {
    margin-top: 0 !important;
  }

  .page-template-page-blog .hero-h1,
  .single-post .hero-h1 {
    font-size: 26px !important;
  }

  .single-post .hero > .hero-inner {
    justify-content: flex-end;
    padding-bottom: 24px !important;
  }
}
