/* Variables */
:root {
    --primary-navy: #1a3673;
    --accent-blue: #2d5db3;
    --text-color: #333;
    --bg-light: #f8faff;
    --white: #ffffff;
    --spacing-unit: 8px;
}

/* Header & Logo Label */
/* Header & Logo Label (PC Baseline) */
@media screen and (min-width: 1025px) {
    #fix-menu-wrap {
        /* height: 94px !important; */
        height: auto !important;
        /* 公式サイト基準 */
    }

    .site-branding {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: none !important;
        height: 100% !important;
        column-gap: 20px !important;
    }

    .site_header_logo {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 50px;
        /* 余白を含めた最小高さ */
        flex-shrink: 0 !important;
    }

    .site_header_logo a {
        display: flex !important;
        align-items: center !important;
        text-decoration: none;
        width: 190px !important;
        height: 44px !important;
        /* ロゴ画像の基準高さ */
        flex-shrink: 0;
        position: relative !important;
    }

    /* pc-logo内の画像をテーマの制御（表示・非表示）を活かしつつ中央に固定 */
    .pc-logo {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }

    .pc-logo img {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        transform: translateY(-50%) !important;
        max-width: 100% !important;
        height: auto !important;
        /* display: block !important; は記述しないことでテーマの切り替えを妨げない */
    }

    /* 例外ロゴは通常不要なため非表示に */
    #exception-logo {
        display: none !important;
    }

    .office-label-v2 {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--white) !important;
        color: #1a3673 !important;
        padding: 10px 25px !important;
        border-radius: 0 !important;
        font-weight: 500 !important;
        font-size: 20px !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        line-height: 1 !important;
        margin-left: 20px !important;
        height: fit-content !important;
        position: relative !important;
    }

    #pc_nav_wrap {
        flex-grow: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .menu-fix_header_menu-container {
        width: auto !important;
        max-width: 100% !important;
    }

    #menu-fix_header_menu {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    #menu-fix_header_menu li a {
        padding-left: 25px !important;
        /* 公式サイトに近いゆったりとした間隔 */
        padding-right: 25px !important;
        font-size: 17px !important;
        /* 公式サイト基準 */
        white-space: nowrap !important;
        /* 絶対に改行させない */
        color: var(--white) !important;
    }
}

/* 画面幅が狭い場合（1025px〜1600px）の段階的縮小調整 */
@media screen and (min-width: 1025px) and (max-width: 1600px) {
    #fix-menu-wrap {
        height: auto !important;
    }

    #menu-fix_header_menu li a {
        padding-left: clamp(8px, 1vw, 15px) !important;
        padding-right: clamp(8px, 1vw, 15px) !important;
        font-size: clamp(13px, 1.2vw, 16px) !important;
    }
/* 
    .office-label-v2 {
        padding: 6px 12px !important;
        font-size: clamp(14px, 1.3vw, 18px) !important;
        margin-left: 10px !important;
    } */

    .site_header_logo a {
        width: clamp(140px, 12vw, 180px) !important;
    }
    .searchform-wrap {
        width: clamp(40px, 5vw, 70px) !important;
    }
}
@media screen and (min-width: 1025px) and (max-width: 1680px) {

    .office-label-v2 {
        padding: 6px 12px !important;
        font-size: clamp(14px, 1.3vw, 18px) !important;
        margin-left: 10px !important;
    }
}

/* Mobile Adjustments */
@media screen and (max-width: 1024px) {
    .site_header_logo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        min-height: 40px;
        /* スマホ用の高さ確保 */
    }

    .site_header_logo a {
        display: flex !important;
        align-items: center !important;
        /* width: 120px !important; */
        width: 160px !important;
        /* スマホ用のロゴ幅 */
        height: 30px !important;
        /* スマホ用のロゴ高さ */
        position: relative !important;
        flex-shrink: 0;
    }

    /* PC用と共通の構造で、SP表示でも画像を中央に固定 */
    .pc-logo,
    #exception-logo {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        transform: translateY(-50%) !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .office-label-v2 {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--white) !important;
        color: #1a3673 !important;
        padding: 4px 10px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
        border: 1px solid #1a3673 !important;
        height: fit-content !important;
        position: relative !important;
    }
}

/* 980px〜1024px: PCナビが表示されるがPC用CSSが未適用の範囲を補正 */
@media screen and (min-width: 980px) and (max-width: 1024px) {
    .site_header_logo {
        flex-shrink: 0 !important;
    }
    .site_header_logo a {
        width: clamp(130px, 13vw, 160px) !important;
        height: 38px !important;
    }
    .pc-logo {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
    }
    .pc-logo img {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        transform: translateY(-50%) !important;
        max-width: 100% !important;
        height: auto !important;
    }
    #exception-logo {
        display: none !important;
    }
    .office-label-v2 {
        padding: 4px 8px !important;
        font-size: clamp(11px, 1.1vw, 13px) !important;
        margin-left: 8px !important;
    }
    #menu-fix_header_menu li a {
        white-space: nowrap !important;
        font-size: clamp(11px, 1vw, 13px) !important;
        padding-left: clamp(6px, 0.8vw, 10px) !important;
        padding-right: clamp(6px, 0.8vw, 10px) !important;
    }
}

/* Fixed Header Styles */
#fix-menu-wrap.is-fixed #menu-fix_header_menu li a,
#fix-menu-wrap.h-back #menu-fix_header_menu li a {
    color: #1a3673 !important;
}

#fix-menu-wrap.is-fixed #menu-fix_header_menu li a:hover,
#fix-menu-wrap.h-back #menu-fix_header_menu li a:hover,
#fix-menu-wrap.hover-white:hover #menu-fix_header_menu li a:hover {
    background-color: #1e489d !important;
    color: #fff !important;
}

/* 
 * ヘッダー全体にマウスが乗った時、
 * マウスが直接乗っていないメニュー文字も紺色にする
 */
#fix-menu-wrap.hover-white:hover #menu-fix_header_menu li a {
    color: #1a3673 !important;
}

/* サブメニューがMVテキストの下に回り込まないように z-index を調整 */
#menu-fix_header_menu .sub-menu {
    z-index: 100 !important;
}

#fix-menu-wrap.is-fixed #shiro-l,
#fix-menu-wrap.h-back #shiro-l {
    display: none !important;
}

#fix-menu-wrap.is-fixed #kon-l,
#fix-menu-wrap.h-back #kon-l {
    display: block !important;
}

#fix-menu-wrap.is-fixed .office-label-v2,
#fix-menu-wrap.h-back .office-label-v2 {
    background: var(--primary-navy);
    color: var(--white);
    border: 1px solid var(--primary-navy);
}

/* Hero Section V2 (Mockup logic) */
/* Note: The hero section in index.html still uses older IDs like #kv, 
   but we'll apply styles to modernize it */
#kv {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.kv-ttl {
    color: var(--white);
    text-align: center;
}

/* Other Sections Restoration (Summary) */
.about-section-v2,
.news-section-v2,
.step-section-v2 {
    padding: 100px 5%;
    background: var(--white);
}

.common-title1 {
    font-size: 40px;
    color: var(--primary-navy);
    margin-bottom: 40px;
}

/* Step Style */
.step-row-v2 {
    display: flex;
    gap: 50px;
    margin-bottom: 80px;
}

.step-num-v2 {
    font-size: 60px;
    font-weight: 900;
    color: var(--primary-navy);
    opacity: 0.2;
}

/* Image Grid */
.image-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-grid-v2 img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.header-img-wrap {
    position: relative;
}

/* News Bar V2 Style */
.news-bar-v2 {
    position: absolute;
    bottom: 30px;
    right: 20px;
    display: flex;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-width: 600px;
    height: 64px;
    z-index: 5;
}

.news-bar-label {
    background: #1a3673;
    color: #fff;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    letter-spacing: 0.1em;
}

.news-bar-content {
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 30px;
    flex-grow: 1;
}

.news-bar-date {
    font-size: 16px;
    color: #333;
    letter-spacing: 0.05em;
}

.news-bar-title {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.news-bar-title:hover {
    text-decoration: underline;
}

/* Response for News Bar */
@media screen and (max-width: 1024px) {
    .news-bar-v2 {
        right: 0;
        left: 0;
        bottom: 20px;
        margin: 0 auto;
        width: 90%;
        min-width: 0;
        height: auto;
        flex-direction: column;
    }

    .news-bar-label {
        padding: 5px 0;
    }

    .news-bar-content {
        padding: 10px;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.recruitment-cont {
    background: #EEF2FF;
    padding: 30px;
    margin-bottom: 20px;
}

/* top 強み03 */
@media screen and (min-width: 1365px) {
    #service-cont1-inner3 .mutual-cont {
        width: 88%;
    }
    #service-cont1-inner3 .mutual-cont > div.page-cont3.p-cont3-left {
        margin-left: unset;
        margin-right: auto;
    }
}
/* loader */
@media screen and (min-width: 1025px) {
	#loader {
		display: flex;
		gap: 20px;
		align-items: center;
	}
}
#loader span {
	color: #fff;
	background: #1E489D;
	font-size: 16px;
	padding: 8px 20px;
}
@media screen and (max-width: 1024px) {
	#loader {
		text-align: center;
	}
	#loader span {
        font-size: 14px;
        padding: 4px 20px;
        display: inline-block;
        margin-top: 10px;
    }
}
/* footer */
.footer-catch span {
	position: absolute;
    top: calc(50% + 72px);
	left: 50%;
    -webkit-transform: translate(-50%, -50%) !important;
    transform: translate(-50%, -50%) !important;
    text-align: center;
	background: #fff;
    color: #1E489D;
    font-size: 16px;
	line-height: 2;
    width: auto;
    padding: 4px 24px;
}
@media screen and (max-width: 1024px) {
	.footer-catch span {
		top: calc(50% + 60px);
		padding: 0 16px;
	}
}

#top-cont1 h3.common-title2 {
    font-size: 25px;
    font-weight: 500;
}
#top-cont1 h3.common-title2 span {
    font-size: 20px;
    letter-spacing: 0;
}
#top-cont1 p.inview {
    font-size: 17px;
}
#top-cont3 h3.title-type3 {
    max-width: 88%;
    margin-inline: auto;
}
#pop-link1 h4.pop-title,
#pop-link2 h4.pop-title,
#pop-link3 h4.pop-title {
    line-height: 1.6;
}
#pop-link1 p.pop-detail,
#pop-link2 p.pop-detail,
#pop-link3 p.pop-detail {
    line-height: 2;
    margin-top: 20px;
}

#top-cont5-inner {
    overflow: hidden;
}
@media screen and (max-width: 767px) {
    .blue-back {
        height: calc(500 / 375 * 100vw);
    }
    #top-cont5-inner {
        height: calc(880 / 375 * 100vw);
    }
    #top-cont5 .flow::before {
        height: 200%;
    }
    #top-cont5 .flow::after {
        height: 180%;
    }
}
@media screen and (min-width: 768px) and (max-width: 1279px) {
    .blue-back {
        height: calc(360 / 768 * 100vw);
    }
    #top-cont5-inner {
        height: calc(680 / 768 * 100vw);
    }
    #top-cont5-inner .cont-right {
        height: calc(480 / 768 * 100vw);
    }
    #top-cont5 .flow::before {
        height: 160%;
    }
    #top-cont5 .flow::after {
        height: 150%;
    }
}
@media screen and (min-width: 1280px) {
}
@media screen and (min-width: 1366px) {
    #top-cont5 .flow::before {
        height: 160%;
    }
    #top-cont5 .flow::after {
        height: 140%;
    }
}

#top-cont6 {
    padding: 80px 0;
    background: #EEF2FF;
    margin-bottom: 112px;
}

#top-step {
    padding: 80px 0;
    background: #EEF2FF;
    margin-bottom: 180px;
}
.p-top-step__inner {
    padding-inline: 20px;
    max-width: 1320px;
    margin-inline: auto;
}
.p-top-step__items {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.p-top-step__item-image {
    position: relative;
}
.p-top-step__item-label {
    position: absolute;
    top: 12px;
    left: 0;
    display: inline-block;
    background: #fff;
    color: #1E489D;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    width: 165px;
    text-align: center;
    padding-block: 4px;
}
.p-top-step__item {
    background: #fff;
}
.p-top-step__item-image img {
    vertical-align: middle;    
}
.p-top-step__item-info {
    color: #1E489D;
    padding: 24px 20px 40px;
}
.p-top-step__item-info h3 {
    font-size: 20px;
    text-align: center;
    margin: 0 0 20px;
}
.p-top-step__item-info p {
    font-size: 16px;
    line-height: 1.8;
}
@media screen and (min-width: 768px) {
    #top-step {
        padding: 80px 0 120px;
    }
    .p-top-step__items {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
    }
    .p-top-step__item {
        flex: 1;
    }
    .p-top-step__item-info {
        color: #1E489D;
        padding: 32px;
    }
}