/* Apply Noto Sans JP as the default font */
body {
    font-family: 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom styles based on design document */
.hero-bg {
    background: linear-gradient(135deg, #0f1419 0%, #1a365d 25%, #2d5aa0 50%, #1a365d 75%, #0f1419 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 50%, rgba(29, 78, 216, 0.1) 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(180deg); }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Gold accent colors */
.text-gold {
    color: #d4af37;
}

.bg-gold {
    background-color: #d4af37;
}

.border-gold {
    border-color: #d4af37;
}

.shadow-gold {
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

/* Enhanced shadow effects */
.shadow-3xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Improved typography */
.text-enhanced-xl {
    font-size: 1.375rem;
    line-height: 1.75;
    letter-spacing: -0.01em;
}

.text-enhanced-2xl {
    font-size: 1.75rem;
    line-height: 1.6;
    letter-spacing: -0.015em;
}

.text-enhanced-3xl {
    font-size: 2.25rem;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.text-enhanced-4xl {
    font-size: 3rem;
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.leading-relaxed-plus {
    line-height: 1.75;
}

.leading-loose-plus {
    line-height: 1.875;
}

.cta-button-line {
    background: linear-gradient(135deg, #00B900, #00d100);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 185, 0, 0.3);
    position: relative;
    overflow: hidden;
}

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

.cta-button-line:hover {
    background: linear-gradient(135deg, #00d100, #00B900);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 185, 0, 0.4);
}

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

.cta-button-phone {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

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

.cta-button-phone:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

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

/* Accordion styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
    opacity: 0;
    padding: 0 1.5rem;
}

.faq-item.active .answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item .question {
    transition: all 0.3s ease;
}

.faq-item.active .question {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 0.75rem 0.75rem 0 0;
}

.faq-item.active .icon-plus {
    display: none;
}

.faq-item.active .icon-minus {
    display: block;
}

.icon-minus {
    display: none;
}

.faq-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #2563eb;
}

/* Flow step connector for PC */
@media (min-width: 768px) {
    .flow-step {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 280px; /* 最小高さを設定 */
    }
    
    .flow-step .flow-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .flow-step:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -2.5rem; /* Adjust based on icon size and gap */
        top: 50%;
        transform: translateY(-50%);
        width: 2rem;
        height: 2px;
        background: #2563eb;
    }
    .flow-step:not(:last-child)::before {
         content: '\f054'; /* Font Awesome > icon */
         font-family: 'Font Awesome 6 Free';
         font-weight: 900;
         position: absolute;
         right: -3rem;
         top: 50%;
         transform: translateY(-50%) translateX(50%);
         color: #2563eb;
    }
}

/* Flow step connector for Mobile */
@media (max-width: 767px) {
    .flow-step {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 200px; /* モバイル用の最小高さ */
    }
    
    .flow-step .flow-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .flow-step:not(:last-child)::after {
        content: '\f078'; /* Font Awesome v icon */
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        bottom: -2rem;
        left: 50%;
        transform: translateX(-50%);
        color: #2563eb;
        font-size: 1.5rem;
    }
}

/* Problem section background images */
.problem-bg {
    position: relative;
    overflow: hidden;
}

.problem-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/souzoku1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.problem-content {
    position: relative;
    z-index: 2;
}

/* 5段階のレスポンシブ文字サイズシステム */
/* 基本サイズ（モバイル） */
.text-size-xs { font-size: 0.75rem; }      /* 12px */
.text-size-sm { font-size: 0.875rem; }     /* 14px */
.text-size-base { font-size: 1rem; }       /* 16px */
.text-size-lg { font-size: 1.125rem; }     /* 18px */
.text-size-xl { font-size: 1.25rem; }      /* 20px */
.text-size-2xl { font-size: 1.5rem; }     /* 24px */
.text-size-3xl { font-size: 1.875rem; }   /* 30px */
.text-size-4xl { font-size: 2.25rem; }    /* 36px */
.text-size-5xl { font-size: 3rem; }       /* 48px */
.text-size-6xl { font-size: 3.75rem; }    /* 60px */
.text-size-7xl { font-size: 4.5rem; }     /* 72px */
.text-size-8xl { font-size: 6rem; }       /* 96px */
.text-size-9xl { font-size: 8rem; }       /* 128px */

/* 小画面（sm: 640px以上） */
@media (min-width: 640px) {
    .sm\:text-size-xs { font-size: 0.75rem; }
    .sm\:text-size-sm { font-size: 0.875rem; }
    .sm\:text-size-base { font-size: 1rem; }
    .sm\:text-size-lg { font-size: 1.125rem; }
    .sm\:text-size-xl { font-size: 1.25rem; }
    .sm\:text-size-2xl { font-size: 1.5rem; }
    .sm\:text-size-3xl { font-size: 1.875rem; }
    .sm\:text-size-4xl { font-size: 2.25rem; }
    .sm\:text-size-5xl { font-size: 3rem; }
    .sm\:text-size-6xl { font-size: 3.75rem; }
    .sm\:text-size-7xl { font-size: 4.5rem; }
    .sm\:text-size-8xl { font-size: 6rem; }
    .sm\:text-size-9xl { font-size: 8rem; }
}

/* 中画面（md: 768px以上） */
@media (min-width: 768px) {
    .md\:text-size-xs { font-size: 0.75rem; }
    .md\:text-size-sm { font-size: 0.875rem; }
    .md\:text-size-base { font-size: 1rem; }
    .md\:text-size-lg { font-size: 1.125rem; }
    .md\:text-size-xl { font-size: 1.25rem; }
    .md\:text-size-2xl { font-size: 1.5rem; }
    .md\:text-size-3xl { font-size: 1.875rem; }
    .md\:text-size-4xl { font-size: 2.25rem; }
    .md\:text-size-5xl { font-size: 3rem; }
    .md\:text-size-6xl { font-size: 3.75rem; }
    .md\:text-size-7xl { font-size: 4.5rem; }
    .md\:text-size-8xl { font-size: 6rem; }
    .md\:text-size-9xl { font-size: 8rem; }
}

/* 大画面（lg: 1024px以上） */
@media (min-width: 1024px) {
    .lg\:text-size-xs { font-size: 0.75rem; }
    .lg\:text-size-sm { font-size: 0.875rem; }
    .lg\:text-size-base { font-size: 1rem; }
    .lg\:text-size-lg { font-size: 1.125rem; }
    .lg\:text-size-xl { font-size: 1.25rem; }
    .lg\:text-size-2xl { font-size: 1.5rem; }
    .lg\:text-size-3xl { font-size: 1.875rem; }
    .lg\:text-size-4xl { font-size: 2.25rem; }
    .lg\:text-size-5xl { font-size: 3rem; }
    .lg\:text-size-6xl { font-size: 3.75rem; }
    .lg\:text-size-7xl { font-size: 4.5rem; }
    .lg\:text-size-8xl { font-size: 6rem; }
    .lg\:text-size-9xl { font-size: 8rem; }
}

/* 特大画面（xl: 1280px以上） */
@media (min-width: 1280px) {
    .xl\:text-size-xs { font-size: 0.75rem; }
    .xl\:text-size-sm { font-size: 0.875rem; }
    .xl\:text-size-base { font-size: 1rem; }
    .xl\:text-size-lg { font-size: 1.125rem; }
    .xl\:text-size-xl { font-size: 1.25rem; }
    .xl\:text-size-2xl { font-size: 1.5rem; }
    .xl\:text-size-3xl { font-size: 1.875rem; }
    .xl\:text-size-4xl { font-size: 2.25rem; }
    .xl\:text-size-5xl { font-size: 3rem; }
    .xl\:text-size-6xl { font-size: 3.75rem; }
    .xl\:text-size-7xl { font-size: 4.5rem; }
    .xl\:text-size-8xl { font-size: 6rem; }
    .xl\:text-size-9xl { font-size: 8rem; }
}

/* 2xl画面（1536px以上） */
@media (min-width: 1536px) {
    .2xl\:text-size-xs { font-size: 0.75rem; }
    .2xl\:text-size-sm { font-size: 0.875rem; }
    .2xl\:text-size-base { font-size: 1rem; }
    .2xl\:text-size-lg { font-size: 1.125rem; }
    .2xl\:text-size-xl { font-size: 1.25rem; }
    .2xl\:text-size-2xl { font-size: 1.5rem; }
    .2xl\:text-size-3xl { font-size: 1.875rem; }
    .2xl\:text-size-4xl { font-size: 2.25rem; }
    .2xl\:text-size-5xl { font-size: 3rem; }
    .2xl\:text-size-6xl { font-size: 3.75rem; }
    .2xl\:text-size-7xl { font-size: 4.5rem; }
    .2xl\:text-size-8xl { font-size: 6rem; }
    .2xl\:text-size-9xl { font-size: 8rem; }
}

/* ファーストビュー用のカスタム文字サイズ例 */
.hero-title-mobile { font-size: 2.5rem; }
.hero-title-tablet { font-size: 3.5rem; }
.hero-title-desktop { font-size: 4.5rem; }
.hero-title-large { font-size: 5.5rem; }
.hero-title-xl { font-size: 6.5rem; }

.hero-subtitle-mobile { font-size: 1.25rem; }
.hero-subtitle-tablet { font-size: 1.5rem; }
.hero-subtitle-desktop { font-size: 1.75rem; }
.hero-subtitle-large { font-size: 2rem; }
.hero-subtitle-xl { font-size: 2.25rem; }

.hero-text-mobile { font-size: 1rem; }
.hero-text-tablet { font-size: 1.125rem; }
.hero-text-desktop { font-size: 1.25rem; }
.hero-text-large { font-size: 1.375rem; }
.hero-text-xl { font-size: 1.5rem; }