/* ==========================================================================
   Subsidiary Page Styles
   分社化・会社設立ページ専用スタイル
   ========================================================================== */

/* Hero Section Background */
.hero-bg {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.7) 0%, rgba(30, 58, 95, 0.5) 100%),
        url('../img/hero-bg-v2.webp') center/cover;
    background-attachment: fixed;
}

.hero-title-main {
    line-height: 1.2 !important;
}

/* Merit Cards */
.merit-card {
    transition: all 0.3s ease;
}

.merit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    visibility: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out, border-top-width 0.3s ease-out, visibility 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top-width: 1px;
    visibility: visible;
}

.faq-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ==========================================================================
   Company Split Diagram (Edgy Style)
   分社化の図解エリア
   ========================================================================== */
.company-split-diagram-wrapper {
    padding: 40px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.split-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.split-box,
.split-card {
    background: white;
    border: 2px solid #1e3a8a;
    padding: 20px;
    position: relative;
    box-shadow: 8px 8px 0px rgba(30, 58, 159, 0.2);
    transition: transform 0.2s;
    text-align: center;
}

.split-box:hover,
.split-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px rgba(30, 58, 159, 0.2);
}

.split-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e3a8a;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 4px;
}

/* Business Pills */
.business-pill {
    background: #3b82f6;
    color: white;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.business-pill.type-b {
    background: #10b981;
}

.business-pill.small {
    font-size: 0.75rem;
    padding: 2px 8px;
    display: inline-block;
}

/* Arrow */
.split-arrow-area {
    text-align: center;
    position: relative;
    width: 80px;
}

.arrow-text {
    font-weight: bold;
    color: #db2777;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.arrow-shape {
    width: 100%;
    height: 4px;
    background: #db2777;
    position: relative;
}

.arrow-shape::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 15px solid #db2777;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .arrow-shape {
        width: 4px;
        height: 40px;
        margin: 0 auto;
    }

    .arrow-shape::after {
        right: 50%;
        bottom: -10px;
        top: auto;
        transform: translateX(50%) rotate(90deg);
    }
}