@charset "utf-8";

/* ==========================================================================
   page-history.css (クラシック＆重厚デザイン版)
   ========================================================================== */

/* -------------------------------------------
   時代ナビゲーション（上部ボタン）
------------------------------------------- */
.p-history-nav {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 4%;
}

.p-history-nav-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-history-nav-item {
    flex: 1;
    max-width: 140px;
}

.p-history-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #cccccc;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.25s ease;
}

.p-history-nav-link:hover {
    background: #0e2a47; /* 落ち着いた濃紺 */
    color: #ffffff;
    border-color: #0e2a47;
}

/* -------------------------------------------
   メインコンテンツエリア
------------------------------------------- */
.p-history-content {
    padding: 40px 0 120px;
    background: #fff;
}

.p-history-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4%;
}

.p-history-timeline-container {
    position: relative;
    /* ポップに見えがちな左側の竪線を排除し、カード全体の重厚感で魅せる配置へ */
}

/* -------------------------------------------
   アコーディオン（年代グループ）
------------------------------------------- */
.p-history-era-group {
    margin-bottom: 24px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    scroll-margin-top: 100px;
    transition: border-color 0.3s ease;
}

.p-history-era-group[open] {
    border-color: #0e2a47; /* 開いている時はシックなネイビー枠で締める */
}

/* ブラウザ標準マーカー消去 */
.p-history-era-group summary::-webkit-details-marker {
    display: none;
}
.p-history-era-group summary {
    list-style: none;
}

/* 年代見出し（クリック領域） */
.p-history-era-title {
    font-family: "游明朝", "Yu Mincho", "HG明朝E", "Hiragino Mincho ProN", serif;
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    letter-spacing: 0.1em;
    padding: 20px 24px;
    background: #fcfcfc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid transparent;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.p-history-era-title:hover {
    background: #f4f5f7;
    color: #0e2a47;
}

details[open] .p-history-era-title {
    background: #0e2a47; /* 落ち着いた重厚感のある濃紺 */
    color: #ffffff;
    border-bottom: 1px solid #0e2a47;
}

/* -------------------------------------------
   開閉アイコン（プラス / マイナス）
------------------------------------------- */
.p-history-accordion-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.p-history-accordion-icon::before,
.p-history-accordion-icon::after {
    content: "";
    position: absolute;
    background-color: #555555;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

details[open] .p-history-accordion-icon::before,
details[open] .p-history-accordion-icon::after {
    background-color: #ffffff; /* 開いた時は白アイコン化 */
}

/* 横線 */
.p-history-accordion-icon::before {
    width: 14px;
    height: 1px;
}

/* 縦線 */
.p-history-accordion-icon::after {
    width: 1px;
    height: 14px;
}

/* 開いた時に縦線を回転させて「マイナス」にする */
details[open] .p-history-accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

/* -------------------------------------------
   アコーディオンの中身リスト
------------------------------------------- */
.p-history-accordion-body {
    padding: 10px 24px 20px;
    background: #ffffff;
}

.p-history-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.p-history-item {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px dashed #e0e0e0; /* 細い破線で上品に区切る */
}

.p-history-item:last-child {
    border-bottom: none;
}

.p-history-item dt {
    flex: 0 0 130px;
    font-weight: 700;
    color: #0e2a47; /* クラシックな濃紺 */
    font-size: 15px;
    letter-spacing: 0.05em;
    padding-top: 2px;
}

.p-history-item dd {
    flex: 1;
    font-size: 14.5px;
    line-height: 1.85;
    color: #333333;
    margin: 0;
}

/* -------------------------------------------
   スマートフォン対応（レスポンス）
------------------------------------------- */
@media (max-width: 768px) {
    .p-history-nav {
        margin-bottom: 30px;
    }

    .p-history-nav-list {
        gap: 6px;
    }

    .p-history-nav-link {
        padding: 8px 4px;
        font-size: 12px;
    }

    .p-history-content {
        padding: 20px 0 60px;
    }

    .p-history-era-group {
        margin-bottom: 16px;
        scroll-margin-top: 70px;
    }

    .p-history-era-title {
        font-size: 17px;
        padding: 16px;
    }

    .p-history-accordion-body {
        padding: 5px 16px 15px;
    }

    .p-history-item {
        flex-direction: column;
        gap: 6px;
        padding: 16px 0;
    }

    .p-history-item dt {
        flex: none;
        font-size: 13.5px;
        color: #0e2a47;
        font-weight: 700;
        border-bottom: none;
        padding: 0;
    }

    .p-history-item dd {
        font-size: 14px;
        line-height: 1.75;
    }
}