/*
Theme Name:  Cocoon Child — RASHI FISHING BLOG
Theme URI:   https://example.com/
Description: Cocoon子テーマ — RASHI FISHING BLOG ライトデザイン
Author:      RASHI
Template:    cocoon-master
Version:     2.0.0
*/

/* ═══════════════════════════════════════════════
   RASHI FISHING BLOG — Light Clean Theme
   Design: White / Light Gray / Green Accent
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Oswald:wght@500;600;700&display=swap');

:root {
  --bg-site:       #f5f6f7;
  --bg-white:      #ffffff;
  --bg-light:      #f0f2f4;
  --bg-section:    #f7f8f9;

  --text-main:     #1a1a2e;
  --text-body:     #3d3d3d;
  --text-muted:    #888888;
  --text-light:    #aaaaaa;

  --accent-green:  #2e8b57;
  --accent-green2: #3aab6f;
  --accent-green-light: #e8f5ee;
  --accent-orange: #e07b39;
  --accent-orange-light: #fef3ec;
  --accent-blue:   #2563eb;
  --accent-blue-light: #eff6ff;

  --border:        #e5e7eb;
  --border-light:  #f0f0f0;

  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.13);
  --shadow-hover:  0 12px 40px rgba(0,0,0,0.16);

  --font-display: 'Oswald', 'Noto Sans JP', sans-serif;
  --font-body:    'Noto Sans JP', sans-serif;

  --max-w:    1160px;
  --header-h: 60px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ── Global overflow fix — prevents horizontal scroll on all devices ── */
html, body { max-width: 100%; overflow-x: hidden; }

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-site);
  color: var(--text-body);
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Prevent all inputs/selects/buttons from triggering iOS zoom (needs 16px) */
input, select, textarea, button { font-size: 16px; }

.rashi-container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── WordPress Admin Bar ── */
.admin-bar .rashi-site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .rashi-site-header { top: 46px; }
}

/* ═══════════════════════════
   TICKER
   ═══════════════════════════ */
.ticker-bar {
  background: var(--accent-green);
  overflow: hidden;
  padding: 6px 0;
  position: relative;
  z-index: 1001;
}
.ticker-inner {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-inner span { font-size: 12px; color: rgba(255,255,255,0.9); letter-spacing: .04em; }
.ticker-inner span b { color: #fff; font-weight: 700; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ═══════════════════════════
   HEADER
   ═══════════════════════════ */
.rashi-site-header {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: #fff;
  border-bottom: 2px solid var(--accent-green);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s;
}
.rashi-site-header.scrolled { box-shadow: var(--shadow-md); }
.rashi-header-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 20px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.rashi-site-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rashi-logo-icon {
  width: 34px; height: 34px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.rashi-logo-text {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-main);
  white-space: nowrap;
}
.rashi-logo-text em { font-style: normal; color: var(--accent-green); }
.rashi-logo-sub { font-size: 9px; color: var(--text-muted); letter-spacing: .1em; margin-left: 3px; vertical-align: middle; }

.rashi-nav-links { display: flex; gap: 2px; list-style: none; }
.rashi-nav-links a {
  display: block; padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.rashi-nav-links a:hover, .rashi-nav-links a.active {
  color: var(--accent-green);
  background: var(--accent-green-light);
}

/* ═══════════════════════════
   HERO
   ═══════════════════════════ */
.rashi-hero {
  position: relative;
  background: linear-gradient(135deg, #1a3a2a 0%, #0d2618 50%, #1a2e3a 100%);
  min-height: 480px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.rashi-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 300px at 15% 60%, rgba(46,139,87,.25) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 70% 30%, rgba(58,171,111,.15) 0%, transparent 70%);
  animation: waterShimmer 12s ease-in-out infinite alternate;
}
@keyframes waterShimmer {
  0%   { opacity:.7; transform:translateX(-15px); }
  100% { opacity:1;  transform:translateX(15px); }
}

.rashi-hero-water {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 38%;
  overflow: hidden;
}
.rashi-hero-water-surface {
  position: absolute; top: 0; left: 0; right: 0;
}
.rashi-hero-water-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20,50,35,.55) 0%,
    rgba(8,25,18,.85)  60%,
    rgba(4,12,8,.95)   100%);
}
.rashi-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(46,139,87,.3);
  animation: rippleOut 4s ease-out infinite;
  pointer-events: none;
}
.rashi-ripple:nth-child(1) { width:100px; height:30px; left:30%; top:12px; animation-delay:0s; }
.rashi-ripple:nth-child(2) { width:70px;  height:22px; left:55%; top:24px; animation-delay:1.6s; }
.rashi-ripple:nth-child(3) { width:85px;  height:26px; left:70%; top:8px;  animation-delay:3s; }
.rashi-ripple:nth-child(4) { width:55px;  height:18px; left:15%; top:30px; animation-delay:2.2s; }
@keyframes rippleOut {
  0%   { transform:scale(.7); opacity:.6; }
  100% { transform:scale(2.4); opacity:0; }
}

.rashi-fishing-rig {
  position: absolute;
  top: 0; right: 120px;
  z-index: 10;
  animation: rodSway 5s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes rodSway { 0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(4deg)} }

.rashi-fishing-line-svg {
  position: absolute;
  top: 40px; right: 120px;
  z-index: 9;
  overflow: visible;
  animation: lineSway 5s ease-in-out infinite;
  transform-origin: 11px 0;
}
@keyframes lineSway { 0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(4deg)} }

/* ── Lure SVG: hidden on mobile to prevent overflow ── */
.rashi-hero-lure {
  position: absolute;
  right: 64px;
  z-index: 11;
  animation: hookBob 5s ease-in-out infinite;
  top: 248px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.rashi-bass-swim { position: absolute; z-index: 8; }

/* 1匹目：左→右→折り返し、水面近く */
.rashi-bass-1 { animation: bassSwim1 13s ease-in-out infinite; }
@keyframes bassSwim1 {
  0%   { left:-200px; top:30px; transform:scaleX(1)  rotate(0deg); opacity:0; }
  6%   { opacity:1; }
  44%  { left:54%;    top:18px; transform:scaleX(1)  rotate(-2deg); }
  52%  { left:57%;    top:18px; transform:scaleX(-1) rotate(2deg); }
  94%  { left:-200px; top:35px; transform:scaleX(-1) rotate(0deg); opacity:1; }
  100% { left:-200px; top:30px; transform:scaleX(1)  rotate(0deg); opacity:0; }
}

/* 2匹目：右→左→折り返し、やや深め・遅延あり */
.rashi-bass-2 { animation: bassSwim2 16s 4s ease-in-out infinite; }
@keyframes bassSwim2 {
  0%   { right:-160px; top:68px; transform:scaleX(-1) rotate(0deg); opacity:0; }
  6%   { opacity:1; }
  44%  { right:50%;    top:52px; transform:scaleX(-1) rotate(2deg); }
  52%  { right:53%;    top:52px; transform:scaleX(1)  rotate(-2deg); }
  94%  { right:-160px; top:72px; transform:scaleX(1)  rotate(0deg); opacity:1; }
  100% { right:-160px; top:68px; transform:scaleX(-1) rotate(0deg); opacity:0; }
}

/* 3匹目：左→右、最も深い位置・大幅遅延 */
.rashi-bass-3 { animation: bassSwim3 18s 9s ease-in-out infinite; }
@keyframes bassSwim3 {
  0%   { left:-180px; top:85px; transform:scaleX(1)  rotate(0deg); opacity:0; }
  5%   { opacity:1; }
  46%  { left:48%;    top:70px; transform:scaleX(1)  rotate(-1deg); }
  54%  { left:51%;    top:70px; transform:scaleX(-1) rotate(1deg); }
  95%  { left:-180px; top:88px; transform:scaleX(-1) rotate(0deg); opacity:1; }
  100% { left:-180px; top:85px; transform:scaleX(1)  rotate(0deg); opacity:0; }
}
.rashi-trout-swim {
  position: absolute;
  z-index: 7;
  animation: troutSwim 15s 3s ease-in-out infinite;
}
@keyframes troutSwim {
  0%   { right:-110px; top:75px; transform:scaleX(-1) rotate(0deg); opacity:0; }
  5%   { opacity:1; }
  44%  { right:48%;    top:58px; transform:scaleX(-1) rotate(2deg); }
  52%  { right:51%;    top:58px; transform:scaleX(1)  rotate(-2deg); }
  94%  { right:-110px; top:80px; transform:scaleX(1)  rotate(0deg); opacity:1; }
  100% { right:-110px; top:75px; transform:scaleX(-1) rotate(0deg); opacity:0; }
}
@keyframes waggle {
  0%,100% { transform:rotate(0deg); }
  25%     { transform:rotate(5deg); }
  75%     { transform:rotate(-5deg); }
}
@keyframes hookBob { 0%,100%{top:220px} 50%{top:290px} }

.rashi-hero-bass-bg {
  position: absolute;
  right: -4%; top: 50%;
  transform: translateY(-52%);
  width: clamp(280px, 46vw, 750px);
  opacity: .08;
  animation: bassDrift 10s ease-in-out infinite alternate;
  z-index: 2; pointer-events: none;
  max-width: 60vw;
}
@keyframes bassDrift {
  0%   { transform:translateY(-52%) translateX(0); }
  100% { transform:translateY(-50%) translateX(-20px); }
}
.rashi-splash-ring {
  position: absolute;
  border: 1px solid rgba(46,139,87,.15);
  border-radius: 50%;
  animation: splashExpand 7s ease-out infinite;
  pointer-events: none;
}
.rashi-splash-ring:nth-child(1) { width:220px; height:80px; right:14%; top:63%; animation-delay:0s; }
.rashi-splash-ring:nth-child(2) { width:320px; height:110px; right:19%; top:59%; animation-delay:2.5s; }
.rashi-splash-ring:nth-child(3) { width:160px; height:55px; right:9%;  top:70%; animation-delay:5s; }
@keyframes splashExpand {
  0%   { transform:scale(.4); opacity:.6; }
  100% { transform:scale(2);  opacity:0; }
}

.rashi-hero-content {
  position: relative; z-index: 20;
  width: 100%; padding: 0 0 60px;
}
.rashi-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 20px;
}
.rashi-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase;
  color: #7ee8c0;
  border: 1px solid rgba(126,232,192,.3);
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 18px;
  animation: fadeD .7s ease both;
}
.rashi-hero-label::before {
  content: ''; width: 6px; height: 6px;
  background: #7ee8c0; border-radius: 50%;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.rashi-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
  animation: fadeD .7s .1s ease both;
}
.rashi-hero h1 .line2 { color: #7ee8c0; }
.rashi-hero-desc {
  font-size: 14px; color: rgba(255,255,255,0.75);
  max-width: 460px; line-height: 1.85;
  margin-bottom: 30px;
  animation: fadeD .7s .2s ease both;
}
.rashi-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeD .7s .3s ease both;
}
.rashi-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  min-height: 44px;
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer; border: none;
  transition: all .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.rashi-btn-primary {
  background: var(--accent-green);
  color: #fff;
}
.rashi-btn-primary:hover { background: var(--accent-green2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,139,87,.35); }
.rashi-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.rashi-btn-outline:hover { border-color: #7ee8c0; color: #7ee8c0; transform: translateY(-2px); }

.rashi-hero-stats {
  display: flex; gap: 24px; margin-top: 40px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15);
  animation: fadeD .7s .4s ease both;
  flex-wrap: wrap;
}
.rashi-stat-item { text-align: left; }
.rashi-stat-num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700;
  color: #ffffff; line-height: 1;
}
.rashi-stat-num span { color: #7ee8c0; font-size: 16px; }
.rashi-stat-label { font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: .06em; margin-top: 4px; }
@keyframes fadeD { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }

/* ═══════════════════════════
   SECTION COMMONS
   ═══════════════════════════ */
.rashi-section { padding: 60px 0; }
.rashi-section-header { text-align: center; margin-bottom: 40px; }
.rashi-section-label {
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-green);
  margin-bottom: 8px;
}
.rashi-section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600; letter-spacing: 1px;
  color: var(--text-main);
  line-height: 1.2;
}
.rashi-section-title span { color: var(--accent-green); }

/* ═══════════════════════════
   FEATURED ARTICLES
   ═══════════════════════════ */
.rashi-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.rashi-feat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.rashi-feat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.rashi-feat-card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.rashi-feat-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.rashi-feat-card:hover .rashi-feat-card-thumb img { transform: scale(1.05); }
.rashi-feat-card-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; flex: 1;
}
.rashi-feat-card-cat {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-green);
  background: var(--accent-green-light);
  display: inline-block; padding: 2px 7px; border-radius: 3px;
  margin-bottom: 8px;
}
.rashi-feat-card-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-main); line-height: 1.5;
  flex: 1; margin-bottom: 10px;
}
.rashi-feat-card-meta {
  font-size: 11px; color: var(--text-light);
  margin-top: auto;
}

/* ═══════════════════════════
   POST CARDS (thumbnail style)
   ═══════════════════════════ */
.rashi-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.rashi-post-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.rashi-post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-light);
}
.rashi-post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.rashi-post-card:hover .rashi-post-card-thumb img { transform: scale(1.05); }
.rashi-post-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: var(--accent-green-light);
}
.rashi-pc-cat,
.rashi-pc-title,
.rashi-pc-footer { padding-left: 14px; padding-right: 14px; }
.rashi-pc-cat { padding-top: 12px; }
.rashi-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rashi-post-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.icon-green  { background: var(--accent-green-light); }
.icon-teal   { background: #e0f7f2; }
.icon-earth  { background: #fdf3e0; }
.icon-gold   { background: #fef9e7; }
.rashi-pc-cat {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-green);
  margin-bottom: 6px;
}
.rashi-pc-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-main); line-height: 1.5;
  margin-bottom: 10px; flex: 1;
}
.rashi-pc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.rashi-pc-date { font-size: 11px; color: var(--text-light); }
.rashi-pc-arrow {
  font-size: 14px; color: var(--accent-green);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s, transform .2s;
}
.rashi-post-card:hover .rashi-pc-arrow { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════
   AFFILIATE SECTION
   ═══════════════════════════ */
.rashi-aff-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rashi-aff-note-bar {
  background: #fffbf0;
  border: 1px solid #f0d080;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 12px; color: #7a5c00;
  margin-bottom: 28px;
}
.rashi-aff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.rashi-aff-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .22s, transform .22s;
  position: relative;
}
.rashi-aff-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.rashi-aff-rank-num {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
}
.rank-1 { color: #c8a000; }
.rank-2 { color: #8e8e8e; }
.rank-3 { color: #b87333; }
.rashi-aff-img-wrap {
  width: 100%; aspect-ratio: 1/1;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.rashi-aff-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}
.rashi-aff-card:hover .rashi-aff-img-wrap img { transform: scale(1.06); }
.rashi-aff-icon-wrap {
  width: 56px; height: 56px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.rashi-aff-brand { font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.rashi-aff-name { font-size: 13px; font-weight: 700; color: var(--text-main); line-height: 1.4; }
.rashi-aff-price-wrap {
  display: flex; align-items: baseline; gap: 6px;
  padding-top: 8px; border-top: 1px solid var(--border-light);
}
.rashi-aff-price {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--accent-orange);
}
.rashi-aff-price-label { font-size: 10px; color: var(--text-light); }
.rashi-aff-btns { display: flex; gap: 6px; }
.rashi-aff-btn {
  flex: 1; padding: 10px 4px;
  min-height: 44px;
  font-size: 11px; font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid transparent;
  transition: all .2s; text-align: center;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.rashi-aff-btn-amz {
  background: #f0a830; color: #fff; border-color: #f0a830;
}
.rashi-aff-btn-amz:hover { background: #d98f20; }
.rashi-aff-btn-rktn {
  background: #bf0000; color: #fff; border-color: #bf0000;
}
.rashi-aff-btn-rktn:hover { background: #990000; }
.rashi-aff-btn-yahoo {
  background: #ff0033; color: #fff; border-color: #ff0033;
}
.rashi-aff-btn-yahoo:hover { background: #cc0028; }
.rashi-aff-btn-disabled { opacity:.4; cursor:default; pointer-events:none; }

.rashi-aff-ranking {
  margin-top: 28px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rashi-aff-ranking-header {
  padding: 14px 20px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.rashi-aff-ranking-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-main);
}
.rashi-aff-ranking-list { padding: 4px 0; }
.rashi-aff-rank-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.rashi-aff-rank-item:last-child { border-bottom: none; }
.rashi-aff-rank-item:hover { background: var(--bg-light); }
.rashi-aff-rank-num {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  min-width: 38px;
  flex-shrink: 0;
}
.rashi-aff-rank-info { flex: 1; min-width: 0; }
.rashi-aff-rank-cat { font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.rashi-aff-rank-name { font-size: 13px; font-weight: 700; color: var(--text-main); word-break: break-word; }
.rashi-aff-rank-price { font-size: 15px; font-weight: 700; color: var(--accent-orange); white-space: nowrap; }
.rashi-aff-rank-btns { display: flex; gap: 5px; flex-shrink: 0; }
.rashi-aff-rank-btn {
  font-size: 10px; font-weight: 600; padding: 8px 10px;
  min-height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid transparent;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.rank-amz   { background: #f0a830; color: #fff; border-color: #f0a830; }
.rank-rktn  { background: #bf0000; color: #fff; border-color: #bf0000; }
.rank-yahoo { background: #ff0033; color: #fff; border-color: #ff0033; }
.rank-yahoo:hover { background: #cc0028; }

/* ═══════════════════════════
   MAIN + SIDEBAR
   ═══════════════════════════ */
.rashi-content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}
.rashi-sidebar { position: sticky; top: calc(var(--header-h) + 16px); }
.rashi-widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.rashi-widget-header {
  padding: 12px 16px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-main);
}
.rashi-widget-body { padding: 12px 16px; }
.rashi-widget-aff-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.rashi-widget-aff-item:last-child { border-bottom: none; }
.rashi-waff-icon {
  width: 40px; height: 40px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.rashi-waff-info { flex: 1; min-width: 0; }
.rashi-waff-name { font-size: 12px; font-weight: 700; color: var(--text-main); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rashi-waff-price { font-size: 12px; color: var(--accent-orange); font-weight: 700; }
.rashi-waff-btn {
  font-size: 12px; font-weight: 600; padding: 8px 10px;
  min-height: 36px;
  background: var(--accent-green); color: #fff; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.rashi-waff-btn:hover { background: var(--accent-green2); }

.rashi-widget-popular-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.rashi-widget-popular-item:last-child { border-bottom: none; }
.rashi-widget-rank {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--accent-green); min-width: 28px; line-height: 1;
  flex-shrink: 0;
}
.rashi-widget-pop-title { font-size: 12px; color: var(--text-main); line-height: 1.5; margin-bottom: 3px; }
.rashi-widget-pop-date { font-size: 10px; color: var(--text-light); }

.rashi-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.rashi-tag-cloud-item {
  font-size: 11px; color: var(--text-body);
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px;
  min-height: 32px;
  display: inline-flex; align-items: center;
  transition: all .2s;
}
.rashi-tag-cloud-item:hover { color: var(--accent-green); border-color: var(--accent-green); background: var(--accent-green-light); }

/* ═══════════════════════════
   CATEGORY CARDS
   ═══════════════════════════ */
.rashi-categories-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
}
.rashi-cat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center;
  transition: box-shadow .2s, transform .2s; cursor: pointer;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
  display: block;
}
.rashi-cat-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--accent-green);
  transform: scaleX(0);
  transition: transform .25s;
}
.rashi-cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rashi-cat-card:hover::after { transform: scaleX(1); }
.rashi-cat-icon {
  width: 52px; height: 52px;
  background: var(--accent-green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-green); margin: 0 auto 14px;
  transition: transform .25s;
}
.rashi-cat-card:hover .rashi-cat-icon { transform: scale(1.12); }
.rashi-cat-name { font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.rashi-cat-count { font-size: 12px; color: var(--text-muted); }

/* ═══════════════════════════
   YOUTUBE SECTION
   ═══════════════════════════ */
.rashi-yt-section { background: #f0f7f4; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rashi-yt-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.rashi-yt-channel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rashi-yt-avatar {
  width: 48px; height: 48px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.rashi-yt-ch-name { font-size: 15px; font-weight: 700; color: var(--text-main); }
.rashi-yt-ch-sub { font-size: 12px; color: var(--text-muted); }
.rashi-yt-desc { font-size: 14px; color: var(--text-body); line-height: 1.8; margin-bottom: 20px; }
.rashi-btn-yt {
  background: #ff0000; color: #fff; border: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.rashi-btn-yt:hover { background: #cc0000; transform: translateY(-2px); }
.rashi-yt-embed-area { position: relative; }
.rashi-yt-placeholder {
  width: 100%; padding-bottom: 56.25%;
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden; cursor: pointer;
}
.rashi-yt-play-btn {
  position: absolute; top:50%; left:50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255,0,0,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.rashi-yt-placeholder:hover .rashi-yt-play-btn { transform: translate(-50%,-50%) scale(1.1); background: #ff0000; }
.rashi-yt-play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 4px; }
.rashi-yt-placeholder-text {
  position: absolute; bottom: 14px; left: 0; right: 0;
  text-align: center; font-size: 11px; color: rgba(255,255,255,.5);
  letter-spacing: .1em;
}

/* ═══════════════════════════
   ABOUT SECTION
   ═══════════════════════════ */
.rashi-about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.rashi-about-photo { width: 100%; max-width: 260px; }
.rashi-about-photo-placeholder {
  width: 100%; padding-bottom: 100%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
.rashi-about-photo-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 64px; opacity: .4;
}
.rashi-about-photo-placeholder span {
  position: absolute; bottom: 18px; left: 0; right: 0;
  text-align: center; font-size: 11px; color: var(--text-light);
}
.rashi-about-text h3 {
  font-size: 22px; font-weight: 700;
  color: var(--text-main); line-height: 1.4; margin-bottom: 16px;
}
.rashi-about-text h3 span { color: var(--accent-green); }
.rashi-about-text p { font-size: 14px; color: var(--text-body); line-height: 1.85; margin-bottom: 14px; }
.rashi-about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rashi-about-tag {
  font-size: 12px; color: var(--accent-green);
  border: 1px solid rgba(46,139,87,.3);
  background: var(--accent-green-light);
  padding: 4px 12px; border-radius: 20px;
}

/* ═══════════════════════════
   PRIVACY POLICY
   ═══════════════════════════ */
.rashi-privacy-section { background: var(--bg-section); }
.rashi-privacy-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 820px; margin: 0 auto;
}
.rashi-privacy-header-bar {
  background: var(--bg-light);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  gap: 12px;
}
.rashi-privacy-header-title {
  font-size: 13px; font-weight: 700;
  color: var(--text-main);
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.rashi-privacy-header-title svg { color: var(--accent-green); flex-shrink: 0; }
.rashi-privacy-toggle {
  font-size: 12px; color: var(--accent-green);
  font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  transition: color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.rashi-privacy-toggle svg { transition: transform .3s; }
.rashi-privacy-toggle.open svg { transform: rotate(180deg); }
.rashi-privacy-body { display: none; padding: 24px; }
.rashi-privacy-body.open { display: block; }
.rashi-privacy-intro {
  font-size: 13px; color: var(--text-body); line-height: 1.8;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.rashi-privacy-item { margin-bottom: 18px; }
.rashi-privacy-item:last-child { margin-bottom: 0; }
.rashi-privacy-item h4 {
  font-size: 13px; font-weight: 700;
  color: var(--text-main); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.rashi-privacy-item h4 .pi-tag {
  font-size: 9px; letter-spacing: .1em;
  background: var(--accent-green-light);
  color: var(--accent-green);
  padding: 2px 8px; border-radius: 20px;
}
.rashi-privacy-item p { font-size: 12px; color: var(--text-body); line-height: 1.8; }
.rashi-privacy-update {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 11px; color: var(--text-light);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */
.rashi-site-footer {
  background: var(--text-main);
  color: rgba(255,255,255,.75);
}
.rashi-footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 36px; padding: 48px 0 36px;
}
.rashi-footer-desc { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.8; margin-bottom: 18px; }
.rashi-social-links { display: flex; gap: 8px; }
.rashi-social-link {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1); border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,.6);
  transition: all .2s; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rashi-social-link:hover { border-color: var(--accent-green2); color: var(--accent-green2); background: rgba(58,171,111,.15); }
.rashi-footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-green2);
  margin-bottom: 14px;
}
.rashi-footer-col ul { list-style: none; }
.rashi-footer-col li { margin-bottom: 8px; }
.rashi-footer-col a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .2s; }
.rashi-footer-col a:hover { color: rgba(255,255,255,.9); }
.rashi-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,.35);
}
.rashi-footer-bottom a { color: rgba(255,255,255,.35); transition: color .2s; }
.rashi-footer-bottom a:hover { color: rgba(255,255,255,.7); }
.rashi-footer-bottom-links { display: flex; gap: 18px; }

/* ═══════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════ */
.rashi-anim-target {
  opacity: 0; transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.rashi-anim-target.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════
   HAMBURGER MENU
   ═══════════════════════════ */
.rashi-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 4px; border-radius: var(--radius-sm);
  transition: background .2s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.rashi-hamburger:hover { background: var(--accent-green-light); }
.rashi-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.rashi-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rashi-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rashi-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルナビドロワー */
.rashi-mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: -280px; bottom: 0;
  width: 280px;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  z-index: 9999;
  padding: 80px 0 40px;
  transition: right .3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rashi-mobile-nav.open { right: 0; }
.rashi-mobile-nav ul { list-style: none; }
.rashi-mobile-nav a {
  display: block;
  padding: 16px 28px;
  min-height: 56px;
  line-height: 1.4;
  font-size: 15px; font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-light);
  transition: color .2s, background .2s;
  display: flex; align-items: center;
}
.rashi-mobile-nav a:hover {
  color: var(--accent-green);
  background: var(--accent-green-light);
}

/* オーバーレイ */
.rashi-mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.rashi-mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ═══════════════════════════ */
@media (max-width: 1024px) {
  .rashi-aff-grid { grid-template-columns: repeat(2, 1fr); }
  .rashi-content-with-sidebar { grid-template-columns: 1fr; }
  .rashi-sidebar { position: static; }
  .rashi-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .rashi-about-grid { grid-template-columns: 220px 1fr; gap: 32px; }
}

/* ═══════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════ */
@media (max-width: 768px) {
  /* ヘッダー */
  .rashi-nav-links { display: none; }
  .rashi-hamburger { display: flex; }
  .rashi-mobile-nav { display: block; }
  .rashi-mobile-nav-overlay { display: block; }

  /* ロゴテキスト縮小 */
  .rashi-logo-text { font-size: 16px; letter-spacing: 1px; }

  /* セクション余白縮小 */
  .rashi-section { padding: 40px 0; }
  .rashi-section-header { margin-bottom: 24px; }
  .rashi-container { padding: 0 14px; }

  /* Hero */
  .rashi-hero { min-height: 400px; }
  .rashi-hero-content { padding: 60px 0 36px; }
  .rashi-hero h1 { font-size: clamp(32px, 10vw, 52px); margin-bottom: 14px; }
  .rashi-hero-desc { font-size: 13px; margin-bottom: 20px; max-width: 100%; }
  .rashi-hero-actions { gap: 10px; }
  .rashi-btn { padding: 11px 20px; font-size: 13px; min-height: 44px; }
  .rashi-hero-stats { gap: 16px; margin-top: 24px; padding-top: 18px; flex-wrap: wrap; }
  .rashi-stat-num { font-size: 24px; }
  /* ヒーロー装飾を非表示にして overflow を防ぐ */
  .rashi-fishing-rig,
  .rashi-fishing-line-svg,
  .rashi-hero-lure { display: none; }
  /* バス背景を縮小して overflow を防ぐ */
  .rashi-hero-bass-bg { width: clamp(200px, 50vw, 400px); opacity: .05; }

  /* グリッド */
  .rashi-featured-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rashi-posts-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rashi-aff-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rashi-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ランキングリスト：スマホで縦積み */
  .rashi-aff-rank-item {
    flex-wrap: wrap; gap: 8px; padding: 12px 14px;
    align-items: flex-start;
  }
  .rashi-aff-rank-num { font-size: 18px; min-width: 32px; flex-shrink: 0; }
  .rashi-aff-rank-info { flex: 1; min-width: 0; order: 0; }
  .rashi-aff-rank-price { width: 100%; font-size: 14px; order: 1; padding-left: 40px; }
  .rashi-aff-rank-btns { width: 100%; order: 2; padding-left: 40px; }
  .rashi-aff-rank-btn { flex: 1; text-align: center; min-height: 40px; }

  /* YouTube */
  .rashi-yt-grid { grid-template-columns: 1fr; gap: 24px; }

  /* About */
  .rashi-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .rashi-about-photo { max-width: 200px; margin: 0 auto; }

  /* Footer */
  .rashi-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0 24px; }
  .rashi-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .rashi-footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* Privacy */
  .rashi-privacy-header-title { font-size: 12px; }
  .rashi-privacy-body { padding: 16px; }

  /* アフィリエイトカードのボタン */
  .rashi-aff-btns { gap: 4px; }
  .rashi-aff-btn { font-size: 11px; padding: 10px 2px; min-height: 40px; }

  /* ウィジェット */
  .rashi-waff-btn { padding: 8px 10px; font-size: 12px; }
}

/* ═══════════════════════════
   RESPONSIVE — SMALL MOBILE (≤480px)
   ═══════════════════════════ */
@media (max-width: 480px) {
  .rashi-container { padding: 0 12px; }

  /* ロゴさらに縮小 */
  .rashi-logo-text { font-size: 14px; }

  /* Hero */
  .rashi-hero { min-height: 340px; }
  .rashi-hero-content { padding: 40px 0 28px; }
  .rashi-hero h1 { font-size: clamp(28px, 9vw, 42px); }
  .rashi-hero-stats { gap: 12px; }
  .rashi-stat-num { font-size: 20px; }
  .rashi-stat-label { font-size: 10px; }
  /* 波紋は小さい画面では非表示 */
  .rashi-splash-ring { display: none; }
  /* ヒーローバス背景をさらに縮小 */
  .rashi-hero-bass-bg { width: 40vw; opacity: .04; }

  /* グリッドを1列に */
  .rashi-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .rashi-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .rashi-aff-grid { grid-template-columns: repeat(2, 1fr); }
  .rashi-categories-grid { grid-template-columns: repeat(2, 1fr); }

  /* カード調整 */
  .rashi-post-card { padding: 14px; }
  .rashi-aff-card { padding: 12px; }

  /* ランキングボタン縦積み */
  .rashi-aff-rank-btns { flex-direction: column; gap: 6px; }
  .rashi-aff-rank-btn { width: 100%; min-height: 44px; }
  .rashi-aff-btns { gap: 5px; }
  .rashi-aff-btn { min-height: 44px; }

  /* ランキング価格/ボタンのインデント除去 */
  .rashi-aff-rank-price { padding-left: 0; }
  .rashi-aff-rank-btns { padding-left: 0; }

  /* Footer */
  .rashi-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .rashi-footer-grid .rashi-footer-brand { margin-bottom: 4px; }

  /* Section title */
  .rashi-section-title { font-size: 22px; }

  /* Privacy body */
  .rashi-privacy-body { padding: 14px; }

  /* About テキスト */
  .rashi-about-text h3 { font-size: 18px; }
}

/* ═══════════════════════════
   RESPONSIVE — EXTRA SMALL (≤360px)
   ═══════════════════════════ */
@media (max-width: 360px) {
  .rashi-logo-text { font-size: 13px; letter-spacing: 0; }
  .rashi-hero h1 { font-size: clamp(24px, 8vw, 36px); }
  .rashi-aff-rank-item { padding: 10px 10px; }
  .rashi-hero-stats { gap: 8px; }
  .rashi-stat-num { font-size: 18px; }
}

/* ═══════════════════════════════════════════════
   INNER PAGE STYLES — breadcrumb / single / page / archive
   ═══════════════════════════════════════════════ */

/* ── Breadcrumb ── */
.rashi-breadcrumb {
  background: var(--bg-light);
  padding: 10px 0;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.rashi-breadcrumb a {
  color: var(--accent-green);
  transition: color .2s;
}
.rashi-breadcrumb a:hover { color: var(--accent-green2); }

/* ── Page Main ── */
.rashi-page-main {
  min-height: 60vh;
  padding: 48px 0 80px;
  background: var(--bg-site);
}

/* ── Single: two-column layout ── */
.rashi-single-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

/* ── Single Article ── */
.rashi-single-article {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* ── Featured image ── */
.rashi-single-feat-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

/* ── Category badge ── */
.rashi-single-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-green);
  background: var(--accent-green-light);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* ── Post title ── */
.rashi-single-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin: 12px 0;
  color: var(--text-main);
  line-height: 1.4;
}

/* ── Post meta ── */
.rashi-single-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.rashi-single-meta a {
  color: var(--accent-green);
}

/* ── Entry content ── */
.rashi-entry-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
}
.rashi-entry-content h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: var(--text-main);
  margin: 2em 0 .75em;
  padding-left: 12px;
  border-left: 4px solid var(--accent-green);
  line-height: 1.4;
}
.rashi-entry-content h3 {
  font-size: clamp(16px, 2.5vw, 19px);
  font-weight: 700;
  color: var(--text-main);
  margin: 1.6em 0 .6em;
  padding-left: 10px;
  border-left: 3px solid var(--accent-green2);
  line-height: 1.4;
}
.rashi-entry-content h4,
.rashi-entry-content h5,
.rashi-entry-content h6 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.4em 0 .5em;
}
.rashi-entry-content p { margin-bottom: 1.2em; }
.rashi-entry-content a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rashi-entry-content a:hover { color: var(--accent-green2); }
.rashi-entry-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  display: block;
  margin: 1.2em auto;
}
.rashi-entry-content ul,
.rashi-entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.rashi-entry-content li { margin-bottom: .4em; }
.rashi-entry-content blockquote {
  border-left: 4px solid var(--accent-green-light);
  padding: 12px 20px;
  margin: 1.4em 0;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
  font-style: italic;
}
.rashi-entry-content pre {
  background: #1a1a2e;
  color: #e8f0e8;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  margin: 1.2em 0;
}
.rashi-entry-content code {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 13px;
  color: var(--accent-green);
}
.rashi-entry-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
.rashi-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 14px;
}
.rashi-entry-content th,
.rashi-entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.rashi-entry-content th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-main);
}

/* ── Tags ── */
.rashi-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}
.rashi-single-tag {
  font-size: 11px;
  background: var(--accent-green-light);
  color: var(--accent-green);
  padding: 3px 10px;
  border-radius: 20px;
  transition: background .2s, color .2s;
}
.rashi-single-tag:hover {
  background: var(--accent-green);
  color: #fff;
}

/* ── Prev / Next navigation ── */
.rashi-post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.rashi-post-nav a {
  flex: 1;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transition: background .2s;
  min-width: 0;
  word-break: break-word;
}
.rashi-post-nav a:hover { background: var(--accent-green-light); color: var(--accent-green); }

/* ── Static Page content ── */
.rashi-page-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
}
.rashi-page-content .rashi-entry-content h2 { margin-top: 1.6em; }

/* ── Archive header ── */
.rashi-archive-header { margin-bottom: 32px; }
.rashi-archive-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
}
.rashi-archive-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Pagination ── */
.rashi-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.rashi-pagination a,
.rashi-pagination span,
.rashi-pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-main);
  transition: all .2s;
  text-decoration: none;
}
.rashi-pagination a:hover { background: var(--accent-green-light); border-color: var(--accent-green); color: var(--accent-green); }
.rashi-pagination .current,
.rashi-pagination span.current { background: var(--accent-green); color: #fff; border-color: var(--accent-green); }

/* ── Responsive: tablet ≤1024px ── */
@media (max-width: 1024px) {
  .rashi-single-wrap { grid-template-columns: 1fr; }
}

/* ── Responsive: mobile ≤768px ── */
@media (max-width: 768px) {
  .rashi-page-content { padding: 24px 20px; }
  .rashi-single-article { padding: 20px; }
  .rashi-page-main { padding: 32px 0 56px; }
  .rashi-archive-title { font-size: 22px; }
}

/* ══════════════════════════════════════════════
   検索ウィジット & ヘッダー検索
   ══════════════════════════════════════════════ */

/* サイドバー検索 */
.rashi-search-form { width: 100%; }
.rashi-search-input-wrap {
  display: flex;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .2s;
}
.rashi-search-input-wrap:focus-within { border-color: var(--accent); }
.rashi-search-input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  background: var(--bg-light);
  color: var(--text-main);
  min-width: 0;
}
.rashi-search-btn {
  padding: 10px 14px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s;
  flex-shrink: 0;
}
.rashi-search-btn:hover { background: var(--accent-dark, #2a7a3a); }

/* 検索結果ページのインライン検索フォーム */
.rashi-search-form-inline {
  margin-top: 20px;
  max-width: 500px;
}

/* ヘッダー検索トグルボタン */
.rashi-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rashi-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background .2s;
  line-height: 1;
}
.rashi-search-toggle:hover { background: rgba(255,255,255,.1); }

/* ヘッダー検索バー（スライドダウン） */
.rashi-header-search {
  background: var(--bg-dark, #1a2a1a);
  border-top: 1px solid rgba(255,255,255,.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.rashi-header-search.is-open {
  max-height: 80px;
  padding: 12px 0;
}
.rashi-header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}
.rashi-header-search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
  outline: none;
  min-width: 0;
  transition: border-color .2s;
}
.rashi-header-search-input::placeholder { color: rgba(255,255,255,.5); }
.rashi-header-search-input:focus { border-color: var(--accent); }
.rashi-header-search-submit {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.rashi-header-search-submit:hover { background: var(--accent-dark, #2a7a3a); }
.rashi-header-search-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  transition: color .2s;
}
.rashi-header-search-close:hover { color: #fff; }

/* モバイル調整 */
@media (max-width: 768px) {
  .rashi-header-search-form { padding: 0 16px; }
  .rashi-header-search-submit { padding: 10px 14px; }
}

/* ══════════════════════════════════════════════
   YouTube 埋め込み
   ══════════════════════════════════════════════ */
.rashi-yt-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.rashi-yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.rashi-yt-video-title {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: center;
}
