/* ========================================
   共通設定
======================================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;

    background-color: rgb(11, 40, 74);

    background-image:
        linear-gradient(45deg,
            rgba(255, 255, 255, 0.025) 25%,
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, 0.025) 75%),
        linear-gradient(45deg,
            rgba(255, 255, 255, 0.025) 25%,
            transparent 25%,
            transparent 75%,
            rgba(255, 255, 255, 0.025) 75%);

    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;

    overflow-x: hidden;

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


/* ========================================
   共通ヘッダー
======================================== */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 140px;

    box-sizing: border-box;

    background-color: #ffffff;

    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 29px,
            rgba(11, 40, 74, 0.10) 29px,
            rgba(11, 40, 74, 0.10) 30px),
        repeating-linear-gradient(-45deg,
            transparent 0,
            transparent 29px,
            rgba(11, 40, 74, 0.10) 29px,
            rgba(11, 40, 74, 0.10) 30px);

    box-shadow:
        0 2px 5px rgba(11, 40, 74, 0.15);

    z-index: 10000;
}


/* ========================================
   ヘッダー内部
======================================== */

.header-container {
    position: relative;
    /* ★ 追加：スマホ用ドロップダウンメニューの位置基準にするため */
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: none;
    height: 100%;

    margin: 0;
    padding: 0 40px;

    box-sizing: border-box;
}

/* ========================================
   ヘッダーロゴ
======================================== */

.logo {
    margin: 0;
    flex-shrink: 0;
}



.logo a {
    display: block;
}

.logo img {
    /* position: fixed; ← 削除:.header-containerがflexで配置するため不要。
       position:fixedのままだと、ヘッダーの高さがmedia queryで変わったときに
       ロゴだけ古い位置に取り残される事故が起きます */
    display: block;
    width: clamp(140px, 15vw, 230px);
    /* ← 固定230px→可変に。1000px/768px/480px用のmedia query内の
                                            width指定と数値がなめらかに連動するようになります */
    height: auto;
    /* ← 固定130px→autoに。画像の縦横比を保持し歪みを防止 */
    max-height: 110px;
    /* ← ヘッダー(140px)からはみ出さない上限を追加 */
}


/* ========================================
   ヘッダーメニュー
======================================== */

.navi-list {
    display: inline-flex;
    align-items: center;

    list-style: none;

    margin: 0;
    padding: 0;

    gap: clamp(8px, 1.6vw, 20px);
    /* ★ 固定65px → 縮小・可変に。文字を大きくしたぶんの窮屈さを相殺し、
       各項目の幅を狭める */

    font-size: clamp(15px, 1.6vw, 22px);
    /* ★ 固定18px → 可変・やや拡大 */
    letter-spacing: clamp(1px, 0.2vw, 3px);
    font-weight: 700;

    color: #000000;

    flex-wrap: wrap;
    justify-content: flex-end;
}


.navi-list li {
    flex-shrink: 0;
}


.navi-list a {
    position: relative;

    display: block;

    padding: 8px 4px;

    text-decoration: none;

    white-space: nowrap;

    color: #000000;
}


/* 下線 */

.navi-list a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 2px;

    background: currentColor;

    transform: scaleX(0);

    transform-origin: right;

    transition:
        transform 0.3s ease;
}


.navi-list a:hover::after {
    transform: scaleX(1);

    transform-origin: left;
}


.navi-list a:link,
.navi-list a:visited,
.navi-list a:hover,
.navi-list a:active {
    color: #000000;
}

/* ★ 追加：現在表示中のページをハイライト */
.navi-list a.active {
    color: #c9a227;
}

.navi-list a.active::after {
    background: #c9a227;
    transform: scaleX(1);
    transform-origin: left;
}

/* ★ 追加：問い合わせをCTAボタンとして目立たせる */
.navi-list a.nav-cta {
    background-color: #c9a227;
    color: rgb(11, 40, 74);
    padding: 8px 20px;
    border-radius: 20px;
}

.navi-list a.nav-cta::after {
    display: none;
}

.navi-list a.nav-cta:hover {
    background-color: #ddb733;
    color: rgb(11, 40, 74);
}

.navi-list a.nav-cta.active {
    color: rgb(11, 40, 74);
}


/* ★ 追加：スマホ用ハンバーガーボタン */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background-color: rgb(11, 40, 74);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ========================================
   スマートフォン対応
======================================== */

@media (max-width: 768px) {

    header {
        height: auto;
        min-height: 90px;
    }

    .header-container {
        flex-wrap: nowrap;
        padding-top: 20px;
        padding-right: 6px;
        padding-bottom: 4px;
        padding-left: 2px;
        /* ★ 修正：ロゴを左端ぎりぎりまで寄せ(padding-leftを2pxまで縮小)、
           ロゴ・ハンバーガーの位置を下げるため(padding-topを増やしpadding-bottomを縮小)。
           上下の合計は変えていない(20+4=24=12+12)ため、ヘッダー自体の高さは変わらず、
           他ページのtopView等のheader高さオフセット計算に影響しない */
    }

    .logo img {
        width: 120px;
        max-height: 65px;
    }

    .hamburger-btn {
        display: flex;
    }

    .navi-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 8px 20px 20px;
        background-color: #ffffff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    }

    .navi-list.open {
        display: flex;
    }

    .navi-list li {
        width: 100%;
    }

    .navi-list a {
        display: block;
        width: 100%;
        padding: 14px 8px;
        text-align: center;
        font-size: 18px;
    }

    .navi-list a.nav-cta {
        margin-top: 8px;
    }
}




/* ========================================
   フッター色の上書き(このページ専用)
   フッターが紺色だとbody背景の紺色と重なって見づらいため、
   ヘッダーと統一感が出るよう白背景に変更しています。
   あわせて、白背景でも読みやすいよう文字色を紺系に変更。
   (footer.cssより読み込み順が先でも確実に効くよう、
    bodyを付けて詳細度を上げています)
======================================== */

body footer {
    background-color: #ffffff;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 29px,
            rgba(11, 40, 74, 0.10) 29px,
            rgba(11, 40, 74, 0.10) 30px),
        repeating-linear-gradient(-45deg,
            transparent 0,
            transparent 29px,
            rgba(11, 40, 74, 0.10) 29px,
            rgba(11, 40, 74, 0.10) 30px);
}

body footer .footer-brand-name {
    color: #0b284a;
}

body footer .footer-catch {
    color: rgba(11, 40, 74, 0.75);
}

body footer .footer-nav a {
    color: #0b284a;
}

body footer .footer-info p {
    color: rgba(11, 40, 74, 0.85);
}

body footer .footer-info p.footer-company {
    color: #0b284a;
}

body footer .footer-info a {
    color: rgba(11, 40, 74, 0.85);
}

body footer .footer-legal a {
    color: rgba(11, 40, 74, 0.6);
}

body footer .footer-line {
    border-top: 1px solid rgba(11, 40, 74, 0.2);
}

body footer .footer-copyright {
    color: rgba(11, 40, 74, 0.55);
}


/* ========================================
   SEO/アクセシビリティ用：視覚的には非表示だが、
   検索エンジンやスクリーンリーダーには読み取れる見出し
======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
