@charset "UTF-8";

/**
 * Temperature Graph Section - 札幌の夏の平均気温の推移
 */

/* ========================================
   セクション全体
   ======================================== */
.temp-graph-section {
    background: linear-gradient(180deg, #f8fafc 0%, #FFF5E6 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.temp-graph-container {
    max-width: 960px;
    margin: 0 auto;
}

/* ========================================
   ヘッダー部分
   ======================================== */
.temp-graph-header {
    text-align: center;
    margin-bottom: 50px;
}

.temp-graph-header__label {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8F00 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

.temp-graph-header__title {
    font-size: 44px;
    font-weight: 800;
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
}

.temp-graph-header__title em {
    color: #E53E3E;
    font-style: normal;
    font-weight: 900;
}

.temp-graph-header__subtitle {
    font-size: 22px;
    color: #666;
    line-height: 1.8;
}

/* ========================================
   グラフエリア
   ======================================== */
.temp-graph-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px 30px 30px;
    margin-bottom: 40px;
    position: relative;
}

.temp-graph-wrapper__title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.temp-graph-wrapper__title span {
    color: #E53E3E;
    font-weight: 700;
}

/* Canvas */
.temp-graph-canvas {
    width: 100%;
    height: 320px;
    position: relative;
}

.temp-graph-canvas canvas {
    width: 100%;
    height: 100%;
}

/* 出典 */
.temp-graph-source {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: 12px;
}

/* ========================================
   ハイライトカード群
   ======================================== */
.temp-graph-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.temp-graph-highlight {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.temp-graph-highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.temp-graph-highlight__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.temp-graph-highlight:nth-child(1) .temp-graph-highlight__icon {
    background: linear-gradient(135deg, #FFE0B2, #FFCC80);
}

.temp-graph-highlight:nth-child(2) .temp-graph-highlight__icon {
    background: linear-gradient(135deg, #FFCDD2, #EF9A9A);
}

.temp-graph-highlight:nth-child(3) .temp-graph-highlight__icon {
    background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
}

.temp-graph-highlight__icon svg {
    width: 24px;
    height: 24px;
}

.temp-graph-highlight__number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.temp-graph-highlight:nth-child(1) .temp-graph-highlight__number {
    color: #FF8F00;
}

.temp-graph-highlight:nth-child(2) .temp-graph-highlight__number {
    color: #E53E3E;
}

.temp-graph-highlight:nth-child(3) .temp-graph-highlight__number {
    color: #388E3C;
}

.temp-graph-highlight__unit {
    font-size: 16px;
    font-weight: 500;
}

.temp-graph-highlight__label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
}

/* ========================================
   レスポンシブ: タブレット
   ======================================== */
@media (max-width: 767px) {
    .temp-graph-section {
        padding: 60px 16px;
    }

    .temp-graph-header__title {
        font-size: 34px;
    }

    .temp-graph-header__subtitle {
        font-size: 18px;
    }

    .temp-graph-wrapper {
        padding: 28px 20px 24px;
    }

    .temp-graph-canvas {
        height: 260px;
    }

    .temp-graph-highlights {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .temp-graph-highlight {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 20px;
    }

    .temp-graph-highlight__icon {
        margin: 0;
        flex-shrink: 0;
    }

    .temp-graph-highlight__number {
        font-size: 28px;
        margin-bottom: 2px;
    }

    .temp-graph-highlight__label {
        margin-top: 0;
    }
}

/* ========================================
   レスポンシブ: スマホ
   ======================================== */
@media (max-width: 479px) {
    .temp-graph-section {
        padding: 50px 12px;
    }

    .temp-graph-header {
        margin-bottom: 36px;
    }

    .temp-graph-header__label {
        font-size: 12px;
        padding: 5px 16px;
    }

    .temp-graph-header__title {
        font-size: 28px;
    }

    .temp-graph-header__subtitle {
        font-size: 16px;
    }

    .temp-graph-wrapper {
        padding: 20px 14px 18px;
        border-radius: 12px;
    }

    .temp-graph-wrapper__title {
        font-size: 14px;
    }

    .temp-graph-canvas {
        height: 220px;
    }

    .temp-graph-highlight {
        padding: 16px;
    }

    .temp-graph-highlight__number {
        font-size: 24px;
    }

    .temp-graph-highlight__label {
        font-size: 12px;
    }
}

/* ========================================
   温度計イラスト
   ======================================== */
.thermometer-illustration {
    transition: opacity 0.8s ease 0.5s;
}

.thermometer-illustration svg {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.15));
}

@media (max-width: 991px) {
    .thermometer-illustration {
        width: 110px !important;
    }
    .thermometer-illustration svg {
        width: 110px;
        height: auto;
    }
}

@media (max-width: 767px) {
    .thermometer-illustration {
        display: none !important;
    }
}

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

.temp-graph-section .fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.temp-graph-section .fade-in-up:nth-child(2) {
    transition-delay: 0.15s;
}

.temp-graph-section .fade-in-up:nth-child(3) {
    transition-delay: 0.3s;
}


