/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/*********************************************************
 サイト共通
*********************************************************/

/* ---------------------------
 共通フォント指定
 --------------------------- */
:root {
  --vk-size-text: 16px;
  --vk-color-text-body: #2b2b2b;
}
body {
  color: var(--vk-color-text-body);
  font-size: var(--vk-size-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", Meiryo, sans-serif;
}

/* サイト全体のテキストホバーの色変更 */
a:hover {
  color: #bcb91a;
}

/* 記事本文内の強調テキスト */
body.single-post .entry-body b,
body.single-post .entry-body strong {
  color: #3c543f;
  font-size: 1.1em;
  font-weight: 600;
}




/* ---------------------------
 フッターコピーライト
 --------------------------- */
/* Lightning標準コピーライトだけを非表示 */
.site-footer-copyright,
.site-footer__copy,
.copySection {
  display: none !important;
}

.site-footer {
  text-align: center;
  font-size: 10px; /* PC向け基本サイズ */
  color: #555;
  padding: 1em 0;
}

@media screen and (max-width: 768px) {
  .site-footer {
    font-size: 8px; /* スマホ向け */
  }
}

.site-footer a {
  text-decoration: none;
  color: #555;
}

.site-footer a:hover {
  text-decoration: none;
  color: #000;
}


/*********************************************************
 下層ページメインビジュアルの背景画像
*********************************************************/
.page-header .page-header-title {
    background-image: url('https://moregreen-lab.com/images/second_001.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 1em;
    /* 画面幅いっぱいに広げる */
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

/* ---------------------------
 ヘッダーとメインビジュアルの間のマージンを削除
 --------------------------- */
.page-header-inner.container {
    /* 上マージンを0にする */
    margin-top: 0 !important;
}

/*********************************************************
 SP版ハンバーガーアイコンの画像差替え
*********************************************************/
/* ---------------------------
 ハンバーガーメニューの開閉
 --------------------------- */
.vk-mobile-nav-menu-btn,
.vk-mobile-nav .vk-mobile-nav-menu-btn,
button.vk-mobile-nav-menu-btn,
.menu-toggle,
.vk_mobile_nav_menu_btn {
  border: none !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  width: 44px !important;
  height: 44px !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  background-image: url("https://moregreen-lab.com/images/icon_images/menu.png") !important;
}

.vk-mobile-nav-menu-btn.menu-open,
.menu-toggle.open {
  background-image: url("https://moregreen-lab.com/images/icon_images/close.png") !important;
}

/* ---------------------------
 ハンバーガーメニュー内のアコーディオンボタンアイコンの開閉
 --------------------------- */
/* 閉じている時（下向き矢印） */
.vk-menu-acc .acc-btn {
  background-image: url('https://moregreen-lab.com/images/icon_images/icon_under.png') !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  border: none !important;
}

/* 開いている時（×ボタン） */
.vk-menu-acc .acc-btn.acc-btn-open {
  background-image: url('https://moregreen-lab.com/images/icon_images/close02.png') !important;
  background-size: 30px 30px;
  border: none !important;
}

/*
 * ハンバーガーメニュー内のアコーディオンボタンのアイコンを修正
 * 既存のスタイルを強制的に上書き
 */
/* 閉じている時（下向き矢印） */
.vk-menu-acc .acc-btn.acc-btn-open {
  background-image: url('https://moregreen-lab.com/images/icon_images/icon_under.png') !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  border: none;
}
/* 開いている時（×ボタン） */
.vk-menu-acc .acc-btn {
  background-image: url('https://moregreen-lab.com/images/icon_images/close02.png') !important;
  background-position: center;
  background-size: 24px 24px;
  border: none;
}

/* ---------------------------
 上に戻るボタン
 --------------------------- */
/* 上に戻るボタンカスタマイズ */
.page_top_btn {
  background: none;
  background-image: url("https://moregreen-lab.com/wp-content/uploads/2025/06/pagetop.png");
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: none;
}
/* 上に戻るボタンhover時の処理 */
.page_top_btn:hover {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

/*********************************************************
 トップページ
*********************************************************/
/* =======================================
 トップページ：メインビジュアル
======================================= */
/* コンテナ全体の基本設定と画面幅に合わせるための設定を統合 */
.custom-hero-slider {
  width: 100vw !important;
  height: 100vh;
  position: relative;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
/* 各スライド */
.custom-hero-slider .slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
/* 表示中のスライド */
.custom-hero-slider .slide.active {
  opacity: 1;
  z-index: 2;
}
/* 透過オーバーレイ */
.custom-hero-slider .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
/* キャッチ画像とアニメーション */
.custom-hero-slider .hero-catch-img {
  width: clamp(320px, 50vw, 680px);
  height: auto;
  opacity: 0;
  animation: heroCatchFade 1.6s ease-out 0.4s forwards;
  z-index: 2;
  position: relative;
  max-width: 100% !important;
}
@media (max-width: 768px) {
  .custom-hero-slider .hero-catch-img {
    max-width: none !important;
  }
}
@keyframes heroCatchFade {
  0% {
    opacity: 0;
    transform: scale(0.75) translateY(50px);
  }
  60% {
    opacity: 1;
    transform: scale(1.15) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
/* サブキャッチ */
.hero-subtext {
  font-family: 'Yomogi', cursive;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.6;
  text-align: center;
  margin-top: 1rem;
  z-index: 2;
  position: relative;
  opacity: 0;
  animation: heroSubtextFade 1.8s ease-out 0.7s forwards;
}
@keyframes heroSubtextFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTAボタン */
.hero-button {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: #00bfff; /* 通常時の水色 */
  color: white; /* 常に白文字 */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 0; /* 角丸をなくす */
  z-index: 2;
  position: relative;
  transition: background 0.3s, transform 0.2s; /* opacityのトランジションを削除 */
  animation: fadeInUp 1.6s ease-out 1s forwards;
}

.hero-button:hover {
  background: #0090cc; /* 少し濃い水色 */
  color: white; /* ホバー時も白を維持 */
}

@media screen and (max-width: 768px) {
  .hero-button {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}

/* アニメーションの定義 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================
 トップページ：メインビジュアル微調整
======================================= */
/* スマホ右端に出る白線対策 */
html, body {
  overflow-x: hidden;
}
/* ヘッダー下の余白をトップページだけ消す */
body.home .site-body {
  margin-top: 0;
  padding-top: 0;
}
body.home .main-section,
body.home #main {
  margin-top: 0;
  padding-top: 0;
}








/*********************************************************
 トップページ：トピックスバナー（フル幅・縦並び）
*********************************************************/
.custom-topics-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  /* 画面幅いっぱいに広げる設定 */
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 2.5em;
  margin-bottom: 2.5em;
  padding: 0; /* 左右の余白をなくして端まで伸ばす */
  overflow: hidden;
}

.custom-topics-item {
  width: 100%; /* 親要素の100vwに合わせる */
}

.custom-topics-item a {
  display: block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.custom-topics-item a:hover {
  opacity: 0.8;
}

.custom-topics-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
  /* フル幅の場合は影（box-shadow）がない方が馴染むため削除、必要なら戻してね */
  box-shadow: none; 
  vertical-align: bottom;
  display: block;
}

/* スマホ用の微調整 */
@media screen and (max-width: 768px) {
  .custom-topics-container {
    gap: 20px;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
  }
}


/*********************************************************
 トップページのNew Blogs
*********************************************************/
/* New Blogsの下のマージンを削除 */
.wp-block-heading.has-text-align-center {
  margin-bottom: 0 !important;
}

/* =======================================
 トップページ：ブログカード
======================================= */
/* 共通カードスタイル */
.wp-block-latest-posts.is-grid li,
.news-card {
  background: #fff;
  /* 修正: 角丸をなくす */
  border-radius: 0;
  /* 修正: ホバー時の効果をなくすためのスタイル */
  transition: none;
  box-shadow: none;
}
.wp-block-latest-posts__featured-image img,
.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.news-card-content {
  padding: 15px;
}
.news-card-content h3 {
  font-size: 1.1rem;
  margin: 0 0 5px 0;
}
.news-card-excerpt,
.wp-block-latest-posts__post-excerpt {
  font-size: 0.9rem;
}
.news-card-date,
.wp-block-latest-posts__post-date {
  font-size: 0.9rem;
  color: #bcb91a;
  margin-bottom: 10px;
}
.news-card-date.typesquare_option {
  color: #bcb91a !important;
  font-weight: 80 !important;
}
.news-card:hover h3 {
  color: #bcb91a;
}
.news-card:hover .news-card-excerpt {
  color: #333;
}
/* 画像を少し拡大するホバー効果 */
.news-cards .news-card-image-container {
    overflow: hidden;
}
.news-cards .news-card-image-container img {
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}
.news-cards .news-card:hover .news-card-image-container img {
    transform: scale(1.05);
}
/* カードコンテナのレイアウト */
.news-cards,
.wp-block-latest-posts.is-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
}
.news-cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}
.news-card {
  flex: 0 1 calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wp-block-heading.has-text-align-center {
  text-align: center;
  margin-bottom: 40px;
}
/* =======================================
 ブログカード：カテゴリタグアイコン
======================================= */
/* カテゴリタグのスタイル */
.vk_post_img,
.news-card-image-container {
  position: relative;
  overflow: hidden;
}
.category-info-wrapper {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 50px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.category-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.category-name {
  line-height: 1;
}
/* 特定のカテゴリタグの上書きスタイル */
.news-card-image-container .category-info-wrapper {
  padding: 6px 18px;
  border-radius: 0;
  font-weight: normal;
  font-size: 0.8em;
}
.news-card-image-container .category-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
}
/* メディアクエリ（スマホ対応）の統合 */
@media (max-width: 767px) {
  .news-cards,
  .wp-block-latest-posts.is-grid {
    grid-template-columns: 1fr;
  }
  .news-cards,
  .news-cards-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .news-card {
    width: 90%;
    flex: 0 1 100%;
    margin: 0 auto 15px;
  }
  .news-card img {
    width: 100%;
    height: auto;
  }
  .news-cards-container {
    display: block !important;
    width: 100% !important;
  }
  .news-card {
    margin: 0 auto 15px !important;
  }
  .news-card img {
    width: 100% !important;
    height: auto !important;
  }
}
/* 強制的な上書き */
.news-cards-container {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin: 0 auto !important;
}
.news-card {
  flex: 0 1 calc(33.333% - 20px) !important;
}

/*********************************************************
 ブログカテゴリページ
*********************************************************/
/* カテゴリタグアイコン内のフォントサイズ変更 */
/* スマホ表示：フォントサイズ8px */
@media screen and (max-width: 768px) {
  .vk_post_imgOuter_singleTermLabel {
    font-size: 8px;
  }
}

/*********************************************************
 投稿記事ブログページ
*********************************************************/
/* =======================================
 hタグ
======================================= */
/* 投稿記事内の h2 見出し */
body.single-post .entry-body h2 {
  border-bottom: solid 3px #c0c0c0;
  position: relative;
}
body.single-post .entry-body h2:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #bcb91a;
  bottom: -3px;
  width: 30%;
}

/* 投稿記事内の h3 見出し */
body.single-post .entry-body h3 {
  border-bottom: solid 2px #c0c0c0;
  position: relative;
}
body.single-post .entry-body h3:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 2px #bcb91a;
  bottom: -3px;
  width: 30%;
}

/* 投稿記事内の h4 見出し */
body.single-post .entry-body h4 {
  color: #000000;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 0.2em;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

/* =======================================
 記事内目次アコーディオンの装飾
======================================= */
.custom-accordion {
    font-family: "TBUDゴシック R", sans-serif;
    width: 100%;
    margin: 1.5em 0;
    padding: 0.5em 1em;
    box-sizing: border-box;
    background-color: #f8fbf8;
    border: 2px dashed #8d6449;
    border-radius: 8px;
    position: relative;
}

.custom-accordion summary {
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.3em 0;
    position: relative;
    list-style: none;
}

/* 目次の文字の横にある「ー」を削除 */
.custom-accordion summary::before {
    content: none;
}

/* 開閉のテキストを表示 */
.custom-accordion summary::after {
    content: "Open";
    position: absolute;
    right: 1em;
    font-size: 0.6em;
    color: #808080;
}

/* 開いている時にテキストを変更 */
.custom-accordion[open] summary::after {
    content: "Close";
}

.custom-accordion ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

/* H2リスト項目 */
.custom-accordion li {
    position: relative;
    padding-left: 1.5em; /* H2のインデント */
    margin: 0.3em 0;
}

/* H2に「ー」を付ける */
.custom-accordion li span.toc-h2-icon::before {
    content: "ー";
    color: #8d6449;
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 1em;
    display: inline-block;
}

/* H3のインデントと「ー」を調整 */
.custom-accordion li.toc-sub {
    padding-left: 3em; /* H2より深いインデント */
}

.custom-accordion li.toc-sub .toc-h3-icon::before {
    content: "ー";
    color: #8d6449;
    position: absolute;
    left: 1.5em; /* H3のインデントに合わせて調整 */
    top: 0.1em;
    font-size: 1em;
    display: inline-block;
}

/* アンダーラインリンク */
.custom-accordion li a {
    text-decoration: none;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 2px;
}

/* スマホ版の調整 */
@media screen and (max-width: 768px) {
    .custom-accordion summary::after {
        font-size: 0.5em;
    }

    .custom-accordion li a {
        font-size: 0.8em;
    }
}

/* =======================================
 画像装飾
======================================= */
/* 投稿画像装飾 */
.single-post .entry-body img {
  max-width: 100%;
  height: auto;
  margin: 0.3em auto;
  display: block;
  border: 3px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* =======================================
 記事内liタグの装飾
======================================= */
/* 可変サイズの白ボックス（リスト全体） */
body.single-post .entry-body ul.wp-block-list {
  background-color: #f8fbf8;
  border: 2px dashed #80aba9;
  border-radius: 8px;
  padding: 1em 2em;
  margin: 1.5em 0;
  width: 100%;
  max-width: 100%;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
/* 各リスト項目 */
body.single-post .entry-body ul.wp-block-list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.6em;
  list-style: none;
  white-space: normal;
}
/* チェックマーク */
body.single-post .entry-body ul.wp-block-list li::before {
  content: "\2713";
  color: #8d6449;
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 1em;
}

/* =======================================
 記事内olタグの装飾
======================================= */
/* 外枠ボックス */
body.single-post .entry-body ol.wp-block-list {
  background-color: #f8fbf8;
  border: 2px solid #d0e0dc;
  border-radius: 10px;
  padding: 1.2em 1.5em;
  margin: 2em 0;
  max-width: 100%;
  width: 100%;
  display: block;
  counter-reset: step-counter;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
/* 各リスト項目 */
body.single-post .entry-body ol.wp-block-list li {
  position: relative;
  padding-left: 5em;
  margin-bottom: 1.2em;
  list-style: none;
  counter-increment: step-counter;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 0.6em;
}
/* 最後の下線は非表示 */
body.single-post .entry-body ol.wp-block-list li:last-child {
  border-bottom: none;
}
/* Step表示 */
body.single-post .entry-body ol.wp-block-list li::before {
  content: "Step" counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #8d6449;
  font-size: 0.9em;
  background-color: #f0f0f0;
  padding: 0.3em 0.7em;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* =======================================
 記事ページ内の前回記事はこちら
======================================= */
/* 「関連記事」コンテナ */
.related-article-container {
    margin-top: 2em;
}

/* 「関連記事」タイトル */
.related-article-container h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

/* ブログカードの基本コンテナ */
.link-card {
    background-color: #ffffff; /* 背景を白に設定 */
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.link-card-inner {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
    padding: 1em; /* 内側の余白を広く */
}

.link-card-inner:hover {
    background-color: #f8f8f8;
}

/* 画像コンテナ */
.link-card-image-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.link-card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* テキストコンテンツ */
.link-card-content {
    flex: 1;
    padding-left: 1em; /* 画像との間に余白を追加 */
}

.link-card-title {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0 0 0.2em 0;
}

.link-card-date,
.link-card-excerpt {
    font-size: 0.85em;
    color: #888;
    margin: 0 0 0.5em 0;
    line-height: 1.5;
}

/* 「この記事を読む」リンク */
.link-card-readmore {
    font-size: 0.85em;
    color: #bcb91a; /* 指定されたカラーに変更 */
    text-align: right; /* 右寄せに */
    margin: 0;
}

/* スマホ版の調整 */
@media (max-width: 768px) {
    .link-card-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5em; /* スマホでは余白を少し小さく */
    }
    .link-card-image-container {
        width: 100%;
        height: auto;
        flex-shrink: 1;
    }
    .link-card-thumbnail {
        border-radius: 8px 8px 0 0;
    }
    .link-card-content {
        width: 100%;
        padding: 0.5em 0;
    }
    .link-card-readmore {
        text-align: left; /* スマホでは左寄せに戻す */
    }
}

/* =======================================
 記事内Check！ ボックスの装飾
======================================= */
.check-box {
  position: relative;
  margin: 2em 0;
  padding: 1em 1em;
  border: solid 3px #62c1ce;
  display: block;
  background-color: #fff;
}
.check-box .box-title {
  position: absolute;
  display: inline-block;
  top: -27px;
  left: -3px;
  padding: 0 9px;
  height: 25px;
  line-height: 25px;
  font-size: 12px;
  background: #62c1ce;
  color: #ffffff;
  font-weight: bold;
  border-radius: 5px 5px 0 0;
}
.check-box p {
  margin: 0;
  padding: 0;
}

/* =======================================
 記事内ヒント ボックスの装飾
======================================= */
.hint-box {
  background: #f8f0d7;
  border-left: 5px dotted rgba(0,0,0,.1);
  box-shadow: 0 0 0 5 #f8f0d7;
  padding: 1em;
  margin: 1em 5px;
  display: block;
}

/* =======================================
   テーブル共通スタイル（PC / スマホ共通）
======================================= */

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    table-layout: auto;
}

/* ヘッダー */
.entry-content table thead tr {
    background-color: #c8c2be;
}

.entry-content table th {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
    font-weight: 600;
    color: #2b2b2b;
    vertical-align: top;
}

/* セル */
.entry-content table td {
    padding: 8px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    color: #2b2b2b;
    vertical-align: top;
    word-break: break-word;
}

/* 交互行（tbodyのみ） */
.entry-content table tbody tr:nth-child(odd) td {
    background-color: #f9f9f9;
}

/* =======================================
   スマホのみ：横スクロール許可
======================================= */
@media screen and (max-width: 768px) {

    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.9rem;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 6px;
    }
}


/* =========================
   LP専用（コンポストってなぁに）（page-id-3704）
========================= */

/* 全体ベース */
.page-id-3704 .entry-content {
  max-width: none;
  padding: 0;
}

/*  LP 全体フォント設定 */
.page-id-3704 {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", Meiryo, sans-serif;
  color: #333333;
}

/* 本文テキスト */
.page-id-3704 .entry-content p,
.page-id-3704 .entry-content li {
  font-size: 4.0rem;
  line-height: 1.8;
}


/* セクション間の余白を詰める */
.page-id-3704 .entry-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

/* フル幅ブロック対策（alignfull） */
.page-id-3704 .wp-block-group.alignfull,
.page-id-3704 .wp-block-cover.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 通常ブロックの最大幅 */
.page-id-3704 .wp-block-group:not(.alignfull),
.page-id-3704 .wp-block-columns:not(.alignfull) {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* 見出しの詰まり防止 */
.page-id-3704 h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", Meiryo, sans-serif;
  color: #42261b;
  font-size: 2.2rem;
  line-height: 1.4;
}

/* スマホ最適化 */
@media (max-width: 768px) {
  .page-id-3704 .entry-content {
    padding: 0 16px;
  }

  .page-id-3704 h2 {
    margin-top: 2.5rem;
    font-size: 1.8rem;
color: #42261b;
  }
}

/*  LP h3フォント、boldテキスト強調 */

/* h3 見出し */
.page-id-3704 h3 {
  color: #4d4c49;
  font-size: 1.4em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* 強調テキスト */
.page-id-3704 b,
.page-id-3704 strong {
  color: #3c543f;
  font-size: 1.1em;
  font-weight: 600;
}

/*********************************************************
 for WEB カテゴリページのページ送り
*********************************************************/
/* ページ送り全体のコンテナ */
.for-web-pagination {
    margin-top: 20px; /* 上の間隔を少し詰め */
    text-align: center;
}

.for-web-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;    /* サイズを一回り小さく */
    margin: 0 2px;        /* 間隔を狭く */
    border: 1px solid #ddd;
    border-radius: 0;     /* 角丸なし */
    text-decoration: none;
    color: #333;
    font-size: 14px;      /* 文字も少し小さめに */
    transition: background 0.3s;
}

/* ホバー時 */
.for-web-pagination .page-numbers:hover {
    background: #f5f5f5;
}

/* 背景色 */
.for-web-pagination .page-numbers.current {
    background: #c4a3bf;
    color: #fff;
    border-color: #9370db;
}

/* =========================
   LP専用（自分メディアオンライン講座）（page-id-3985）
========================= */

/* フォントのインポートは先頭に記述（これはグローバルに読み込まれますが、適用先を限定しているので問題ありません） */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@400;500;700&family=Zen+Old+Mincho:wght@400;500;700&display=swap');

/* ページID 3985 専用スタイル */
.page-id-3985 .mg-koto-lp,
.page-id-3985 .mg-koto-lp * {
  box-sizing: border-box;
}

.page-id-3985 .mg-koto-lp {
  --mg-ink: #2e2e2e;
  --mg-deep: #79a3ac;
  --mg-muted: #79a3ac;
  --mg-line: #d7d7d7;
  --mg-bg: #f7f5f0;
  --mg-white: #ffffff;
  --mg-soft: #eef3f3;
  --mg-danger: #7a4b4b;
  --mg-max: 1180px;

  color: var(--mg-ink);
  background: var(--mg-bg);
  font-family: "M PLUS 1p", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.9;
  letter-spacing: 0.02em;
  padding-bottom: 80px;
}

.page-id-3985 .mg-koto-lp a {
  color: inherit;
  text-decoration: none;
}

.page-id-3985 .mg-koto-lp img {
  max-width: 100%;
  height: auto;
}

.page-id-3985 .mg-koto-lp__topline {
  max-width: var(--mg-max);
  margin: 0 auto;
  padding: 22px 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--mg-line);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-id-3985 .mg-brand {
  color: var(--mg-deep);
  font-weight: 700;
}

.page-id-3985 .mg-doc-title {
  color: #6d6d6d;
}

.page-id-3985 .mg-hero {
  padding: 64px 20px 72px;
}

.page-id-3985 .mg-hero__inner {
  max-width: var(--mg-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: end;
}

.page-id-3985 .mg-eyebrow {
  margin: 0 0 16px;
  color: var(--mg-muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-id-3985 .mg-hero__title,
.page-id-3985 .mg-section-head h2,
.page-id-3985 .mg-closing h2 {
  font-family: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.page-id-3985 .mg-hero__title {
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  margin: 0 0 22px;
  color: var(--mg-ink);
}

.page-id-3985 .mg-hero__lead {
  margin: 0 0 18px;
  font-size: 1.1rem;
  color: var(--mg-deep);
  font-weight: 700;
}

.page-id-3985 .mg-hero__text {
  margin: 0;
  max-width: 48em;
  font-size: 0.98rem;
}

.page-id-3985 .mg-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-id-3985 .mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 16px 26px;
  border: 1px solid var(--mg-deep);
  transition: 0.25s ease;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.page-id-3985 .mg-btn:hover {
  transform: translateY(-2px);
}

.page-id-3985 .mg-btn--primary {
  background: var(--mg-deep);
  color: var(--mg-white) !important;
}

.page-id-3985 .mg-btn--ghost {
  background: transparent;
  color: var(--mg-deep) !important;
}

.page-id-3985 .mg-hero-card {
  position: relative;
  background: var(--mg-white);
  padding: 36px 32px;
  border: 1px solid var(--mg-line);
}

.page-id-3985 .mg-hero-card::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 24px;
  width: calc(100% - 48px);
  height: 1px;
  background: var(--mg-deep);
}

.page-id-3985 .mg-hero-card__label {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--mg-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-id-3985 .mg-hero-card h2 {
  margin: 0 0 18px;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 1.8rem;
  line-height: 1.5;
  color: var(--mg-deep);
}

.page-id-3985 .mg-hero-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.page-id-3985 .mg-section {
  padding: 88px 20px;
}

.page-id-3985 .mg-section--tint {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(121,163,172,0.08) 100%);
}

.page-id-3985 .mg-section-head {
  max-width: var(--mg-max);
  margin: 0 auto 42px;
  padding-top: 18px;
  border-top: 1px solid var(--mg-deep);
}

.page-id-3985 .mg-section-head__en {
  margin: 0 0 10px;
  color: var(--mg-muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-id-3985 .mg-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 3rem);
}

.page-id-3985 .mg-card-grid,
.page-id-3985 .mg-pillars,
.page-id-3985 .mg-course-grid,
.page-id-3985 .mg-application-grid {
  max-width: var(--mg-max);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.page-id-3985 .mg-card-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-id-3985 .mg-card,
.page-id-3985 .mg-panel,
.page-id-3985 .mg-course,
.page-id-3985 .mg-application-card,
.page-id-3985 .mg-profile-card,
.page-id-3985 .mg-price-box {
  background: var(--mg-white);
  border: 1px solid var(--mg-line);
  padding: 28px;
}

.page-id-3985 .mg-card h3,
.page-id-3985 .mg-panel h3,
.page-id-3985 .mg-course h3,
.page-id-3985 .mg-application-card h3,
.page-id-3985 .mg-profile-card h4,
.page-id-3985 .mg-price-box h3 {
  margin: 0 0 14px;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--mg-deep);
}

.page-id-3985 .mg-card p,
.page-id-3985 .mg-panel p,
.page-id-3985 .mg-course p,
.page-id-3985 .mg-application-card p,
.page-id-3985 .mg-price-box p {
  margin: 0;
}

.page-id-3985 .mg-note-center {
  max-width: 900px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--mg-deep);
  font-weight: 700;
}

.page-id-3985 .mg-compare,
.page-id-3985 .mg-two-col,
.page-id-3985 .mg-profile {
  max-width: var(--mg-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.page-id-3985 .mg-mini-title {
  margin: 0 0 18px;
  color: var(--mg-deep);
  font-size: 1rem;
  font-weight: 700;
}

.page-id-3985 .mg-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-id-3985 .mg-checklist li {
  background: var(--mg-white);
  border: 1px solid var(--mg-line);
  padding: 20px 22px;
}

.page-id-3985 .mg-checklist--negative li {
  border-left: 4px solid #b58b8b;
}

.page-id-3985 .mg-checklist--positive li {
  border-left: 4px solid var(--mg-muted);
}

.page-id-3985 .mg-band-message {
  max-width: 880px;
  margin: 34px auto 0;
  text-align: center;
  padding: 22px 24px;
  border-top: 1px solid var(--mg-deep);
  border-bottom: 1px solid var(--mg-deep);
  color: var(--mg-deep);
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 1.2rem;
}

.page-id-3985 .mg-band-message p {
  margin: 0;
}

.page-id-3985 .mg-pillars {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.page-id-3985 .mg-pillar {
  position: relative;
  background: var(--mg-white);
  border: 1px solid var(--mg-line);
  padding: 64px 20px 24px;
}

.page-id-3985 .mg-pillar__no {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 12px;
  color: var(--mg-muted);
  letter-spacing: 0.14em;
}

.page-id-3985 .mg-pillar h3 {
  margin: 0 0 14px;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--mg-deep);
}

.page-id-3985 .mg-pillar p {
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.page-id-3985 .mg-pillar ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.92rem;
}

.page-id-3985 .mg-table-wrap {
  max-width: var(--mg-max);
  margin: 28px auto 0;
  overflow-x: auto;
}

.page-id-3985 .mg-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mg-white);
  min-width: 720px;
}

.page-id-3985 .mg-table th,
.page-id-3985 .mg-table td {
  border: 1px solid var(--mg-line);
  padding: 16px 14px;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.page-id-3985 .mg-table thead th {
  background: var(--mg-deep);
  color: var(--mg-white);
  font-weight: 700;
}

.page-id-3985 .mg-cta-box,
.page-id-3985 .mg-contact-box {
  max-width: 860px;
  margin: 34px auto 0;
  background: var(--mg-white);
  border: 1px solid var(--mg-line);
  padding: 30px;
  text-align: center;
}

.page-id-3985 .mg-cta-box p,
.page-id-3985 .mg-contact-box p {
  margin: 0 0 18px;
}

.page-id-3985 .mg-feature-list {
  max-width: var(--mg-max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.page-id-3985 .mg-feature {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  background: var(--mg-white);
  border: 1px solid var(--mg-line);
}

.page-id-3985 .mg-feature__index {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 26px 12px;
  color: var(--mg-muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  border-right: 1px solid var(--mg-line);
}

.page-id-3985 .mg-feature__body {
  padding: 24px 26px;
}

.page-id-3985 .mg-feature__body h3 {
  margin: 0 0 10px;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 1.25rem;
  color: var(--mg-deep);
}

.page-id-3985 .mg-course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-id-3985 .mg-course {
  position: relative;
  padding-top: 56px;
}

.page-id-3985 .mg-course__label {
  position: absolute;
  top: 18px;
  left: 28px;
  margin: 0;
  color: var(--mg-muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-id-3985 .mg-course ul {
  margin: 0;
  padding-left: 1.2em;
}

.page-id-3985 .mg-course--featured {
  border-color: var(--mg-deep);
  box-shadow: inset 0 0 0 1px var(--mg-deep);
}

.page-id-3985 .mg-panel--negative {
  border-left: 4px solid #b58b8b;
}

.page-id-3985 .mg-panel--positive {
  border-left: 4px solid var(--mg-muted);
}

.page-id-3985 .mg-profile__main,
.page-id-3985 .mg-profile__sub {
  min-width: 0;
}

.page-id-3985 .mg-profile-card ul,
.page-id-3985 .mg-panel ul,
.page-id-3985 .mg-course ul,
.page-id-3985 .mg-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.page-id-3985 .mg-timeline {
  max-width: var(--mg-max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.page-id-3985 .mg-timeline__item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  background: var(--mg-white);
  border: 1px solid var(--mg-line);
}

.page-id-3985 .mg-timeline__meta {
  padding: 24px 18px;
  border-right: 1px solid var(--mg-line);
  color: var(--mg-muted);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.page-id-3985 .mg-timeline__body {
  padding: 24px 26px;
}

.page-id-3985 .mg-timeline__body h3 {
  margin: 0 0 12px;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 1.2rem;
  color: var(--mg-deep);
}

.page-id-3985 .mg-timeline__body ul {
  margin: 0;
  padding-left: 1.2em;
}

.page-id-3985 .mg-price-box + .page-id-3985 .mg-price-box {
  margin-top: 24px;
}

.page-id-3985 .mg-price-box--special {
  border-color: var(--mg-deep);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
}

.page-id-3985 .mg-price-note {
  margin-top: 14px !important;
  color: var(--mg-danger);
}

.page-id-3985 .mg-application-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-id-3985 .mg-application-card {
  text-align: center;
}

.page-id-3985 .mg-closing {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 22px 0 0;
  border-top: 1px solid var(--mg-deep);
}

.page-id-3985 .mg-closing h2 {
  margin: 0 0 24px;
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
}

.page-id-3985 .mg-closing p {
  margin: 0 0 16px;
}

.page-id-3985 .mg-sign {
  margin-top: 26px !important;
  font-family: "Zen Old Mincho", "Yu Mincho", serif;
  font-size: 1.2rem;
  color: var(--mg-deep);
}

.page-id-3985 .mg-legal-link a {
  color: var(--mg-deep);
  border-bottom: 1px solid currentColor;
}

/* メディアクエリ内も限定 */
@media (max-width: 1080px) {
  .page-id-3985 .mg-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-id-3985 .mg-hero__inner,
  .page-id-3985 .mg-card-grid--2,
  .page-id-3985 .mg-compare,
  .page-id-3985 .mg-two-col,
  .page-id-3985 .mg-profile,
  .page-id-3985 .mg-course-grid,
  .page-id-3985 .mg-application-grid {
    grid-template-columns: 1fr;
  }

  .page-id-3985 .mg-feature,
  .page-id-3985 .mg-timeline__item {
    grid-template-columns: 1fr;
  }

  .page-id-3985 .mg-feature__index,
  .page-id-3985 .mg-timeline__meta {
    border-right: 0;
    border-bottom: 1px solid var(--mg-line);
    justify-content: flex-start;
  }

  .page-id-3985 .mg-pillars {
    grid-template-columns: 1fr;
  }

  .page-id-3985 .mg-koto-lp__topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-id-3985 .mg-hero {
    padding-top: 42px;
  }

  .page-id-3985 .mg-section {
    padding: 64px 16px;
  }
}

@media (max-width: 480px) {
  .page-id-3985 .mg-btn {
    width: 100%;
  }

  .page-id-3985 .mg-card,
  .page-id-3985 .mg-panel,
  .page-id-3985 .mg-course,
  .page-id-3985 .mg-application-card,
  .page-id-3985 .mg-profile-card,
  .page-id-3985 .mg-price-box {
    padding: 22px 18px;
  }

  .page-id-3985 .mg-hero-card {
    padding: 28px 22px;
  }
}


