@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

.page-template-page-philosophy .page-title-svg {
    display: none;
}

#philosophy {
    font-family: "Noto Sans JP", sans-serif;
    padding: 3rem 4rem;
    background: var(--text-white-color);
    display: grid;
    gap: 2rem;
}

@media (min-width:1400px) {
    #philosophy {
        margin-top: 300px;
    }
}

#philosophy .message .column {
    display: grid;
    gap: 1.3rem;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 1rem;
    border-bottom: 1px solid #dddddd;
}

#philosophy .message .column h2 {
    line-height: 1.4;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 3rem;
    border-bottom: 0px;
}

.message {
    display: grid;
    position: relative;
}

#philosophy .title img {
    border-radius: 8px;
    margin-bottom: 1.3rem;
    background: var(--text-white-color);
    box-shadow: var(--shadow);
    height: auto;
    position: relative;
    z-index: 1;
}

/* 疑似要素でグラデーションを重ねる */
#philosophy .title img::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(100, 181, 246, 0.18) 80%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
    display: block;
}

.body p {
    line-height: 1.5;
    text-align: justify;
    padding-top: 1rem;
    font-weight: 300;
}

/* セクション共通スタイル */
.philosophy-content {
    margin-bottom: 60px;
}

.company-section-title {
    position: relative;
    display: grid;
    gap: 10px;
    color: var(--text-color);
    margin-bottom: 3rem;
    line-height: 2rem;
}

.ja span {
    font-weight: normal;
}

.ja {
    font-weight: 700;
    line-height: 1.5;
    margin-top: 1.3rem;
    white-space: nowrap;
    width: fit-content;
    height: fit-content;
}

.en {
    font-weight: 400;
    width: fit-content;
    height: fit-content;
}

.company-section-title .introduction {
    position: absolute;
    top: 0;
    right: 30px;
    height: 160px;
    width: 160px;
    display: none;
}

.main-content {
    padding-top: 0 !important;
    /* 柔らかい青系グラデーション */
    background: linear-gradient(135deg, #e3f0ff 0%, #f9f9ff 100%);

}

/* コンテンツが設定されていない場合のメッセージ */
.no-content-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

@media (max-width: 768px) {
    #philosophy {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

    #philosophy .message .column h2 {
        font-size: 1.2rem;
    }

    .company-section-title .introduction {
        position: absolute;
        top: 70px;
        right: -5px;
        height: 90px;
        width: 90px;
    }

    .body span p {
        line-height: 1.8;
        padding: 0;
        text-align: justify;
    }
}

/* philosophyセクションの装飾（枠・影など） */
#philosophy {
    background: var(--text-white-color);
    box-shadow: var(--shadow);
    border: 1px solid var(--main-color);
    padding: 2rem 6% 6% 6%;
    margin: 2rem auto;
    max-width: 900px;
}

#philosophy h2 {
    font-size: 2rem;
    margin: 0 auto 0 0;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--main-color);
}

#philosophy .message.keiei {
    font-size: 1.2rem;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    #philosophy {
        padding: 1rem;
        margin: 1rem;
    }
}