/*
Theme Name: チケミーキャリア
Template: sango-theme
Description: SANGOの子テーマ。エンタメ業界特化の転職メディア向けカスタムデザイン。
Version: 4.0.0
*/

/* ========== CSS変数 ========== */
:root {
  --brand: #FAF61E;
  --brand-dark: #e0dd0a;
  --accent: #E06B18;
  --text: #1a1e2c;
  --text-sub: #5e6b75;
  --bg: #f5f6f8;
  --bg-white: #fff;
  --border: #e0e3e8;
  --link: #d46010;
  --radius: 5px;
}

/* ========== Base ========== */
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }

/* ========== Header ========== */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 100;
}
.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
  color: var(--text); text-decoration: none;
}
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--text-sub); font-size: 0.8rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.is-current { color: var(--text); font-weight: 700; }
.menu-btn {
  display: none;
  background: none; border: none; font-size: 1.4rem;
  color: var(--text); cursor: pointer; padding: 6px;
  line-height: 1;
}

/* ========== Mobile Drawer ========== */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
}
.drawer-overlay.is-open { display: block; }
.drawer {
  position: fixed; top: 0; right: -280px;
  width: 260px; height: 100%;
  background: var(--bg-white);
  z-index: 201;
  transition: right 0.25s ease;
  padding: 20px 0;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  overflow-y: auto;
}
.drawer.is-open { right: 0; }
.drawer-close {
  display: block; background: none; border: none;
  font-size: 1.5rem; color: var(--text-sub);
  cursor: pointer; padding: 4px 20px; margin-bottom: 8px;
}
.drawer a {
  display: block; padding: 12px 24px;
  font-size: 0.88rem; color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 500; text-decoration: none;
}
.drawer a:hover { background: var(--bg); color: var(--link); }
.drawer-section-label {
  padding: 10px 24px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.drawer-count {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-sub);
  margin-left: 4px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.74rem;
  color: var(--text-sub);
}
.breadcrumb a { color: var(--text-sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); }

/* ========== Layout ========== */
.page { padding: 0 20px 60px; }
.layout { max-width: 1060px; margin: 0 auto; }
.layout--narrow { max-width: 780px; margin: 0 auto; }
.layout--article { max-width: 1060px; margin: 0 auto; display: flex; gap: 28px; align-items: flex-start; }
.main { flex: 1; min-width: 0; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* ========== Article ========== */
.article {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px 28px 40px;
}
.article-cat {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-white);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.article h1 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}
.article-meta {
  font-size: 0.76rem;
  color: var(--text-sub);
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-thumb {
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.article-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 auto;
}
.article p {
  margin-bottom: 16px;
  line-height: 1.85;
  font-size: 0.95rem;
}

/* ========== Author Box ========== */
.author-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-box-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.65rem;
  color: var(--accent);
  overflow: hidden;
}
.author-box-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-box-name { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.author-box-role { font-size: 0.72rem; color: var(--text-sub); margin-bottom: 6px; }
.author-box-desc { font-size: 0.82rem; color: var(--text-sub); line-height: 1.7; margin-bottom: 8px; }
.author-box-link { font-size: 0.82rem; font-weight: 600; color: var(--link); }
.author-box-link:hover { text-decoration: underline; }

/* ========== Related Posts ========== */
.related-posts {
  margin-top: 32px;
}
.related-posts-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-posts-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, transform 0.15s;
  display: block;
}
.related-posts-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); transform: translateY(-2px); }
.related-posts-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e2e4e8;
  overflow: hidden;
}
.related-posts-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-posts-body { padding: 10px 12px; }
.related-posts-card-title { font-size: 0.82rem; font-weight: 600; line-height: 1.5; }

/* ========== TOC ========== */
.toc {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.toc summary {
  font-size: 0.92rem;
  font-weight: 700;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after {
  content: "\25BC";
  font-size: 0.6rem;
  color: var(--text-sub);
  transition: transform 0.2s;
}
.toc[open] summary::after { transform: rotate(180deg); }
.toc-body { padding: 0 18px 16px; }
.toc ol { padding-left: 20px; margin: 0; }
.toc > .toc-body > ol > li {
  font-size: 0.82rem;
  line-height: 2;
  color: var(--link);
  font-weight: 600;
}
.toc ol ol { padding-left: 18px; margin: 2px 0 4px; }
.toc ol ol li {
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--text-sub);
  font-weight: 400;
}
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ========== H2 ========== */
.article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 36px 0 14px;
  padding: 11px 14px;
  background: #16213e;
  color: var(--bg-white);
  border-radius: 4px;
  border-left: 4px solid var(--brand);
  line-height: 1.5;
}

/* ========== H3 ========== */
.article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

/* ========== Table ========== */
.tbl-wrap { overflow-x: auto; margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
thead th {
  background: #16213e;
  color: var(--bg-white);
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}
tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:hover { background: #fafafa; }
.badge {
  display: inline-block;
  background: var(--brand);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 4px;
}

/* ========== Internal link card ========== */
.related-link {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
.related-link:hover { border-color: var(--link); background: #fff8f0; }
.related-link::before { content: "\25B6 "; font-size: 0.7rem; }

/* ============================================================
   Front Page
   ============================================================ */

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #5ba3d9 0%, #3d8bc4 40%, #2e7ab5 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 920px; margin: 0 auto;
  padding: 72px 20px; width: 100%;
}
.hero-label {
  display: inline-block;
  background: var(--brand); color: var(--accent);
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 3px;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff; font-size: 2rem; font-weight: 800;
  line-height: 1.45; margin-bottom: 14px; max-width: 540px;
}
.hero-desc {
  color: rgba(255,255,255,0.8); font-size: 0.95rem;
  line-height: 1.7; margin-bottom: 32px; max-width: 480px;
}
.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: var(--brand); color: var(--accent);
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  border: 2px solid var(--brand); transition: background 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--accent); }
.btn-ghost {
  display: inline-block;
  background: transparent; color: #fff;
  padding: 14px 32px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.4); transition: border-color 0.15s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.8); color: #fff; }

/* Sections */
.section { padding: 32px 0; border-top: 1px solid var(--border); }
.section:first-child { padding-top: 36px; border-top: none; }
.section-head { font-size: 1.05rem; font-weight: 800; margin-bottom: 18px; }

/* Category Grid */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-btn {
  display: block; text-align: center;
  padding: 12px 8px 10px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  color: var(--text); background: var(--bg-white);
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.cat-btn:hover { border-color: var(--brand); background: #fffef0; color: var(--text); }
.cat-btn .cat-count {
  display: block; font-size: 0.65rem; font-weight: 400;
  color: var(--text-sub); margin-top: 2px;
}

/* Service Grid (top page agents) */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card-top {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; gap: 12px; align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none; color: var(--text);
}
.service-card-top:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); transform: translateY(-2px); }
.service-icon-top {
  width: 48px; height: 48px;
  background: var(--bg); border-radius: 4px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #9ca3af;
}
.service-name-top { font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.service-desc-top { font-size: 0.72rem; color: var(--text-sub); line-height: 1.5; }
.section-more {
  display: block; text-align: center; margin-top: 14px;
  font-size: 0.82rem; color: var(--text-sub); text-decoration: none;
}
.section-more:hover { color: var(--text); }

/* Link Grid (job types) */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.link-item {
  display: block; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.82rem; transition: background 0.15s;
  text-decoration: none; color: var(--text);
}
.link-item:hover { background: var(--bg); }
.link-item::before { content: "\203A "; color: var(--text-sub); }

/* New Articles */
.new-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.new-main {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s;
  text-decoration: none; color: var(--text); display: block;
}
.new-main:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.new-main-img {
  background: #e2e4e8; overflow: hidden;
}
.new-main-img img { width: 100%; height: auto; display: block; }
.new-main-body { padding: 14px 16px 0; }
.new-main-cat { font-size: 0.68rem; color: var(--text-sub); font-weight: 600; margin-bottom: 4px; }
.new-main-title { font-size: 0.95rem; font-weight: 700; line-height: 1.5; margin-bottom: 2px; }
.new-main-date { font-size: 0.68rem; color: #b0b5bd; line-height: 1; }
.new-list { display: flex; flex-direction: column; gap: 0; }
.new-list-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start; transition: background 0.15s;
  text-decoration: none; color: var(--text);
}
.new-list-item:first-child { padding-top: 0; }
.new-list-item:last-child { border-bottom: none; }
.new-list-img {
  width: 160px; height: 107px; background: #e8eaed;
  border-radius: 3px; flex-shrink: 0; overflow: hidden;
}
.new-list-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.new-list-body { flex: 1; min-width: 0; }
.new-list-date { font-size: 0.68rem; color: #b0b5bd; margin-bottom: 2px; }
.new-list-title { font-size: 0.9rem; font-weight: 600; line-height: 1.5; }

/* Popular Articles */
.popular-list { list-style: none; counter-reset: pop; }
.popular-item {
  counter-increment: pop;
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start; transition: background 0.15s;
}
.popular-item:last-child { border-bottom: none; }
.popular-num {
  width: 28px; height: 28px;
  background: var(--bg); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  color: var(--text-sub); flex-shrink: 0; margin-top: 1px;
}
.popular-item:nth-child(-n+3) .popular-num {
  background: var(--brand); color: var(--accent);
}
.popular-thumb {
  width: 200px; background: #e8eaed;
  border-radius: 3px; flex-shrink: 0; overflow: hidden;
}
.popular-thumb img { width: 100%; height: auto; display: block; }
.popular-body {
  flex: 1; min-width: 0;
  text-decoration: none; color: var(--text);
}
.popular-cat { font-size: 0.65rem; color: var(--text-sub); margin-bottom: 2px; }
.popular-title { font-size: 0.85rem; font-weight: 600; line-height: 1.5; }

/* About (top page) */
.about-top { padding: 32px 0; border-top: 1px solid var(--border); }
.about-top-inner {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; display: flex; gap: 20px; align-items: flex-start;
}
.about-top-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.65rem; color: var(--accent);
}
.about-top-body { flex: 1; }
.about-top-name { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.about-top-role { font-size: 0.72rem; color: var(--text-sub); margin-bottom: 8px; }
.about-top-text { font-size: 0.82rem; color: var(--text-sub); line-height: 1.7; }
.about-top-text p { margin-bottom: 6px; }
.about-top-text p:last-child { margin-bottom: 0; }
.about-top-link {
  display: inline-block; margin-top: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--link);
}
.about-top-link:hover { text-decoration: underline; }
.about-top-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ============================================================
   Archive / Category Page
   ============================================================ */
.archive-header { margin-bottom: 28px; }
.archive-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; text-align: center; }
.archive-desc { display: none; }
.archive-count { font-size: 0.76rem; color: var(--text-sub); margin-top: 4px; }

/* Sub-category tabs */
.sub-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.sub-cat {
  display: inline-block; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-sub); text-decoration: none; transition: all 0.15s;
}
.sub-cat:hover { border-color: var(--accent); color: var(--accent); }
.sub-cat.is-active { background: var(--accent); color: var(--bg-white); border-color: var(--accent); }
.sub-cat-count { font-size: 0.65rem; font-weight: 400; margin-left: 4px; opacity: 0.7; }

/* Card Grid */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  text-decoration: none; color: var(--text); display: block;
}
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); transform: translateY(-2px); }
.card-thumb {
  width: 100%; aspect-ratio: 16 / 9;
  background: #e2e4e8; position: relative;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px; }
.card-cat {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  color: var(--accent); background: var(--brand);
  padding: 2px 8px; border-radius: 2px; margin-bottom: 8px;
}
.card-title { font-size: 0.9rem; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.card-excerpt {
  font-size: 0.76rem; color: var(--text-sub); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-date { font-size: 0.68rem; color: #b0b5bd; margin-top: 8px; }

/* Pagination */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin: 32px 0;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-sub); text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--bg-white); border-color: var(--accent); }

/* ============================================================
   About Page / Company Page (Fixed Pages)
   ============================================================ */

/* Page Header */
.page-header { margin-bottom: 24px; }
.page-title {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

/* About Hero */
.about-hero {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
  margin-bottom: 24px; text-align: center;
}
.about-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: var(--accent);
  margin: 0 auto 14px;
}
.about-hero-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.about-subtitle { font-size: 0.82rem; color: var(--text-sub); margin-bottom: 16px; }
.about-intro {
  font-size: 0.9rem; color: var(--text-sub); line-height: 1.85;
  max-width: 580px; margin: 0 auto; text-align: left;
}

/* Content Section (shared by about/company) */
.content-section {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 20px;
}
.content-section h2 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.content-section p { margin-bottom: 14px; line-height: 1.85; font-size: 0.92rem; }
.content-section p:last-child { margin-bottom: 0; }

/* Policy List */
.policy-list { list-style: none; counter-reset: policy; }
.policy-item {
  counter-increment: policy; padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 16px; align-items: flex-start;
}
.policy-item:last-child { border-bottom: none; }
.policy-num {
  width: 32px; height: 32px;
  background: var(--accent); color: var(--bg-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}
.policy-body { flex: 1; }
.policy-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.policy-desc { font-size: 0.84rem; color: var(--text-sub); line-height: 1.7; }

/* Member Cards */
.member-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.member-card { background: var(--bg); border-radius: var(--radius); padding: 20px; text-align: center; }
.member-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--border);
  margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #9ca3af; overflow: hidden;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.member-role { font-size: 0.72rem; color: var(--text-sub); margin-bottom: 6px; }
.member-desc { font-size: 0.76rem; color: var(--text-sub); line-height: 1.6; text-align: left; }

/* Recent Articles */
.recent-articles { margin-top: 14px; }
.recent-article {
  display: flex; gap: 14px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.recent-article:last-child { border-bottom: none; }
.recent-article:hover .recent-title { color: var(--link); }
.recent-thumb {
  width: 220px; background: #e2e4e8;
  border-radius: 3px; flex-shrink: 0; overflow: hidden;
}
.recent-thumb img { width: 100%; height: auto; display: block; }
.recent-body { flex: 1; min-width: 0; }
.recent-cat { font-size: 0.65rem; color: var(--text-sub); font-weight: 600; }
.recent-title { font-size: 0.84rem; font-weight: 600; line-height: 1.45; }

/* Company Table */
.company-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.company-table th {
  background: var(--bg); text-align: left; padding: 12px 16px;
  font-weight: 600; white-space: nowrap; width: 130px;
  border-bottom: 1px solid var(--border);
}
.company-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.company-table a { color: var(--link); }
.company-table a:hover { text-decoration: underline; }

/* Service Cards (company page) */
.service-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 14px;
}
.service-card { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.service-card-icon {
  width: 40px; height: 40px; background: var(--brand);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 10px;
}
.service-card-name { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.service-card-desc { font-size: 0.78rem; color: var(--text-sub); line-height: 1.6; }

/* Link Banners (about ↔ company) */
.link-banner {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 28px;
  margin-bottom: 20px; display: flex;
  align-items: center; justify-content: space-between;
  text-decoration: none; color: var(--text); transition: box-shadow 0.2s;
}
.link-banner:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.link-banner-text { font-size: 0.9rem; font-weight: 600; }
.link-banner-sub { font-size: 0.76rem; color: var(--text-sub); margin-top: 2px; }
.link-banner-arrow { font-size: 1.2rem; color: var(--text-sub); flex-shrink: 0; }

/* ============================================================
   404 Page
   ============================================================ */
.error404-content {
  text-align: center;
  padding: 60px 20px 40px;
}
.error404-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.error404-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--brand);
  padding: 40px 20px 20px;
  margin-top: 32px;
}
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 32px; margin-bottom: 28px;
}
.footer-brand-area { min-width: 200px; }
.footer-brand { font-weight: 700; font-size: 0.88rem; margin-bottom: 8px; color: var(--text); }
.footer-desc { font-size: 0.72rem; color: rgba(0,0,0,0.6); max-width: 260px; line-height: 1.7; }
.footer-nav { display: flex; gap: 36px; }
.footer-nav-col { min-width: 100px; }
.footer-nav-col h5 {
  font-size: 0.68rem; color: rgba(0,0,0,0.5); margin-bottom: 8px;
  font-weight: 600; letter-spacing: 0.03em;
}
.footer-nav-col a {
  display: block; font-size: 0.73rem; color: rgba(0,0,0,0.7);
  line-height: 2.2; white-space: nowrap; text-decoration: none;
}
.footer-nav-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1); padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-copy { font-size: 0.65rem; color: rgba(0,0,0,0.4); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 0.65rem; color: rgba(0,0,0,0.4); text-decoration: none; }
.footer-links a:hover { color: rgba(0,0,0,0.7); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  /* Base: 16px minimum for mobile readability (Google recommendation) */
  body { font-size: 16px; }

  .header-inner { height: 48px; padding: 0 16px; }
  .logo { font-size: 0.95rem; min-height: 48px; display: flex; align-items: center; }
  .nav { display: none; }
  .menu-btn { display: block; min-width: 48px; min-height: 48px; font-size: 1.5rem; }
  .page { padding: 0 16px 40px; }

  /* Breadcrumb: tap-friendly links (min 44px touch target) */
  .breadcrumb { font-size: 0.82rem; padding: 8px 0; line-height: 1.4; }
  .breadcrumb a { padding: 10px 4px; display: inline-block; min-height: 44px; line-height: 24px; }

  /* Article */
  .layout--article { flex-direction: column; }
  .article { padding: 24px 18px 32px; }
  .article h1 { font-size: 1.25rem; }
  .article p { font-size: 1rem; line-height: 1.9; }
  .article-meta { font-size: 0.82rem; }
  .article-thumb { max-width: 70%; margin-bottom: 16px; }
  .article h2 { font-size: 1.15rem; padding: 12px 14px; }
  .article h3 { font-size: 1.05rem; }

  /* Author Box */
  .author-box { padding: 18px 16px; gap: 12px; }
  .author-box-icon { width: 44px; height: 44px; }
  .article-cat { font-size: 0.75rem; }
  .author-box-name { font-size: 0.95rem; }
  .author-box-role { font-size: 0.82rem; }
  .author-box-desc { font-size: 0.88rem; }
  .author-box-link { font-size: 0.88rem; min-height: 44px; display: inline-flex; align-items: center; }

  /* Related Posts */
  .related-posts { margin-top: 24px; }
  .related-posts-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-posts-card { display: flex; gap: 12px; }
  .related-posts-thumb { width: 120px; min-height: 68px; aspect-ratio: 16 / 9; flex-shrink: 0; }
  .related-posts-body { display: flex; align-items: center; }
  .related-posts-card-title { font-size: 0.88rem; }

  /* TOC: readable + tap-friendly + H3 hidden on mobile */
  .toc { margin-bottom: 24px; }
  .toc summary { padding: 14px 16px; font-size: 0.95rem; }
  .toc-body { padding: 0 16px 14px; }
  .toc > .toc-body > ol > li {
    font-size: 0.88rem;
    line-height: 1.6;
    padding: 4px 0;
  }
  .toc ol ol {
    display: none; /* H3をモバイルでは非表示 → TOC短縮 */
  }
  .toc a { display: flex; align-items: center; padding: 4px 0; min-height: 44px; }

  /* Table */
  table { font-size: 0.88rem; }
  thead th { font-size: 0.85rem; padding: 10px; }
  tbody td { padding: 10px; }

  /* Internal link card */
  .related-link { font-size: 0.92rem; padding: 14px 16px; min-height: 48px; display: flex; align-items: center; }

  /* Front page */
  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-desc { font-size: 1rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-btn { font-size: 0.88rem; padding: 14px 8px; min-height: 48px; }
  .service-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .link-item { font-size: 0.88rem; padding: 12px 14px; min-height: 48px; }
  .new-articles { grid-template-columns: 1fr; }
  .new-main-title { font-size: 1rem; }
  .new-list-title { font-size: 0.92rem; }
  .popular-thumb { display: none; }
  .popular-title { font-size: 0.92rem; }
  .about-top-inner { flex-direction: column; }
  .about-top-text { font-size: 0.88rem; }

  /* Category */
  .archive-title { font-size: 1.15rem; }
  .sub-cats { gap: 6px; }
  .sub-cat { padding: 8px 14px; font-size: 0.82rem; min-height: 44px; display: inline-flex; align-items: center; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-title { font-size: 0.95rem; }
  .card-excerpt { font-size: 0.82rem; }

  /* About / Company */
  .about-hero { padding: 28px 18px; }
  .about-hero-title { font-size: 1.1rem; }
  .content-section { padding: 22px 18px; }
  .content-section p { font-size: 0.95rem; }
  .member-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .link-banner { padding: 16px 18px; min-height: 48px; }
  .company-table th { padding: 10px 12px; width: 100px; font-size: 0.88rem; }
  .company-table td { padding: 10px 12px; font-size: 0.88rem; }
  .page-title { font-size: 1.1rem; }

  /* 404 */
  .error404-content { padding: 40px 16px 30px; }
  .error404-title { font-size: 1.1rem; }

  /* Footer */
  .footer { padding: 28px 16px 16px; margin-top: 24px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-brand-area { min-width: auto; }
  .footer-brand { font-size: 0.88rem; margin-bottom: 6px; }
  .footer-desc { max-width: 100%; font-size: 0.78rem; }
  .footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
  .footer-nav-col { min-width: auto; }
  .footer-nav-col h5 { font-size: 0.78rem; margin-bottom: 5px; }
  .footer-nav-col a { font-size: 0.82rem; line-height: 2.4; min-height: 44px; display: flex; align-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; }
  .footer-links { gap: 12px; }
  .footer-links a { font-size: 0.72rem; min-height: 44px; display: inline-flex; align-items: center; }
  .footer-copy { font-size: 0.68rem; }
}
