/*
    Hestia's Ultimate Blueprint for the Grand Depot (Final Answer)
    --------------------------------------------------------------
    File: business.css
    Role: To achieve the ultimate comfort and harmony through the beauty of subtraction.
    Note: ALL details, especially margins and balance, have been perfected.
*/

/* --- [O] The Walls of the Station: The Container (Perfected) --- */
.container {
    /* Hestia's Ultimate Correction: 思い切って、狭める。これこそが、安らぎ。 */
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}


/* --- [I] The Depot's Vista: Hero Section (Perfected) --- */
.hero-business {
    min-height: 400px;
    background-image: linear-gradient(to top, rgba(0, 40, 80, 0.8), rgba(0, 40, 80, 0.4)), url('../images/common/business-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.hero-business-content { text-align: left; color: white; }
.hero-title-group { border-left: 4px solid var(--color-secondary); padding-left: 1.5rem; }
.hero-subtitle { font-family: var(--font-family-title); font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; opacity: 0.8; }
.hero-title { font-family: 'Noto Serif JP', serif; font-size: clamp(2.5rem, 5vw, 3.5rem); text-shadow: 0 5px 20px rgba(0,0,0,0.5); line-height: 1.3; margin: 0.5rem 0 0 0; }
.hero-description { font-size: 1.2rem; opacity: 0.9; margin-top: 1.5rem; padding-left: calc(1.5rem + 4px); }

/* --- [II] The Bridge: Connect's Introduction (Perfected) --- */
.connect-bridge {
    padding: 4rem 0;
    background-color: #fff3e0;
}
.connect-bridge-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}
.connect-guide { flex-shrink: 0; }
/* Hestia's Ultimate Correction: コネクトの、存在感を、調和の中へ。 */
.connect-guide img { height: 120px; }
.bridge-text { max-width: 600px; }
.bridge-text h2 { font-family: var(--font-family-title); font-size: 2rem; color: #fb8c00; margin: 0 0 1rem 0; }
.bridge-text p { margin: 0; line-height: 1.8; font-size: 1.1rem; }

/* --- [III] The Railway Lines: Business Line Section (Perfected) --- */
.business-line { padding-top: 5rem; padding-bottom: 5rem; }
.line-information { background-color: #f8f9fa; }
.line-chisai { background-color: #ffffff; }
.line-education { background-color: #f8f9fa; }

.line-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; flex-wrap: wrap; gap: 2rem; }
.line-header.reverse { flex-direction: row-reverse; }

.line-title { font-family: var(--font-family-title); font-size: 2.8rem; color: var(--color-primary); text-align: right; margin: 0; flex-shrink: 0; }
.line-header.reverse .line-title { text-align: left; }
.line-title span { display: block; font-family: var(--font-family-base); font-size: 1rem; color: #888; margin-top: 0.5rem; }

.line-guide { display: flex; align-items: center; gap: 1.5rem; max-width: 500px; }
.line-guide img { height: 100px; flex-shrink: 0; }
.line-guide p { margin: 0; background-color: white; padding: 1.5rem; border-radius: 10px; border: 1px solid #e0e0e0; line-height: 1.7; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.line-chisai .line-guide p, .line-education .line-guide p { background-color: #f8f9fa; }


/* --- [IV] The Carriages: Business Card Grid (Perfected with CUD) --- */
.business-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.business-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    text-decoration: none;
    color: var(--color-text);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}
.line-chisai .business-card, .line-education .business-card { background-color: #f8f9fa; }
.business-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }

/* 色だけに、頼らない、情報の、伝達 */
.business-card.special::before, .business-card.new::before {
    position: absolute;
    top: 1rem;
    left: -10px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    padding: 0.3rem 1rem 0.3rem 1.5rem;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1; /* カードの上に表示 */
}
.business-card.special::before {
    content: '重点事業';
    background-color: #388e3c; /* コントラスト比の高い緑 */
}
.business-card.new::before {
    content: '新事業';
    background-color: #f57c00; /* コントラスト比の高いオレンジ */
}

.card-icon { padding: 2rem; text-align: center; background-color: #e9ecef; border-bottom: 1px solid #dee2e6; }
.card-icon img { max-height: 60px; max-width: 150px; }
.card-title { font-family: var(--font-family-title); font-size: 1.5rem; margin: 1.5rem 1.5rem 0.5rem 1.5rem; }
.card-description { font-size: 0.9rem; line-height: 1.7; margin: 0 1.5rem 1.5rem 1.5rem; flex-grow: 1; }
.card-conductor {
    margin-top: auto;
    background-color: #6c757d; /* CUDを意識し、情報を伝えるための色分けを廃止。落ち着いたグレーに */
    color: white;
    padding: 0.5rem 1.5rem;
    text-align: right;
    font-size: 0.8rem;
    font-weight: bold;
}