/* ==========================================================================
   1. リセット & 基本共通設定
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
    padding-top: 80px; /* 固定ヘッダー用 */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 共通セクションタイトル */
.section-title {
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 2.2rem;
    color: #0A2463;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #FF6B35;
    margin: 15px auto 30px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* ==========================================================================
   2. ヘッダー
   ========================================================================== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo {
    text-decoration: none;
    color: #0A2463;
    font-family: 'Noto Serif JP', serif;
}

.site-logo h1 {
    font-size: 1.3rem;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0A2463;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.btn-contact-nav {
    background-color: #FF6B35;
    color: white !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
}

/* ==========================================================================
   3. ヒーローセクション
   ========================================================================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-image: url('https://images.unsplash.com/photo-1494412519320-aa613dfb7738?q=80&w=1740&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.85) 0%, rgba(10, 36, 99, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   4. ボタン共通設定
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-primary { background-color: #FF6B35; color: white; }
.btn-primary:hover { background-color: #e05a2b; transform: translateY(-3px); }

.btn-line { background-color: #06C755; color: white; }
.btn-phone { background-color: #0A2463; color: white; border: 1px solid white; }
.btn-phone i { margin-right: 10px; animation: phone-shake 2.5s infinite; }

@keyframes phone-shake {
    0%, 100% { transform: rotate(0); }
    5%, 15% { transform: rotate(20deg); }
    10%, 20% { transform: rotate(-20deg); }
}

.btn-secondary { background-color: #fff; color: #0A2463; border: 2px solid #0A2463; }
.btn-large { padding: 20px 40px; font-size: 1.2rem; }

/* プロフィール・連絡先用 */
.btn-full {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 20px;
    margin-bottom: 10px;
}

/* ==========================================================================
   5. グリッドレイアウト (全ページ共通)
   ========================================================================== */
/* index.htmlの3つの強み / service.htmlのカード / index.htmlの主要サービス */
.features-grid, 
.service-cards, 
.service-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCで3列 */
    gap: 30px;
    margin-top: 40px;
}

.feature-card, 
.service-card, 
.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid #0A2463;
    transition: 0.3s;
}

.service-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; border-top: none; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.service-card-img { height: 200px; background-size: cover; background-position: center; }
.service-card-content { padding: 25px; }

/* ==========================================================================
   6. 各ページ固有設定
   ========================================================================== */
/* service.html */
.service-category-section { padding: 80px 0; border-bottom: 1px solid #eee; }
.category-header { display: flex; align-items: center; margin-bottom: 30px; }
.category-icon { font-size: 2.5rem; color: #0A2463; margin-right: 20px; }

/* contact.html */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

/* profile.html */
.profile-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    padding: 60px 0;
}

/* ==========================================================================
   7. フォーム & その他
   ========================================================================== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.price-notice {
    background: #f0f4f8; padding: 30px; border-radius: 8px; border-left: 5px solid #0A2463;
    display: flex; gap: 20px; align-items: flex-start; margin: 40px 0;
}

.cta-section { background-color: #0A2463; color: white; padding: 80px 0; text-align: center; }

/* ==========================================================================
   8. レスポンシブ (タブレット・スマホ)
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid, .service-cards, .service-items { grid-template-columns: 1fr 1fr; }
    .contact-grid, .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-container { padding: 15px 20px; }
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: 75px; left: -100%; width: 100%; height: 100vh;
        background: #fff; transition: 0.4s; padding: 30px; z-index: 1000;
    }
    .main-nav.active { left: 0; }
    .main-nav ul { flex-direction: column; }
    .main-nav li { margin: 15px 0; }
    
    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    
    .features-grid, .service-cards, .service-items { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. フッター
   ========================================================================== */
.site-footer { background-color: #111; color: #ccc; padding: 60px 0 20px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.footer-logo { color: #fff; font-size: 1.3rem; margin-bottom: 20px; font-family: 'Noto Serif JP', serif; }
.footer-nav ul { list-style: none; }
.footer-nav a { color: #ccc; text-decoration: none; }
.footer-copyright { text-align: center; border-top: 1px solid #333; margin-top: 40px; padding-top: 20px; font-size: 0.85rem; }

/* ==========================================================================
   10. スマホ固定フッターボタン（最優先設定）
   ========================================================================== */
@media screen and (max-width: 768px) {
    body {
        padding-bottom: 80px !important; /* 余白を強制確保 */
    }

    .mobile-footer-btns {
        display: flex !important; /* 強制表示 */
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 70px !important;
        z-index: 99999 !important; /* 最前面に */
        background: #fff !important;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.15) !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-btn {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #fff !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
    }

    .mobile-btn i {
        font-size: 1.4rem !important;
        margin-bottom: 4px !important;
    }

    .btn-phone-fixed { background-color: #0A2463 !important; }
    .btn-line-fixed { background-color: #06C755 !important; }
    .btn-mail-fixed { background-color: #FF6B35 !important; }
}

/* PCでは絶対に出さない */
@media screen and (min-width: 769px) {
    .mobile-footer-btns {
        display: none !important;
    }
}