/* ===================================
   リセット & 変数定義
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - モダングラデーション */
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --secondary: #6366f1;
    --secondary-dark: #4f46e5;
    --accent: #f59e0b;
    
    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* テキストカラー */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    /* 背景 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    
    /* グラスモーフィズム */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    
    /* シャドウ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* スペーシング */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* ボーダーラジウス */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* アニメーション */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===================================
   コンテナ
=================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===================================
   ヒーロー＆シミュレーターセクション
=================================== */
.hero-simulator {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    bottom: -10%;
    right: -5%;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-accent);
    top: 40%;
    right: 10%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: start;
}

/* ===================================
   ヒーローラベル
=================================== */
.hero-label {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

.hero-text {
    color: white;
    padding-top: var(--space-xl);
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.highlight-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-icon {
    color: var(--primary);
    font-weight: 700;
}

/* グラスモーフィズムカード */
.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.simulator-card {
    padding: var(--space-xl);
    max-width: 100%;
}

.simulator-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.simulator-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.simulator-header p {
    color: var(--text-secondary);
    font-size: 0.938rem;
}

/* フォームスタイル */
.simulator-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.form-section {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.form-section:hover {
    box-shadow: var(--shadow-md);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    align-items: stretch;
}

/* PC向け：シミュレーター全体のレイアウト最適化 */
@media (min-width: 1025px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .simulator-card {
        max-width: 100%;
    }
    
    /* フォームフィールドを4カラムに */
    .form-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: start;
    }
    
    /* 売却予定価格と購入価格を2カラム幅に */
    .form-grid > .form-group:nth-child(1),
    .form-grid > .form-group:nth-child(2) {
        grid-column: span 2;
    }
    
    /* セクション1と2・3を横並びにする */
    .simulator-form {
        display: grid;
        grid-template-columns: 1.3fr 0.7fr;
        gap: var(--space-lg);
    }
    
    .simulator-form .form-section:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
    }
    
    .simulator-form .form-section:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .simulator-form .form-section:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .simulator-form > button {
        grid-column: 1 / -1;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label-text {
    line-height: 1.4;
}

.label-badges {
    display: flex;
    gap: var(--space-xs);
}

.required {
    display: inline-block;
    padding: 2px 8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.optional {
    display: inline-block;
    padding: 2px 8px;
    background: var(--text-light);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-primary);
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-suffix {
    position: absolute;
    right: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    pointer-events: none;
}

.input-group .form-control {
    padding-right: 60px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.text-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.text-link:hover {
    color: var(--primary-dark);
}

/* 高精度査定インラインリンク */
.assessment-link-inline {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.assessment-link-inline:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #2563eb;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.assessment-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.assessment-text {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.assessment-text strong {
    font-size: 0.938rem;
    color: var(--text-primary);
    font-weight: 700;
}

.assessment-arrow {
    font-size: 1.5rem;
    color: #3b82f6;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.assessment-link-inline:hover .assessment-arrow {
    transform: translateX(4px);
}

/* 税制選択カード */
.tax-option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.tax-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.tax-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tax-card-content {
    padding: var(--space-lg);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    background: white;
    transition: var(--transition);
    height: 100%;
}

.tax-card:hover .tax-card-content {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tax-card input[type="radio"]:checked + .tax-card-content {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.tax-card-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.tax-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tax-card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    width: fit-content;
}

.tax-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 折りたたみセクション */
.collapsible .section-title {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.collapsible .toggle-icon {
    margin-left: auto;
    transition: var(--transition);
}

.collapsible .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible.active .toggle-icon {
    transform: rotate(180deg);
}

.collapsible.active .collapsible-content {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

/* ボタン */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 1.25em;
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* 結果表示エリア */
.result-area {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 2px dashed #e2e8f0;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.result-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* メイン結果カード */
.gradient-card {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: var(--space-lg);
}

.result-main-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.result-main-value {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--space-lg);
    line-height: 1;
}

.result-sub-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.result-sub-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.result-sub-item .label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.result-sub-item .value {
    font-size: 1.25rem;
    font-weight: 700;
}

.result-sub-item .value.danger {
    color: #fecaca;
}

.badge-small {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    margin-left: var(--space-xs);
}

/* 詳細結果グリッド */
.result-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-card {
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: center;
    transition: var(--transition);
}

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

.detail-card.highlight {
    background: var(--primary-light);
    border-color: var(--primary);
}

.detail-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 1.25rem;
    color: white;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.detail-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 新居結果 */
.new-home-result {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.new-home-result h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* 結果CTA */
.result-cta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.result-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.result-cta a i {
    font-size: 1.1rem;
}

/* ===================================
   特徴セクション
=================================== */
.features-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-primary);
}

.section-title-large {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: calc(-1 * var(--space-md));
    margin-bottom: var(--space-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.feature-card-modern {
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon-modern {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    line-height: 1;
}

.feature-card-modern h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-card-modern p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   ポジションマップ
=================================== */
.position-map-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-secondary);
}

.position-map-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.map-axis {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

.map-axis-y {
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.map-axis-x {
    justify-content: center;
    margin-top: var(--space-md);
}

.axis-label {
    font-size: 0.875rem;
}

.axis-arrow {
    font-size: 1.5rem;
}

.map-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-md);
    min-height: 500px;
}

.map-quadrant {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 2px solid;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: var(--transition);
}

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

.quadrant-1 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.quadrant-2 {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

.quadrant-3 {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #9ca3af;
}

.quadrant-4 {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: var(--primary);
}

.quadrant-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.quadrant-badge.warning {
    background: var(--accent);
}

.quadrant-badge.secondary {
    background: var(--text-light);
}

.quadrant-badge.success {
    background: var(--primary);
}

.map-quadrant h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.map-quadrant p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   価値提案セクション
=================================== */
.value-proposition-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-primary);
}

.section-header-center {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.value-card {
    position: relative;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
}

.value-card-primary::before {
    background: var(--gradient-primary);
}

.value-card-secondary::before {
    background: var(--gradient-secondary);
}

.value-card-accent::before {
    background: var(--gradient-accent);
}

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

.value-number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    z-index: 0;
}

.value-icon {
    width: 100%;
    height: 180px;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.value-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon img {
    transform: scale(1.05);
}

/* 新しいFeatureカードデザイン */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================
   サービスメリット（ウリドキ完全コピー）
=================================== */
.features {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.features .section-title {
    display: block;
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    color: #0f172a;
    padding-bottom: 30px;
}

.features .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.features .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #334155;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* ジグザグレイアウト */
.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 120px;
    align-items: center;
    position: relative;
}

.feature-item:last-child {
    margin-bottom: 0;
}

/* 偶数番目は画像が右 */
.feature-item:nth-child(even) {
    direction: rtl;
}

.feature-item:nth-child(even) > * {
    direction: ltr;
}

/* コネクティングライン */
.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -60px;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #cbd5e1, transparent);
    transform: translateX(-50%);
    z-index: -1;
}

.feature-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #f9fafb;
    height: 350px;
}

.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    position: relative;
    z-index: 2;
}

.feature-item:hover .feature-image-wrapper img {
    transform: scale(1.05);
}

.feature-content-wrapper {
    padding: 0 20px;
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 32px;
    font-weight: 800;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
    position: relative;
}

.feature-number::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    opacity: 0.2;
    z-index: -1;
    filter: blur(15px);
}

.feature-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
    line-height: 1.3;
}

.feature-subtitle {
    font-size: 20px;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.5;
}

.feature-description {
    font-size: 16px;
    line-height: 1.9;
    color: #1e293b;
    margin-bottom: 30px;
    font-weight: 400;
}

.features .feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.features .feature-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    color: #1e293b;
    line-height: 1.7;
    font-size: 16px;
    transition: all 0.3s ease;
}

.features .feature-list li:hover {
    color: #0f172a;
}

.features .feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 9px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
}

.features .feature-list li:hover::before {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.features .feature-list li strong {
    color: #0f172a;
    font-weight: 700;
}

/* レスポンシブ - タブレット */
@media (max-width: 968px) {
    .feature-item {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .feature-item:nth-child(even) {
        direction: ltr;
    }
    
    .feature-image-wrapper {
        height: 300px;
        margin-bottom: 20px;
    }
    
    .feature-content-wrapper {
        padding: 0;
    }
    
    .feature-title {
        font-size: 28px;
    }
    
    .feature-subtitle {
        font-size: 18px;
    }
    
    .feature-item:not(:last-child)::after {
        display: none;
    }
}

/* レスポンシブ - モバイル */
@media (max-width: 640px) {
    .features {
        padding: 60px 0;
    }
    
    .features .section-title {
        font-size: 30px;
    }
    
    .features .section-subtitle {
        font-size: 16px;
        margin-bottom: 60px;
    }
    
    .feature-item {
        margin-bottom: 60px;
    }
    
    /* スマホ版では画像を非表示 */
    .feature-image-wrapper {
        display: none;
    }
    
    .feature-number {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .feature-title {
        font-size: 24px;
    }
    
    .feature-subtitle {
        font-size: 17px;
    }
    
    .feature-description,
    .features .feature-list li {
        font-size: 15px;
    }
}

.feature-card-new {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-image-new {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.feature-image-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 118, 110, 0.1) 100%);
    pointer-events: none;
}

.feature-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card-new:hover .feature-image-new img {
    transform: scale(1.08);
}

.feature-card-content {
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
}

.feature-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.feature-card-content p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    font-size: 0.875rem;
    color: var(--text-primary);
    padding: var(--space-xs) 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-image-new {
        height: 180px;
    }
    
    .feature-card-content {
        padding: var(--space-md) var(--space-lg) var(--space-lg);
    }
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.4;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.value-description {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.value-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-features li {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    padding-left: 0;
    line-height: 1.6;
}

/* ===================================
   Tipsセクション（ウリドキ完全コピー）
=================================== */
.tips {
    padding: 100px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.tips::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.03) 0%, transparent 40%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.tips-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tips .section-title {
    display: block;
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    color: #0f172a;
    padding-bottom: 30px;
}

.tips .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.tips .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #334155;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tip-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.tip-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.tip-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.tip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tip-card:hover .tip-image img {
    transform: scale(1.05);
}

.tip-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tip-category-new {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.tip-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tip-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tip-card:hover .tip-title {
    color: var(--primary-dark);
}

.tip-excerpt {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.tip-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.tip-date {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
}

.tip-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tip-card:hover .tip-link {
    color: var(--primary-dark);
}

/* Tipsレスポンシブ - タブレット */
@media (max-width: 1024px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 968px) {
    .tips {
        padding: 80px 20px;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .tip-content {
        padding: 20px;
    }
    
    .tip-title {
        font-size: 18px;
    }
}

/* Tipsレスポンシブ - モバイル */
@media (max-width: 640px) {
    .tips {
        padding: 60px 20px;
    }
    
    .tips .section-title {
        font-size: 30px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .tip-image {
        height: 180px;
    }
    
    .tip-content {
        padding: 20px;
    }
    
    .tip-title {
        font-size: 18px;
    }
    
    .tip-excerpt {
        font-size: 14px;
    }
}

/* ===================================
   統合CTAセクション（タブ切り替え）
=================================== */
.unified-cta-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
}

.unified-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.unified-cta-header {
    text-align: center;
    margin-bottom: 40px;
}

.unified-cta-section .section-title {
    display: block;
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #0f172a;
    padding-bottom: 30px;
    position: relative;
}

.unified-cta-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.unified-cta-section .section-subtitle {
    font-size: 18px;
    color: #334155;
    font-weight: 500;
}

/* タブ付きフォームカード（一体化） */
.cta-form-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* タブ切り替え */
.cta-tabs {
    display: flex;
    gap: 0;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.cta-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    position: relative;
}

.cta-tab:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

.cta-tab.active {
    background: #ffffff;
    color: var(--primary);
}

.cta-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-tab .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.cta-tab .tab-icon svg {
    transition: fill 0.3s ease;
    fill: #64748b;
}

.cta-tab.active .tab-icon svg {
    fill: var(--primary);
}

.cta-tab:hover .tab-icon svg {
    fill: #0f172a;
}

.cta-tab.active:hover .tab-icon svg {
    fill: var(--primary);
}

/* タブコンテンツ */
.cta-tab-content {
    display: none;
    padding: 40px;
    position: relative;
    min-height: 400px;
}

.cta-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.tab-description {
    text-align: center;
    margin-bottom: 30px;
}

.tab-description p {
    font-size: 16px;
    color: #334155;
    margin: 0;
}

/* 相談メリット */
.consultation-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #86efac;
}

.consultation-benefits .benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #0f172a;
}

.consultation-benefits .benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 統合フォーム */
.unified-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.form-grid-unified {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-grid-unified .form-group-full {
    grid-column: span 2;
}

/* CTAボタン */
.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta.btn-line {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
}

.btn-cta.btn-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 118, 110, 0.4);
}

.btn-cta.btn-consultation {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-cta.btn-consultation:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

/* フォームノート */
.form-note {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 15px;
}

/* ローディングスピナー */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功ポップアップ */
.success-popup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.success-popup-content {
    text-align: center;
    padding: 40px 30px;
    position: relative;
    animation: popupFadeIn 0.4s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.popup-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.success-popup .success-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.success-popup h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.success-popup p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .unified-cta-section {
        padding: 60px 0;
    }
    
    .unified-cta-section .section-title {
        font-size: 28px;
    }
    
    .cta-form-card {
        border-radius: 16px;
    }
    
    .cta-tabs {
        flex-direction: row;
        gap: 0;
    }
    
    .cta-tab {
        padding: 14px 12px;
        font-size: 14px;
        gap: 6px;
    }
    
    .cta-tab .tab-icon {
        font-size: 16px;
    }
    
    .cta-tab .tab-text {
        font-size: 13px;
    }
    
    .cta-tab-content {
        padding: 25px 20px;
    }
    
    .form-grid-unified {
        grid-template-columns: 1fr;
    }
    
    .form-grid-unified .form-group-full {
        grid-column: span 1;
    }
    
    .consultation-benefits {
        padding: 15px;
    }
    
    .consultation-benefits .benefit-item {
        font-size: 14px;
    }
    
    .btn-cta {
        padding: 16px 30px;
        font-size: 16px;
    }
}

/* ===================================
   提携税理士セクション（ウリドキ完全コピー）
=================================== */
.partner-expert {
    padding: 80px 20px 100px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.partner-expert::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.03) 0%, transparent 40%);
    animation: float 25s ease-in-out infinite reverse;
}

.partner-expert-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.partner-expert .section-title {
    display: block;
    font-size: 32px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 900;
    color: #0f172a;
    padding-bottom: 30px;
    position: relative;
}

.partner-expert .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.partner-expert .section-subtitle {
    font-size: 18px;
    color: #334155;
    font-weight: 500;
}

.expert-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.expert-card {
    padding: 50px;
}

.expert-header {
    margin-bottom: 40px;
    text-align: center;
}

.expert-logo h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.expert-website {
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.expert-website:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.expert-profile {
    margin-bottom: 50px;
}

.expert-info {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.expert-photo {
    flex-shrink: 0;
}

.expert-photo-placeholder {
    width: 100px;
    height: 130px;
    background: #f9fafb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.expert-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.expert-details {
    flex: 1;
}

.expert-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.career-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
}

.career-item {
    background: #f9fafb;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

.career-arrow {
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

.career-description {
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
}

.career-description strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.consultation-topics {
    background: #f9fafb;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.consultation-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 30px;
    text-align: center;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.topic-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.topic-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(15, 118, 110, 0.1);
}

.topic-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topic-icon i {
    font-size: 20px;
    color: white;
}

.topic-content h6 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.topic-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.cta-button-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
    transition: all 0.3s ease;
}

.cta-button-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 118, 110, 0.4);
}

.pc-only {
    display: inline;
}

/* partner-expert レスポンシブ - タブレット */
@media (max-width: 968px) {
    .pc-only {
        display: none;
    }
    
    .partner-expert .section-title {
        font-size: 26px;
    }
    
    .expert-card {
        padding: 30px;
    }
    
    .expert-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .expert-photo {
        margin: 0 auto;
    }
    
    .career-path {
        justify-content: center;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
}

/* partner-expert レスポンシブ - モバイル */
@media (max-width: 640px) {
    .partner-expert {
        padding: 60px 20px;
    }
    
    .partner-expert .section-title {
        font-size: 22px;
        margin-bottom: 40px;
    }
    
    .expert-card {
        padding: 20px;
    }
    
    .expert-logo h3 {
        font-size: 20px;
    }
    
    .expert-website {
        font-size: 14px;
    }
    
    .expert-photo-placeholder {
        width: 90px;
        height: 120px;
    }
    
    .career-path {
        gap: 5px;
    }
    
    .career-item {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .career-arrow {
        font-size: 14px;
    }
    
    .career-description {
        font-size: 14px;
    }
    
    .consultation-topics {
        padding: 25px 20px;
    }
    
    .consultation-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .topic-item {
        padding: 16px;
        gap: 14px;
    }
    
    .topic-icon {
        width: 42px;
        height: 42px;
    }
    
    .topic-icon i {
        font-size: 18px;
    }
    
    .topic-content h6 {
        font-size: 14px;
    }
    
    .topic-content p {
        font-size: 12px;
    }
    
    .cta-button-line {
        padding: 15px 30px;
        font-size: 16px;
    }
}

/* ===================================
   税制解説セクション（新デザイン）
=================================== */ */
.tax-education-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    position: relative;
    overflow: hidden;
}

.tax-education-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%2310b981" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.4;
    z-index: 0;
}

.section-header-premium {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.section-title-premium {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle-premium {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.highlight-number {
    font-size: 1.5em;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tax-columns-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tax-column-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
    height: 180px;
}

.tax-column-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.column-visual {
    position: relative;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
}

.column-icon {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.column-tag {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.column-tag.badge-new {
    background: var(--gradient-accent);
}

.column-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.column-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    color: var(--text-primary);
}

.column-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-cta {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: var(--transition);
}

.tax-column-card:hover .column-cta {
    gap: var(--space-sm);
    transform: translateX(4px);
}

.column-duration {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ===================================
   CTAセクション
=================================== */
.cta-section {
    padding: var(--space-2xl) 0;
}

.cta-consultation {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.cta-assessment {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.cta-content-modern {
    max-width: 800px;
    margin: 0 auto;
}

.cta-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
}

.cta-header h2 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    color: var(--text-primary);
}

.benefit-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.modern-form {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group-full {
    grid-column: 1 / -1;
}

.success-message-modern {
    text-align: center;
    padding: var(--space-2xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.success-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 3rem;
    font-weight: 700;
}

.success-message-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.success-message-modern p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ===================================
   提携税理士事務所セクション
=================================== */
.tax-office-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);
}

.tax-office-card {
    background: white;
    border-radius: 24px;
    padding: var(--space-2xl);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #E5E7EB;
}

.tax-office-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 2px solid #F0FDFA;
}

.tax-office-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0F766E 0%, #059669 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: 0.5px;
}

.tax-office-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: #111827;
    margin: var(--space-md) 0 var(--space-sm);
    letter-spacing: -0.02em;
}

.tax-office-tagline {
    font-size: 1.125rem;
    color: #6B7280;
    margin: 0;
}

.tax-office-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.tax-office-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.feature-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 100%);
    border-radius: 16px;
    border: 1px solid #CCFBF1;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 15px -3px rgba(15, 118, 110, 0.1);
    border-color: #99F6E4;
}

.feature-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.feature-text p {
    font-size: 0.938rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

.tax-office-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: #FAFAFA;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

.info-row {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid #E5E7EB;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 700;
    color: #374151;
    min-width: 100px;
    font-size: 0.938rem;
}

.info-value {
    color: #6B7280;
    font-size: 0.938rem;
    line-height: 1.6;
}

.info-value a {
    color: #0F766E;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #059669;
    text-decoration: underline;
}

/* ===================================
   FAQ
=================================== */
.faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-section .section-title-large {
    text-align: center;
    margin-bottom: 50px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item-modern {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item-modern:first-child {
    border-radius: 16px 16px 0 0;
}

.faq-item-modern:last-child {
    border-radius: 0 0 16px 16px;
    border-bottom: none;
}

.faq-item-modern:only-child {
    border-radius: 16px;
}

.faq-question-modern {
    padding: 24px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: white;
    transition: background 0.3s ease;
}

.faq-question-modern:hover {
    background: #f8fafc;
}

.faq-question-modern::-webkit-details-marker {
    display: none;
}

.faq-question-modern::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item-modern[open] .faq-question-modern::after {
    transform: rotate(45deg);
}

.faq-item-modern[open] .faq-question-modern {
    color: var(--primary);
}

.faq-answer-modern {
    padding: 0 30px 24px;
    background: white;
}

.faq-answer-modern p {
    font-size: 0.938rem;
    color: #64748b;
    line-height: 1.8;
    margin: 0;
}

/* FAQレスポンシブ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-question-modern {
        padding: 20px;
        font-size: 0.938rem;
    }
    
    .faq-answer-modern {
        padding: 0 20px 20px;
    }
    
    .faq-answer-modern p {
        font-size: 0.875rem;
    }
}

/* ===================================
   ヘッダー
=================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
}

.header-logo .logo-icon {
    font-size: 1.5rem;
}

.header-logo .logo-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.header-logo .logo-accent {
    color: var(--primary);
}

.header-cta-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.813rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-cta-btn span {
    white-space: nowrap;
}

.header-cta-consultation {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.header-cta-consultation:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.header-cta-line {
    background: #06C755;
    color: white;
}

.header-cta-line:hover {
    background: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(6, 199, 85, 0.3);
}

.header-cta-btn svg {
    flex-shrink: 0;
}

/* ヘッダー分のpadding-top */
body {
    padding-top: 64px;
}

/* ヘッダーレスポンシブ */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 16px;
    }
    
    .header-logo .logo-text {
        font-size: 0.875rem;
    }
    
    .header-cta-buttons {
        gap: 6px;
    }
    
    .header-cta-btn {
        padding: 7px 10px;
        font-size: 0.688rem;
        gap: 4px;
    }
    
    .header-cta-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .header-cta-btn i {
        font-size: 0.75rem;
    }
    
    body {
        padding-top: 56px;
    }
}

/* ===================================
   フッター
=================================== */
.site-footer {
    background: #0f172a;
    color: white;
    padding: 60px 0 30px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    font-size: 1.5rem;
}

.footer-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-logo .logo-accent {
    color: var(--primary);
}

.footer-tagline {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links-group h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group li {
    margin-bottom: 10px;
}

.footer-links-group a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-group a:hover {
    color: var(--primary);
}

.footer-contact-email {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-contact-email span {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.footer-contact-email a {
    color: var(--primary);
    text-decoration: none;
}

.footer-contact-email a:hover {
    text-decoration: underline;
}

.footer-contact-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.footer-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.813rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-cta-consultation {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.footer-cta-consultation:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.footer-cta-line {
    background: #06C755;
    color: white;
}

.footer-cta-line:hover {
    background: #05b34c;
}

.footer-disclaimer {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-disclaimer p {
    font-size: 0.75rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.footer-service-note {
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* フッターレスポンシブ */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 24px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-tagline {
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links-group ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .footer-links-group li {
        margin-bottom: 0;
    }
}

/* ===================================
   アニメーション
=================================== */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===================================
   ヒーローセクション - 新デザイン完全版
=================================== */

/* 背景パターン */
.hero-background-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: #F0FDFA; /* Teal 50 */
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-content-redesign {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 40px;
    align-items: center;
    padding: 60px 0 80px;
    position: relative;
    z-index: 10;
}

.hero-text-redesign {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 20px;
}

/* サービスブランド（ロゴ風） */
.service-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border-radius: 50px;
    border: 2px solid var(--primary);
}

.brand-icon {
    font-size: 28px;
    line-height: 1;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.brand-highlight {
    color: var(--primary);
    position: relative;
}

.brand-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* 税理士提携バッジ（シンプル版） */
.tax-partnership-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 8px;
}

.partnership-text {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.813rem;
    letter-spacing: 0.5px;
}

/* タイトル */
.hero-title-new {
    font-size: 2.5rem;
    line-height: 1.35;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.title-accent {
    font-size: 0.85em;
    color: #334155;
    font-weight: 700;
}

.title-highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.15) 100%);
    z-index: -1;
    border-radius: 4px;
}

.sp-only {
    display: none;
}

.highlight-underline {
    color: #0F766E; /* Teal 700 */
    position: relative;
    display: inline-block;
}

.highlight-underline::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #CCFBF1; /* Teal 100 */
    z-index: -1;
    transform: skewX(-15deg);
}

/* サブタイトル */
.hero-subtitle-new {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* CTAボタン */
.hero-cta-buttons {
    display: flex;
    gap: 16px;
    margin-top: 25px;
}

/* ヒーロー用プライマリボタン */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.45);
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-icon {
    font-size: 14px;
}

.btn-line-compact {
    background-color: #06C755;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.938rem; /* 15px - smaller */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #06C755;
    white-space: nowrap; /* 1行に保つ */
}

.btn-line-compact:hover {
    background-color: #05B04C;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(6, 199, 85, 0.3);
}

.btn-line-compact i {
    font-size: 1.125rem;
}

.btn-line-new {
    background-color: #06C755;
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem; /* 20px */
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid #06C755;
}

.btn-line-new:hover {
    background-color: #05B04C;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(6, 199, 85, 0.3);
}

.btn-line-new i {
    font-size: 1.5rem;
}

.btn-youtube-new {
    background-color: white;
    color: #FF0000;
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem; /* 18px */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #E5E7EB;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-youtube-new:hover {
    background-color: #FEF2F2;
    border-color: #FF0000;
    transform: translateY(-2px);
}

.btn-youtube-new i {
    font-size: 1.25rem;
}

/* 信頼バッジ */
.trust-badges-new {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
}

.badge-new {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.813rem; /* 13px */
    color: #374151;
    font-weight: 500;
}

.badge-new i {
    color: #0F766E;
    font-size: 1rem;
}

/* ビジュアルエリア */
.hero-visual-redesign {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
}

/* フローティングカード */
.float-card {
    position: absolute;
    background: white;
    padding: 10px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    animation: float-animation 3s ease-in-out infinite;
}

.float-card-1 {
    top: 80px;
    right: -20px;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 80px;
    left: -40px;
    animation-delay: 1.5s;
}

@keyframes float-animation {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.youtube-icon {
    background-color: #FEE2E2; /* Red 100 */
    color: #DC2626; /* Red 600 */
}

.check-icon {
    background-color: #D1FAE5; /* Green 100 */
    color: #059669; /* Green 600 */
}

.float-text {
    display: flex;
    flex-direction: column;
}

.float-label {
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 700;
    margin: 0;
}

.float-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* スマホモックアップ */
.phone-mockup-new {
    width: 280px;
    height: 560px;
    background-color: #1F2937;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: rotate(-3deg);
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-mockup-new:hover {
    transform: rotate(-1deg) scale(1.02);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background-color: #1F2937;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.phone-screen-new {
    width: 100%;
    height: 100%;
    background-color: #F3F4F6;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* LINEヘッダー */
.line-header-new {
    background-color: #2c3e50;
    padding: 36px 16px 10px;
    color: white;
    font-size: 0.813rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.line-header-new i {
    font-size: 0.875rem;
}

/* チャットエリア */
.chat-area-new {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.msg-bubble {
    padding: 10px;
    border-radius: 12px;
    font-size: 0.688rem; /* 11px */
    max-width: 90%;
    line-height: 1.4;
}

.msg-left {
    background-color: white;
    align-self: flex-start;
    border-top-left-radius: 2px;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.msg-right {
    background-color: #92f39d;
    align-self: flex-end;
    border-top-right-radius: 2px;
    color: #111;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* 結果カード */
.result-card-phone {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #E5E7EB;
    align-self: flex-end;
    width: 95%;
}

.result-title-phone {
    font-size: 0.688rem;
    color: #6B7280;
    margin: 0 0 4px 0;
    text-align: center;
}

.result-amount-phone {
    font-size: 1.375rem; /* 22px */
    font-weight: 900;
    color: #0F766E;
    text-align: center;
    border-bottom: 2px solid #CCFBF1;
    padding-bottom: 6px;
    margin: 0 0 10px 0;
}

.result-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.563rem; /* 9px */
    color: #4B5563;
}

.breakdown-label {
    font-weight: 500;
}

.breakdown-value {
    font-weight: 700;
}

.breakdown-value.negative {
    color: #EF4444;
}

.breakdown-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.bar-fill {
    height: 100%;
}

.bar-gray {
    background-color: #9CA3AF;
}

.bar-red {
    background-color: #F87171;
}

.bar-orange {
    background-color: #FB923C;
}

/* ===================================
   レスポンシブ - ヒーロー新レイアウト
=================================== */
/* ===================================
   レスポンシブ
=================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    /* シミュレーターフォームを縦並びに戻す */
    .simulator-form {
        display: flex;
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .simulator-form .form-section:first-child,
    .simulator-form .form-section:nth-child(2),
    .simulator-form .form-section:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .trust-badges {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .value-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-simulator {
        padding: var(--space-lg) 0;
    }
    
    .hero-content {
        gap: var(--space-lg);
    }
    
    .hero-label {
        font-size: 0.875rem;
        padding: 6px 16px;
    }
    
    /* 新ヒーローレイアウトのレスポンシブ */
    .hero-background-pattern {
        width: 100%;
        clip-path: none;
    }
    
    .hero-content-redesign {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-xl) 0;
    }
    
    .hero-visual-redesign {
        height: 480px;
    }
    
    .phone-mockup-new {
        width: 240px;
        height: 480px;
    }
    
    .hero-title-new {
        font-size: 1.75rem;
    }
    
    .sp-only {
        display: inline;
    }
    
    .service-brand {
        padding: 8px 16px;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .brand-icon {
        font-size: 22px;
    }
    
    .brand-name {
        font-size: 16px;
    }
    
    .title-accent {
        font-size: 0.8em;
    }
    
    .btn-hero-primary {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .hero-subtitle-new {
        font-size: 0.938rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .btn-line-new,
    .btn-youtube-new {
        width: 100%;
        justify-content: center;
    }
    
    .trust-badges-new {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .float-card {
        display: none; /* スマホでは非表示 */
    }
    
    /* 税理士事務所セクション */
    .tax-office-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .tax-office-name {
        font-size: 1.75rem;
    }
    
    .value-cards,
    .value-cards-two-column {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .value-card {
        padding: var(--space-lg);
    }
    
    .value-number {
        font-size: 3rem;
    }
    
    .result-main-value {
        font-size: 2rem;
    }
    
    .simulator-card {
        padding: var(--space-md);
    }
    
    .section-title-large {
        font-size: 1.75rem;
    }
    
    .section-title-premium {
        font-size: 1.75rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .result-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .result-cta a {
        width: 100%;
        max-width: 320px;
    }
    
    .tax-column-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .column-visual {
        height: 180px;
    }
    
    .assessment-link-inline {
        flex-direction: row;
        padding: var(--space-sm) var(--space-md);
    }
    
    .assessment-icon {
        font-size: 1.5rem;
    }
    
    .assessment-text {
        font-size: 0.813rem;
    }
    
    .assessment-text strong {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .result-sub-info {
        grid-template-columns: 1fr;
    }
    
    .result-details-grid {
        grid-template-columns: 1fr;
    }
}
