/* ==============================================
   グローバル設定
   ============================================== */
:root {
    /* カラーパレット - 青・ネイビー系 */
    --primary-color: #1e3a8a;
    --primary-dark: #1e293b;
    --primary-light: #3b82f6;
    --secondary-color: #0ea5e9;
    --accent-color: #06b6d4;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    
    /* グラデーション - 青・ネイビー系 */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    --gradient-card: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    
    /* シャドウ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* スペーシング */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* トランジション */
    --transition-base: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

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

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.2;
}

.logo-subtext {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    font-family: 'Noto Sans JP', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-base);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white !important;
    border-radius: 25px;
    transition: var(--transition-base);
}

.btn-nav::after {
    display: none;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition-base);
    border-radius: 2px;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
    font-family: 'Montserrat', sans-serif;
}

.hero-main {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 20px 0;
    font-family: 'Noto Sans JP', sans-serif;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.3rem;
    margin: 30px 0 40px;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
    background: #06c755;
    color: white;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
}

.btn-primary:hover {
    background: #05b04c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* ==============================================
   セクション共通スタイル
   ============================================== */
section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ==============================================
   事業承継とは
   ============================================== */
.about {
    background: var(--bg-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
}

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

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.success-banner {
    background: var(--gradient-primary);
    padding: 40px;
    border-radius: 20px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.success-content i {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.success-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.success-content p {
    opacity: 0.95;
    line-height: 1.7;
}

/* ==============================================
   プロフィール
   ============================================== */
.profile-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.profile-avatar {
    width: 250px;
    height: 250px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    box-shadow: var(--shadow-xl);
}

.profile-name {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.profile-age {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-left: 15px;
}

.profile-title {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.profile-details {
    display: grid;
    gap: 15px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: var(--text-dark);
}

.detail-item i {
    width: 24px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.profile-story {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.profile-story h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-story p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.profile-story strong {
    color: var(--primary-color);
}

/* ==============================================
   サービス・料金
   ============================================== */
.service {
    background: var(--bg-gray);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.service-card.featured {
    border: 3px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-color);
    color: white;
    padding: 8px 45px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.service-header {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.3;
    font-family: 'Montserrat', sans-serif;
}

.service-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
}

.service-body {
    padding: 30px;
    flex-grow: 1;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    display: grid;
    gap: 12px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.service-features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.service-footer {
    padding: 30px;
    background: var(--bg-gray);
    border-top: 2px solid var(--border-color);
}

.service-price {
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.price-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
    display: block;
    line-height: 1.4;
}

.price-value small {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.price-highlight {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: var(--primary-color) !important;
    display: block;
    margin-bottom: 15px;
}

.price-campaign {
    display: block;
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.8;
}

.campaign-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 4px;
    animation: pulse 2s infinite;
}

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

.price-note {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.service-cta {
    text-align: center;
    padding: 50px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.service-cta p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* ==============================================
   強み
   ============================================== */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.strength-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.strength-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.strength-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.strength-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.strength-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==============================================
   実績
   ============================================== */
.achievement {
    background: var(--bg-gray);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-base);
}

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

.achievement-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.achievement-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.achievement-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ==============================================
   お問い合わせ
   ============================================== */
.contact {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-card {
    background: var(--bg-gray);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: #06c755;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-line {
    background: #06c755;
    color: white;
    width: 100%;
    justify-content: center;
    font-size: 1.2rem;
    padding: 18px 32px;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
}

.btn-line:hover {
    background: #05b04c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.5);
}

.contact-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 18px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark);
    font-size: 1.05rem;
    padding: 15px;
    background: var(--bg-gray);
    border-radius: 10px;
    transition: var(--transition-base);
}

.contact-list li:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(5px);
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ==============================================
   フッター
   ============================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg {
    width: 100%;
    height: 100%;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: white;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-info {
    display: grid;
    gap: 10px;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.footer-info i {
    color: var(--primary-light);
}

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

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

/* ==============================================
   トップへ戻るボタン
   ============================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ==============================================
   レスポンシブデザイン
   ============================================== */

/* タブレット */
@media (max-width: 768px) {
    .hero-main {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .profile-avatar {
        margin: 0 auto;
    }
    
    .profile-details {
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .success-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* モバイル */
@media (max-width: 480px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 20px;
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-main {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .about-grid,
    .service-grid,
    .strength-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    :root {
        --section-padding: 60px 0;
    }
}
