@charset "utf-8";
/* CSS Document */

/* ==================================================
   NEWS LIST / SINGLE
================================================== */


/* ==================================================
   共通
================================================== */

.news-inner,
.single-news-inner {
  max-width: 1100px;
  margin: 0 auto;
}


/* ==================================================
   NEWS 一覧ページ
================================================== */

.news-page {
  padding: 100px 20px;
}


/* ページタイトル */

.news-header {
  margin-bottom: 70px;
}

.news-en {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: #888;
}

.news-header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.08em;
}


/* ==================================================
   左右2カラム
================================================== */

.news-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 80px;
}


/* ==================================================
   投稿一覧
================================================== */

.news-item {
  display: flex;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid #ddd;
}

.news-item:last-child {
  border-bottom: 1px solid #ddd;
}


/* サムネイル */

.news-image {
  display: block;
  width: 220px;
  height: 145px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-image:hover img, .no-image {
  transform: scale(1.05);
}


/* サムネイルがない場合 */

.no-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.no-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(https://rakunou-seikatu.com/images/news/thumb_none.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

.no-image:hover::before {
  transform: scale(1.05);
}


/* ==================================================
   投稿情報
================================================== */

.news-info {
  flex: 1;
  text-align: left;
}


/* カテゴリー・日付 */

.news-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #888;
}

.news-category {
  color: #555;
}


/* タイトル */

.news-title {
	font-family: "Noto Serif JP", serif;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.news-title a {
  color: #325030;
  text-decoration: none;
}

.news-title a:hover {
  color: #7cb066;
}


/* 記事の一部 */

.news-excerpt {
  margin: 0 0 18px;
  color: #777;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
}


/* ==================================================
   続きを読む
================================================== */

.read-more {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid #aaa;
  padding-bottom: 3px;
  transition: 0.3s;
}

.read-more:hover {
  letter-spacing: 0.12em;
}


/* ==================================================
   サイドバー
================================================== */

.news-sidebar {
  border-left: 1px solid #ddd;
  padding-left: 40px;
  text-align: left;
}


/* サイドバー項目 */

.sidebar-box {
  margin-bottom: 50px;
  text-align: left;
}


/* Archives / Categories */

.sidebar-box h2 {
	font-family: "Jost", sans-serif;
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: left;
}


/* リスト */

.sidebar-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.sidebar-box li {
  margin-bottom: 12px;
  font-size: 16px;
  text-align: left;
}

.sidebar-box a {
  color: #325030;
  text-decoration: none;
}

.sidebar-box a:hover {
  color: #7cb066;
}


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

.news-pagination {
  margin-top: 50px;
  text-align: center;
}


/* ==================================================
   NEWS 詳細ページ
================================================== */

.single-news {
  padding: 100px 20px;
}


/* 詳細ページタイトル */

.single-header {
  margin-bottom: 70px;
}

.single-header .news-en {
  margin: 0 0 8px;
}

.single-header h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.08em;
}


/* ==================================================
   記事詳細
================================================== */

.single-main {
  min-width: 0;
}


/* カテゴリー・日付 */

.single-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #888;
}

.single-category {
  color: #555;
}


/* 記事タイトル */

.single-title {
	font-family: "Noto Serif JP", serif;
	color: #325030;
  margin: 0 0 40px;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}


/* ==================================================
   メイン画像
================================================== */

.single-image {
  margin-bottom: 50px;
}

.single-image img {
  display: block;
  width: 100%;
  height: auto;
}


/* ==================================================
   記事本文
================================================== */

.single-body {
  color: #444;
  font-size: 16px;
  line-height: 2.2;
  text-align: left;
}


/* 段落 */

.single-body p {
  margin: 0 0 30px;
}


/* 見出し */

.single-body h2 {
  margin: 70px 0 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
}

.single-body h3 {
  margin: 50px 0 20px;
  font-size: 20px;
  font-weight: 400;
}


/* 本文内画像 */

.single-body img {
  max-width: 100%;
  height: auto;
}


/* 本文リンク */

.single-body a {
  color: #555;
}


/* ==================================================
   前の記事・NEWS一覧・次の記事
================================================== */

.post-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid #ddd;
}


/* 共通 */

.post-navigation a {
  color: #325030;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: 0.3s;
}

.post-navigation a:hover {
  color: #7cb066;
}


/* 前の記事 */

.prev-post {
  text-align: left;
}


/* NEWS一覧 */

.back-news {
  text-align: center;
  padding: 0 30px;
}


/* 次の記事 */

.next-post {
  text-align: right;
}


/* ==================================================
   スマホ
================================================== */

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


  /* --------------------------------
     一覧ページ
  -------------------------------- */

  .news-page {
    padding: 60px 20px;
  }


  .news-header {
    margin-bottom: 40px;
  }


  .news-header h1 {
    font-size: 28px;
  }


  /* 1カラム */

  .news-layout {
    display: block;
  }


  /* 投稿 */

  .news-item {
    display: block;
    padding: 30px 0;
  }


  /* サムネイル */

  .news-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
  }


  /* タイトル */

  .news-title {
	  font-family: "Noto Serif JP", serif;
	  font-weight: bold;
    font-size: 19px;
  }


  /* 抜粋 */

  .news-excerpt {
    font-size: 13px;
  }


  /* --------------------------------
     サイドバー
  -------------------------------- */

  .news-sidebar {
    margin-top: 60px;
    padding: 40px 0 0;
    border-left: none;
    border-top: 1px solid #ddd;
  }


  /* --------------------------------
     詳細ページ
  -------------------------------- */

  .single-news {
    padding: 60px 20px;
  }


  .single-header {
    margin-bottom: 40px;
  }


  .single-header h1 {
    font-size: 28px;
  }


  .single-title {
	  color: #325030;
	  font-family: "Noto Serif JP", serif;
	  font-weight: bold;
    font-size: 24px;
    margin-bottom: 30px;
  }


  /* メイン画像 */

  .single-image {
    margin-bottom: 35px;
  }


  /* 本文 */

  .single-body {
    font-size: 14px;
    line-height: 2;
  }


  .single-body h2 {
    margin-top: 50px;
    font-size: 21px;
  }


  .single-body h3 {
    margin-top: 40px;
    font-size: 18px;
  }


  /* --------------------------------
     前後の記事
  -------------------------------- */

  .post-navigation {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "prev next"
      "back back";

    gap: 25px;
    margin-top: 60px;
  }


  .prev-post {
    grid-area: prev;
    text-align: left;
  }


  .next-post {
    grid-area: next;
    text-align: right;
  }


  .back-news {
    grid-area: back;
    padding-top: 25px;
    border-top: 1px solid #eee;
    text-align: center;
  }

}