/* hero.css - ヒーローセクションのスタイル（レスポンシブ対応強化版） */

/* ヒーローセクション基本スタイル */
.hero {
    height: auto;
    min-height: auto;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* 水の背景効果 */
.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: linear-gradient(135deg, rgb(0, 59, 143, 0.92) 0%, rgba(0, 96, 192, 0.88) 100%);
    background-size: cover;
    background-position: center;
    z-index: -1;
    overflow: hidden; /* エフェクトが画面から飛び出さないように */
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.2); /* 内側に影を追加して立体感を出す */
}

/* 実際の水しぶき画像を使用したエフェクト */
.water-splash-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/water_bubbles.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: screen;
    animation: water-float 20s infinite alternate ease-in-out;
    z-index: 0;
}

/* 水滴のオーバーレイエフェクト - より視覚的に */
.water-drops-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 5%),
        radial-gradient(circle at 25% 65%, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 6%),
        radial-gradient(circle at 85% 55%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 4%),
        radial-gradient(circle at 15% 85%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 5%),
        radial-gradient(circle at 50% 40%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 7%);
    opacity: 0.7;
    animation: water-glow 8s infinite alternate;
    pointer-events: none;
}

/* 水の浮遊アニメーション */
@keyframes water-float {
    0% {
        transform: translateX(-5px) translateY(-5px);
    }
    50% {
        transform: translateX(5px) translateY(5px);
    }
    100% {
        transform: translateX(-5px) translateY(-5px);
    }
}

/* 水の輝きアニメーション */
@keyframes water-glow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

/* コンテナスタイル */
.hero-container {
    max-width: 1000px;
    padding: 40px 20px 30px; /* 左右のパディングを追加 */
    position: relative;
    margin: 0 auto;
    box-sizing: border-box; /* パディングがコンテナ幅に含まれるように */
}

/* コンテンツエリアのフレックスレイアウト */
.hero-content-flex {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative; /* 相対位置指定 */
}

/* 左側コンテンツエリア */
.hero-left-content {
    flex: 1 1 320px;
    z-index: 2;
    margin-bottom: 20px;
    width: 100%; /* モバイル表示時は100%幅に */
    max-width: 100%;
    padding-right: 0; /* デフォルトのパディングをリセット */
}

/* 中〜大画面でのレイアウト調整 */
@media (min-width: 768px) {
    .hero-left-content {
        padding-right: 15px; /* 技術者画像がある場合のパディング */
        max-width: 65%; /* 最大幅を設定（技術者画像のスペースを確保） */
    }
    
    /* PC版のみコンテンツを中央配置 */
    .hero-content-flex {
        justify-content: center;
    }
}

/* 作業員画像エリア */
.hero-technician-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    max-width: 30%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease; /* 画面サイズ変更時の滑らかな遷移 */
}

/* タブレットサイズでの調整 */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-technician-image {
        max-width: 25%; /* やや小さく */
        right: 3%;
    }
}

.hero-technician-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.hero-technician-badge {
    background: rgba(255,255,255,0.9);
    color: #004ca3;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 30px;
    margin-top: -25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 3;
    font-size: 0.8rem; /* 基本フォントサイズ */
    white-space: nowrap; /* テキストの折り返しを防止 */
}

/* 緊急バナー */
.hero-emergency-banner {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    flex-wrap: wrap; /* モバイル向けに折り返し許可 */
}

.hero-emergency-icon {
    background: #f00;
    color: white;
    border-radius: 50%;
    width: 45px; /* やや小さく */
    height: 45px; /* やや小さく */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-shrink: 0; /* サイズ固定 */
}

.hero-service-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.15);
    padding: 8px 10px; /* 左右のパディングを少し減らす */
    border-radius: 8px;
    flex: 1; /* 残りのスペースを占める */
    min-width: 200px; /* 最小幅を確保 */
}

.hero-service-tag {
    background: #005bbb;
    color: white;
    padding: 4px 12px; /* やや小さく */
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid white;
    font-size: 0.9rem; /* フォントサイズ調整 */
    white-space: nowrap; /* 改行防止 */
}

/* メインキャッチ - 即日対応 */
.hero-main-catch {
    background: rgba(0,0,0,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 5px solid #ffee00;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-main-heading {
    color: #ffee00;
    font-size: calc(2.5rem + 1vw); /* 基本サイズを少し小さく */
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
    line-height: 1.1;
    letter-spacing: -1px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* スモールサイズ対応 */
@media (max-width: 375px) {
    .hero-main-heading {
        font-size: calc(2rem + 1vw);
    }
}

.hero-quick-badge {
    background: #ff6b00;
    color: white;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 30px;
    margin-left: 10px;
    font-weight: bold;
    text-shadow: none;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
    white-space: nowrap; /* 改行防止 */
}

/* サブキャッチ - 詰まりのトラブル */
.hero-sub-catch {
    margin: 0 0 20px 0;
}

.hero-sub-catch-inner {
    padding: 10px 5px; /* 上下のパディングを少し減らす */
}

.hero-emphasized-text {
    font-size: calc(1.3rem + 0.3vw); /* レスポンシブサイズに変更 */
    font-weight: 700;
    text-align: left;
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero-emphasized-highlight {
    color: #ffee00;
    font-weight: 900;
    font-size: 130%; /* やや小さく */
    display: inline-block;
    animation: pulse 1.5s infinite;
    margin-right: 5px; /* 間隔を追加 */
}

.hero-emphasized-normal {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    white-space: nowrap; /* できるだけ改行しない */
}

/* 電話案内 */
.hero-phone-guide {
    text-align: left;
    position: relative;
    margin: 12px 0;
}

.hero-phone-heading {
    color: white;
    font-size: calc(1.5rem + 0.5vw); /* サイズ調整 */
    font-weight: 900;
    margin: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero-phone-highlight {
    color: #ffee00;
    margin: 0 5px;
    font-weight: 900;
    font-size: 130%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

.hero-phone-icon {
    color: #ffee00;
    margin-left: 10px;
    animation: shake 1.5s infinite;
}

/* WEBキャンペーン */
.hero-campaign-badge {
    background: linear-gradient(135deg, #ffee00 0%, #ffd500 100%);
    color: #000;
    font-weight: bold;
    padding: 6px 12px;
    display: inline-block;
    margin-bottom: 15px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    font-size: 0.9rem; /* フォントサイズ調整 */
}

/* 料金エリア */
.hero-pricing {
    background: rgba(0,0,0,0.15);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-pricing-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ff6b00;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap; /* 改行防止 */
}

.hero-pricing-content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-price-display {
    position: relative;
    z-index: 2;
}

.hero-price-box {
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.hero-price-flex {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap; /* 改行防止 */
}

.hero-price-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
    margin-right: 5px;
    white-space: nowrap; /* 改行防止 */
}

.hero-price-number {
    font-size: calc(2.2rem + 0.8vw); /* サイズ調整 */
    font-weight: 900;
    color: #ff6b00;
    line-height: 1;
}

.hero-price-unit {
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap; /* 改行防止 */
}

/* 特典エリア */
.hero-benefits {
    flex: 1;
    min-width: 200px;
}

.hero-benefits-box {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #ffee00;
}

.hero-benefit-item {
    font-size: 0.9rem;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: flex;
    align-items: center; /* アイコンと文字を中央揃え */
    flex-wrap: wrap;
}

.hero-benefit-item:last-child {
    margin-bottom: 0;
}

.hero-benefit-icon {
    color: #ffee00;
    margin-right: 5px;
    flex-shrink: 0; /* サイズ固定 */
}

.hero-benefit-label {
    font-weight: bold;
    white-space: nowrap; /* できるだけ改行しない */
}

.hero-benefit-highlight {
    color: #ffee00;
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: 3px; /* 間隔を追加 */
}

/* アニメーション */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* レスポンシブデザイン - 追加調整 */
@media (max-width: 767px) {
    .hero-technician-image {
        display: none;
    }
    
    .hero-container {
        padding: 30px 15px 25px; /* やや小さく */
    }
    
    .hero-quick-badge {
        margin-top: 5px; /* モバイルでは下に表示 */
        margin-left: 10px; /* 間隔を追加 */;
    }
}

/* 中間サイズ調整 */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-main-heading {
        font-size: calc(2.2rem + 1vw);
    }
    
    .hero-quick-badge {
        font-size: 0.8rem;
        padding: 2px 7px;
        margin-left: 8px;
    }
}