/* =========================================================
   HAKAM WISDOM — HISTORY PAGE
   Responsive Japanese + English
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Montserrat:wght@400;500;600&family=Noto+Sans+JP:wght@300;400;500;600&display=swap');

/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: #17384a;
    background: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dceef7;
    position: relative;
    z-index: 100;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.nav {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================
   LOGO
========================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #17384a;
    white-space: nowrap;
}

.logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.5px;
    color: #17384a;
}

.logo-text span {
    margin-top: 7px;
    color: #5b9fbd;
    font-family: "Montserrat", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.5px;
}


/* =========================================================
   NAVIGATION
========================================================= */

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    color: #17384a;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    transition: color .3s ease;
}

nav a:hover,
nav a.active {
    color: #5b9fbd;
}


/* =========================================================
   HISTORY HERO
========================================================= */

.history-hero {
    padding: 105px 20px;
    text-align: center;
    background: #eaf6fb;
}

.history-hero p {
    margin-bottom: 12px;
    color: #5b9fbd;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
}

.history-hero h1 {
    color: #17384a;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 64px;
    font-weight: 600;
    line-height: 1.1;
}

.history-hero span {
    display: block;
    margin-top: 14px;
    color: #5b9fbd;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    letter-spacing: 2px;
}


/* =========================================================
   HISTORY CONTENT
========================================================= */

.history {
    padding: 100px 20px;
    background: #ffffff;
}

.history-content {
    max-width: 950px;
    margin: 0 auto;
}

.history-intro {
    max-width: 820px;
    margin: 0 auto 75px;
    text-align: center;
    color: #60757d;
    font-size: 15px;
    line-height: 2.2;
}


/* =========================================================
   TIMELINE
========================================================= */

.history-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 50px;

    padding: 50px 0;

    border-top: 1px solid #c9e5f0;
}

.history-item:last-of-type {
    border-bottom: 1px solid #c9e5f0;
}


/* YEAR */

.history-year {
    color: #72b8d5;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
}


/* TEXT */

.history-text h2 {
    margin-bottom: 18px;

    color: #17384a;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.5;
}

.history-text p {
    margin-bottom: 16px;

    color: #60757d;
    font-size: 14px;
    line-height: 2;
}

.history-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   CURRENT / 2026
========================================================= */

.history-item.current {
    margin-left: -25px;
    margin-right: -25px;

    padding-left: 25px;
    padding-right: 25px;

    background: #f3fafd;
}

.history-item.current .history-year {
    color: #17384a;
}


/* =========================================================
   CLOSING
========================================================= */

.history-closing {
    margin-top: 75px;
    padding: 55px 25px;

    text-align: center;
    background: #eaf6fb;
}

.history-closing span {
    display: block;

    color: #17384a;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.5;
}

.history-closing p {
    margin: 12px 0 6px;
    color: #60757d;
    font-size: 14px;
}

.history-closing small {
    color: #5b9fbd;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 30px 20px;
    text-align: center;

    background: #17384a;
    color: #ffffff;

    font-family: "Montserrat", sans-serif;
    font-size: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .nav {
        min-height: 82px;
    }

    .logo img {
        width: 46px;
        height: 46px;
    }

    .logo-text strong {
        font-size: 31px;
    }

    .logo-text span {
        font-size: 8px;
        letter-spacing: 2px;
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 10px;
    }

    .history-hero {
        padding: 85px 20px;
    }

    .history-hero h1 {
        font-size: 55px;
    }

    .history {
        padding: 80px 20px;
    }
}


/* =========================================================
   MOBILE NAVIGATION — SHOW MENU
========================================================= */

@media (max-width: 768px) {

    .header-container {
        padding: 14px 18px;
        flex-wrap: wrap;
    }

    .brand-logo {
        width: 45px;
        height: 45px;
    }

    .brand-name {
        font-size: 30px;
    }

    .brand-text p {
        font-size: 8px;
        letter-spacing: 2px;
        margin-top: 5px;
    }

    /* Keep navigation visible */
    .main-nav {
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 14px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #e7edf0;
        overflow-x: auto;
        white-space: nowrap;
    }

    .main-nav a {
        font-size: 10px;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 500px) {

    .header-container {
        padding: 12px 14px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 26px;
    }

    .brand-text p {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .main-nav {
        gap: 12px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .main-nav a {
        font-size: 9px;
    }
}