﻿/* ==========================================================================
   1. 基本設定・リセット
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 共通セクションタイトル */
.section-title {
    font-size: 2rem;
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    margin-bottom: 40px;
}

/* 共通ボタン */
.btn-cta {
    display: inline-block;
    background-color: #f97316; /* オレンジ */
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(249, 115, 22, 0.4);
    opacity: 1;
}

/* ==========================================================================
   2. ヘッダー
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.site-logo a {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e3a8a;
}

.global-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.global-nav a {
    font-weight: 500;
    color: #4b5563;
}

.global-nav a:hover {
    color: #1e3a8a;
}

.btn-nav-contact {
    background-color: #1e3a8a;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* ==========================================================================
   3. メインビジュアル（ヒーロー）
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 80px 20px;
    text-align: center;
}

.hero-sub {
    color: #f97316;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 20px;
}

.hero-title strong {
    color: #1e3a8a;
}

.hero-lead {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 35px;
}

/* ==========================================================================
   4. お悩み（共感）
   ========================================================================== */
.pain-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.pain-list {
    max-width: 700px;
    margin: 0 auto 30px;
    background-color: #f9fafb;
    border-left: 4px solid #ef4444; /* 警告的な赤 */
    padding: 20px 30px;
}

.pain-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-weight: 500;
}

.pain-list li:last-child {
    margin-bottom: 0;
}

.pain-list li::before {
    content: "×";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2rem;
}

.pain-solution {
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

/* ==========================================================================
   5. 特徴・強み
   ========================================================================== */
.feature-section {
    padding: 80px 0;
    background-color: #f3f4f6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: relative;
}

.feature-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dbeafe;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* ==========================================================================
   6. 料金プラン（テーブルレスポンシブ対応）
   ========================================================================== */
.price-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.price-table th, .price-table td {
    border: 1px solid #e5e7eb;
    padding: 15px 20px;
    text-align: left;
}

.price-table th {
    background-color: #1e3a8a;
    color: #ffffff;
    font-weight: bold;
}

.price-table tr:nth-child(even) {
    background-color: #f9fafb;
}

.price-table td strong {
    color: #1e3a8a;
}

/* ==========================================================================
   7. 制作実績
   ========================================================================== */
.works-section {
    padding: 80px 0;
    background-color: #f7fafa;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.works-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.works-img {
    background-color: #e5e7eb;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    margin-bottom: 15px;
    border-radius: 4px;
}

.works-item h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #111827;
}

.works-item p {
    font-size: 0.95rem;
    color: #4b5563;
}

.works-img {
    background-color: #e5e7eb;
    height: auto; /* 高さを自動調整に変更 */
    overflow: hidden; /* 画像が枠からはみ出るのを防ぐ */
    margin-bottom: 15px;
    border-radius: 8px; /* 角を少し丸くして柔らかい印象に */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 軽い影をつけて立体感を出す */
}

.works-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 画像の比率を保ったまま綺麗に収める */
    transition: transform 0.3s ease; /* マウスを乗せた時のアニメーション用 */
}

/* マウスを乗せた時に画像を少し拡大させて、クリックできる雰囲気を作る演出 */
.works-item:hover .works-img img {
    transform: scale(1.05);
}

/* ==========================================================================
   8. 制作の流れ
   ========================================================================== */
.flow-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.flow-list {
    max-width: 800px;
    margin: 0 auto;
}

.flow-list li {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
}

.flow-list li:last-child {
    margin-bottom: 0;
}

.flow-step {
    display: inline-block;
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.flow-list h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #111827;
}

.flow-list p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* ==========================================================================
   9. お問い合わせフォーム
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background-color: #eff6ff; /* 薄い青 */
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #374151;
}

.required {
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.form-submit {
    text-align: center;
}

.btn-submit {
    background-color: #f97316;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 50px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.2);
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #ea580c;
}

/* ==========================================================================
   10. フッター
   ========================================================================== */
.site-footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 30px 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   11. レスポンシブ対応（スマートフォン表示）
   ========================================================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    .global-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 15px;
        font-size: 0.9rem;
    }

    /* ヒーロー */
    .hero-title {
        font-size: 1.8rem;
    }
    .btn-cta {
        font-size: 1.1rem;
        padding: 12px 25px;
        width: 100%; /* スマホ時はボタンを全幅に */
    }

    /* 料金表（スマホ時は横スクロールできるようにする） */
    .price-section .container {
        overflow-x: auto;
    }
    .price-table {
        min-width: 600px;
    }

    /* 実績 */
    .works-grid {
        grid-template-columns: 1fr;
    }
    .works-img {
        height: 180px;
    }

    /* フォーム */
    .contact-form {
        padding: 20px;
    }
    .btn-submit {
        width: 100%;
    }
}