/* ======================================= */
/* 共通リセット・基本設定 */
/* ======================================= */
/* 🚨 【重要修正】全ての要素に box-sizing: border-box を適用することで、
   paddingやborderが横幅からはみ出すのを防ぎます。 */
* {
    box-sizing: border-box; 
}
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    /* 念のため、bodyレベルで横方向のmargin/paddingがないことを確認 */
    overflow-x: hidden; /* 意図しない横スクロールを強制的に隠す (最終手段) */
}

/* ======================================= */
/* ヘッダー・ナビゲーション (PC表示) */
/* ======================================= */
header {
    background-color: #004d99; /* 信頼感のあるネイビー */
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row; 
    flex-wrap: wrap; 
}
header h1 {
    margin: 0;
    font-size: 1.8em;
    width: auto; 
}
header nav {
    display: flex;
    flex-direction: row;
}
header nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s;
}
header nav a:hover {
    color: #ffcc00; /* アクセントカラー */
}

/* ハンバーガーメニューボタン (PCでは非表示) */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
}

/* メインコンテンツのラッパー */
.main-content {
    padding: 20px 5%;
    min-height: 60vh;
}

/* ======================================= */
/* フッター */
/* ======================================= */
footer {
    background-color: #222;
    color: white;
    padding: 30px 5%;
    width: 100%;
    box-sizing: border-box; 
    margin: 0; 
}
.footer-inner {
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px;
    width: 100%;
}
.footer-inner .link-group {
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    margin-bottom: 15px; 
    flex-wrap: wrap;
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    color: #ffcc00;
}

/* ======================================= */
/* サービスページ固有スタイル (service.php) */
/* ======================================= */
.service-hero {
    background-color: #e6f7ff;
    padding: 80px 5%;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 5px solid #004d99;
}
.service-hero-inner h2 {
    color: #004d99;
    font-size: 2.5em;
    margin-bottom: 10px;
}
.main-service-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.service-section {
    padding: 30px;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.service-title {
    color: #d9534f;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.even-section {
    background-color: #f9f9f9;
}
.service-features {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}
.service-features li {
    /* チェックマークの背景画像 (SVGデータURIを使用) */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%23004d99" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') no-repeat left center;
    background-size: 16px;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.5;
}
.service-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.service-cta:hover {
    background-color: #ffb800;
}


/* ======================================= */
/* 実績ページ固有スタイル (results.php) */
/* ======================================= */
.results-hero {
    background-color: #f7e6ff;
    padding: 80px 5%;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 5px solid #d9534f;
}
.results-hero h2 {
    color: #d9534f;
    font-size: 2.5em;
    margin-bottom: 10px;
}
.main-results-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* KPIサマリーセクション */
.kpi-summary {
    text-align: center;
    margin-bottom: 40px;
}
.kpi-summary h3 {
    color: #004d99;
    margin-bottom: 20px;
    font-size: 1.8em;
}
.kpi-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}
.kpi-card {
    flex: 1 1 250px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.kpi-card:hover {
    transform: translateY(-5px);
}
.kpi-card h4 {
    color: #004d99;
    font-size: 2.5em;
    margin: 0 0 5px 0;
}
.kpi-card p {
    font-weight: bold;
    color: #666;
    margin: 0;
}

/* 個別実績カード */
.case-studies h3 {
    color: #004d99;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
}
.case-card {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    flex-wrap: wrap;
}
.case-card.reverse {
    flex-direction: row-reverse;
}
.case-image {
    width: 40%;
    height: 300px;
    object-fit: cover;
}
.case-details {
    width: 60%;
    padding: 30px;
    box-sizing: border-box;
}
.case-details .category {
    display: inline-block;
    background-color: #d9534f;
    color: white;
    padding: 4px 8px;
    font-size: 0.8em;
    border-radius: 4px;
    margin-bottom: 10px;
}
.case-details h4 {
    color: #333;
    margin-top: 0;
}
.result-highlight {
    margin-top: 15px;
    padding: 10px;
    border: 1px dashed #ffcc00;
    background-color: #fffaf0;
}
.result-highlight strong {
    color: #d9534f;
    font-size: 1.1em;
}
.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #004d99;
    font-weight: bold;
    text-decoration: none;
}


/* ======================================= */
/* フォーム共通スタイル */
/* ======================================= */
.contact-section { max-width: 800px; margin: 0 auto; padding: 40px 20px; background-color: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { font-weight: bold; display: block; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.form-group textarea { resize: vertical; }
.submit-button { background-color: #004d99; color: white; padding: 12px 40px; border: none; border-radius: 5px; cursor: pointer; font-size: 1.1em; font-weight: bold; transition: background-color 0.3s; }
.submit-button:hover { background-color: #003366; }


/* ======================================= */
/* インフルエンサー登録ページ固有スタイル */
/* ======================================= */
.influencer-hero { 
    background-color: #fce8e8;
    background-image: url('path/to/your/influencer_japanese_image.jpg'); /* 🚨 画像パスを修正してください */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    
    padding: 80px 5%;
    text-align: center; 
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.7);
}
.influencer-hero h2 { color: white !important; font-size: 2.5em; }
.influencer-hero p { color: white; font-size: 1.2em;}


.influencer-content { max-width: 900px; margin: 0 auto; padding: 20px; }
.summary-points { display: flex; justify-content: space-around; flex-wrap: wrap; margin-top: 20px; }
.point-box { width: 30%; min-width: 250px; padding: 15px; margin: 10px; background-color: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.registration-form-box { max-width: 600px; margin: 20px auto; padding: 30px; background-color: white; border: 1px solid #ffcc00; border-radius: 8px; }
.flow-list strong { font-weight: bold; color: #d9534f; }

/* 過去案件SNSリンクセクションのスタイル */
.past-cases-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ffcc00;
}
.past-cases-section h3 {
    color: #004d99;
    border-bottom: 2px solid #f4f4f4;
    padding-bottom: 10px;
}
.sns-link-list {
    list-style: none;
    padding: 0;
}
.sns-link-list li {
    padding: 10px 0;
    border-bottom: 1px dotted #ccc;
}
.sns-link-list li:last-child {
    border-bottom: none;
}
.sns-link-list a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    display: block;
    transition: color 0.3s;
}
.sns-link-list a:hover {
    color: #d9534f;
}
.sns-link-list i {
    margin-right: 10px;
    min-width: 15px;
}

/* 現在募集中の案件セクションのスタイル */
.current-campaigns-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.current-campaigns-section h3 {
    color: #d9534f;
    border-bottom: 2px solid #fce8e8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.campaign-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-around;
}
.campaign-card {
    flex: 1 1 300px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}
.campaign-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}
.campaign-card h4 {
    color: #004d99;
    font-size: 1.1em;
    margin-top: 0;
}
.campaign-card .description {
    font-size: 0.9em;
    color: #666;
    min-height: 50px;
}
.product-link {
    display: inline-block;
    margin-top: 10px;
    color: #d9534f;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #d9534f;
    transition: opacity 0.3s;
}
.product-link:hover {
    opacity: 0.8;
}


/* ======================================= */
/* レスポンシブデザイン（768px以下） */
/* ======================================= */
@media (max-width: 768px) {
    /* ハンバーガーメニューボタン (モバイルで表示) */
    .menu-toggle {
        display: block; 
    }
    
    /* ナビゲーション (モバイルで非表示 -> 開くと縦並び) */
    header nav {
        display: none; 
        width: 100%;
        flex-direction: column; 
        align-items: center;
        background-color: #003366;
        position: absolute;
        top: 60px; 
        left: 0;
        z-index: 1000;
        padding: 10px 0;
    }
    /* JavaScriptで開いたときに適用 */
    header nav.is-open {
        display: flex; 
    }

    header nav a {
        margin: 0; 
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    /* ヘッダー全体 (モバイル) */
    header {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: center;
        padding: 15px 20px;
    }
    header h1 {
        margin-bottom: 0;
    }

    /* メインコンテンツ */
    .main-content { padding: 10px 3%; }
    
    /* サービスページ */
    .service-hero-inner h2 {
        font-size: 1.8em;
    }

    /* 実績ページ */
    .results-hero h2 {
        font-size: 1.8em;
    }
    .kpi-grid {
        flex-direction: column;
        gap: 10px;
    }
    .kpi-card {
        flex: 1 1 100%;
    }
    .case-card, .case-card.reverse {
        flex-direction: column; 
    }
    .case-image, .case-details {
        width: 100%;
        height: auto;
    }
    .case-image {
        max-height: 250px;
    }
    .case-details {
        padding: 20px;
    }


    /* フッター */
    .footer-inner .link-group { flex-direction: column; gap: 10px !important; align-items: center; }
    
    /* インフルエンサーページ */
    .influencer-hero { padding: 40px 3% !important; }
    .influencer-hero h2 { font-size: 1.8em !important; }
    .influencer-hero p { font-size: 1em; }
    
    .summary-points { flex-direction: column; align-items: center; }
    .point-box { width: 90% !important; min-width: unset; margin: 10px 0 !important; }
    
    /* 案件カード (モバイル) */
    .campaign-card {
        flex: 1 1 90%;
        max-width: 90%;
    }
    
    /* フォーム共通 */
    .contact-section { padding: 20px 10px !important; margin: 20px auto !important; }
    .submit-button { padding: 10px 30px !important; font-size: 1em !important; }
}
