/*
Theme Name: okaimono
Description: お買い物本舗 オリジナルテーマ
Version: 1.0.0
Author: yuichi1027
Text Domain: okaimono
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #fff;
  word-wrap: break-word;
  letter-spacing: 0.03em;
}
img { max-width: 100%; height: auto; display: block; }
a, a:visited { color: #333; text-decoration: none; }
a:hover { color: #6fc791; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.4; }
table { border-collapse: collapse; width: 100%; }
i { font-style: normal; }

/* ===== Layout ===== */
#wrapper { width: 100%; overflow: hidden; }

#header-box {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
#header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#site-info a { display: flex; align-items: center; }
#site-info img { height: 36px; width: auto; }
.site-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

/* グローバルナビ（PC） */
#gnav ul {
  display: flex;
  gap: 0;
  align-items: center;
}
#gnav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  border-radius: 4px;
  transition: background .15s;
}
#gnav ul li a:hover { background: #fff; color: #6fc791; }

/* ハンバーガー（SP） */
#navtoggle { display: none; }
.sp-menu-btn {
  display: none;
  width: 36px; height: 36px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.sp-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: #333;
  border-radius: 2px;
  transition: .25s;
}
.sp-overlay { display: none; }
#sp-nav { display: none; }

@media (max-width: 767px) {
  #gnav { display: none; }
  .sp-menu-btn { display: flex; }
  #navtoggle:checked ~ #header-box .sp-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #navtoggle:checked ~ #header-box .sp-menu-btn span:nth-child(2) { opacity: 0; }
  #navtoggle:checked ~ #header-box .sp-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  #navtoggle:checked ~ .sp-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 98; }
  #sp-nav { display: block; }
  #navtoggle:checked ~ #sp-nav { transform: translateX(0); }
  #sp-nav {
    position: fixed;
    top: 0; right: 0;
    width: 80%; max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 99;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
    padding: 100px 0;
  }
  #sp-nav ul { padding: 10px 0; }
  #sp-nav ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
  }
}

/* コンテンツエリア */
#contents {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
#main-contents {
  flex: 1;
  min-width: 0;
}
#sidebar {
  width: 320px;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  #sidebar { width: 280px; }
}
@media (max-width: 767px) {
  #contents {
    flex-direction: column;
    margin: 10px auto;
    padding: 0 12px;
    gap: 20px;
  }
  #sidebar { width: 100%; }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 16px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: #bbb; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #6fc791; text-decoration: underline; }
.breadcrumb li:last-child span { color: #aaa; }

/* ===== Post Box ===== */
.cps-post-box {
  background: #fff;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  .cps-post-box { padding: 16px 6px; border-radius: 4px; }
}

/* Post Header */
.cps-post-header { margin-bottom: 20px; }
.cps-post-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #888;
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.cps-post-cat a { color: #fff; }
.cps-post-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.45;
  color: #222;
  letter-spacing: .02em;
  margin-bottom: 12px;
}
@media (max-width: 767px) {
  .cps-post-title { font-size: 1.2rem; }
}
.cps-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #aaa;
  flex-wrap: wrap;
}
.cps-post-meta .date { font-size: 0.78rem; color: #bbb; }

/* Post Thumbnail */
.cps-post-thumb {
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
}
.cps-post-thumb img { width: 100%; height: auto; display: block; }

/* Post Content */
.cps-post-main {
  padding-top: 8px;
}
.cps-post-main a { text-decoration: underline; color: #1a6bb3; }
.cps-post-main a:hover { color: #6fc791; }
.cps-post-main p {
  margin-bottom: 1.6em;
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: .04em;
}
.cps-post-main h2 {
  font-size: 1.3rem;
  font-weight: 700;
  border-left: 4px solid #6fc791;
  padding: 6px 0 6px 14px;
  margin: 2em 0 1em;
  color: #222;
  background: none;
  font-feature-settings: 'palt' 1;
  letter-spacing: .04em;
}
@media (max-width: 767px) { .cps-post-main h2 { font-size: 1.15rem; } }
.cps-post-main h3 {
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
  margin: 1.8em 0 0.8em;
  color: #333;
  font-feature-settings: 'palt' 1;
  letter-spacing: .04em;
}
@media (max-width: 767px) { .cps-post-main h3 { font-size: 1rem; } }
.cps-post-main h4 {
  font-size: 1rem;
  font-weight: 700;
  padding: 0 0 0 10px;
  margin: 1.6em 0 0.6em;
  border-left: 3px solid #ccc;
  color: #333;
}
.cps-post-main h5, .cps-post-main h6 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.4em 0 0.5em;
  color: #444;
}
.cps-post-main img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 3px;
}
.cps-post-main iframe { max-width: 100%; }
.cps-post-main table {
  width: 100%;
  border: 1px solid #ddd;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
  word-break: break-all;
}
.cps-post-main table th, .cps-post-main table td {
  padding: 8px 10px;
  border: 1px solid #ddd;
  vertical-align: middle;
}
.cps-post-main table th { background: #f8f8f8; font-weight: 700; }
.cps-post-main ul:not([class]), .cps-post-main ul.wp-block-list {
  padding-left: 20px;
  margin-bottom: 1.4em;
}
.cps-post-main ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.4em;
  display: block;
}
.cps-post-main ul:not([class]) li::before,
.cps-post-main ul.wp-block-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 6px; height: 6px;
  background: #333;
  border-radius: 50%;
  display: block;
}
.cps-post-main ol:not(.toc-list) {
  counter-reset: li;
  padding-left: 20px;
  margin-bottom: 1.4em;
}
.cps-post-main ol:not(.toc-list) > li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.5em;
  display: block;
}
.cps-post-main ol:not(.toc-list) > li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #333;
}
.cps-post-main ol:not(.toc-list) > li::after {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 20px;
  text-align: center;
  font-size: 0.65em;
  color: #fff;
  font-weight: 700;
}
.cps-post-main blockquote {
  position: relative;
  margin: 0 0 1.5em;
  padding: 2.4em 1em 1em;
  background: #f8f8f8;
  border-left: 4px solid #ddd;
  font-size: 0.92em;
  color: #555;
}
.cps-post-main blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.1em;
  left: 0.3em;
  font-size: 3em;
  color: #ccc;
  line-height: 1;
}
.cps-post-main .wp-block-image { margin-bottom: 1.4em; }
.cps-post-main .wp-block-image figcaption { font-size: 0.8rem; color: #999; text-align: center; margin-top: 4px; }

/* Tag Box */
.tag-box { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-box span a {
  display: inline-block;
  font-size: 0.78rem;
  padding: 3px 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #666;
}
.tag-box span a:hover { background: #f0f0f0; text-decoration: none; color: #333; }

/* ===== Chat Balloon ===== */
.balloon-box {
  position: relative;
  overflow: hidden;
  padding-bottom: 3px;
  margin-bottom: 1.5em;
}
.balloon-box::after { content: ""; display: table; clear: both; }

.balloon-icon {
  position: absolute;
  top: 0;
  overflow: hidden;
  width: 80px;
  height: 80px;
  margin-bottom: 0;
}
@media (max-width: 767px) { .balloon-icon { width: 60px; height: 60px; } }
.balloon-icon.maru { border: 2px solid #eee; border-radius: 50%; }
.balloon-icon img { width: 80px; height: auto; margin-bottom: 0 !important; border-radius: 50%; }
@media (max-width: 767px) { .balloon-icon img { width: 60px; } }

.icon-name {
  position: absolute;
  text-align: center;
  letter-spacing: 0;
  line-height: 1 !important;
  color: #777;
}
@media (max-width: 767px) { .icon-name { width: 60px; top: 62px; font-size: 9px; } }
@media (min-width: 768px)  { .icon-name { width: 80px; top: 85px; font-size: 10px; } }

/* Left */
.balloon-left .balloon-icon { left: 0; }
.balloon-left .icon-name    { left: 0; }
.balloon-left .balloon-serif {
  position: relative;
  float: left;
  padding: 0;
}
@media (max-width: 767px) { .balloon-left .balloon-serif { margin: 0 0 30px 78px; } }
@media (min-width: 768px) { .balloon-left .balloon-serif { margin: 0 105px 40px 105px; } }

.balloon-left .balloon-serif::before {
  content: ""; position: absolute; left: -7px; display: block;
  width: 0; height: 0; border-style: solid; border-width: 7px 10px 7px 0; z-index: 3;
}
@media (max-width: 767px) { .balloon-left .balloon-serif::before { top: 13px; } }
@media (min-width: 768px) { .balloon-left .balloon-serif::before { top: 16px; } }
.balloon-left .balloon-serif::after {
  content: ""; position: absolute; left: -10px; display: block;
  width: 0; height: 0; border-style: solid; border-width: 8px 10px 8px 0; z-index: 2;
}
@media (max-width: 767px) { .balloon-left .balloon-serif::after { top: 12px; } }
@media (min-width: 768px) { .balloon-left .balloon-serif::after { top: 15px; } }
.balloon-left .balloon-serif .balloon-content {
  position: relative; line-height: 1.5rem;
  border: 2px solid #ccc; background: #fff;
  border-radius: 6px; font-size: 0.95em; z-index: 2;
}
@media (max-width: 767px) { .balloon-left .balloon-serif .balloon-content { padding: 0.8rem; } }
@media (min-width: 768px) { .balloon-left .balloon-serif .balloon-content { padding: 1.15rem; } }

/* Right */
.balloon-right .balloon-icon { right: 0; }
.balloon-right .icon-name    { right: 0; }
.balloon-right .balloon-serif {
  position: relative;
  float: right;
  padding: 0;
}
@media (max-width: 767px) { .balloon-right .balloon-serif { margin: 0 78px 30px 0; } }
@media (min-width: 768px) { .balloon-right .balloon-serif { margin: 0 105px 40px 105px; } }
.balloon-right .balloon-serif::before {
  content: ""; position: absolute; right: -7px; display: block;
  width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 10px; z-index: 3;
}
@media (max-width: 767px) { .balloon-right .balloon-serif::before { top: 13px; } }
@media (min-width: 768px) { .balloon-right .balloon-serif::before { top: 16px; } }
.balloon-right .balloon-serif::after {
  content: ""; position: absolute; right: -10px; display: block;
  width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 10px; z-index: 2;
}
@media (max-width: 767px) { .balloon-right .balloon-serif::after { top: 12px; } }
@media (min-width: 768px) { .balloon-right .balloon-serif::after { top: 15px; } }
.balloon-right .balloon-serif .balloon-content {
  position: relative; line-height: 1.5rem;
  border: 2px solid #ccc; background: #fff;
  border-radius: 6px; font-size: 0.95em; z-index: 2;
}
@media (max-width: 767px) { .balloon-right .balloon-serif .balloon-content { padding: 0.8rem; } }
@media (min-width: 768px) { .balloon-right .balloon-serif .balloon-content { padding: 1.15rem; } }

.balloon-content p:last-of-type { padding-bottom: 0 !important; }

/* Color: gray */
.balloon-left.balloon-gray   .balloon-serif::after   { border-color: transparent #ccc transparent transparent; }
.balloon-right.balloon-gray  .balloon-serif::after   { border-color: transparent transparent transparent #ccc; }
.balloon-gray                .balloon-content        { border-color: #ccc; }
.balloon-left.balloon-bg-gray  .balloon-serif::before { border-color: transparent #efefef transparent transparent; }
.balloon-right.balloon-bg-gray .balloon-serif::before { border-color: transparent transparent transparent #efefef; }
.balloon-bg-gray             .balloon-content        { background: #efefef; }

/* Color: blue */
.balloon-left.balloon-blue   .balloon-serif::after   { border-color: transparent #ccc transparent transparent; }
.balloon-right.balloon-blue  .balloon-serif::after   { border-color: transparent transparent transparent #ccc; }
.balloon-blue                .balloon-content        { border-color: #ccc; }
.balloon-left.balloon-bg-blue  .balloon-serif::before { border-color: transparent #fff transparent transparent; }
.balloon-right.balloon-bg-blue .balloon-serif::before { border-color: transparent transparent transparent #fff; }
.balloon-bg-blue             .balloon-content        { background: #fff; }

/* Color: red */
.balloon-left.balloon-red    .balloon-serif::after   { border-color: transparent #F48789 transparent transparent; }
.balloon-right.balloon-red   .balloon-serif::after   { border-color: transparent transparent transparent #F48789; }
.balloon-red                 .balloon-content        { border-color: #F48789; }
.balloon-left.balloon-bg-red   .balloon-serif::before { border-color: transparent #FFEBEB transparent transparent; }
.balloon-right.balloon-bg-red  .balloon-serif::before { border-color: transparent transparent transparent #FFEBEB; }
.balloon-bg-red              .balloon-content        { background: #FFEBEB; }

/* Color: green */
.balloon-left.balloon-green  .balloon-serif::after   { border-color: transparent #9DDD93 transparent transparent; }
.balloon-right.balloon-green .balloon-serif::after   { border-color: transparent transparent transparent #9DDD93; }
.balloon-green               .balloon-content        { border-color: #9DDD93; }
.balloon-left.balloon-bg-green  .balloon-serif::before { border-color: transparent #D1F8C2 transparent transparent; }
.balloon-right.balloon-bg-green .balloon-serif::before { border-color: transparent transparent transparent #D1F8C2; }
.balloon-bg-green            .balloon-content        { background: #D1F8C2; }

/* Color: yellow */
.balloon-left.balloon-yellow  .balloon-serif::after  { border-color: transparent #ccc transparent transparent; }
.balloon-right.balloon-yellow .balloon-serif::after  { border-color: transparent transparent transparent #ccc; }
.balloon-yellow               .balloon-content       { border-color: #ccc; }
.balloon-left.balloon-bg-yellow  .balloon-serif::before { border-color: transparent #fff transparent transparent; }
.balloon-right.balloon-bg-yellow .balloon-serif::before { border-color: transparent transparent transparent #fff; }
.balloon-bg-yellow            .balloon-content       { background: #fff; }

/* Color: none (白背景・枠なし) */
.balloon-left.balloon-none  .balloon-serif::after,
.balloon-right.balloon-none .balloon-serif::after  { border-color: transparent; }
.balloon-none               .balloon-content       { border-color: transparent; }
.balloon-left.balloon-bg-none  .balloon-serif::before { border-color: transparent #fff transparent transparent; }
.balloon-right.balloon-bg-none .balloon-serif::before { border-color: transparent transparent transparent #fff; }
.balloon-bg-none            .balloon-content       { background: #fff; }

/* ===== YouTube ===== */
.yt { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-bottom: 1.5em; }
.yt iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ===== Archive / Home Post List ===== */
.archive-header { margin-bottom: 20px; }
.archive-title { font-size: 1.1rem; font-weight: 700; color: #444; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.archive-title span { color: #6fc791; }

.post-list { display: flex; flex-direction: column; gap: 0; }
.post-list-item {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  overflow: hidden;
  transition: box-shadow .2s;
}
.post-list-item:hover { box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.post-list-link {
  display: flex;
  gap: 14px;
  padding: 14px;
  color: #333;
}
.post-list-thumb {
  flex-shrink: 0;
  width: 140px;
  height: 79px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-list-body { flex: 1; min-width: 0; }
.post-list-cat {
  display: inline-block;
  font-size: 0.65rem;
  background: #888;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 5px;
  font-weight: 700;
}
.post-list-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: #222;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post-list-date { font-size: 0.72rem; color: #bbb; }
@media (max-width: 767px) {
  .post-list-thumb { width: 100px; height: 57px; }
  .post-list-link { padding: 10px; gap: 10px; }
  .post-list-title { font-size: 0.85rem; -webkit-line-clamp: 3; }
}

/* Pagination */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.pagination a.page-numbers, .pagination span.page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  padding: 0 8px;
}
.pagination a.page-numbers:hover { background: #fff; text-decoration: none; }
.pagination span.current { background: #333; color: #fff; border-color: #333; pointer-events: none; }
.pagination span.dots { border: none; background: none; }

/* ===== フロントページ 検索ボックス ===== */
#search-box {
  margin: 32px 0;
}
#search-box .widgettitle {
  text-align: center;
  font-size: 0.88rem;
  letter-spacing: .1em;
  margin-bottom: 14px;
  border-bottom: none;
  padding-bottom: 0;
}
#searchform {
  display: flex;
  height: 50px;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid #6fc791;
  box-shadow: 0 2px 10px rgba(111,199,145,.2);
  max-width: 300px;
  margin: 0 auto 60px;
}
#searchform .search-text {
  flex: 1;
  height: 100%;
  border: none;
  padding: 0 20px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  min-width: 0;
}
#searchsubmit {
  width: 56px;
  height: 100%;
  background: #6fc791;
  color: #fff;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
#searchsubmit:hover { background: #5ab87d; }
@media (max-width: 767px) {
  #search-box { margin: 24px 0; }
  #searchform { height: 46px; }
}

/* Search Form */
.search-form-box { margin-bottom: 20px; }
.search-form-box form { display: flex; }
.search-form-box input[type="search"] {
  flex: 1;
  height: 42px;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 0 14px;
  font-size: 0.9rem;
  outline: none;
}
.search-form-box input[type="search"]:focus { border-color: #aaa; }
.search-form-box button[type="submit"] {
  height: 42px;
  width: 44px;
  color: #fff;
  border: solid 1px #e1dede;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
}
.search-form-box button:hover { background: #555; }

/* ===== Sidebar ===== */
.sidebar-section {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 20px;
}
.sidebar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 14px;
  letter-spacing: .04em;
}

/* Widget (dynamic_sidebar) */
.widget { margin-bottom: 20px; }
.widgettitle {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

/* Recent Posts Widget */
.new-entry-item { border-bottom: 1px solid #f0f0f0; }
.new-entry-item:last-child { border-bottom: none; }
.new-entry-item a {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  align-items: flex-start;
  color: #333;
}
.new-entry-item a:hover { opacity: .8; }
.new-entry {
  flex-shrink: 0;
  width: 80px;
}
.new-entry .eyecatch { width: 100%; }
.new-entry .eyecatch img { width: 100%; height: auto; border-radius: 3px; display: block; }
.new-entry-item-meta { flex: 1; min-width: 0; }
.new-entry-item-meta .date { font-size: 0.72rem; color: #bbb; display: block; margin-bottom: 3px; }
.new-entry-item-title { font-size: 0.8rem; line-height: 1.4; font-weight: 600; color: #333; }

/* Popular Posts */
.popular-posts-list { display: flex; flex-direction: column; gap: 0; }
.popular-post-item { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.popular-post-item:first-child { padding-top: 0; }
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-post-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #333;
}
.popular-post-link:hover { opacity: .8; }
.popular-thumb {
  flex-shrink: 0;
  width: 76px;
}
.popular-thumb img { width: 100%; height: auto; border-radius: 3px; display: block; }
.popular-info { flex: 1; min-width: 0; }
.popular-title { font-size: 0.8rem; font-weight: 600; line-height: 1.4; color: #222; margin-bottom: 3px; }
.popular-date { font-size: 0.72rem; color: #bbb; text-align: right; }

/* ===== 404 / Search ===== */
.not-found-box { text-align: center; padding: 40px 20px; }
.not-found-box h1 { font-size: 3rem; color: #ddd; font-weight: 700; margin-bottom: 8px; }
.not-found-box p { color: #888; margin-bottom: 24px; }

/* ===== Page ===== */
.page-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; color: #222; }

/* ===== Footer ===== */
#footer {
  background: #222;
  color: #aaa;
  padding: 30px 20px 20px;
  margin-top: 40px;
  text-align: center;
}
#footer a { color: #aaa; }
#footer a:hover { color: #fff; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 16px; font-size: 0.82rem; }
.footer-copy { font-size: 0.78rem; color: #666; }

/* ===== TOC（自動目次） ===== */
.toc-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-left: 4px solid #6fc791;
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 0 0 2em;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.toc-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list > li {
  display: block;
  padding: 4px 0;
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px dotted #f0f0f0;
}
.toc-list > li:last-child { border-bottom: none; padding-bottom: 0; }
.toc-list > li::before { content: none; }
.toc-list > li::after { content: none; }
.toc-list a { color: #1a6bb3; text-decoration: none; }
.toc-list a:hover { color: #6fc791; text-decoration: underline; }
.toc-list .toc-h3 {
  padding-left: 14px;
  font-size: 13px;
  color: #666;
}
@media (max-width: 767px) {
  .toc-box { padding: 14px 16px; }
}

/* RTOC 開閉ボタン非表示 */
.rtoc_open_close { display: none !important; }

/* ===== Rinker ===== */
.yyi-rinker-contents-image img { display: inline; margin-bottom: 0; }

@keyframes pulse {0%  { transform: scale(1); }50% { transform: scale(0.95); }to  { transform: scale(1); }}
.yyi-rinker-contents .yyi-rinker-info{padding:0}
ul.yyi-rinker-links li{padding:0}
.yyi-rinker-links a {animation: pulse 2s ease-in-out infinite;}
ul.yyi-rinker-links li.amazonlink a {background: #161d26!important}
ul.yyi-rinker-links li.rakutenlink a {background: #ff264c!important}
ul.yyi-rinker-links li.yahoolink a {background: #ff6600!important}

/* ===== Lightbox ===== */
.img-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.img-lightbox-overlay.is-open { display: flex; }
.img-lightbox-content img { max-width: 92vw; max-height: 88vh; border-radius: 3px; }
.img-lightbox-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  color: #fff; font-size: 2rem;
  line-height: 1;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 767px) {
  .cps-post-main h2 { margin: 1.6em 0 0.8em; }
  .cps-post-main table { font-size: 0.82rem; }
}



.simple-box9{
  background: #fff1db;
  padding: 10px;
  border: solid 1px #ffe3b7;
}