/* 会社情報テーブル */
.company-info {
    border-top: 1px solid #ddd;
    display: flex;
    flex-wrap: wrap;
}
.company-info dt, .company-info dd {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
    /* vertical-align: top; は不要なので削除またはコメントアウト */
    /* vertical-align: top; */
}
.company-info dt {
    width: 25%;
    font-weight: 700;
    background-color: #f8f9fa;
    /* ★追加★ dtの内容も中央寄せにしたい場合 */
    display: flex;
    align-items: center; /* 垂直方向中央 */
    /* justify-content: flex-end; /* 右寄せにしたい場合 */ 
}
.company-info dd {
    width: 75%;
    margin-left: 0;
    /* ★追加★ ddの内容を中央寄せにする */
    display: flex;
    align-items: center; /* 垂直方向中央 */
}


/* 数字で見る */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.data-box {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.data-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(4, 114, 255, 0.2);
    border: 1px solid var(--secondary-color);
}
.data-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.data-box p {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}
.data-box span {
    font-size: 1rem;
    color: #666;
}

.data-box p .counter {
    font-size: inherit;
    font-weight: inherit;
    color: #00529B; /* 例：トマト色。お好みの色に変更してください */
}

/* 会社の歴史 */
.history-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.history-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.history-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.history-item:nth-child(odd) {
    left: 0;
    text-align: right;
}
.history-item:nth-child(even) {
    left: 50%;
}
.history-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.history-item:nth-child(even)::after {
    left: -10px;
}
.history-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

#hamburger-menu-check {
    display: none;
}

/* ハンバーガーアイコン */
.hamburger-menu-icon {
    display: none; /* PCでは非表示 */
    position: relative;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1010; /* メニューより手前に */
}

.hamburger-menu-icon span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.4s;
}

.hamburger-menu-icon span:nth-of-type(1) {
    top: 0;
}
.hamburger-menu-icon span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-menu-icon span:nth-of-type(3) {
    bottom: 0;
}

/* チェックボックスがONの時（メニュー表示時）のアイコンを「×」にする */
#hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
#hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(2) {
    opacity: 0;
}
#hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* ===============================================
レスポンシブ対応の修正
   =============================================== */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .card-grid { grid-template-columns: 1fr; }
    .about-company, .interview-box { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }

    /* ハンバーガーアイコンを表示 */
    .hamburger-menu-icon {
        display: block;
    }

    /* PC用のナビゲーションメニューのスタイルを上書き */
    .header-nav {
        display: block; /* display: none を上書き */
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態では画面右外に隠す */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding-top: 100px;
        transition: right 0.5s;
        z-index: 1000;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .header-nav li {
        width: 100%;
        text-align: center;
    }

    .header-nav a {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--border-color);
    }
    .header-nav a::after {
        display: none; /* ホバー時の下線を消す */
    }

    /* チェックボックスがONの時にメニューを表示 */
    #hamburger-menu-check:checked ~ .header-nav {
        right: 0;
        
    }
}