/* ヘッダー関連のスタイル - プロフェッショナルデザイン */

/* ヘッダー全体のスタイル */
.site-header {
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 2px solid #003B80;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

/* ロゴと会社名エリア */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
    transition: all 0.3s ease;
}

.logo-icon i {
    color: white;
    font-size: 22px;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 16px;
    font-weight: 700;
    color: #003B80;
    margin: 0;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.service-area {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-flex;
}

.service-area i {
    color: #FF6633;
    font-size: 11px;
}

/* ヘッダー中央部 - 24時間バッジ */
.header-info {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hour-badge {
    background-color: #FF6633;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(255, 102, 51, 0.25);
    white-space: nowrap;
}

.hour-badge i {
    font-size: 14px;
}

/* CTAエリア */
.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* ボタン共通スタイル */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.cta-button i {
    font-size: 16px;
}

.cta-button-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.cta-button-text span {
    font-size: 14px;
    line-height: 1.1;
}

.cta-button-text small {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

/* メールボタン - 主要CTA */
.mail-button {
    background-color: #0066cc;
    background-image: linear-gradient(to bottom, #0077e6, #0066cc);
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
    padding: 12px 18px;
    position: relative;
    z-index: 1;
    animation: subtle-pulse 2s infinite;
    color: white;
}

.mail-button:hover {
    background-image: linear-gradient(to bottom, #1a82e5, #0055b3);
    color: white;
}

.mail-button:before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #0066cc, transparent, #0066cc);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
    animation: border-pulse 2s infinite;
    color: white;
}

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

@keyframes border-pulse {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

/* 電話ボタン - 二次CTA */
.phone-button {
    background-color: #FF6633;
    background-image: linear-gradient(to bottom, #ff7e4a, #FF6633);
    box-shadow: 0 3px 8px rgba(255, 102, 51, 0.25);
    padding: 10px 14px;
}

.phone-button:hover {
    background-image: linear-gradient(to bottom, #ff8d5c, #e55a2d);
}

/* 緊急モードスイッチャー */
.emergency-bar {
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    background-color: #FF6633;
    color: white;
    text-align: center;
    padding: 5px 0;
    font-weight: 700;
    font-size: 13px;
    transition: top 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header:hover .emergency-bar {
    top: 0;
}

/* レスポンシブ対応 - 大きな画面 */
@media (min-width: 992px) {
    .site-header {
        padding: 12px 0;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-icon i {
        font-size: 24px;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .service-area {
        font-size: 13px;
    }
    
    .hour-badge {
        font-size: 14px;
        padding: 6px 14px;
    }
    
    .cta-button-text span {
        font-size: 16px;
    }
    
    .cta-button-text small {
        font-size: 12px;
    }
}

/* レスポンシブ対応 - タブレット */
@media (min-width: 768px) and (max-width: 991px) {
    .header-container {
        grid-template-columns: auto auto;
        gap: 15px;
    }
    
    .hour-badge {
        order: -1;
        grid-column: 1 / -1;
        justify-self: center;
        margin-bottom: 8px;
    }
}

/* レスポンシブ対応 - モバイル */
@media (max-width: 767px) {
    .site-header {
        padding: 6px 0;
    }
    
    .header-container {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto;
        gap: 6px;
    }
    
    .logo-container {
        justify-content: flex-start;
    }
    
    .header-info {
        display: none; /* モバイルでは24時間バッジを非表示 */
    }
    
    .header-cta {
        justify-content: flex-end;
        width: auto;
        gap: 5px;
    }
    
    .cta-button {
        padding: 6px 10px;
    }
    
    .cta-button i {
        font-size: 16px;
    }
    
    .cta-button-text span {
        font-size: 12px;
    }
    
    .cta-button-text small {
        font-size: 9px;
    }
    
    /* 電話ボタン調整 */
    .phone-button {
        padding: 6px 10px;
    }
    
    .phone-button:before {
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }
    
    /* 緊急バーを常に表示 */
    .emergency-bar {
        display: none; /* モバイルでは非表示にしてスペース確保 */
    }
    
    /* アニメーションを軽減 */
    .phone-button {
        animation: none;
    }
}

/* スマホ縦向き最適化 */
@media (max-width: 576px) {
    .header-container {
        padding: 0 8px;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-icon i {
        font-size: 16px;
    }
    
    .company-info {
        max-width: 180px;
    }
    
    .company-name {
        font-size: 14px;
    }
    
    .service-area {
        font-size: 9px;
        padding: 1px 4px;
        margin-top: 1px;
    }
    
    .phone-button, .mail-button {
        border-radius: 4px;
    }
    
    .phone-button {
        padding: 6px 8px;
    }
    
    .mail-button {
        padding: 6px 8px;
    }
    
    .cta-button i {
        font-size: 14px;
    }
}

/* 極小画面での調整（iPhone SE など） */
@media (max-width: 374px) {
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .company-name {
        font-size: 13px;
    }
    
    .service-area {
        font-size: 8px;
    }
    
    /* メールボタンを優先して表示、電話ボタンを最小化 */
    .mail-button {
        padding: 6px 8px;
        flex: 1;
    }
    
    .phone-button .cta-button-text {
        display: none;
    }
    
    .phone-button {
        padding: 6px;
        aspect-ratio: 1;
    }
}