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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
  color: #222;
  background: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0b57d0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ========================================
   Header
======================================== */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.site-logo {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
}

.site-logo a {
  color: #153a69;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.site-nav a {
  color: #22364d;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ========================================
   Hero
======================================== */

.hero-section {
  background:
    linear-gradient(135deg, #edf5ff 0%, #f8fbff 55%, #ffffff 100%);
  padding: 72px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.25;
  color: #143559;
}

.hero-text p {
  margin: 0 0 18px;
  color: #42586f;
  font-size: 1rem;
}

.hero-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: #174ea6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  margin-bottom: 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary {
  background: #0b57d0;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 87, 208, 0.18);
}

.btn-secondary {
  background: #ffffff;
  color: #17324d;
  border: 1px solid #d9e3ef;
}

.hero-note {
  font-size: 0.92rem;
  color: #5f7287;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual-box {
  width: 100%;
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 26px;
  background:
    linear-gradient(rgba(18, 44, 74, 0.28), rgba(18, 44, 74, 0.42)),
    url("../images/top-hero.jpg") center center / cover no-repeat,
    #d8e8fb;
  box-shadow: 0 18px 45px rgba(26, 62, 104, 0.18);
}

.hero-visual-box p {
  margin: 0;
  display: inline-block;
  width: fit-content;
  background: rgba(255, 255, 255, 0.88);
  color: #16314f;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ========================================
   Sections
======================================== */

.section-block {
  padding: 72px 0;
}

.section-accent {
  background: #f8fbff;
}

.section-soft {
  background: #f4f8fc;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.3;
  color: #163554;
}

.section-heading p {
  margin: 0;
  color: #5a6d82;
}

.section-text {
  max-width: 850px;
}

.section-text p {
  margin: 0 0 14px;
  color: #46596d;
}

.page-hero {
  padding: 56px 0 20px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #143559;
}

.page-hero p {
  margin: 0;
  color: #5b6c80;
}

/* ========================================
   Info Cards
======================================== */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.info-card {
  background: #ffffff;
  border: 1px solid #e6edf5;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(26, 62, 104, 0.05);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: #163554;
}

.info-card p {
  margin: 0;
  color: #586b80;
}

/* ========================================
   Purpose Cards
======================================== */

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.purpose-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e3ebf4;
  border-radius: 20px;
  padding: 22px 20px;
  min-height: 170px;
  box-shadow: 0 8px 20px rgba(20, 53, 89, 0.05);
}

.purpose-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #163554;
}

.purpose-card p {
  margin: 0;
  color: #5d7084;
  font-size: 0.94rem;
}

/* ========================================
   Category Links
======================================== */

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #eef5fd;
  color: #17416e;
  font-weight: 700;
  border: 1px solid #d9e6f4;
}

/* ========================================
   Post Cards
======================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.post-card {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 44, 78, 0.06);
}

.post-thumb-link {
  display: block;
}

.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8eef5;
}

.post-card-body {
  padding: 20px;
}

.post-meta {
  margin-bottom: 10px;
  color: #6a7c90;
  font-size: 0.88rem;
  font-weight: 600;
}

.post-card h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.post-card h2 a {
  color: #163554;
}

.post-card p {
  margin: 0 0 12px;
  color: #596d82;
}

.post-card p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Article
======================================== */

.article-page {
  padding: 56px 0 84px;
}

.article-page article {
  max-width: 860px;
  margin: 0 auto;
}

.article-page h1 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.35;
  color: #143559;
}

.article-thumb {
  margin: 0 0 28px;
  border-radius: 18px;
  overflow: hidden;
}

.article-content {
  color: #33485d;
  font-size: 1rem;
}

.article-content p {
  margin: 0 0 18px;
}

.article-content h2,
.article-content h3 {
  margin: 38px 0 16px;
  line-height: 1.4;
  color: #153554;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px 1.4em;
}

/* ========================================
   Footer
======================================== */

.site-footer {
  margin-top: 72px;
  padding: 48px 0;
  background: #12304d;
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.footer-about h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.footer-about p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
}

.footer-links a {
  color: #ffffff;
  font-weight: 600;
}

/* ========================================
   Utilities
======================================== */

section + section {
  border-top: 1px solid rgba(15, 42, 72, 0.04);
}

/* ========================================
   Responsive
======================================== */

@media (max-width: 1100px) {
  .purpose-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual-box {
    min-height: 320px;
  }

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

  .purpose-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 56px 0;
  }

  .section-block {
    padding: 56px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

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

  .site-nav {
    gap: 10px 14px;
  }

  .site-nav a,
  .footer-links a {
    font-size: 0.92rem;
  }

  .post-card-body,
  .info-card,
  .purpose-card {
    padding: 18px;
  }

  .hero-visual-box {
    min-height: 260px;
    padding: 18px;
  }
}


.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: transparent;
  color: #0b57d0;
  border: 2px solid #0b57d0;
}

.btn-outline:hover {
  background: #0b57d0;
  color: #fff;
}

.hero-blog-btn {
  min-height: 60px;
  padding: 0 28px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(11, 87, 208, 0.18);
}

.hero-buttons .btn-primary.hero-blog-btn {
  background: #0b57d0;
  color: #fff;
}

.hero-buttons .btn-secondary.hero-blog-btn {
  background: #ffffff;
  color: #0b57d0;
  border: 2px solid #0b57d0;
}

.hero-buttons .hero-blog-btn:hover {
  transform: translateY(-2px);
}



/* ========================================
   Added styles for 2-site full top page
======================================== */

.info-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.info-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.small-note {
  font-size: 0.88rem;
  color: #6b7c8f;
  line-height: 1.7;
  margin-top: 10px;
}

.info-card a {
  word-break: break-word;
}

.info-card h3 {
  line-height: 1.5;
}

.info-card p + p {
  margin-top: 10px;
}

/* 拠点バッジまわりを少し強化 */
.post-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.site-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.site-badge {
  color: #fff;
}

.site-badge-ikuno {
  background: #0b57d0;
  box-shadow: 0 6px 16px rgba(11, 87, 208, 0.18);
}

.site-badge-kouri {
  background: #16a34a;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.18);
}

.category-badge {
  background: #eef5fd;
  color: #17416e;
  border: 1px solid #d8e5f4;
}

.article-page .post-badges {
  margin-bottom: 14px;
}

/* 基本情報や地域情報の長文を少し読みやすく */
.section-text p,
.info-card p {
  word-break: break-word;
}

/* heroボタンの視認性強化 */
.hero-blog-btn {
  min-height: 60px;
  padding: 0 28px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(11, 87, 208, 0.18);
}

.hero-buttons .btn-primary.hero-blog-btn {
  background: #0b57d0;
  color: #fff;
}

.hero-buttons .btn-secondary.hero-blog-btn {
  background: #ffffff;
  color: #0b57d0;
  border: 2px solid #0b57d0;
}

.hero-buttons .hero-blog-btn:hover {
  transform: translateY(-2px);
}

/* モバイル時の追加調整 */
@media (max-width: 900px) {
  .info-grid-2,
  .info-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-badge,
  .category-badge {
    font-size: 0.74rem;
    min-height: 26px;
    padding: 0 9px;
  }

  .hero-blog-btn {
    width: 100%;
    font-size: 0.98rem;
    min-height: 56px;
  }
}






/* ========================================
   CTA Button（記事下ボタン）
======================================== */

.cta-wrapper {
  margin-top: 40px;
  text-align: center;
}

.cta-button {
  display: inline-block;
  background: #ff6b00;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.25);
  transition: all 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 107, 0, 0.3);
}