@charset "utf-8";

/* ベース */

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

body {
  margin: 0;
  font-family:
    "A1 Mincho",
    "Source Han Serif JP",
    "Source Han Serif",
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "MS PMincho",
    serif;
  line-height: 1.8;
  color: #202520;
  background: #f3f4f2;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

/* ヘッダー */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 16px 32px;
  color: #ffffff;
  pointer-events: none;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 0.9rem;
  pointer-events: auto;
}

.site-title a {
  color: #fff;
}

.site-nav {
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.site-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: rgba(255,255,255,0.85);
}

/* トップ用ヒーロー */

.hero {
  position: relative;
  min-height: 60vh;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.25)),
    url("/File/hero-iwabokki.jpg") center/cover no-repeat;
  z-index: -1;
}

.hero-inner {
  max-width: 720px;
  padding-top: 80px;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.2rem;
  letter-spacing: 0.28em;
  margin: 0 0 18px;
}

.hero-desc {
  font-size: 0.98rem;
  margin: 0;
}

/* 記事ページ用ヒーロー */

.single-hero {
  position: relative;
  min-height: 40vh;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3)),
    url("/File/hero-iwabokki.jpg") center/cover no-repeat;
  z-index: -1;
}

.single-hero-inner {
  max-width: 800px;
  padding: 120px 0 40px;
}

.single-meta {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.single-title {
  font-size: 2rem;
  letter-spacing: 0.18em;
  margin: 0;
}

/* セクション */

.section {
  padding: 80px 20px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
  font-weight: 600;
}

/* 一覧カード */

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.post-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 6px;
}

.post-card-title {
  font-size: 1.1rem;
  margin: 0 0 10px;
  letter-spacing: 0.08em;
}

.post-card-excerpt {
  font-size: 0.92rem;
  margin: 0 0 14px;
  flex: 1;
}

.post-card-more {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

/* ページネーション */

.pagination {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border-radius: 4px;
}

.pagination .current {
  background: #222b25;
  color: #f5f7f3;
}

/* 記事本文 */

.article-content {
  background: #f5f7f3;
}

.article-content .section-inner {
  max-width: 800px;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #202520;
  background: #f5f7f3;
  padding: 60px 40px 80px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 0 auto;
}

.article-body p {
  margin: 0 0 1.6em;
  letter-spacing: 0.03em;
}

.article-body h2 {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  margin: 2.2em 0 1em;
}

.article-body h3 {
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  margin: 2em 0 0.8em;
}

.article-body ul,
.article-body ol {
  margin: 1.4em 0;
  padding-left: 1.5em;
  line-height: 1.9;
}

.article-body img {
  display: block;
  margin: 2em auto;
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
}

.article-body blockquote {
  background: rgba(230, 233, 227, 0.5);
  padding: 18px 24px;
  border-left: 4px solid #2a312d;
  border-radius: 6px;
  margin: 2em 0;
  font-style: italic;
}

.article-body a {
  color: #1d2923;
  border-bottom: 1px solid #1d2923;
  padding-bottom: 2px;
}

.article-body a:hover {
  opacity: 0.7;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid #ddd;
}

.article-body th {
  background: #e7ebe5;
  font-weight: bold;
}

.article-body iframe {
  display: block;
  width: 100%;
  max-width: 780px;
  height: 420px;
  margin: 2.4em auto;
  border-radius: 10px;
}

/* フッター */

.site-footer {
  text-align: center;
  padding: 24px 10px 32px;
  font-size: 0.8rem;
  color: #666;
}

/* レスポンシブ（軽め） */

@media (max-width: 900px) {
  .site-header {
    padding: 12px 16px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 0.22em;
  }

  .section {
    padding: 60px 16px;
  }

  .single-hero-inner {
    padding-top: 100px;
  }

  .single-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

/* 記事本文のフォントを強制的に明朝に揃える */
.article-body,
.article-body .entryText,
.article-body .entryTextMain,
.article-body p,
.article-body li {
  font-family:
    "A1 Mincho",
    "Source Han Serif JP",
    "Source Han Serif",
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "MS PMincho",
    serif !important;
}

/* ============================
   MAGARIGAWA 風：画像の余白と影
============================ */
.article-body img {
  display: block;
  margin: 3.2em auto; /* 画像まわりの余白を広めに */
  border-radius: 14px;

  /* 影を “近く・濃く・重く” 調整 */
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.20),
    0 4px 10px rgba(0, 0, 0, 0.10);

  /* 画像の最大幅（Magarigawa のスッキリした印象に） */
  max-width: 92%;
}

/* 画像直前・直後の段落の行間も少し整える（MAGARIGAWA っぽく） */
.article-body p + img,
.article-body img + p {
  margin-top: 2.4em;
}

/* 画像が文章の横に回り込まないよう完全固定 */
.article-body img {
  display: block !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  clear: both !important;
}

/* 画像の前後にしっかり余白をつける（MAGARIGAWA風） */
.article-body p + img,
.article-body img + p,
.article-body img {
  margin-top: 3em !important;
  margin-bottom: 3em !important;
}

/* 画像の最大幅も抑えて高級感を出す */
.article-body img {
  max-width: 92% !important;
}

