/* =================================
   CBA by O.SHIMURA
   Main Header
   Version 1.2 / Header Part 1
================================= */


/* ------------------------------
   Header
------------------------------ */

.site-header {

    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid rgba(15, 76, 129, 0.15);

}


/* ------------------------------
   Header Inner
------------------------------ */

.header-inner {

    width: min(1200px, 92%);

    margin: 0 auto;

    min-height: 92px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

}


/* ------------------------------
   Brand
------------------------------ */

.header-brand {

    display: flex;

    align-items: baseline;

    gap: 18px;

    color: #0f4c81;

    text-decoration: none;

    white-space: nowrap;

}


/* ------------------------------
   CBA
------------------------------ */

.header-brand-cba {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2.25rem;

    font-weight: 500;

    letter-spacing: 0.08em;

}


/* ------------------------------
   by O.SHIMURA
------------------------------ */

.header-brand-name {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.72rem;

    letter-spacing: 0.16em;

    color: #4f87bd;

}


/* ------------------------------
   Navigation
------------------------------ */

.main-navigation {

    display: flex;

    align-items: center;

    gap: 32px;

}


/* ------------------------------
   Navigation Links
------------------------------ */

.main-navigation a {

    position: relative;

    padding: 8px 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 0.72rem;

    font-weight: 500;

    letter-spacing: 0.14em;

    color: #08213d;

    text-decoration: none;

    transition:
        color 0.3s ease;

}


/* ------------------------------
   Navigation Hover
------------------------------ */

.main-navigation a:hover {

    color: #0f4c81;

}


/* ------------------------------
   Navigation Underline
------------------------------ */

.main-navigation a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 1px;

    background: #4f87bd;

    transition:
        width 0.3s ease;

}


.main-navigation a:hover::after {

    width: 100%;

}


/* ------------------------------
   Tablet / Small Screen
------------------------------ */

@media (max-width: 850px) {

    .header-inner {

        min-height: 82px;

        flex-direction: column;

        justify-content: center;

        gap: 12px;

    }


    .main-navigation {

        gap: 20px;

        flex-wrap: wrap;

        justify-content: center;

    }

}


/* ------------------------------
   Smartphone
------------------------------ */

@media (max-width: 560px) {

    .header-brand {

        gap: 10px;

    }


    .header-brand-cba {

        font-size: 1.8rem;

    }


    .header-brand-name {

        font-size: 0.62rem;

    }


    .main-navigation {

        gap: 14px;

    }


    .main-navigation a {

        font-size: 0.62rem;

        letter-spacing: 0.08em;

    }

}
/* ==============================
CBA Main Visual
STEP 2-A
================================== */

/* Main Visual */

.main-visual {


width: 100%;

min-height: 900px;

background-image:
    url("../images/cba_background.jpg");

background-size: cover;

background-position: center center;

background-repeat: no-repeat;

position: relative;

overflow: hidden;

}

/* Main Visual Inner */

.main-visual-content {

width: 100%;

max-width: 1600px;

min-height: 900px;

margin: 0 auto;

position: relative;

}

/* ==============================
Main Copy
================================== */

.main-copy {

position: absolute;

top: 9%;

left: 50%;

transform: translateX(-50%);

width: 100%;

text-align: center;

}

.main-copy h1 {

margin: 0;

color: #234f7d;

font-family:
    "Noto Sans JP",
    sans-serif;

font-size: clamp(
    2.2rem,
    3.2vw,
    3.8rem
);

font-weight: 500;

letter-spacing: 0.08em;

line-height: 1.5;

}

.main-copy-en {

margin: 0.15em 0 0;

color: #234f7d;

font-family:
    Georgia,
    "Times New Roman",
    serif;

font-size: clamp(
    1.5rem,
    2.4vw,
    2.8rem
);

font-weight: 400;

letter-spacing: 0.02em;

line-height: 1.4;

}

/* ==============================
Side Messages
================================== */

.visual-message {

position: absolute;

margin: 0;

color: #315f8e;

font-family:
    "Noto Sans JP",
    sans-serif;

font-size: clamp(
    0.9rem,
    1.35vw,
    1.3rem
);

font-weight: 300;

letter-spacing: 0.08em;

line-height: 1.8;

white-space: nowrap;

}

.visual-message-left {

top: 48%;

left: 3%;

}

.visual-message-right {

top: 48%;

right: 3%;

text-align: right;

}

/* ==============================
Since 1977
================================== */

.visual-since {

position: absolute;

left: 50%;

bottom: 13%;

transform: translateX(-50%);

margin: 0;

color: #234f7d;

font-family:
    Georgia,
    "Times New Roman",
    serif;

font-size: clamp(
    1.8rem,
    2.7vw,
    3.2rem
);

font-style: italic;

font-weight: 400;

letter-spacing: 0.04em;

}
/* =========================================
CBA Main Visual
STEP 2-B-1
Quiet Motion Animation
========================================= */

/* -----------------------------------------
Main Visual 全体
----------------------------------------- */

.main-visual {
position: relative;
overflow: hidden;
}

/* -----------------------------------------
背景画像
ゆっくりと現れる
----------------------------------------- */

.main-visual::before {
content: "";
position: absolute;
inset: 0;

background-image: url("../images/cba_background.jpg");
background-size: cover;
background-position: center;

opacity: 0;

animation:
    backgroundFade 2.5s ease-out forwards,
    backgroundMove 18s ease-in-out infinite alternate;

}

/* -----------------------------------------
メインビジュアルの内容を
背景より前面に配置
----------------------------------------- */

.main-visual > * {
position: relative;
z-index: 1;
}

/* =========================================
Catch Copy
========================================= */

.main-visual-title {
opacity: 0;

animation:
    titleFadeUp 1.8s ease-out 0.6s forwards;

}

.main-visual-title-en {
opacity: 0;

animation:
    titleFadeUp 1.8s ease-out 1.0s forwards;

}

/* =========================================
CBA Blueprint Image
========================================= */

.main-visual-logo {
opacity: 0;

transform:
    translateY(25px)
    scale(0.96);

animation:
    logoReveal 2.2s ease-out 1.5s forwards,
    logoFloat 7s ease-in-out 3.7s infinite;

}

/* =========================================
Left Copy
========================================= */

.main-visual-copy-left {
opacity: 0;

transform: translateX(-30px);

animation:
    copyFadeLeft 1.5s ease-out 2.0s forwards;

}

/* =========================================
Right Copy
========================================= */

.main-visual-copy-right {
opacity: 0;

transform: translateX(30px);

animation:
    copyFadeRight 1.5s ease-out 2.4s forwards;

}

/* =========================================
Since 1977
========================================= */

.main-visual-since {
opacity: 0;

transform:
    translateY(20px);

animation:
    sinceReveal 1.8s ease-out 3.0s forwards;

}

/* =========================================
Background Animation
========================================= */

@keyframes backgroundFade {

from {
    opacity: 0;
}

to {
    opacity: 1;
}

}

@keyframes backgroundMove {

from {
    background-position: center center;
}

to {
    background-position: 52% 48%;
}

}

/* =========================================
Title Animation
========================================= */

@keyframes titleFadeUp {

from {
    opacity: 0;

    transform:
        translateY(25px);
}

to {
    opacity: 1;

    transform:
        translateY(0);
}

}

/* =========================================
Logo Animation
========================================= */

@keyframes logoReveal {

from {
    opacity: 0;

    transform:
        translateY(25px)
        scale(0.96);
}

to {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

}

@keyframes logoFloat {

0% {

    transform:
        translateY(0)
        scale(1);

}

50% {

    transform:
        translateY(-7px)
        scale(1.01);

}

100% {

    transform:
        translateY(0)
        scale(1);

}

}

/* =========================================
Left Copy Animation
========================================= */

@keyframes copyFadeLeft {

from {
    opacity: 0;

    transform:
        translateX(-30px);
}

to {
    opacity: 1;

    transform:
        translateX(0);
}

}

/* =========================================
Right Copy Animation
========================================= */

@keyframes copyFadeRight {

from {
    opacity: 0;

    transform:
        translateX(30px);
}

to {
    opacity: 1;

    transform:
        translateX(0);
}

}

/* =========================================
Since 1977 Animation
========================================= */

@keyframes sinceReveal {

from {
    opacity: 0;

    transform:
        translateY(20px);

    letter-spacing:
        0.15em;
}

to {
    opacity: 1;

    transform:
        translateY(0);

    letter-spacing:
        0.05em;
}

}
/* =========================================
   CBA Main Visual
   STEP 2-B-1
   Blueprint Quiet Reveal
   ========================================= */

.visual-blueprint {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(280px, 36vw, 620px);
    transform: translate(-50%, -50%);
    opacity: 0;

    animation:
        blueprintReveal 2.4s ease-out 0.5s forwards;

    z-index: 2;
}

.visual-blueprint img {
    display: block;
    width: 100%;
    height: auto;
}

/* Blueprint appears quietly from the background */

@keyframes blueprintReveal {

    0% {
        opacity: 0;
        transform: translate(-50%, -47%) scale(0.96);
    }

    100% {
        opacity: 0.92;
        transform: translate(-50%, -50%) scale(1);
    }

}
/* =========================================
   CBA Main Visual
   STEP 2-B-2
   Main Copy Quiet Reveal
   ========================================= */

.main-copy {
    position: relative;
    z-index: 3;

    opacity: 0;

    animation:
        mainCopyReveal 2.0s ease-out 2.6s forwards;
}

/* Japanese headline — Mincho */

.main-copy h1 {
    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "MS PMincho",
        serif;

    font-weight: 400;
    letter-spacing: 0.08em;
}

/* English subtitle — thin sans-serif */

.main-copy-en {
    font-family:
        "Montserrat",
        "Noto Sans JP",
        sans-serif;

    font-weight: 300;
    letter-spacing: 0.12em;
}

/* Main copy appears quietly after the blueprint */

@keyframes mainCopyReveal {

    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}
/* =========================================
   STEP 2-B-2
   Main Copy Center Alignment
   ========================================= */

.main-copy {
    text-align: center;
}

.main-copy h1 {
    text-align: center;
}

.main-copy-en {
    text-align: center;
}
/* =========================================
   STEP 2-B-2
   Main Copy — True Center Alignment
   ========================================= */

.main-copy {
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
}

.main-copy h1 {
    text-align: center;
}

.main-copy-en {
    text-align: center;
}
/* =========================================
   STEP 2-B-2
   English Copy — Slightly Smaller
   ========================================= */

..main-copy-en {
    font-size: 0.9em;
}
/* =========================================
   CBA Header Logo
   Official Logo : cba_logo_top.jpg
   70% Size
   ========================================= */

.header-brand {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.header-logo {
    display: block;
    width: 217px;
    height: auto;
    margin: 0 0 0 20px;
}
/* =========================================
   CBA Main Visual
   Laptop / Desktop Balance Adjustment
   ========================================= */

/* Main Visualを画面の高さに合わせる */

.main-visual {
    min-height: calc(100vh - 80px);
}


/* Main Copyを少し下げる */

.main-copy {
    top: calc(50% + 45px);
}
/* =========================================
   STEP 2-B-2
   Main Copy — Vertical Position
   ========================================= */

.main-copy {
    position: relative;
    top: 45px;
}
/* =========================================
   CBA Introduction
   STEP 3-2
   「創造に、引退はない。」
   ========================================= */

.introduction {
    position: relative;
    width: 100%;
    padding: 120px 0 140px;
    background: #ffffff;
}

.introduction-inner {
    width: min(1100px, 88%);
    margin: 0 auto;
}

/* Section Label */

.section-label {
    margin: 0 0 55px;

    font-family:
        "Montserrat",
        "Noto Sans JP",
        sans-serif;

    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.22em;
}

/* Text + Photo */

.introduction-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Text */

.introduction-text h2 {
    margin: 0 0 42px;

    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "MS PMincho",
        serif;

    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.introduction-text p {
    margin: 0 0 24px;

    font-family:
        "Noto Sans JP",
        sans-serif;

    font-size: 15px;
    font-weight: 300;
    line-height: 2.2;
    letter-spacing: 0.04em;
}

.introduction-text strong {
    font-weight: 500;
}

/* Photo */

.introduction-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-caption {
    margin: 14px 0 0;

    font-family:
        "Montserrat",
        "Noto Sans JP",
        sans-serif;

    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.14em;
}
/* =========================================
   CBA Three Stories
   STEP 4-2
   Three Column + Responsive
   ========================================= */

.three-stories {
    width: 100%;
    padding: 80px 0 70px;
    background: #f7f8f9;
}

.three-stories-inner {
    width: min(1100px, 88%);
    margin: 0 auto;
}

/* Section Label */

.three-stories .section-label {
    margin: 0 0 50px;

    font-family:
        "Montserrat",
        "Noto Sans JP",
        sans-serif;

    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.22em;
}

/* Three Column Grid */

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

/* Story Card */

.story-card {
    margin: 0;
}

/* Number */

.story-number {
    margin: 0 0 14px;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.16em;
}

/* Photo Placeholder */

.story-photo {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #dfe3e6;
}

.story-photo span {
    font-family:
        "Montserrat",
        "Noto Sans JP",
        sans-serif;

    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.16em;

    color: #8a9196;
}

/* Heading */

.story-card h3 {
    margin: 25px 0 15px;

    font-family:
        "Noto Serif JP",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        "MS PMincho",
        serif;

    font-size: 21px;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* Description */

.story-card > p:last-child {
    margin: 0;

    font-family:
        "Noto Sans JP",
        sans-serif;

    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.03em;
    line-height: 2;
}


/* =========================================
   Tablet
   ========================================= */

@media (max-width: 900px) {

    .stories-grid {
        gap: 30px;
    }

    .story-card h3 {
        font-size: 19px;
    }

    .story-card > p:last-child {
        font-size: 12px;
    }

}


/* =========================================
   Smartphone
   ========================================= */

@media (max-width: 640px) {

    .three-stories {
        padding: 80px 0 90px;
    }

    .three-stories-inner {
        width: 84%;
    }

    .three-stories .section-label {
        margin-bottom: 40px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .story-photo {
        aspect-ratio: 4 / 3;
    }

    .story-card h3 {
        margin-top: 20px;
        font-size: 20px;
    }

    .story-card > p:last-child {
        font-size: 13px;
        line-height: 2;
    }

}
/* =========================================
   CBA Site Footer
   STEP 5
   Quiet Blue Line
   ========================================= */

.site-footer {
    width: 100%;
    background: #ffffff;
    padding: 0 0 55px;
}

.site-footer-inner {
    width: min(1100px, 88%);
    margin: 0 auto;
}

/* Quiet CBA Blue Line */

.footer-line {
    width: 100%;
    height: 1px;
    background: #6f91aa;
    margin-bottom: 45px;
}

/* Footer Content */

.footer-content {
    text-align: center;
}

/* Brand */

.footer-brand {
    margin: 0 0 8px;

    font-family:
        "Montserrat",
        "Noto Sans JP",
        sans-serif;

    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.10em;
}

/* Since 1977 */

.footer-since {
    margin: 0 0 28px;

    font-family:
        "Montserrat",
        serif;

    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.16em;
}

/* Footer Navigation */

.footer-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;

    margin-bottom: 30px;
}

.footer-navigation a {
    font-family:
        "Montserrat",
        "Noto Sans JP",
        sans-serif;

    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.12em;

    color: #526b7c;
    text-decoration: none;

    transition: opacity 0.3s ease;
}

.footer-navigation a:hover {
    opacity: 0.55;
}

/* Copyright */

.footer-copy {
    margin: 0;

    font-family:
        "Montserrat",
        "Noto Sans JP",
        sans-serif;

    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.08em;

    color: #8b969d;
}


/* =========================================
   Smartphone
   ========================================= */

@media (max-width: 640px) {

    .site-footer {
        padding-bottom: 40px;
    }

    .site-footer-inner {
        width: 84%;
    }

    .footer-line {
        margin-bottom: 38px;
    }

    .footer-navigation {
        gap: 14px 20px;
        margin-bottom: 26px;
    }

    .footer-navigation a {
        font-size: 9px;
    }

    .footer-copy {
        font-size: 10px;
        line-height: 1.8;
    }

}
/* =========================================
   CBA Main Visual
   Smartphone Adjustment
   ========================================= */

@media (max-width: 640px) {

    /* Main copy moves above the blueprint */

    .main-copy {
        top: 20px;
    }

    /* Left / Right messages stay outside
       the central blueprint */

    .visual-message-left {
        left: 8%;
        right: auto;
        width: 84%;
        text-align: center;
    }

    .visual-message-right {
        left: 8%;
        right: auto;
        width: 84%;
        text-align: center;
    }

}
/* =========================================
   Introduction
   Smartphone Layout Adjustment
   ========================================= */

@media (max-width: 640px) {

    /* Text first, photo below */

    .introduction-photo {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 38px;
    }

    .introduction-photo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .introduction-photo .photo-caption {
        margin-top: 10px;
        text-align: left;
    }

}
/* =========================================
   Introduction
   Smartphone Text Width Adjustment
   ========================================= */

@media (max-width: 640px) {

    .introduction-text {
        grid-column: 1 / -1;
        width: 100%;
    }

}
/* =========================================
   Main Visual
   Smartphone Final Layout
   ========================================= */

@media (max-width: 640px) {

    /* Left message */

    .visual-message-left {
        position: absolute;
        top: 68%;
        left: 8%;
        width: 84%;
        text-align: center;
    }

    /* Right message */

    .visual-message-right {
        position: absolute;
        top: 75%;
        left: 8%;
        width: 84%;
        text-align: center;
    }

}
/* =========================================
   CBA STORIES
   STEP 6-1
   Story Photo Size Adjustment
   ========================================= */

.story-photo img {
    display: block;
    width: 100%;
    height: auto;
}
/* =========================================
   CBA STORIES
   STEP 6-2
   Hide Story Numbers
   ========================================= */

.story-number {
    display: none;
}
/* =========================================
   CBA STORIES
   STEP 6-5
   Smartphone Top Spacing
   ========================================= */

@media (max-width: 768px) {

    .three-stories {
        padding-top: 60px;
    }

}