/*
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; } }

/* --- Byobu (屏風) Opening Animation --- */
.byobu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000; display: flex; pointer-events: auto; }
.byobu-overlay.opened { pointer-events: none; }
.byobu-panel { flex: 1; height: 100%; position: relative; overflow: hidden; border-right: 2px solid rgba(0,0,0,0.25); border-left: 1px solid rgba(255,215,0,0.15); }
.byobu-panel::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #c49a6c22 25%, transparent 25%), linear-gradient(225deg, #c49a6c22 25%, transparent 25%), linear-gradient(315deg, #c49a6c22 25%, transparent 25%), linear-gradient(45deg, #c49a6c22 25%, transparent 25%); background-size: 20px 20px; }
.byobu-panel-inner { width: 100%; height: 100%; background: linear-gradient(180deg, #d4a96a 0%, #c49a6c 30%, #b8860b 100%); position: relative; box-shadow: inset 0 0 60px rgba(0,0,0,0.3); }
.byobu-panel-inner::before { content: ''; position: absolute; top: 8px; left: 8px; right: 8px; bottom: 8px; border: 1px solid rgba(255,215,0,0.3); }
.byobu-panel-inner::after { content: ''; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border: 1px solid rgba(255,215,0,0.15); }
.byobu-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; }
.byobu-center-content.fade-out { opacity: 0; }
.byobu-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.2); white-space: nowrap; }
.byobu-logo-sub { font-family: var(--font-gothic); font-size: 0.9rem; color: var(--sumi); letter-spacing: 0.5em; margin-top: 10px; opacity: 0.8; }
.byobu-panel-left { transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1); transform-origin: left center; }
.byobu-panel-right { transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1); transform-origin: right center; }
.byobu-overlay.opened .byobu-panel-left { transform: translateX(-100%); }
.byobu-overlay.opened .byobu-panel-right { transform: translateX(100%); }

/* --- 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; }
.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: 10px; z-index: 1100; background: none; border: none; }
.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(4, 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; }

/* --- 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: 140px 0 60px; text-align: center; position: relative; overflow: hidden; }
.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; gap: 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 --- */
.page-content { padding: 80px 0; }
.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 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; }
.faq-item { border-bottom: 1px solid var(--shironeri-dark); }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; cursor: pointer; font-weight: 600; font-size: 0.95rem; color: var(--sumi); }
.faq-question::before { content: 'Q.'; color: var(--kincha); font-family: var(--font-mincho); font-size: 1.2rem; margin-right: 12px; font-weight: 700; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--kincha); transition: transform 0.3s ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; font-size: 0.9rem; color: #666; line-height: 1.9; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 0 20px 32px; }

/* --- Mobile Navigation Overlay --- */
.mobile-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(250, 246, 235, 0.98); z-index: 1050; flex-direction: column; align-items: center; justify-content: center; gap: 30px; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.mobile-nav.active { display: flex; opacity: 1; pointer-events: auto; }
.mobile-nav a { font-family: var(--font-mincho); font-size: 1.3rem; letter-spacing: 0.15em; color: var(--sumi); }

/* =========================================
   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 Section --- */
.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; }

/* --- Case Study Section --- */
.cases-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { border: 1px solid var(--shironeri-dark); overflow: hidden; margin-bottom: 24px; }
.case-card-link { display: block; text-decoration: none; color: inherit; transition: transform 0.3s, box-shadow 0.3s; }
.case-card-link:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.case-card-thumb { width: 100%; height: 180px; overflow: hidden; }
.case-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.case-card-link:hover .case-card-thumb img { transform: scale(1.05); }
.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-excerpt { padding: 16px 24px; font-size: 0.88rem; color: #666; line-height: 1.7; }
.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);
}
.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);
}
.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: 1fr; gap: 20px; }
  .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; }
  .byobu-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: 120px 0 40px; }
  .page-header-title { font-size: 1.6rem; }
  .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; }
  .cases-list { 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; }
}
@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);
}

/* --- 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;
}
