/*
Theme Name: Rikyu Child
Theme URI: https://example.com/
Description: Rikyu の子テーマ
Author: Sunmark.co.jp
Template: rikyu_tcd104
Version: 1.0.0
*/

/* ==================================================
   基本スタイル
================================================== */

/* SNSノボタンの強制色指定 */
.p-wc-share-button-icon-twitter {
  background: #000000 !important;
}

.p-wc-share-button-icon-facebook {
  background: #1877f2 !important;
}

.p-wc-share-button-icon-line {
  background: #06c755 !important;
}

.l-header__logo {
  background-color: #ffffff !important;
}

.l-footer__bottom-logo,
.l-footer__bottom,
.l-footer__sns-icons,
.p-plink-actions{
  display: none !important;
}

.c-post-category {
  margin-bottom: 5px;
}

.p-category-space {
  margin: 20px 0;
}

.home .l-container__inner {
  padding: 0 20px 0;
}

.lead_contents_block {
  text-align: center;
}

.p-entry-product-main-content {
  margin-top: 50px !important;
}

.under-space {
  margin-bottom: 20px !important;
}

.top-space {
  margin-top: 20px !important;
}

.under-despace {
  margin-bottom: -10px !important;
}

.top-despace {
  margin-top: -10px !important;
}

.item-block {
  display: flex;
  flex-direction: column;
  align-items: center; /* 全体を中央寄せ */
  gap: 15px;
}

.item-table {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 600px; /* 最長行に合わせる（任意） */
  width: 100%;
}

.item-icon {
  flex-shrink: 0;
  margin-right: -20px; /* ← 以前の margin-left:-25px に相当する詰め調整 */
}

.item-text {
  margin-left: 0;
  text-align: left;
}

.item-block-index {
  display: flex;
  flex-direction: column;
  align-items: center; /* 全体を中央寄せ */
  gap: 15px;
}

.item-table-index {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 520px;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row;
}

.item-text-index {
  margin-left: 0;
  text-align: left;
  font-size: 18px !important;
  line-height: 1 !important;
}

.item-text-index::before {
  content: "● ";        /* 表示する丸 */
  color: #000;          /* 丸の色（全角スペースが混在していた箇所を統一） */
  margin-right: 0.5em;  /* 本文との間隔 */
  font-size: 35px;
  display: inline-block;
}

.category-block {
  width: 100% !important;
  margin: 20px auto -60px !important;
}

.manabi-area {
  background: linear-gradient(180deg, #e9f8f8, #e7f4da 48.5%, #dbf7ee);
  padding: 20px;
}

.catch-copy-area {
  background-color: #FEFDEA;
  padding: 0 20px 20px !important;
}

.center-list {
  max-width: 50%;
  margin: 0 auto;
  list-style-position: outside;
  padding-left: 1.5em;
  text-align: left;
}

.center-list li {
  word-wrap: break-word;
}

/* not all and (max-width: 1200px) はややクセのある条件式なので注意 */
@media not all and (max-width: 1200px) {
  .l-header__nav--sp {
    display: block !important;
  }
}

.top_lead_txt {
  margin-top: 10px !important;
  margin-bottom: -70px !important;
}

.p-page-header--text {
	padding-top: 20px !important;
}

/* ==================================================
   購入ボタン関連
================================================== */

.woocommerce a.button.alt {
  background-color: #0073aa;
  color: #fff !important;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 20px 0 -10px;
}

.woocommerce a.button.alt:hover {
  background-color: #005a87;
}

/* 商品一覧ページのみ「カートに追加」ボタンを非表示 */
.p-entry-product-cart,
#cart,
.p-entry-product-like,
.p-header-membermenu,
.p-archive03-item-actions,
.p-drawer-menu-member {
  display: none !important;
}

/* ==================================================
   見出し・装飾テキスト
================================================== */

.gradient-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 35px;
  background: linear-gradient(90deg, #6BCB77 0%, #B8E986 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  line-height: 1.4;
}

.top_lead_txt {
  font-weight: 800;
  font-size: 20px;
}

.p-cb__header-title {
  width: 85% !important;
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  padding: 0.5em 1em;
  color: #fff;
  position: relative;
  z-index: 1;
}

.p-cb__header-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #27A952;
  border-radius: 5px;
  z-index: -2;
}

.p-cb__header-title::after {
  content: '';
  position: absolute;
  border-left: 20px double #ABE7B2;
  height: 100%;
  top: 0;
  right: 50px;
  transform: skew(-20deg);
  z-index: -1;
}

/* ==================================================
   ボタンスタイル
================================================== */

.c-button {
  align-items: center !important;
  background-color: #085dc1 !important;
  background-position: right 19px center !important;
  background-image: url("/wp-content/uploads/2025/11/icon-ar-green.png");
  background-repeat: no-repeat !important;
  background-size: 15px auto !important;
  border-radius: 60px !important;
  color: #fff !important;
  display: flex !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  justify-content: center !important;
  margin: 0 auto;
  padding: 20px 40px 15px !important;
  text-decoration: none !important;
  transition: .3s !important;
  width: 266px !important;
}

/* ==================================================
   テーブル
================================================== */

table {
  table-layout: fixed;
  width: 100%;
}

table th,
table td {
  white-space: normal;
  word-break: break-word;
  border: 0 !important;
}

/* ==================================================
   著者プロフィール
================================================== */

.author_block {
	text-align: center;
	margin-bottom: 55px !important;
}

.author_prof {
  margin: 20px 20px -75px 20px;
  padding: 25px;
  border-bottom: solid 3px #21A74E;
  border-top: solid 3px #21A74E;
  text-align: left;
}

.author_name {
  font-weight: 800;
  font-size: 1.6rem;
  color: black;
  margin: 0 auto;
  height: 56.3px;
}

.author_kana {
  color: #21A74E;
  font-weight: 800;
  font-size: 1.0rem;
  margin-top: -20px;
  height: 35.2px;
}

/* ==================================================
   フッター
================================================== */

.l-footer__ad-code {
  background-color: #6f8976 !important;
}

.footer_logo {
  margin: 0 0 3px 0;
  height: 31px !important;
}

/* 「fotter」は footer のスペルミスの可能性がありますが、そのまま使用しています */
.fotter_area {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.fotter_area a {
  color: #fff !important;
  text-decoration: none;
}

.fotter_area a:hover {
  color: #fff;
  text-decoration: none;
}

.fotter_area li {
  margin-bottom: 8px;
}

/* PCで横並び */
@media (min-width: 768px) {
  .fotter_area {
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .fotter_area li {
    margin-bottom: 0;
  }
}

/* ==================================================
   WooCommerce カテゴリ一覧（旧定義・現在は下で上書き）
================================================== */

/* 
  ▼ このブロックは後半の「Rikyu対応共通」定義にほぼ完全に上書きされており、
     現状の見た目には影響していません。
     「履歴として」残しておきたい場合のみ有効化してください。
*/
/*
.p-archive03.p-wc-loop {
  margin: 25px;
  justify-content: space-between !important;
}
.p-archive03.p-wc-loop li.product-category {
  list-style: none;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-width: 420px;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.p-archive03.p-wc-loop li.product-category:hover {
  transform: translateY(-6px);
}
.p-archive03.p-wc-loop li.product-category a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.p-archive03.p-wc-loop li.product-category img {
  width: 100%;
  object-fit: cover;
  transition: filter 0.35s ease;
}
.p-archive03.p-wc-loop li.product-category:hover img {
  filter: brightness(100%);
}
.p-archive03.p-wc-loop li.product-category h2.woocommerce-loop-category__title {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  background: rgba(0,0,0,0.4);
  display: none !important;
}
.p-archive03.p-wc-loop li.product-category h2 mark.count {
  display: none;
}
*/

.woocommerce-loop-category__title {
	display: none;
}

/* ==================================================
   カルーセル設定
================================================== */

#splide01-track > .p-wc-loop,
#splide02-track > .p-wc-loop {
  flex-wrap: unset !important;
}

.splide.splide--loop {
  margin-top: 20px;
}

.p-archive03-item,
.p-archive03 .p-archive03-item {
  width: 256px !important;
}

.splide__arrow {
  display: block !important;
  opacity: 1 !important;
}

/* ==================================================
   メリットブロック
================================================== */

.c-page-home__merit-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 54px;
}

.c-page-home__merit-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  border: solid 1px #ff5874;
  border-radius: 12px;
  padding: 5px;
  flex-direction: column;
  background-color: white;
  flex: 1 1 calc(33.333% - 30px);
  max-width: calc(33.333% - 30px);
  box-sizing: border-box;
}

.c-page-home__merit-block-pict {
  text-align: center;
  width: 220px;
  height: 130px;
}

.c-page-home__merit-block-head {
  border-bottom: 1px dashed #ff5874;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px !important;
  padding: 0 0 6px;
  text-align: center;
}

.c-page-home__merit-block-head em {
  color: #ff5874;
  font-style: normal;
}

.c-page-home__merit-block-content {
  /* margin-top: -25px; */
}

@media screen and (max-width: 767px) {
  .c-page-home__merit-body {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .c-page-home__merit-block {
    flex: 1 1 100%;
    max-width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .c-page-home__merit-block-pict {
    width: auto;
  }

  .catch-copy-area {
    padding: 0 0px 20px !important;
  }
}

/* ==================================================
   その他（ドロワー・本文マージンなど）
================================================== */

/* shorthand の「center 22px / 100% auto」はやや読解が必要なので注意 */
#js-drawer {
  background: url(/wp-content/uploads/2025/11/bg-nav.png) no-repeat center 22px / 100% auto,
              linear-gradient(180deg, #e9f8f8, #e7f4da 48.5%, #dbf7ee);
  font-weight: 800;
}

.p-entry-product-main-content p {
  margin-bottom: 0 !important;
}

.p-entry-product-main-content ul {
  margin-bottom: 5px !important;
}

/* カリキュラムタイトル */
.curriculum_title {
  font-size: 19px;
  font-weight: 800;
  margin: 20px 0 10px !important;
  color: #21A74E;
  line-height: 1.4;
  padding: 0.5em 0.5em 0.5em 1.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: solid 2px #D1DBD6;
  text-align: center;
}

/*
.curriculum_title:before {
  content: "\2794";
  font-size: 1.2em;
  color: #21A74E;
  transform: rotate(45deg);
  transform-origin: center;
  display: inline-block;
}
*/

/* ==================================================
   レイアウト調整（WooCommerce columns-3）
================================================== */

/* 
   ★ ここで display: grid を指定していますが、
      下の .p-archive03.p-wc-loop { display:flex !important; } により
      実際は flex が適用されています。
      「現在の見た目を変えない」ため grid はそのまま残しつつ、
      実効値としては無効の状態を維持しています。
*/

@media (min-width: 1025px) {
  .woocommerce.columns-3 .p-archive03.p-wc-loop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
  }
}

@media (min-width: 600px) and (max-width: 1024px) {
  .woocommerce.columns-3 .p-archive03.p-wc-loop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
}

@media (max-width: 599px) {
  .woocommerce.columns-3 .p-archive03.p-wc-loop {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }

  .p-archive03.p-wc-loop li.product-category h2.woocommerce-loop-category__title {
    font-size: 1rem;
    padding: 10px 0;
    display: none !important;
  }

  .item-text-index::before {
    content: "● ";
    color: #000;
    margin-right: 0.5em;
    font-size: 27px;
    display: inline-block;
  }
}

/* 汎用レスポンシブ */
@media (max-width: 876px) {
  .p-archive03 .p-archive03-item {
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  .gradient-text {
    font-size: 18px !important;
  }

  .footer_logo {
    height: 20px !important;
    margin-bottom: 5px;
  }
}

@media (max-width: 720px) {
  .gradient-text {
    font-size: 16px !important;
  }

  .top_lead_txt {
    font-size: 15px;
    margin-bottom: -20px !important;
  }

  .author_prof {
    margin: 20px;
  }

  .p-archive03 .p-archive03-item {
    width: 100% !important;
  }

  .p-archive03-item {
    width: 220px !important;
  }
}

@media (max-width: 680px) {
  .item-text {
    margin-left: 0px !important;
  }
}

/* カテゴリースライダー調整 */
.category-swiper .swiper-slide {
  width: auto;
  list-style: none;
}

/* ==================================================
   特定セクション専用カテゴリ一覧（.p-cb--editor）
================================================== */

section.p-cb--editor .p-archive03.p-wc-loop {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

section.p-cb--editor .p-archive03.p-wc-loop li.product-category {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
  text-align: center;
  box-sizing: border-box;
}

section.p-wc-single-bottom {
	margin-top: 60px !important;
}

/* ここで一度 aspect-ratio:4/5 を指定していますが、
   後半の共通定義で aspect-ratio:auto !important が乗るため、
   実際の見た目は bottom の定義に従います（= 現状維持）。 */
.p-archive03.p-wc-loop li.product-category {
  height: auto !important;
}

.p-archive03.p-wc-loop li.product-category img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* スマホ：2列 */
@media screen and (max-width: 768px) {
  section.p-cb--editor .p-archive03.p-wc-loop li.product-category {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }

	.l-archive-blog {
		margin-top: -60px !important;
	}
}

/* PC：4列（上と似た指定だが、現状維持のため残置） */
@media screen and (min-width: 768px) {
  section.p-cb--editor .p-archive03.p-wc-loop li.product-category {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
  }
}

/* iPhoneなどスマホでもカテゴリを2列表示 */
@media screen and (max-width: 699px) {
  section.p-cb--editor .p-archive03.p-wc-loop {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  section.p-cb--editor .p-archive03.p-wc-loop li.product-category {
    flex: 1 1 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
    box-sizing: border-box;
  }

  section.p-cb--editor .p-archive03.p-wc-loop li.product-category img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}

/* ==================================================
   WooCommerce カテゴリ一覧（Rikyu対応共通・最終仕様）
   ★ 現在の見た目を決めている「決定版」ブロック
================================================== */

.p-archive03.p-wc-loop {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: 20px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.p-archive03.p-wc-loop li.product-category {
  flex: 1 1 300px;
  max-width: 350px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease;
}

.p-archive03.p-wc-loop li.product-category:hover {
  transform: translateY(-5px);
}

/* Q1 で「contain 希望」とのことですが、
   ここはすでに contain になっているため現状の見た目は維持されます。 */
.p-archive03.p-wc-loop li.product-category img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 10px;
  background-color: #fff;
}

/* タイトル表示（位置調整） */
.p-archive03.p-wc-loop li.product-category h2.woocommerce-loop-category__title {
  font-size: 1.2rem;
  margin: 10px 0 5px;
  font-weight: 600;
  color: #333;
}

/* カウント (例: (3)) を非表示 */
.p-archive03.p-wc-loop li.product-category h2 mark.count {
  display: none;
}

/* スマホ：2列並び */
@media screen and (max-width: 768px) {
  .p-archive03.p-wc-loop li.product-category {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

/* PC：横幅に応じて3〜4列 */
@media screen and (min-width: 769px) {
  .p-archive03.p-wc-loop li.product-category {
    flex: 1 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
  }
}

/* ======================================================
   カテゴリスライダー（section.p-cb--editor 限定）
====================================================== */

section.p-cb--editor .category-block .p-archive03.p-wc-loop {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* スマホ 〜767px：2列 */
@media (max-width: 767px) {
  section.p-cb--editor .category-block .p-archive03.p-wc-loop {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: center !important;
  }

  section.p-cb--editor .category-block .p-archive03.p-wc-loop li.product-category {
    width: calc(50% - 10px) !important;
    box-sizing: border-box !important;
    text-align: center;
  }
}

/* PC 768px〜：Splide */
@media (min-width: 768px) {
  section.p-cb--editor .category-block .p-archive03.p-wc-loop {
    /* display: block !important; */ /* ← コメントアウトされた leftover。必要なら検討 */
    display: flex !important;
  }

  section.p-cb--editor .category-block .splide__list {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 20px;
  }

  section.p-cb--editor .category-block .splide__slide {
    flex-shrink: 0;
    width: auto;
  }
}

/* Swiper/Slick の残骸対策 */
.category-swiper .swiper-slide,
.slick-slide {
  display: none !important;
}

/* ==================================================
   Splide 矢印デザイン
================================================== */

.splide__arrow {
  height: 50px !important;
  width: 50px !important;
  background-color: #fff !important;
  box-shadow: 0 0 8px gray !important;
}

#js-index-header .splide__arrows {
  display: none !important;
}

.p-product-badge span {
  height: 20px !important;
  line-height: 23px !important;
  border-radius: 5px !important;
}

.p-product-badge {
  top: 2% !important;
  /*left: 35% !important;*/
}

/* ==================================================
   Splide カルーセル専用：.p-archive03-item のデザイン
================================================== */

.p-recentry-viewed-products .splide[data-column="6"] {
  visibility: visible;
}

.p-related-product .splide[data-column="4"] {
  visibility: visible;
}

.p-cb--product__inner .splide[data-column="4"] {
  visibility: visible;
}

@media (max-width: 720px) {
  .p-recentry-viewed-products .splide[data-column="6"] .p-archive03-item {
    width: 70% !important;
  }

  .p-related-product .splide[data-column="4"] .p-archive03-item {
    width: 70% !important;
  }
}

/* ==================================================
   投稿一覧／関連記事のサムネイル 16:9 表示
================================================== */

/* ▼ 投稿一覧 */
.p-archive--post-item__image {
  position: relative;
  width: 100%;
  padding-top: 36.25% !important;; /* ← セミコロンが2つ（文法的には動くが不要） */
  overflow: hidden;
}

.p-archive--post-item__image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ▼ 関連記事一覧 */
.p-related-post__item-image {
  position: relative !important;
  width: 67% !important;
  padding-top: 36.25% !important;; /* ← ここもセミコロン重複 */
  overflow: hidden !important;
}

.p-related-post__item-image__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 80% !important;
  height: 80% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  margin-top: 17px;
}

/* ==================================================
   記事一覧（カードデザイン＋フィルター）
================================================== */

/* ---- フィルターエリア ---- */
.blog-filter {
  margin: 40px auto 30px;
  padding: 20px 25px;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
}

.blog-filter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  align-items: flex-end;
}

.blog-filter__item label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.blog-filter__item select,
.blog-filter__item input[type="month"] {
  display: block;
  width: 180px;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s ease;
}

.blog-filter__item select:focus,
.blog-filter__item input[type="month"]:focus {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
  outline: none;
}

.blog-filter__submit {
  padding: 10px 24px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.blog-filter__submit:hover {
  background: #555;
}

/* ---- グリッド ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

/* ---- カード ---- */
.blog-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* サムネイル：16:9 + cover */
.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: block;
}

.blog-card__thumb .thumb-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.blog-card__thumb .no-img {
  background: #ddd;
}

.blog-card__content {
  padding: 18px;
}

.blog-card__meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #888;
}

.blog-card__meta .cat {
  background: #f3f3f3;
  padding: 2px 6px;
  border-radius: 3px;
}

.blog-card__title {
  font-size: 20px;
  margin: 10px 0;
}

.blog-card__title a {
  text-decoration: none;
}

.blog-card__excerpt {
  font-size: 14px;
  color: #666;
}

/* ページネーション */
.blog-pagination {
  margin: 40px auto;
  text-align: center;
}

/* ---- モバイル対応 ---- */
@media (max-width: 768px) {
  .blog-filter__item select,
  .blog-filter__item input[type="month"] {
    width: 100%;
  }

  .blog-filter__form {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-filter__submit {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   記事一覧ページ用ヘッダー（p-page-header--archive）
========================================================= */

.p-page-header--archive {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.p-page-header--archive .p-page-header__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  z-index: 1;
}

.p-page-header--archive .p-page-header__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
/*  background: linear-gradient(
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.2)
  );*/
  background-color: #29A951;
  z-index: 2;
}

.p-page-header--archive .p-page-header__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.p-page-header--archive .p-page-header__headline {
  color: #fff;
  font-size: 42px;
  letter-spacing: 0.03em;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
  animation: fadein 0.6s ease;
}

@media (max-width: 768px) {
  .p-page-header--archive {
    height: 220px;
  }

  .p-page-header--archive .p-page-header__headline {
    font-size: 28px;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.c-post-category {
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
}

/* ==================================================
   トップページ用の投稿カード
================================================== */

.p-cb--posts__list.p-archive--post.u-flex-wrap {
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.p-archive--post-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.p-archive--post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.p-archive--post-item__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  padding-bottom: 12px;
}

.p-archive--post-item__image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.p-archive--post-item__image-bg {
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.4s ease;
}

.p-archive--post-item:hover .p-archive--post-item__image-bg {
  transform: scale(1.06);
}

.p-archive--post-item__content {
  padding: 18px 20px 8px;
}

.p-archive--post-item__category .c-post-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.2;
  color: var(--tcd-accent-color);
  border: 1px solid var(--tcd-accent-color);
  padding: 3px 10px;
  border-radius: 20px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  max-width: 100%;
  transition: background-color .2s ease, color .2s ease;
}

.p-archive--post-item__category .c-post-category:hover {
  background: var(--tcd-accent-color);
  color: #fff;
}

.p-archive--post-item__title {
  font-size: 20px;
  line-height: 1.4;
  margin: 12px 0 10px;
  font-weight: 600;
  color: #222;
  transition: color .2s ease;
}

.p-archive--post-item__title:hover {
  color: var(--tcd-accent-color);
}

.p-archive--post-item__title span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-archive--post-item__date {
  font-size: 13px;
  color: #777;
  margin: 8px 0 0;
}

.p-archive--post-item__date time {
  display: inline-block;
}

@media (max-width: 768px) {
  .p-cb--posts__list.p-archive--post.u-flex-wrap {
    grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
  }

  .p-archive--post-item__title {
    font-size: 18px;
  }
}

.p-related-post__item-link .u-flex-align-center {
  margin-left: -70px !important;
  margin-right: 0px !important;
}

.c-page-home__merit-block-content p {
  margin-bottom: 0px !important;
}

/* セクション背景カラー */

.p-cb > section:nth-child(1) {
	margin-top: 0px !important;
	background-color: #FFFFFF !important;
	padding: 25px 0px !important;
}

.p-cb > section:nth-child(2) {
	background-color: #FEFDEA !important;
	padding: 25px 0px !important;
	margin-top: 0px !important !important;
}

.p-cb > section:nth-child(3) {
	margin-top: 0px !important;
	background-color: #F2FFFD !important;
	padding: 25px 0px !important;
}

.p-cb > section:nth-child(4) {
	background-color: #FFFFFF !important;
	padding: 25px 0px !important;
	margin-top: 10px !important;
}

.p-cb > section:nth-child(5) {
	background-color: #FEFDEA !important;
	padding: 25px 0px !important;
	margin-top: 0px !important;
}

.p-cb > section:nth-child(6) {
	margin-top: 0px !important;
	background: linear-gradient(180deg, #e9f8f8, #e7f4da 48.5%, #dbf7ee) !important;
	padding: 25px 0px !important;
}

.p-plink-thumbnail-image-bg {height: auto !important;}
.p-plink-thumbnail {width: 305px !important;}

/* ▼ スマホ調整（768px以下）*/
@media screen and (max-width: 767px) {
  /* 1アイテムの高さも少し大きく */
  .p-news-ticker__item {
	white-space: nowrap;        /* 改行しない */
	overflow: hidden;           /* はみ出し非表示 */
	text-overflow: ellipsis;    /* … を付ける */
  }
	.p-news-ticker .splide__list {
		will-change: transform;
		transform: translateZ(0);
	}
	.p-plink-thumbnail {
		width: 100% !important;
	}
}

#ez-toc-container {
	margin: 0 auto;
}

#ez-toc-container nav{
	text-align: left;
	font-size: 0.95rem;
	padding: 30px;
}

#ez-toc-container .ez-toc-title {
	font-size: 1rem !important;
}
