/* ========================================= */
/* I. 基本設定とキーカラー (紫系に統一) */
/* ========================================= */

/* キーカラー変数 */
:root {
    /* プライマリーカラーを紫系に設定 */
    --color-primary: #6200ee;      /* メインカラー: 紫（濃いめ） */
    --color-secondary: #bb86fc;    /* アクセントカラー: 紫（明るめ） */
    --color-accent-cta: #ff007f;   /* CTAボタン色: マゼンタ系で目立たせる */
    --color-background-light: #fff;
    --color-background-section: #f0f0f5; /* セクションの背景色を淡いグレー/紫系に */
    --color-text: #333;
    --color-mascot-skin: #e8d7b8;  /* マスコットのベージュ */
    --color-mascot-dark: #654321;  /* マスコットのブラウン（フッターなどで維持） */
    /* ヒーロー背景用紫カラーパレット */
    --color-purple-dark: #3700b3;
    --color-purple-medium: #6200ee;
    --color-purple-light: #bb86fc;
}

/* 基本リセットとフォント設定 */
body {
    font-family: sans-serif;
    line-height: 1.6;
    color: var(--color-text); 
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* 共通設定 */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
h1, h2, h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary); 
}
h2 {
    font-size: 2.2em;
    border-bottom: 3px solid var(--color-primary); 
    display: inline-block;
    padding-bottom: 10px;
}

/* CTAボタンの共通スタイル */
.cta-button {
    background-color: var(--color-accent-cta); /* マゼンタ */
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
}
.cta-button:hover {
    background-color: #d10069; 
    transform: translateY(-2px);
}

/* ========================================= */
/* II. 各セクションのスタイル */
/* ========================================= */

/* ヘッダー */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--color-background-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .logo img {
    height: 40px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    padding: 8px 15px;
    transition: color 0.3s;
}
.main-nav a:hover {
    color: var(--color-primary); 
}

/* 1. メインビジュアル（ヒーロー）- 滑らかな紫テクスチャ背景 */
.hero-section {
    /* 背景全体を暗くする半透明の黒のオーバーレイを一番上に */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        /* 1. 【滑らかなグラデーション】多段指定で滑らかに */
        linear-gradient(
            135deg, 
            var(--color-purple-dark) 0%,         /* #3700b3 */
            #58189c 15%,                         /* 中間色1 (濃いめ) */
            #601a97 30%,                         /* 中間色2 */
            var(--color-purple-medium) 50%,      /* #6200ee (中央) */
            #8e44ad 70%,                         /* 中間色3 */
            #a96ccf 85%,                         /* 中間色4 (明るめ) */
            var(--color-purple-light) 100%       /* #bb86fc */
        ),
        /* 2. 斜めの濃い線（模様）を細かくする */
        repeating-linear-gradient(
            45deg, 
            rgba(0, 0, 0, 0.15) 0, 
            rgba(0, 0, 0, 0.15) 1px, 
            transparent 1px, 
            transparent 8px 
        ),
        /* 3. 反対の角度の細い線を追加し、グリッド感を出す */
        repeating-linear-gradient(
            -45deg, 
            rgba(255, 255, 255, 0.05) 0, 
            rgba(255, 255, 255, 0.05) 1px, 
            transparent 1px, 
            transparent 10px 
        ),
        /* ----------------------------------------------------- */
        /* 新しい不規則な模様の追加ここから */
        /* ----------------------------------------------------- */
        /* 4. ランダムな微小ドット/ノイズ (より細かい不規則性) */
        /* 複数のradial-gradientを異なる位置とサイズで重ねることで不規則感を出す */
        radial-gradient(
            circle at 10% 20%, /* 左上寄り */
            rgba(255, 255, 255, 0.03) 0%, 
            rgba(255, 255, 255, 0) 10%
        ),
        radial-gradient(
            circle at 80% 60%, /* 右下寄り */
            rgba(255, 255, 255, 0.04) 0%, 
            rgba(255, 255, 255, 0) 12%
        ),
        radial-gradient(
            circle at 40% 90%, /* 下中央寄り */
            rgba(255, 255, 255, 0.02) 0%, 
            rgba(255, 255, 255, 0) 8%
        ),
        radial-gradient(
            circle at 60% 10%, /* 上中央寄り */
            rgba(255, 255, 255, 0.05) 0%, 
            rgba(255, 255, 255, 0) 15%
        ),
        /* 既存の放射状の光沢を維持または調整 */
        radial-gradient(
            circle at top left, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0) 25%
        ),
        radial-gradient(
            circle at bottom right, 
            rgba(255, 255, 255, 0.05) 0%, 
            rgba(255, 255, 255, 0) 15%
        );
        /* ----------------------------------------------------- */
        /* 新しい不規則な模様の追加ここまで */
        /* ----------------------------------------------------- */

    background-size: cover; 
    background-position: center; 
    color: white; 
    text-align: center;
    padding: 150px 5%;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: white;
    /* 視認性向上のための強力なシャドウ */
    text-shadow: 0 0 10px rgba(0, 0, 0, 1), 0 0 5px rgba(0, 0, 0, 0.8); 
}
.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    /* 視認性向上のための強力なシャドウ */
    text-shadow: 0 0 8px rgba(0, 0, 0, 1);
}

/* 2. フレームワンとは（About Us） */
.mascot-intro {
    text-align: center;
    margin-bottom: 60px;
}
.mascot-intro img {
    width: 150px;
    margin-bottom: 20px;
}
.mascot-intro h2 {
    font-size: 1.5em;
    color: var(--color-text);
    border: none;
}
.features {
    display: flex;
    gap: 30px;
    text-align: center;
}
.feature-item {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: 5px solid var(--color-primary); /* 紫 */
    background-color: white;
    border-radius: 8px;
}

/* 3. サービス内容 */
.services-section {
    background-color: var(--color-background-section); /* 淡いグレー/紫系 */
}
.service-list {
    display: flex;
    gap: 30px;
}
.service-card {
    flex: 1;
    background-color: var(--color-mascot-skin); /* マスコットのベージュ */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.service-card h3 {
    font-size: 1.4em;
    color: var(--color-mascot-dark);
    margin-bottom: 15px;
    text-align: left;
}
.service-card p {
    text-align: left;
}


/* 5. 制作フロー */
.flow-steps {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
}
.flow-steps li {
    flex: 1;
    position: relative;
    padding-top: 20px;
}
.flow-steps li img {
    width: 80px;
    display: block;
    margin: 0 auto 10px;
}
.flow-steps li span {
    color: var(--color-primary); /* 紫 */
    background-color: #eae6ff; /* 淡い紫 */
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
}

/* 7. お問い合わせ */
.contact-section {
    background-color: #311b92; /* 🔴 最終決定色: ディープインディゴ（濃い紫寄り） */
    color: white;
    text-align: center;
    padding: 80px 5%;
}
.contact-section h2 {
    color: white;
    border-bottom-color: white;
}
.large-cta {
    font-size: 1.4em;
    padding: 15px 40px;
    background-color: var(--color-accent-cta); /* マゼンタ */
    color: white !important;
}
.large-cta:hover {
    background-color: #d10069;
}

/* フッター */
.site-footer {
    text-align: center;
    padding: 30px 5%;
    background-color: #222;
    color: #bbb;
    font-size: 0.9em;
}
.site-footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 0 15px 0;
    padding: 0;
}
.site-footer nav a {
    color: #bbb;
    text-decoration: none;
}
.site-footer nav a:hover {
    color: white;
}

/* ========================================= */
/* III. レスポンシブ対応 */
/* ========================================= */

@media (max-width: 768px) {
    /* 全体設定 */
    section {
        padding: 40px 4%;
    }
    h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    
    /* ヘッダー */
    .site-header {
        flex-direction: column;
        padding: 10px 4%;
    }
    .site-header .logo {
        margin-bottom: 10px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .main-nav a {
        padding: 5px 10px;
        font-size: 0.9em;
    }
    .main-nav .cta-button {
        order: -1; 
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    /* 1. メインビジュアル */
    .hero-section {
        padding: 100px 4%;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }

    /* 2. フレームワンとは */
    .features {
        flex-direction: column;
        gap: 20px;
    }
    .mascot-intro img {
        width: 120px;
    }

    /* 3. サービス内容 */
    .service-list {
        flex-direction: column;
        gap: 20px;
    }

  
    /* 5. 制作フロー */
    .flow-steps {
        flex-direction: column;
        gap: 40px;
    }
    .flow-steps li {
        width: 100%;
        padding-top: 0;
    }

    /* 7. お問い合わせ */
    .contact-section {
        padding: 60px 4%;
    }
    .large-cta {
        font-size: 1.2em;
        padding: 12px 30px;
    }

    /* フッター */
    .site-footer nav ul {
        flex-direction: column;
        gap: 10px;
    }
}