/* ヒーローセクション - hero.css */

.hero {
    padding-top: 40px;
    padding-bottom: 20px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    top: -20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -30px;
    padding-top: 10px;
}

.hero-text {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.hero-pretext {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
    padding-top: 0;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-top: 0;
}

.hero h1 .highlight {
    color: var(--accent);
    position: relative;
}

.hero h1 .highlight::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(231, 76, 60, 0.15);
    left: 0;
    bottom: 4px;
    z-index: -1;
    border-radius: 2px;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.hero-image img {
    max-width: 80%;
    height: auto;
}

/* 吹き出しスタイル - 修正版 */
.speech-bubble {
    position: absolute;
    top: 10%;
    left: -15%;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    padding: 18px 24px;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    z-index: 10;
    transform: rotate(-8deg);
    animation: bubble-float 3s ease-in-out infinite;
    max-width: 220px;
    border: 3px solid #fff;
}

.speech-bubble::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: auto; right: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #FFA500;
    transform: rotate(-15deg); /* 15deg → -15deg に変更 */
}

.speech-bubble-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    letter-spacing: 0.02em;
}

.gift-highlight {
    color: #E74C3C;
    font-size: 1.2em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: inline-block;
    margin-top: 2px;
}

@keyframes bubble-float {
    0%, 100% {
        transform: rotate(-8deg) translateY(0px);
    }
    50% {
        transform: rotate(-6deg) translateY(-8px);
    }
}

/* レスポンシブ対応 */
@media (min-width: 769px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero-text {
        text-align: left;
        max-width: 600px;
    }
    
    .hero-pretext {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 3.4rem;
    }
    
    .hero-image {
        flex: 0.8;
        margin-bottom: 0;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    .speech-bubble {
    top: 15%;
    left: -5%;
    padding: 20px 28px;
    max-width: 250px;
}

    .speech-bubble-text {
    font-size: 1.2rem;
}
    
    
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-content {
        padding: 100px 12px 30px 12px;
        margin-top: 0;
    }
    
    .speech-bubble {
    top: 8%;
    left: -8%;
    padding: 15px 20px;
    max-width: 200px;
    transform: rotate(-5deg);
}

    .speech-bubble-text {
    font-size: 1rem;
}
    
    .speech-bubble::after {
        bottom: -12px;
        left: auto; right: 25px;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 15px solid #FFA500;
        transform: rotate(-15deg); /* 追加 */
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-pretext {
        font-size: 1.3rem;
    }
    
    .speech-bubble {
    top: 6%;
    left: -5%;
    padding: 12px 13px;
    max-width: 180px;
}

    .speech-bubble-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

    .gift-highlight {
    font-size: 1.1em;
}
    
    .speech-bubble::after {
        bottom: -10px;
        left: auto; right: 20px;
        border-left: 10px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid #FFA500;
        transform: rotate(-15deg); /* 追加 */
    }
}