/*
    Hestia's Definitive Blueprint for the "Contact" Gateway (Unabridged)
    --------------------------------------------------------------------
    File: contact.css
    Role: To create a helpful, clear, and welcoming support center, with NO OMISSIONS.
*/

/* --- [I] The Gateway's Face: Hero Section --- */
.hero-contact {
    min-height: 300px;
    background-image: linear-gradient(to top, rgba(0, 150, 136, 0.8), rgba(77, 182, 172, 0.4)), url('../images/common/contact-hero.jpg');
}

/* --- [II] The Guide's Advice: Intro --- */
.contact-intro {
    padding: 5rem 0;
    background-color: #f8f9fa;
}
.intro-dialogue {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Hestia's Ultimate Correction: “魂の、対話”の、完全記述 */
.dialogue-turn {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.dialogue-turn img {
    height: 60px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.dialogue-turn p {
    margin: 0;
    padding: 1rem;
    border-radius: 10px;
    line-height: 1.6;
    position: relative;
}
/* キャラクターごとの、魂の色 */
.correct-turn p { background-color: #e3f2fd; }
.chisai-turn p { background-color: #fffde7; }
.connect-turn p { background-color: #fff3e0; }
.folio-turn p { background-color: #e8f5e9; }

/* 吹き出しのしっぽ */
.dialogue-turn p::before {
    content: ''; position: absolute; top: 20px; left: -10px;
    border-width: 10px 10px 10px 0; border-style: solid;
}
.correct-turn p::before { border-color: transparent #e3f2fd transparent transparent; }


/* --- [III] The Knowledge Base: FAQ Section --- */
.faq-section { padding: 5rem 0; }
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }

.faq-category h3 {
    font-family: var(--font-family-title);
    font-size: 1.5rem;
    color: var(--color-primary);
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
}
.faq-item summary {
    padding: 1.2rem;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s;
}
.faq-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
    padding: 0 1.2rem 1.2rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    border-top: 1px dashed #e0e0e0;
}


/* --- [IV] The Doors to Communication: Contact Forms --- */
.contact-forms { padding: 5rem 0; background-color: #e3f2fd; }
.contact-desc { text-align: center; margin-bottom: 3rem; font-size: 1.1rem; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.contact-card {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.contact-card.special {
    border: 2px solid var(--color-secondary);
    position: relative;
}
.contact-card.special::before {
    content: 'BUSINESS';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-secondary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.card-icon { font-size: 3rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.5rem; margin: 0 0 1rem 0; }
.contact-card p { margin: 0 0 2rem 0; color: #555; }
.contact-card .cta-button { width: 100%; box-sizing: border-box; }
.contact-card .sub-text { margin-top: 1rem; font-size: 0.8rem; color: #999; }