/* ベース */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f8f4e6;
}

/* --- ヘッダー全体 --- */
.site-header {
  padding: 16px 0;
  background: #f8f4e6;
   /* border-bottom: 2px solid #2f6f1e; お好みで調整 */
    position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* --- 中央寄せコンテナ（1320px） --- */
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- ロゴ画像 --- */
.logo-link {
  display: inline-block;
}

.logo-image {
  display: block;
  height: 120px;     /* ここでロゴの高さ調整 */
  width: auto;      /* 画像の比率を維持 */
}

@media (max-width: 959.98px) {
  .logo-image {
    height: 80px;   /* ← お好みで 60〜90px に調整OK */
  }
}

/* トップ画像周り（緑の帯＋中央に1320px） */
.hero-bar {
  background: #339999;   /* 画面いっぱいの緑帯 */
  padding: 0;
  margin-top: 152px;  /* ヘッダーの高さぶん（120pxロゴ＋上下16pxパディング） */
}

@media (max-width: 959.98px) {
  .hero-bar {
    margin-top: 112px;  /* ← ロゴ80px + padding 16px×2 ≒ 112px */
  }
}
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  background: #339999;
}

.hero-image {
  display: block;
  width: 100%;   /* コンテナ幅にフィット */
  height: auto;  /* アスペクト比維持 → トリミングなし */
}

/* メインレイアウト（PCで2カラムにするコンテナ） */
.layout {
  max-width: 1320px;
  margin: 32px auto;
  padding: 0 16px;
}

/* 左カラム（本文） */
#main-column {
  margin-top: 24px; /* SP時も少し余白 */
}
/* 左カラムの箱そのもの */
.main-inner {
  background: #ffffff;
  padding: 32px 40px;
  border: 1px solid #dddddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* パンくず */
.breadcrumbs {
  font-size: 12px;
  margin-bottom: 16px;
  color: #666;
}
.breadcrumbs a {
  color: #339999;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

/* 記事タイトル周り */
.post-header {
  margin-bottom: 24px;
}
.post-title {
  font-size: 24px;
  margin: 0 0 8px;
}
.post-meta {
  font-size: 12px;
  color: #777;
  display: flex;
  gap: 12px;
  align-items: center;
}
.post-category {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #339999;
  font-size: 11px;
}

/* 本文 */
.post-body {
  font-size: 15px;
  line-height: 1.8;
}
.post-body p {
  margin: 0 0 1.2em;
}

/* アイキャッチ（使う場合） */
.post-eyecatch {
  margin: 0 0 24px;
}
.post-eyecatch img {
  width: 80%;        /* 画像を80%表示にする */
  height: auto;
  display: block;
  margin: 0 auto;    /* ← これでセンタリング！ */
  border-radius: 4px;
}

@media (max-width: 599px) {
  .post-eyecatch img {
    width: 100%;
  }
}
.post-eyecatch figcaption {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}
/* ===============================
   コメント欄
   =============================== */
.comment-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.comment-title {
  font-size: 20px;
  margin: 0 0 16px;
}

/* 入力フォーム（見た目だけ） */
.comment-form {
  margin-bottom: 32px;
}

.comment-form textarea {
  width: 100%;
  height: 60px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
  background: #f8f8f8;
  color: #777;
  font-size: 14px;
}

.comment-form textarea:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.comment-form button {
  margin-top: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #cccccc;
  color: #fff;
  cursor: not-allowed;
  font-size: 14px;
}

.comment-note {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* コメント一覧 */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 16px;
  border-radius: 6px;
}

.comment-author {
  font-weight: bold;
  font-size: 14px;
}

.comment-date {
  font-size: 12px;
  color: #777;
  margin-bottom: 8px;
}

.comment-text {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
}

/* コメント内CTA（最新記事を読む） */
.comment-cta{
  margin-top: 10px;
}

.latest-article-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #339999;       /* ミント */
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 2px 2px 2px #bbb;
  transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
}

.latest-article-btn::after{
  content: "›";
  font-size: 16px;
  line-height: 1;
  opacity: .9;
}

.latest-article-btn:hover{
  box-shadow: none;
  transform: translateY(1px);
  opacity: .95;
}

/* =========================
   ★ 怪しいワードだけ明朝体にするクラス
   ========================= */
.sus-serif {
  font-family: "Hiragino Mincho ProN", "MS Mincho", serif !important;
  letter-spacing: 0.03em;
  font-weight: bold;
}

/* フッター（タグ＆前後リンク） */
.post-footer {
  margin-top: 32px;
  border-top: 1px solid #eee;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-tags span {
  font-size: 12px;
  margin-right: 6px;
  color: #339999;
}
.post-nav a {
  font-size: 12px;
  color: #339999;
  text-decoration: none;
}
.post-nav a:hover {
  text-decoration: underline;
}

/* 記事下のナビの間隔調整 */
.post-nav {
  display: flex;
  gap: 16px;   /* ← ボタン同士の隙間が広くなる */
  margin-top: 12px;
}
/* 個別記事のナビゲーションリンク */
.post-nav a {
  padding: 4px 0;
  display: inline-block;
}

/* TOPへ戻るリンク */
.back-to-top {
  margin-top: 32px;
  text-align: right;
}

.back-to-top a {
  color: #339999;
  font-size: 14px;
  text-decoration: none;
}

.back-to-top a:hover {
  text-decoration: underline;
}

/* 右カラム（検索＋バナー） */
#sidebar {
  margin-top: 24px; /* SP時：トップ画像のあとに検索窓が来る */
}

/* 検索窓 */
.search-box {
  border: 1px solid #339999;
  background: #ffffff;
  padding: 16px;
  margin-bottom: 24px;
}

.side-title {
  margin: 0 0 12px;
  font-size: 14px;
  text-align: center;
}

.search-box form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-box input[type="text"] {
  padding: 8px;
  border: 1px solid #ccc;
}
/* 検索ボタン（通常） */
.search-box button {
  padding: 10px 16px;
  background: #339999;         /* 基本色 */
  color: #ffffff;              /* 文字は白で見やすく */
  border: none;
  border-radius: 8px;          /* 角丸 */
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* ホバー（少し明るくして浮かせる） */
.search-box button:hover {
  background: #40a7a7;         /* #339999 の明るめ */
  /* transform: translateY(-2px); ふわっと上に動く */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* クリック（少し暗くして押し込む感じ） */
.search-box button:active {
  background: #2b8585;         /* #339999 の少し濃い色 */
  transform: translateY(0);
  box-shadow: none;
}

/* バナーエリア（PCのみ表示にする） */
.banner-area {
  border: 1px solid #339999;
  border-radius: 5px;
  background: #ffffff;
  padding: 16px;
}

.banner {
  /* border: 1px solid #ccc; */
  padding: 16px;
 /* margin-bottom: 12px; */
  text-align: center;
}

.banner-area img {
  width: 100%;     /* 枠の横幅にフィット */
  height: auto;    /* 画像の縦横比を自然に保つ */
  display: block;  /* 余計な隙間ができるのを防ぐ */
}

/* フッター */
.site-footer {
  border-top: 1px solid #339999;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px;
  text-align: center;
}

.copyright{
  font-size: 80%;
  text-align: center;
}
.number{
  padding-right:20px;
  padding-bottom:20px;
  font-size: 90%;
  text-align: right;
}

/* =========================================
   PCレイアウト（ワイヤー通り2カラム表示）
   ========================================= */
@media (min-width: 960px) {
  .layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }

  /* 左カラムを左、右カラムを右に */
  #main-column {
    order: 1;
    flex: 1;
    margin-top: 0;
  }

  #sidebar {
    order: 2;
    width: 320px;
    flex-shrink: 0;
    margin-top: 0;
  }

  /* PCではバナーを表示 */
  .banner-area {
    display: block;
  }
}

/* =========================================
   スマホレイアウト
   ヘッダー → トップ画像 → 検索窓 → 左カラム → フッター
   （バナーは非表示）
   ========================================= */
@media (max-width: 959.98px) {
  .hero-inner,
  .layout,
  .header-inner,
  .footer-inner {
    padding: 0 12px;
  }

  /* layout 内は縦並び（DOM順そのまま）：
     sidebar(検索) → main(左カラム) */
  .layout {
    display: block;
  }
  
/* スマホでのロゴ縮小 */
@media (max-width: 599px) {
  .logo-image {
    height: 80px;   /* ← PCは120px、SPは小さめに */
  }

  .hero-bar {
    margin-top: 110px;  /* ← ロゴ縮小に合わせて調整 */
  }
}

  /* バナーはスマホでは非表示 */
  .banner-area {
    display: none;
  }
}
