﻿/* ===================================================
   history.css — History ページ専用スタイル
   style.css（共通）を継承
   =================================================== */

/* ===================================================
   BREADCRUMB
   =================================================== */
.hist-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}
.hist-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 16px;
}
.hist-breadcrumb li { display: flex; align-items: center; gap: 4px; }
.hist-breadcrumb a { color: #555; text-decoration: none; }
.hist-breadcrumb a:hover { text-decoration: underline; }
.hist-breadcrumb span[aria-current] { color: #1a1a1a; font-weight: 600; }
.hist-breadcrumb span:not([aria-current]) { color: #999; }

/* ===================================================
   HERO
   =================================================== */
.hist-hero {
    width: 100%;
    line-height: 0;
}
.hist-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 480px;
}

/* ===================================================
   共通セクション
   =================================================== */
.hist-section {
    padding: 48px 0 0;
    background: #fff;
}
.hist-section-title {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #1a1a1a;
}

/* ===================================================
   BEHIND THE SEAMS — コラージュ + テキスト
   about-us と同じ12カラムグリッド構造
   =================================================== */
.hist-collage-layout {
    max-width: 1340px;
    margin: 30px auto 0;
    padding: 0 24px 0;
}

.hist-collage-wrap {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: auto;
}

/* portrait：col 1-7, row 1-10 */
.hist-collage-portrait {
    grid-column: 1 / 7;
    grid-row: 1 / 11;
    aspect-ratio: 640 / 900;
    background-image: url('/cms/osprey/contents/img/History_LP_Collage_Portrait.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    margin-top: 60px;
    position: relative;
    overflow: visible;
}

/* landscape：portrait内に絶対配置、col 5-13, row 4-8 に相当 */
.hist-collage-landscape {
    /* position: absolute; */
    /* bottom: 60px; */
    /* right: -45vw; */
    /* width: 130%; */
    aspect-ratio: 960 / 540;
    background-image: url('/cms/osprey/contents/img/History_LP_Collage_Landscape.webp');
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
    grid-column-end: 13;
    grid-column-start: 4;
    grid-row-end: 9;
    grid-row-start: 4;
    width: 100%;
    margin: 0;
    padding-bottom: 56.25%;
    z-index: 1;
    max-width: 100%;
}

/* テキスト：col 7-13, row 1-4 */
.hist-text-block {
    grid-column: 7 / 13;
    grid-row: 1 / 4;
    padding: 0 0 32px 48px;
    z-index: 2;
    background: #fff;
    align-self: start;
}
.hist-text-block p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}

/* ===================================================
   2カラムテキスト
   =================================================== */
.hist-two-col-section {
    background: #fff;
    padding: 48px 0;
}
.hist-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.hist-col-left p,
.hist-col-right p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

/* ===================================================
   ABOUT US バナー
   =================================================== */
.hist-about-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100vh;
    max-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hist-about-banner picture {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    z-index: -1;
}
.hist-about-banner-bg {
    width: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.55);
}
.hist-about-banner-content {
    inset: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 24px;
    margin: auto;
    background: rgba(0, 0, 0, 0.6);
}
.hist-about-banner-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}
.hist-about-banner-content p {
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
}
.hist-about-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 40px;
    border: 2px solid #fff;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.hist-about-btn:hover { background: #fff; color: #1a1a1a; }
@media (min-width: 1200px) {
    .hist-collage-landscape {
        grid-column-start: 6;
        grid-row-start: 5;
        grid-row-end: 8;
        margin: 0 0 60px;
    }
}
/* ===================================================
   RESPONSIVE — SP
   =================================================== */
@media (max-width: 768px) {
    /* Hero */
    .hist-hero-img { max-height: 300px; }

    /* Collage */
    .hist-collage-layout {padding: 0 16px 32px;margin-top: 16px;}
    .hist-collage-wrap { display: flex; flex-direction: column; gap: 0; position: relative; overflow: visible; }
    .hist-text-block {
        order: -1;
        grid-column: unset;
        grid-row: unset;
        padding: 24px 0 24px;
        background: transparent;
        text-align: center;
    }
    .hist-collage-portrait {
        order: 0;
        grid-column: unset;
        grid-row: unset;
        width: 60%;
        aspect-ratio: 640 / 900;
        margin-top: 0;
        margin-left: 0;
        position: relative;
        overflow: visible;
    }
    .hist-collage-landscape {
        width: 90%;
        margin-top: -15%;
        margin-left: 10%;
        padding-bottom: 50%;
    }

    /* 2カラムテキスト */
    .hist-two-col { grid-template-columns: 1fr; gap: 0; }
    .hist-two-col-section { padding: 32px 0; }

    /* Timeline */

    /* About banner */
    .hist-about-banner-bg { height: 360px; }
    .hist-about-banner-content h2 { font-size: 28px; }
    .hist-about-banner { height: auto; padding: 1.5em;}
}
