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

:root {
  --red:     #E60012;
  --blue:    #0066CC;
  --yellow:  #FFD500;
  --navy:    #1E293B;
  --body:    #334155;
  --sub:     #64748B;
  --border:  #E2E8F0;
  --bg:      #F8FAFC;
  --white:   #FFFFFF;
}

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

/* ── Header ──────────────────────────── */
header { position:fixed; top:0; left:0; right:0; z-index:200; background:rgba(255,255,255,.97); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); height:64px; display:flex; align-items:center; }
.header-inner { max-width:1200px; margin:0 auto; width:100%; padding:0 40px; display:flex; align-items:center; justify-content:space-between; }
.logo { font-family:'Outfit',sans-serif; font-weight:900; font-size:1.4rem; color:var(--navy); text-decoration:none; letter-spacing:.05em; }
.logo .s { color:var(--red); }
.logo .t { color:var(--blue); }
nav { display:flex; gap:32px; align-items:center; }
nav a { font-size:.82rem; font-weight:500; color:var(--sub); text-decoration:none; transition:color .2s; }
nav a:hover { color:var(--navy); }
nav a.on { color:var(--red); font-weight:700; border-bottom:2px solid var(--red); padding-bottom:2px; }
.nav-contact { background:var(--red); color:#fff!important; padding:8px 20px; border-radius:4px; font-weight:700!important; }

/* ── Hero ─────────────────────────────── */
.hero {
  margin-top:64px;
  background:#fff;
  border-bottom:1px solid var(--border);
  padding:72px 40px 0;
  position:relative; overflow:hidden;
}
/* 黄色のアクセント帯 */
.hero::before {
  content:'';
  position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg, var(--red) 0%, var(--yellow) 50%, var(--blue) 100%);
}
.hero-inner { max-width:1200px; margin:0 auto; }

.breadcrumb { display:flex; gap:8px; margin-bottom:32px; }
.breadcrumb a { font-size:.78rem; color:var(--sub); text-decoration:none; }
.breadcrumb span { font-size:.78rem; color:var(--sub); }
.breadcrumb .cur { color:var(--red); }

.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:.7rem; font-weight:700;
  letter-spacing:.25em; color:var(--red);
  display:flex; align-items:center; gap:12px; margin-bottom:12px;
}
.hero-en::before { content:''; display:block; width:36px; height:2px; background:var(--red); }
.hero-h1 {
  font-family:'Zen Kaku Gothic New',sans-serif;
  font-size:clamp(2.4rem,4.5vw,4rem);
  font-weight:900; color:var(--navy);
  line-height:1.1; letter-spacing:-.03em; margin-bottom:16px;
}
.hero-desc { font-size:.95rem; color:var(--sub); line-height:1.85; max-width:500px; }

/* Tab nav inside hero */
.tab-nav {
  display:flex; gap:0; margin-top:40px;
  border-bottom:none;
}
.tab-btn {
  display:flex; align-items:center; gap:8px;
  padding:14px 28px; font-size:.88rem; font-weight:600;
  color:var(--sub); background:none; border:none; cursor:pointer;
  font-family:'Noto Sans JP',sans-serif;
  border-bottom:3px solid transparent;
  transition:all .2s; white-space:nowrap;
  border-top:1px solid var(--border);
  border-left:1px solid var(--border);
  border-right:none;
}
.tab-btn:first-child { border-radius:8px 0 0 0; }
.tab-btn:last-child { border-right:1px solid var(--border); border-radius:0 8px 0 0; }
.tab-btn:hover { color:var(--navy); background:var(--bg); }
.tab-btn.on { color:var(--white); background:var(--navy); border-color:var(--navy); font-weight:700; }
.tab-count {
  font-family:'Outfit',sans-serif; font-size:.7rem; font-weight:700;
  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); }

/* ── Main layout ─────────────────────── */
.main-wrap {
  max-width:1200px; margin:0 auto; padding:64px 40px 120px;
  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:400px 1fr;
  margin-bottom:32px;
  transition:box-shadow .3s;
  text-decoration:none; color:inherit;
}
.article-featured:hover { box-shadow:0 12px 40px rgba(0,0,0,.08); }
.feat-thumb {
  aspect-ratio:auto; height:100%; min-height:240px;
  display:flex; align-items:center; justify-content:center;
  font-size:4rem; position:relative;
}
.feat-body { padding:36px 32px; 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:700;
  letter-spacing:.15em; 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.25rem; font-weight:700; color:var(--navy);
  line-height:1.45; margin-bottom:12px;
}
.feat-body p { font-size:.88rem; color:var(--sub); line-height:1.8; margin-bottom:20px; }
.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:.7rem; font-weight:700; padding:3px 10px; border-radius:4px; }
.cat-news { background:#FFF1F2; color:var(--red); }
.cat-tech { background:#EFF6FF; color:var(--blue); }
.cat-culture { background:#FFFBEB; color:#B45309; }
.cat-recruit { background:#F0FDF4; color:#15803D; }
.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:20px 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-tech   { background:linear-gradient(135deg,#dbeafe,#93c5fd); }
.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-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:700; color:var(--navy);
  line-height:1.5; margin-bottom:4px;
}
.article-excerpt { font-size:.8rem; color:var(--sub); line-height:1.7; }

/* Pagination */
.pagination { display:flex; align-items:center; justify-content:center; gap:8px; margin-top:48px; }
.page-btn {
  width:40px; height:40px; border-radius:6px; border:1px solid var(--border);
  background:#fff; display:flex; align-items:center; justify-content:center;
  font-size:.88rem; font-weight:600; color:var(--sub); cursor:pointer;
  font-family:'Outfit',sans-serif; transition:all .2s;
}
.page-btn:hover { border-color:var(--navy); color:var(--navy); }
.page-btn.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.page-btn.arrow { font-size:1rem; }

/* ── Sidebar ─────────────────────────── */
.sidebar { position:sticky; top:88px; }

.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:700;
  letter-spacing:.15em; 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;
  padding:10px 16px; border-radius:0 6px 6px 0; cursor:pointer;
  font-size:.9rem; transition:background .2s;
}
.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:.88rem; 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:700;
  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:900;
  color:var(--border); line-height:1; flex-shrink:0; width:24px;
}
.popular-item:first-child .popular-num { color:var(--red); }
.popular-item:nth-child(2) .popular-num { color:var(--sub); }
.popular-item:nth-child(3) .popular-num { color:var(--sub); }
.popular-text h4 { font-size:.83rem; font-weight:600; color:var(--navy); line-height:1.5; margin-bottom:3px; }
.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); }

/* Newsletter */
.newsletter-block {
  background:var(--navy); border-radius:12px; padding:24px;
}
.newsletter-block h3 { font-family:'Zen Kaku Gothic New',sans-serif; font-size:1rem; font-weight:700; color:#fff; margin-bottom:8px; }
.newsletter-block p { font-size:.8rem; 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:.85rem; font-weight:700;
  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-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-item:first-child { 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:.78rem; color:var(--sub); white-space:nowrap; flex-shrink:0; }
.news-cat { font-size:.68rem; font-weight:700; padding:2px 8px; border-radius:3px; white-space:nowrap; flex-shrink:0; }
.news-title { font-size:.9rem; color:var(--navy); font-weight:500; line-height:1.55; flex:1; }
.news-item:hover .news-title { color:var(--red); }

/* ── CTA bottom ──────────────────────── */
.cta-section {
  background:var(--bg); border-top:1px solid var(--border); padding:80px 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;
  padding: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:700; 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:700; font-size:.85rem;
  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:700; font-size:.85rem;
  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:900; color:#fff; display:block; margin-bottom:14px; text-decoration:none; letter-spacing:.05em; }
.footer-brand p { font-size:.82rem; color:rgba(255,255,255,.38); line-height:1.8; max-width:240px; }
.footer-nav h4 { font-size:.7rem; font-weight:700; letter-spacing:.15em; 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:.82rem; 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) {
  .main-wrap { grid-template-columns: 1fr !important; padding: 40px 20px 80px; gap: 40px; }
  .article-featured { grid-template-columns: 1fr !important; }
  .feat-thumb { min-height: 180px; }
  .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; }
}
