* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
}

/* ===== ヘッダーセクション ===== */
.contact-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-header p {
    font-size: 1.1em;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== コンテナ ===== */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== フォームセクション ===== */
.form-section {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.form-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.form-group .required {
    color: #e74c3c;
    font-weight: bold;
    margin-left: 3px;
}

.form-group .optional {
    color: #95a5a6;
    font-size: 0.85em;
    margin-left: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===== FAQセクション ===== */
.faq-section {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 60px;
}

.faq-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.faq-question::before {
    content: "Q";
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-answer {
    color: #555;
    line-height: 1.8;
    padding-left: 42px;
    margin-bottom: 0;
}

.faq-answer::before {
    content: "A";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #95a5a6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: -42px;
}

/* ===== レスポンス情報 ===== */
.response-info {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 60px;
}

.response-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.response-info p {
    color: #555;
    line-height: 1.6;
}

/* ===== Footer ===== */
.contact-footer {
    text-align: center;
    padding: 30px;
    color: #888;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 1.8em;
    }

    .contact-header p {
        font-size: 1em;
    }

    .form-section,
    .faq-section {
        padding: 30px 20px;
    }

    .form-section h2,
    .faq-section h2 {
        font-size: 1.5em;
    }
}

/* ===== YARPP 関連記事デザイン ===== */
.yarpp-related {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 60px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.yarpp-related h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.yarpp-related ol {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.yarpp-related li {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s, box-shadow 0.3s;
}

.yarpp-related li:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yarpp-related a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    line-height: 1.5;
    transition: color 0.3s;
}

.yarpp-related a:hover {
    color: #764ba2;
}

.yarpp-related .excerpt {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .yarpp-related {
        padding: 30px 20px;
    }

    .yarpp-related h3 {
        font-size: 1.5em;
    }
}