@charset "UTF-8";

/* blog
-------------------------------------*/

/* レイアウト共通 */
.blog-layout {
  display: grid;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 10px;
  gap: 40px;
  grid-template-columns: 2.7fr 0.8fr;
}
/* 左カラム */
.blog-left {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
/* 左カラム：記事一覧 */
.blog-left section h2 {
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: bold;
}
/* 記事セクション */
.blog-left section {
  margin-bottom: 40px;
}

/* ブログカードリスト */
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}
.blog-card {
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.blog-card a:hover {
  text-decoration: none;
}

/* カード内コンテンツ */
.blog-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}
.card-content {
  display: block;
  padding: 16px;
}
/* カテゴリタグ */
.card-category {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  border-radius: 4px;
}
.card-content time {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #555;
}
.card-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: bold;
  color: #222;
}
.card-excerpt {
  font-size: 0.8rem;
  color: #444;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;     /* 最大2行で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-excerpt-3line {
  -webkit-line-clamp: 3;     /* 最大3行で省略 */
}

.category-culture    { background-color: #A0522D; } /* 文化・伝統 */
.category-ingredient { background-color: #228B22; } /* 素材・落雁 */
.category-season     { background-color: #1E90FF; } /* 季節・行事 */


/* 右カラム：カテゴリ一覧 */
.blog-map {
  margin-top: 20px;
  padding: 20px;
}
.blog-map h2 {
  margin-bottom: 15px;
  font-family: var(--serif-font);
  font-size: 1.1rem;  
  font-weight: bold;
}
.blog-map h3 {
  margin: 0 0 8px 8px;
  font-family: var(--serif-font);
  font-size: 0.9rem;
  font-weight: bold;
}

/* カテゴリ一覧のタイトル用（右カラム h3） */
.blog-map h3.category-culture    { color: #A0522D; background: none; }
.blog-map h3.category-ingredient { color: #228B22; background: none; }
.blog-map h3.category-season     { color: #1E90FF; background: none; }

.category-group {
  margin-bottom: 20px;
}
.category-list {
  display: inline-block;
  max-width: 280px;
  padding-left: 12px;
  text-align: left;
  list-style-type: disc;
}
.category-list li {
  margin-bottom: 5px;
  line-height: 1.5;
}
.category-list li a {
  display: block;
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
}
.category-list li a:hover {
  text-decoration: underline;
}

/* =================================
   ブログ記事ページ：記事部分
================================= */

.blog-main {
  max-width: 960px;
  margin: 0 auto 60px;
  padding: 20px;
}
.blog-brand {
  margin: 20px 0;
  font-family: var(--serif-font);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
}
/* 日付 */
.blog-article-date {
  display: block;
  margin: 20px 0 8px;
  font-size: 0.9rem;
  color: #555;
}
/* カテゴリ */
.blog-article-category {
  margin-bottom: 30px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #444;
}
/* 記事画像 */
.blog-article-figure {
  margin: 50px 0;
  text-align: center;
}
.blog-article-figure img {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  height: auto;  
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
.blog-article-figure figcaption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #222;
}


/* 記事本文 */
.article-title {
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
}
.blog-article h2 {
  margin-bottom: 20px;
  padding: 0 0 6px 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
  line-height: 1.5;
  border-bottom: 2px solid #eee;
  border-left: 4px solid #C0C0C0;
}
.blog-article h3 {
  margin-bottom: 16px;
  padding-left: 16px;
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
  text-indent: 0;
  position: relative;
}
.blog-article h3::before {
  content: "・";
  color: #222;
  position: absolute;
  left: 0;
}
.styled-h3 h3 {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  letter-spacing: 0.03em;
}
.styled-h3 h3::before {
  content: none;
}

.blog-article section {
  margin-bottom: 2.5rem;
}
.blog-article section:last-of-type {
  margin-bottom: 4rem;
}

.blog-article p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #222;
  line-height: 1.2;
}
.mt-4 {
  margin-top: 2rem;
}

.blog-article p a {
  color: #0044cc;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.blog-article p a:hover {
  color: #1E90FF;
}

.related-articles {
  margin: 4rem 0 3rem;
  padding: 2rem 2rem 3rem;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.related-articles h2 {
  margin-bottom: 1.4rem;
  font-size: 1.2rem; 
  font-weight: 600;
  letter-spacing: 0.05em;
}
.related-subtext {
  font-size: 0.8em;     /* h2 に対して少し小さめ */
  font-weight: 500;
}
.related-articles ul {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(3, 1fr);    /* 3列 */
  gap: 1.5rem;
}
.related-articles li + li {
  margin-top: 1rem;
}
.related-articles li:first-child {
  margin-top: 1rem;     /* h2との距離を調整 */
}
.related-articles a {
  display: inline-block;
  padding: 0.1rem 0 0.1rem 0.8rem;
  font-size: 1rem;
  font-style: italic;
  color: #333;
  text-decoration: none; 
  transition: 0.2s ease;
  border-left: 3px solid #dcdcdc;
}
.related-articles a:hover {
  color: #000;
  border-left-color: #000; 
}


/* 前後記事リンク */
.blog-article-nav {
  display: flex;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.blog-article-nav a {
  font-family: var(--serif-font);
  font-size: 1rem;
  font-weight: bold;
  font-style: italic;
  color: #0044cc;
  text-decoration: none;
  transition: color 0.3s ease;
}
.blog-article-nav a:hover {
  color: #1E90FF;
  text-decoration: underline;
}
/* 無効（前の記事なし） */
.blog-article-nav .disabled {
  font-family: var(--serif-font);
  font-size: 1rem;
  color: #777;
  cursor: default;
  pointer-events: none;
}


/* responsive styles
-------------------------------------*/
@media screen and (max-width: 992px) {

  /* === blog === */

  /* ブログカードを横2列表示 */
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 右カラム：カテゴリ一覧 */
  .blog-map {
    margin-top: 20px;
    font-size: 0.9rem;
  }
  .blog-map h2 {
    font-size: 1rem;
  }
  .blog-map h3 {
    font-size: 0.9rem;
    text-align: left;
  }
  .category-list a {
    font-size: 0.9rem;
  }
  
  /* ブログ内容 */
  .blog-main {
    padding: 15px;
  }
  .blog-article-figure img {
    max-width: 320px;
  }
  .article-title {
    margin-bottom: 18px;
    font-size: 1.4rem;
  }
  .blog-article h2 {
    margin-bottom: 18px;
    padding-left: 12px;
    font-size: 1.1rem;
  }
  .blog-article h3 {
    margin-bottom: 14px;
    padding-left: 14px;
    font-size: 0.95rem;
  }
  .blog-article p {
    margin-bottom: 18px;
    font-size: 0.9rem;
  }
  .blog-article-figure {
    margin: 40px 0;
  }
  .blog-article-nav a {
    font-size: 0.9rem;
  }

  .related-articles ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
 .related-articles h2 {
    font-size: 1.1rem;
  }
  .related-articles a {
    font-size: 0.9rem;
  }

}


@media screen and (max-width: 600px) {

  /* === blog === */

  .blog-layout {
    display: flex;
    flex-direction: column;  /* 縦並び */
  }
  .blog-left {
    width: 100%;
    order: 1;                /* 左カラム 先に表示 */
  }
  .blog-list {
    display: flex;
    flex-direction: column;
    align-items: center;     /* カードを中央に寄せる */
    gap: 25px;
  }
  .blog-card {
    width: 90%;              /* 画面幅に対して90% */
    max-width: 280px;        /* 最大幅はこれまで通り */
  }

  /* 右カラム：カテゴリ一覧 */
  .blog-map {
    width: 100%;
    order: 2;                /* 右カラム 下に表示 */
    margin-top: 20px;
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
  }
  .blog-map h2 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    text-align: center;
  }
  .blog-map h3 {
    margin: 20px 0 10px;
    font-size: 1rem;
    text-align: center;
  }

  .category-group {
    margin-bottom: 15px;
    text-align: center;
  }
  .category-list {
    display: inline-block;
    max-width: 280px;
    margin: 0;
    padding-left: 0;
    text-align: left;
  }
  .category-list li {
    margin-bottom: 4px;
    line-height: 1.6;
  }
  .category-list li a {
    display: block;
    font-size: 0.9rem;
    text-align: left;
  }

  /* ブログ内容 */
  .blog-main {
    padding: 10px;
  }
  .blog-brand {
    margin: 16px 0;
    font-size: 1.5rem;
  }
  .blog-article-figure img {
    max-width: 260px;
  }
  .article-title {
    margin-bottom: 16px;
    font-size: 1.2rem;
  }
  .blog-article h2 {
    margin: 24px 0 16px 0;
    padding-left: 10px;
    font-size: 1rem;
  }
  .blog-article h3 {
    margin-bottom: 12px;
    padding-left: 12px;
    font-size: 0.9rem;
  }
  .blog-article p {
    margin-bottom: 16px;
    font-size: 0.9rem;
  }
  .blog-article-figure {
    margin: 30px 0;
  }
  .blog-article-nav {
    flex-direction: row;     /* 横並びにする */
    flex-wrap: wrap;         /* 画面幅が狭いときは折り返す */
    justify-content: space-between;    /* 左右に分ける */
    gap: 10px;               /* リンク間のスペース */
  }
  .blog-article-nav a {
    font-size: 0.85rem;
  }

  .related-articles ul {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .related-articles h2 {
    margin-bottom: 2rem;
    font-size: 1rem;
  }
  .related-articles li + li {
    margin-top: 0.6rem;      /* リンク同士の距離を少しせばめる */
  }
  .related-articles li:first-child {
    margin-top: 0; /* 上の余白をリセット */
  }
  .related-articles a {
    padding: 0.2rem 0 0.2rem 0.8rem;
    font-size: 0.9rem;
  }


}