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

/* ── VARIABLES ── */
:root {
  --white:     #FFFFFF;
  --bg:        #F7F8FA;
  --text:      #1A1A2E;
  --sub:       #666666;
  --muted:     #999999;
  --border:    #E5E5E5;
  --navy:      #2B5EAB;
  --teal:      #4ECDC4;
  --purple:    #7C3AED;
  --orange:    #F97316;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --radius:    4px;
  --wrap:      1200px;
}

/* ── BODY ── */
body { font-family: 'Noto Sans JP','Inter',sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }

/* ── HEADER ── */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; height: 100px; display: flex; align-items: center; gap: 0; }
.logo { flex-shrink: 0; margin-right: 20px; display: flex; align-items: center; text-decoration: none; }
.logo img { height: 60px; width: auto; display: block; }
.header-nav { display: flex; align-items: center; flex: 1; }
.header-nav a { font-size: 0.78rem; font-weight: 500; color: var(--sub); text-decoration: none; padding: 0 12px; height: 100px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.15s, border-color 0.15s; }
.header-nav a:hover { color: var(--navy); }
.header-nav a.is-active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.btn-icon { width: 34px; height: 34px; border: none; background: transparent; cursor: pointer; color: var(--sub); display: flex; align-items: center; justify-content: center; border-radius: var(--radius); transition: color 0.15s, background 0.15s; }
.btn-icon:hover { color: var(--navy); background: rgba(43,94,171,.07); }
.hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 2px; }
.search-panel { overflow: hidden; max-height: 0; background: var(--white); border-bottom: 1px solid transparent; transition: max-height 0.25s ease, border-color 0.25s; }
.search-panel.is-open { max-height: 64px; border-bottom-color: var(--border); }
.search-panel-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 32px; }
.search-form { display: flex; gap: 8px; }
.search-input { flex: 1; height: 36px; padding: 0 12px; font-size: 0.85rem; font-family: inherit; border: 1px solid var(--border); border-radius: var(--radius); outline: none; color: var(--text); background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s; }
.search-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43,94,171,.1); }
.search-submit { height: 36px; padding: 0 18px; font-size: 0.8rem; font-weight: 600; font-family: inherit; background: var(--navy); color: var(--white); border: none; border-radius: var(--radius); cursor: pointer; transition: opacity 0.15s; white-space: nowrap; }
.search-submit:hover { opacity: 0.85; }
.mobile-menu { display: none; background: var(--white); border-bottom: 1px solid var(--border); padding: 6px 16px 14px; flex-direction: column; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { font-size: 0.88rem; font-weight: 500; color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: var(--radius); transition: background 0.15s; display: flex; align-items: center; gap: 10px; }
.mobile-menu a:hover, .mobile-menu a.is-active { background: var(--bg); }
.mobile-menu a.is-active { color: var(--navy); font-weight: 700; }
.mobile-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ── FOOTER ── */
footer { background: var(--navy); margin-top: auto; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 40px 32px 32px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.footer-logo { font-family: 'Inter',sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: -0.02em; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 0.78rem; }
.footer-nav a { color: rgba(255,255,255,.55); text-decoration: none; transition: color 0.15s; }
.footer-nav a:hover { color: var(--white); }
.footer-divider { width: 40px; height: 1px; background: rgba(255,255,255,.15); }
.footer-copy { font-size: 0.67rem; color: rgba(255,255,255,.3); letter-spacing: 0.02em; line-height: 1.8; }
.footer-copy a { color: rgba(255,255,255,.45); }

/* ── LAYOUT ── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
main { flex: 1; padding-bottom: 80px; }

/* ── CATEGORY BADGE ── */
.cat-badge { display: inline-block; font-family: 'Inter',sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); padding: 2px 8px; border-radius: 2px; align-self: flex-start; white-space: nowrap; }
.cat-badge--news      { background: var(--teal); }
.cat-badge--event     { background: #E11D48; }
.cat-badge--column    { background: var(--purple); }
.cat-badge--feature   { background: var(--orange); }
.cat-badge--ep_review { background: var(--navy); }

/* ── TAG CHIPS ── */
.tag-chips-bar { background: transparent; padding: 16px 0 4px; }
.tag-chips-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--teal); background: var(--white); color: var(--navy); font-size: 0.78rem; font-weight: 600; text-decoration: none; font-family: 'Inter','Noto Sans JP',sans-serif; white-space: nowrap; transition: background 0.15s, color 0.15s; cursor: pointer; }
.tag-chip:hover, .tag-chip.is-active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.tag-chip.is-disabled { color: #CCCCCC; border-color: #CCCCCC; pointer-events: none; }

/* ── SECTION HEAD ── */
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-top: 32px; }
.sec-title { font-family: 'Inter',sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ''; display: block; width: 3px; height: 14px; background: var(--navy); border-radius: 2px; flex-shrink: 0; }
.sec-meta { font-size: 0.7rem; color: var(--muted); font-family: 'Inter',sans-serif; }

/* ── SECTION LABEL (privacy / contact) ── */
.sec-label { font-family: 'Inter',sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sec-label::before { content: ''; display: block; width: 3px; height: 14px; background: var(--navy); border-radius: 2px; flex-shrink: 0; }

/* ── ARTICLE GRID ── */
.articles-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }

/* ── CARD ── */
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; grid-column: span 2; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--feat, .card--second { grid-column: span 3; }
.card-img-wrap { overflow: hidden; aspect-ratio: 3/2; background: #ffffff; }
.card--feat .card-img-wrap, .card--second .card-img-wrap { aspect-ratio: 16/9; }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card--feat .card-body, .card--second .card-body { padding: 16px 20px 20px; }
.card-title { font-size: 0.88rem; font-weight: 700; line-height: 1.65; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card--feat .card-title, .card--second .card-title { font-size: 1.08rem; -webkit-line-clamp: 3; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--navy); }
.card-meta { display: flex; flex-direction: column; gap: 3px; font-size: 0.67rem; color: var(--muted); margin-top: auto; }
.card-company { font-weight: 600; color: var(--sub); text-decoration: none; }
a.card-company:hover { color: var(--navy); }
.card-date { font-family: 'Inter',sans-serif; flex-shrink: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 5px; }
.card-tag { font-size: 0.63rem; font-weight: 600; color: #4ECDC4; text-decoration: none; font-family: 'Inter','Noto Sans JP',sans-serif; letter-spacing: 0.01em; transition: opacity 0.15s; }
.card-tag:hover { opacity: 0.7; }

/* ── PAGINATION ── */
.pager-wrap { padding: 48px 0 0; }
.pg-info { text-align: center; font-size: 0.7rem; color: var(--muted); margin-bottom: 14px; font-family: 'Inter',sans-serif; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; font-size: 0.82rem; font-family: 'Inter',sans-serif; font-weight: 500; text-decoration: none; border: 1px solid var(--border); color: var(--sub); background: var(--white); border-radius: var(--radius); transition: background 0.12s, color 0.12s, border-color 0.12s; white-space: nowrap; }
.pg-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pg-btn.is-current { background: var(--navy); color: var(--white); border-color: var(--navy); font-weight: 700; pointer-events: none; }
.pg-btn.is-disabled { color: var(--muted); pointer-events: none; opacity: 0.4; }
.pg-ellipsis { font-size: 0.82rem; color: var(--muted); padding: 0 2px; line-height: 36px; font-family: 'Inter',sans-serif; }

/* ── EMPTY / NOT FOUND ── */
.empty { padding: 80px 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.not-found { text-align: center; padding: 80px 0; color: var(--muted); }
.not-found h1 { font-size: 4rem; font-weight: 900; color: var(--border); margin-bottom: 16px; font-family: 'Inter',sans-serif; }
.not-found p { margin-bottom: 24px; }
.not-found a { color: var(--navy); font-weight: 600; text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(4, 1fr); }
  .card--feat, .card--second { grid-column: span 2; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 16px; }
  .wrap { padding: 0 16px; }
  .search-panel-inner { padding: 12px 16px; }
  .footer-inner { padding: 32px 16px 24px; }
  .tag-chips-inner { padding: 0 16px; gap: 6px; }
  .tag-chip { height: 28px; font-size: 0.74rem; padding: 0 12px; }
  .articles-grid { grid-template-columns: 1fr; gap: 14px; }
  .articles-grid .card { grid-column: span 1; }
  .card--feat .card-title, .card--second .card-title { font-size: 0.95rem; }
  .sec-head { padding-top: 22px; }
}
