/*
Theme Name: TikTok運用代行Pro Premium
Theme URI: https://example.com/
Author: Yayoi Murai
Author URI: https://www.tiktok.com/@yayoi_jidaillc
Description: TikTok運用代行サービス専用の高級WordPressテーマ。ネイビー×ゴールドの洗練されたデザイン。
Version: 2.6.0
Requires at least: 5.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiktok-agency-pro
Tags: business, landing-page, one-page, responsive-layout, custom-colors
*/

/* ===========================
   CSS変数定義
=========================== */
:root {
    --primary: #1A365D;
    --secondary: #2D3748;
    --gold: #D4AF37;
    --light-gold: #F4E5C3;
    --bg-gray: #F8F9FA;
    --text: #2C3E50;
    --text-light: #6B7280;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.3);
    --radius: 15px;
    --radius-sm: 8px;
    --gold-gradient: linear-gradient(135deg, #D4AF37, #F4E5C3);
    --primary-gradient: linear-gradient(135deg, #1A365D 0%, #2D3748 100%);
}

/* ===========================
   リセット・ベース
=========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===========================
   スクロールプログレスバー
=========================== */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gold-gradient);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ===========================
   ローディング
=========================== */
#loading {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===========================
   カスタムスクロールバー
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-gray); }
::-webkit-scrollbar-thumb {
    background: var(--gold-gradient);
    border-radius: 3px;
}

/* ===========================
   ヘッダー・ナビゲーション
=========================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: 1.5rem 0;
}

.site-header.scrolled {
    background: rgba(26, 54, 93, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
}

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

.site-logo {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.site-logo span { color: var(--gold); }

.site-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.site-nav a:hover { color: var(--light-gold); }
.site-nav a:hover::after { width: 100%; }

.nav-cta {
    background: var(--gold-gradient) !important;
    color: var(--primary) !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
    transform: scale(1.05) !important;
    box-shadow: var(--shadow-gold) !important;
    color: var(--primary) !important;
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   セクション共通スタイル
=========================== */
.section { padding: 5rem 0; }
.section-dark {
    background: var(--primary-gradient);
    color: var(--white);
}
.section-gray { background: var(--bg-gray); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-dark .section-title { color: var(--white); }

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 3.5rem;
}

.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.75); }

.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 1rem auto 3.5rem;
    border-radius: 2px;
}

/* スクロールアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   ヒーローセクション
=========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--primary-gradient);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 7rem 2rem 5rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--light-gold);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.hero-title .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--light-gold);
    font-weight: 700;
    margin-bottom: 2rem;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 3rem;
    line-height: 1.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gold-gradient);
    color: var(--primary);
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.55);
    color: var(--primary);
}

.cta-button:hover::before { left: 100%; }

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat .number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.3rem;
}

/* ===========================
   代表者プロフィール
=========================== */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-image-wrap { text-align: center; }

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.15), var(--shadow-lg);
    margin: 0 auto 1.5rem;
}

.profile-name {
    font-family: 'Playfair Display', 'Noto Sans JP', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.profile-name-ruby {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.tiktok-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border: 1.5px solid var(--gold);
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
}

.tiktok-link:hover {
    background: var(--gold);
    color: var(--white);
}

.profile-credentials {
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.profile-credentials li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.profile-credentials li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--gold-gradient);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
}

.profile-desc {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.video-wrap {
    position: relative;
    padding-bottom: 177.78%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    margin: 0 auto;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===========================
   課題提起セクション
=========================== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.problem-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 3px solid var(--gold);
}

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

.problem-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.problem-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    font-weight: 500;
}

/* ===========================
   数字で語る3つの強み
=========================== */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.strength-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.strength-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
}

.strength-highlight {
    background: var(--gold-gradient);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.strength-highlight p {
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1.3;
}

.strength-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.strength-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    flex: 1;
}

/* ===========================
   サービス内容
=========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--gold);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 1.2rem;
    position: relative;
}

.service-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* ===========================
   料金プラン
=========================== */
.pricing-note {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-badge {
    display: inline-block;
    background: var(--gold-gradient);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.pricing-note p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212, 175, 55, 0.4);
}

.pricing-card.popular {
    border-color: var(--gold);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gold-gradient);
    color: var(--primary);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    padding-right: 5rem;
}

.pricing-guarantee {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    line-height: 1.6;
}

.pricing-guarantee strong {
    color: var(--gold);
    font-size: 1.1rem;
}

.pricing-price {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-cta {
    display: block;
    text-align: center;
    background: var(--gold-gradient);
    color: var(--primary);
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1rem;
    margin-top: auto;
    padding-top: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-cta:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-gold);
    color: var(--primary);
}

/* ===========================
   導入実績・事例
=========================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-period {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.case-followers {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.case-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.case-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.case-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.case-num.after { color: var(--gold); }

.case-arrow {
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 900;
}

.case-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.case-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===========================
   導入の流れ
=========================== */
.flow-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}

.flow-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 29px;
    top: 60px;
    width: 2px;
    height: calc(100% - 20px);
    background: repeating-linear-gradient(
        to bottom,
        var(--gold) 0,
        var(--gold) 6px,
        transparent 6px,
        transparent 12px
    );
}

.flow-badge {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.flow-badge .step-num {
    font-size: 1.3rem;
    line-height: 1;
}

.flow-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    flex: 1;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.flow-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.flow-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===========================
   FAQ
=========================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-family: inherit;
}

.faq-question:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
    border-radius: var(--radius);
}

.faq-icon {
    font-size: 1.2rem;
    min-width: 24px;
}

.faq-chevron {
    margin-left: auto;
    color: var(--gold);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer { max-height: 600px; }

.faq-answer p {
    padding: 0 1.5rem 1.5rem calc(1.5rem + 24px + 1rem);
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.9;
}

/* ===========================
   お問い合わせ
=========================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.contact-btn {
    display: block;
    background: var(--gold-gradient);
    color: var(--primary);
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1rem;
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
    color: var(--primary);
}

/* ===========================
   フッター
=========================== */
.site-footer {
    background: var(--primary-gradient);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-brand .site-logo {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.8;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
}

.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-legal a:hover { color: var(--gold); }

/* ===========================
   トップへ戻るボタン
=========================== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    color: var(--primary);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover { transform: translateY(-3px); }

/* ===========================
   固定ページ（特商法・プライバシーポリシー）
=========================== */
.legal-page {
    padding-top: 8rem;
    padding-bottom: 5rem;
    min-height: 100vh;
}

.legal-header {
    background: var(--primary-gradient);
    padding: 5rem 0 3rem;
    margin-bottom: 3rem;
}

.legal-header .section-title {
    color: var(--white);
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.legal-updated {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--gold);
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 0.8rem;
}

.legal-content ul, .legal-content ol {
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-content li { font-size: 0.95rem; color: var(--text); line-height: 1.8; }

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    line-height: 1.7;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--bg-gray);
    color: var(--primary);
    font-weight: 700;
    width: 35%;
}

.legal-note {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.8;
}

/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 1024px) {
    .strengths-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { gap: 2.5rem; }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .container { padding: 0 1.25rem; }

    /* ナビゲーション */
    .menu-toggle { display: flex; }

    .site-nav {
        position: fixed;
        inset: 0;
        background: rgba(26, 54, 93, 0.98);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .site-nav.open { transform: translateX(0); }

    .site-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .site-nav a { font-size: 1.2rem; }

    /* ヒーロー */
    .hero-stats { gap: 1.5rem; }
    .hero-stat .number { font-size: 2rem; }

    /* プロフィール */
    .profile-grid { grid-template-columns: 1fr; }
    .profile-image { width: 180px; height: 180px; }

    /* グリッド */
    .problems-grid,
    .strengths-grid,
    .services-grid,
    .pricing-grid,
    .cases-grid,
    .contact-grid { grid-template-columns: 1fr; }

    /* 流れ */
    .flow-item:not(:last-child)::after { display: none; }
    .flow-item { gap: 1rem; }

    /* フッター */
    .footer-inner { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; }

    /* 特商法テーブル */
    .legal-table th { width: auto; }
    .legal-table { display: block; overflow-x: auto; }

    /* バックトゥトップ */
    #back-to-top { bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .cta-button { padding: 1rem 2rem; font-size: 1rem; }
    .strength-card { min-height: auto; }
}
