/**
 * Sub Hero Section
 */
.p-sub-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-image: url('../img/sub-heading-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    display: flex;
    align-items: center;
    padding: 40px 0;
}

/* 青のオーバーレイ（背景を暗くして文字を読みやすく） */
.p-sub-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 31, 77, 0.8) 0%, rgba(7, 31, 77, 0.4) 100%);
    z-index: 1;
}

.p-sub-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Breadcrumbs */
.p-sub-hero__breadcrumbs {
    margin-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 15px;
}

.p-sub-hero__breadcrumbs ol {
    display: flex;
    list-style: none;
    font-size: 14px;
}

.p-sub-hero__breadcrumbs li:not(:last-child)::after {
    content: "";
    margin: 0 15px;
}

.p-sub-hero__breadcrumbs a {
    text-decoration: underline;
}

/* Content Layout */
.p-sub-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.p-sub-hero__sub-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.p-sub-hero__main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
}

.p-sub-hero__copy {
    text-align: right;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.5;
}

/* Buttons in Sub Hero */
.p-sub-hero__btns {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.c-btn-sub-hero {
    display: flex;
    align-items: center;
    background: var(--color-white);
    color: var(--color-main);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    width: fit-content;
}

.c-btn-sub-hero::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-main);
    border-right: 2px solid var(--color-main);
    transform: rotate(135deg); /* 下矢印 */
    margin-left: 15px;
    margin-top: -4px;
}

/**
 * Responsive
 */
@media screen and (max-width: 768px) {
    .p-sub-hero {
        min-height: auto;
        padding: 30px 0 60px;
    }

    .p-sub-hero__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .p-sub-hero__copy {
        text-align: left;
        margin-top: 30px;
        font-size: 18px;
    }

    .p-sub-hero__btns {
        flex-direction: column;
    }
}

/* フェードインアニメーションの定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* アニメーションの共通設定 */
.is-anim {
    opacity: 0; /* 最初は隠しておく */
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: forwards; /* アニメーション終了時の状態を維持 */
    animation-timing-function: ease-out;
}

/* 順番に表示させるためのディレイ設定 */

/* 1. 日本語タイトル：即時〜0.2秒後 */
.p-sub-hero__sub-title.is-anim {
    animation-delay: 0.2s;
}

/* 2. 英語スラッグ：0.5秒後 */
.p-sub-hero__main-title.is-anim {
    animation-delay: 0.5s;
}

/* 3. キャッチコピー：0.8秒後 */
.p-sub-hero__copy.is-anim {
    animation-delay: 0.8s;
}

/* 4. ボタンエリアもついでにふわっと出すなら（任意） */
.p-sub-hero__btns {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.1s forwards;
}