@charset "UTF-8";

/* ==============================================
   Square Crowdfunding 2 (Large Layout)
   ============================================== */

/* Container */
.scf2-container {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping for mobile */
    justify-content: flex-start;
    /* Changed from space-between */
    align-items: flex-start;
    padding: 20px 0;
    max-width: 1100px;
    margin: 0 auto;
    color: #000;
}

/* -------------------------------------------
   Left Column: Amount & Info
   ------------------------------------------- */
.scf2-left {
    width: 60%;
    padding-right: 40px;
    box-sizing: border-box;
    padding-top: 10px;
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scf2-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 50px;
    }
}

/* "現在の寄付予定額" Label */
.scf2-label {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Amount Display */
.scf2-amount-wrap {
    display: flex;
    align-items: baseline;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1;
}

.scf2-amount {
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.scf2-currency {
    font-size: 32px;
    margin-left: 8px;
}

/* Separator Line */
.scf2-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 30px 0;
}

/* Stats Row (Two Columns) */
.scf2-stats-row {
    display: flex;
    gap: 80px;
    margin-bottom: 40px;
}

.scf2-stat-col {
    flex: 0 0 auto;
}

.scf2-count-label {
    font-size: 16px;
    font-weight: 700;
}

.scf2-count-wrap {
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
}

.scf2-count-unit {
    font-size: 24px;
    margin-left: 10px;
}



/* Button */
.scf2-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #003388;
    /* Navy Blue */
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    /* Pill */
    padding: 16px 60px;
    transition: background-color 0.3s;
    letter-spacing: 0.05em;
}

.scf2-btn:hover {
    background-color: #002266 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* Description Text */
.scf2-desc {
    margin-top: 40px;
    font-size: 16px;
    line-height: 2.0;
    color: #333;
    font-weight: 400;
}


/* -------------------------------------------
   Right Column: Graph
   ------------------------------------------- */
.scf2-right {
    width: 230px;
    /* Increased from 15% for better balance */
    min-width: 230px;
    /* Increased from 120px */
    position: relative;
    padding-top: 60px;
    /* Space for top indicators */
}



/* Gray Background Bar Container */
.scf2-graph-container {
    background-color: #f2f2f2;
    width: 100%;
    height: 400px;
    /* Fixed height for visualization */
    position: relative;
    border-radius: 2px;
    border: none;
}

/* Blue Progress Bar */
.scf2-bar-fill {
    background-image: linear-gradient(135deg, #3eb2d9 0%, #1b7cc6 100%);
    /* Gradient blue */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height will be set via inline style */
    min-height: 0;
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Smooth cubic-bezier transition */
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    z-index: 10;
}

/* "現在の寄付予定額" Indicator on the bar */
.scf2-current-label {
    position: absolute;
    width: 100%;
    top: -55px;
    /* Lifted up further (was -45px) */
    left: 0;
    text-align: center;
    font-size: 16px;
    /* Increased from 11px */
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

.scf2-current-triangle {
    position: absolute;
    top: 35px;
    /* Lowered (was 30px) to establish vertical gap */
    /* Below the text, pointing down to the bar */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    /* Enlarged from 6px */
    border-right: 8px solid transparent;
    /* Enlarged from 6px */
    border-top: 10px solid #3eb2d9;
    /* Matches gradient start color */
}

/* "基金設立 1000万円" Marker */
.scf2-marker-10m {
    position: absolute;
    right: 0;
    /* Align to right edge (but marker label is pushed out) */
    width: 100%;
    /* border-top: 1px dotted rgba(0, 0, 0, 0.1); remove line if not in design 1 */
    border-top: 1px dashed #d0d0d0;
    /* Adding dashed line across graph as per typical design */
    display: flex;
    justify-content: flex-end;
    z-index: 20;
}

.scf2-marker-label-right {
    position: absolute;
    right: -135px;
    /* Slightly adjusted to stay within bounds more easily */
    top: -26px;
    /* Center vertically roughly */
    text-align: left;
    width: 120px;
}

.scf2-marker-title {
    font-size: 18px;
    /* Slightly larger title */
    font-weight: 700;
    display: block;
    line-height: 1.4;
    color: #000;
    margin-bottom: 2px;
}

.scf2-marker-amount {
    font-size: 22px;
    /* Larger amount */
    font-weight: 700;
    display: block;
    line-height: 1.0;
    color: #000;
}

.scf2-triangle-left {
    position: absolute;
    right: -7px;
    /* Adjust to touch the graph container edge */
    top: -7px;
    /* Center vertically relative to the text block height */
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #000;
    /* Black triangle pointing left */
}

/* "運用スタート 1億円" Marker (Top Right) */
/* "運用スタート 1億円" Marker (Top Right) */
.scf2-marker-100m {
    position: absolute;
    top: 30px;
    /* Move up to top edge */
    right: -135px;
    width: 120px;
    text-align: left;
}

.scf2-marker-100m .scf2-marker-title {
    color: #cccccc;
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.scf2-marker-100m .scf2-marker-amount {
    color: #cccccc;
    font-size: 26px;
    /* Even larger */
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.scf2-triangle-left-top {
    position: absolute;
    left: -15px;
    /* Consistent with other marker */
    top: 25px;
    /* Center relative to 100m text block */
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 8px solid #cccccc;
    /* Gray triangle */
}

/* -------------------------------------------
   Mobile Responsive Adjustments
   ------------------------------------------- */
@media (max-width: 768px) {
    .scf2-container {
        flex-direction: column-reverse;
        padding: 30px 0px;
    }

    .scf2-right {
        width: 180px;
        margin: 0 auto 50px 0px;
        padding-top: 20px;
    }

    .scf2-amount {
        font-size: 50px;
        /* Reduced from 70px to prevent overflow */
    }

    .scf2-currency {
        font-size: 18px;
        /* Reduced from 24px */
    }

    .scf2-stats-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .scf2-count-val {
        font-size: 40px;
        /* Reduced from 50px */
    }

    .scf2-count-unit {
        font-size: 18px;
        /* Reduced from 24px */
    }

    .scf2-btn {
        width: 100%;
        font-size: 16px;
        padding: 16px 20px;
    }

    .scf2-marker-100m {
        top: -10px;
    }
}