/* ==========================================================================
   CORPORATE ページ固有のスタイル
   ========================================================================== */

/* ==========================================================================
   4. ヒーローセクション
   ========================================================================== */
   .hero-section {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding-top: 100px;
    background-color: var(--color-white);
    height: 25vh; /* ヒーローセクションの高さ */
    min-height: 400px;
    overflow: visible; /* はみ出し許可 */
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    height: 100%;
    position: relative;
    z-index: 2; /* 画像より前面に */
}

.hero-text-content {
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.9); /* 背景に半透明の白を追加 */
    padding: 20px;
}

.hero-subtitle {
    font-size: 18px;
    font-family: var(--font-body);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 60px;
    font-family: var(--font-headline);
    letter-spacing: 2px;
}

.hero-image-container {
    position: absolute;
    width: 600px;
    height: 600px;
    top: 130%; /* 位置を調整 */
    left: 50%;
    transform: translate(-50%, -30%); /* 中央揃えで上下位置調整 */
    z-index: 1; /* テキストより背面に */
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   5. 私たちの理念セクション
   ========================================================================== */
.philosophy-section {
    background-color: var(--color-light-gray);
    position: relative;
    margin-top: 13vh; /* ヒーローセクションの高さ分だけ下げる */
    padding: 400px 0 80px; /* 上部に画像用のスペースを確保 */
    min-height: 300px; /* 最小高さを設定 */
}

.philosophy-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.vertical-philosophy {
    width: 30px;
    margin-right: 40px;
    position: relative;
}

.vertical-title {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    font-size: 30px;
    line-height: 1.2;
    height: 222px;
    width: 30px;
    text-orientation: mixed;
    display: block;
}

.vertical-subtitle {
    position: absolute;
    top: 0;
    right: -15px;
    transform: rotate(-90deg);
    transform-origin: top right;
    font-family: var(--font-headline);
    font-size: 12px;
    letter-spacing: 1px;
    white-space: nowrap;
    color: #666;
}

.philosophy-content {
    margin-left: 185px;
    flex: 0.8;
    display: flex;
    flex-direction: column;
}

.philosophy-text-jp {
    margin-bottom: 40px;
}

.philosophy-catchphrase {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.philosophy-catchphrase-en {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* ==========================================================================
   6. 会社概要セクション
   ========================================================================== */
.company-section {
    background-color: var(--color-white);
}

.section-title {
    font-family: var(--font-headline);
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title-en {
    display: block;
    font-size: 16px;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.company-info {
    margin-top: 40px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th, .company-table td {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.company-table th {
    width: 25%;
    font-family: var(--font-body);
    font-weight: 500;
}

.company-table td {
    width: 75%;
}

.company-table td span.en-text {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.company-table ul {
    list-style: none;
}

.company-table ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.company-table ul li:before {
    content: '・';
    position: absolute;
    left: 0;
}

.company-table ul.en-list {
    margin-top: 10px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
    .hero-section {
        height: 40vh;
        min-height: 250px;
        padding-top: 80px;
    }
    
    .hero-text-content {
        padding: 15px;
    }
    
    .hero-subtitle {
        font-size: 12px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-image-container {
        width: 246px;
        height: 270px;
        top: 105%;
        transform: translate(-50%, -20%);
    }
    
    .philosophy-section {
        margin-top: 20vh;
        padding: 200px 0 60px;
    }

    .philosophy-content {
        margin-left: 0; /* PCで設定した左マージンを0に */
        flex: 1; /* flexを1に戻す */
    }
    
    .philosophy-container {
        padding: 0 20px;
        flex-direction: column;
    }
    
    .vertical-philosophy {
        width: 100%;
        height: 30px;
        margin-right: 0;
        margin-bottom: 40px;
        display: flex;
        align-items: center;
    }

    .vertical-title {
        writing-mode: horizontal-tb;
        height: auto;
        width: auto;
        font-size: 24px;
        margin-right: 10px;
    }

    .vertical-subtitle {
        position: static;
        transform: none;
        font-size: 12px;
    }
}

@media screen and (max-width: 576px) {
    .philosophy-container {
        padding: 0px 50px;
    }

    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 5px;
        border-bottom: none;
    }

    .company-table td {
        padding-top: 5px;
    }
}