/**
 * Cebridge Blog Theme - Main CSS
 * Based on CEBRIDGE FAQ design system (Kokyu-inspired).
 * Tailwind CDN handles utilities; this file covers structural/component styles.
 */

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
  --color_main: #3567bf;
  --color_text: #333;
  --color_bg: #fdfdfd;
  --color_link: #0284ff;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;
  color: var(--color_text);
  background: var(--color_bg);
  letter-spacing: 0.02em;
  line-height: 1.8;
  margin: 0;
}
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
h1, h2, h3, h4 { letter-spacing: 0.04em; }
a { color: var(--color_link); text-decoration: none; }
a:hover { color: var(--color_main); }
img { max-width: 100%; height: auto; }

/* ============================================================
   Header (from FAQ base.html.j2)
   ============================================================ */
/* 旧 l-header 実寸: inner pad 0 47px / 全高93px(upper 59+mt5+mb5 + lower 24) */
.site-header { background: var(--color_bg); z-index: 100; }
.site-header__inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 47px; }
.site-header__logo img { height: 40px; width: auto; }
.site-header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.header-nav-upper { display: flex; gap: 8px; margin: 5px 0; padding: 10px 0; }
.header-nav-upper a { display: inline-block; padding: 10px 20px; border-radius: 30px; font-size: 12px; font-weight: 800; color: #fff; text-decoration: none; transition: opacity .2s; line-height: 1.55; }
.header-nav-upper a:hover { opacity: .85; text-decoration: none; }
.header-nav-upper .btn-counseling { background: var(--color_main); }
.header-nav-upper .btn-line { background: #04ad04; }
.header-nav-lower { display: flex; gap: 0; }
.header-nav-lower a { display: block; padding: 0 12px 10px; font-size: 16px; font-weight: 500; line-height: 0.875; color: var(--color_text); text-decoration: none; transition: color .2s; white-space: nowrap; }
.header-nav-lower a:hover { color: var(--color_main); }

/* Mobile hamburger */
button.sp-menu-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: none; border: none; }
.sp-menu-btn span { display: block; width: 22px; height: 2px; background: var(--color_text); transition: transform .3s; }

/* Mobile menu overlay */
.sp-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; }
.sp-menu-overlay.active { display: block; }
.sp-menu-panel { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: #fff; z-index: 201; transition: right .3s; overflow-y: auto; padding: 20px; }
.sp-menu-panel.active { right: 0; }
.sp-menu-panel .close-btn { display: block; margin-left: auto; margin-bottom: 16px; cursor: pointer; font-size: 24px; color: #666; background: none; border: none; padding: 0; line-height: 1; }

/* Visually hidden text for screen readers / crawlers */
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sp-menu-panel nav a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; font-size: 14px; color: var(--color_text); text-decoration: none; }
.sp-menu-panel nav a:hover { color: var(--color_main); }
.sp-menu-panel .sp-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.sp-menu-panel .sp-cta a { display: block; text-align: center; padding: 12px; border-radius: 30px; font-size: 14px; font-weight: 700; color: #fff; text-decoration: none; }

@media (max-width: 959px) {
  .site-header__inner { height: 76px; } /* 旧SP実測76px */
  .site-header__logo img { height: 30px; }
  .site-header__right { display: none; }
  button.sp-menu-btn { display: flex; }
}

/* ============================================================
   Breadcrumb
   ============================================================ */
/* 旧実寸: 白背景・ヘッダーとの間20px・fs12・全幅で左インデント150px(全ページ共通) */
.breadcrumb-wrap { background: none; margin-top: 20px; }
.breadcrumb { margin: 0; padding: 12px 0 8px 150px; font-size: 12px; color: #999; letter-spacing: 0.01em; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: var(--color_main); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: ">"; margin: 0 0.6em; color: #999; }
.breadcrumb li[aria-current] { color: #555; }

@media (max-width: 959px) {
  .breadcrumb { padding: 12px 20px 8px; } /* 旧SP実測: 12/20/8、ヘッダー下20pxは共通 */
}

/* ============================================================
   Layout (Blog)
   ============================================================ */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
}
.content-area { min-width: 0; }
.sidebar { min-width: 0; }

/* ============================================================
   Kokyu-inspired Components (from FAQ)
   ============================================================ */
.k-card { background: white; border-radius: 1rem; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; transition: all .2s; }
.k-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.k-card-accent { border-left: 4px solid var(--color_main); }
.k-icon-box { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.k-badge { display: inline-block; padding: 2px 8px; font-size: 11px; border-radius: 9999px; font-weight: 700; }
.k-section-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.k-section-title .k-bar { width: 4px; height: 1.25rem; border-radius: 9999px; background: var(--color_main); }
.k-section-title h2 { font-size: 1.1rem; font-weight: 700; color: #1e293b; }

/* ============================================================
   Post Card Grid (Archive/Home)
   ============================================================ */
.post-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-card {
  padding: 0;
  overflow: hidden;
}

.post-card__thumbnail {
  aspect-ratio: 520 / 300;
  overflow: hidden;
  background: #e5e7eb;
  display: block;
}
.post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-card__thumbnail img {
  transform: scale(1.03);
}

.post-card__body {
  padding: 16px;
}

.post-card__category {
  display: inline-block;
  background: var(--color_main);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.post-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
}
.post-card__title a { color: var(--color_text); text-decoration: none; }
.post-card__title a:hover { color: var(--color_main); }

.post-card__date { font-size: 0.8rem; color: #94a3b8; }

/* ============================================================
   Single Post
   ============================================================ */
.single-post__header { margin-bottom: 24px; }

.single-post__title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 12px 0;
}

.single-post__meta {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  gap: 16px;
}

.single-post__eyecatch {
  margin-bottom: 32px;
  border-radius: 1rem;
  overflow: hidden;
}

.single-post__content {
  background: #fff;
  border-radius: 1rem;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  line-height: 1.9;
}

/* Post content typography */
.single-post__content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2em 0 1em;
  padding: 12px 16px;
  background: #f1f5f9;
  border-left: 4px solid var(--color_main);
  border-radius: 0 0.5rem 0.5rem 0;
}

.single-post__content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.single-post__content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.2em 0 0.6em;
}

.single-post__content p { margin-bottom: 1.5em; }

.single-post__content a { color: var(--color_link); text-decoration: underline; }
.single-post__content a:hover { color: var(--color_main); }

.single-post__content ul,
.single-post__content ol { margin-bottom: 1.5em; padding-left: 1.5em; }
.single-post__content li { margin-bottom: 0.5em; }

.single-post__content blockquote {
  border-left: 4px solid var(--color_main);
  padding: 16px 20px;
  margin: 1.5em 0;
  background: #f8fafc;
  border-radius: 0 0.75rem 0.75rem 0;
}

.single-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}
.single-post__content th,
.single-post__content td { padding: 10px 12px; border: 1px solid #e5e7eb; text-align: left; }
.single-post__content th { background: #f1f5f9; font-weight: 600; }

.single-post__content figure { margin: 1.5em 0; }
.single-post__content figcaption { font-size: 0.82rem; color: #64748b; text-align: center; margin-top: 8px; }
.single-post__content iframe { max-width: 100%; }

/* Cebridge CTA Banner (IMG_3834) */
.single-post__content .wp-block-image img[alt*="セブリッジ"],
.single-post__content .wp-block-image img[alt*="バナー"] {
  max-width: 375px;
  margin: 0 auto;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
}
.single-post__content .wp-block-image:has(img[alt*="セブリッジ"]),
.single-post__content .wp-block-image:has(img[alt*="バナー"]) {
  text-align: center;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination { margin-top: 32px; text-align: center; }
.pagination .screen-reader-text { display: none; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination a,
.pagination span.current {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 0.5rem; font-size: 0.9rem; font-weight: 600;
}
.pagination a { background: #fff; color: var(--color_text); border: 1px solid #e2e8f0; text-decoration: none; }
.pagination a:hover { background: var(--color_main); color: #fff; border-color: var(--color_main); }
.pagination span.current { background: var(--color_main); color: #fff; }

/* ============================================================
   Widget / Sidebar
   ============================================================ */
.widget {
  background: #fff;
  border-radius: 1rem;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color_main);
}

/* ============================================================
   Magazine Home
   ============================================================ */
.magazine-home {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ============================================================
   Tailwind Utility Replacements (CDN eliminated for performance)
   ============================================================ */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-3\.5 { gap: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-slate-400 { color: #94a3b8; }
.text-slate-900 { color: #0f172a; }
.text-white { color: #fff; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-violet-50 { background-color: #f5f3ff; }
.text-blue-600 { color: #2563eb; }
.text-amber-600 { color: #d97706; }
.text-emerald-600 { color: #059669; }
.text-violet-600 { color: #7c3aed; }
.transition-colors { transition-property: color, background-color; transition-duration: 0.2s; }
.transition-transform { transition-property: transform; transition-duration: 0.2s; }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:text-slate-700 { color: #334155; }
.group:hover .group-hover\:bg-blue-500 { background-color: #3b82f6; }
.group:hover .group-hover\:bg-amber-500 { background-color: #f59e0b; }
.group:hover .group-hover\:bg-emerald-500 { background-color: #10b981; }
.group:hover .group-hover\:bg-violet-500 { background-color: #8b5cf6; }
.active\:scale-\[0\.98\]:active { transform: scale(0.98); }
@media (max-width: 639px) { .sm\:hidden { display: none; } }

/* Blog Hero Banner (FAQ-style) */
.blog-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3567bf 0%, #5d93d8 40%, #7ab3e8 70%, #a8d4f5 100%);
}
.blog-hero__content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  text-align: center;
}
.blog-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.3);
}
.blog-hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.blog-hero__desc {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}
.blog-hero__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.blog-hero__circle--1 { width: 192px; height: 192px; top: -30px; right: 10%; animation: heroFloat1 8s ease-in-out infinite; }
.blog-hero__circle--2 { width: 128px; height: 128px; top: 20%; right: 30%; animation: heroFloat2 10s ease-in-out infinite; }
.blog-hero__circle--3 { width: 160px; height: 160px; bottom: -20px; left: 5%; animation: heroFloat3 12s ease-in-out infinite; }
.blog-hero__circle--4 { width: 80px; height: 80px; top: 40%; left: 15%; animation: heroFloat1 7s ease-in-out infinite; }

@keyframes heroFloat1 { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-18px) translateX(8px); } }
@keyframes heroFloat2 { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(14px) translateX(-10px); } }
@keyframes heroFloat3 { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-12px) translateX(-6px); } }

@media (max-width: 768px) {
  .blog-hero__content { padding: 32px 20px 48px; }
  .blog-hero__title { font-size: 1.4rem; }
}

/* Category Grid (overlapping hero) */
.blog-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -24px;
  position: relative;
  z-index: 10;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .blog-category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero Article (commented out) */
.magazine-hero {
  margin: 24px 0;
  border-radius: 1rem;
  overflow: hidden;
}
.magazine-hero__link {
  display: block;
  position: relative;
  text-decoration: none;
  color: #fff;
}
.magazine-hero__image {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #1e293b;
}
.magazine-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.magazine-hero__link:hover .magazine-hero__image img {
  transform: scale(1.03);
}
.magazine-hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a5f 0%, #3567bf 100%);
}
.magazine-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.magazine-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 40px;
  z-index: 1;
}
.magazine-hero__category {
  display: inline-block;
  background: var(--color_main);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.magazine-hero__title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.magazine-hero__date {
  font-size: 0.8rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .magazine-hero__image { aspect-ratio: 16 / 9; }
  .magazine-hero__content { padding: 20px; }
  .magazine-hero__title { font-size: 1.15rem; }
}

/* Section */
.magazine-section {
  margin-top: 40px;
}
.magazine-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.magazine-section__count {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-left: 8px;
}
.magazine-section__more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color_main);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.magazine-section__more:hover { text-decoration: underline; }

/* 4-column grid */
.magazine-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.magazine-grid-4 .post-card__title { font-size: 0.85rem; }
.magazine-grid-4 .post-card__thumbnail { aspect-ratio: 3 / 2; }

@media (max-width: 959px) {
  .magazine-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .magazine-grid-4 { grid-template-columns: 1fr; }
}

/* CTA Banner */
.magazine-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, #1e3a5f 0%, #3567bf 100%);
  border-radius: 1rem;
  overflow: hidden;
}
.magazine-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 48px;
}
.magazine-cta__text h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.magazine-cta__text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.magazine-cta__buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.magazine-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}
.magazine-cta__btn:hover { opacity: 0.9; color: #fff; text-decoration: none; }
.magazine-cta__btn:active { transform: scale(0.98); }
.magazine-cta__btn--primary { background: #fff; color: var(--color_main); }
.magazine-cta__btn--primary:hover { color: var(--color_main); }
.magazine-cta__btn--line { background: #04ad04; }

@media (max-width: 768px) {
  .magazine-cta__inner { flex-direction: column; padding: 28px 24px; text-align: center; }
  .magazine-cta__buttons { flex-direction: column; width: 100%; }
  .magazine-cta__btn { width: 100%; }
  .magazine-cta__text h2 { font-size: 1.1rem; }
}

/* ============================================================
   Author Box (E-E-A-T)
   ============================================================ */
.author-box {
  margin-top: 40px;
  padding: 28px;
  background: #f8f9fa;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
}
.author-box__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.author-box__info {
  flex: 1;
  min-width: 0;
}
.author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #e2e8f0;
}
.author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-box__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.author-box__role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color_main);
  background: #eff6ff;
  padding: 2px 10px;
  border-radius: 9999px;
  display: inline-block;
  width: fit-content;
}
.author-box__name {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.04em;
}
.author-box__name a {
  color: var(--color_text);
  text-decoration: none;
}
.author-box__name a:hover {
  color: var(--color_main);
}
.author-box__bio {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #475569;
  margin: 0 0 16px;
}
.author-box__social {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.author-box__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9ecef;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s;
}
.author-box__social-link:hover {
  background: var(--color_main);
  color: #fff;
}

@media (max-width: 768px) {
  .author-box { padding: 20px; }
  .author-box__avatar { width: 64px; height: 64px; }
  .author-box__name { font-size: 1rem; }
}

/* ============================================================
   Related Posts
   ============================================================ */
.related-posts { margin-top: 48px; }

/* ============================================================
   Sidebar - Conversion Optimized
   ============================================================ */
.sidebar > * + * { margin-top: 20px; }

/* CTA Buttons */
.sidebar-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}
.sidebar-cta__btn:hover { opacity: 0.85; color: #fff; text-decoration: none; }
.sidebar-cta__btn:active { transform: scale(0.98); }
.sidebar-cta__btn--primary { background: var(--color_main); margin-bottom: 8px; }
.sidebar-cta__btn--line { background: #04ad04; }

/* Popular Posts */
.sidebar-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: background 0.15s;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { background: #f8fafc; }
.sidebar-post__rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color_main);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.sidebar-post:nth-of-type(1) .sidebar-post__rank { background: #daa520; }
.sidebar-post:nth-of-type(2) .sidebar-post__rank { background: #a8a8a8; }
.sidebar-post:nth-of-type(3) .sidebar-post__rank { background: #cd7f32; }
.sidebar-post__thumb {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
}
.sidebar-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-post__title {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color_text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-post:hover .sidebar-post__title { color: var(--color_main); }

/* Categories */
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-categories > li { border-bottom: 1px solid #f1f5f9; }
.sidebar-categories > li:last-child { border-bottom: none; }
.sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--color_text);
  transition: color 0.15s;
}
.sidebar-categories a:hover { color: var(--color_main); }
.sidebar-cat__count {
  font-size: 0.72rem;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 1px 8px;
  border-radius: 9999px;
  font-weight: 600;
}
.sidebar-categories__children {
  list-style: none;
  padding: 0 0 4px 16px;
  margin: 0;
}
.sidebar-categories__children a {
  padding: 6px 4px;
  font-size: 0.8rem;
}

/* Search */
.sidebar-search {
  display: flex;
  gap: 0;
}
.sidebar-search__input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.sidebar-search__input:focus { border-color: var(--color_main); }
.sidebar-search__btn {
  padding: 10px 14px;
  background: var(--color_main);
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.2s;
}
.sidebar-search__btn:hover { opacity: 0.85; }

/* Sticky CTA (follows scroll) */
.sidebar-sticky {
  position: sticky;
  top: 20px;
}

/* ============================================================
   学校一覧の旧デザイン再現(cebridge.jp/schools/ 実測)
   ============================================================ */

/* ヒーロー(旧 l-topTitleArea -texture-dot: 全幅240px・タイトル白24px中央・ドットオーバーレイ) */
.archive-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.archive-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, .1);
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFAQMAAAC3obSmAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURUdwTAAAAJ8qhFEAAAABdFJOUwBA5thmAAAAEklEQVQI12MwYDBgYGBoYGAAAASKAOH8MS30AAAAAElFTkSuQmCC);
  background-size: 2px;
  opacity: .5;
}

.archive-hero__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

/* 探すボタン(旧 school_kid_category: 青ピル・横スクロール) */
.school_kid_category {
  padding: 40px 0 0;
}

.school_kid_category ul {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.school_kid_category ul li {
  display: inline-block;
  background: #3567BF;
  border-radius: 25px;
  margin-right: 10px;
}

.school_kid_category ul li a {
  display: block;
  color: #fff;
  font-size: 15px;
  padding: 10px 20px;
  text-decoration: none;
}

.school_kid_category ul li a:hover {
  opacity: .85;
}

/* カードグリッド(旧 p-postList -pc-col3: 3列・水平16px・垂直40px) */
ul.school-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px 16px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.school-list__item {
  margin: 0;
}

/* 学校カード(旧 each_school_card 実寸) */
.each_school_card {
  border: solid 1px #D5D5D5;
  box-shadow: 0 3px 6px #D5D5D5;
  border-radius: 10px;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.each_school_card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.each_school_card__link:hover {
  opacity: .85;
}

.each_school_card__thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.each_school_card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.each_school_card__thumb .school_area {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #3567BF;
  color: #fff;
  padding: 5px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.each_school_card__body {
  padding: 10px;
}

.each_school_card__title {
  font-size: 21px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
}

.each_school_card__excerpt {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
  font-weight: 400;
}

.each_school_card__meta {
  font-size: 13px;
  margin: 5px 0 0;
}

/* タグチップ(旧 keywords: 3列・#F4F4F4チップ11px・先頭タグは旧サイト同様非表示) */
.keywords {
  padding: 0 10px 10px;
  margin-top: auto;
}

.keywords ul.school_keywords {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

.keywords ul.school_keywords li {
  width: 30%;
  margin: 5px 5px 0 0;
  background: #F4F4F4;
  border-radius: 20px;
}

.keywords ul.school_keywords li:first-child {
  display: none; /* 旧サイトの表示仕様(a:first-child非表示)を踏襲 */
}

.keywords ul.school_keywords li a {
  display: block;
  color: #3567BF;
  font-size: 11px;
  padding: 5px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* オンライン相談CTA(旧 .online 実測: 全幅300px・タイトル32px・丸ボタン60px) */
.online {
  position: relative;
  min-height: 300px;
  margin-top: 64px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.online__bg {
  position: absolute;
  inset: 0;
}

.online__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.online__container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
}

.online__ttl {
  font-size: 32px;
  color: #333;
  font-weight: 700;
  margin: 0 0 24px;
  line-height: 1.7;
  background: none;
  border: none;
  padding: 0;
}

.online__ttl img {
  display: inline-block;
  vertical-align: baseline;
  margin-right: 4px;
}

.online__ttl strong {
  background: linear-gradient(transparent 60%, #FFF84B 40%);
  padding: 0 4px;
}

.online__button-box {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.online__button {
  display: inline-block;
  line-height: 60px;
  padding: 0 40px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}

.online__button:hover {
  opacity: .85;
}

.button__blue {
  background: #3567BF;
}

.button__green {
  background: #04ad04;
}

/* フィリピン留学診断 CTA(旧 blog_parts 15948。一覧/学校ページ共通のため main.css に配置) */
.school-diagnosis.wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: 32px;
  overflow: hidden;
  margin: 0;
}

.school-diagnosis .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.school-diagnosis .wp-block-cover__background {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 0;
}

.school-diagnosis .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  width: 100%;
}

.school-diagnosis__ttl {
  margin: 0 auto 20px;
}

.school-diagnosis__ttl img {
  width: 375px;
  max-width: 90%;
  height: auto;
  display: inline-block;
}

.school-diagnosis__lead {
  font-size: 20px;
  margin: 0 0 24px;
}

.school-diagnosis__btn a {
  display: inline-block;
  background-color: #04ad04;
  color: #fff;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity .2s;
}

.school-diagnosis__btn a:hover {
  opacity: .85;
}

@media (max-width: 700px) {
  .school-diagnosis.wp-block-cover { min-height: 320px; padding: 24px 14px; }
  .school-diagnosis__lead { font-size: 15px; }
  .archive-hero { height: 160px; }
  .online__ttl { font-size: 24px; }
  .online__button { font-size: 15px; line-height: 48px; padding: 0 24px; }
  .online__button-box { gap: 12px; }
}

/* ============================================================
   Footer(旧 w-footer -col5 実寸再現:
   列1=ロゴ+住所+問い合わせ / 列2-5=•リスト4リンク+黄ボタン / 見出しなし)
   ============================================================ */
.site-footer { background: var(--color_main); color: #fff; }
.site-footer__widgets { max-width: 1280px; margin: 0 auto; padding: 16px 16px 0; display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr 1fr; gap: 20px; }
.site-footer__widgets a { color: #fff; text-decoration: none; font-size: 16px; transition: opacity .2s; }
.site-footer__widgets a:hover { opacity: .8; }
.footer-logo img { width: 300px; height: auto; margin-bottom: 24px; }
.footer-address { font-size: 16px; line-height: 1.6; margin: 0 0 24px; }
.footer-inquiry { display: inline-block; }
.footer-inquiry img { width: 105px; height: auto; }
.footer-menu { list-style: disc; margin: 0 0 24px; padding-left: 1.2em; }
.footer-menu li { margin-bottom: 8px; }
.footer-button { display: block; background: #FFF84B; color: var(--color_main) !important; font-weight: 700; font-size: 14px; text-align: center; padding: 8px; border-radius: 6px; max-width: 200px; } /* 旧実測h36 */
.footer-button:hover { opacity: .85; }
.site-footer__bottom { padding: 160px 20px 80px; text-align: center; }
.copyright { font-size: 12px; color: #fff; letter-spacing: 1px; margin: 0; }

@media (max-width: 767px) {
  .site-footer__widgets { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__bottom { padding: 20px 20px 94px; } /* 旧SP実測 */
}
@media (min-width: 768px) and (max-width: 959px) {
  .site-footer__widgets { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Fixed CTA Bar (from FAQ base.html.j2)
   ============================================================ */
.fixed-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; padding: 10px 16px; display: flex; justify-content: center; gap: 10px; background: rgba(255,255,255,.95); box-shadow: 0 -2px 8px rgba(0,0,0,.1); }
.fixed-cta a { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 30px; font-size: 16px; font-weight: 800; color: #fff; text-decoration: none; transition: opacity .2s; }
.fixed-cta a:hover { opacity: .85; }
.fixed-cta .cta-counseling { background: var(--color_main); }
.fixed-cta .cta-line { background: #04ad04; }

@media (max-width: 767px) {
  .fixed-cta a { padding: 13px 15px; font-size: 11px; flex: 1; }
  .fixed-cta { gap: 6px; }
}
@media (min-width: 768px) {
  .fixed-cta .sp-label { display: none; }
  .fixed-cta .pc-label { display: inline; }
}
@media (max-width: 767px) {
  .fixed-cta .pc-label { display: none; }
  .fixed-cta .sp-label { display: inline; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .site-main { grid-template-columns: 1fr; padding-bottom: 100px; }
  .post-card-grid { grid-template-columns: 1fr; }
  .single-post__title { font-size: 1.3rem; }
  .single-post__content { padding: 20px; border-radius: 0.75rem; }
  .single-post__content h2 { font-size: 1.15rem; }
}

/* ============================================================
   Phase 2 Step 9: extracted inline styles
   ============================================================ */

/* --- home.php (school list top) --- */
.home #content { margin: 0 auto; }
.home .l-mainContent { max-width: 1200px; padding: 0 10px; margin: 0 auto; }
.page-title { font-size: 1.5rem; }
.school_kid_category { margin: 20px 0; }
.school_kid_category ul { display: flex; list-style: none; padding: 0; margin: 0; gap: 10px; flex-wrap: wrap; }
.school_kid_category ul a { display: block; background: #3567BF; color: #fff; padding: 12px 24px; border-radius: 30px; font-weight: 700; font-size: 14px; cursor: pointer; transition: opacity 0.3s; text-decoration: none; }
.school_kid_category ul a:hover { opacity: 0.8; }
@media (max-width: 901px) {
  .home .l-mainContent__inner { margin: 0 5%; }
}

/* --- sidebar CTA / sections --- */
.sidebar-cta--framed { padding: 0; overflow: hidden; border: 2px solid var(--color_main); }
.sidebar-cta__head { background: var(--color_main); padding: 16px 20px; text-align: center; }
.sidebar-cta__head-sub { color: #fff; font-size: 0.85rem; font-weight: 500; margin: 0 0 4px; opacity: 0.9; }
.sidebar-cta__head-title { color: #fff; font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: 0.04em; }
.sidebar-cta__body { padding: 20px; text-align: center; }
.sidebar-cta__desc { font-size: 0.82rem; color: #64748b; line-height: 1.7; margin-bottom: 16px; }
.sidebar-cta__desc strong { color: var(--color_text); }
.sidebar-cta__btn svg { flex-shrink: 0; }
.sidebar-section .k-section-title { margin-bottom: 16px; }
.sidebar-section .k-section-title h3 { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin: 0; }
.sidebar-sticky__card { padding: 16px; text-align: center; border: 1px solid #e2e8f0; }
.sidebar-sticky__lead { font-size: 0.82rem; font-weight: 700; color: var(--color_main); margin: 0 0 12px; }
.sidebar-sticky__note { font-size: 0.72rem; color: #94a3b8; margin: 10px 0 0; }
.sidebar-sticky .sidebar-cta__btn--primary { margin-bottom: 8px; }

/* --- shared placeholders / cards --- */
.thumb-placeholder { width: 100%; height: 100%; background: #e5e7eb; }
.thumb-placeholder--label { display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 0.85rem; }
.post-card__subtitle { font-size: 0.82rem; color: #64748b; margin: 4px 0 0; }
.post-card__fee { font-size: 0.78rem; color: #3567bf; font-weight: 600; margin: 6px 0 0; }

/* --- 404 --- */
.notfound-card { text-align: center; padding: 60px 20px; }
.notfound-code { font-size: 3rem; font-weight: 800; color: #3567bf; margin-bottom: 16px; }
.notfound-text { font-size: 1.1rem; color: #64748b; margin-bottom: 32px; }
.notfound-btn { display: inline-block; padding: 12px 32px; background: #3567bf; color: #fff; border-radius: 30px; font-weight: 700; text-decoration: none; }

/* --- header / footer --- */
.footer-tagline { font-size: 13px; line-height: 1.8; margin-top: 8px; opacity: .85; }
.sp-menu-panel .sp-cta a.sp-cta--counseling { background: var(--color_main); }
.sp-menu-panel .sp-cta a.sp-cta--line { background: #04ad04; }

/* ============================================================
   School archive toolbar (count + sort)
   ============================================================ */
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.archive-count { margin: 0; font-size: 0.9rem; color: #64748b; }
.archive-count strong { color: var(--color_main); font-size: 1.15rem; }
.school-sort { display: flex; align-items: center; gap: 8px; }
.school-sort__label { font-size: 0.82rem; color: #64748b; font-weight: 600; }
.school-sort select { padding: 8px 12px; border: 1px solid #d5d5d5; border-radius: 8px; font-size: 0.85rem; background: #fff; color: var(--color_text); }
.school-sort__btn { padding: 8px 18px; background: var(--color_main); color: #fff; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: opacity .2s; }
.school-sort__btn:hover { opacity: 0.85; }
.archive-empty { color: #64748b; padding: 40px 0; }

/* ============================================================
   Explore hub (axis category pages)
   ============================================================ */
.hub-page { max-width: 1200px; margin: 0 auto; padding: 0 10px 40px; }
.hub-lead { font-size: 0.92rem; color: #64748b; line-height: 1.9; margin: 0 0 20px; max-width: 780px; }

.hub-axis-nav { margin: 0 0 28px; }
.hub-axis-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hub-axis-nav a { display: block; padding: 10px 22px; border: 2px solid var(--color_main); border-radius: 30px; color: var(--color_main); font-size: 0.88rem; font-weight: 700; text-decoration: none; transition: all .2s; }
.hub-axis-nav a:hover { background: var(--color_main); color: #fff; }
.hub-axis-nav li.is-current a { background: var(--color_main); color: #fff; }

.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.hub-card { display: block; background: #fff; border: 1px solid #d5d5d5; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 6px #d5d5d5; text-decoration: none; color: var(--color_text); transition: transform .15s, box-shadow .15s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px #c5c5c5; }
.hub-card__img { aspect-ratio: 52 / 30; background: #e5e7eb; }
.hub-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-card__body { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.hub-card__title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--color_main); }
.hub-card__count { background: #FFF84B; color: var(--color_main); font-size: 0.78rem; font-weight: 800; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }

.hub-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.hub-chips a { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #d5d5d5; border-radius: 30px; padding: 10px 18px; text-decoration: none; color: var(--color_text); font-size: 0.88rem; font-weight: 600; transition: all .2s; }
.hub-chips a:hover { border-color: var(--color_main); color: var(--color_main); }
.hub-chip__count { color: var(--color_main); font-size: 0.75rem; font-weight: 800; }

@media (max-width: 700px) {
  .hub-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hub-card__body { padding: 10px 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hub-card__title { font-size: 0.95rem; }
}

/* ============================================================
   Ranking page
   ============================================================ */
.ranking-page { padding: 0 10px 40px; }
.ranking-block { background: var(--color_main); border-radius: 24px; box-shadow: 8px 10px 0 #FFF84B; padding: 32px; margin: 48px 0 64px; scroll-margin-top: 20px; }
.ranking-block__head { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.ranking-block__badge { width: 110px; height: auto; flex-shrink: 0; }
.ranking-block__title { color: #fff; font-size: 1.5rem; margin: 0 0 6px; }
.ranking-block__lead { color: #fff; opacity: .9; font-size: 0.88rem; margin: 0; line-height: 1.7; }
.ranking-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ranking-card { position: relative; display: block; background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--color_text); transition: transform .15s; }
.ranking-card:hover { transform: translateY(-3px); }
.ranking-card__no { position: absolute; top: 0; left: 0; z-index: 2; background: #FFF84B; color: var(--color_main); font-weight: 800; font-size: 0.9rem; padding: 6px 14px; border-radius: 0 0 12px 0; }
.ranking-card__no--1 { background: #ffd700; }
.ranking-card__no--2 { background: #e3e6ea; }
.ranking-card__no--3 { background: #f0c8a0; }
.ranking-card__img { position: relative; aspect-ratio: 52 / 30; background: #e5e7eb; }
.ranking-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ranking-card__area { position: absolute; bottom: 0; right: 0; background: #FFF84B; color: var(--color_main); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; }
.ranking-card__body { padding: 14px 16px 18px; }
.ranking-card__name { font-size: 1.02rem; color: var(--color_main); margin: 0 0 8px; }
.ranking-card__sub { display: block; font-size: 0.75rem; color: #64748b; font-weight: 400; margin-top: 2px; }
.ranking-card__good { font-size: 0.82rem; line-height: 1.7; color: #333; margin: 0 0 8px; }
.ranking-card__fee { font-size: 0.8rem; color: var(--color_main); font-weight: 700; margin: 0; }
@media (max-width: 800px) {
  .ranking-block { padding: 20px 14px; border-radius: 16px; box-shadow: 5px 6px 0 #FFF84B; }
  .ranking-block__head { gap: 12px; }
  .ranking-block__badge { width: 72px; }
  .ranking-block__title { font-size: 1.15rem; }
  .ranking-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   フッター前タグリンク集(旧 before_footer ウィジェットの再現)
   ============================================================ */
.footer-tag-links {
  background: #fdfdfd;
  padding: 32px 0 40px;
}

.footer-tag-links .l-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-tag-links__group {
  margin-bottom: 24px;
}

.footer-tag-links .c-widget__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color_text);
  margin-bottom: 12px;
}

.footer-tag-links__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-tag-links__list li {
  border-right: 1px solid #d5d5d5;
}

.footer-tag-links__list li:last-child {
  border-right: none;
}

.footer-tag-links__list a {
  display: block;
  padding: 2px 16px;
  font-size: 0.85rem;
  color: var(--color_main);
  text-decoration: underline;
}

.footer-tag-links__list li:first-child a {
  padding-left: 0;
}
