/*
Theme Name: Nroom
Theme URI: https://nroom.jp
Author: Nroom
Author URI: https://nroom.jp
Description: 合同会社Nroom 不動産売却・買取専門サイト用WordPressテーマ
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nroom
*/

/* ============================================
   Design System: Okinawa Modern Light Theme
   Concept: 沖縄の自然美 × 清潔感 × 地域密着の温もり
   白を基調とした明るいデザイン + 沖縄のテクスチャ
   ============================================ */

:root {
    /* ============================================
       新カラーパレット（洗練・沖縄・地域密着）
       ============================================ */

    /* メインカラー - 沖縄の海・信頼・知性 */
    --primary: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --primary-pale: #CCFBF1;

    /* アクセントカラー - 地域密着・太陽・温かみ */
    --accent: #F97316;
    --accent-dark: #EA580C;
    --accent-light: #FB923C;
    --accent-pale: #FFF7ED;

    /* ベースカラー - 背景・余白 */
    --bg-white: #FFFFFF;
    --bg-cream: #F8FAFC;
    --bg-light: #F8FAFC;
    --bg-gray: #F1F5F9;
    --bg-stone: #E2E8F0;

    /* テキストカラー - モノトーン */
    --text-dark: #334155;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Card & Border */
    --card-bg: #FFFFFF;
    --card-border: #E5E7EB;
    --card-border-hover: #D1D5DB;

    /* Shadows - 柔らかく上品な影 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 20px rgba(13, 148, 136, 0.2);
    --shadow-accent: 0 4px 20px rgba(224, 123, 76, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-body);
    line-height: 1.8;
    letter-spacing: 0.02em;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

p {
    color: var(--text-body);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Section Backgrounds - 交互背景
   ============================================ */
section {
    position: relative;
    z-index: 1;
}

/* ============================================
   全セクション共通 - 文字色を黒ベースに強制
   （ヒーローセクション、CTAセクションは除く）
   ============================================ */
section:not(.hero-section):not(.cta-section) {
    color: var(--text-body) !important;
}

section:not(.hero-section):not(.cta-section) h1,
section:not(.hero-section):not(.cta-section) h2,
section:not(.hero-section):not(.cta-section) h3,
section:not(.hero-section):not(.cta-section) h4,
section:not(.hero-section):not(.cta-section) h5,
section:not(.hero-section):not(.cta-section) h6 {
    color: var(--text-dark) !important;
}

section:not(.hero-section):not(.cta-section) p,
section:not(.hero-section):not(.cta-section) span,
section:not(.hero-section):not(.cta-section) li,
section:not(.hero-section):not(.cta-section) div {
    color: inherit;
}

/* Tailwindの text-white を上書き（ヒーロー、CTA以外） */
section:not(.hero-section):not(.cta-section) .text-white {
    color: var(--text-dark) !important;
}

section:not(.hero-section):not(.cta-section) .text-white\/60,
section:not(.hero-section):not(.cta-section) .text-white\/70,
section:not(.hero-section):not(.cta-section) .text-white\/80,
section:not(.hero-section):not(.cta-section) .text-white\/90 {
    color: var(--text-muted) !important;
}

/* ボタン・バッジ内の白文字は維持 */
section:not(.hero-section):not(.cta-section) a.text-white,
section:not(.hero-section):not(.cta-section) button.text-white,
section:not(.hero-section):not(.cta-section) .bg-primary .text-white,
section:not(.hero-section):not(.cta-section) .bg-accent .text-white,
section:not(.hero-section):not(.cta-section) .bg-gradient-to-r .text-white,
section:not(.hero-section):not(.cta-section) [class*="bg-primary"] .text-white,
section:not(.hero-section):not(.cta-section) [class*="bg-accent"] .text-white,
section:not(.hero-section):not(.cta-section) [class*="bg-gradient"] {
    color: #FFFFFF !important;
}

/* CTAボタン・リンクボタンの白文字維持 */
section:not(.hero-section):not(.cta-section) a[class*="bg-primary"],
section:not(.hero-section):not(.cta-section) a[class*="bg-accent"],
section:not(.hero-section):not(.cta-section) a[class*="bg-gradient"],
section:not(.hero-section):not(.cta-section) button[class*="bg-primary"],
section:not(.hero-section):not(.cta-section) button[class*="bg-accent"] {
    color: #FFFFFF !important;
}

/* LINE ボタンの白文字維持 */
.line-btn {
    color: #FFFFFF !important;
}

/* bg-dark 要素内の白文字は維持 */
section:not(.hero-section):not(.cta-section) .bg-dark,
section:not(.hero-section):not(.cta-section) .bg-dark .text-white,
section:not(.hero-section):not(.cta-section) .bg-dark h1,
section:not(.hero-section):not(.cta-section) .bg-dark h2,
section:not(.hero-section):not(.cta-section) .bg-dark h3,
section:not(.hero-section):not(.cta-section) .bg-dark p,
section:not(.hero-section):not(.cta-section) .bg-dark span {
    color: #FFFFFF !important;
}

/* selling-card-header の全タイトル白文字 */
.selling-card-header,
.selling-card-header h1,
.selling-card-header h2,
.selling-card-header h3,
.selling-card-header p,
.selling-card-header span,
section.selling-section .selling-card-header,
section.selling-section .selling-card-header h1,
section.selling-section .selling-card-header h2,
section.selling-section .selling-card-header h3,
section.selling-section .selling-card-header p,
section.selling-section .selling-card-header span {
    color: #FFFFFF !important;
}

/* セクションラベル統一スタイル - 白文字維持 */
section .bg-primary.text-white,
section .bg-accent.text-white,
section span.bg-primary,
section span.bg-accent {
    color: #FFFFFF !important;
}

/* 偶数セクション: 薄いグレー */
section:nth-of-type(even) {
    background: var(--bg-light);
}

/* 奇数セクション: 白 */
section:nth-of-type(odd) {
    background: var(--bg-white);
}

/* 特定のセクションクラスで上書き可能 */
.section-white {
    background: var(--bg-white) !important;
}

.section-light {
    background: var(--bg-light) !important;
}

.section-cream {
    background: var(--bg-cream) !important;
}

/* ============================================
   琉球石灰岩テクスチャ（疑似要素で表現）
   ============================================ */
.section-limestone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(0, 0, 0, 0.015) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 0, 0, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.008) 0%, transparent 30%),
        radial-gradient(circle at 30% 80%, rgba(0, 0, 0, 0.012) 0%, transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(0, 0, 0, 0.01) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
}

/* より強い石灰岩テクスチャ */
.section-limestone-strong::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(ellipse at 15% 25%, rgba(139, 129, 120, 0.04) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 75%, rgba(139, 129, 120, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 45% 60%, rgba(139, 129, 120, 0.025) 0%, transparent 35%),
        radial-gradient(circle at 60% 30%, rgba(139, 129, 120, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   ミンサー柄ボーダー（CSS Pattern）
   八つ口の幾何学パターン
   ============================================ */

/* ミンサーボーダー - プライマリカラー */
.minsa-border {
    position: relative;
}

.minsa-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-image:
        repeating-linear-gradient(
            90deg,
            var(--primary) 0px,
            var(--primary) 4px,
            transparent 4px,
            transparent 8px,
            var(--primary) 8px,
            var(--primary) 12px,
            transparent 12px,
            transparent 16px,
            var(--primary) 16px,
            var(--primary) 20px,
            transparent 20px,
            transparent 32px,
            var(--primary) 32px,
            var(--primary) 36px,
            transparent 36px,
            transparent 40px,
            var(--primary) 40px,
            var(--primary) 44px,
            transparent 44px,
            transparent 48px,
            var(--primary) 48px,
            var(--primary) 52px,
            transparent 52px,
            transparent 56px,
            var(--primary) 56px,
            var(--primary) 60px,
            transparent 60px,
            transparent 80px
        );
    background-size: 80px 8px;
    opacity: 0.6;
}

/* ミンサーボーダー - アクセントカラー */
.minsa-border-accent::after {
    background-image:
        repeating-linear-gradient(
            90deg,
            var(--accent) 0px,
            var(--accent) 4px,
            transparent 4px,
            transparent 8px,
            var(--accent) 8px,
            var(--accent) 12px,
            transparent 12px,
            transparent 16px,
            var(--accent) 16px,
            var(--accent) 20px,
            transparent 20px,
            transparent 32px,
            var(--accent) 32px,
            var(--accent) 36px,
            transparent 36px,
            transparent 40px,
            var(--accent) 40px,
            var(--accent) 44px,
            transparent 44px,
            transparent 48px,
            var(--accent) 48px,
            var(--accent) 52px,
            transparent 52px,
            transparent 56px,
            var(--accent) 56px,
            var(--accent) 60px,
            transparent 60px,
            transparent 80px
        );
}

/* シンプルなミンサーライン（細め） */
.minsa-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background-image:
        repeating-linear-gradient(
            90deg,
            var(--primary) 0px,
            var(--primary) 3px,
            transparent 3px,
            transparent 6px,
            var(--primary) 6px,
            var(--primary) 9px,
            transparent 9px,
            transparent 12px,
            var(--primary) 12px,
            var(--primary) 15px,
            transparent 15px,
            transparent 24px,
            var(--primary) 24px,
            var(--primary) 27px,
            transparent 27px,
            transparent 30px,
            var(--primary) 30px,
            var(--primary) 33px,
            transparent 33px,
            transparent 36px,
            var(--primary) 36px,
            var(--primary) 39px,
            transparent 39px,
            transparent 48px
        );
    background-size: 48px 4px;
    opacity: 0.7;
}

/* ============================================
   Modern Cards
   ============================================ */
.card,
.glass-card,
.natural-card,
.modern-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.card:hover,
.glass-card:hover,
.natural-card:hover,
.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--card-border-hover);
}

/* カードの上部にアクセントライン */
.card-accent-top {
    border-top: 3px solid var(--primary);
}

.card-accent-top-warm {
    border-top: 3px solid var(--accent);
}

/* ============================================
   Icon Halo Effect（後光効果）
   ============================================ */
.icon-halo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-halo::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-pale) 0%, transparent 70%);
    filter: blur(8px);
    z-index: -1;
}

.icon-halo-accent::before {
    background: radial-gradient(circle, var(--accent-pale) 0%, transparent 70%);
}

.icon-halo-beni::before {
    background: radial-gradient(circle, var(--beni-pale) 0%, transparent 70%);
}

/* より大きなハロー */
.icon-halo-lg::before {
    width: 150%;
    height: 150%;
    filter: blur(12px);
}

/* ============================================
   Hero Section - シネマティック動画背景
   究極の没入感を追求したミニマルデザイン
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}

/* 背景動画 */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

/* ============================================
   沖縄の海をイメージしたアニメーション背景
   動画がない場合のフォールバック
   ============================================ */

/* アニメーション背景コンテナ */
.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* ベース背景グラデーション */
.hero-section.hero-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        #0a3d62 0%,
        #0e6377 25%,
        #14919b 50%,
        #0e6377 75%,
        #0a3d62 100%
    );
    background-size: 100% 400%;
    animation: oceanGradient 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes oceanGradient {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
}

/* 波のアニメーション - レイヤー1 */
.hero-animated-bg .wave-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation: waveMove 25s linear infinite;
    z-index: 1;
    opacity: 0.6;
}

/* 波のアニメーション - レイヤー2 */
.hero-animated-bg .wave-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.03' d='M0,64L48,80C96,96,192,128,288,128C384,128,480,96,576,106.7C672,117,768,171,864,181.3C960,192,1056,160,1152,144C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
    animation: waveMove 18s linear infinite reverse;
    z-index: 1;
    opacity: 0.4;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 光の粒子エフェクト */
.hero-animated-bg .particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-animated-bg .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s ease-in-out infinite;
}

.hero-animated-bg .particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 20s; }
.hero-animated-bg .particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; animation-duration: 18s; }
.hero-animated-bg .particle:nth-child(3) { left: 35%; top: 30%; animation-delay: 4s; animation-duration: 22s; }
.hero-animated-bg .particle:nth-child(4) { left: 50%; top: 70%; animation-delay: 1s; animation-duration: 16s; }
.hero-animated-bg .particle:nth-child(5) { left: 65%; top: 40%; animation-delay: 3s; animation-duration: 19s; }
.hero-animated-bg .particle:nth-child(6) { left: 80%; top: 25%; animation-delay: 5s; animation-duration: 21s; }
.hero-animated-bg .particle:nth-child(7) { left: 90%; top: 55%; animation-delay: 2.5s; animation-duration: 17s; }
.hero-animated-bg .particle:nth-child(8) { left: 15%; top: 80%; animation-delay: 1.5s; animation-duration: 23s; }
.hero-animated-bg .particle:nth-child(9) { left: 45%; top: 15%; animation-delay: 4.5s; animation-duration: 20s; }
.hero-animated-bg .particle:nth-child(10) { left: 75%; top: 85%; animation-delay: 0.5s; animation-duration: 18s; }

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -50px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -100px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(40px, -30px) scale(1.1);
        opacity: 0.7;
    }
}

/* 光のグラデーションオーバーレイ */
.hero-animated-bg .light-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 50%
    );
    animation: lightShift 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes lightShift {
    0%, 100% {
        background: radial-gradient(
            ellipse at 30% 20%,
            rgba(255, 255, 255, 0.15) 0%,
            transparent 50%
        );
    }
    50% {
        background: radial-gradient(
            ellipse at 70% 30%,
            rgba(255, 255, 255, 0.12) 0%,
            transparent 50%
        );
    }
}

/* ダークオーバーレイ（動画の上に配置） */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* より強いオーバーレイ（テキスト可読性重視） */
.hero-overlay-strong {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* コンテンツコンテナ */
.hero-section > .container,
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

/* ============================================
   ミニマルテキストスタイル
   ============================================ */

/* メインタイトル - 細字でエレガント */
.hero-section.hero-video h1,
.hero-section.hero-video .hero-title {
    color: #FFFFFF;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    line-height: 1.3;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

/* サブタイトル */
.hero-section.hero-video .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* キャッチコピー（小さい上部テキスト） */
.hero-section.hero-video .hero-catchphrase {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ============================================
   フェードインアニメーション
   ============================================ */

/* 初期状態（非表示） */
.hero-fade-in {
    opacity: 0;
    transform: translateY(30px);
}

/* アニメーション後（表示） */
.hero-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 遅延アニメーション */
.hero-fade-in.delay-1 { transition-delay: 0.3s; }
.hero-fade-in.delay-2 { transition-delay: 0.6s; }
.hero-fade-in.delay-3 { transition-delay: 0.9s; }
.hero-fade-in.delay-4 { transition-delay: 1.2s; }

/* ============================================
   CTAボタン - ミニマルスタイル
   ============================================ */
.hero-section.hero-video .hero-cta-minimal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 16px 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.hero-section.hero-video .hero-cta-minimal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* 塗りつぶしCTAボタン */
.hero-section.hero-video .hero-cta-solid {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0a0a0a;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 18px 36px;
    border: none;
    border-radius: 0;
    background: #FFFFFF;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.hero-section.hero-video .hero-cta-solid:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* CTAグループ */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ============================================
   スクロールインジケーター - シネマティック
   ============================================ */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.hero-scroll-indicator span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    position: relative;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #FFFFFF;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(0); opacity: 1; }
    50% { opacity: 0.5; }
    100% { transform: translateY(40px); opacity: 0; }
}

/* ============================================
   レスポンシブ対応
   ============================================ */
@media (max-width: 1023px) {
    .hero-section {
        min-height: 100vh;
        height: 100vh;
    }

    .hero-section.hero-video h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: 0.1em;
    }

    .hero-section.hero-video .hero-subtitle {
        font-size: 1rem;
    }

    .hero-scroll-indicator {
        bottom: 100px; /* モバイルCTAバーの上 */
    }
}

@media (max-width: 640px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section.hero-video .hero-cta-minimal,
    .hero-section.hero-video .hero-cta-solid {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   ローディング画面
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo-text {
    font-family: "Noto Serif JP", serif;
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.2em;
    text-shadow: 0 0 30px rgba(13, 148, 136, 0.5);
}

.loading-bar-container {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.loading-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ============================================
   シネマティックヒーロー - 動画→静止画トランジション
   ============================================ */

/* 静止画レイヤー（背面） */
.hero-static-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0 30px;
    box-sizing: border-box;
}

/* 静止画背景 - Ken Burns Effect */
.hero-static-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenBurns 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* 静止画オーバーレイ */
.hero-static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

/* 動画レイヤー（前面） */
.intro-video-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    transition: opacity 2s ease-in-out;
    pointer-events: auto;
}

.intro-video-layer.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* イントロ動画 */
.intro-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* ホワイトフラッシュ */
.white-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.white-flash.active {
    opacity: 1;
}

/* ============================================
   シネマティック テキストアニメーション
   ============================================ */

/* サブコピー */
.hero-sub-copy {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-sub-copy.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* メインコピー */
.hero-main-copy {
    color: #FFFFFF;
    font-family: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    opacity: 0;
}

.hero-main-copy.animate-in {
    opacity: 1;
}

/* 一文字ずつアニメーション */
.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
}

.hero-char.char-animate {
    animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes charReveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 説明文 */
.hero-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.9rem, 2vw, 1.125rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* CTAボタングループ - アニメーション */
.hero-cinematic .hero-cta-group {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-cinematic .hero-cta-group.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* プライマリCTAボタン */
.hero-cta-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.hero-cta-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(13, 148, 136, 0.5);
}

/* セカンダリCTAボタン */
.hero-cta-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 16px 28px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.hero-cta-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* スクロールインジケーター - アニメーション */
.hero-cinematic .hero-scroll-indicator {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-cinematic .hero-scroll-indicator.animate-in {
    opacity: 0.6;
    transform: translateX(-50%) translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-main-copy {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: 0.05em;
    }

    .hero-cta-primary-btn,
    .hero-cta-secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-cinematic .hero-scroll-indicator {
        bottom: 100px;
    }
}

/* ============================================
   温かみのあるヒーローデザイン（洗練 + 地域密着）
   ============================================ */

/* 温かみのあるオーバーレイ */
.hero-overlay-warm {
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.3) 0%,
        rgba(15, 23, 42, 0.1) 30%,
        rgba(13, 148, 136, 0.05) 60%,
        rgba(15, 23, 42, 0.5) 100%
    ) !important;
}

/* コンテンツ配置 */
.hero-content-warm {
    text-align: center;
    max-width: 800px;
}

/* エリアバッジ */
.hero-area-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-area-badge span {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-area-badge.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-area-badge span {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-area-icon {
    font-size: 1rem;
}

/* メインコピー - 温かみバージョン */
.hero-main-warm {
    font-family: "Noto Serif JP", "游明朝", "Yu Mincho", serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.5;
    color: #FFFFFF;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

/* サブコピー - 温かみバージョン */
.hero-sub-warm {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    order: 2;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.7),
        0 3px 6px rgba(0, 0, 0, 0.5);
}

/* 説明文 - 温かみバージョン */
.hero-desc-warm {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 400;
    line-height: 2;
    color: rgba(255, 255, 255, 0.95);
    max-width: 500px;
    margin: 0 auto 1.5rem;
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.7),
        0 3px 6px rgba(0, 0, 0, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.3);
}

/* 特徴タグ */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-features.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.hero-feature-tag svg {
    color: var(--primary-light);
}

/* CTAボタン - 温かみバージョン */
.hero-cta-warm {
    gap: 1rem;
}

.hero-btn-warm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow:
        0 10px 30px rgba(13, 148, 136, 0.4),
        0 0 0 0 rgba(13, 148, 136, 0.4);
    transition: all 0.4s ease;
    animation: hero-btn-pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.hero-btn-warm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: hero-btn-shine 3s infinite;
}

@keyframes hero-btn-pulse {
    0%, 100% {
        box-shadow:
            0 10px 30px rgba(13, 148, 136, 0.4),
            0 0 0 0 rgba(13, 148, 136, 0.5);
    }
    50% {
        box-shadow:
            0 15px 40px rgba(13, 148, 136, 0.5),
            0 0 0 10px rgba(13, 148, 136, 0);
    }
}

@keyframes hero-btn-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.hero-btn-warm:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(13, 148, 136, 0.5),
        0 0 0 6px rgba(13, 148, 136, 0.2);
    animation: none;
}

.hero-btn-warm:hover::before {
    animation: none;
}

.hero-btn-outline-warm {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 16px 28px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-btn-outline-warm:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================
   2カラムレイアウト（左: テキスト、右: 実績）
   ============================================ */

.hero-content-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    max-width: 1400px;
    padding: 0 3rem;
}

/* 左側: テキスト・ボタン */
.hero-left {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-left .hero-area-badge {
    justify-content: flex-start;
}

.hero-left .hero-sub-warm {
    text-align: left;
}

.hero-left .hero-desc-warm {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.hero-left .hero-cta-group {
    justify-content: flex-start;
}

/* 右側: 実績数値 */
.hero-right {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.hero-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.hero-stat-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.stat-num {
    font-family: "Noto Serif JP", serif;
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-unit {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-light);
}

.hero-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

/* レスポンシブ - 2カラムレイアウト */
@media (max-width: 1024px) {
    .hero-content-split {
        flex-direction: column;
        gap: 3rem;
        padding: 0 2rem;
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
    }

    .hero-left .hero-area-badge {
        justify-content: center;
    }

    .hero-left .hero-sub-warm,
    .hero-left .hero-desc-warm {
        text-align: center;
    }

    .hero-left .hero-cta-group {
        justify-content: center;
    }

    .hero-stats-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .hero-stat-item {
        padding: 1rem 1.25rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    .stat-unit {
        font-size: 1rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    /* スマホ版: アニメーション無効化（レイアウト安定化） */
    .hero-static-bg {
        animation: none !important;
        transform: none !important;
    }

    .hero-animated-bg,
    .hero-animated-bg * {
        animation: none !important;
    }

    .organic-shape {
        animation: none !important;
        display: none;
    }

    .hero-section {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .hero-static-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 70px 0 80px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 背景画像をセクション全体に広げる */
    .hero-section .hero-static-bg,
    .hero-section .hero-static-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .hero-content-split {
        position: relative;
        z-index: 5;
        padding: 0 0.75rem;
        gap: 0.75rem;
    }

    /* スマホ版：全て中央揃え */
    .hero-left {
        text-align: center;
    }

    .hero-left .hero-area-badge {
        justify-content: center;
    }

    .hero-left .hero-sub-warm,
    .hero-left .hero-desc-warm {
        text-align: center;
    }

    .hero-left .hero-cta-group {
        justify-content: center;
    }

    .hero-main-copy {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        line-height: 1.3;
        word-break: keep-all;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.75rem;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .hero-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }

    .hero-main-warm {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
        letter-spacing: 0.03em;
        text-align: center;
    }

    .hero-area-badge {
        padding: 4px 10px;
        justify-content: center;
        margin-bottom: 0.25rem;
    }

    .hero-area-badge span {
        font-size: 0.65rem;
    }

    .hero-btn-warm,
    .hero-btn-outline-warm {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .hero-cta-group {
        gap: 0.375rem;
        margin-bottom: 0.375rem;
        flex-direction: row;
    }

    .hero-cta-group a {
        flex: 1;
    }

    .hero-stat-card-new {
        padding: 3px 2px;
    }

    /* アイコンを非表示 */
    .hero-stat-icon {
        display: none;
    }

    .hero-stat-number {
        font-size: 0.75rem;
        margin-bottom: 0;
        line-height: 1.2;
    }

    .stat-num {
        font-size: 0.75rem;
    }

    .hero-stat-unit {
        font-size: 0.4rem;
    }

    .hero-stat-label {
        font-size: 0.4rem;
        line-height: 1.2;
    }

    .hero-area-card {
        padding: 5px;
    }

    /* 対応エリアのヘッダー非表示 */
    .hero-area-card .flex.items-center.gap-2.mb-2 {
        display: none;
    }

    .hero-area-card .flex.flex-wrap.gap-1\.5 {
        gap: 0.25rem !important;
    }

    .hero-area-tag-main {
        padding: 3px 5px;
        font-size: 0.55rem;
    }

    .hero-area-tag {
        padding: 2px 4px;
        font-size: 0.5rem;
    }

    .hero-area-tag-more {
        font-size: 0.45rem;
        padding: 2px 3px;
    }

    .hero-main-stats {
        padding: 5px;
        border-radius: 8px;
    }

    .hero-main-stats .grid {
        gap: 0.15rem;
    }

    .hero-stats-container.gap-3 {
        gap: 0.25rem !important;
    }

    .hero-right {
        width: 100%;
    }

    .hero-stats-container {
        width: 100%;
        gap: 0.375rem;
    }

    /* 星評価を小さく */
    .hero-left .flex.items-center.gap-1 {
        margin-bottom: 0.25rem;
        margin-top: 0.25rem;
    }

    .hero-left .text-accent.text-2xl {
        font-size: 1.25rem;
    }

    /* サブコピー調整 */
    .hero-sub-copy {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }
}

/* ============================================
   従来のヒーロースタイル（後方互換性）
   ============================================ */

/* 背景画像レイヤー */
.hero-section .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 背景オーバーレイ（画像用） */
.hero-section:not(.hero-video)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(31, 41, 55, 0.7) 0%,
        rgba(31, 41, 55, 0.5) 50%,
        rgba(31, 41, 55, 0.6) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* ライトモード用オーバーレイ */
.hero-section.hero-light::before {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(248, 247, 245, 0.9) 100%
    );
}

/* 背景画像なし（グラデーションのみ）の場合 */
.hero-section.hero-no-overlay::before {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(224, 123, 76, 0.06) 0%, transparent 50%);
}

/* テキストカラー - ライトモード時（ダーク文字） */
.hero-section.hero-light h1,
.hero-section.hero-light .hero-title,
.hero-section.hero-no-overlay h1,
.hero-section.hero-no-overlay .hero-title {
    color: var(--text-dark) !important;
    text-shadow: none;
}

.hero-section.hero-light p,
.hero-section.hero-light .hero-subtitle,
.hero-section.hero-no-overlay p,
.hero-section.hero-no-overlay .hero-subtitle {
    color: var(--text-body) !important;
}

.hero-section.hero-no-overlay h1 span:not(.hero-gradient-text),
.hero-section.hero-light h1 span:not(.hero-gradient-text) {
    color: var(--text-dark) !important;
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 50vh;
        padding: 3rem 0;
    }
}

.hero-left {
    animation: heroFloatUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-right {
    animation: heroFloatUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroFloatUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Bubbles - 装飾的な背景要素 */
.hero-bubble {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

.hero-bubble:nth-child(1) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    top: -150px; right: -150px;
    animation: organicFloat 20s ease-in-out infinite;
}

.hero-bubble:nth-child(2) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(224, 123, 76, 0.06) 0%, transparent 70%);
    bottom: -100px; left: -150px;
    animation: organicFloat 18s ease-in-out infinite reverse;
}

.hero-bubble:nth-child(3) {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
    top: 40%; left: 5%;
    animation: organicFloat 15s ease-in-out infinite 2s;
}

@keyframes organicFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.03); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
}

/* Trust Badge - ダークオーバーレイ時（白背景） */
.trust-badge {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: none;
    backdrop-filter: blur(8px);
}

/* Trust Badge - ライトモード時 */
.hero-section.hero-light .trust-badge,
.hero-section.hero-no-overlay .trust-badge {
    background: var(--primary);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-primary);
}

/* Hero Sub Badge - ダークオーバーレイ時 */
.hero-sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition-normal);
    backdrop-filter: blur(8px);
}

.hero-sub-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Sub Badge - ライトモード時 */
.hero-section.hero-light .hero-sub-badge,
.hero-section.hero-no-overlay .hero-sub-badge {
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    color: var(--text-body) !important;
    box-shadow: var(--shadow-xs);
}

.hero-section.hero-light .hero-sub-badge:hover,
.hero-section.hero-no-overlay .hero-sub-badge:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Gradient Text - ダークオーバーレイ時（明るいグラデーション） */
.hero-gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Text - ライトモード時 */
.hero-section.hero-light .hero-gradient-text,
.hero-section.hero-no-overlay .hero-gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   CTA Buttons
   ============================================ */

/* Primary CTA - 暖色系（お問い合わせ用） */
.hero-cta-primary,
.cta-button,
.contact-btn,
.inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #FFFFFF !important;
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: var(--shadow-accent);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.hero-cta-primary:hover,
.cta-button:hover,
.contact-btn:hover,
.inquiry-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 123, 76, 0.35);
    color: #FFFFFF !important;
}

.hero-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

/* Secondary CTA */
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-normal);
}

.hero-cta-secondary:hover {
    background: var(--primary);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.hero-cta-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-pale);
    border-radius: 8px;
    color: var(--primary);
}

.hero-cta-secondary:hover .hero-cta-phone-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Tertiary Button - プライマリカラー */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: #FFFFFF !important;
}

/* Feature Tags - ダークオーバーレイ時 */
.hero-feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: var(--transition-normal);
    backdrop-filter: blur(8px);
}

.hero-feature-tag svg {
    color: var(--primary-light) !important;
}

.hero-feature-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Feature Tags - ライトモード時 */
.hero-section.hero-light .hero-feature-tag,
.hero-section.hero-no-overlay .hero-feature-tag {
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    color: var(--text-body) !important;
    box-shadow: var(--shadow-xs);
}

.hero-section.hero-light .hero-feature-tag svg,
.hero-section.hero-no-overlay .hero-feature-tag svg {
    color: var(--primary) !important;
}

.hero-section.hero-light .hero-feature-tag:hover,
.hero-section.hero-no-overlay .hero-feature-tag:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Stats Container */
.hero-stats-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Main Stats Card - ダークオーバーレイ対応 */
.hero-main-stats {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

/* Main Stats Card - ライトモード時 */
.hero-section.hero-light .hero-main-stats,
.hero-section.hero-no-overlay .hero-main-stats {
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

.hero-main-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Stat Card */
.hero-stat-card-new {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.hero-stat-card-new:hover {
    background: var(--bg-white);
    transform: translateY(-3px);
    border-color: var(--card-border);
    box-shadow: var(--shadow-sm);
}

.hero-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.hero-stat-number .stat-num {
    color: #1a1a1a !important;
    font-weight: 900;
}

.hero-stat-unit {
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    letter-spacing: 0.05em;
}

/* Area Card - ダークオーバーレイ対応 */
.hero-area-card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

/* Area Card - ライトモード時 */
.hero-section.hero-light .hero-area-card,
.hero-section.hero-no-overlay .hero-area-card {
    background: var(--bg-white);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

.hero-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hero-area-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}

/* Area Card - ライトモードホバー時 */
.hero-section.hero-light .hero-area-card:hover,
.hero-section.hero-no-overlay .hero-area-card:hover {
    box-shadow: var(--shadow-lg);
}

.hero-area-tag-main {
    display: inline-block;
    background: var(--primary);
    color: #FFFFFF !important;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
}

.hero-area-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-body);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
    transition: var(--transition-normal);
}

.hero-area-tag:hover {
    border-color: var(--primary);
    background: var(--bg-white);
    transform: translateY(-2px);
}

.hero-area-tag-more {
    display: inline-block;
    background: transparent;
    border: 1px dashed var(--primary);
    color: var(--primary) !important;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.hero-area-tag-more:hover {
    background: var(--primary-pale);
    border-style: solid;
}

/* Scroll Indicator - ダークオーバーレイ対応 */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    opacity: 0.7;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.hero-scroll-indicator span {
    color: rgba(255, 255, 255, 0.7) !important;
}

.hero-scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.hero-scroll-wheel {
    width: 3px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

/* Scroll Indicator - ライトモード時 */
.hero-section.hero-light .hero-scroll-indicator span,
.hero-section.hero-no-overlay .hero-scroll-indicator span {
    color: var(--text-muted) !important;
}

.hero-section.hero-light .hero-scroll-mouse,
.hero-section.hero-no-overlay .hero-scroll-mouse {
    border-color: var(--primary);
    background: var(--bg-white);
}

.hero-section.hero-light .hero-scroll-wheel,
.hero-section.hero-no-overlay .hero-scroll-wheel {
    background: var(--primary);
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 1024px) {
    .hero-stats-container { max-width: 400px; margin: 0 auto; }
    .hero-scroll-indicator { display: none; }
}

@media (max-width: 640px) {
    .hero-cta-primary { width: 100%; justify-content: center; padding: 14px 20px; }
    .hero-cta-secondary { width: 100%; justify-content: center; }
}

/* ============================================
   Voice Section
   ============================================ */
.voice-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.voice-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.voice-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Voice Card 上部（テキスト部分） */
.voice-card-top {
    flex-shrink: 0;
}

/* Voice Card 下部（画像・名前部分）- カード下部に固定 */
.voice-card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

/* 顧客情報部分 */
.voice-customer-info {
    margin-top: 1rem;
}

/* Voice Card Content */
.voice-content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-body);
    /* テキスト行数制限（6行まで） */
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.8em * 6); /* 6行分の高さを確保 */
    flex-shrink: 0;
}

.voice-content p {
    margin: 0;
    display: inline;
}

.voice-content strong {
    font-weight: 700;
}

.voice-content strong.text-primary {
    color: var(--primary) !important;
}

.voice-content strong.text-accent {
    color: var(--accent) !important;
}

.voice-content strong.text-green-600 {
    color: #059669 !important;
}

/* スマホ版の調整 */
@media (max-width: 767px) {
    .voice-card {
        padding: 1.25rem;
    }

    .voice-content {
        font-size: 0.875rem;
        -webkit-line-clamp: 5; /* スマホでは5行に制限 */
        min-height: calc(1.8em * 5);
    }

    .customer-img,
    .customer-img-placeholder {
        height: 160px;
    }

    .voice-customer-info {
        padding-top: 0.75rem;
    }

    /* イニシャルアイコンを小さく */
    .voice-customer-info .w-14 {
        width: 3rem;
        height: 3rem;
    }

    .voice-customer-info .text-xl {
        font-size: 1rem;
    }
}

/* お客様の声 - 写真コンテナ */
.customer-photo-container {
    padding-top: 1.5rem;
    text-align: center;
}

/* 写真を統一サイズで表示 */
.customer-photo-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

/* 写真本体のスタイル */
.customer-img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    object-fit: cover;
    object-position: center;
}

/* 写真未設定時のプレースホルダー */
.customer-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-gray) 0%, var(--bg-stone) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 2px dashed var(--card-border);
}

.customer-img-placeholder .placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--text-light);
}

.customer-img-placeholder .placeholder-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   Worry Section（暗い背景・白文字）
   ============================================ */
.worry-section {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1e293b 50%, var(--text-dark) 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Worry Section の見出し部分は白文字 */
.worry-section > .container > .text-center h1,
.worry-section > .container > .text-center h2,
.worry-section > .container > .text-center h3,
.worry-section > .container > .text-center p,
.worry-section > .container > .text-center > span {
    color: #FFFFFF !important;
}

.worry-section .text-white {
    color: #FFFFFF !important;
}

.worry-section .text-white\/70 {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Worry Section のアクセントカラーを明るく */
.worry-section .text-accent {
    color: var(--accent-light) !important;
}

.worry-section .bg-accent\/20 {
    background: rgba(251, 146, 60, 0.3) !important;
}

/* worry-bubble内は暗い文字を維持（白背景カード） */
.worry-section .worry-bubble .text-dark {
    color: var(--text-dark) !important;
}

.worry-section .worry-bubble .text-gray-600 {
    color: var(--text-body) !important;
}

.worry-section .worry-bubble .text-primary {
    color: var(--primary) !important;
}

.worry-section .worry-bubble .text-accent {
    color: var(--accent) !important;
}

/* 下部CTAエリアの文字色 */
.worry-section .bg-white\/10 .text-white {
    color: #FFFFFF !important;
}

.worry-bubble {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.worry-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 28px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    transform: rotate(45deg);
    border-radius: 3px;
    border-right: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.worry-bubble:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Selling Section
   ============================================ */
.selling-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.selling-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 768px) {
    .selling-cards-grid { grid-template-columns: 1fr; }
}

.selling-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.selling-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.selling-card-header { position: relative; }

.selling-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.selling-card-wrapper {
    position: relative;
    height: 100%;
}

.selling-card-wrapper .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    background: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============================================
   Area Section
   ============================================ */
.area-section {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.area-badge {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.area-badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-md);
}

.area-badge.main {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.3); }
    50% { box-shadow: 0 0 20px 8px rgba(13, 148, 136, 0.1); }
}

/* ============================================
   Guide Section
   ============================================ */
.guide-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.guide-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Reason Section
   ============================================ */
.reason-section {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.reason-card {
    position: relative;
    transition: var(--transition-smooth);
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.reason-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.reason-number {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 20px;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--primary);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-left-color: var(--accent);
}

/* ============================================
   News Section
   ============================================ */
.news-section {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.news-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--primary);
    transition: var(--transition-smooth);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-xs);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Flow Section
   ============================================ */
.flow-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.flow-line {
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.flow-step {
    position: relative;
    padding-left: 80px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-step.visible {
    opacity: 1;
    transform: translateX(0);
}

.flow-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-size: 24px;
    font-weight: 800;
    box-shadow: var(--shadow-primary);
    z-index: 10;
    transition: var(--transition-normal);
}

.flow-step:hover .flow-number {
    transform: scale(1.05) rotate(-3deg);
}

.flow-step:last-child .flow-number {
    background: var(--accent);
    box-shadow: var(--shadow-accent);
}

.flow-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--card-border);
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.flow-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.flow-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 22px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    transform: rotate(45deg);
    border-left: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

@media (max-width: 768px) {
    .flow-step { padding-left: 70px; }
    .flow-number { width: 50px; height: 50px; font-size: 20px; border-radius: 14px; }
    .flow-line { left: 25px; }
    .flow-content::before { display: none; }
}

/* ============================================
   Company Section
   ============================================ */
.company-section {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* 代表からのメッセージ - 白文字維持 */
.company-section .bg-gradient-to-r,
.company-section .bg-gradient-to-r h1,
.company-section .bg-gradient-to-r h2,
.company-section .bg-gradient-to-r h3,
.company-section .bg-gradient-to-r p,
.company-section .bg-gradient-to-r span,
.company-section [class*="from-primary"][class*="to-primary"],
.company-section [class*="from-primary"][class*="to-primary"] h1,
.company-section [class*="from-primary"][class*="to-primary"] h2,
.company-section [class*="from-primary"][class*="to-primary"] h3,
.company-section [class*="from-primary"][class*="to-primary"] p,
.company-section [class*="from-primary"][class*="to-primary"] span {
    color: #FFFFFF !important;
}

.company-section .bg-gradient-to-r .text-white\/90,
.company-section [class*="from-primary"][class*="to-primary"] .text-white\/90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.company-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.company-photo:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.company-table tr {
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--card-border);
}

.company-table tr:hover {
    background: var(--bg-light);
}

/* ============================================
   CTA Section（暗い背景・白文字）
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #0a3d4d 0%, var(--primary-dark) 50%, #0a3d4d 100%) !important;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* CTA Section は白文字を維持 */
.cta-section,
.cta-section h1,
.cta-section h2,
.cta-section h3,
.cta-section p,
.cta-section span,
.cta-section div {
    color: #FFFFFF !important;
}

.cta-section .text-white,
.cta-section .text-white\/70,
.cta-section .text-white\/80,
.cta-section .text-white\/90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* CTA内の白背景カード・ボタン内は暗い文字 */
.cta-section .bg-white,
.cta-section .bg-white span,
.cta-section .bg-white div,
.cta-section a.bg-white,
.cta-section a.bg-white span,
.cta-section a.bg-white div,
.cta-section .text-dark {
    color: var(--text-dark) !important;
}

.cta-section .bg-white .text-gray-500,
.cta-section a.bg-white .text-gray-500,
.cta-section .text-gray-500 {
    color: var(--text-muted) !important;
}

/* CTA内のprimaryアイコン色維持 */
.cta-section .bg-white .text-primary,
.cta-section a.bg-white .text-primary {
    color: var(--primary) !important;
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
    background: var(--bg-light);
    position: relative;
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--card-border);
}

.map-container:hover {
    box-shadow: var(--shadow-lg);
}

/* マップセクション スマホ対応 */
@media (max-width: 768px) {
    .map-section .p-6 {
        padding: 1rem;
    }

    .map-section .flex.flex-col.md\:flex-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .map-section .flex.items-center.gap-4 {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .map-section .flex.items-center.gap-4 > div:last-child {
        text-align: center;
    }

    .map-section .flex.items-center.gap-4 p {
        word-break: break-all;
        overflow-wrap: break-word;
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .map-section .flex.items-center.gap-4 .text-gray-600 {
        font-size: 0.8rem;
    }

    .map-section a[href*="maps.google"] {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Images
   ============================================ */
img {
    border-radius: 12px;
}

.company-photo img,
.property-card img,
.selling-card img,
.guide-card img,
article img,
.wp-block-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.company-photo img:hover,
.property-card img:hover,
.selling-card img:hover,
.guide-card img:hover {
    box-shadow: var(--shadow-md);
}

/* ============================================
   Animations
   ============================================ */
.stagger-item {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.05s; }
.stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-item:nth-child(3) { transition-delay: 0.15s; }
.stagger-item:nth-child(4) { transition-delay: 0.2s; }
.stagger-item:nth-child(5) { transition-delay: 0.25s; }
.stagger-item:nth-child(6) { transition-delay: 0.3s; }

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: scale(0.95) rotate(-2deg);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotate-in.visible {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* ============================================
   Utilities
   ============================================ */
.number-highlight {
    color: var(--primary) !important;
    font-weight: 800;
}

.line-btn {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    transition: var(--transition-smooth);
    border-radius: 12px;
    color: white !important;
}

.line-btn:hover {
    background: linear-gradient(135deg, #00B900 0%, #009900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.25);
    color: white !important;
}

.worry-card {
    border-left: 4px solid var(--primary);
    border-radius: 16px;
    background: var(--card-bg);
}

.check-list li::before {
    content: "\2713";
    color: var(--primary) !important;
    font-weight: bold;
    margin-right: 10px;
}

.area-image {
    transition: var(--transition-normal);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.area-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Footer（メインカラー背景）
   ============================================ */
.footer-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-dark) 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

.footer-section p,
.footer-section span,
.footer-section li,
.footer-section a,
.footer-section div {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-section h1,
.footer-section h2,
.footer-section h3,
.footer-section h4,
.footer-section h5,
.footer-section h6 {
    color: #FFFFFF !important;
}

.footer-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    pointer-events: none;
}

.footer-glow-1 {
    top: -150px;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.footer-glow-2 {
    bottom: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.footer-link {
    position: relative;
    display: inline-block;
    transition: var(--transition-normal);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-link:hover {
    color: #FFFFFF !important;
}

.footer-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.footer-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.footer-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.footer-social:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: white !important;
}

.footer-social.line:hover {
    background: #06C755;
    border-color: #06C755;
}

.footer-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    transition: var(--transition-smooth);
    border-radius: 12px;
    color: white !important;
}

.footer-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: white !important;
}

.copyright-line {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    height: 1px;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--card-border);
    transition: background 0.4s ease, border-color 0.4s ease;
}

header a {
    color: var(--text-body) !important;
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--primary) !important;
}

/* ============================================
   ヘッダー（白背景・固定）
   ============================================ */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: #FFFFFF !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    z-index: 100;
}

/* トップバー - 動画ヒーロー時は非表示 */
body.has-video-hero .top-contact-bar {
    display: none;
}

/* スクロール時のヘッダー */
header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ヒーローセクション - ヘッダー分のパディングトップ */
body.has-video-hero .hero-section {
    padding-top: 0;
}

/* Top bar - 通常時 */
.bg-dark {
    background: var(--text-dark) !important;
}

.bg-dark-light\/80,
.bg-dark-light\/95 {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
}

/* ============================================
   Selling Page Styles
   ============================================ */
.hero-bg {
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-white) 100%);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.step-line {
    position: absolute;
    left: 28px;
    top: 56px;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.cost-card {
    border-left: 4px solid var(--primary);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.tax-card {
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.table-stripe tr:nth-child(even) {
    background-color: var(--bg-light);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    section { padding-top: 3rem; padding-bottom: 3rem; }
    section.py-24 { padding-top: 4rem; padding-bottom: 4rem; }
}

/* ============================================
   WordPress Styles
   ============================================ */
.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.entry-content a {
    color: var(--primary) !important;
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--primary-dark) !important;
}

.news-list-item {
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    transition: var(--transition-fast);
}

.news-list-item:hover {
    background: var(--bg-light);
    padding-left: 1rem;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-date {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
}

.news-title {
    font-weight: 600;
    color: var(--text-dark);
}

.news-title:hover {
    color: var(--primary) !important;
}

/* Prose Styles */
.prose {
    line-height: 1.9;
    color: var(--text-body);
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    color: var(--text-dark);
}

.prose h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-body);
    transition: var(--transition-smooth);
}

.pagination .page-numbers:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-primary);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Property Cards */
.property-card {
    transition: var(--transition-smooth);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Hero Title Animation */
.hero-title {
    animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-title-delay-1 {
    animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.hero-title-delay-2 {
    animation: titleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

@keyframes titleReveal {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Sparkle Effect */
.sparkle {
    position: relative;
}

.sparkle::before, .sparkle::after {
    content: '\2726';
    position: absolute;
    font-size: 18px;
    color: var(--accent) !important;
    animation: sparkleBlink 2s ease-in-out infinite;
}

.sparkle::before {
    top: -6px; left: -20px;
}

.sparkle::after {
    bottom: -6px; right: -20px;
    animation-delay: 1s;
}

@keyframes sparkleBlink {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* Hero Stat Card */
.hero-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.hero-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.hero-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Mega CTA */
.mega-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    box-shadow: var(--shadow-accent);
    transition: var(--transition-smooth);
}

.mega-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(224, 123, 76, 0.35);
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.feature-tag {
    animation: featureReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.feature-tag:nth-child(1) { animation-delay: 0.5s; }
.feature-tag:nth-child(2) { animation-delay: 0.6s; }
.feature-tag:nth-child(3) { animation-delay: 0.7s; }
.feature-tag:nth-child(4) { animation-delay: 0.8s; }

@keyframes featureReveal {
    0% { transform: translateY(15px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.area-tag {
    animation: tagReveal 0.5s ease-out forwards;
    opacity: 0;
}

.area-tag:nth-child(1) { animation-delay: 0.9s; }
.area-tag:nth-child(2) { animation-delay: 1s; }
.area-tag:nth-child(3) { animation-delay: 1.1s; }
.area-tag:nth-child(4) { animation-delay: 1.2s; }
.area-tag:nth-child(5) { animation-delay: 1.3s; }
.area-tag:nth-child(6) { animation-delay: 1.4s; }

@keyframes tagReveal {
    0% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* ============================================
   Tailwind Overrides for Light Theme
   ============================================ */
.bg-white {
    background: var(--bg-white) !important;
}

.bg-gray-50,
.bg-slate-50 {
    background: var(--bg-light) !important;
}

.bg-gray-100,
.bg-slate-100 {
    background: var(--bg-gray) !important;
}

.text-white {
    color: #FFFFFF !important;
}

.text-gray-300,
.text-slate-300 {
    color: var(--text-muted) !important;
}

.text-gray-400,
.text-slate-400 {
    color: var(--text-light) !important;
}

.text-gray-500,
.text-slate-500 {
    color: var(--text-muted) !important;
}

.text-gray-600,
.text-slate-600 {
    color: var(--text-body) !important;
}

.text-gray-700,
.text-slate-700 {
    color: var(--text-body) !important;
}

.text-gray-800,
.text-slate-800 {
    color: var(--text-dark) !important;
}

.text-gray-900,
.text-slate-900,
.text-dark {
    color: var(--text-dark) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.border-gray-200,
.border-slate-200 {
    border-color: var(--card-border) !important;
}

.border-white\/10 {
    border-color: var(--card-border) !important;
}

/* Yellow stars */
.text-yellow-400,
.text-yellow-500 {
    color: #F59E0B !important;
}

/* Green indicators */
.text-green-400,
.text-green-500,
.text-green-600 {
    color: #059669 !important;
}

/* ============================================
   Mobile Fixed CTA
   ============================================ */
/* モバイル固定CTAバー */
.fixed.bottom-0 {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    padding-bottom: env(safe-area-inset-bottom, 0) !important;
    background: rgba(26, 26, 26, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* Override dark backgrounds */
.bg-dark,
.bg-dark-light {
    background: var(--text-dark) !important;
}

/* ============================================
   Contact Form Buttons
   ============================================ */
a[href*="contact"],
a[href*="#contact"],
button[type="submit"],
.submit-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

a[href*="contact"]:hover,
a[href*="#contact"]:hover,
button[type="submit"]:hover,
.submit-btn:hover {
    box-shadow: var(--shadow-accent) !important;
    transform: translateY(-2px) !important;
}

/* ============================================
   Section Title Decorations
   ============================================ */
.section-badge {
    display: inline-block;
    background: var(--primary-pale);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-badge-accent {
    background: var(--accent-pale);
    color: var(--accent);
}

/* ============================================
   iPhone セーフエリア対応
   ============================================ */

/* フッター */
footer,
.site-footer,
.footer-section,
#footer {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* 下部固定要素 */
.fixed-bottom,
.sticky-footer,
.floating-cta,
.mobile-fixed-menu {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* bodyにも適用（全体対応） */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   Google Maps / iframe 埋め込み対応
   ============================================ */

/* マップ・動画埋め込み用コンテナ */
.map-container,
.google-map,
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 アスペクト比 */
    overflow: hidden;
}

.map-container iframe,
.google-map iframe,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* スマホ版でのマップ高さ調整 */
@media (max-width: 768px) {
    .map-container,
    .google-map {
        min-height: auto;
        padding-bottom: 75%; /* 4:3に近い比率 */
    }
}

/* ============================================
   カード・グリッドアイテムの高さ揃え
   ============================================ */

/* Flexboxで高さを揃える */
.card-grid,
.feature-grid {
    display: flex;
    flex-wrap: wrap;
}

.card-grid > *,
.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* カード内の下部要素を固定 */
.card-bottom,
.card-footer {
    margin-top: auto;
}

/* ============================================
   スマホ版: FAQ・会社概要セクションの中央揃え
   ============================================ */
@media (max-width: 1023px) {
    /* FAQセクション */
    .faq-section .lg\:w-1\/3 {
        text-align: center;
    }

    .faq-section .lg\:w-1\/3 span,
    .faq-section .lg\:w-1\/3 h2,
    .faq-section .lg\:w-1\/3 p {
        text-align: center;
    }

    .faq-section .lg\:w-1\/3 a {
        justify-content: center;
    }

    /* 会社概要セクション */
    .company-section .lg\:w-2\/5 {
        text-align: center;
    }

    .company-section .lg\:w-2\/5 span,
    .company-section .lg\:w-2\/5 h2 {
        text-align: center;
    }

    .company-section .lg\:w-2\/5 span.inline-block {
        display: inline-block;
    }
}

/* ============================================
   最終調整 - プロフェッショナル仕上げ
   ============================================ */

/* ------------------------------------------
   1. NO IMAGE プレースホルダーの処理
   ------------------------------------------ */

/* プレースホルダー画像を目立たなくする */
.customer-img-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    border: 1px dashed var(--card-border);
    opacity: 0.7;
}

/* 記事一覧のプレースホルダー */
.post-thumbnail-placeholder,
.no-image,
.wp-post-image[src*="placeholder"],
img[src*="no-image"],
img[src*="noimage"] {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* 空のサムネイルコンテナを非表示 */
.post-thumbnail:empty,
.thumbnail-wrapper:empty {
    display: none;
}

/* ------------------------------------------
   2. タイポグラフィ調整（可読性向上）
   ------------------------------------------ */

/* 見出しのバランス調整 */
h1, h2, h3, h4 {
    text-wrap: balance;
}

/* 本文の改行制御 */
p, .text-body, .description {
    word-break: auto-phrase;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* スマホ版：本文を左揃えに */
@media (max-width: 768px) {
    /* 長文の本文は左揃え */
    .about-section p,
    .worry-section p:not(.text-center),
    .faq-section p,
    .company-section p {
        text-align: left;
    }

    /* 短いキャッチコピーは中央維持 */
    .section-subtitle,
    .hero-description {
        text-align: center;
    }
}

/* ------------------------------------------
   3. 空白バグ修正（マップセクション等）
   ------------------------------------------ */

/* 中身が空の要素の高さをリセット */
section:empty,
.map-container:empty,
.iframe-wrapper:empty {
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: none;
}

/* iframeが読み込まれない場合のフォールバック */
.map-container:not(:has(iframe)),
.google-map:not(:has(iframe)) {
    min-height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container:not(:has(iframe))::after,
.google-map:not(:has(iframe))::after {
    content: "地図を読み込み中...";
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ------------------------------------------
   4. スマホ版ヒーローエリア余白調整
   ------------------------------------------ */

@media (max-width: 768px) {
    /* 実績ボックスとCTAボタンの間に余白 */
    .hero-right {
        margin-top: 0.5rem;
    }

    .hero-cta-group {
        margin-top: 0.5rem;
    }

    /* hero-leftの下余白 */
    .hero-left {
        margin-bottom: 0.25rem;
    }
}

/* ------------------------------------------
   5. その他の細かい調整
   ------------------------------------------ */

/* ボタンのホバー効果を滑らかに */
a, button {
    transition: all 0.2s ease;
}

/* フォーカス時のアウトライン改善 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* 画像の読み込み中表示 */
img {
    background-color: var(--bg-light);
}

img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* スクロールの滑らかさ */
html {
    scroll-behavior: smooth;
}

/* 選択テキストの色 */
::selection {
    background-color: var(--primary);
    color: white;
}

/* プリントスタイル */
@media print {
    .fixed.bottom-0,
    .hero-section video,
    .hero-animated-bg {
        display: none !important;
    }
}
