/* home.phpに対するスタイル */

/* スマホの記述 */
/* section-topの記述 */
.section-top {
  margin-bottom: 60px;
}

.top-wrapper {
  width: 80%;
  margin: 35% auto 10%;
  display: block;
}

.top-wrapper div {
  width: 100%;
  text-align: center;
}

.top-wrapper div h1 {
  font-size: 2.0rem;
  padding-bottom: 20px;
}

.top-wrapper div h2 {
  font-size: 3.0rem;
  padding-bottom: 20px;
  line-height: 1.6;
}

.top-wrapper ul {
  width: 60%;
  margin: 30% auto 0;
  text-align: center;
}

.top-wrapper ul a {
  text-decoration: none;
}

.top-wrapper ul li {
  font-size: 1.6rem;
  list-style: none;
  color: #333333;
  margin-bottom: 30px;
}

/* スマホのtop記述　ここまで*/

/* PCの記述 */
@media(min-width:960px) {

  /* section-topの記述*/
  .section-top {
    height: 37vh;
  }

  .top-wrapper {
    width: 80%;
    margin: 10% auto 0;
    display: flex;
  }

  .top-wrapper div {
    width: 50%;
    text-align: left;
  }

  .top-wrapper div h1 {
    font-size: 6.4rem;
    padding-bottom: 40px;
  }

  .top-wrapper div h2 br {
    display: none;
  }

  .top-wrapper ul {
    width: 50%;
    margin-top: 2%;
    text-align: left;
  }

  .top-wrapper ul li {
    font-size: 2.0rem;
    margin-left: 25%;
    margin-bottom: 30px;
  }
  /* PCのtop記述 　ここまで*/
}

/* section-topの記述　ここまで*/



/* =========================
  1) スマホ基準（〜759px）
========================= */
.section-blog{
  width: 90%;
  margin: 0 auto 60px;
}

:root{
  --card-min: 160px;   /* スマホは小さめ */
  --card-gap: 12px;
  --thumb-h: 120px;
}

.blog-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

/* スマホは1〜2枚想定 */
.blog-card{
  width: min(92vw, 320px);
  max-width: 100%;
}

.blog-card__link{
  display:block;
  color:inherit;
  text-decoration:none;
}

/* アイキャッチ */
.blog-card__thumb img{
  width: 100%;
  /* 1200×630 の比率を固定 */
  aspect-ratio: 1200 / 630;
  /* 枠と画像比率が同じなので切れない */
  object-fit: cover;
  height: auto;
  display: block;
}

.blog-card__noimg{
  height: var(--thumb-h);
  background: #eee;
}

/* 本文 */
.blog-card__body{
  padding: 5px;
}

.blog-card__date{
  font-size: 1.0rem;
  opacity: .7;
}

.blog-card__title{
  margin: 2px 0 0;
  font-size: 1.2rem;

  /* 2行でカット */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;

  /* 予備：clamp効かない時の最大高さ */
  /* max-height: calc(1.45em * 2); */
  
  -webkit-box-orient: vertical;
}

.blog-card__tags{
  margin-top: 8px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.chip{
  font-size: 1.0rem;
  padding: 0px 2px;
  border-radius: 4px;
  background: #eceae6;
}


/* =========================
  2) PC幅（760px〜）
========================= */
@media (min-width: 760px){

  :root{
    --card-min: 220px;   /* PCでは少し大きく */
    --card-gap: 18px;
    --thumb-h: 150px;
  }

  .blog-grid{
    gap: 20px;
    justify-content: flex-start;
  }

  /* ---- ここが5枚のキモ ---- */
  .blog-card{
    flex: 0 0 calc((100% - 24px * 3) / 4);
    border-radius: 5px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
  }

  .blog-card__body{
    padding: 14px 14px 16px;
  }

  .blog-card__date{
    font-size: 1.2rem;
  }

  .blog-card__title{
    font-size: 1.6rem;
  }

  .chip{
    font-size: 1.2rem;
    padding: 2px 10px;
  }
}


/* Instagramの記述 */
/* .instagram-wrapper {
} */
/* .instagram-wrapper h3,p {
  color: #333333;
} */

/* Instagramの記述　終わり */




/* =========================
  Blog 個別ページ
========================= */
/* single.php 用 ←ここに追加 */
/* =========================
  Blog 個別ページ（single）
========================= */

/* 記事カード全体（一覧カードの拡張） */
.single-card{
  width: min(92vw, 1140px); /* 小さい方のサイズを採用 */
  margin: 0 auto;
  border-radius: 16px;
  background: #f9f9f9;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  overflow: hidden;
}

.single-card li{
  list-style: none;
}

/* ===== 記事ヘッダー ===== */
.single-head{
  padding: 16px;
}

.single-head .blog-card__date{
  font-size: 12px;
  opacity: .7;
}

.single-title{
  margin-top: 8px;
  font-size: 2.0rem;
  line-height: 1.4;
}

/* カテゴリーチップ（一覧と共通） */
.chip--link{
  text-decoration: none;
  color: inherit;
}

/* ===== アイキャッチ ===== */
.single-thumb img{
  width: 100%;

  /* 1200×630 比率固定 */
  aspect-ratio: 1200 / 630;

  object-fit: cover;
  height: auto;
  display: block;
}

/* ===== 本文 ===== */
.single-content{
  padding: 16px;
  line-height: 1.9;
  font-size: 1.6rem;
}

/* 本文内の要素 */
.single-content p{
  margin: 0 0 1.2em;
}

.single-content img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-content a{
  text-decoration: none;
  color: rgb(105, 127, 195);
}

/* 見出し（noteっぽくシンプルに） */
.single-content h2{
  margin: 2.4em 0 0.8em;
  font-size: 20px;
  line-height: 1.4;
}

.single-content h3{
  margin: 2em 0 0.6em;
  font-size: 1.8rem;
}

/* ===== 前後記事ナビ ===== */
.single-nav{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(0,0,0,.06);
  
}

.single-nav a{
  text-decoration: none;
  font-size: 1.4rem;
  color: #333333;
  font-weight: bold;
}


/* =========================
  PC幅（760px〜）
========================= */
@media (min-width: 760px){

  .single-card{
    border-radius: 20px;
  }

  .single-head{
    padding: 24px;
  }

  .single-title{
    font-size: 28px;
  }

  .single-content{
    padding: 24px;
    font-size: 16px;
  }

  .single-content h2{
    font-size: 24px;
  }

  .single-content h3{
    font-size: 20px;
  }

  .single-nav{
    padding: 24px;
  }
}

