/*
Theme Name: Jinrai
Theme URI: https://jinrai.co.jp
Author: 株式会社仁頼
Author URI: https://jinrai.co.jp
Description: 株式会社仁頼コーポレートサイト用カスタムWordPressテーマ。和テイストのデザインシステム、屏風オープニングアニメーション、風神雷神ヒーロービジュアル対応。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jinrai
Tags: custom-menu, custom-logo, featured-images, translation-ready
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* =========================================
   Japanese Aesthetic Design System
   ========================================= */

/* --- CSS Variables --- */
:root {
  --sumi: #1a1a1a;
  --sumi-light: #2d2d2d;
  --kincha: #c49a6c;
  --kincha-light: #d4af7f;
  --gold: #b8860b;
  --gold-light: #daa520;
  --shironeri: #f3efe0;
  --shironeri-dark: #e8e2cf;
  --washi: #faf6eb;
  --aka: #b33b24;
  --aka-dark: #8b2500;
  --ai: #264348;
  --ai-light: #3a6b73;
  --matcha: #6b7e5e;
  --uguisu: #928c36;
  --font-gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --section-padding: 100px 0;
  --container-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-gothic); color: var(--sumi); background-color: var(--washi); line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition-smooth); }
ul, ol { list-style: none; }

/* --- WP Admin Bar adjustment --- */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* --- Fusuma (襖) Opening Animation --- */
.fusuma-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10000; pointer-events: auto; overflow: hidden;
}
.fusuma-overlay.opened { pointer-events: none; }

/* 鴨居・敷居（上下の横木） */
.fusuma-kamoi {
  position: absolute; left: 0; width: 100%; height: 18px;
  background: linear-gradient(180deg, #8B6914 0%, #a07830 30%, #6b4c12 100%);
  z-index: 4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.fusuma-kamoi::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, rgba(255,215,0,0.2), rgba(255,215,0,0.4), rgba(255,215,0,0.2));
}
.fusuma-kamoi-top { top: 0; }
.fusuma-kamoi-top::after { bottom: 0; }
.fusuma-kamoi-bottom { bottom: 0; }
.fusuma-kamoi-bottom::after { top: 0; }

/* レイヤー共通 */
.fusuma-layer {
  position: absolute; top: 18px; left: 0; width: 100%;
  height: calc(100% - 36px); display: flex;
}

.fusuma-layer-back { z-index: 1; }
.fusuma-layer-front { z-index: 2; }

/* 各襖パネル共通 */
.fusuma-panel {
  width: 50%; height: 100%; position: relative; flex-shrink: 0;
}

/* 襖の表面 */
.fusuma-panel-surface {
  width: 100%; height: 100%; position: relative;
  background: linear-gradient(180deg, #e8dcc8 0%, #ddd0b8 25%, #d5c8a8 50%, #ddd0b8 75%, #e8dcc8 100%);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.08);
}
/* 和紙テクスチャ */
.fusuma-panel-surface::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(196,154,108,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(196,154,108,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(196,154,108,0.05) 0%, transparent 50%);
  pointer-events: none;
}
/* 縁（ふち）の枠 */
.fusuma-panel-surface::after {
  content: ''; position: absolute;
  top: 20px; left: 16px; right: 16px; bottom: 20px;
  border: 1px solid rgba(139,105,20,0.12);
  pointer-events: none;
}

/* 引手（ひきて） */
.fusuma-hikite {
  position: absolute; top: 50%; width: 28px; height: 28px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #8B6914 0%, #6b4c12 60%, #4a3510 100%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,215,0,0.3);
  z-index: 3;
}
.fusuma-hikite::after {
  content: ''; position: absolute;
  top: 4px; left: 4px; right: 4px; bottom: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,215,0,0.3), transparent 60%);
  border: 1px solid rgba(255,215,0,0.15);
}

/* 引手の位置 */
.fusuma-front-left .fusuma-hikite { right: 30px; }
.fusuma-front-right .fusuma-hikite { left: 30px; }
.fusuma-back-left .fusuma-hikite { right: 30px; }
.fusuma-back-right .fusuma-hikite { left: 30px; }

/* パネル間の影 */
.fusuma-front-left .fusuma-panel-surface { box-shadow: 4px 0 12px rgba(0,0,0,0.15), inset 0 0 40px rgba(0,0,0,0.08); }
.fusuma-front-right .fusuma-panel-surface { box-shadow: -4px 0 12px rgba(0,0,0,0.15), inset 0 0 40px rgba(0,0,0,0.08); }
.fusuma-back-left .fusuma-panel-surface { box-shadow: 2px 0 8px rgba(0,0,0,0.1), inset 0 0 40px rgba(0,0,0,0.08); }
.fusuma-back-right .fusuma-panel-surface { box-shadow: -2px 0 8px rgba(0,0,0,0.1), inset 0 0 40px rgba(0,0,0,0.08); }

/* 奥レイヤーは少し暗く */
.fusuma-layer-back .fusuma-panel-surface {
  background: linear-gradient(180deg, #ddd0b8 0%, #d0c4a0 25%, #c8b890 50%, #d0c4a0 75%, #ddd0b8 100%);
  filter: brightness(0.92);
}

/* スライドアニメーション */
.fusuma-front-left { transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1); }
.fusuma-front-right { transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1); }
.fusuma-back-left { transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.25s; }
.fusuma-back-right { transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.25s; }

.fusuma-overlay.opened .fusuma-front-left { transform: translateX(-100%); }
.fusuma-overlay.opened .fusuma-front-right { transform: translateX(100%); }
.fusuma-overlay.opened .fusuma-back-left { transform: translateX(-100%); }
.fusuma-overlay.opened .fusuma-back-right { transform: translateX(100%); }

/* 鴨居も一緒にフェードアウト */
.fusuma-overlay.opened .fusuma-kamoi {
  opacity: 0;
  transition: opacity 0.6s ease 1.0s;
}

/* ロゴ */
.fusuma-center-content {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001; text-align: center;
  opacity: 1; transition: opacity 0.6s ease;
  pointer-events: none;
}
.fusuma-center-content.fade-out { opacity: 0; }
.fusuma-logo-text {
  font-family: var(--font-mincho); font-size: 5rem;
  color: var(--sumi); letter-spacing: 0.3em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.fusuma-logo-sub {
  font-family: var(--font-gothic); font-size: 0.9rem;
  color: var(--sumi); letter-spacing: 0.5em;
  margin-top: 10px; opacity: 0.8;
}

/* --- Container --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* --- Header / Navigation --- */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(250, 246, 235, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--shironeri-dark); transition: var(--transition-smooth); }
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 50px; width: auto; }
.logo-text { font-family: var(--font-mincho); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.15em; color: var(--sumi); }
.logo-sub { font-size: 0.6rem; color: var(--kincha); letter-spacing: 0.2em; display: block; margin-top: -2px; }
.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; color: var(--sumi); position: relative; padding: 4px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--kincha); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.nav-link-en { display: block; font-size: 0.6rem; color: var(--kincha); letter-spacing: 0.15em; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--sumi); color: var(--washi); padding: 10px 24px; font-size: 0.85rem; letter-spacing: 0.1em; transition: var(--transition-smooth); }
.nav-cta:hover { background: var(--kincha); }

/* Dropdown menu */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--sumi); min-width: 260px; padding: 12px 0;
  border-radius: 0 0 4px 4px; box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
  z-index: 100;
}
.nav-dropdown-wrap:hover .nav-dropdown { opacity: 1; visibility: visible; }
.nav-dropdown li { list-style: none; }
.nav-dropdown li a {
  display: block; padding: 10px 24px; font-size: 0.82rem; color: var(--washi);
  letter-spacing: 0.05em; transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav-dropdown li a:hover { background: rgba(196,154,108,0.15); color: var(--kincha-light); }

/* Mobile nav accordion */
.mobile-nav-accordion { display: flex; flex-direction: column; }
.mobile-nav-parent { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav-toggle { font-size: 1.2rem; margin-left: 8px; transition: transform 0.3s; cursor: pointer; min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav-accordion.open .mobile-nav-toggle { transform: rotate(45deg); }
.mobile-nav-children {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  display: flex; flex-direction: column; padding-left: 16px;
}
.mobile-nav-accordion.open .mobile-nav-children { max-height: 600px; }
.mobile-nav-children a { font-size: 0.85rem; padding: 8px 0; opacity: 0.8; border-bottom: none; }
.mobile-nav-children a:hover { opacity: 1; color: var(--kincha-light); }

/* Hamburger menu */
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 12px; z-index: 1100; background: none; border: none; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; }
.hamburger span { width: 24px; height: 2px; background: var(--sumi); transition: var(--transition-smooth); display: block; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --- Hero Section (金屏風 Gold Byobu Style) --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(180deg, #d4a96a 0%, #c49a6c 20%, #b8860b 50%, #a07830 80%, #8b6914 100%); }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(ellipse at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 70%, rgba(218, 165, 32, 0.12) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.15) 0%, transparent 80%); z-index: 1; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 120px; background: linear-gradient(to top, var(--washi), transparent); z-index: 5; }
/* 金箔テクスチャ + 屏風パネル枠線 */
.hero .hero-inner::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.08) 0px, rgba(0,0,0,0.08) 1px, transparent 1px, transparent calc(100% / 6)), repeating-linear-gradient(0deg, rgba(255,215,0,0.04) 0px, rgba(255,215,0,0.04) 1px, transparent 1px, transparent 400px); pointer-events: none; z-index: 0; }
/* 金箔のきらめき */
.hero .hero-content::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.08) 0%, transparent 40%), radial-gradient(circle at 75% 60%, rgba(255,255,255,0.06) 0%, transparent 35%), radial-gradient(circle at 50% 80%, rgba(255,255,255,0.04) 0%, transparent 30%); pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; max-width: var(--container-width); padding: 120px 20px 80px; width: 100%; }
.hero-content-center { max-width: 720px; text-align: center; margin: 0 auto; }

/* --- 風神雷神 背景配置 (雷神:上, 風神:下) --- */
.hero-god { position: absolute; z-index: 2; opacity: 0; transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); pointer-events: none; }
.hero-god.visible { opacity: 1; }
.hero-god-img { width: 100%; height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,0.2)); }
.hero-god-raijin { right: 3%; top: 5%; width: var(--god-size-pc, 28%); animation: floatRaijin 5s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
.hero-god-fujin { left: 3%; bottom: 8%; width: var(--god-size-pc, 28%); animation: floatFujin 5.5s cubic-bezier(0.37, 0, 0.63, 1) infinite; }
@keyframes floatFujin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatRaijin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }

/* --- Lightning Effect --- */
.hero-lightning { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.6) 0%, transparent 70%); }
.hero-lightning.flash { animation: lightningFlash 0.15s ease-out; }
@keyframes lightningFlash { 0% { opacity: 0.7; } 50% { opacity: 0.3; } 100% { opacity: 0; } }
.hero-lightning-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

.hero-catch { font-family: var(--font-mincho); font-size: 2.4rem; font-weight: 700; line-height: 1.6; letter-spacing: 0.08em; color: var(--sumi); margin-bottom: 40px; opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s; text-shadow: 0 1px 8px rgba(196,154,108,0.3); }
.hero-catch.visible { opacity: 1; transform: translateY(0); }
.hero-catch .accent { color: #fff; position: relative; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-desc { font-size: 1rem; line-height: 2; color: rgba(26,26,26,0.85); margin-bottom: 40px; opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s; background: rgba(250,246,235,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 20px 28px; border-radius: 8px; display: inline-block; }
.hero-desc.visible { opacity: 1; transform: translateY(0); }
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; opacity: 0; transform: translateY(20px); transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s; }
.hero-cta-group.visible { opacity: 1; transform: translateY(0); }
.btn-hero-secondary { border-color: var(--sumi); color: var(--sumi); }
.btn-hero-secondary:hover { background: var(--sumi); color: var(--washi); }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 36px; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.1em; cursor: pointer; border: none; transition: var(--transition-smooth); position: relative; overflow: hidden; }
.btn-primary { background: var(--sumi); color: var(--washi); }
.btn-primary:hover { background: var(--kincha); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196, 154, 108, 0.3); }
.btn-secondary { background: transparent; color: var(--sumi); border: 2px solid var(--sumi); }
.btn-secondary:hover { background: var(--sumi); color: var(--washi); transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--kincha), var(--gold-light)); color: #fff; font-weight: 700; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196, 154, 108, 0.4); }
.btn-large { padding: 20px 48px; font-size: 1.1rem; }

/* --- Section Commons --- */
.section { padding: var(--section-padding); position: relative; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-en { font-family: var(--font-gothic); font-size: 0.75rem; color: var(--kincha); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-family: var(--font-mincho); font-size: 2rem; font-weight: 700; letter-spacing: 0.12em; color: var(--sumi); position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 40px; height: 2px; background: var(--kincha); margin: 16px auto 0; }
.section-desc { font-size: 0.95rem; color: #666; max-width: 600px; margin: 20px auto 0; line-height: 1.9; }

/* --- Scroll Reveal (smoother) --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Strengths Section --- */
.strengths { background: var(--shironeri); }
.strengths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.strength-card { background: var(--washi); padding: 40px 30px; text-align: center; position: relative; transition: var(--transition-smooth); border: 1px solid transparent; }
.strength-card:hover { transform: translateY(-5px); border-color: var(--kincha); box-shadow: 0 15px 40px rgba(0,0,0,0.08); }
.strength-number { font-family: var(--font-mincho); font-size: 3rem; color: var(--kincha); opacity: 0.3; position: absolute; top: 15px; left: 20px; line-height: 1; }
.strength-icon { font-size: 2.5rem; margin-bottom: 20px; }
.strength-title { font-family: var(--font-mincho); font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--sumi); }
.strength-text { font-size: 0.9rem; color: #666; line-height: 1.8; }

/* --- Services Section --- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.services-grid-vertical { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { display: flex; background: #fff; border: 1px solid var(--shironeri-dark); overflow: hidden; transition: var(--transition-smooth); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); border-color: var(--kincha); }
.service-card-icon { width: 120px; min-height: 100%; background: var(--sumi); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.service-card-icon span { font-size: 2.5rem; }
/* Vertical card style */
.service-card-v { flex-direction: column; text-align: center; }
.service-card-icon-top { width: 100%; height: 100px; background: var(--sumi); display: flex; align-items: center; justify-content: center; }
.service-card-icon-top span { font-size: 2.5rem; }
.service-card-image-top { height: 140px; padding: 0; overflow: hidden; }
.service-card-image-top img { width: 100%; height: 100%; object-fit: cover; }
.service-card-v .service-card-body { padding: 24px 20px; }
.service-card-body { padding: 30px; flex: 1; }
.service-card-title { font-family: var(--font-mincho); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--sumi); letter-spacing: 0.05em; }
.service-card-en { font-size: 0.7rem; color: var(--kincha); letter-spacing: 0.15em; margin-bottom: 12px; }
.service-card-text { font-size: 0.88rem; color: #666; line-height: 1.8; }
.service-card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.85rem; color: var(--kincha); font-weight: 600; }
.service-card-link:hover { gap: 10px; color: var(--gold); }

/* --- Results / Numbers Section --- */
.results { background: var(--sumi); color: var(--washi); text-align: center; }
.results .section-en { color: var(--kincha-light); }
.results .section-title { color: var(--washi); }
.results .section-title::after { background: var(--kincha-light); }
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.result-item { padding: 30px 20px; border: 1px solid rgba(196, 154, 108, 0.2); }
.result-number { font-family: var(--font-mincho); font-size: 3rem; color: var(--kincha-light); font-weight: 700; line-height: 1.2; }
.result-number span { font-size: 1.2rem; }
.result-label { font-size: 0.85rem; margin-top: 8px; opacity: 0.8; letter-spacing: 0.05em; }

/* --- Flow Section --- */
.flow-steps { display: flex; align-items: flex-start; gap: 0; position: relative; max-width: 900px; margin: 0 auto; }
.flow-step { flex: 1; text-align: center; padding: 0 20px; position: relative; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; top: 30px; right: -10px; width: 20px; height: 2px; background: var(--kincha); }
.flow-step-number { width: 60px; height: 60px; background: var(--sumi); color: var(--washi); font-family: var(--font-mincho); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; border-radius: 50%; }
.flow-step-title { font-family: var(--font-mincho); font-size: 1rem; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.05em; }
.flow-step-text { font-size: 0.85rem; color: #666; line-height: 1.7; }

/* --- Testimonials / Voice Section --- */
.voice { background: var(--shironeri); }
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.voice-card { background: var(--washi); padding: 36px 30px; position: relative; border-left: 3px solid var(--kincha); }
.voice-card-quote { font-size: 0.92rem; line-height: 1.9; color: var(--sumi); margin-bottom: 20px; position: relative; padding-left: 20px; }
.voice-card-quote::before { content: '\201C'; font-family: var(--font-mincho); font-size: 3rem; color: var(--kincha); opacity: 0.3; position: absolute; top: -15px; left: -5px; line-height: 1; }
.voice-card-author { font-size: 0.8rem; color: #888; }
.voice-card-author strong { color: var(--sumi); font-weight: 600; }

/* --- Floating Banner --- */
.jinrai-floating-banner {
  position: fixed;
  z-index: 9990;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.jinrai-floating-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.jinrai-banner-bottom-right { bottom: 20px; right: 20px; }
.jinrai-banner-bottom-left { bottom: 20px; left: 20px; }
.jinrai-banner-bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%) translateY(30px); }
.jinrai-banner-bottom-center.is-visible { transform: translateX(-50%) translateY(0); }
.jinrai-floating-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.jinrai-floating-banner a:hover img {
  transform: scale(1.02);
}
.jinrai-banner-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  background: var(--sumi);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s ease;
  padding: 0;
}
.jinrai-banner-close:hover {
  background: var(--kincha);
}
@media (max-width: 768px) {
  .jinrai-banner-sp-hide { display: none !important; }
  .jinrai-floating-banner { max-width: 260px !important; }
  .jinrai-banner-bottom-right { right: 10px; bottom: 10px; }
  .jinrai-banner-bottom-left { left: 10px; bottom: 10px; }
}

/* --- CTA Section --- */
.cta-section { background: linear-gradient(135deg, var(--sumi) 0%, #2a2420 100%); color: var(--washi); text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 50%, rgba(196, 154, 108, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(196, 154, 108, 0.1) 0%, transparent 50%); }
.cta-content { position: relative; z-index: 1; }
.cta-title { font-family: var(--font-mincho); font-size: 2rem; letter-spacing: 0.1em; margin-bottom: 16px; color: #fff; }
.cta-text { font-size: 0.95rem; margin-bottom: 32px; line-height: 1.8; color: rgba(255,255,255,1); }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* --- Footer (障子風) --- */
.footer { background: var(--sumi); color: var(--washi); padding: 60px 0 0; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 25%), repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 25%); pointer-events: none; }
.footer::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--kincha), var(--gold-light), var(--kincha)); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; max-width: var(--container-width); margin: 0 auto; padding: 0 20px 40px; position: relative; }
.footer-brand { margin-bottom: 20px; }
.footer-logo-text { font-family: var(--font-mincho); font-size: 1.5rem; letter-spacing: 0.15em; margin-bottom: 4px; }
.footer-logo-sub { font-size: 0.7rem; color: var(--kincha); letter-spacing: 0.2em; }
.footer-desc { font-size: 0.85rem; opacity: 0.7; line-height: 1.8; margin-top: 16px; }
.footer-heading { font-family: var(--font-mincho); font-size: 0.95rem; letter-spacing: 0.1em; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--kincha); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; opacity: 0.7; transition: var(--transition-smooth); }
.footer-links a:hover { opacity: 1; color: var(--kincha-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px; text-align: center; }
.footer-copyright { font-size: 0.75rem; opacity: 0.5; letter-spacing: 0.1em; }

/* --- WP Footer Nav (widget/menu) --- */
.footer .menu { list-style: none; padding: 0; margin: 0; }
.footer .menu li { margin-bottom: 10px; }
.footer .menu a { font-size: 0.85rem; opacity: 0.7; transition: var(--transition-smooth); }
.footer .menu a:hover { opacity: 1; color: var(--kincha-light); }

/* --- Page Header (sub pages) --- */
.page-header { background: var(--sumi); color: var(--washi); padding: 110px 0 40px; text-align: center; position: relative; overflow: hidden; }
.page-content:first-child, .page-content.no-page-header { padding-top: 100px; }
.page-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 30% 40%, rgba(196,154,108,0.1), transparent 60%), radial-gradient(circle at 70% 60%, rgba(196,154,108,0.08), transparent 60%); }
.page-header-en { font-size: 0.75rem; color: var(--kincha-light); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 8px; position: relative; }
.page-header-title { font-family: var(--font-mincho); font-size: 2.2rem; letter-spacing: 0.15em; position: relative; color: #fff; }
.page-header-desc { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-top: 16px; position: relative; }

/* --- Page Hero (service pages) --- */
.page-hero { background: var(--sumi); color: var(--washi); padding: 140px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 30% 40%, rgba(196,154,108,0.1), transparent 60%), radial-gradient(circle at 70% 60%, rgba(196,154,108,0.08), transparent 60%); }
.page-hero-en { font-size: 0.75rem; color: var(--kincha-light); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 8px; position: relative; }
.page-hero-title { font-family: var(--font-mincho); font-size: 2.2rem; letter-spacing: 0.15em; position: relative; color: #fff; }
.page-hero-desc { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-top: 16px; position: relative; }

/* Breadcrumb */
.breadcrumb { background: var(--shironeri); padding: 12px 0; font-size: 0.8rem; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.breadcrumb-list li::after { content: '>'; margin-left: 8px; color: #aaa; }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list a { color: var(--kincha); }
.breadcrumb-list a:hover { text-decoration: underline; }

/* --- Content area for sub pages --- */
/* --- Archive Filter --- */
.archive-filter { margin-bottom: 36px; }
.archive-filter-search { position: relative; max-width: 480px; margin-bottom: 20px; }
.archive-filter-input { width: 100%; padding: 12px 44px 12px 18px; font-size: 0.92rem; border: 1.5px solid #d5cfc5; border-radius: 6px; background: #fff; color: var(--sumi); font-family: var(--font-sans); transition: border-color 0.25s; }
.archive-filter-input:focus { outline: none; border-color: var(--kincha); box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.15); }
.archive-filter-input::placeholder { color: #aaa; }
.archive-filter-search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #999; pointer-events: none; }
.archive-filter-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-filter-tag { display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px; font-size: 0.82rem; font-family: var(--font-sans); border: 1.5px solid #d5cfc5; border-radius: 50px; background: #fff; color: #666; cursor: pointer; transition: all 0.25s; white-space: nowrap; }
.archive-filter-tag:hover { border-color: var(--kincha); color: var(--kincha); }
.archive-filter-tag.is-active { background: var(--sumi); border-color: var(--sumi); color: #fff; }
.archive-filter-tag-count { font-size: 0.72rem; background: rgba(0,0,0,0.08); padding: 1px 6px; border-radius: 10px; line-height: 1.4; }
.archive-filter-tag.is-active .archive-filter-tag-count { background: rgba(255,255,255,0.2); }
#archiveGridWrap { transition: opacity 0.3s ease; }

.page-content { padding: 40px 0 80px; }
.page-content.no-bottom-margin { padding-bottom: 0; }
.page-content h2 { font-family: var(--font-mincho); font-size: 1.6rem; letter-spacing: 0.08em; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--kincha); color: var(--sumi); }
.page-content .eyecatch-overlay-title { font-size: 0.95rem; font-weight: 400; letter-spacing: 0.08em; margin-bottom: 0; padding-bottom: 0; border-bottom: none; color: rgba(26, 26, 26, 0.88); }
.page-content h3 { font-family: var(--font-mincho); font-size: 1.2rem; letter-spacing: 0.05em; margin: 30px 0 12px; color: var(--sumi); }
.page-content p { font-size: 0.95rem; line-height: 2; margin-bottom: 20px; color: #444; }
.page-content ul { margin: 16px 0 24px 20px; }
.page-content ul li { font-size: 0.92rem; line-height: 1.9; color: #444; position: relative; padding-left: 20px; margin-bottom: 8px; }
.page-content ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 8px; height: 2px; background: var(--kincha); }

/* Feature boxes */
.feature-box { background: var(--shironeri); padding: 36px; margin-bottom: 30px; border-left: 4px solid var(--kincha); }
.feature-box h3 { margin-top: 0; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--shironeri-dark); font-size: 0.92rem; }
.price-table th { background: var(--sumi); color: var(--washi); font-weight: 600; letter-spacing: 0.05em; }
.price-table td { background: #fff; }
.price-table tr:hover td { background: var(--shironeri); }

/* --- Contact Form (CF7 compatible) --- */
.contact-form { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--sumi); letter-spacing: 0.05em; }
.form-label .required { display: inline-block; background: var(--aka); color: #fff; font-size: 0.7rem; padding: 2px 8px; margin-left: 8px; font-weight: 400; }
.form-input, .form-select, .form-textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 select, .wpcf7 textarea { width: 100%; padding: 14px 16px; font-size: 0.95rem; font-family: var(--font-gothic); border: 1px solid var(--shironeri-dark); background: #fff; color: var(--sumi); transition: var(--transition-smooth); }
.form-input:focus, .form-select:focus, .form-textarea:focus,
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--kincha); box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.15); }
.form-textarea, .wpcf7 textarea { min-height: 160px; resize: vertical; }
.wpcf7-submit { display: inline-flex; align-items: center; justify-content: center; padding: 20px 48px; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; border: none; background: linear-gradient(135deg, var(--kincha), var(--gold-light)); color: #fff; transition: var(--transition-smooth); }
.wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(196, 154, 108, 0.4); }

/* --- Company Info Table --- */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 20px; text-align: left; border-bottom: 1px solid var(--shironeri-dark); font-size: 0.92rem; vertical-align: top; }
.company-table th { width: 180px; font-weight: 600; color: var(--sumi); background: var(--shironeri); letter-spacing: 0.05em; }
.company-table td { color: #444; line-height: 1.8; }

/* --- GEO Page specifics --- */
.geo-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0; }
.geo-benefit-card { background: #fff; padding: 30px; text-align: center; border: 1px solid var(--shironeri-dark); transition: var(--transition-smooth); }
.geo-benefit-card:hover { border-color: var(--kincha); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.geo-benefit-icon { font-size: 2.5rem; margin-bottom: 16px; }
.geo-benefit-title { font-family: var(--font-mincho); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--sumi); }
.geo-benefit-text { font-size: 0.85rem; color: #666; line-height: 1.7; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
details.faq-item { border-bottom: 1px solid var(--shironeri-dark); }
summary.faq-question { display: flex; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--sumi); list-style: none; -webkit-appearance: none; }
summary.faq-question::-webkit-details-marker { display: none; }
summary.faq-question::marker { display: none; content: ''; }
summary.faq-question::before { content: 'Q.'; color: var(--kincha); font-family: var(--font-mincho); font-size: 1.2rem; margin-right: 12px; font-weight: 700; flex-shrink: 0; }
summary.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--kincha); transition: transform 0.3s ease; margin-left: auto; flex-shrink: 0; }
details.faq-item[open] summary.faq-question::after { transform: rotate(45deg); }
.faq-answer-inner { padding: 0 0 20px 32px; font-size: 0.9rem; color: #666; line-height: 1.9; }

/* --- Mobile Navigation Drawer --- */
.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.35); z-index: 1040;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-nav {
  position: fixed; top: 0; right: 0;
  width: 80%; max-width: 360px; height: 100%;
  background: var(--washi); z-index: 1050;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.15);
  box-sizing: border-box;
  visibility: hidden;
}
.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
}

/* Close button header */
.mobile-nav-header {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 18px 20px; flex-shrink: 0;
}
.mobile-nav-close {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--sumi);
  border-radius: 50%; color: var(--sumi); cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus { background: rgba(26,26,26,0.08); outline: none; }
.mobile-nav-close:active { transform: scale(0.9); }
.mobile-nav-close svg { display: block; pointer-events: none; }

/* Scrollable body */
.mobile-nav-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 32px 60px;
  display: flex; flex-direction: column;
}

/* Menu items - both direct links and WP menu li > a */
.mobile-nav-body > a,
.mobile-nav-body > .mobile-nav-accordion > .mobile-nav-parent,
.mobile-nav-body > ul > li > a,
.mobile-nav-body > .menu > li > a {
  font-family: var(--font-mincho); font-size: 1rem;
  letter-spacing: 0.1em; color: var(--sumi);
  text-decoration: none; display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(26,26,26,0.08);
  width: 100%; text-align: left;
}
.mobile-nav-body > ul,
.mobile-nav-body > .menu { list-style: none; padding: 0; margin: 0; width: 100%; }
.mobile-nav-body > ul > li,
.mobile-nav-body > .menu > li { list-style: none; }

/* CTA button */
.mobile-nav-body > .btn,
.mobile-nav-body > ul > li:last-child > a.btn,
.mobile-nav-body > .menu > li:last-child > a.btn {
  margin-top: 28px; font-family: var(--font-mincho);
  font-size: 0.95rem; letter-spacing: 0.1em;
  text-align: center; width: 100%;
}

/* Accordion */
.mobile-nav-accordion { width: 100%; }
.mobile-nav-children a {
  font-family: var(--font-mincho); font-size: 0.85rem;
  letter-spacing: 0.06em; color: var(--sumi);
  text-decoration: none; display: block;
  padding: 8px 0 8px 16px; text-align: left; opacity: 0.65;
}
.mobile-nav-children a:hover { opacity: 1; color: var(--kincha); }

/* =========================================
   New Sections (v3.0)
   ========================================= */

/* --- Hero Numbers Bar --- */
.hero-numbers {
  display: flex; justify-content: center; gap: 0;
  margin-top: 40px; padding: 0;
  background: rgba(26, 26, 26, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 8px; width: 100%; max-width: 960px; margin-left: auto; margin-right: auto;
}
.hero-number-item { text-align: center; flex: 1; padding: 24px 20px; border-right: 1px solid rgba(255,255,255,0.12); white-space: nowrap; min-width: 0; }
.hero-number-item:last-child { border-right: none; }
.hero-number-value {
  font-family: var(--font-mincho); font-size: 2.4rem; color: var(--kincha-light);
  display: block; line-height: 1.2; font-weight: 700; white-space: nowrap;
}
.hero-number-value small { font-size: 0.9rem; color: var(--kincha-light); }
.hero-number-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); display: block; margin-top: 6px; letter-spacing: 0.02em; white-space: nowrap; }

/* --- Problems Section --- */
.problems { background-color: var(--shironeri); }
.problems-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.problem-card {
  background: var(--washi); padding: 32px; border-left: 4px solid var(--kincha);
  display: flex; gap: 20px; align-items: flex-start;
}
.problem-card-icon { flex-shrink: 0; width: 48px; height: 48px; color: var(--kincha); }
.problem-card-body { flex: 1; }
.problem-card h3 { font-family: var(--font-mincho); font-size: 1.05rem; margin-bottom: 8px; color: var(--sumi); }
.problem-card p { font-size: 0.88rem; color: var(--sumi-light); line-height: 1.7; margin: 0; }
.problems-cta { text-align: center; margin-top: 40px; }
.problems-cta p { font-family: var(--font-mincho); font-size: 1.2rem; color: var(--kincha); margin-bottom: 16px; }

/* --- Service Card Badge --- */
.service-card { position: relative; }
.service-badge {
  position: absolute; top: -8px; right: -8px;
  font-size: 0.7rem; padding: 4px 12px; border-radius: 4px;
  font-weight: 600; z-index: 1; letter-spacing: 0.05em;
}
.service-badge-new { background: var(--aka); color: #fff; }
.service-badge-featured { background: var(--kincha); color: var(--sumi); }
.service-badge-price { background: var(--kincha); color: var(--sumi); font-family: var(--font-mincho); }

/* --- GEO Hack Section --- */
.geo-hack-section { background: var(--sumi); color: var(--shironeri); padding: var(--section-padding); position: relative; }
.geo-hack-section .section-en { color: var(--kincha); }
.geo-hack-section .section-title { color: var(--shironeri); }
.geo-hack-section .section-title::after { background: var(--kincha); }
.geo-hack-section .section-desc { color: rgba(255,255,255,0.7); }
.geo-hack-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.geo-hack-pillar {
  background: var(--sumi-light); border: 1px solid rgba(196,154,108,0.3);
  padding: 36px 28px; text-align: center; transition: var(--transition-smooth);
}
.geo-hack-pillar:hover { border-color: var(--kincha); transform: translateY(-4px); }
.geo-hack-pillar h3 { font-family: var(--font-mincho); font-size: 1.1rem; color: var(--washi); margin-bottom: 8px; }
.geo-hack-pillar .pillar-price { font-family: var(--font-mincho); font-size: 1.8rem; color: var(--kincha); margin: 16px 0; display: block; }
.geo-hack-pillar .pillar-price small { font-size: 0.9rem; }
.geo-hack-pillar p { font-size: 0.88rem; color: rgba(255,255,255,0.7); line-height: 1.7; }
.geo-hack-results { text-align: center; max-width: 700px; margin: 0 auto; }
.geo-hack-results h3 { font-family: var(--font-mincho); color: var(--washi); font-size: 1.2rem; margin-bottom: 30px; }
.geo-hack-result-row { display: flex; justify-content: center; align-items: center; gap: 40px; margin-bottom: 24px; }
.geo-hack-result-before { font-size: 1.5rem; color: rgba(255,255,255,0.4); font-family: var(--font-mincho); }
.geo-hack-result-arrow { font-size: 1.5rem; color: var(--kincha); }
.geo-hack-result-after { font-size: 3rem; font-family: var(--font-mincho); color: var(--kincha); font-weight: 700; }
.geo-hack-result-after small { font-size: 1.2rem; }
.geo-hack-result-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.yokohama-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.yokohama-point { text-align: center; padding: 30px 20px; background: var(--shironeri); }
.yokohama-point-icon { font-size: 2.5rem; margin-bottom: 16px; color: var(--kincha); }
.yokohama-point h3 { font-family: var(--font-mincho); font-size: 1.1rem; margin-bottom: 12px; color: var(--sumi); }
.yokohama-point p { font-size: 0.88rem; color: #666; line-height: 1.7; }

/* --- HP Package Section --- */
.hp-package-section { background: var(--shironeri); }
.hp-package-price { font-family: var(--font-mincho); font-size: 3.5rem; color: var(--kincha); text-align: center; margin: 24px 0; }
.hp-package-price small { font-size: 1.2rem; }
.hp-package-card {
  background: var(--washi); border: 2px solid var(--kincha);
  padding: 48px; max-width: 800px; margin: 0 auto;
}
.hp-package-list { list-style: none; margin: 0; padding: 0; }
.hp-package-list li { padding: 10px 0; padding-left: 28px; position: relative; font-size: 0.95rem; }
.hp-package-list li::before { content: "✓"; position: absolute; left: 0; color: var(--matcha); font-weight: 700; }
.hp-package-list-excluded li { color: var(--sumi-light); opacity: 0.6; }
.hp-package-list-excluded li::before { content: "—"; color: var(--sumi-light); }
.hp-package-recommend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.hp-package-recommend-item { background: var(--washi); padding: 24px; text-align: center; border: 1px solid var(--shironeri-dark); }
.hp-package-recommend-item h4 { font-family: var(--font-mincho); font-size: 1rem; color: var(--sumi); margin-bottom: 8px; }
.hp-package-recommend-item p { font-size: 0.85rem; color: #666; }

/* --- Post Grid Overlay (fallback for jinrai-post-grid.css cache) --- */
.jpgrid-card-thumb { position: relative; }
.jpgrid-card-thumb-title { position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; padding: 16px 18px; background: rgba(26, 26, 26, 0.45); color: #faf6eb; font-family: 'Zen Antique Soft', 'Noto Serif JP', serif; font-size: 0.82rem; font-weight: 400; line-height: 1.7; letter-spacing: 0.06em; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); z-index: 2; }
.jpgrid-card-thumb img { position: relative; z-index: 0; }

/* --- Case Study Section --- */
.cases-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.case-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: var(--transition-smooth); display: block; }
.case-card-link { text-decoration: none; color: var(--sumi); }
.case-card-link:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.case-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--shironeri); position: relative; }
.case-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); position: relative; z-index: 0; }
.case-card-link:hover .case-card-thumb img { transform: scale(1.05); }
.case-card-thumb-title { position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: center; padding: 16px 18px; background: rgba(26, 26, 26, 0.45); color: #faf6eb; font-family: 'Zen Antique Soft', 'Noto Serif JP', serif; font-size: 0.82rem; font-weight: 400; line-height: 1.7; letter-spacing: 0.06em; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); z-index: 2; }
.case-card-nothumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--shironeri) 0%, #e8e0d4 100%); }
.case-card-nothumb span { font-family: var(--font-en); font-size: 0.9rem; letter-spacing: 0.15em; color: var(--kincha); opacity: 0.5; }
.case-card-body { padding: 16px 20px 20px; }
.case-card-title { font-size: 0.9rem; font-weight: 500; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card-excerpt { font-size: 0.8rem; color: #666; line-height: 1.7; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-card-header { background: var(--sumi); color: var(--washi); padding: 16px 24px; display: flex; align-items: center; gap: 12px; }
.case-card-tag { font-size: 0.7rem; background: var(--kincha); color: var(--sumi); padding: 2px 10px; font-weight: 600; }
.case-card-name { font-family: var(--font-mincho); font-size: 1rem; }
.case-card-inner { display: grid; grid-template-columns: 1fr 1fr; }
.case-before { background: var(--shironeri); padding: 28px; }
.case-after { background: var(--washi); padding: 28px; }
.case-before h4, .case-after h4 { font-size: 0.8rem; color: var(--kincha); letter-spacing: 0.15em; margin-bottom: 12px; text-transform: uppercase; }
.case-before p, .case-after p { font-size: 0.9rem; line-height: 1.7; }
.case-result-number { font-family: var(--font-mincho); font-size: 2rem; color: var(--kincha); font-weight: 700; }

/* --- Message Section --- */
.message-inner {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 48px; align-items: start; max-width: 900px; margin: 0 auto;
}
.message-photo {
  width: 240px; height: 240px; border-radius: 50%;
  background: var(--shironeri-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--sumi-light); font-size: 0.9rem; overflow: hidden;
}
.message-photo img { width: 100%; height: 100%; object-fit: cover; }
.message-name { font-family: var(--font-mincho); font-size: 1.3rem; margin-bottom: 4px; }
.message-title { font-size: 0.85rem; color: #888; margin-bottom: 20px; }
.message-quote {
  font-family: var(--font-mincho); color: var(--kincha);
  font-size: 1.1rem; margin: 20px 0; line-height: 2;
  padding-left: 20px; border-left: 3px solid var(--kincha);
}
.message-text p { font-size: 0.92rem; line-height: 2; color: #444; margin-bottom: 16px; }

/* --- News Ticker (Hero下) --- */
.news-ticker {
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  position: relative;
  z-index: 10;
}
.news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 44px;
}
.news-ticker-label {
  background: var(--kincha);
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  flex-shrink: 0;
}
.news-ticker-list {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 1;
  gap: 0;
}
.news-ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
  border-right: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.news-ticker-item:last-child { border-right: none; }
.news-ticker-item:hover { color: var(--kincha-light); }
.news-ticker-item time {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* --- Column Section --- */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.column-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: var(--transition-smooth);
  text-decoration: none;
  color: var(--sumi);
  display: block;
}
.column-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.column-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--shironeri);
  position: relative;
}
.column-card-thumb-title {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  background: rgba(26, 26, 26, 0.45);
  color: #faf6eb;
  font-family: 'Zen Antique Soft', 'Noto Serif JP', serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.column-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 0;
}
.column-card:hover .column-card-thumb img {
  transform: scale(1.05);
}
.column-card-nothumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--shironeri) 0%, #e8e0d4 100%);
}
.column-card-nothumb span {
  font-family: var(--font-en);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--kincha);
  opacity: 0.5;
}
.column-card-body {
  padding: 16px 20px 20px;
}
.column-card-date {
  font-size: 0.75rem;
  color: var(--sumi-light);
  display: block;
  margin-bottom: 6px;
}
.column-card-title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Client Logos --- */
.client-logos { margin-top: 48px; text-align: center; }
.client-logos-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; letter-spacing: 0.1em; }
.client-logos-grid { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.client-logo-placeholder {
  width: 140px; height: 50px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.4); letter-spacing: 0.05em;
}

/* --- CTA Sub --- */
.cta-sub { font-size: 0.8rem; color: rgba(255,255,255,0.85); margin-top: 16px; }

/* --- Strengths Grid 5 cards --- */
.strengths-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* --- Footer SNS --- */
.footer-sns { display: flex; gap: 12px; margin-top: 16px; }
.footer-sns a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.1); transition: var(--transition-smooth); }
.footer-sns a:hover { background: var(--kincha); }
.footer-sns svg { width: 18px; height: 18px; fill: var(--washi); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-god-fujin { width: calc(var(--god-size-pc, 28%) - 4%); left: 0; }
  .hero-god-raijin { width: calc(var(--god-size-pc, 28%) - 4%); right: 0; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .strengths-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid-vertical { grid-template-columns: repeat(3, 1fr); }
  .column-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-padding: 60px 0; }
  .hamburger { display: flex; }
  .nav { display: none; }
  .header-inner { height: 64px; }
  .hero { min-height: auto; padding-top: 80px; }
  .hero-catch { font-size: 1.6rem; }
  .hero-desc { padding: 16px 20px; font-size: 0.9rem; }
  .hero-god-fujin { width: var(--god-size-sp, 30%); left: -5%; bottom: 5%; opacity: var(--god-opacity-sp, 0.4) !important; }
  .hero-god-raijin { width: var(--god-size-sp, 30%); right: -5%; top: 3%; opacity: var(--god-opacity-sp, 0.4) !important; }
  .news-ticker-list { flex-direction: column; align-items: flex-start; }
  .news-ticker-item { border-right: none; padding: 6px 16px; font-size: 0.78rem; }
  .news-ticker-item:not(:first-child) { display: none; }
  .news-ticker-inner { flex-wrap: nowrap; }
  .column-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .column-card-thumb { aspect-ratio: 16/9; }
  .column-card-thumb-title { font-size: 0.62rem; padding: 8px 10px; line-height: 1.5; }
  .column-card-body { padding: 8px 10px 12px; }
  .column-card-date { font-size: 0.62rem; margin-bottom: 3px; }
  .column-card-title { font-size: 0.7rem; line-height: 1.5; -webkit-line-clamp: 2; }
  .cases-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .case-card-thumb-title { font-size: 0.62rem; padding: 8px 10px; line-height: 1.5; }
  .case-card-body { padding: 8px 10px 12px; }
  .case-card-title { font-size: 0.7rem; line-height: 1.5; }
  .case-card-excerpt { font-size: 0.68rem; margin-top: 4px; }
  .jpgrid-card-title { display: none !important; }
  .jpgrid-card-thumb-title { font-size: 0.62rem !important; padding: 8px 10px; line-height: 1.5; }
  .breadcrumb { font-size: 0.68rem; padding: 8px 0; }
  .breadcrumb-list { gap: 2px 6px; }
  .archive-filter-search { max-width: 100%; }
  .archive-filter-cats { gap: 6px; }
  .archive-filter-tag { padding: 6px 12px; font-size: 0.78rem; }
  .services-grid-vertical { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid, .strengths-grid-5 { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; gap: 30px; }
  .flow-step:not(:last-child)::after { display: none; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .fusuma-logo-text { font-size: 3rem; }
  .service-card { flex-direction: column; }
  .service-card-icon { width: 100%; min-height: 80px; }
  .geo-benefits { grid-template-columns: 1fr; }
  .company-table th { width: 120px; }
  .page-header { padding: 80px 0 24px; overflow: visible; }
  .page-header-title { font-size: 1.2rem; line-height: 1.6; }
  .page-content:first-child, .page-content.no-page-header { padding-top: 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .problems-grid { grid-template-columns: 1fr; }
  .geo-hack-pillars { grid-template-columns: 1fr; }
  .yokohama-points { grid-template-columns: 1fr; }
  .case-card-inner { grid-template-columns: 1fr; }
  .message-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .message-quote { text-align: left; }
  .hero-numbers { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 4px; }
  .hero-number-item { width: auto; padding: 16px 10px; border-bottom: 1px solid rgba(255,255,255,0.1); white-space: normal; flex: none; box-sizing: border-box; overflow: hidden; text-align: center; border-right: none; }
  .hero-number-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .hero-number-item:nth-child(even) { border-right: none; }
  .hero-number-item:nth-last-child(-n+2) { border-bottom: none; }
  .hero-number-value { font-size: 1.5rem; white-space: nowrap; }
  .hero-number-value small { font-size: 0.7rem; }
  .hero-number-label { font-size: 0.62rem; white-space: normal; line-height: 1.4; }
  .hp-package-price { font-size: 2.5rem; }
  .hp-package-card { padding: 30px 20px; }
  .hp-package-recommend { grid-template-columns: 1fr; }
  .geo-hack-result-row { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .hero-catch { font-size: 1.3rem; }
  .btn { padding: 14px 24px; font-size: 0.85rem; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .result-number { font-size: 2.2rem; }
  .cta-title { font-size: 1.5rem; }
  .hero-number-item { padding: 10px 6px; }
  .hero-number-value { font-size: 1.3rem; }
  .hero-number-value small { font-size: 0.65rem; }
  .hero-number-label { font-size: 0.58rem; }
  .services-grid-vertical { grid-template-columns: 1fr; }
  .page-header-title { font-size: 1rem; }
  .column-card-thumb-title { font-size: 0.7rem; padding: 6px 8px; }
  .column-card-title { font-size: 0.75rem; }
  .column-card-date { font-size: 0.65rem; }
  .case-card-thumb-title { font-size: 0.7rem; padding: 6px 8px; }
  .case-card-title { font-size: 0.75rem; }
  .jpgrid-card-thumb-title { font-size: 0.65rem; padding: 4px 6px; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid-vertical { grid-template-columns: repeat(4, 1fr); }
}

/* --- Utilities --- */
.bg-seigaiha { background-color: var(--shironeri); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23c49a6c' fill-opacity='0.04' d='M0 0h80v80H0V0zm20 20v40h40V20H20zm20 35a15 15 0 1 0 0-30 15 15 0 0 0 0 30z'/%3E%3C/svg%3E"); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.wa-line { width: 60px; height: 1px; background: var(--kincha); margin: 24px auto; position: relative; }
.wa-line::before { content: ''; position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; background: var(--kincha); border-radius: 50%; }

/* =========================================
   Block Editor Custom Styles (Frontend)
   ========================================= */

/* --- Group: Feature Box --- */
.wp-block-group.is-style-jinrai-feature-box {
  background: var(--shironeri);
  padding: 36px;
  margin-bottom: 30px;
  border-left: 4px solid var(--kincha);
}

/* --- Group: Card --- */
.wp-block-group.is-style-jinrai-card {
  background: #fff;
  padding: 30px;
  border: 1px solid var(--shironeri-dark);
  transition: var(--transition-smooth);
}
.wp-block-group.is-style-jinrai-card:hover {
  border-color: var(--kincha);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

/* --- Group: Dark --- */
.wp-block-group.is-style-jinrai-dark {
  background: var(--sumi);
  color: var(--washi);
  padding: 40px;
}
.wp-block-group.is-style-jinrai-dark h2,
.wp-block-group.is-style-jinrai-dark h3,
.wp-block-group.is-style-jinrai-dark h4 {
  color: var(--washi);
}
.wp-block-group.is-style-jinrai-dark h2 {
  border-bottom-color: var(--kincha);
}
.wp-block-group.is-style-jinrai-dark p {
  color: rgba(250, 246, 235, 0.8);
}

/* --- Blog CTA: Gold gradient (applied via PHP filter adding .jinrai-cta-gold-override) --- */
.page-content .wp-block-group.has-background {
  border-radius: 12px;
  margin: 40px 0;
}
.jinrai-cta-gold-override {
  background: linear-gradient(135deg, #c49a6c 0%, #daa520 100%) !important;
  color: #fff !important;
  padding: 44px 40px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 24px rgba(196, 154, 108, 0.35);
  position: relative;
  overflow: hidden;
}
.jinrai-cta-gold-override::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1), transparent 50%);
  pointer-events: none;
}
.jinrai-cta-gold-override h2,
.jinrai-cta-gold-override h3,
.jinrai-cta-gold-override h4,
.jinrai-cta-gold-override p {
  color: #fff !important;
  position: relative;
}
.jinrai-cta-gold-override h2 {
  border-bottom-color: rgba(255,255,255,0.3) !important;
}
.jinrai-cta-gold-override .wp-block-button__link {
  background: #fff !important;
  color: #c49a6c !important;
  font-weight: 700;
  padding: 16px 40px !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: var(--transition-smooth);
  position: relative;
}
.jinrai-cta-gold-override .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

/* --- Group: Washi --- */
.wp-block-group.is-style-jinrai-washi {
  background: var(--washi);
  padding: 36px;
}

/* --- Button: Gold Gradient --- */
.wp-block-button.is-style-jinrai-gold .wp-block-button__link {
  background: linear-gradient(135deg, var(--kincha), var(--gold-light));
  color: #fff;
  font-weight: 700;
  border-radius: 0;
  padding: 16px 36px;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}
.wp-block-button.is-style-jinrai-gold .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 154, 108, 0.4);
}

/* --- Button: Outline --- */
.wp-block-button.is-style-jinrai-outline .wp-block-button__link {
  background: transparent;
  color: var(--sumi);
  border: 2px solid var(--sumi);
  border-radius: 0;
  padding: 16px 36px;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}
.wp-block-button.is-style-jinrai-outline .wp-block-button__link:hover {
  background: var(--sumi);
  color: var(--washi);
  transform: translateY(-2px);
}

/* --- Button: Outline Gold --- */
.wp-block-button.is-style-jinrai-outline-gold .wp-block-button__link {
  background: transparent;
  color: var(--kincha);
  border: 2px solid var(--kincha);
  border-radius: 0;
  padding: 16px 36px;
  letter-spacing: 0.1em;
  transition: var(--transition-smooth);
}
.wp-block-button.is-style-jinrai-outline-gold .wp-block-button__link:hover {
  background: var(--kincha);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Quote: Testimonial --- */
.wp-block-quote.is-style-jinrai-testimonial {
  border-left: 3px solid var(--kincha);
  background: var(--washi);
  padding: 30px;
  position: relative;
}
.wp-block-quote.is-style-jinrai-testimonial::before {
  content: '\201C';
  font-family: var(--font-mincho);
  font-size: 3rem;
  color: var(--kincha);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 15px;
  line-height: 1;
}

/* --- Image: Shadow --- */
.wp-block-image.is-style-jinrai-shadow img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- Image: Border --- */
.wp-block-image.is-style-jinrai-border img {
  border: 2px solid var(--kincha);
  padding: 4px;
}

/* --- Separator: Kincha --- */
.wp-block-separator.is-style-jinrai-kincha {
  border-color: var(--kincha);
  border-width: 2px;
}

/* --- Heading: Section Heading --- */
.wp-block-heading.is-style-jinrai-section-heading {
  text-align: center;
  position: relative;
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}
.wp-block-heading.is-style-jinrai-section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--kincha);
  margin: 16px auto 0;
}

/* --- Heading: No Border --- */
.wp-block-heading.is-style-jinrai-no-border {
  border-bottom: none;
  padding-bottom: 0;
}

/* --- List: Check --- */
.wp-block-list.is-style-jinrai-check li::before {
  content: '✓';
  color: var(--kincha);
  font-weight: 700;
  background: none;
  width: auto;
  height: auto;
  top: 0;
}

/* --- Table: Corporate --- */
.wp-block-table.is-style-jinrai-corporate table {
  border-collapse: collapse;
}
.wp-block-table.is-style-jinrai-corporate th {
  width: 180px;
  font-weight: 600;
  color: var(--sumi);
  background: var(--shironeri);
  letter-spacing: 0.05em;
  vertical-align: top;
}
.wp-block-table.is-style-jinrai-corporate td {
  color: #444;
  line-height: 1.8;
}
.wp-block-table.is-style-jinrai-corporate th,
.wp-block-table.is-style-jinrai-corporate td {
  padding: 20px;
  border-bottom: 1px solid var(--shironeri-dark);
}

/* --- Columns: Gap Narrow --- */
.wp-block-columns.is-style-jinrai-gap-narrow {
  gap: 16px;
}

/* --- Columns: Gap Wide --- */
.wp-block-columns.is-style-jinrai-gap-wide {
  gap: 48px;
}

/* --- Details: FAQ Style --- */
.wp-block-details.is-style-jinrai-faq {
  border-bottom: 1px solid var(--shironeri-dark);
  padding: 0;
}
.wp-block-details.is-style-jinrai-faq summary {
  display: flex;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--sumi);
}
.wp-block-details.is-style-jinrai-faq summary::before {
  content: 'Q.';
  color: var(--kincha);
  font-family: var(--font-mincho);
  font-size: 1.2rem;
  margin-right: 12px;
  font-weight: 700;
}

/* --- WP Block Defaults Override --- */
.wp-block-button__link {
  border-radius: 0;
}
.page-content .wp-block-separator {
  border-color: var(--kincha);
  opacity: 0.4;
}
.page-content .wp-block-quote {
  border-left-color: var(--kincha);
  border-left-width: 3px;
  padding-left: 24px;
  background: var(--shironeri);
  padding: 24px;
}
.page-content .wp-block-table th {
  background: var(--sumi);
  color: var(--washi);
}
.page-content .wp-block-table td {
  border-bottom-color: var(--shironeri-dark);
}
.page-content .wp-block-cover {
  min-height: 300px;
}
.page-content .wp-block-columns {
  gap: 30px;
}

/* =========================================
   Company Screenshot (auto-injected)
   ========================================= */
.company-screenshot {
  margin: 16px 0 24px;
}
.company-screenshot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--shironeri-dark);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
}

/* =========================================
   Eyecatch Title Overlay (single.php)
   ========================================= */

.eyecatch-overlay {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.eyecatch-overlay img {
  width: 100%;
  height: auto;
  display: block;
}

.eyecatch-overlay-text {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px 50px;
  background: none;
  text-align: center;
}

.eyecatch-overlay-title {
  font-family: 'Zen Antique Soft', 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.08em;
  margin: 0;
  color: rgba(26, 26, 26, 0.88);
  max-width: 80%;
  background: rgba(250, 246, 235, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 20px 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.eyecatch-overlay-logo {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  opacity: 0.35;
  white-space: nowrap;
}

.eyecatch-overlay-logo small {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-top: 2px;
  text-align: center;
}

@media (max-width: 768px) {
  .eyecatch-overlay {
    max-width: 90%;
    border-radius: 10px;
  }
  .eyecatch-overlay-text {
    padding: 20px 12px 44px;
  }
  .eyecatch-overlay-title,
  .page-content .eyecatch-overlay-title {
    font-size: 0.52rem;
    max-width: 85%;
    padding: 8px 12px;
    line-height: 1.8;
  }
  .eyecatch-overlay-logo {
    font-size: 0.85rem;
    bottom: 8px;
  }
}

/* =========================================
   Author Compact — アイキャッチ下著者表示
   ========================================= */
.author-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding: 16px 24px;
  background: #fff;
  border-radius: 60px;
  border: 1px solid var(--shironeri-dark, #e8e2cf);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(196, 154, 108, 0.1);
}
.author-compact-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--kincha, #c49a6c);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(196, 154, 108, 0.25);
}
.author-compact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-compact-label {
  font-size: 0.65rem;
  color: #999;
  letter-spacing: 0.08em;
}
.author-compact-name {
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-mincho, "Noto Serif JP", serif);
  color: var(--sumi, #1a1a1a);
}
.author-compact-role {
  font-size: 0.75rem;
  color: var(--kincha, #c49a6c);
}

/* =========================================
   Author Profile Full — 記事末尾フルプロフィール
   ========================================= */
.author-profile-full {
  margin-top: 48px;
  border: 2px solid var(--shironeri-dark, #e8e2cf);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(196, 154, 108, 0.12);
  background: #fff;
  overflow: hidden;
}
.author-profile-full .jb-profile-label {
  background: linear-gradient(135deg, var(--sumi, #1a1a1a) 0%, #333 100%);
  color: var(--kincha, #c49a6c);
  padding: 12px 24px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border-bottom: none;
}
.author-profile-full .jb-profile-inner {
  padding: 28px;
}
.author-profile-full .jb-profile-img {
  width: 110px;
  height: 110px;
  border: 3px solid var(--kincha, #c49a6c);
  box-shadow: 0 3px 10px rgba(196, 154, 108, 0.3);
}

/* =========================================
   Auto Diagram — 見出し下自動図解
   ========================================= */
.jinrai-auto-diagram {
  margin: 20px 0 28px;
  padding: 24px 20px;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(196, 154, 108, 0.25);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

/* --- Step (共通) --- */
.jad-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.jad-step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(196, 154, 108, 0.3);
  border-radius: 50%;
  background: rgba(196, 154, 108, 0.08);
  flex-shrink: 0;
}
.jad-step-icon svg {
  display: block;
}
.jad-step-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.jad-step-icon-sm svg {
  width: 20px;
  height: 20px;
}
.jad-step-label {
  font-size: 0.75rem;
  color: var(--kincha-light, #d4b98a);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

/* --- Flow (横矢印) --- */
.jinrai-diagram-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.jad-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.6;
}

/* --- Hub (中心→放射) --- */
.jinrai-diagram-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.jad-hub-center .jad-step-icon {
  width: 56px;
  height: 56px;
  border-color: rgba(196, 154, 108, 0.5);
  background: rgba(196, 154, 108, 0.12);
}
.jad-hub-center .jad-step-label {
  font-size: 0.85rem;
  font-weight: 600;
}
.jad-hub-spokes {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.jad-hub-spoke {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.jad-spoke-line {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, rgba(196, 154, 108, 0.5), rgba(196, 154, 108, 0.1));
}

/* --- Cycle (循環) --- */
.jinrai-diagram-cycle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}
.jad-cycle-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jad-cycle-arrow {
  display: flex;
  align-items: center;
  opacity: 0.6;
}
/* 最後のアイテムの矢印を回転させてループ感を出す */
.jad-cycle-item:last-child .jad-cycle-arrow {
  opacity: 0.4;
}

/* --- Compare (比較) --- */
.jinrai-diagram-compare {
  display: flex;
  justify-content: center;
  gap: 0;
}
.jad-compare-col {
  flex: 1;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jad-compare-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--kincha-light, #d4b98a);
  letter-spacing: 0.06em;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(196, 154, 108, 0.25);
}
.jad-compare-left .jad-compare-header {
  color: #8cc49a;
}
.jad-compare-right .jad-compare-header {
  color: #c4868a;
}
.jad-compare-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.jad-compare-divider {
  width: 1px;
  background: rgba(196, 154, 108, 0.2);
  margin: 0 16px;
  align-self: stretch;
}

/* --- Checklist --- */
.jinrai-diagram-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.jad-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(196, 154, 108, 0.15);
  border-radius: 6px;
  background: rgba(196, 154, 108, 0.04);
}
.jad-check-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .jinrai-auto-diagram {
    padding: 16px 12px;
    margin: 16px 0 20px;
  }
  /* Flow → 縦並び */
  .jinrai-diagram-flow {
    flex-direction: column;
    gap: 8px;
  }
  .jad-arrow svg {
    transform: rotate(90deg);
  }
  /* Cycle → 縦並び */
  .jinrai-diagram-cycle {
    flex-direction: column;
    gap: 0;
  }
  .jad-cycle-arrow svg {
    transform: rotate(90deg);
  }
  /* Hub spokes wrap tighter */
  .jad-hub-spokes {
    gap: 16px;
  }
  /* Compare → 縦並び */
  .jinrai-diagram-compare {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .jad-compare-divider {
    width: 80%;
    height: 1px;
    margin: 0;
  }
  .jad-step-label {
    font-size: 0.7rem;
  }
}

