/* --------------------
   Base
-------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.6rem; /* 16px相当 */
  line-height: 1.8;
  color: #333;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.container,
.header-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* カラーカスタムプロパティ */
:root {
  --main: #4a7c59;
  --border: #dfe7e2;
  --bg: #ffffff;
  --radius: .8rem;
}

/* --------------------
   見出し
-------------------- */
h1 { font-size: 2.4rem; line-height: 1.3; margin-bottom: 1rem; color: #2e7d32; }
h2 { font-size: 2.2rem; line-height: 1.4; margin-bottom: 1rem; }
h3 { font-size: 1.8rem; line-height: 1.4; margin-bottom: .8rem; }
h4 { font-size: 1.4rem; margin-bottom: .8rem; }
h5 { font-size: 1.3rem; margin-bottom: .8rem; }

/* --------------------
   Header
-------------------- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
}

.header-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #2e7d32;
}
/* スマホだけサイズを少し小さく */
@media (max-width: 768px) {
  .header-title {
    font-size: 1.6rem;   /* ← お好みで 1.4〜1.8rem が見やすいです */
    line-height: 1.3;
  }
}
/* ナビ本体 */
.header-nav { display: flex; }

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-item a {
  display: block;
  padding: .8rem 0;
  font-size: 1.5rem;
}

/* 検索フォーム */
.menu-search-form { display: flex; align-items: center; }

.search-input-wrapper {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 2rem;
  overflow: hidden;
}

.menu-search-input {
  border: none;
  padding: .6rem 1rem;
  font-size: 1.4rem;
  outline: none;
}

.menu-search-submit {
  border: none;
  background: none;
  padding: 0 1rem;
  cursor: pointer;
  color: #888;
}

/* ハンバーガー */
.nav-toggle { display: none; }

.hamburger-btn {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
}

.hamburger-btn .bar,
.hamburger-btn .bar::before,
.hamburger-btn .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2e7d32;
  border-radius: 2px;
  transition: .3s;
}

.hamburger-btn .bar { top: 50%; transform: translateY(-50%); }
.hamburger-btn .bar::before { top: -8px; }
.hamburger-btn .bar::after { top: 8px; }

.nav-toggle:checked + .hamburger-btn .bar { background: transparent; }
.nav-toggle:checked + .hamburger-btn .bar::before {
  transform: rotate(45deg) translate(3px,5px);
}
.nav-toggle:checked + .hamburger-btn .bar::after {
  transform: rotate(-45deg) translate(3px,-5px);
}

/* --------------------
   SPナビ表示
-------------------- */
@media (max-width: 768px) {
  .hamburger-btn { display: block; }

  .header-nav {
    position: fixed;
    top: 6rem;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: .3s;
  }

  .nav-toggle:not(:checked) ~ .header-nav { height: 0; }
  .nav-toggle:checked ~ .header-nav { height: auto; }

  .nav-list { flex-direction: column; padding: 1.6rem; }
  .nav-item a { padding: 1rem 0; border-bottom: 1px solid #f0e8e8; }
  .nav-search-item { margin-bottom: .8rem; }
}

/* --------------------
   グリッド
-------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6rem;
  padding: 0;
  margin: 10px;
}

.article-grid > li {
  list-style: none;
}

/* --------------------
   カード共通
-------------------- */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: .2s;
  position: relative;

  display: flex;
  flex-direction: column;
  min-height: 280px;

  width: 100%;
  min-width: 0;               /* ★超重要 */
  box-sizing: border-box;
}

.article-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

/* --------------------
   サムネ
-------------------- */
.card-thumb-wrap {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
}

.card-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* --------------------
   本文
-------------------- */
.card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.5rem;
  margin: 0 0 .8rem;
  line-height: 1.5;
}

.card-date {
  font-size: 1.4rem;
  color: #8a6e75;
  margin-top: auto;
}

/* ====================
   スマホ
==================== */
@media (max-width: 768px) {

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 5px;
  }

  .article-card {
    min-width: 0;   /* ← 260pxを完全に消す */
  }
}

/* --------------------
   カテゴリー・すごろく
-------------------- */
.category {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: 1.6rem;
  max-width: 1080px;
  margin: 2rem auto;
  padding: 0 1.6rem;
}

.category-sugoroku { display: flex; flex-direction: column; align-items: center; }

.sugoroku-image {
  width: 100px;
  height: 100px;
  border-radius: 10%;
  border: 1px solid #c8e6c9;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sugoroku-image:hover {
background:#c8e6c9;
}

.sugoroku-image::before {
  content: "";
  position: absolute;
  inset: 0;
}

.sugoroku-text {
  color: #000;
  font-size: 16px;
  text-align: center;
  line-height: 1.5;
  padding: 0 8px;
  position: relative;
}
/* --------------------
カテゴリーイメージ
-------------------- */
/* --------------------
  Font Awesome 電球アイコン（擬似要素）
-------------------- */
.sugoroku-image {
  position: relative; /* 擬似要素を絶対配置するため */
}

#catenum0,
#catenum1,
#catenum2,
#catenum3,
#catenum4,
#catenum5,
#catenum6,
#catenum7,
#catenum8,
#catenum9,
#catenum10,
#catenum11,
#catenum12 {
  position: relative; /* ::before を相対基準にする */
}

#catenum0::before,
#catenum1::before,
#catenum2::before,
#catenum3::before,
#catenum4::before,
#catenum5::before,
#catenum6::before,
#catenum7::before,
#catenum8::before,
#catenum9::before,
#catenum10::before,
#catenum11::before,
#catenum12::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: rgb(200, 230, 201);
  z-index: 0; /* テキストより背面に */
  pointer-events: none;
}

/* アイコンの指定 */
#catenum0::before { content: "\f059"; }
#catenum1::before { content: "\f0eb"; }
#catenum2::before { content: "\f0c0"; }
#catenum3::before { content: "\f468"; }
#catenum4::before { content: "\f519"; }
#catenum5::before { content: "\f249"; }
#catenum6::before { content: "\f043"; }
#catenum7::before { content: "\f0e7"; }
#catenum8::before { content: "\f71e"; }
#catenum9::before { content: "\f3c5"; }
#catenum10::before { content: "\f058"; }
#catenum11::before { content: "\f0ae"; }
#catenum12::before { content: "\f059"; }

#stepnum1::before { content: "STEP1"; }
#stepnum2::before { content: "STEP2"; }
#stepnum3::before { content: "STEP3"; }
#stepnum4::before { content: "STEP4"; }
#stepnum11::before { content: "STEP5"; }

#stepnum1::before,
#stepnum2::before,
#stepnum3::before,
#stepnum4::before ,
#stepnum11::before { 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15px;
  color: #2e7d32;
 }

/*--カテゴリー文章--*/
#catetex1,
#catetex2,
#catetex3,
 {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #555;
}
.category-description{
  display:none;
  font-size:1.4rem;
  line-height:1.8;
  color:#555;
}

/* --------------------
   レスポンシブ
-------------------- */
@media (max-width: 768px) {
  body { font-size: 1.5rem; }

  h1 { font-size: 2rem; color: #2e7d32; }
  h2 { font-size: 1.8rem; color: #2e7d32; }
  h3 { font-size: 1.6rem; color: #2e7d32; }
  h4 { font-size: 1.4rem; color: #2e7d32; }
  h5 { font-size: 1.4rem; color: #2e7d32; }

  .article-grid { grid-template-columns: repeat(2, 1fr); 
  margin: 5px;
}
  .category { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

  .sugoroku-image { width: 90px; height: 90px; }
  .sugoroku-text { font-size: 14px; }

  .article-card .card-title { font-size: 1.6rem; }
  .article-card .card-date { font-size: 1.3rem; }
}

.card-date{
  font-size: 1.4rem;
  color: #8a6e75;
  margin-top:auto;   /* ここだけでOK */
}

/* --------------------
   フッター
-------------------- */
#footer-block {
  background: #e8f5e9;
  padding: 3rem 2rem;
  font-size: 1rem;
}

#footer-block .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem 2rem;
}

#footer-block .footer-list li { line-height: 1.6; }

.footer-list-item a,
.footer-list-item-1 a,
.footer-list-item-link {
  color: #444;
  text-decoration: none;
}

.footer-list-item a:hover,
.footer-list-item-1 a:hover,
.footer-list-item-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  #footer-block .footer-list {
    flex-direction: column;
    align-items: center;
    gap: .6rem;
  }

  #footer-block { text-align: center; }
}
#footer-block a,
.footer-list-item-link {
    display: inline-block; /* 必須！これがないとpaddingが効きません */
    padding: 0.8rem 1rem;  /* 上下0.8remあれば48px以上の高さを確保できます */
    text-decoration: underline; /* リンクであることを分かりやすくする */
    min-width: 44px;       /* 最小幅を確保 */
}

/* --------------------
   ページトップ
-------------------- */
#page-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  transition: .25s;
}

#page-top a {
  text-decoration: none;
  color: #c8e6c9;
  font-size: 50px;
}

@media (max-width: 768px) {
  #page-top { width: 50px; height: 50px; right: 1rem; bottom: 7rem; }
  #page-top a { font-size: 50px; }
}

/* --------------------
   アイキャッチ
-------------------- */
.main-eyecatch {
  width: 100%;
  min-height: 320px;
  background-image: url("//preparedness.sugo-roku.com/File/sugoroku_top.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-eyecatch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.40);
}

.eyecatch-content {
  position: relative;
  text-align: center;
  color: #fff;
}

.eyecatch-copy { margin: 0 0 .5rem; font-size: 2rem; 
  color: #fff;
}
.eyecatch-sub { margin: 0; font-size: 1.1rem; opacity: .9; }

/* --------------------
   ページャー
-------------------- */
.pager-block { margin: 3rem 0; 
}

.pager-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.pager-item { list-style: none; }

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10%;
  background: #e8f5e9;
  color: #555;
  border: 1px solid #c8e6c9;
  text-decoration: none;
  font-size: 18px;
  transition: .25s;
}

.pager-link:hover {
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.pager-item.prev .pager-link::before { content:"«"; }
.pager-item.next .pager-link::after { content:"»"; }

/* --------------------
   ボタン
-------------------- */
.more-btn { text-align: center; margin: 2rem 0; }

.more-btn .btn-text {
  display: inline-block;
  padding: 10px 32px;
  border-radius: 10px;
  border: 1px solid #c8e6c9;
  color: #161616;
  font-size: 1rem;
  text-decoration: none;
  background: #fff;
  transition: all .3s;
}

.more-btn .btn-text:hover { background: #e8f5e9; border-color: #cec; }

@media (max-width: 768px) {
  .more-btn .btn-text { padding: 10px 24px; font-size: .95rem; }
}

.section-title{ font-size:1.8rem; font-weight:bold; margin-bottom:1.6rem; text-align: center; margin: 2rem 0; }

.section-title span{ display:block; font-size:1.2rem; color:#2e7d32; }

/* ===== プロフィールボックス ===== */
.nb-profileBox{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap:12px; /* ←画像と名前の間隔 */
  padding:18px;
  border-radius:14px;
  background:#fff;
  border:1px solid #e5e5e5;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  max-width:900px;
  margin:20px auto;
}

.nb-profileBox_icon img{
  width:120px;
  height:120px;
  border-radius:50%;
  object-fit:cover;
}

.nb-profileBox_name{
  font-size:1.8rem;
  font-weight:bold;
  color:#333;
  text-align:center;
  margin-bottom:6px;
}

.nb-profileBox_body{
  width:100%;
  text-align:left;
}

.nb-profileBox_text{
  line-height:1.9;
  color:#555;
  margin-bottom:15px;
}

.nb-profileBox_btn{
  display: block;
  width: fit-content;
  margin: 0 auto;   /* ←中央寄せ */
}

.nb-profileBox_btnLink{
  display:inline-block;
  padding:10px 32px;
  border: 1px solid #c8e6c9;
  color:#161616;
  border-radius:10px;
  text-decoration:none;
  font-size:1rem;
}

.nb-profileBox_btnLink:hover{
  background:#e8f5e9;
  border-color:#cec;
}
/*--ハイライト--*/
.highlight {
	background: linear-gradient(transparent 50%, yellow 0%);
	line-height: 1.3em
  display: inline;                 /* ★ 行全体を防ぐ */

}
.mark {
  background: linear-gradient(transparent 40%, orange 80%);　/*オレンジ*/
  display: inline;                 /* ★ 行全体を防ぐ */
}
/*--ページの設定--*/
.entry-title {
  font-size: 2.4rem;
  line-height: 1.4;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 1rem;
}

/* ───────────────
   記事ヘッダー全体
──────────────── */

/* ───────────────
   タイトル
──────────────── */
.entry-title-block{
  text-align:left;
}

.entry-meta{
}

/* ───────────────
   記事本文 全体ボックス
──────────────── */
.entry-text-block{
  background:#ffffff;               /* 読みやすい白 */
  border:1px solid #e2ebe5;         /* 淡いグリーン寄りの枠線 */
  border-radius:16px;               /* やさしい角丸 */
  margin-top:20px;
  margin-left:6em;
  margin-right:6em;
  line-height:1.9;
  color:#4a6753;                    /* 目にやさしい文字色 */
    padding:20px 50px;

}
.entry-notice {
  font-size: 1.2rem;   /* 文字を小さく */
  color: #666;         /* 薄いグレー */
  line-height: 1.4;    /* 読みやすさのため追加 */
}
/* ───────────────
   中のテキスト領域（安全に余白確保）
──────────────── */
.entryText{
  font-size:1.7rem;
 margin-left:5em;
 margin-right:5em; 
}

.entry-footer{
text-align: right;}

/* ───────────────
   本文内 画像（プロフィール画像など）
──────────────── */
.nb-profileBox_icon img{
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:50%;
  border:3px solid #dfe9e3;
  display:block;
  margin:0 auto 12px;
}

/* ───────────────
   小見出し（h2、h3、h4、h5 ）
──────────────── */
.entryText h2{
  font-size:2.2rem;
  color:#2e7d32;
  border-left:6px solid #4a7c59;
  padding-left:10px;
  margin:28px 0 10px;
  border-bottom: 2px solid #4a7c59;
  border-top: 2px solid #4a7c59;
}
.entryText h3{
  font-size:1.8rem;
  color:#2e7d32;
  border-left:6px solid #4a7c59;
  padding-left:10px;
  margin:28px 0 10px;
  border-bottom: 2px solid #4a7c59;
}
.entryText h4{
  font-size:1.6rem;
  color:#2e7d32;
  border-left:6px solid #98c9a3;
  padding-left:10px;
  margin:28px 0 10px;
}
.entryText h5{
  font-size:1.5rem;
  color:#2e7d32;
  border-left:6px solid #98c9a3;
  padding-left:10px;
  margin:28px 0 10px;
}

/* ───────────────
   強調文字
──────────────── */
.entryText strong{
  color:#165c2a;
}

/* ───────────────
   スマホ調整
──────────────── */
@media (max-width:768px){

  .entry-text-block{
    padding:18px 16px;
  margin-left:10px;
  margin-right:10px;

  }

  .entryText{
    font-size:1.55rem;
    margin-left:0em;
    margin-right:0em;
  }

  .entryText h2{
    font-size:1.9rem;
  }
}
/* 共通デザイン */
.entry-header-block{
  border:1px solid #dfe7e2;
  position:relative;
  background-color: #e9f4ec;   /* 薄い緑 */
  padding: 16px 20px;          /* 上下・左右の余白 */
  border-radius: 12px;         /* 角を少し丸く */
  margin: 10px 0;              /* ブロック上下の余白 */
}

/* 見出し文字の装飾（必要なら） */
/* ───────────────
   スマホ調整
──────────────── */
@media (max-width:768px){
  .entry-header-block{
    padding:14px 14px;
  }
  
  .entry-title{
    font-size:2rem;
  }
}
/* PC表示時（768px以上） */
@media (min-width: 768px){
  .entry-header-block{
    padding: 20px 40px;        /* 左右を広めに */
   margin-left: 50px;
    margin-right: 50px;
  }
.main-block{
  background-color: #e9f4ec;   /* 薄い緑 */
}}

.entry-text-block ul {
  list-style: disc;
  padding-left: 1.6em;
  margin: 0 0 1em;
}
/* --------------------
  パンくずリスト横並び
-------------------- */
.breadcrumb-nav {
  margin: 1rem 0;
  font-size: 1.4rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap; /* スマホで折り返し可能 */
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem; /* 項目間のスペース */
  align-items: center;
}

.breadcrumb-item a,
.breadcrumb-item span {
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* 区切り（>など）を追加 */
.breadcrumb-item:not(:last-child)::after {
  content: "›"; /* 好みに応じて › や / に変更可 */
  margin: 0 0.5rem;
}

/* 現在ページ */
.breadcrumb-item.current span {
  font-weight: bold;
  color: #333;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .breadcrumb-nav {
    font-size: 1.3rem;
  }
}
/* カテゴリー */
.card-category{
  position: absolute;
  top: 0.6rem;    /* お好みで調整OK */
  left: 0.6rem;   /* お好みで調整OK */
  background: #C75B12;  /* 背景色：自由に変更OK */
  color: #fff;
  padding: 0.5rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  line-height: 1;
}

.card-link{
  display:flex;
  flex-direction:column;
  height:100%;
}


/* 防災をはじめる（ID=1 だと仮定） */
.card-category.cat-1{
  background:#EAF4FF;
  color:#245B9E;
}

/* 家族で話し合う（ID=2 だと仮定） */
.card-category.cat-2{
  background:#FFF2F7;
  color:#B5466F;
}

/* 備える（ID=3 だと仮定） */
.card-category.cat-3{
  background:#E8F8F2;
  color:#1E7A55;
}

/* 避難と情報収集（ID=4） */
.card-category.cat-4{
  background:#FDF5E6;
  color:#A06000;
}

/* チェックリスト・まとめ（ID=11） */
.card-category.cat-11{
  background:#EEF0FF;
  color:#3B45A8;
}

/* その他（ID=5） */
.card-category.cat-5{
  background:#F4F4F4;
  color:#555;
}

/* 未選択（ID=0） */
.card-category.cat-0{
  background:#DDD;
  color:#333;
}

/* 防災をはじめる（ID=1） */
.card-category[data-cat="防災をはじめる"]{
  background:#EAF4FF;
  color:#245B9E;
}

/* 家族で話し合う（ID=2） */
.card-category[data-cat="家族で話し合う"]{
  background:#FFF2F7;
  color:#B5466F;
}

/* 備える（持ち物・食料・水などまとめ）（ID=3） */
.card-category[data-cat="備える（持ち物・食料・水などまとめ）"]{
  background:#E8F8F2;
  color:#1E7A55;
}

/* 避難と情報収集（ID=4） */
.card-category[data-cat="避難と情報収集"]{
  background:#FDF5E6;
  color:#A06000;
}

/* チェックリスト・まとめ（ID=11） */
.card-category[data-cat="チェックリスト・まとめ"]{
  background:#EEF0FF;
  color:#3B45A8;
}

/* その他（ID=5） */
.card-category[data-cat="その他"]{
  background:#F4F4F4;
  color:#555;
}

/* 未選択（ID=0） */
.card-category[data-cat="未選択"]{
  background:#DDD;
  color:#333;
}

/* H2 大見出し */
.entryTextMain h2 {
  font-size: 2rem;
  border-left: 6px solid #4a7c59;
  padding-left: .8rem;
  margin: 2.4rem 0 1.2rem;
  color: #2e7d32;
}

/* H3 小見出し */
.entryTextMain h3 {
  font-size: 1.8rem;
  margin: 1.6rem 0 .8rem;
  color: #4a7c59;
}
/*--目次--*/
#toc-1 {
  margin: 2rem 0;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
}
#toc:before {
	content: "目次（ページ内移動）";
	padding-left: 0;
	color: #555;
	font-size: .9em;
}
#toc {
	background: #f7fbf8;
	border: 2px solid #555;
	font-size: 1em;
        display: block;
        max-width: 500px;
        margin: 2rem auto;
	padding: 15px;
	width: auto;
	border-radius: 10px;
}
#toc ul, #toc ul li {
	margin: 1.5px 5px 0 0;
	padding: 0;
	line-height: 1.3;
	color: #000;
}
#toc > ul > li {
        line-height: 1.8!important;
}
#toc ul ul li {
        font-size: 0.85em;
        line-height: 1.5;
}

#toc a {
	color: #165c2a;
	font-weight: 450;
}
#toc a:hover {
	font-weight: 700;
}
#toc ul {
        padding-left: 0;
}

#toc ul li {
        list-style: none;
}

#toc > ul > li > a {
        text-decoration: underline;
}

/*--タグ--*/
.tag {
  font-size: 75%;
  padding: 4px 10px;
  border-radius: 10px;
  border: solid 2px #2e7d32;
  color: #2e7d32;
  background: #fff;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3);
  display: inline-block;
  margin: 0;
}
.ingredients, .preptime, .instructions, .point, .caution, .grocerylist {
 font-weight: 700; /* ← 太字（bold） */
  display: inline;                 /* ★ 行全体を防ぐ */
	background: linear-gradient(transparent 50%, yellow 0%);
	line-height: 1.3em
}
.tag::before, .ingredients::before, .preptime::before, .instructions::before, .point::before, .caution::before, .grocerylist::before {
	font-family: "Font Awesome 6 Free";
	/* バージョン6を指定 */
	font-weight: 900;
	/* 塗りつぶしタイプなので900 */
	margin-right: 8px;
	/* 文字との隙間 */
	display: inline-block;
}
.tag::before {
	content: "\f02b";
	/* 複数のタグアイコン */
}
.caution::before {
	content: "\f071";
	/* 複数のタグアイコン */
}
.point::before {
	content: "\f08d";
	/* 複数のタグアイコン */
}

/* --- 文字のみカードリンク --- */
.text-card-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid #4a7c59;
  border-radius: 14px;
  padding: 10px 15px;
  text-decoration: none;
  color: #2f4f3f;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  transition: transform .15s, box-shadow .15s, background .15s;
  margin: 16px 0;
}

.text-card-link:hover {
  background: #f5faf6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

/* バッジ */
.text-card-badge {
  flex-shrink: 0;
  background: #4a7c59;
  color: #fff;
  font-size: 1.2rem;
  padding: 2px 10px;
  border-radius: 999px;
}

/* テキスト */
.text-card-body {
  flex: 1;
}

.text-card-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0 0 4px;
}

.text-card-text {
  font-size: 1.3rem;
  color: #666;
  margin: 0;
}

/* 矢印 */
.text-card-arrow {
  font-size: 1.6rem;
  color: #4a7c59;
  flex-shrink: 0;
}

/* スマホ：縦並び */
@media (max-width: 768px) {
  .text-card-link {
    flex-direction: column;
    align-items: flex-start;
  }

  .text-card-arrow {
    align-self: flex-end;
    margin-top: 6px;
  }
}


/* =========================
   Top すごろく一覧
========================= */
/* =========================
   トップカテゴリー
========================= */
.top-sugoroku {
  display: flex;
  flex-direction: column;
  max-width: 1080px;
  margin: 20px auto;
  padding: 0 16px;
  font-family: sans-serif;
}

/* 各行 */
.top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
}

/* 左の丸アイコン */
.top-time {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #c8e6c9;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.top-time2 {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  flex-shrink: 0;
  font-weight: bold;        /* STEPやアイコンも太字 */
  flex-shrink: 0;           /* サイズを縮めない */
  line-height: 2.5;
}

/* 中央テキスト（PC基準） */
.top-text {
  font-weight: bold;
  font-size: 1.7rem;
  line-height: 1.4;
  flex: 1;              /* 横幅を最大確保 */
  min-width: 0;         /* 省略・折り返し制御に必須 */
  white-space: nowrap;  /* PCでは1行 */
  overflow: visible;    /* 省略しない */
  margin-left: 15px; /* 左のアイコンやSTEPとの間隔 */
}

/* 右の件数 */
.top-count {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 8px;
  border: 4px solid #c8e6c9;
  border-radius: 10%;
  background-color: #c8e6c9;
  font-size: 1.3rem;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =========================
   スマホ対応
========================= */
@media (max-width: 768px) {

  .top-item {
    gap: 8px;
    padding: 8px 10px;
  }

  .top-time {
    width: 30px;
    height: 30px;
  }

  .top-text {
    font-size: 1.35rem;
    white-space: normal; /* スマホでは折り返しOK */
  }

  .top-count {
    font-size: 1.2rem;
  }
}

.entry-body ul,
.entry-content ul,
.entryText ul {
  list-style: disc !important;     /* 丸ポチを復活 */
  margin-left: 1.5em !important;   /* 左に余白 */
  padding-left: 0.5em !important;  /* インデント */
}

.entry-body ul li,
.entry-content ul li,
.entryText ul li {
  list-style: revert;;   /* list表示を保証 */
}
.entry-body ol li,
.entry-content ol li,
.entryText ol li {
  list-style: revert;;   /* list表示を保証 */
}
/*--テーブル--*/
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px; /* スマホは横スクロール */
  background: #fff;
}

.table th,
.table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}
table td ul,
td ul li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.table th {
  background: #eef7f1;
  font-weight: 700;
}

.table tr:nth-child(even){
  background:#fafafa;
}

.table td:first-child{
  font-weight: 600;
}

/* スマホ用微調整 */
@media (max-width: 768px) {
  .table th,
  .table td{
    font-size: 13px;
    padding: 8px;
  }
  .table td{
    text-align: left;
  }
}
/* =========================
   横スクロール誘導（スマホのみ）
========================= */
@media (max-width: 768px) {

  /* table-wrap を基準にする */
  .table-wrap {
    position: relative;
  }

  /* スクロールインジケーター */
/* PCではスクロールインジケーターを非表示 */
  .scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6);
     pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.3s;
    animation: slideHint 1.2s infinite;
  }

  .scroll-indicator.left {
    left: 6px;
  }

  .scroll-indicator.right {
    right: 6px;
  }

  /* 端に来たら非表示 */
  .table-wrap.hide-left .scroll-indicator.left {
    opacity: 0;
  }

  .table-wrap.hide-right .scroll-indicator.right {
    opacity: 0;
  }
}

/* アニメーション */
@keyframes slideHint {
  0%   { transform: translate(0, -50%); }
  50%  { transform: translate(-6px, -50%); }
  100% { transform: translate(0, -50%); }
}
@media (min-width: 769px) {
  .scroll-indicator {
  pointer-events: auto;
  cursor: pointer;
  }
}
/* PCではスクロールインジケーターを完全に非表示 */
@media (min-width: 769px) {
  .scroll-indicator {
    display: none !important;
  }
}

/* =========================
   右端フェード（ページの影風）
========================= */
@media (max-width: 768px) {

  .table-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;               /* 影の幅（お好みで） */
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.20),
      rgba(0, 0, 0, 0)
    );
    transition: opacity 0.1s;
  }

  /* 右端まで行ったら消す */
  .table-wrap.hide-right::after {
    opacity: 0;
  }
 /* 途中は完全に消す */
  .table-wrap.is-middle .scroll-indicator,
  .table-wrap.is-middle::after {
    opacity: 0;
  }
}
/* =========================
   左1列を固定（Excel風）
========================= */
@media (max-width: 768px) {

  .table th:first-child,
  .table td:first-child {
    position: sticky;
    left: 0;
    background: #fff;       /* 下の列が透けないように */
    z-index: 2;
  }

  /* ヘッダーがある場合はさらに前面に */
  .table th:first-child {
    z-index: 3;
    background: #eef7f1;    /* thの背景色に合わせる */
  }
}

/*--問い合わせフォーム--*/
/* お問い合わせフォーム専用の微調整 */
.contact-form-wrapper {
    position: relative;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.contact-form-wrapper iframe {
    display: block;
    width: 100%;
    /* フォームの内容量に合わせて高さを微調整してください */
    min-height: 800px; 
}

/* スマホではフォームが縦に伸びるため高さを確保 */
@media (max-width: 768px) {
    .contact-form-wrapper iframe {
        min-height: 1000px;
    }
}
/* -----------------------------
  relate-card 全体ボックス
------------------------------ */
.relate-card-box {
  margin: 24px 0;
}

/* -----------------------------
  カード本体
------------------------------ */
.relate-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start; /* PCは左上揃え */
  text-decoration: none;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
  transition: all 0.2s ease;
}

/* ホバー効果 */
.relate-card:hover {
  background: #f0f7f3;
  border-color: #cce5d8;
}
.relate-card:hover * {
  text-decoration: none;
}

/* -----------------------------
  サムネイル
------------------------------ */
.relate-thumb {
  width: 120px; /* PC固定幅 */
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.relate-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -----------------------------
  テキスト部分
------------------------------ */
.relate-text {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  color: #333;
  line-height: 1.5;
}

.relate-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.relate-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 8px;
}

/* 「●●で読む」ボタン */
.relate-readmore {
  font-weight: bold;
  color: #0073e6;
  font-size: 1.2rem;
}

/* -----------------------------
  サイト名ラベル
------------------------------ */
.relate-label {
  position: absolute;
  top: 0px;
  left: 0px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e9546b;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

/* -----------------------------
  スマホ対応（600px以下）
------------------------------ */
@media (max-width: 600px) {
  .relate-card {
    flex-direction: column; /* 縦並び */
    align-items: flex-start;
    gap: 0; /* スペース調整 */
  }

  /* 画像サイズ固定 */
  .relate-thumb {
    width: 100%;       /* 幅はカードに合わせる */
    height: 150px;     /* 高さ固定 */
    flex-shrink: 0;
    margin: 0 5px 2px 5px; /* 上:0px 左右:5px 下:2px */
  }

  .relate-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を維持して切り取り */
  }

  .relate-text {
    width: 100%;
  }
}

/* 文字をCSSで制御 */ .relate-label::before { content: "\2714\FE0E　あわせて読みたい"; /* ここで文字を指定 */ color: #fff; /* 文字色を白に（背景色が赤い場合など） */ background: #e9546b; /* 例として赤系の背景色を追加 */ font-size: 1.1rem; font-weight: 600; display: inline-block; padding: 2px 6px; border-radius: 4px; }
/*--もしも--*/
[id^="msmaflink-"] {
  display: block;
  width: fit-content;
  margin: 0 auto;
}
img[src*="i.moshimo.com/af/i/impression"] {
  display: none !important;
}
/* リンク先画像のレスポンシブ対応 */
a[href*="palcloset.jp"] img {
  width: 100%;      /* 画面幅いっぱい */
  max-width: 500px; /* PCなら最大500px */
  height: auto;
  display: block;
  margin: 0 auto;   /* 中央寄せ */
}

/* スマホ対応（画面幅狭い場合は自動で100%） */
@media screen and (max-width: 768px) {
  a[href*="palcloset.jp"] img {
    max-width: 100%;
  }
}

.single-entry a {
    font-weight: bold;      /* 太字 */
    color: #FF5722;         /* 好きな色に変更可能 */
    text-decoration: none;  /* 下線を消す場合 */
}

/* ホバー時に色を変えたい場合 */
.single-entry a:hover {
    color: #E64A19;         /* ホバー時の色 */
    text-decoration: underline; /* 下線を付ける場合 */
}
.source{
  font-size:0.9em;
  color:#666;
}
.source a{
  color:#245B9E;
  text-decoration:underline;
}
/* CSS部分 */
/* カード全体の枠 */
.recommend-card {
  position: relative;
  border: 2px solid rgb(22, 92, 42);
  border-radius: 8px;
  padding: 35px 20px 20px !important; /* 上の余白を少し広めに */
  max-width: 500px;
  background-color: #fff;
  margin-top: 30px; 
}

/* 左上に浮かせるタイトル */
.recommend-card .recommend-title {
  position: absolute;
  top: -15px;
  left: 15px;
  background-color: rgb(22, 92, 42);
  color: #fff !important;
  padding: 4px 15px !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  border-radius: 4px;
  margin: 0 !important; /* 元のCSSの余白をリセット */
}

/* リスト部分（既存の!importantを上書き） */
.recommend-card .recommend-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.recommend-card .recommend-list li {
  position: relative;
  padding-left: 1.5rem !important;
  margin-bottom: 10px !important;
  margin-left: 0 !important; /* 左のズレを解消 */
  line-height: 1.6;
  color: #333;
  list-style-type: none !important; /* 黒丸を確実に消す */
}

/* チェックマーク */
.recommend-card .recommend-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: rgb(22, 92, 42);
  font-weight: bold;
}
/*--CTA--*/
.cta-pet {
  display: block;
  max-width: 360px;
  padding: 14px 16px;
  text-align: center;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.5;
  margin: 12px auto 20px; /* 上を詰める */
  background: #e3f3e8;        /* さらにやさしい薄緑 */
  border: 1px solid #c7e2d1;  /* うっすら枠 */
  color: #2f5d46;

}

.cta-pet:hover {
  opacity: 0.85;
}
/*--次に--*/
.next-step-box {
  margin: 2.5em 0;
  padding: 1.5em;
  background: #f4fbf7;        /* 薄いグリーン */
  border: 1px solid #cfe8db;
  border-radius: 12px;
  font-size: 1.2rem;
}

.next-step-box p {
  margin: 0 0 0.8em;
  line-height: 1.7;
}

.next-step-box strong {
  color: #2f6f55;
  font-size: 1.05em;
}

.next-step-box a {
  color: #2f6f55;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px dashed #2f6f55;
}

.next-step-box a:hover {
  opacity: 0.8;
}
.next-step-box ul {
  list-style: none!important;
  padding-left: 0;
  margin-left: 0;
}

/* =========================
   はじめての方向けスタートガイド
========================= */

.start-guide{
  max-width: 900px;
  margin: 30px auto 50px;
  padding: 20px 24px;
  background: #f4fbf6; /* やさしいグリーン */
  border-radius: 18px;
  border: 2px dashed #b7e0c2; /* すごろく感 */
}

.start-guide-title{
  font-size: 1.7rem;
  font-weight: 700;
}
/* entryTextMain先頭の注意文言をレスポンシブ対応で表示 */
.entryTextMain::before {
    content: "※本ページは一般的な防災情報です。地域の防災計画や自治体の指示もあわせてご確認ください。";
    display: block;               /* ブロック表示で本文の上に */
    font-size: 0.9em;             /* 標準PCサイズ */
    color: #666666;               /* 薄いグレー */
    margin-bottom: 10px;          /* 本文との間隔 */
    line-height: 1.4;             /* 行間で潰れを防止 */
    word-break: break-word;        /* 長い文章も折り返す */
}

/* スマホ対応: 画面幅768px以下で文字サイズを少し小さく */
@media screen and (max-width: 768px) {
    .entryTextMain::before {
        font-size: 0.8em;         /* スマホ用に調整 */
        margin-bottom: 8px;       /* 間隔も少し狭め */
    }
}
/*--チェックリスト形式--*/
/* 記事内用チェックリスト */
/* チェックボックス非表示 */
.filter-area input[type="checkbox"] {
  display: none;
}

/* ラベルをボタン化 */
.filter-area label {
  display: inline-block;
  padding: 6px 14px;
  margin: 4px 6px 4px 0;
  border-radius: 20px;
  background: #e9ecef;
  cursor: pointer;
  font-size: 13px;
  transition: .2s;
}

/* ✔ 用余白 */
.filter-area label::before {
  content: "";
  width: 14px;
  display: inline-block;
  margin-right: 6px;
}

/* ON状態 */
.filter-area input:checked + label {
  background: #007bff;
  color: #fff;
  font-weight: bold;
}

/* ✔ 表示 */
.filter-area input:checked + label::before {
  content: "✔";
}

/* 全て表示だけ色変更 */
#filter-all:checked + label {
  background: #28a745;
}
/* ===== チェックリスト共通 ===== */
.check-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
}

.check-item {
  margin: 5px 0;
}

/* チェックボックスは隠す */
.check-item input[type="checkbox"] {
  display: none;
}

/* ラベルをボタン風に */
.check-item label {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #f5f5f5;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  font-size: 14px;
}

/* ホバー効果 */
.check-item label:hover {
  background-color: #e0e0e0;
}

/* チェック済みの見た目 */
.check-item input[type="checkbox"]:checked + label {
  background-color: #4caf50;
  color: #fff;
  text-decoration: line-through;
}

/* ===== フィルター制御（CSSのみ）===== */

/* 初期状態：すべて表示 */
.checklist {
  display: block;
}

/* 基本 */
#filter-basic:not(:checked) ~ .category-basic {
  display: none;
}

/* 女性用 */
#filter-woman:not(:checked) ~ .category-woman {
  display: none;
}

/* 赤ちゃん用 */
#filter-baby:not(:checked) ~ .category-baby {
  display: none;
}

/* 季節用 */
#filter-season:not(:checked) ~ .category-season {
  display: none;
}
/* その他用 */
#filter-others:not(:checked) ~ .category-season {
  display: none;
}

/* ===== フィルター制御（CSSのみ・完全版）===== */

/* 初期状態：すべて表示 */
.checklist {
  display: block;
}

/* 基本 */
.checklist-wrapper:has(#filter-basic:not(:checked)) .category-basic {
  display: none;
}

/* 女性用 */
.checklist-wrapper:has(#filter-woman:not(:checked)) .category-woman {
  display: none;
}

/* 赤ちゃん用 */
.checklist-wrapper:has(#filter-baby:not(:checked)) .category-baby {
  display: none;
}

/* 季節用 */
.checklist-wrapper:has(#filter-season:not(:checked)) .category-season {
  display: none;
}
/* その他用 */
.checklist-wrapper:has(#filter-others:not(:checked)) .category-others{
  display: none;
}
.check-item {
  display: block;
}

.check-item .note {
  display: block;
  margin-left: 22px; /* チェック分のインデント */
  font-size: 12px;
  color: #666;
}
/* 優先度説明文 */
.priority-note {
  font-size: 0.9em;
  margin-bottom: 1em;
  color: #555;
}

/* ★★★ 必須（赤） */
.priority-3 {
  color: #d32f2f; /* 赤 */
  font-weight: bold;
}

/* ★★ あると安心（オレンジ） */
.priority-2 {
  color: #f57c00; /* オレンジ */
  font-weight: bold;
}

/* ★ 余裕があれば（グレー） */
.priority-1 {
  color: #757575; /* グレー */
}
/*--ショップテキスト装飾--*/
/* 入れ物（高さを持たせない） */
.shop-btn {
  display: inline-block;
  margin: 6px 6px 6px 0;
}

/* ボタン本体 */
.shop-btn a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 6px 14px;        /* ← 高さはここで決まる */
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;

  color: #fff !important;
  text-decoration: none;
  border-radius: 6px;

  transition: opacity 0.2s ease, transform 0.1s ease;
}

/* hover */
.shop-btn a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* 色指定（aに当てるのが重要） */
.shop-btn.rakuten a { background-color: #bf0000; }
.shop-btn.amazon  a { background-color: #ff9900; }
.shop-btn.yahoo   a { background-color: #66a7ff; }

/* スマホ */
@media screen and (max-width: 768px) {
  td .shop-btn {
    display: block;
    width: 100%;
  }

  td .shop-btn a {
    width: 100%;
    font-size: 12px;
    padding: 8px 12px;
  }
}
  td .shop-btn img {
  display: none !important;
}
/*--チェックリストYesNo--*/
.zaitaku-check {
  border: 2px solid #e63946;
  background: #fff5f5;
  padding: 1.5em;
}

details {
  margin: 0.6em 0;
  padding-left: 0.5em;
}

summary {
  font-weight: bold;
  cursor: pointer;
}

.ok {
  background: #e6fffa;
  padding: 1em;
  border-left: 5px solid #2a9d8f;
}

.ng {
  margin-top: 1.5em;
  background: #fff;
  padding: 1em;
  border-left: 5px solid #e63946;
}

/*--まとめ用デザイン--*/
/* 全体ブロックの装飾 */
.product-block {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  border: 1px solid #ccc;
  padding: 15px;
  align-items: flex-start;
}

/* 画像の大きさ */
.product-block img {
  max-width: 180px;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

/* タイトル＋ボタンラッパー */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* タイトル */
.product-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

/* ボタンブロック */
.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

/* ボタンの共通スタイル */
.button-group a {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  flex: 1;
  min-width: 100px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* 擬似要素でホバー時に白オーバーレイ */
.button-group a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  z-index: 1;
}

.button-group a:hover::before {
  background-color: rgba(255,255,255,0.15);
}

/* 文字は前面 */
.button-group a span {
  position: relative;
  z-index: 2;
}

/* 個別カラー */
.button-rakuten { background-color: #f76956; }
.button-amazon  { background-color: #f79256; color: #000; }
.button-yahoo   { background-color: #66a7ff; }
.button-others { background-color: #e8f5e9; }
/* 擬似要素で「で見る」追加 */
.button-rakuten::after,
.button-amazon::after,
.button-yahoo::after {
  content: "で見る";
  font-size: 11px;
  margin-left: 4px;
}
.button-others::after {
  content: "見る";
  font-size: 11px;
  margin-left: 4px;
  color: #FF5722;
}
.button-others,
.button-others span {
  color: #FF5722;
}
/* スマホ表示時の調整 */
@media (max-width: 768px) {
  .product-block {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-info {
    width: 100%;
  }
  .button-group {
    flex-direction: column; /* ボタン縦並び */
    width: 100%;
  }
  .button-group a {
    width: 100%;
  }
  .product-block > a {
    align-self: center; /* ← 画像だけ中央 */
  }
}
/* 導入文用スタイル */
.intro-text {
    font-weight: normal;      /* 標準の太さ */
    font-size: 0.9em;         /* 少し小さめ */
    color: #555555;           /* グレー文字 */
    line-height: 1.4em;       /* 読みやすい行間 */
    margin-bottom: 0.8em;     /* 下に余白 */
}

.button-container {
  text-align: center; /* 子要素を横方向中央に配置 */
}

.cta-button {
  display: inline-block;
  padding: 10px 15px;
  background: linear-gradient(
    to left,
    rgba(255, 69, 0, 0.7),
    rgba(255, 69, 0, 0)
  );
  color: #fff !important;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0);
  border-radius: 5px;
  transition: background-color 0.2s ease;
  z-index: 1;
}

.cta-button:hover::before {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 文字を前面に */
.cta-button span {
  position: relative;
  z-index: 2;
}


.sns-share {
  position: absolute; /* ヘッダー内で固定的に右上に配置 */
  bottom: 20px;          /* 上からの距離を調整 */
  right: 20px;        /* 右からの距離を調整 */
  z-index: 10;        /* 他の要素より前面に表示 */
}
/* スマホ用: 幅768px以下 */
@media screen and (max-width: 768px) {
  .sns-share {
    position: static;         /* 流れの中に置く */
    display: flex;            /* 横並び */
    justify-content: flex-end; /* 右側に寄せる */
    margin-top: 10px;         /* entry-noticeの下に少し余白 */
    gap: 8px;                 /* ボタン間の隙間 */
    transform: scale(0.8);    /* 少し小さく表示 */
  }
}


/* =========================
   1問目専用デザイン
========================= */

.first-question {
  max-width: 420px;
  margin: 40px auto;
  padding: 30px 20px;
  text-align: center;
  background: #f9fbff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* 質問文 */
.first-question .question {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* ボタン配置 */
.first-question .button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ボタン共通 */
.first-question .quiz-button {
  flex: 1;
  padding: 14px 0;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* はい */
.first-question .quiz-button.yes {
  background: #2c7be5;
  color: #fff;
}

/* いいえ */
.first-question .quiz-button.no {
  background: #e9ecef;
  color: #333;
}

/* hover */
.first-question .quiz-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* active */
.first-question .quiz-button:active {
  transform: translateY(0);
  box-shadow: none;
}


.quiz-button-group {
  display: flex !important;
  gap: 16px;
  justify-content: center !important;
}
.quiz-button-group {
  display: flex !important;       /* 横並びを強制 */
  gap: 16px;                       /* ボタン間の隙間 */
  justify-content: center !important; /* 中央揃えを強制 */
  margin-top: 12px;
}

.quiz-button, .button {
  padding: 14px 0;       /* 1問目と同じ高さ */
  font-size: 16px;       /* 1問目と同じ文字サイズ */
  border-radius: 10px;   /* 1問目と同じ角丸 */
  background-color: #2c7be5;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.quiz-button.yes {
  background-color: #2c7be5;
}

.quiz-button.no {
  background-color: #6c757d;
}
  .question { font-size: 18px; margin-bottom: 12px; text-align: center; }
  .quiz-button-group, .button-container { display: flex; gap: 16px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
  .quiz-button, .button, .cta-button { padding: 10px 18px; font-size: 14px; font-weight: bold; border-radius: 6px; border: none; cursor: pointer; text-decoration: none; }
  .quiz-button { background-color: #2c7be5; color: #fff; }
  .cta-button { background-color: #2c7be5; color: #fff; }
  .button { background-color: #2c7be5; color: #fff; }
  #result { margin-top: 20px; font-size: 16px; line-height: 1.5; }
/* 参考元サイト一覧 */
/* ページ下部固定ボタン */
/* ページ下部右寄せボタン */
#reference-button {
  display: inline-block;
  background-color: #FF4500;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.3s;
  margin-top: 20px;
}
#reference-button:hover {
  background-color: #e03e00;
}
#reference-container {
  width: 100%;
  text-align: right; /* 右寄せ */
  margin-top: 40px;
}
.screen { display:none; }
.screen.active { display:block; }
.box { background:#fff; padding:20px; border-radius:8px; max-width:720px; }
button { padding:10px 16px; margin:8px 6px 0 0; }
.top-buttons { display:flex; justify-content:space-between; margin-bottom:10px; }
.card { border:1px solid #ccc; padding:20px; }
@media print {
  button {
    display: none;
  }
}
/* ===== PDF出力用（結果をすべて表示） ===== */
#result {
  height: auto !important;
  page-break-inside: auto;
}

#result pre {
  white-space: pre-wrap;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  page-break-inside: avoid;
}
@media print {
  .card {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
/*-文章内-*/
.points li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/*-PR-*/
.banner {
  display: flex;
  justify-content: center; /* 横方向中央 */
  align-items: center;     /* 縦方向中央（必要なら） */
}
