/* Purchase Flow Page Styles */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 相談会予約ボタンセクション */
.consultation-button-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clear: both;
}

/* 相談会予約ボタン */
.consultation-floating-button {
    display: inline-block !important;
    visibility: visible !important;
    background: linear-gradient(135deg, #C60707 0%, #8B0000 100%) !important;
    color: #ffffff !important;
    font-family: 'Zen Kaku Gothic Antique', sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    padding: 15px 30px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(198, 7, 7, 0.3) !important;
    transition: all 0.3s ease !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    line-height: 1.2 !important;
    min-height: 150px !important;
    width: 60px !important;
    position: relative !important;
    z-index: 1000 !important;
    overflow: visible !important;
}

.consultation-floating-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 7, 7, 0.4);
    background: linear-gradient(135deg, #E60808 0%, #A00000 100%);
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .consultation-floating-button {
        font-size: 16px;
        padding: 12px 25px;
        min-height: 120px;
        width: 50px;
    }
}

/* Force scrolled state styles */
.site-header.always-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.site-header.always-scrolled .main-navigation a {
    color: #333333 !important;
    text-shadow: none !important;
    font-family: 'Zen Kaku Gothic Antique', sans-serif !important;
}

.site-header.always-scrolled .site-branding a {
    color: #333333 !important;
    font-family: 'Cinzel', serif !important;
}

/* Main Container */
.purchase-flow-page {
    width: 100%;
    background: #ffffff;
    overflow-x: hidden;
}

/* Hero Section */
.flow-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #999999; /* グレー背景 */
}

.flow-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #999999;
    background-image: url('../img/soudan/mv_main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flow-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
}

.flow-hero-title {
    font-family: 'Zen Kaku Gothic Antique', sans-serif !important;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 2px;
}

.flow-hero-subtitle {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 30px;
    font-weight: 700;
}

/* 予約ボタン */
.consultation-reserve-btn {
    position: absolute;
    top: 600px;
    right: 0;
    background: linear-gradient(180deg, #C00707 0%, #5A0303 100%);
    color: #FFFFFF;
    padding: 30px 0;
    width: 80px;
    height: 248px;
    text-decoration: none;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.1;
    text-align: center;
    border-radius: 16px 0 0 16px;
    z-index: 100;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.consultation-reserve-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 50px;
    height: 100%;
    background: linear-gradient(180deg, #C00707 0%, #5A0303 100%);
    z-index: -1;
}

.consultation-reserve-btn:hover {
    transform: translateX(-5px);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .consultation-reserve-btn {
        display: none;
    }
}

/* Flow Title Section */
.flow-title-section {
    padding: 80px 0 40px;
    background: #ffffff;
}

.title-container {
    text-align: center;
}

.title-en {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 500;
    color: #A38E3B;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.title-ja {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #1b1b1b;
    margin: 0;
}

/* Flow Timeline Section */
.flow-timeline-section {
    padding: 40px 0 80px;
    background: #ffffff;
}

.flow-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 40px 0 120px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
    height: 100vh;
    position: relative;
}

.flow-section-title {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1b1b1b;
}

/* Flow Content */
.flow-content {
    position: sticky;
    top: 100px;
    max-width: 600px;
    height: fit-content;
}

/* Timeline Line */
.timeline-line {
    position: absolute;
    left: 30px;
    top: 30px;
    bottom: 30px;
    width: 1px;
    background: #e0e0e0;
}

/* Flow Steps */
.flow-steps {
    position: relative;
}

.flow-step {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.flow-step.last {
    margin-bottom: 0;
}

/* Step Number */
.step-number {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #A38E3B;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    margin-left: -25px;
}

/* Active and hover states */
.flow-step.active .step-number {
    background: #A38E3B;
    border: none;
}

.flow-step:hover .step-number {
    background: #A38E3B;
    border: none;
}

.flow-step:hover .number-text,
.flow-step:hover .number-value {
    color: #ffffff;
}

.number-text {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 400;
    color: #1B1B1B;
    margin-bottom: 2px;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.number-value {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 400;
    color: #1B1B1B;
    line-height: 1;
    transition: color 0.3s ease;
}

/* Active state colors */
.flow-step.active .number-text,
.flow-step.active .number-value {
    color: #ffffff;
}

.flow-step.active .step-title {
    color: #1b1b1b;
}

/* Step Content */
.step-content {
    flex: 1;
    margin-left: 30px;
}

.step-title {
    font-family: 'Zen Kaku Gothic Antique', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #999999;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.step-subtitle {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #666666;
    line-height: 1.6;
}

/* Flow Details */
.flow-details {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 20px;
    width: 100%;
}

/* Custom scrollbar styling */
.flow-details::-webkit-scrollbar {
    width: 8px;
}

.flow-details::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.flow-details::-webkit-scrollbar-thumb {
    background: #A38E3B;
    border-radius: 4px;
}

.flow-details::-webkit-scrollbar-thumb:hover {
    background: #8a7a32;
}

.detail-section {
    margin-bottom: 100px;
    position: relative;
    min-height: 80vh;
    overflow: hidden;
}

.detail-section:last-child {
    margin-bottom: 160px;
}

/* Top Section with Circular Background */
.sidebar-top-section {
    margin-bottom: 40px;
    position: relative;
}

.circular-bg {
    width: 500px;
    height: 500px;
    background: #FFFFFF !important;
    border: 2px solid #A38E3B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.circular-content {
    text-align: left;
    padding: 40px;
}

.circular-title {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(to right, #A38E3B, #3D3616);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 12px;
}

.circular-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, #A38E3B, #3D3616);
}

.circular-text {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #333333;
}

/* Bottom POINT Card */
.sidebar-bottom-section {
    display: flex;
    justify-content: flex-end;
}

.point-card {
    background: #A38E3B;
    border: none;
    padding: 40px 30px;
    position: relative;
    max-width: 500px;
    width: 100%;
    margin-top: -150px;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Even steps (2, 4) - reverse layout */
#step-2 .sidebar-top-section,
#step-4 .sidebar-top-section {
    display: flex;
    justify-content: flex-end;
}

#step-2 .circular-bg,
#step-4 .circular-bg {
    margin-right: 0;
    margin-left: 0;
}

#step-2 .sidebar-bottom-section,
#step-4 .sidebar-bottom-section {
    justify-content: flex-start;
}

#step-2 .point-card,
#step-4 .point-card {
    margin-left: 180px;
    margin-right: 0;
}

.point-card-label {
    display: inline-block;
    color: #ffffff;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.point-card-text {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.8;
    margin: 0;
}

/* CTA Section */
.flow-cta-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/soudan/fv_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.cta-container {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 80px 0;
}

.cta-content {
    color: #ffffff;
    max-width: 600px;
    margin-left: 120px;
}

@media (max-width: 768px) {
    .cta-content {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .cta-title,
    .cta-text {
        text-align: left;
    }
}

.cta-title {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    line-height: 1.4;
}

.cta-text {
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #C00707;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-button-arrow {
    width: 40px;
    height: 40px;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.cta-button:hover .cta-button-arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .flow-container {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        height: auto;
    }
    
    .flow-content {
        display: none;
    }
    
    .flow-details {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 0 20px;
        height: auto;
        overflow-y: visible;
    }
    
    .detail-section {
        margin-bottom: 120px;
        background: #ffffff;
        position: relative;
        min-height: 450px;
        overflow: visible;
    }
    
    /* Mobile circular design */
    .sidebar-top-section {
        margin-bottom: 0;
        background: #ffffff;
        padding: 60px 20px;
    }
    
    .circular-bg {
        width: 400px;
        height: 400px;
        margin: 0 auto;
        padding: 50px;
    }
    
    .circular-content {
        padding: 20px;
        text-align: left;
    }
    
    .circular-title {
        font-size: 18px;
        text-align: left;
        padding-bottom: 16px;
    }
    
    .circular-title::after {
        left: 0;
        transform: none;
        width: 60px;
    }
    
    .circular-text {
        font-size: 12px;
        color: #333333;
        text-align: left;
        line-height: 1.3;
    }
    
    /* Mobile POINT card */
    .sidebar-bottom-section {
        position: absolute;
        bottom: -20px;
        right: 40px;
        padding: 0;
        background: transparent;
        width: 55%;
        max-width: 400px;
    }
    
    .point-card {
        margin: 0;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 30px;
    }
    
    .point-card-label {
        font-size: 18px;
    }
    
    .point-card-text {
        font-size: 13px;
    }
    
    /* First step POINT position adjustment for iPad */
    #step-1 .sidebar-bottom-section {
        bottom: -130px;
    }
    
    /* Reset even step styles */
    #step-2 .sidebar-top-section,
    #step-4 .sidebar-top-section {
        justify-content: center;
    }
    
    #step-2 .circular-bg,
    #step-4 .circular-bg {
        margin: 0 auto 30px;
    }
    
    #step-2 .sidebar-bottom-section,
    #step-4 .sidebar-bottom-section {
        justify-content: center;
    }
    
    #step-2 .point-card,
    #step-4 .point-card {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .flow-hero {
        height: 300px;
    }
    
    .flow-hero-title {
        font-size: 28px;
    }
    
    .flow-hero-subtitle {
        font-size: 16px;
    }
    
    .flow-title-section {
        padding: 60px 0 30px;
    }
    
    .title-en {
        font-size: 14px;
    }
    
    .title-ja {
        font-size: 24px;
    }
    
    .flow-timeline-section {
        padding: 30px 0 40px;
    }
    
    .flow-details {
        padding: 0;
    }
    
    .sidebar-top-section {
        padding: 40px 20px;
    }
    
    .circular-bg {
        width: 300px;
        height: 300px;
        padding: 30px;
    }
    
    .circular-content {
        padding: 10px;
    }
    
    .circular-title {
        font-size: 16px;
    }
    
    .circular-text {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .sidebar-bottom-section {
        right: 40px;
        bottom: 30px;
        width: 45%;
        max-width: 250px;
    }
    
    .point-card {
        padding: 16px;
    }
    
    .point-card-label {
        font-size: 14px;
    }
    
    .point-card-text {
        font-size: 10px;
    }
    
    /* First step POINT position adjustment */
    #step-1 .sidebar-bottom-section {
        bottom: -50px;
    }
    
    /* CTA Section Mobile */
    .cta-container {
        padding: 60px 0;
    }
    
    .cta-content {
        margin-left: 20px;
        margin-right: 20px;
        max-width: calc(100% - 40px);
        text-align: center;
    }
    
    .cta-title {
        font-size: 24px;
    }
    
    .cta-text {
        font-size: 14px;
    }
    
    .cta-button {
        font-size: 14px;
        padding: 14px 30px;
    }
    
    .cta-button-arrow {
        width: 24px;
        height: 24px;
        margin-left: 8px;
    }
}