@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary:#005BAC;
  --primary-dark:#003d73;
  --primary-light:#e6f2ff;
  --accent:#F39800;
  --accent-light:#fff4e0;
  --text:#1a1a2e;
  --text-light:#555;
  --bg:#f8fafd;
  --white:#fff;
  --border:#e0e8f0;
  --shadow:0 2px 12px rgba(0,91,172,.06);
  --shadow-lg:0 6px 22px rgba(0,91,172,.1);
  --radius:8px;
}

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

html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family:'Noto Sans JP',sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
}

img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.site-header {
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(12px);
}

.header-inner {
  max-width:1160px;
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.logo {
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
}

.logo img {
  width:180px;
  height:auto;
}

.header-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
}

.header-search {
  width:min(320px,36vw);
}

.header-search input {
  width:100%;
  min-height:40px;
  padding:8px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:.86rem;
  outline:none;
  box-shadow:none;
}

.header-search input:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(0,91,172,.12);
}

.header-cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 20px;
  background:var(--accent);
  color:#fff;
  border-radius:8px;
  font-size:.85rem;
  font-weight:700;
  box-shadow:none;
}

.blog-hero {
  background:var(--white);
  color:var(--text);
  padding:48px 24px 40px;
  border-bottom:1px solid var(--border);
}

.hero-inner {
  max-width:1160px;
  margin:0 auto;
}

.blog-hero h1 {
  max-width:940px;
  font-size:clamp(1.7rem,4vw,2.7rem);
  line-height:1.35;
  font-weight:900;
  letter-spacing:0;
  margin-bottom:16px;
}

.blog-hero .blog-title-logo-heading {
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

.blog-title-logo {
  width:100%;
  height:auto;
  transform:translateX(-2.4%);
}

.hero-lead {
  max-width:740px;
  margin-left:auto;
  margin-right:auto;
  font-size:1rem;
  text-align:center;
  color:var(--text-light);
}

.tag-list a.is-active {
  background:var(--primary);
  border-color:var(--primary);
  color:#fff;
}

.is-hidden {
  display:none !important;
}

.featured-section,
.content-wrap {
  max-width:1160px;
  margin:0 auto;
  padding:32px 24px 0;
}

.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:18px;
}

.section-head.compact {
  align-items:start;
  margin-bottom:18px;
}

.section-head.compact h2 {
  flex-shrink:0;
  white-space:nowrap;
}

.section-head.compact > div {
  flex:1;
  min-width:0;
}

.section-head h2 {
  font-size:1.45rem;
  line-height:1.4;
  color:var(--primary);
  font-weight:900;
}

.section-head p {
  max-width:560px;
  color:var(--text-light);
  font-size:.92rem;
}

.filter-status {
  margin-top:6px;
  color:var(--primary);
  font-size:.82rem;
  font-weight:700;
}

.sort-control {
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
  color:var(--text-light);
  font-size:.82rem;
  font-weight:700;
}

.sort-control select {
  min-height:36px;
  padding:7px 34px 7px 12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  font:inherit;
  font-size:.82rem;
  outline:none;
  box-shadow:none;
}

.sort-control select:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(0,91,172,.12);
}

.featured-grid {
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:18px;
}

.featured-card,
.post-card a,
.side-panel {
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.featured-card {
  min-height:230px;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  transition:border-color .2s, box-shadow .2s;
}

.featured-card.primary {
  background:var(--white);
  color:var(--text);
  border-left:4px solid var(--primary);
}

.featured-card:hover,
.post-card a:hover {
  box-shadow:var(--shadow-lg);
  border-color:#c8daeb;
}

.label,
.category {
  display:inline-flex;
  align-items:center;
  align-self:flex-start;
  min-height:26px;
  padding:3px 10px;
  border-radius:6px;
  background:var(--accent-light);
  color:#b56800;
  font-size:.72rem;
  font-weight:700;
  margin-bottom:12px;
}

.featured-card.primary .label {
  background:var(--primary-light);
  color:var(--primary);
}

.post-dates {
  display:flex;
  flex-direction:column;
  flex-wrap:wrap;
  gap:6px 12px;
  min-height:54px;
  margin-bottom:12px;
  color:var(--text-light);
  font-size:.76rem;
  line-height:1.5;
}

.post-dates time {
  color:var(--text);
  font-weight:700;
}

.featured-card.primary .post-dates {
  color:var(--text-light);
}

.featured-card.primary .post-dates time {
  color:var(--text);
}

.featured-card h3,
.post-card h3 {
  font-size:1.08rem;
  line-height:1.55;
  font-weight:900;
  letter-spacing:0;
  min-height:3.1em;
  margin-bottom:10px;
}

.featured-card.primary h3 {
  font-size:1.35rem;
}

.featured-card h3 {
  min-height:4.2rem;
}

.featured-card p,
.post-card p {
  color:var(--text-light);
  font-size:.9rem;
  line-height:1.8;
}

.featured-card.primary p {
  color:var(--text-light);
}

.content-wrap {
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:32px;
  padding-bottom:72px;
}

.post-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.post-card {
  min-width:0;
}

.post-card a {
  min-height:205px;
  height:100%;
  padding:22px;
  display:flex;
  flex-direction:column;
  transition:box-shadow .2s, border-color .2s;
}

.post-card h3 {
  color:var(--text);
}

.post-card p {
  margin-top:0;
}

.blog-sidebar {
  display:flex;
  flex-direction:column;
  gap:16px;
}

.side-panel {
  padding:22px;
  position:sticky;
  top:84px;
}

.side-panel + .side-panel {
  top:300px;
}

.side-panel h2 {
  font-size:1rem;
  line-height:1.5;
  font-weight:900;
  color:var(--primary);
  margin-bottom:14px;
}

.tag-list {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tag-list a {
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:5px 11px;
  border:1px solid var(--border);
  border-radius:6px;
  color:var(--text-light);
  font-size:.8rem;
  font-weight:700;
  background:#fff;
}

.cta-panel {
  background:var(--primary-light);
}

.cta-panel p {
  font-size:.88rem;
  color:#334;
  margin-bottom:16px;
}

.cta-panel a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 16px;
  border-radius:8px;
  background:var(--primary);
  color:#fff;
  font-size:.84rem;
  font-weight:700;
}

.site-footer {
  border-top:1px solid var(--border);
  background:var(--white);
  padding:28px 24px;
  text-align:center;
  color:var(--text-light);
  font-size:.84rem;
}

.site-footer a {
  color:var(--primary);
}

@media (max-width: 920px) {
  .featured-grid,
  .content-wrap {
    grid-template-columns:1fr;
  }

  .blog-sidebar {
    display:none;
  }

  .featured-card {
    min-height:190px;
  }
}

@media (max-width: 680px) {
  .header-inner {
    padding:12px 16px;
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }

  .logo img {
    width:148px;
  }

  .header-actions {
    width:100%;
  }

  .header-search {
    width:100%;
    flex:1;
  }

  .header-cta {
    min-height:36px;
    padding:8px 13px;
    font-size:.78rem;
    white-space:nowrap;
  }

  .blog-hero {
    padding:42px 18px 34px;
  }

  .blog-hero .blog-title-logo-heading {
    max-width:100%;
  }

  .featured-section,
  .content-wrap {
    padding-left:18px;
    padding-right:18px;
  }

  .section-head {
    display:block;
  }

  .section-head h2 {
    margin-bottom:6px;
  }

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

  .post-card a {
    min-height:178px;
  }
}
