@charset "utf-8";
/* CSS Document */
/* =========================================
   沿革（ヒストリー）セクション専用スタイル
========================================= */

.history-sec {
    position: relative;
    padding: 120px 0 200px;
    background: #1a365d;
    background: linear-gradient(180deg, #1a365d 0%, #63b3ed 60%, #f0f6fc 100%);
    background-attachment: scroll;
    overflow: hidden;
}

.history-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('../2026_images/history/climb.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center 30%;
    opacity: 0.45;
    mix-blend-mode: multiply;
    z-index: 1;
}

.history-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    padding: 0 20px;
}

/* =========================================
   タイトル周り
========================================= */
.history-sec-title,
.history-sec-title h2,
.history-sec-title .title,
.history-sec-title .title-en,
.history-sec-title p,
.history-sec-title span {
    color: #ffffff !important;
    text-align: center !important;
}

.history-sec-title {
    padding-top: 30px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 80px; 
}

#history-aas{ margin-bottom: 20px !important; font-size: 200%; }
#history-p01{ margin-bottom: 50px !important; }

.history-sec-title h2,
.history-sec-title .title-en,
.history-sec-title .title {
    font-size: clamp(50px, 10vw, 100px) !important;
    font-family: "Times New Roman", serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.25em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    margin-bottom: 30px !important;
    display: block !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.history-sec-title p,
.history-sec-title .title-jp,
.history-sec-title span {
    font-size: clamp(18px, 2.5vw, 24px) !important;
    color: #d1e5f7 !important;
    font-weight: 600 !important;
    letter-spacing: 0.3em !important;
    font-family: "Yu Gothic", sans-serif !important;
    display: block !important;
}

/* =========================================
   タイムラインベース
========================================= */
.timeline-wrap {
    position: relative;
    padding-bottom: 50px; 
}

.timeline-line {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%);
    z-index: 2;
}

/* =========================================
   アイテム配置（かぶせレイアウト）
========================================= */
.history-item {
    width: 50%;
    position: relative;
    margin-bottom: -90px; 
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 5;
}

.history-item.is-active {
    opacity: 1;
    transform: translateY(0);
}

.history-item.left-card {
    left: 0;
    padding-right: 40px; 
    text-align: right;
    box-sizing: border-box;
    z-index: 6; 
}

.history-item.right-card {
    left: 50%;
    padding-left: 40px; 
    text-align: left;
    box-sizing: border-box;
    margin-top: 50px; 
}

.history-item:last-of-type {
    margin-bottom: 0;
}

/* =========================================
   丸ポチ
========================================= */
.history-dot {
    position: absolute;
    top: 40px; 
    width: 16px; height: 16px;
    background-color: #ffffff;
    border: 4px solid #63b3ed;
    border-radius: 50%;
    z-index: 10;
}
.history-item.left-card .history-dot { right: -10px; }
.history-item.right-card .history-dot { left: -10px; }

/* =========================================
   カードデザイン
========================================= */
.history-card {
    display: inline-block;
    text-align: left;
    background: #ffffff;
    padding: 30px; 
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    width: 100%;
    box-sizing: border-box;
    vertical-align: top;
    position: relative;
    z-index: 10; 
}

.history-year {
    font-size: 34px; font-weight: bold; color: #1a365d;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px; line-height: 1;
}
.history-month { font-size: 18px; margin-left: 4px; }

.history-title {
    font-size: 19px; font-weight: bold; color: #333;
    margin-bottom: 12px; line-height: 1.4;
}

.history-text {
    font-size: 14px; color: #555; line-height: 1.7;
}

.history-img {
    margin-top: 20px; border-radius: 8px;
    overflow: hidden; line-height: 0;
}
.history-img img { width: 100%; height: auto; display: block; }

/* バッジ */
.history-badges { margin-bottom: 15px; }
.badge {
    display: inline-block; padding: 3px 10px;
    font-size: 11px; font-weight: bold; color: #fff;
    border-radius: 20px; margin-right: 4px; margin-bottom: 5px;
}
.badge-corp { background: #1a365d; }   
.badge-food { background: #f6ad55; }   
.badge-beauty { background: #f687b3; } 
.badge-health { background: #48bb78; } 
.badge-3r { background: #9f7aea; } 
.badge-realestate { background: #e53e3e; } 

/* =========================================
   スマートフォン用レスポンシブ
========================================= */
@media (max-width: 767px) {
    .history-sec { padding: 80px 0 100px; }
    .history-sec-title { margin-bottom: 120px !important; }
    .timeline-line { left: 30px; }

    .history-item {
        width: 100%;
        left: 0 !important;
        padding: 0 15px 0 65px !important; 
        text-align: left !important;
        margin-bottom: 30px !important; 
        margin-top: 0 !important; 
    }
    .history-item.right-card { margin-top: 0 !important; }
    
    .history-dot {
        left: 22px !important; right: auto !important; top: 35px;
    }
    .history-item.left-card .history-dot,
    .history-item.right-card .history-dot {
        left: 22px !important; right: auto !important;
    }
    
    .history-card { padding: 25px; }
    .history-year { font-size: 28px; }
}

/* =========================================
   追従型 サイド目次ナビゲーション（PC専用）
========================================= */

/* スムーズスクロール（目次をクリックした際にスルスル移動） */
html { scroll-behavior: smooth; }

/* アンカーリンクで飛んだ時に上部が隠れないようにする余白 */
.history-item { scroll-margin-top: 250px; }

/* デフォルト（スマホ・タブレット等）は非表示 */
.history-nav { display: none; }

/* 画面幅が1200px以上のPCでのみ表示させる */
@media (min-width: 1200px) {
    .history-nav {
        display: block;
        position: fixed;
        top: 50%;
        left: 4%; 
        transform: translateY(-50%);
        z-index: 100;
    }
    .history-nav ul {
        list-style: none; padding: 0; margin: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.4);
    }
    .history-nav li { margin: 25px 0; position: relative; }
    
    /* ▼ ここからが「文字を鮮明にする」修正部分です ▼ */
    .history-nav a {
        color: #ffffff;
        font-family: "Times New Roman", serif;
        font-size: 15px; font-weight: bold;
        letter-spacing: 0.1em; text-decoration: none;
        padding-left: 20px; 
        
        /* 透明度をなくして鮮明に */
        opacity: 0.95; 
        /* 背景に紛れないよう、うっすら黒い影をつける */
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); 
        
        transition: all 0.3s ease; display: block;
    }
    
    /* ホバー時のアクション */
    .history-nav a:hover {
        opacity: 1; 
        color: #63b3ed; /* アース様の水色に変化して光る */
        text-shadow: 0 0 10px rgba(99, 179, 237, 0.8);
    }
    
    /* 目次横の丸ポチデザイン */
    .history-nav a::before {
        content: ''; position: absolute;
        left: -4.5px; top: 50%; transform: translateY(-50%);
        width: 8px; height: 8px; border-radius: 50%;
        
        /* 丸ポチも鮮明に */
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
        transition: all 0.3s ease;
    }
    
    /* ホバー時の丸ポチ */
    .history-nav a:hover::before {
        background-color: #63b3ed; /* 水色に変化 */
        box-shadow: 0 0 10px #63b3ed;
        transform: translateY(-50%) scale(1.3);
    }
}