/* マリッジタイプ別解説ページ共通スタイル */

.type-page {
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 50%);
    min-height: calc(100vh - 80px);
    padding: 2rem 0 4rem;
}

.type-breadcrumb {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.type-breadcrumb a {
    color: #7c3aed;
    text-decoration: none;
}

.type-breadcrumb a:hover {
    text-decoration: underline;
}

.type-hero {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 2.5rem;
    border-top: 6px solid var(--accent, #7c3aed);
}

.type-hero .eyebrow {
    display: inline-block;
    background: var(--accent, #7c3aed);
    color: white;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.type-hero h1 {
    font-size: 2.2rem;
    color: #1f2937;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.type-hero .type-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

.type-section {
    background: white;
    border-radius: 16px;
    padding: 2rem 2.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.75rem;
}

.type-section h2 {
    font-size: 1.4rem;
    color: #1f2937;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.type-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-section ul li {
    padding: 0.75rem 0 0.75rem 1.75rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    line-height: 1.7;
}

.type-section ul li:last-child {
    border-bottom: none;
}

.type-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--accent, #7c3aed);
    font-weight: bold;
}

.type-section.caution ul li::before {
    content: "！";
    color: #f59e0b;
}

.type-section p {
    color: #4b5563;
    line-height: 1.8;
    margin: 0 0 1rem;
}

.type-section p:last-child {
    margin-bottom: 0;
}

/* 相性タイプ */
.compat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 1rem;
}

.compat-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.compat-card.good {
    border-left: 4px solid #10b981;
}

.compat-card.caution {
    border-left: 4px solid #f59e0b;
}

.compat-card h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.compat-card h3 a {
    color: #1f2937;
    text-decoration: none;
}

.compat-card h3 a:hover {
    color: #7c3aed;
}

.compat-card p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* FAQ */
.type-faq details {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.type-faq details:last-child {
    border-bottom: none;
}

.type-faq summary {
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    padding: 0.5rem 0;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.type-faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #7c3aed;
    font-size: 1.5rem;
    font-weight: bold;
}

.type-faq details[open] summary::after {
    content: "−";
}

.type-faq details p {
    margin-top: 0.75rem;
    color: #4b5563;
    line-height: 1.7;
}

/* CTA */
.type-cta {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}

.type-cta h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.type-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
}

.type-cta .primary-button {
    background: white;
    color: #7c3aed;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.type-cta .primary-button:hover {
    transform: translateY(-2px);
}

/* 他タイプへのリンク */
.other-types {
    margin-top: 1rem;
}

.other-types-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.other-types-grid a {
    display: block;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.2s;
}

.other-types-grid a:hover {
    border-color: #7c3aed;
    background: #faf5ff;
    transform: translateY(-2px);
}

.other-types-grid a strong {
    display: block;
    margin-bottom: 0.25rem;
}

.other-types-grid a span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ハブページ用 */
.types-hub-hero {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.types-hub-hero h1 {
    font-size: 2.2rem;
    color: #1f2937;
    margin: 0 0 1rem;
}

.types-hub-hero p {
    color: #6b7280;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.types-hub-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1100px;
    margin: 2rem auto;
}

.types-hub-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--accent, #7c3aed);
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.types-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.types-hub-card h2 {
    font-size: 1.3rem;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.types-hub-card .type-tagline {
    color: var(--accent, #7c3aed);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.types-hub-card p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .type-hero {
        padding: 2rem 1.5rem;
    }

    .type-hero h1 {
        font-size: 1.6rem;
    }

    .type-section {
        padding: 1.5rem 1.5rem;
    }

    .type-section h2 {
        font-size: 1.2rem;
    }

    .types-hub-hero h1 {
        font-size: 1.6rem;
    }
}
