@charset "UTF-8";

/* ===================================================
   ベースリセット & タイポグラフィ
=================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.85;
  color: #334155;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

a {
  color: #0284c7;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0369a1;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ===================================================
   共通ヘッダー
=================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 1rem;
}

.header-nav a:hover {
  color: #0f172a;
  text-decoration: none;
}

/* ===================================================
   レイアウトコンテナ & カード
=================================================== */
.container {
  max-width: 820px;
  margin: 2rem auto 4rem;
  padding: 0 1.25rem;
}

.article-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
  .container {
    margin: 1rem auto;
    padding: 0 0.75rem;
  }
  .article-card {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
  }
}

/* ===================================================
   記事メタ & 見出し
=================================================== */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.badge {
  background-color: #f1f5f9;
  color: #475569;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.75rem;
}

.post-title {
  font-size: 1.85rem;
  line-height: 1.35;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .post-title {
    font-size: 1.45rem;
  }
}

.featured-image-box {
  margin: 0 -2rem 2.5rem;
}

.featured-image-box img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 640px) {
  .featured-image-box {
    margin: 0 -1.25rem 1.5rem;
  }
}

/* ===================================================
   注記ボックス（過去記事更新注記）
=================================================== */
.notice-box {
  background-color: #f8fafc;
  border-left: 4px solid #0284c7;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 2rem;
}

/* ===================================================
   本文コンテンツ装飾
=================================================== */
.content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.75rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #0284c7;
}

.content p {
  margin-bottom: 1.35rem;
  font-size: 1rem;
}

.content strong {
  color: #0f172a;
  background: linear-gradient(transparent 65%, #fef08a 65%);
}

/* ===================================================
   画像ギャラリー（レスポンシブ・グリッド）
=================================================== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.image-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background-color: #f1f5f9;
}

.image-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-grid img:hover {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .image-grid img {
    height: 120px;
  }
}

/* 単体・少枚数の強調用グリッド */
.image-grid-single {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

/* ===================================================
   フッター
=================================================== */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #94a3b8;
  font-size: 0.85rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}


/* ===================================================
   ブログカード（内部リンクカード）
=================================================== */
.blog-card {
  display: flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.blog-card-thumb {
  width: 140px;
  min-width: 140px;
  background-color: #f1f5f9;
  position: relative;
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.blog-card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.blog-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.blog-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-desc {
  font-size: 0.825rem;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .blog-card {
    flex-direction: column;
  }
  .blog-card-thumb {
    width: 100%;
    min-width: 100%;
    height: 140px;
  }
  .blog-card-body {
    padding: 0.85rem 1rem;
  }
}

/* ===================================================
   レスポンシブマップコンテナ
=================================================== */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9比率 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.5rem 0 2rem;
  border: 1px solid #e2e8f0;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}