/* ========================================
   下層ページ共通
   トップページ(style.css)と同じ配色・斜めカット・明朝見出しで構成
   各ページ固有のスタイルは css/{ページ名}.css に記述する
======================================== */

/* ---------- ページタイトル ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    height: 340px;
    background: #fff;
}

.page-hero__image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    background-position: center;
    background-size: cover;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.page-hero__image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(11, 43, 71, 0.35) 0%, rgba(11, 43, 71, 0) 60%);
    content: "";
}

.page-hero::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url(../images/bk/hero-bk.png) no-repeat left / cover;
    content: "";
    opacity: 0.06;
    pointer-events: none;
}

.page-hero__inner {
    display: flex;
    position: relative;
    z-index: 2;
    height: 100%;
    flex-direction: column;
    justify-content: center;
}

.page-hero__title {
    margin: 0;
    color: var(--color-navy);
    font-family: var(--font-serif);
    font-size: min(3.4vw, 48px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.06em;
}

/* ---------- パンくず ---------- */

.breadcrumb-bar {
    background: linear-gradient(110deg, #064e82 0%, #0b67a9 100%);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-block: 0;
    padding: 14px 0;
    list-style: none;
    color: var(--color-white);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.breadcrumb li + li::before {
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.5);
    content: "/";
}

.breadcrumb a {
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity 0.25s ease;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ---------- セクション ---------- */

.page-section {
    padding: 110px 0;
}

.page-section--tint {
    background: var(--color-bg);
}

.page-section__inner {
    width: min(100% - 10vw, 1100px);
    margin-inline: auto;
}

.page-heading {
    margin-bottom: 30px;
}

.page-heading--center {
    text-align: center;
}

.page-heading .section-title {
    margin-bottom: 0;
}

.page-lead {
    margin: 24px 0 0;
    color: #425c70;
    font-size: 15px;
    line-height: 2;
}

/* 右側に写真がグラデーションで溶け込むセクション（会社概要・企業理念・事業内容で使用）
   写真は --section-photo で指定する */
.photo-section {
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.photo-section::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background:
        linear-gradient(90deg, rgba(247, 250, 252, 1) 0%, rgba(247, 250, 252, 0.8) 40%, rgba(247, 250, 252, 0.55) 100%),
        var(--section-photo, url('../images/about-control.jpg')) center / cover no-repeat;
    content: "";
}

.photo-section .page-section__inner {
    position: relative;
    z-index: 2;
}

/* 斜めカットの写真 */
.slant-photo {
    overflow: hidden;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.slant-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ボタン */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 280px;
    padding: 20px 48px;
    border: 0;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-primary__arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-primary__arrow {
    transform: translateX(4px);
}

/* ========================================
   レスポンシブ
======================================== */

@media (max-width: 1080px) {
    .page-hero {
        height: 280px;
    }

    .page-hero__title {
        font-size: 36px;
    }

    .page-section {
        padding: 80px 0;
    }

    .page-section__inner {
        width: 100%;
        padding-inline: 30px;
    }

    .page-heading {
        margin-bottom: 20px;
    }

    .photo-section::before {
        width: 100%;
        opacity: 0.4;
    }
}

@media (max-width: 800px) {
    .page-hero {
        height: 230px;
    }

    .page-hero__image {
        width: 70%;
        opacity: 0.85;
    }

    .page-hero__title {
        font-size: 28px;
        text-shadow: 0 0 12px #fff, 0 0 4px #fff;
    }

    .breadcrumb {
        padding: 10px 0;
        font-size: 11px;
    }

    .page-section {
        padding: 60px 0;
    }

    .page-section__inner {
        padding-inline: 20px;
    }

    .btn-primary {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .page-hero__image {
        width: 62%;
        clip-path: polygon(43% 0, 100% 0, 100% 100%, 0 100%);
    }
}
