@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** AOMODE カスタムカラー・フォント設定
** コンセプト：知的だけど軽い、青・白ベース
************************************/

:root {
  --primary-color: #3a7bd5;
  --primary-light: #5b9ee1;
  --primary-dark: #2557a7;
  --accent-color: #6ec6f5;
  --bg-main: #f8faff;
  --text-main: #2c3e50;
  --text-light: #7f8c8d;
}

/* ===== 全体背景 ===== */
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-weight: 400;
  line-height: 1.8;
}

/* ===== ヘッダーエリア全体（サイト名＋ナビをまとめて青に） ===== */
.header-container,
.header-container-in,
#header,
.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 60%, var(--primary-light) 100%);
  box-shadow: 0 2px 8px rgba(42, 87, 167, 0.2);
}

#site-name-text a,
#site-name-text {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.05em;
}

#site-catch {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.9em;
}

/* ===== グローバルナビ背景（スキンより確実に上書き） ===== */
#navi,
.navi,
.header-container .navi,
.header-container #navi,
nav.navi,
#navi .navi-in {
  background-color: var(--primary-dark) !important;
}

/* ===== ナビリンク文字色（汎用 a ルールに負けないよう !important） ===== */
#navi a,
#navi .navi-in a,
#navi .navi-in > ul > li > a,
#navi .menu-header a {
  color: #ffffff !important;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ===== ナビ hover ・現在ページ（背景を明るく変えて視認性UP） ===== */
#navi .navi-in > ul > li > a:hover,
#navi .navi-in > ul > li:hover > a,
#navi .navi-in > ul > li.current-menu-item > a,
#navi .navi-in > ul > li.current-menu-ancestor > a {
  background-color: var(--primary-light) !important;
  color: #ffffff !important;
  text-decoration: none;
}

/* ===== ドロップダウン（サブメニュー） ===== */
#navi .navi-in > ul > li > .sub-menu {
  background-color: var(--primary-dark);
}
#navi .sub-menu a {
  color: #ffffff !important;
  border-top: 1px solid rgba(255,255,255,0.1);
}
#navi .sub-menu a:hover {
  background-color: var(--primary-light) !important;
}

/* ===== サイドバー ===== */
.widget-title {
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 4px 4px 0 0;
  padding: 8px 14px;
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ===== 記事カード ===== */
.entry-card-wrap {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  border: 1px solid #e8f0fe;
}

.entry-card-wrap:hover {
  box-shadow: 0 6px 20px rgba(58, 123, 213, 0.15);
  transform: translateY(-2px);
}

/* ===== 記事タイトル ===== */
.entry-title a {
  color: var(--text-main);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--primary-color);
}

/* ===== リンクカラー（コンテンツ・サイドバー限定。ナビには当てない） ===== */
.article a,
.entry-content a,
.sidebar a,
.widget a,
.footer-widget a,
.page-content a {
  color: var(--primary-color);
  transition: color 0.2s ease;
}

.article a:hover,
.entry-content a:hover,
.sidebar a:hover,
.widget a:hover,
.page-content a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* ===== ボタン ===== */
.btn,
.cocoon-block-button__link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  border-radius: 25px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover,
.cocoon-block-button__link:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #ffffff;
}

/* ===== カテゴリバッジ ===== */
.cat-label,
.cat-link {
  background-color: var(--primary-light);
  color: #ffffff;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: 600;
  padding: 2px 8px;
}

/* ===== 見出し ===== */
.article h2 {
  border-left: 4px solid var(--primary-color);
  background: linear-gradient(to right, #eef4fd, transparent);
  padding: 10px 16px;
  border-radius: 0 4px 4px 0;
  font-size: 1.3em;
  margin: 2em 0 1em;
}

.article h3 {
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 6px;
  font-size: 1.15em;
  margin: 1.8em 0 0.8em;
}

.article h4 {
  font-size: 1.05em;
  color: var(--primary-dark);
  margin: 1.5em 0 0.6em;
}

/* ===== フッター ===== */
#footer,
.footer,
.footer-container {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
}

#footer a,
.footer a,
#footer .navi-in a,
.footer-nav a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.2s ease;
}

#footer a:hover,
.footer a:hover,
#footer .navi-in a:hover,
.footer-nav a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* ===== タグ ===== */
.post-tags a {
  border: 1px solid var(--primary-light);
  color: var(--primary-color);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.8em;
  transition: all 0.2s ease;
}

.post-tags a:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  #header {
    padding: 15px;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  .article h2 {
    font-size: 1.2em;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .article h2 {
    font-size: 1.1em;
    padding: 8px 12px;
  }
}

/* =====================================================================
** AOMODE トップページ (.home) 専用スタイル
** Cocoonの既定スタイルに「!important」ではなく詳細度で勝つため
** すべて  .home #wrapper  または  .aomode-front  をプリフィックスに付ける
** ===================================================================== */

/* AOMODEカラー定義（トップページ専用に分離） */
.home .aomode-front {
  --ao-navy: #1A3A5C;
  --ao-navy-deep: #122A45;
  --ao-blue: #378ADD;
  --ao-blue-soft: #D9E8F7;
  --ao-blue-ice: #E6F1FB;
  --ao-bg: #F5F8FC;
  --ao-accent-deep: #0C447C;
  --ao-ink: #16243A;
  --ao-ink-soft: #5B6E87;
  --ao-ink-mute: #8FA0B6;
  --ao-hair: #E1E8F1;
  --ao-tag-spirit: #7F6BC9;
  --ao-tag-quote: #E0A23C;
  --ao-tag-qol: #4FB58A;
}

/* --- Cocoon既定のリセット（フロントページのみ） --- */
.home #header-container,
.home .header-container,
.home #header,
.home .breadcrumb,
.home .eye-catch,
.home .eye-catch-wrap,
.home .main-visual,
.home #main-visual,
.home .entry-title,
.home .page-title,
.home .article-header {
  display: none;
}

.home #content { padding-top: 0; }
.home #main { padding: 0; width: 100%; max-width: none; }
.home #wrapper { background: var(--bg-main); }
.home #sidebar,
.home .sidebar {
  display: none;
}
.home .main-side-wrap {
  display: block;
}

/* Cocoon側の .post / .card / .btn / .entry-title / .cat-label をフロントに影響させない */
.home .aomode-front .ao-blog-card,
.home .aomode-front .ao-rank-feature,
.home .aomode-front .ao-rank-small {
  box-shadow: none;
  border: 1px solid var(--ao-hair);
  margin: 0;
  padding: 0;
  background: #fff;
}
.home .aomode-front .ao-blog-card:hover,
.home .aomode-front .ao-rank-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(26,58,92,0.25);
  border-color: var(--ao-blue-soft);
}
.home .aomode-front .ao-pill-btn {
  /* Cocoonの .btn を上書きするため、詳細度を上げる */
  background: var(--ao-navy);
  color: #fff;
  border-radius: 999px;
  padding: 16px 16px 16px 32px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.home .aomode-front .ao-pill-btn:hover {
  transform: translateY(-2px);
  background: var(--ao-blue);
  color: #fff;
}

/* ---------------------------------------------------------------------
** 共通
** ------------------------------------------------------------------- */
.home .aomode-front,
.home .aomode-front * { box-sizing: border-box; }

.home .aomode-front {
  background: var(--ao-bg);
  color: var(--ao-ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.home .aomode-front .en {
  font-family: "Poppins", "Zen Kaku Gothic New", sans-serif;
  letter-spacing: -0.01em;
}
.home .aomode-front .mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}
.home .aomode-front a { color: inherit; text-decoration: none; }
.home .aomode-front img { max-width: 100%; display: block; }

.home .aomode-front .ao-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.home .aomode-front .ao-section {
  padding: 96px 0;
  background: var(--ao-bg);
}

/* セクション見出し */
.home .aomode-front .ao-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.home .aomode-front .ao-section-title-block {
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.home .aomode-front .ao-section-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ao-navy);
  margin: 0;
}
.home .aomode-front .ao-section-sub {
  font-size: 15px;
  color: var(--ao-ink-soft);
  font-weight: 700;
  position: relative;
  padding-left: 18px;
}
.home .aomode-front .ao-section-sub::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--ao-blue);
  border-radius: 50%;
}

/* タグ／カテゴリバッジ */
.home .aomode-front .ao-tag {
  font-size: 11px;
  color: var(--ao-blue);
  padding: 3px 9px;
  border: 1px solid var(--ao-blue-soft);
  border-radius: 999px;
  background: var(--ao-blue-ice);
  font-weight: 600;
  white-space: nowrap;
  list-style: none;
}
.home .aomode-front .ao-cat-badge {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  background: var(--ao-blue);
}
.home .aomode-front .ao-cat-badge.cat-spiritual { background: var(--ao-tag-spirit); }
.home .aomode-front .ao-cat-badge.cat-quotes    { background: var(--ao-tag-quote); }
.home .aomode-front .ao-cat-badge.cat-qol-goods { background: var(--ao-tag-qol); }

/* カテゴリ別プレースホルダ背景 */
.home .aomode-front .ph-spiritual {
  background: linear-gradient(135deg, #7F6BC9, #5C4DA8);
}
.home .aomode-front .ph-quotes {
  background: linear-gradient(135deg, #E0A23C, #C57A20);
}
.home .aomode-front .ph-qol-goods {
  background: linear-gradient(135deg, #4FB58A, #2F8F66);
}
.home .aomode-front .ph-mixed,
.home .aomode-front .ph-thoughts {
  background: linear-gradient(135deg, #378ADD, #1F6BBF);
}

/* ---------------------------------------------------------------------
** FV (Hero)
** ------------------------------------------------------------------- */
.home .aomode-front .ao-fv {
  position: relative;
  background: #F1F1F1;
  padding: 20px 0 60px;
  overflow: hidden;
}
.home .aomode-front .ao-fv-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  margin-bottom: 36px;
}
.home .aomode-front .ao-fv-icon-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #2C2C2C;
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.home .aomode-front .ao-fv-icon-btn:hover {
  background: #000;
  transform: scale(1.05);
  color: #fff;
}
.home .aomode-front .ao-fv-icon-btn svg {
  width: 22px; height: 22px;
}
.home .aomode-front .ao-fv-logo {
  position:relative;
  z-index:100;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #000;
  margin: 0;
}

.home .aomode-front .ao-fv-carousel {
  position: relative;
  bottom:64px;
  padding: 0 0 36px;
}
.home .aomode-front .ao-fv-swiper {
  height: 460px;
  overflow: visible;
  padding: 0 24px;
}
.home .aomode-front .ao-fv-swiper .swiper-wrapper {
  align-items: center;
}
.home .aomode-front .ao-fv-slide {
  width: 880px;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background-color: #C4C4C4;
  background-size: cover;
  background-position: center;
  transition: opacity .4s ease, transform .4s ease;
  opacity: 0.45;
  transform: scale(0.92);
}
.home .aomode-front .ao-fv-slide.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
.home .aomode-front .ao-fv-slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 56px 56px;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.home .aomode-front .ao-fv-slide-inner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.home .aomode-front .ao-fv-slide-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.home .aomode-front .ao-fv-meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.home .aomode-front .ao-fv-date {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.04em;
}
.home .aomode-front .ao-fv-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.home .aomode-front .ao-fv-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
.home .aomode-front .ao-fv-tags .ao-tag {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.home .aomode-front .ao-fv-link {
  position: absolute; inset: 0;
  z-index: 3;
}

/* NEW バッジ（バースト） */
.home .aomode-front .ao-fv-new-badge {
  position: absolute;
  top: 28px; right: 36px;
  width: 110px; height: 110px;
  z-index: 4;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
  pointer-events: none;
}
.home .aomode-front .ao-fv-new-badge svg {
  width: 100%; height: 100%;
}
.home .aomode-front .ao-fv-new-badge .label {
  position: absolute;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #1A3A5C;
  letter-spacing: 0.04em;
}

/* 矢印 */
.home .aomode-front .ao-fv-arrow {
  position: absolute;
  top: calc(50% - 18px);
  transform: translateY(-50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #2C2C2C;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 6;
  transition: background .2s ease, transform .2s ease;
}
.home .aomode-front .ao-fv-arrow:hover {
  background: #000;
  transform: translateY(-50%) scale(1.05);
  color: #fff;
}
.home .aomode-front .ao-fv-arrow svg { width: 24px; height: 24px; }
.home .aomode-front .ao-fv-arrow-prev { left: 60px; }
.home .aomode-front .ao-fv-arrow-next { right: 60px; }

/* ページネーション（バー） */
.home .aomode-front .ao-fv-pagination {
  position: relative;
  display: flex; justify-content: center; gap: 10px;
  margin-top: 48px;
}
.home .aomode-front .ao-fv-pagination .swiper-pagination-bullet {
  width: 40px; height: 6px;
  border-radius: 3px;
  background: #C4C4C4;
  opacity: 1;
  transition: background .2s ease, width .3s ease;
}
.home .aomode-front .ao-fv-pagination .swiper-pagination-bullet-active {
  background: #1A3A5C;
  width: 60px;
}

/* ---------------------------------------------------------------------
** BLOG
** ------------------------------------------------------------------- */
.home .aomode-front .ao-blog-section { background: var(--ao-bg); }

.home .aomode-front .ao-cats {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.home .aomode-front .ao-cats-label {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: var(--ao-ink-soft);
  font-weight: 600;
  margin-right: 8px;
  letter-spacing: 0.1em;
}
.home .aomode-front .ao-cat {
  padding: 8px 16px;
  border: 1px solid var(--ao-hair);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ao-ink-soft);
  background: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s ease;
}
.home .aomode-front .ao-cat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ao-ink-mute);
}
.home .aomode-front .ao-cat:hover:not(.is-active) {
  border-color: var(--ao-blue);
  color: var(--ao-navy);
}
.home .aomode-front .ao-cat.is-active {
  background: var(--ao-navy);
  color: #fff;
  border-color: var(--ao-navy);
}
.home .aomode-front .ao-cat.is-active::before {
  background: var(--ao-blue);
}

.home .aomode-front .ao-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
}
.home .aomode-front .ao-blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ao-hair);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home .aomode-front .ao-blog-link {
  display: flex; flex-direction: column;
  height: 100%;
  color: inherit;
}
.home .aomode-front .ao-blog-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
}
.home .aomode-front .ao-blog-new {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: var(--ao-blue);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 4px;
}
.home .aomode-front .ao-blog-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.home .aomode-front .ao-blog-meta {
  display: flex; justify-content: space-between; align-items: center;
}
.home .aomode-front .ao-blog-date {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  color: var(--ao-ink-mute);
  letter-spacing: 0.04em;
}
.home .aomode-front .ao-blog-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ao-navy);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home .aomode-front .ao-blog-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  list-style: none; margin: 0 0 0; padding: 0;
  margin-top: auto;
}

/* CTA */
.home .aomode-front .ao-center-cta {
  display: flex; justify-content: center;
  margin-top: 64px;
}
.home .aomode-front .ao-arrow-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ao-blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.home .aomode-front .ao-arrow-circle svg { width: 18px; height: 18px; }
.home .aomode-front .ao-pill-btn:hover .ao-arrow-circle {
  background: rgba(255,255,255,0.22);
}

/* ---------------------------------------------------------------------
** RANKING
** ------------------------------------------------------------------- */
.home .aomode-front .ao-rank-section { background: var(--ao-bg); }

.home .aomode-front .ao-rank-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.home .aomode-front .ao-rank-feature {
  position: relative;
  background: transparent;
  border: none;
}
.home .aomode-front .ao-rank-feature-link { display: block; color: inherit; }
.home .aomode-front .ao-rank-crown {
  position: absolute;
  left: -8px; top: -28px;
  width: 72px; height: 56px;
  z-index: 3;
}
.home .aomode-front .ao-rank-crown svg { width: 100%; height: 100%; }
.home .aomode-front .ao-rank-feature-thumb {
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
}
.home .aomode-front .ao-rank-feature-body { padding: 0 4px; }
.home .aomode-front .ao-rank-feature-meta {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 16px;
}
.home .aomode-front .ao-rank-feature-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ao-navy);
  margin: 0 0 18px;
}

.home .aomode-front .ao-rank-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.home .aomode-front .ao-rank-small {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ao-hair);
  transition: transform .2s ease, border-color .2s ease;
}
.home .aomode-front .ao-rank-small a { display: block; color: inherit; }
.home .aomode-front .ao-rank-small-thumb {
  aspect-ratio: 16/10;
  position: relative;
  background-color: #ccc;
  background-size: cover;
  background-position: center;
}
.home .aomode-front .ao-rank-num {
  position: absolute;
  top: -10px; left: -10px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ao-navy);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(26,58,92,0.3);
  z-index: 2;
  border: 3px solid var(--ao-bg);
}
.home .aomode-front .ao-rank-small-body {
  padding: 14px 16px 18px;
}
.home .aomode-front .ao-rank-small-date {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  color: var(--ao-ink-mute);
  margin-bottom: 6px;
}
.home .aomode-front .ao-rank-small-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ao-navy);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------------------
** Who is?
** ------------------------------------------------------------------- */
.home .aomode-front .ao-whois-section {
  background: #2C2C2C;
  padding: 96px 0;
}
.home .aomode-front .ao-whois-card {
  position: relative;
  border: 1px solid #fff;
  border-radius: 25px;
  padding: 36px 48px 44px;
  min-height: 285px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: center;
}
.home .aomode-front .ao-whois-card-body {
  display: flex; flex-direction: column; gap: 20px;
}
.home .aomode-front .ao-whois-head-row {
  display: flex; align-items: flex-end; gap: 24px;
  flex-wrap: wrap;
}
.home .aomode-front .ao-whois-tag {
  background: #0384DA;
  color: #fff;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 500;
  font-size: 20px;
  padding: 8px 18px;
  line-height: 1;
  display: inline-block;
}
.home .aomode-front .ao-whois-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0;
  transform: rotate(-5deg);
  transform-origin: left bottom;
  display: inline-block;
}
.home .aomode-front .ao-whois-body-text-wrap {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  max-width: 720px;
}
.home .aomode-front .ao-whois-body-bg {
  position: absolute;
  left: -6px; top: 50%;
  transform: translateY(-50%);
  width: calc(100% + 12px);
  height: 88px;
  background: #0384DA;
  z-index: 0;
}
.home .aomode-front .ao-whois-body-text {
  position: relative;
  z-index: 1;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.9;
  color: #fff;
  margin: 0;
  padding: 0 12px;
}
.home .aomode-front .ao-whois-illust {
  display: flex; align-items: center; justify-content: center;
}
.home .aomode-front .ao-whois-illust svg {
  width: 100%; max-width: 360px; height: auto;
}

/* ---------------------------------------------------------------------
** ILLUSTRATION
** ------------------------------------------------------------------- */
.home .aomode-front .ao-illust-section {
  background: var(--ao-bg);
}
.home .aomode-front .ao-illust-head {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 56px; gap: 16px;
}
.home .aomode-front .ao-illust-label {
  background: #fff;
  border: 1px solid var(--ao-navy);
  border-radius: 16px;
  padding: 12px 36px;
  position: relative;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: var(--ao-navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.home .aomode-front .ao-illust-label::after {
  content: "";
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--ao-navy);
}
.home .aomode-front .ao-illust-label::before {
  content: "";
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
  z-index: 1;
}
.home .aomode-front .ao-illust-sub {
  color: var(--ao-ink-soft);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
}

.home .aomode-front .ao-illust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  grid-template-rows: 220px 220px;
  gap: 16px;
}
.home .aomode-front .ao-illust-cell {
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #C8D7E8, #A7BFD8);
}
.home .aomode-front .ao-illust-ghost {
  position: absolute;
  bottom: 12px; left: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  padding: 4px 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}
.home .aomode-front .ao-illust-c1 {
  grid-column: 1; grid-row: 1 / span 2;
  background: linear-gradient(160deg, #B7C7DB, #8AA3C3);
}
.home .aomode-front .ao-illust-c2 {
  grid-column: 2; grid-row: 1;
  background: linear-gradient(160deg, #D9E0EB, #B7C2D5);
}
.home .aomode-front .ao-illust-c3 {
  grid-column: 2; grid-row: 2;
  background: linear-gradient(160deg, #C7D5E5, #93AAC5);
}
.home .aomode-front .ao-illust-c4 {
  grid-column: 3; grid-row: 1 / span 2;
  background: linear-gradient(160deg, #A7BFD8, #6E89A8);
}

.home .aomode-front .ao-illust-phone-cell {
  grid-column: 4; grid-row: 1 / span 2;
  display: flex; align-items: center; justify-content: flex-start;
  padding-left: 16px;
  position: relative;
  background: transparent;
}
.home .aomode-front .ao-phone {
  width: 170px;
  aspect-ratio: 9/19;
  border-radius: 28px;
  background: #16243A;
  border: 4px solid #0E1A2A;
  box-shadow: 0 20px 50px -10px rgba(26,58,92,0.4);
  padding: 6px;
  position: relative;
  flex-shrink: 0;
}
.home .aomode-front .ao-phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #2A4870, #1A3A5C);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  color: #fff;
}
.home .aomode-front .ao-phone-notch {
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 16px;
  background: #0E1A2A;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.home .aomode-front .ao-phone-content {
  padding: 28px 14px 14px;
  font-size: 9px;
}
.home .aomode-front .ao-ph-h {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--ao-blue);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.home .aomode-front .ao-ph-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #7F6BC9, #378ADD);
  border-radius: 4px;
  margin-bottom: 5px;
}
.home .aomode-front .ao-ph-card {
  background: rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 6px 8px;
  margin-bottom: 6px;
  font-size: 9px;
  line-height: 1.4;
}
.home .aomode-front .ao-speech-bubble {
  position: absolute;
  top: 24px;
  left: calc(170px + 32px + 16px);
  width: 200px;
  background: #fff;
  border: 1px solid var(--ao-hair);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ao-navy);
  line-height: 1.6;
  box-shadow: 0 10px 24px -10px rgba(26,58,92,0.2);
}
.home .aomode-front .ao-speech-bubble::before {
  content: "";
  position: absolute;
  bottom: 30px; left: -10px;
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 12px solid #fff;
  filter: drop-shadow(-1px 0 0 var(--ao-hair));
}
.home .aomode-front .ao-speech-bubble .small {
  display: block;
  font-size: 11px;
  color: var(--ao-blue);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------------------
** レスポンシブ
** ------------------------------------------------------------------- */
@media screen and (max-width: 1023px) {
  .home .aomode-front .ao-wrap { padding: 0 20px; }
  .home .aomode-front .ao-section { padding: 64px 0; }

  .home .aomode-front .ao-fv-logo { font-size: 44px; }
  .home .aomode-front .ao-fv-header-row { padding: 0 20px; margin-bottom: 24px; }
  .home .aomode-front .ao-fv-swiper { height: 360px; padding: 0; }
  .home .aomode-front .ao-fv-slide { width: 88%; border-radius: 24px; }
  .home .aomode-front .ao-fv-slide-inner { padding: 28px 28px 32px; }
  .home .aomode-front .ao-fv-title { font-size: 22px; }
  .home .aomode-front .ao-fv-arrow { width: 44px; height: 44px; }
  .home .aomode-front .ao-fv-arrow-prev { left: 12px; }
  .home .aomode-front .ao-fv-arrow-next { right: 12px; }
  .home .aomode-front .ao-fv-new-badge { width: 72px; height: 72px; top: 14px; right: 14px; }
  .home .aomode-front .ao-fv-new-badge .label { font-size: 16px; }

  .home .aomode-front .ao-section-title { font-size: 44px; }
  .home .aomode-front .ao-section-head { flex-direction: column; align-items: flex-start; gap: 16px; }

  .home .aomode-front .ao-blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .home .aomode-front .ao-rank-grid { grid-template-columns: 1fr; gap: 36px; }

  .home .aomode-front .ao-whois-card { grid-template-columns: 1fr; padding: 28px; }
  .home .aomode-front .ao-whois-logo { font-size: 56px; transform: none; }
  .home .aomode-front .ao-whois-illust svg { max-width: 280px; }

  .home .aomode-front .ao-illust-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px auto;
  }
  .home .aomode-front .ao-illust-c1 { grid-column: 1; grid-row: 1; }
  .home .aomode-front .ao-illust-c2 { grid-column: 2; grid-row: 1; }
  .home .aomode-front .ao-illust-c3 { grid-column: 1; grid-row: 2; }
  .home .aomode-front .ao-illust-c4 { grid-column: 2; grid-row: 2; }
  .home .aomode-front .ao-illust-phone-cell {
    grid-column: 1 / span 2; grid-row: 3;
    justify-content: center;
    padding: 24px 0;
  }
  .home .aomode-front .ao-speech-bubble {
    position: static;
    margin-top: 24px;
    width: auto; max-width: 280px;
  }
  .home .aomode-front .ao-speech-bubble::before { display: none; }
  .home .aomode-front .ao-illust-phone-cell {
    flex-direction: column;
  }
}

@media screen and (max-width: 600px) {
  .home .aomode-front .ao-blog-grid { grid-template-columns: 1fr; }
  .home .aomode-front .ao-rank-small-grid { grid-template-columns: 1fr; }
  .home .aomode-front .ao-fv-logo { font-size: 36px; }
  .home .aomode-front .ao-section-title { font-size: 36px; }
  .home .aomode-front .ao-illust-label { font-size: 28px; padding: 10px 24px; }
}

/* =====================================================================
** 修正追加スタイル
** ===================================================================== */

/* 横スクロール防止（100vwブレイクアウト副作用対策） */
html, body { overflow-x: hidden; }

/* 修正① FV 全幅ブレイクアウト ---------------------------------------- */
.home .aomode-front .ao-fv {
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  /* overflow: hidden を visible に上書き。
     右側スライドのブリードを可能にし、水平クリップは html/body overflow-x:hidden に委ねる */
  overflow: visible;
}

/* 修正② FV キャッチコピー -------------------------------------------- */
.home .aomode-front .ao-fv-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.home .aomode-front .ao-fv-catchcopy {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0;
  text-align: center;
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1.4;
}

/* 修正④ ランキングバッジ可視化 ---------------------------------------- */
.home .aomode-front .ao-rank-small-wrap {
  position: relative;
  /* overflow:visible（デフォルト）なので .ao-rank-num の -10px はみ出しが見える */
}

/* 修正⑤ 王冠に「1」 -------------------------------------------------- */
.home .aomode-front .ao-rank-crown-num {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1;
  z-index: 4;
  pointer-events: none;
}

/* 修正③⑥ ドロワー（全ページ共通） ------------------------------------ */
.ao-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.ao-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ao-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 480px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
}
.ao-drawer.is-open {
  transform: translateX(0);
}
@media (max-width: 768px) {
  .ao-drawer {
    width: 100%;
    max-width: none;
  }
}

.ao-drawer-close {
  display: flex;
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F5F8FC;
  border: 1px solid #E1E8F1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #1A3A5C;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.ao-drawer-close:hover { background: #E6F1FB; }
.ao-drawer-close svg { width: 20px; height: 20px; }

.ao-drawer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.ao-drawer-catchcopy {
  font-size: 12px;
  font-weight: 700;
  color: #5B6E87;
  font-family: "Zen Kaku Gothic New", sans-serif;
  margin: 0;
}
.ao-drawer-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: #1A3A5C;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.ao-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #E1E8F1;
}
.ao-drawer-nav-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 8px;
  border-bottom: 1px solid #E1E8F1;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.ao-drawer-nav-item:hover {
  background: #F5F8FC;
  padding-left: 16px;
}
.ao-drawer-nav-en {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #1A3A5C;
  letter-spacing: -0.01em;
}
.ao-drawer-nav-ja {
  font-size: 12px;
  color: #5B6E87;
  font-weight: 500;
}

/* 修正⑥ 下層ページ共通スタイル --------------------------------------- */

body {
  background: #F5F8FC;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* 下層ページ：Cocoonヘッダー非表示 */
body:not(.home) #header-container,
body:not(.home) .header-container,
body:not(.home) #header {
  display: none;
}

/* 下層ページ：固定ヘッダー分のコンテンツ余白 */
body:not(.home) #content {
  padding-top: 80px;
}

/* AOMODEカスタムヘッダー（下層ページ） */
#aomode-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #E1E8F1;
  z-index: 9000;
  box-shadow: 0 2px 16px -8px rgba(26, 58, 92, 0.12);
  box-sizing: border-box;
}
.aomode-site-header-inner {
  width: 100%;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.aomode-site-header-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.aomode-site-header-catchcopy {
  font-size: 11px;
  font-weight: 700;
  color: #5B6E87;
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  white-space: nowrap;
}
.aomode-site-header-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #1A3A5C;
  text-decoration: none;
}
.aomode-site-header-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2C2C2C;
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}
.aomode-site-header-icon-btn:hover {
  background: #000;
  color: #fff;
}
.aomode-site-header-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* 下層ページ：リンクカラー・ボタン */
body:not(.home) a { color: #378ADD; }
body:not(.home) a:hover { color: #0C447C; }
body:not(.home) .btn,
body:not(.home) .cocoon-block-button__link {
  background: #1A3A5C;
  color: #fff;
  border: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}
body:not(.home) .btn:hover,
body:not(.home) .cocoon-block-button__link:hover {
  background: #378ADD;
  color: #fff;
}

/* カスタムヘッダー レスポンシブ */
@media (max-width: 768px) {
  .aomode-site-header-inner { padding: 0 16px; }
  .aomode-site-header-logo { font-size: 22px; }
  .aomode-site-header-catchcopy { font-size: 10px; }
}

/* 修正E: ホームページ上部の余白・白帯を除去 ----------------------------- */
/* body.home でIDセレクタより詳細度(1,1,0)以上に上げてCocoonを上書き */
body.home #wrapper,
body.home #container,
body.home #content-in,
body.home #content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent;
  overflow: visible !important;
}
/* Cocoon の sticky-header JS が #wrapper に inline style で padding-top を
   注入することがあるため !important を使用（管理バーが出る場合は除外しない） */

/* ---------------------------------------------------------------
** 修正① Who is? セクション刷新
** ------------------------------------------------------------- */

/* セクション：全幅・新背景色 */
.home .aomode-front .ao-whois-section {
  background: #274C95;
  width: 100vw;
  margin-left: calc((100% - 100vw) / 2);
  padding: 64px 20px;
  box-sizing: border-box;
  overflow: visible;
}

/* 白線ボックス：1200px 中央揃え */
.home .aomode-front .ao-whois-card {
  max-width: 1200px;
  margin: 0 auto;
  border: 1.5px solid #ffffff;
  border-radius: 12px;
  padding: 40px 56px;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: visible;
  position: relative;
}

/* 左エリア：縦積みテキスト */
.home .aomode-front .ao-whois-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ヘッダー行：縦積み */
.home .aomode-front .ao-whois-head-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Who is? ラベル：白背景・黒文字・角丸なし */
.home .aomode-front .ao-whois-tag {
  background: #ffffff;
  color: #1A1A1A;
  border-radius: 0;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  display: inline-block;
}

/* AOMODEロゴラップ */
.home .aomode-front .ao-whois-logo-wrap {
  display: flex;
  align-items: baseline;
  line-height: 1;
  flex-wrap: nowrap;
}

/* AOMODEロゴ */
.home .aomode-front .ao-whois-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 80px;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: none;
  transform-origin: unset;
  display: inline;
  margin: 0;
}

/* ? マーク */
.home .aomode-front .ao-whois-logo-q {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 60px;
  color: #ffffff;
  line-height: 1;
  display: inline;
}

/* 説明テキスト（新デザインでは直接配置） */
.home .aomode-front .ao-whois-body-text {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  color: #ffffff;
  margin: 0;
  padding: 0;
  position: static;
  z-index: auto;
  max-width: 400px;
}

/* 右エリア：イラスト ＋ バッジのコンテナ */
.home .aomode-front .ao-whois-illust {
  position: relative;
  display: block;
  height: 220px;
}

/* イラスト本体：白線ボックスの上下からはみ出す */
.home .aomode-front .ao-whois-prf-img {
  position: absolute;
  top: -72px;
  right: 10px;
  height: 364px;
  width: auto;
  z-index: 10;
  pointer-events: none;
}

/* Who is? レスポンシブ（768px以下） */
@media (max-width: 768px) {
  .home .aomode-front .ao-whois-section {
    padding: 48px 16px;
  }
  .home .aomode-front .ao-whois-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
  }
  .home .aomode-front .ao-whois-logo {
    font-size: 52px;
    transform: none;
  }
  .home .aomode-front .ao-whois-logo-q {
    font-size: 40px;
  }
  .home .aomode-front .ao-whois-illust {
    height: 260px;
  }
  .home .aomode-front .ao-whois-prf-img {
    height: 300px;
    top: -40px;
    right: 50%;
    transform: translateX(50%);
  }
}

/* ---------------------------------------------------------------
** 修正② ILLUSTRATION セクション：実画像
** ------------------------------------------------------------- */
.home .aomode-front .ao-illust-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==============================================================
** 下層ページ修正追加スタイル
** ============================================================ */

/* ---------------------------------------------------------------
** 修正①-A  Recent Comments ウィジェット非表示（修正②）
** ------------------------------------------------------------- */
.widget_recent_comments {
  display: none !important;
}

/* ---------------------------------------------------------------
** 修正④  ヘッダーボタン配置を CSS order で明示固定
**         ハンバーガー=左, ロゴ=中央, メール=右
** ------------------------------------------------------------- */
.aomode-site-header-inner .ao-hamburger-btn {
  order: 1;
}
.aomode-site-header-inner .aomode-site-header-logo-wrap {
  order: 2;
}
.aomode-site-header-inner a.aomode-site-header-icon-btn {
  order: 3;
}

/* ---------------------------------------------------------------
** 修正③  関連記事：BLOGカードと統一した縦型カードレイアウト
**          tmp/related-entry-card.php (子テーマオーバーライド) と連動
** ------------------------------------------------------------- */

/* ── グリッドコンテナ ── */
#related-entries .related-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  /* Cocoon のデフォルト float/flex レイアウトをリセット */
  float: none !important;
}

/* ── カードリンク（<a> 外枠） ── */
.ao-rlt-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #E1E8F1;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}
.ao-rlt-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(26,58,92,0.22);
  border-color: #5b9ee1;
  color: inherit;
  text-decoration: none;
}

/* ── カード article ── */
.ao-rlt-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ── サムネイル（画像上・全幅） ── */
.ao-rlt-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #c4c4c4;
  flex-shrink: 0;
}
/* NO IMAGE フォールバック（カテゴリ別グラデーション） */
.ao-rlt-thumb.rlt-ph-spiritual { background-color: transparent; background-image: linear-gradient(135deg, #7F6BC9, #5C4DA8); }
.ao-rlt-thumb.rlt-ph-quotes    { background-color: transparent; background-image: linear-gradient(135deg, #E0A23C, #C57A20); }
.ao-rlt-thumb.rlt-ph-qol-goods { background-color: transparent; background-image: linear-gradient(135deg, #4FB58A, #2F8F66); }
.ao-rlt-thumb.rlt-ph-mixed,
.ao-rlt-thumb.rlt-ph-thoughts  { background-color: transparent; background-image: linear-gradient(135deg, #378ADD, #1F6BBF); }

/* ── テキスト本体エリア ── */
.ao-rlt-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ── メタ行（日付 + カテゴリバッジ） ── */
.ao-rlt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ao-rlt-date {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  color: #7f8c8d;
  letter-spacing: 0.04em;
}

/* ── カテゴリバッジ（トップと統一） ── */
.ao-rlt-badge {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  background: #378ADD;
  white-space: nowrap;
}
.ao-rlt-badge.rlt-cat-spiritual { background: #7F6BC9; }
.ao-rlt-badge.rlt-cat-quotes    { background: #E0A23C; }
.ao-rlt-badge.rlt-cat-qol-goods { background: #4FB58A; }

/* ── タイトル ── */
.ao-rlt-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #1A3A5C;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  #related-entries .related-list {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}
@media (max-width: 480px) {
  #related-entries .related-list {
    grid-template-columns: 1fr !important;
  }
  .ao-rlt-title {
    font-size: 13px;
  }
}

/* ---------------------------------------------------------------
** 修正⑤  サイドバー・ランキングウィジェット
** ------------------------------------------------------------- */
.ao-sb-ranking-widget {
  background: #1A3A5C;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 0;
}
.ao-sb-ranking-widget .widget-title {
  background: #1A3A5C;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  padding: 14px 18px 10px;
  border-radius: 0;
  margin: 0;
}
.ao-sb-rank-list {
  padding: 0 12px 12px;
}
.ao-sb-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s ease;
}
.ao-sb-rank-item:last-child {
  border-bottom: none;
}
.ao-sb-rank-item:hover {
  opacity: 0.8;
  color: #fff;
  text-decoration: none;
}
.ao-sb-rank-num {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #6ec6f5;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}
.ao-sb-rank-thumb {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.ao-sb-rank-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------------------------------------------------------------
** 修正⑥  サイドバー各ウィジェット：カード型デザイン
** ------------------------------------------------------------- */
/* 共通：各ウィジェットをカードに */
.sidebar .widget {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 0;
  box-shadow: 0 2px 10px rgba(26,58,92,0.07);
}
/* ウィジェットタイトル共通 */
.sidebar .widget .widget-title,
.sidebar .widget .widgettitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 18px;
  margin: 0;
  border-radius: 0;
  line-height: 1.3;
}
/* ウィジェット内コンテンツの余白 */
.sidebar .widget > ul,
.sidebar .widget > div:not(.widget-title):not(.widgettitle),
.sidebar .widget form {
  padding: 12px 16px 14px;
}

/* Recent Posts：アイスブルー */
.sidebar .widget_recent_entries {
  background: #E6F1FB;
}
.sidebar .widget_recent_entries .widget-title,
.sidebar .widget_recent_entries .widgettitle {
  background: #0C447C;
  color: #fff;
}
.sidebar .widget_recent_entries a {
  color: #0C447C;
}
.sidebar .widget_recent_entries a:hover {
  color: #378ADD;
}

/* Archives：薄グレー */
.sidebar .widget_archive {
  background: #F5F8FC;
}
.sidebar .widget_archive .widget-title,
.sidebar .widget_archive .widgettitle {
  background: #5B6E87;
  color: #fff;
}

/* Categories：ブルー */
.sidebar .widget_categories {
  background: #378ADD;
}
.sidebar .widget_categories .widget-title,
.sidebar .widget_categories .widgettitle {
  background: #1A3A5C;
  color: #fff;
}
.sidebar .widget_categories a,
.sidebar .widget_categories label {
  color: #fff;
}
.sidebar .widget_categories a:hover {
  color: #E6F1FB;
  text-decoration: none;
}

/* 検索ウィジェット */
.sidebar .widget_search {
  background: #F5F8FC;
}
.sidebar .widget_search .widget-title,
.sidebar .widget_search .widgettitle {
  background: #5B6E87;
  color: #fff;
}

/* Recent Comments は非表示（修正②で display:none 済み）なので色設定不要 */

/* ウィジェット内 ul リストの余白調整 */
.sidebar .widget ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.sidebar .widget ul li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
}
.sidebar .widget_categories ul li,
.sidebar .widget_categories ul li a {
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.sidebar .widget ul li:last-child {
  border-bottom: none;
}

/* ---------------------------------------------------------------
** ヘッダーアイコンボタン追加（SUZURI / Instagram）
** ------------------------------------------------------------ */

/* FV（トップページ）：左側ボタン群をまとめる flex ラッパー */
.home .aomode-front .ao-fv-icon-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 下層ページ：右側ボタン群をまとめる flex ラッパー */
.aomode-site-header-inner .aomode-site-header-icon-group {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 3; /* 既存の a.aomode-site-header-icon-btn { order:3 } と同じ位置 */
}

/* SUZURIボタン内 "S" テキストアイコン */
.ao-icon-s {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* Tabler アイコン（ti クラス）のサイズ調整 */
.ao-fv-icon-btn .ti {
  font-size: 22px;
}
.aomode-site-header-icon-btn .ti {
  font-size: 20px;
}
