/*
Theme Name: OrochiPress
Theme URI: https://example.com/orochipress
Author: OrochiPress Team
Description: FANZA/楽天/APEX API連携 + AI自動記事生成対応のアフィリエイトWordPressテーマ。クラシックウィジェットベースで自由にレイアウト変更可能。
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: orochipress
*/

/* ========================================
   CSS Variables & Theme (明るいデザイン)
======================================== */
:root {
  --op-primary: #055a8e;
  --op-primary-light: #e8f4fd;
  --op-accent: #e74c3c;
  --op-accent-soft: #fff5f5;
  --op-bg: #f5f6fa;
  --op-bg-white: #ffffff;
  --op-bg-card: #ffffff;
  --op-bg-card-hover: #fafbff;
  --op-text: #333333;
  --op-text-light: #777888;
  --op-text-dark: #1a1a2e;
  --op-border: #e2e5ee;
  --op-border-light: #f0f1f5;
  --op-radius: 8px;
  --op-radius-lg: 12px;
  --op-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --op-shadow-hover: 0 8px 24px rgba(0,0,0,0.10);
  --op-font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --op-sidebar-w: 280px;
  --op-content-max: 1200px;
  --op-gold: #d4a017;
  --op-silver: #8c8c8c;
  --op-bronze: #b87333;
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: var(--op-font);
  background: var(--op-bg);
  color: var(--op-text);
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--op-primary); text-decoration: none; transition: color .2s; }
a:hover { color: #2980b9; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   Layout (サイドバー右デフォルト / 左右切替対応)
======================================== */
.op-wrapper {
  display: flex;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
}
/* デフォルト: サイドバー右 */
.op-main {
  flex: 1;
  min-width: 0;
  order: 1;
}
.op-sidebar {
  width: var(--op-sidebar-w);
  background: var(--op-bg-white);
  border-left: 1px solid var(--op-border);
  padding: 24px 16px;
  order: 2;
  flex-shrink: 0;
}
/* サイドバー左の場合 */
body.op-sidebar-left .op-sidebar {
  order: 0;
  border-left: none;
  border-right: 1px solid var(--op-border);
}
body.op-sidebar-left .op-main {
  order: 1;
}

.op-content {
  padding: 20px 24px;
}

/* ========================================
   Header
======================================== */
.op-header {
  border-bottom: 1px solid var(--op-border);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  background: var(--op-bg-white);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
/* WP管理バー表示時のstickyオフセット */
.admin-bar .op-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .op-header {
    top: 46px;
  }
}
.op-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.op-header__logo {
  font-size: 1.3rem;
  font-weight: 700;
}
.op-header__logo a { color: inherit; text-decoration: none; }
.op-header__logo-img { max-height: 48px; width: auto; }
.op-header__menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.op-header__menu li { display: inline-block; position: relative; }
.op-header__menu li ul { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 180px; box-shadow: var(--op-shadow); border-radius: 4px; z-index: 91; list-style: none; padding: 4px 0; }
.op-header__menu li:hover > ul { display: block; }
.op-header__menu li ul li { display: block; }
.op-header__menu li ul a { display: block; padding: 8px 16px; }
.op-header__nav a {
  color: inherit;
  margin-left: 20px;
  font-size: .9rem;
  font-weight: 500;
  opacity: .85;
}
.op-header__nav a:hover { opacity: 1; }

/* ハンバーガーボタン */
.op-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 100;
}
.op-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .3s, opacity .3s;
}
.op-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.op-hamburger.active span:nth-child(2) { opacity: 0; }
.op-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー */
.op-mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--op-bg-white);
  z-index: 95;
  overflow-y: auto;
  transition: right .3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  padding: 60px 16px 24px;
}
.op-mobile-menu.open { right: 0; }
.op-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.op-mobile-menu__list li { border-bottom: 1px solid var(--op-border-light); }
.op-mobile-menu__list a {
  display: block;
  padding: 12px 8px;
  color: var(--op-text);
  font-size: .95rem;
}
.op-mobile-menu__list a:hover { background: var(--op-primary-light); }
.op-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 94;
}
.op-mobile-overlay.open { display: block; }

/* ========================================
   Hero(多彩アニメーション対応)
======================================== */
.op-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.op-hero__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.op-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.op-hero__slide.active { opacity: 1; z-index: 1; }
.op-hero__slide.prev { opacity: 0; z-index: 0; }
.op-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fade(default) */
.op-hero--fade .op-hero__slide { transition: opacity .8s ease; }

/* Zoom */
.op-hero--zoom .op-hero__slide { transition: opacity .8s ease, transform .8s ease; transform: scale(1.1); }
.op-hero--zoom .op-hero__slide.active { transform: scale(1); }

/* Ken Burns */
.op-hero--kenburns .op-hero__slide img { animation: none; }
.op-hero--kenburns .op-hero__slide.active img { animation: kenburns 8s ease forwards; }
@keyframes kenburns {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.15) translate(-2%,-1%); }
}

/* Flip */
.op-hero--flip .op-hero__slide {
  transition: opacity .6s ease, transform .6s ease;
  transform: rotateY(90deg);
  backface-visibility: hidden;
}
.op-hero--flip .op-hero__slide.active { transform: rotateY(0); }

.op-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.op-hero__content {
  position: relative;
  z-index: 3;
  padding: 40px 24px;
}
.op-hero h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.op-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.op-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.op-hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  transition: background .2s;
  padding: 0;
}
.op-hero__dot.active { background: #fff; }

/* ヒーローボタン */
.op-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
.op-hero__btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.op-hero__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ========================================
   グローバルメニュー(ヒーロー下)
======================================== */
.op-global-menu {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.op-global-menu__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
.op-global-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.op-global-menu__list li a {
  display: block;
  padding: 12px 20px;
  color: var(--menu-color, #fff);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.op-global-menu__list li a:hover {
  color: var(--menu-hover, #43b0f1);
  background: rgba(255,255,255,0.08);
}

/* ========================================
   Section Titles
======================================== */
.op-widget-area { margin-bottom: 24px; }
.op-widget { margin-bottom: 24px; }
.op-section-title {
  font-size: 1.1rem;
  color: var(--op-text-dark);
  font-weight: 700;
  margin-bottom: 16px;
  padding: 10px 16px;
  background: var(--op-bg-white);
  border-left: 4px solid var(--op-primary);
  border-radius: 0 var(--op-radius) var(--op-radius) 0;
  box-shadow: var(--op-shadow);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   Display Design 1: Grid (グリッド)
======================================== */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.sc-card {
  background: var(--op-bg-card);
  border-radius: var(--op-radius);
  overflow: hidden;
  box-shadow: var(--op-shadow);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.sc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--op-shadow-hover);
}
.sc-card-img {
  position: relative;
  padding-top: 110%;
  background: #f0f1f5;
}
.sc-card-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sc-card-body {
  padding: 6px;
  overflow: hidden;
}
.sc-card-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  height: 4.2em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--op-text-dark);
}
.sc-card-meta {
  font-size: 11px;
  color: var(--op-text-light);
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.sc-card-price {
  margin-top: 2px;
  color: var(--op-accent);
  font-weight: 700;
  font-size: 11px;
}

/* ========================================
   Display Design 2: List (リスト)
======================================== */
.sc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-list-item {
  background: var(--op-bg-card);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  transition: box-shadow .2s;
}
.sc-list-item:hover { box-shadow: var(--op-shadow-hover); }
.sc-list-item a {
  display: flex;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.sc-list-item img {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.sc-list-content { flex: 1; min-width: 0; }
.sc-list-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--op-text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-list-meta {
  font-size: 12px;
  color: var(--op-text-light);
  margin-top: 2px;
}
.sc-list-price {
  margin-top: 4px;
  color: var(--op-accent);
  font-weight: 700;
}

/* ========================================
   Display Design 3: Slider (横スクロール)
======================================== */
.sc-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.sc-slider::-webkit-scrollbar { height: 6px; }
.sc-slider::-webkit-scrollbar-track { background: var(--op-border-light); border-radius: 3px; }
.sc-slider::-webkit-scrollbar-thumb { background: var(--op-border); border-radius: 3px; }
.sc-slider .sc-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
}

/* ========================================
   Display Design 4: Featured (フィーチャード)
======================================== */
.sc-featured-main {
  margin-bottom: 16px;
}
.sc-featured-main a {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  background: var(--op-bg-card);
  border-radius: var(--op-radius-lg);
  padding: 20px;
  box-shadow: var(--op-shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.sc-featured-main a:hover { box-shadow: var(--op-shadow-hover); }
.sc-featured-main img { width: 100%; border-radius: var(--op-radius); }
.sc-featured-info { padding: 4px 0; }
.sc-featured-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--op-text-dark);
}
.sc-featured-meta {
  font-size: 13px;
  color: var(--op-text-light);
  margin-top: 6px;
}
.sc-featured-price {
  margin-top: 6px;
  color: var(--op-accent);
  font-weight: 700;
  font-size: 15px;
}
.sc-featured-sub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* ========================================
   Display Design 5: Ranking (ランキング)
======================================== */
.sc-ranking { }
.sc-ranking-item {
  display: flex;
  gap: 10px;
  padding: 10px 10px;
  background: var(--op-bg-card);
  border-radius: var(--op-radius);
  margin-bottom: 8px;
  box-shadow: var(--op-shadow);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.sc-ranking-item:hover { box-shadow: var(--op-shadow-hover); }
.sc-ranking-num {
  font-size: .85rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--op-primary);
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
}
.sc-ranking-num.rank-1 { background: var(--op-gold); color: #fff; width: 32px; height: 32px; min-width: 32px; font-size: .95rem; }
.sc-ranking-num.rank-2 { background: var(--op-silver); color: #fff; }
.sc-ranking-num.rank-3 { background: var(--op-bronze); color: #fff; }
/* ランキング番号非表示 */
.sc-ranking-hide-num .sc-ranking-num { display: none; }
.sc-ranking-thumb {
  width: 56px;
  height: 78px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.sc-ranking-info { flex: 1; min-width: 0; }
.sc-ranking-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--op-text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-ranking-meta {
  font-size: 12px;
  color: var(--op-text-light);
  margin-top: 2px;
}
.sc-ranking-price {
  color: var(--op-accent);
  font-weight: 700;
  font-size: 11px;
  margin-top: 4px;
}

/* ========================================
   Display Design 6: Magazine (マガジン風)
======================================== */
.sc-magazine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sc-magazine-item:first-child {
  grid-row: 1 / 3;
}
.sc-magazine-item {
  background: var(--op-bg-card);
  border-radius: var(--op-radius);
  overflow: hidden;
  box-shadow: var(--op-shadow);
  transition: box-shadow .2s;
}
.sc-magazine-item:hover { box-shadow: var(--op-shadow-hover); }
.sc-magazine-item a { display: block; text-decoration: none; color: inherit; }
.sc-magazine-item:first-child .sc-card-img { padding-top: 120%; }
.sc-magazine-item:not(:first-child) .sc-card-img { padding-top: 80%; }

/* ========================================
   Display Design 7: Compact (コンパクト)
======================================== */
.sc-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.sc-compact .sc-card { border-radius: 6px; }
.sc-compact .sc-card-img { padding-top: 110%; }
.sc-compact .sc-card-body { padding: 8px; }
.sc-compact .sc-card-title { font-size: 11px; height: 2.2em; }
.sc-compact .sc-card-price { font-size: 12px; margin-top: 4px; }

/* ========================================
   Display Design 8: Table (テーブル)
======================================== */
.sc-table {
  width: 100%;
  background: var(--op-bg-card);
  border-radius: var(--op-radius);
  overflow: hidden;
  box-shadow: var(--op-shadow);
  border-collapse: collapse;
}
.sc-table th {
  background: var(--op-primary);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.sc-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--op-border-light);
  font-size: 13px;
  vertical-align: middle;
}
.sc-table tr:hover { background: var(--op-primary-light); }
.sc-table-thumb {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}

/* ========================================
   Display Design 9: Card Wide (横長カード)
======================================== */
.sc-wide {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sc-wide-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  background: var(--op-bg-card);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  overflow: hidden;
  transition: box-shadow .2s;
}
.sc-wide-item:hover { box-shadow: var(--op-shadow-hover); }
.sc-wide-item a { display: contents; text-decoration: none; color: inherit; }
.sc-wide-img {
  width: 110px;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}
.sc-wide-body {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sc-wide-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--op-text-dark);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-wide-meta {
  font-size: 12px;
  color: var(--op-text-light);
  margin-top: 4px;
}
.sc-wide-price {
  color: var(--op-accent);
  font-weight: 700;
  margin-top: 6px;
}

/* ========================================
   Display Design 10: Tile (タイル / Pinterest風)
======================================== */
.sc-tile {
  columns: 3;
  column-gap: 14px;
}
.sc-tile .sc-card {
  break-inside: avoid;
  margin-bottom: 14px;
  display: inline-block;
  width: 100%;
}
.sc-tile .sc-card-img { padding-top: 0; position: static; }
.sc-tile .sc-card-img img { position: static; height: auto; }

/* ========================================
   Display Design 11: Banner (バナー風)
======================================== */
.sc-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-banner-item {
  position: relative;
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  box-shadow: var(--op-shadow);
  height: 130px;
}
.sc-banner-item a { display: block; height: 100%; text-decoration: none; }
.sc-banner-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.sc-banner-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 20px 16px 14px;
  color: #fff;
}
.sc-banner-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.sc-banner-price {
  font-size: 14px;
  font-weight: 700;
  color: #ffd700;
  margin-top: 4px;
}

/* ========================================
   Display Design 12: Minimal (ミニマル)
======================================== */
.sc-minimal {
  display: flex;
  flex-direction: column;
}
.sc-minimal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--op-border-light);
  text-decoration: none;
  color: inherit;
}
.sc-minimal-item:hover { background: var(--op-primary-light); border-radius: 6px; }
.sc-minimal-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--op-text-light);
  min-width: 24px;
  text-align: center;
}
.sc-minimal-title {
  font-size: 13px;
  flex: 1;
  color: var(--op-text-dark);
  line-height: 1.4;
}

/* ========================================
   Color Presets (デザインプリセット)
======================================== */
.sc-preset-sale { border-left: 4px solid #e74c3c; }
.sc-preset-ranking { border-left: 4px solid #f39c12; }
.sc-preset-review { border-left: 4px solid #3498db; }
.sc-preset-limited { border-left: 4px solid #9b59b6; }
.sc-preset-official { border-left: 4px solid #27ae60; }

/* ========================================
   Single Product Page
======================================== */
.op-product-single { max-width: 900px; margin: 0 auto; }
.op-product-single__header {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  background: var(--op-bg-card);
  border-radius: var(--op-radius-lg);
  padding: 24px;
  box-shadow: var(--op-shadow);
}
.op-product-single__image {
  width: 300px;
  flex-shrink: 0;
  border-radius: var(--op-radius);
  overflow: hidden;
}
.op-product-single__info { flex: 1; }
.op-product-single__title {
  font-size: 1.4rem;
  color: var(--op-text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
  font-weight: 700;
}
.op-product-single__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.op-product-single__table th,
.op-product-single__table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--op-border-light);
  text-align: left;
  font-size: .88rem;
}
.op-product-single__table th {
  color: var(--op-text-light);
  width: 100px;
  font-weight: 600;
}
.op-product-single__header--simple {
  align-items: center;
}
.op-product-single__header--simple .op-product-single__image {
  width: 200px;
}
.op-product-single__header--simple .op-product-single__title {
  margin-bottom: 12px;
}
/* 作品情報テーブル */
.op-product-meta {
  margin: 20px 0;
  background: var(--op-card-bg, #fff);
  border-radius: var(--op-radius);
  padding: 20px;
  border: 1px solid var(--op-border, #e5e7eb);
}
.op-product-meta__table {
  width: 100%;
  border-collapse: collapse;
}
.op-product-meta__table th,
.op-product-meta__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--op-border, #e5e7eb);
  font-size: .9rem;
  line-height: 1.5;
}
.op-product-meta__table tr:last-child th,
.op-product-meta__table tr:last-child td {
  border-bottom: none;
}
.op-product-meta__table th {
  white-space: nowrap;
  width: 110px;
  color: var(--op-text-muted, #6b7280);
  font-weight: 600;
  vertical-align: top;
}
.op-product-meta__table th i {
  margin-right: 4px;
  width: 16px;
  text-align: center;
}
.op-product-meta__table td {
  color: var(--op-text, #1f2937);
}
.op-product-meta__table td a {
  color: var(--op-primary);
  text-decoration: none;
}
.op-product-meta__table td a:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .op-product-meta__table th {
    width: 80px;
    font-size: .8rem;
  }
  .op-product-meta__table td {
    font-size: .85rem;
  }
}

.op-btn-affiliate {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 12px 32px;
  border-radius: var(--op-radius);
  font-weight: 700;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 12px rgba(231,76,60,0.3);
  text-decoration: none;
}
.op-btn-affiliate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231,76,60,0.4);
  color: #fff;
}
.op-btn-affiliate--lg {
  padding: 14px 40px;
  font-size: 1.1rem;
}
.op-cta-bottom {
  text-align: center;
  margin: 24px 0;
  padding: 20px;
  background: var(--op-bg-card);
  border: 2px solid #e74c3c;
  border-radius: var(--op-radius-lg);
  box-shadow: var(--op-shadow);
}
.op-article-body {
  background: var(--op-bg-card);
  border-radius: var(--op-radius-lg);
  padding: 28px;
  line-height: 1.9;
  box-shadow: var(--op-shadow);
}
.op-article-body h2 {
  font-size: 1.25rem;
  color: var(--op-text-dark);
  border-left: 4px solid var(--op-primary);
  padding-left: 12px;
  margin: 28px 0 14px;
  font-weight: 700;
}
.op-article-body h3 {
  font-size: 1.05rem;
  color: var(--op-text-dark);
  margin: 20px 0 10px;
  font-weight: 600;
}
.op-article-body p { margin-bottom: 14px; }
.op-article-body ul, .op-article-body ol { margin: 10px 0 14px 24px; }

/* ========================================
   Sidebar Widgets
======================================== */
.op-sidebar .widget {
  padding: 16px 0;
  border-bottom: 1px solid var(--op-border-light);
}
.op-sidebar .widget:last-child { border-bottom: none; }
.op-sidebar .widget-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--op-text-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--op-primary);
}
.op-sidebar .widget ul { list-style: none; }
.op-sidebar .widget ul li a {
  display: block;
  padding: 6px 0;
  color: var(--op-text);
  font-size: .88rem;
  border-bottom: 1px solid var(--op-border-light);
  transition: padding .2s;
}
.op-sidebar .widget ul li a:hover {
  color: var(--op-primary);
  padding-left: 4px;
}

/* ========================================
   Pagination
======================================== */
.op-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.op-pagination a, .op-pagination span {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .88rem;
  border: 1px solid var(--op-border);
  color: var(--op-text);
  background: var(--op-bg-card);
}
.op-pagination .current {
  background: var(--op-primary);
  color: #fff;
  border-color: var(--op-primary);
}
.op-pagination a:hover { background: var(--op-primary-light); }

/* WordPress the_posts_pagination() */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.nav-links a, .nav-links span {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .88rem;
  border: 1px solid var(--op-border);
  color: var(--op-text);
  background: var(--op-bg-card);
  text-decoration: none;
  transition: background .2s;
}
.nav-links .current {
  background: var(--op-primary);
  color: #fff;
  border-color: var(--op-primary);
}
.nav-links a:hover { background: var(--op-primary-light); }
.nav-links .dots { border: none; background: none; }

/* ========================================
   Footer
======================================== */
.op-footer {
  text-align: center;
  padding: 24px;
  color: var(--op-text-light);
  font-size: .82rem;
  border-top: 1px solid var(--op-border);
  margin-top: 48px;
  background: var(--op-bg-white);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 900px) {
  .op-sidebar { display: none; }
  .op-main { margin-left: 0 !important; margin-right: 0 !important; }
  .sc-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .sc-featured-main a { grid-template-columns: 1fr; }
  .sc-featured-sub { grid-template-columns: repeat(2, 1fr); }
  .sc-magazine { grid-template-columns: 1fr; }
  .sc-magazine-item:first-child { grid-row: auto; }
  .sc-wide-item { grid-template-columns: 90px 1fr; }
  .sc-tile { columns: 2; }
  .op-product-single__header { flex-direction: column; }
  .op-product-single__image { width: 100%; }
}
@media (max-width: 600px) {
  .sc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sc-compact { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sc-featured-sub { grid-template-columns: repeat(2, 1fr); }
  .sc-wide-item { grid-template-columns: 1fr; }
  .sc-wide-img { height: 160px; width: 100%; }
  .sc-tile { columns: 2; }
  .op-hero h1 { font-size: 1.4rem; }
  .sc-banner-item { height: 120px; }
}

/* ========================================
   Breadcrumb
======================================== */
.op-breadcrumb {
  padding: 10px 20px;
  font-size: .82rem;
  color: var(--op-text-light);
}
.op-bread {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.op-bread__item { display: inline-flex; align-items: center; }
.op-bread__item a { color: var(--op-primary); }
.op-bread__sep { margin: 0 8px; font-size: .65rem; color: var(--op-text-light); }
.op-bread__current { color: var(--op-text); font-weight: 500; }

/* ========================================
   Share Buttons
======================================== */
.op-share { margin: 32px 0; text-align: center; }
.op-share__label { font-size: .85rem; font-weight: 600; color: var(--op-text-light); margin-bottom: 10px; }
.op-share__buttons { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.op-share__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px;
  font-size: .82rem; font-weight: 600;
  color: #fff; text-decoration: none;
  transition: opacity .2s;
}
.op-share__btn:hover { opacity: .85; color: #fff; }
.op-share--twitter { background: #1da1f2; }
.op-share--facebook { background: #1877f2; }
.op-share--line { background: #06c755; }
.op-share--hatena { background: #00a4de; }
.op-share--pocket { background: #ef4056; }

/* ========================================
   Hero Slider
======================================== */
.op-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.op-hero__slider {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}
.op-hero__slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.op-hero__slide.active { opacity: 1; }
.op-hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.op-hero__overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.op-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px;
}
.op-hero__content h1 {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
  animation: opHeroFadeUp .8s ease both;
}
.op-hero__content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  animation: opHeroFadeUp .8s .2s ease both;
}
@keyframes opHeroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.op-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.op-hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background .3s;
}
.op-hero__dot.active { background: #fff; }

/* ========================================
   Balloon (吹き出し)
======================================== */
.op-balloon {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  align-items: flex-start;
}
.op-balloon--right { flex-direction: row-reverse; }
.op-balloon__icon {
  flex-shrink: 0;
  text-align: center;
  width: 60px;
}
.op-balloon__icon img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.op-balloon__name {
  display: block;
  font-size: .7rem;
  color: var(--op-text-light);
  margin-top: 4px;
}
.op-balloon__bubble {
  position: relative;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid;
  max-width: 80%;
  line-height: 1.7;
  font-size: .92rem;
}
.op-balloon--left .op-balloon__bubble::before {
  content: '';
  position: absolute;
  left: -8px; top: 18px;
  border: 8px solid transparent;
  border-right-color: inherit;
  border-left: 0;
}
.op-balloon--right .op-balloon__bubble::before {
  content: '';
  position: absolute;
  right: -8px; top: 18px;
  border: 8px solid transparent;
  border-left-color: inherit;
  border-right: 0;
}
.op-balloon--think .op-balloon__bubble {
  border-radius: 20px;
}

/* ========================================
   Box (装飾ボックス)
======================================== */
.op-box {
  border: 2px solid;
  border-radius: var(--op-radius);
  padding: 20px;
  margin: 20px 0;
}
.op-box__title {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.op-box__body { font-size: .92rem; line-height: 1.8; }

/* ========================================
   Button
======================================== */
.op-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  text-align: center;
}
.op-btn:hover { opacity: .85; transform: translateY(-1px); color: #fff; }
.op-btn--sm { padding: 6px 16px; font-size: .82rem; }
.op-btn--md { padding: 10px 28px; font-size: .92rem; }
.op-btn--lg { padding: 14px 40px; font-size: 1.05rem; }
.op-btn--block { display: flex; width: 100%; }
.op-btn__sub { font-size: .72rem; opacity: .8; margin-top: 2px; }

/* ========================================
   Toggle (アコーディオン)
======================================== */
.op-toggle {
  border: 1px solid;
  border-radius: var(--op-radius);
  margin: 16px 0;
  overflow: hidden;
}
.op-toggle__title {
  padding: 12px 16px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.op-toggle__title::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .75rem; transition: transform .3s; }
.op-toggle[open] .op-toggle__title::after { transform: rotate(180deg); }
.op-toggle__title::-webkit-details-marker { display: none; }
.op-toggle__body { padding: 0 16px 16px; font-size: .92rem; line-height: 1.8; }

/* ========================================
   Q&A
======================================== */
.op-qa {
  margin: 20px 0;
  border-radius: var(--op-radius);
  overflow: hidden;
  box-shadow: var(--op-shadow);
}
.op-qa__q, .op-qa__a {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  align-items: flex-start;
}
.op-qa__q { background: var(--op-primary-light); }
.op-qa__a { background: var(--op-bg-card); }
.op-qa__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}
.op-qa__label--q { background: var(--op-primary); color: #fff; }
.op-qa__label--a { background: var(--op-accent); color: #fff; }
.op-qa__text { flex: 1; font-size: .92rem; line-height: 1.7; padding-top: 4px; }

/* ========================================
   Star Rating
======================================== */
.op-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.op-stars__num {
  margin-left: 6px;
  font-weight: 700;
  font-size: .85em;
  color: var(--op-text);
}

/* ========================================
   Step
======================================== */
.op-step { margin: 24px 0; }
.op-step__item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}
.op-step__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--op-border);
}
.op-step__num {
  width: 40px; height: 40px;
  background: var(--op-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
}
.op-step__content { flex: 1; }
.op-step__title { font-weight: 700; font-size: 1rem; color: var(--op-text-dark); margin-bottom: 6px; }
.op-step__body { font-size: .92rem; line-height: 1.7; color: var(--op-text); }

/* ========================================
   Tab
======================================== */
.op-tab { margin: 20px 0; }
.op-tab__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--op-border);
  margin-bottom: 0;
}
.op-tab__btn {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--op-text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.op-tab__btn--active {
  color: var(--op-primary);
  border-bottom-color: var(--op-primary);
}
.op-tab__panel {
  padding: 20px;
  background: var(--op-bg-card);
  border: 1px solid var(--op-border);
  border-top: none;
  border-radius: 0 0 var(--op-radius) var(--op-radius);
  font-size: .92rem;
  line-height: 1.8;
}
.op-tab--pill .op-tab__nav { border-bottom: none; gap: 6px; margin-bottom: 12px; }
.op-tab--pill .op-tab__btn {
  border-radius: 20px;
  border: 1px solid var(--op-border);
  margin-bottom: 0;
}
.op-tab--pill .op-tab__btn--active {
  background: var(--op-primary);
  color: #fff;
  border-color: var(--op-primary);
}
.op-tab--box .op-tab__btn {
  background: var(--op-bg);
  border: 1px solid var(--op-border);
  border-bottom: none;
  border-radius: var(--op-radius) var(--op-radius) 0 0;
  margin-bottom: 0;
}
.op-tab--box .op-tab__btn--active {
  background: var(--op-bg-card);
  border-bottom: 1px solid var(--op-bg-card);
}

/* ========================================
   FAQ
======================================== */
.op-faq { margin: 24px 0; }
.op-faq__heading { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--op-text-dark); }
.op-faq__item {
  margin-bottom: 12px;
  border-radius: var(--op-radius);
  overflow: hidden;
  box-shadow: var(--op-shadow);
}
.op-faq__q {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--op-primary-light);
  font-weight: 600;
  font-size: .92rem;
}
.op-faq__a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  background: var(--op-bg-card);
  font-size: .92rem;
  line-height: 1.7;
}
.op-faq__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--op-primary);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  flex-shrink: 0;
}
.op-faq__icon--a { background: var(--op-accent); }

/* ========================================
   Review
======================================== */
.op-review {
  background: var(--op-bg-card);
  border-radius: var(--op-radius-lg);
  box-shadow: var(--op-shadow);
  padding: 24px;
  margin: 24px 0;
}
.op-review__header { display: flex; gap: 16px; margin-bottom: 16px; align-items: center; }
.op-review__img { width: 100px; height: 140px; object-fit: cover; border-radius: var(--op-radius); flex-shrink: 0; }
.op-review__info { flex: 1; }
.op-review__title { font-size: 1.1rem; font-weight: 700; color: var(--op-text-dark); margin-bottom: 6px; }
.op-review__rating { display: flex; align-items: center; gap: 4px; }
.op-review__body { font-size: .92rem; line-height: 1.8; margin-bottom: 16px; }
.op-review__pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.op-review__label { font-weight: 700; font-size: .88rem; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.op-review__pros .op-review__label { color: #28a745; }
.op-review__cons .op-review__label { color: #dc3545; }
.op-review__pros ul, .op-review__cons ul { list-style: none; font-size: .88rem; }
.op-review__pros li::before { content: '\2713 '; color: #28a745; }
.op-review__cons li::before { content: '\2717 '; color: #dc3545; }
.op-review__action { text-align: center; }

/* ========================================
   Link Card
======================================== */
.op-link-card {
  display: flex;
  gap: 14px;
  background: var(--op-bg-card);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  padding: 14px;
  margin: 16px 0;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.op-link-card:hover { box-shadow: var(--op-shadow-hover); color: inherit; }
.op-link-card__img { width: 120px; flex-shrink: 0; }
.op-link-card__img img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; }
.op-link-card__body { flex: 1; min-width: 0; }
.op-link-card__title { font-weight: 700; font-size: .92rem; color: var(--op-text-dark); line-height: 1.4; margin-bottom: 4px; }
.op-link-card__desc { font-size: .8rem; color: var(--op-text-light); line-height: 1.5; margin-bottom: 4px; }
.op-link-card__url { font-size: .72rem; color: var(--op-text-light); }

/* ========================================
   Carousel
======================================== */
.op-carousel {
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}
.op-carousel__track {
  display: flex;
  transition: transform .4s ease;
}
.op-carousel__slide {
  flex-shrink: 0;
  padding: 0 6px;
}
.op-carousel__slide a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.op-carousel__slide img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--op-radius);
}
.op-carousel__title {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  color: var(--op-text-dark);
}
.op-carousel__prev,
.op-carousel__next {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--op-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: .85rem;
  color: var(--op-text);
  transition: background .2s;
}
.op-carousel__prev:hover, .op-carousel__next:hover { background: #fff; }
.op-carousel__prev { left: 6px; }
.op-carousel__next { right: 6px; }

/* ========================================
   Heading Decorations (19 styles)
   Usage: <h2 class="op-heading op-heading--border-left">
======================================== */
.op-heading { margin: 28px 0 16px; font-size: 1.2rem; font-weight: 700; color: var(--op-text-dark); }

/* 1 */ .op-heading--border-left { border-left: 4px solid var(--op-primary); padding-left: 12px; }
/* 2 */ .op-heading--border-bottom { border-bottom: 3px solid var(--op-primary); padding-bottom: 8px; }
/* 3 */ .op-heading--border-left-bottom { border-left: 4px solid var(--op-primary); border-bottom: 2px solid var(--op-border); padding: 0 0 8px 12px; }
/* 4 */ .op-heading--double-bottom { border-bottom: 6px double var(--op-primary); padding-bottom: 8px; }
/* 5 */ .op-heading--dotted-bottom { border-bottom: 3px dotted var(--op-primary); padding-bottom: 8px; }
/* 6 */ .op-heading--background { background: var(--op-primary); color: #fff; padding: 10px 16px; border-radius: 4px; }
/* 7 */ .op-heading--background-round { background: var(--op-primary); color: #fff; padding: 10px 20px; border-radius: 30px; }
/* 8 */ .op-heading--gradient { background: linear-gradient(135deg, var(--op-primary), #43b0f1); color: #fff; padding: 10px 16px; border-radius: 4px; }
/* 9 */ .op-heading--gradient-underline { border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--op-primary), #43b0f1) 1; padding-bottom: 8px; }
/* 10 */ .op-heading--stripe {
  background: repeating-linear-gradient(-45deg, var(--op-primary-light), var(--op-primary-light) 4px, transparent 4px, transparent 8px);
  padding: 12px 16px;
  border-left: 4px solid var(--op-primary);
}
/* 11 */ .op-heading--balloon {
  position: relative;
  background: var(--op-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
}
.op-heading--balloon::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 24px;
  border: 8px solid transparent;
  border-top-color: var(--op-primary);
  border-bottom: 0;
}
/* 12 */ .op-heading--ribbon {
  position: relative;
  background: var(--op-primary);
  color: #fff;
  padding: 10px 20px 10px 24px;
  margin-left: -12px;
  border-radius: 0 4px 4px 0;
}
.op-heading--ribbon::before {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  border: 4px solid transparent;
  border-top-color: #033d63;
  border-right-color: #033d63;
}
/* 13 */ .op-heading--speech {
  position: relative;
  border: 2px solid var(--op-primary);
  padding: 10px 16px;
  border-radius: 8px;
}
.op-heading--speech::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 20px;
  border: 10px solid transparent;
  border-top-color: var(--op-primary);
  border-bottom: 0;
}
/* 14 */ .op-heading--marker {
  background: linear-gradient(transparent 60%, #fef08a 60%);
  display: inline-block;
  padding: 0 4px;
}
/* 15 */ .op-heading--stitch {
  border: 2px dashed var(--op-primary);
  padding: 10px 16px;
  border-radius: 6px;
  box-shadow: 0 0 0 4px var(--op-bg), 0 0 0 6px var(--op-primary);
}
/* 16 */ .op-heading--clip {
  position: relative;
  background: var(--op-bg);
  padding: 12px 16px 12px 40px;
  border-radius: 4px;
}
.op-heading--clip::before {
  content: '';
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--op-primary);
  border-radius: 50%;
}
/* 17 */ .op-heading--bracket {
  padding: 8px 16px;
  border-top: 2px solid var(--op-primary);
  border-bottom: 2px solid var(--op-primary);
}
/* 18 */ .op-heading--slash {
  display: flex;
  align-items: center;
  gap: 12px;
}
.op-heading--slash::before,
.op-heading--slash::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--op-primary), transparent);
}
.op-heading--slash::after { background: linear-gradient(90deg, transparent, var(--op-primary)); }
/* 19 */ .op-heading--shadow-lift {
  background: var(--op-bg-card);
  padding: 12px 16px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  border-left: 4px solid var(--op-primary);
}

/* ========================================
   Additional Widget Areas (記事内)
======================================== */
.op-widget-before-h2,
.op-widget-before-h3 {
  margin: 24px 0;
  padding: 16px;
  background: var(--op-bg);
  border-radius: var(--op-radius);
}

/* ========================================
   Responsive additions
======================================== */
@media (max-width: 900px) {
  .op-balloon { gap: 8px; }
  .op-balloon__bubble { max-width: 90%; }
  .op-review__header { flex-direction: column; }
  .op-review__pros-cons { grid-template-columns: 1fr; }
  .op-link-card { flex-direction: column; }
  .op-link-card__img { width: 100%; }
}
@media (max-width: 600px) {
  .op-hero__content h1 { font-size: 1.4rem; }
  .op-share__btn span { display: none; }
  .op-heading--ribbon { margin-left: 0; }
}

/* ========================================
   Sitemap
======================================== */
.op-sitemap__count {
  font-size: .88rem;
  color: var(--op-text-light);
  margin-bottom: 16px;
}
.op-sitemap__section {
  margin-bottom: 24px;
}
.op-sitemap__section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--op-text-dark);
  padding: 8px 14px;
  background: var(--op-primary-light);
  border-left: 4px solid var(--op-primary);
  border-radius: 0 var(--op-radius) var(--op-radius) 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.op-sitemap__items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.op-sitemap__item {
  border-bottom: 1px solid var(--op-border-light);
}
.op-sitemap__item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  color: var(--op-text);
  text-decoration: none;
  transition: background .15s, padding-left .15s;
}
.op-sitemap__item a:hover {
  background: var(--op-primary-light);
  padding-left: 16px;
  color: var(--op-primary);
}
.op-sitemap__item-title {
  flex: 1;
  font-size: .9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.op-sitemap__item-date {
  font-size: .78rem;
  color: var(--op-text-light);
  flex-shrink: 0;
  margin-left: 12px;
}

/* ========================================
   フッター
======================================== */
.op-footer {
  background: var(--op-bg-white);
  border-top: 1px solid var(--op-border);
  padding: 24px 20px;
  text-align: center;
}
.op-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}
.op-footer__menu {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.op-footer__menu li a {
  color: var(--op-text-light);
  font-size: .85rem;
  padding: 4px 12px;
  text-decoration: none;
}
.op-footer__menu li a:hover { color: var(--op-primary); }
.op-footer__copy {
  font-size: .8rem;
  color: var(--op-text-light);
}

/* ========================================
   フリースペース
======================================== */
.op-freespace {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 20px;
}
.op-freespace--header { background: var(--op-bg); }
.op-freespace--hero { background: var(--op-bg); }
.op-freespace--footer { background: var(--op-bg); }
.op-freespace--title,
.op-freespace--h2,
.op-freespace--h3,
.op-freespace--h4,
.op-freespace--end {
  margin: 16px 0;
}

/* ========================================
   オーバーレイ広告(複数スタイル対応)
======================================== */
.op-overlay {
  position: fixed;
  z-index: 9999;
  transition: transform .4s ease, opacity .4s ease;
  opacity: 0;
  pointer-events: none;
}
.op-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.op-overlay.is-closed { display: none !important; }

/* 下部バー */
.op-overlay--bottom-bar {
  left: 0; right: 0; bottom: 0;
  padding: 10px 16px;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
  transform: translateY(100%);
}
.op-overlay--bottom-bar.is-visible { transform: translateY(0); }

/* 上部バー */
.op-overlay--top-bar {
  left: 0; right: 0; top: 0;
  padding: 10px 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
  transform: translateY(-100%);
}
.op-overlay--top-bar.is-visible { transform: translateY(0); }

/* 中央ポップアップ */
.op-overlay--popup {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  max-width: 480px; width: 90%;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.op-overlay--popup.is-visible { transform: translate(-50%, -50%) scale(1); }
.op-overlay--popup ~ .op-overlay-backdrop { display: none; }
.op-overlay--popup.is-visible ~ .op-overlay-backdrop,
body.op-overlay-popup-open::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

/* 右下コーナー */
.op-overlay--corner-br {
  bottom: 20px; right: 20px;
  max-width: 320px; width: 90%;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transform: translateY(20px);
}
.op-overlay--corner-br.is-visible { transform: translateY(0); }

/* 左下コーナー */
.op-overlay--corner-bl {
  bottom: 20px; left: 20px;
  max-width: 320px; width: 90%;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transform: translateY(20px);
}
.op-overlay--corner-bl.is-visible { transform: translateY(0); }

/* 右サイドフロート */
.op-overlay--side-right {
  top: 50%; right: 0;
  transform: translateX(100%) translateY(-50%);
  max-width: 280px; width: auto;
  padding: 12px 16px;
  border-radius: 10px 0 0 10px;
  box-shadow: -2px 0 16px rgba(0,0,0,0.15);
}
.op-overlay--side-right.is-visible { transform: translateX(0) translateY(-50%); }

/* 左サイドフロート */
.op-overlay--side-left {
  top: 50%; left: 0;
  transform: translateX(-100%) translateY(-50%);
  max-width: 280px; width: auto;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  box-shadow: 2px 0 16px rgba(0,0,0,0.15);
}
.op-overlay--side-left.is-visible { transform: translateX(0) translateY(-50%); }

/* 共通パーツ */
.op-overlay__close {
  position: absolute; top: 4px; right: 8px;
  background: none; border: none; color: inherit;
  font-size: 22px; line-height: 1; cursor: pointer;
  opacity: .7; padding: 4px 8px; z-index: 1;
}
.op-overlay__close:hover { opacity: 1; }
.op-overlay__body {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; max-width: 1200px; margin: 0 auto;
}
.op-overlay__link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.op-overlay__link:hover { opacity: .9; color: inherit; }
.op-overlay__img { max-height: 50px; width: auto; flex-shrink: 0; }
.op-overlay__text { font-size: .9rem; font-weight: 600; }
/* ポップアップ/コーナーの場合は縦並び */
.op-overlay--popup .op-overlay__body,
.op-overlay--corner-br .op-overlay__body,
.op-overlay--corner-bl .op-overlay__body {
  flex-direction: column; text-align: center;
}
.op-overlay--popup .op-overlay__img,
.op-overlay--corner-br .op-overlay__img,
.op-overlay--corner-bl .op-overlay__img {
  max-height: 120px; max-width: 100%;
}
/* PC/SP切替 */
.op-overlay--pc-only { }
.op-overlay--sp-only { display: none; }
@media (max-width: 768px) {
  .op-overlay--pc-only { display: none !important; }
  .op-overlay--sp-only { display: block; }
  .op-overlay__text { font-size: .8rem; }
  .op-overlay__img { max-height: 40px; }
  .op-overlay--bottom-bar, .op-overlay--top-bar { padding: 8px 12px; }
  .op-overlay--corner-br, .op-overlay--corner-bl { bottom: 10px; max-width: 260px; }
  .op-overlay--side-right, .op-overlay--side-left { max-width: 200px; }
}

/* ========================================
   追従サイドバー
======================================== */
.op-sidebar-sticky {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* ========================================
   サイドバー内ウィジェット縮小
======================================== */
.op-sidebar .sc-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.op-sidebar .sc-card-img {
  padding-top: 90%;
}
.op-sidebar .sc-card-body {
  padding: 4px;
}
.op-sidebar .sc-card-title {
  font-size: 10px;
  height: 2.4em;
}
.op-sidebar .sc-card-price {
  font-size: 10px;
}
.op-sidebar .sc-ranking-item {
  gap: 6px;
  padding: 8px 6px;
}
.op-sidebar .sc-ranking-num {
  font-size: .75rem;
  width: 22px;
  height: 22px;
  min-width: 22px;
}
.op-sidebar .sc-ranking-thumb {
  width: 44px;
  height: 62px;
}
.op-sidebar .sc-ranking-title {
  font-size: 11px;
  line-height: 1.3;
}
.op-sidebar .sc-ranking-meta {
  font-size: 10px;
}
.op-sidebar .sc-ranking-price {
  font-size: 10px;
}
.op-sidebar .sc-list-item a {
  gap: 8px;
  padding: 8px;
}
.op-sidebar .sc-list-item img {
  width: 44px;
  height: 62px;
}
.op-sidebar .sc-list-title {
  font-size: 11px;
}
.op-sidebar .sc-list-meta,
.op-sidebar .sc-list-price {
  font-size: 10px;
}
.op-sidebar .sc-wide-item {
  grid-template-columns: 80px 1fr;
  gap: 8px;
}
.op-sidebar .sc-wide-img {
  width: 80px;
  min-height: 70px;
}
.op-sidebar .sc-wide-title {
  font-size: 11px;
}
.op-sidebar .sc-wide-meta,
.op-sidebar .sc-wide-price {
  font-size: 10px;
}
.op-sidebar .sc-compact {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.op-sidebar .sc-compact .sc-card-img {
  padding-top: 90%;
}
.op-sidebar .sc-featured-main a {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
}
.op-sidebar .sc-featured-sub {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.op-sidebar .sc-featured-title {
  font-size: 13px;
}
.op-sidebar .sc-magazine {
  grid-template-columns: 1fr;
}
.op-sidebar .sc-tile {
  columns: 2;
  column-gap: 6px;
}
.op-sidebar .sc-tile .sc-card {
  margin-bottom: 6px;
}
.op-sidebar .sc-banner-item {
  height: 90px;
}
.op-sidebar .sc-slider .sc-card {
  flex: 0 0 100px;
}
.op-sidebar .sc-table th,
.op-sidebar .sc-table td {
  padding: 6px 8px;
  font-size: 11px;
}
.op-sidebar .sc-table-thumb {
  width: 32px;
  height: 44px;
}

/* ========================================
   List Designs (8 styles)
   Usage: <ul class="op-list op-list--check">
======================================== */
.op-list { list-style: none; margin: 16px 0; padding: 0; }
.op-list li {
  position: relative;
  padding: 6px 0 6px 28px;
  line-height: 1.7;
  border-bottom: 1px solid var(--op-border-light);
}
.op-list li:last-child { border-bottom: none; }
.op-list li::before {
  position: absolute;
  left: 0;
  top: 8px;
  font-size: .9rem;
  line-height: 1;
}
/* 1: checkmark */
.op-list--check li::before { content: '\2713'; color: #28a745; font-weight: 700; }
/* 2: arrow */
.op-list--arrow li::before { content: '\25b6'; color: var(--op-primary); font-size: .7rem; top: 10px; }
/* 3: circle */
.op-list--circle li::before { content: '\25cf'; color: var(--op-primary); font-size: .6rem; top: 11px; }
/* 4: star */
.op-list--star li::before { content: '\2605'; color: #f39c12; }
/* 5: square */
.op-list--square li::before { content: '\25a0'; color: var(--op-primary); font-size: .6rem; top: 11px; }
/* 6: number (CSS counter) */
.op-list--number { counter-reset: op-num; }
.op-list--number li { padding-left: 32px; }
.op-list--number li::before {
  content: counter(op-num);
  counter-increment: op-num;
  background: var(--op-primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  top: 7px;
}
/* 7: dash */
.op-list--dash li::before { content: '\2014'; color: var(--op-text-light); }
/* 8: plus */
.op-list--plus li::before { content: '\002b'; color: var(--op-accent); font-weight: 700; }
/* FAQ enhanced styling for article body */
.op-article-body .op-list { margin: 12px 0 16px; }

/* ========================================
   Page Template
======================================== */
.op-page { max-width: 900px; margin: 0 auto; }
.op-page__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--op-text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--op-primary);
}
.op-page__body {
  background: var(--op-bg-card);
  border-radius: var(--op-radius-lg);
  padding: 28px;
  line-height: 1.9;
  box-shadow: var(--op-shadow);
}
.op-page__body h2 { font-size: 1.2rem; border-left: 4px solid var(--op-primary); padding-left: 12px; margin: 24px 0 12px; font-weight: 700; }
.op-page__body h3 { font-size: 1.05rem; margin: 20px 0 10px; font-weight: 600; }
.op-page__body p { margin-bottom: 14px; }
.op-page__body ul, .op-page__body ol { margin: 10px 0 14px 24px; }

/* ========================================
   Lightbox (サンプル画像拡大)
======================================== */
.op-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.op-lightbox-overlay.is-open { display: flex; }
.op-lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.op-lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}
.op-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  transition: background .2s;
}
.op-lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.op-lightbox-prev { left: 16px; }
.op-lightbox-next { right: 16px; }
/* サンプル画像クリック可能表示 */
.op-sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.op-sample-grid img {
  border-radius: 4px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.op-sample-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ========================================
   Sample Video Player
======================================== */
.op-sample-video {
  margin-bottom: 20px;
}
.op-sample-video video {
  width: 100%;
  max-width: 640px;
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
}
.op-sample-video iframe {
  width: 100%;
  max-width: 560px;
  height: 360px;
  border: none;
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
}
.op-sample-video__label {
  font-size: .85rem;
  color: var(--op-text-light);
  margin-top: 6px;
}

/* ========================================
   YouTube Embed + Overlay + Cushion
======================================== */
.op-youtube-wrap {
  margin-bottom: 20px;
}
.op-youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  background: #000;
}
.op-youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.op-youtube-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 40px 16px 16px;
  transition: opacity .3s, transform .3s;
  z-index: 10;
  cursor: pointer;
}
.op-youtube-overlay.is-hidden {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(10px);
}
.op-youtube-overlay__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: all .3s;
  box-shadow: 0 2px 12px rgba(255,68,68,.4);
}
.op-youtube-overlay__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,68,68,.6);
  color: #fff;
}
.op-youtube-overlay__text::before {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 6px;
}
.op-youtube-cushion-link {
  margin-top: 12px;
  text-align: center;
}
.op-btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: all .3s;
  box-shadow: 0 4px 16px rgba(255,0,0,.3);
}
.op-btn-youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,0,0,.5);
  color: #fff;
}
.op-btn-youtube i {
  font-size: 20px;
}

/* ========================================
   Tag Widget (Cloud & List)
======================================== */
.op-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
}
.op-tag-cloud__item {
  display: inline-block;
  padding: 3px 10px;
  background: var(--op-primary-light);
  color: var(--op-primary);
  border-radius: 20px;
  text-decoration: none;
  line-height: 1.5;
  transition: background .2s, color .2s, transform .15s;
  white-space: nowrap;
}
.op-tag-cloud__item:hover {
  background: var(--op-primary);
  color: #fff;
  transform: translateY(-1px);
}
.op-tag-cloud__item span {
  font-size: .8em;
  opacity: .7;
  margin-left: 2px;
}
.op-tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.op-tag-list li {
  border-bottom: 1px solid var(--op-border-light);
}
.op-tag-list li:last-child {
  border-bottom: none;
}
.op-tag-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  color: var(--op-text);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s, padding-left .2s;
}
.op-tag-list li a:hover {
  color: var(--op-primary);
  padding-left: 8px;
}
.op-tag-list li a span {
  font-size: .8em;
  color: var(--op-text-light);
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .op-wrapper { flex-direction: column; }
  .op-sidebar { width: 100%; border-left: none; border-top: 1px solid var(--op-border); order: 2; }
  .op-main { order: 1; }
  .op-header__nav { display: none; }
  .op-hamburger { display: flex; }
  .op-hero h1 { font-size: 1.5rem; }
  .op-hero__buttons { gap: 6px; }
  .op-hero__btn { padding: 8px 16px; font-size: .85rem; }
  .op-global-menu__list { flex-direction: column; align-items: stretch; }
  .op-global-menu__list li a { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .op-content { padding: 16px 12px; }
  .op-sample-grid { grid-template-columns: repeat(3, 1fr); }
}
