/* ==========================
    ヘッダー
========================== */
header {
    background-color: white;
    height: 110px;
    padding: 0 40px;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* 通常は非表示 */
.print-header {
    display: none;
}

/* 印刷時の制御 */
@media print {
  header {
    display: none; /* 通常のヘッダーは非表示 */
  }

  .print-header {
    display: none;
    text-align: center;
    padding: 40px 0;
	background-color: white;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  }
	
  .print-header .logo {
	  width: 160px;
	  margin: 0 auto;
	  display: flex;
  }

  body.print-first-page .print-header {
    display: block;
  }
}

/* ヘッダー内のレイアウト */
.header-container {
    display: flex;
    height: 10vh;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

/* ロゴ */
.logo {
    width: 15%; /* ロゴエリアの幅 */
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img:first-child {
    width: 20%; /* 1つ目の画像の幅 */
}

.logo img:last-child {
    width: 80%; /* 2つ目の画像の幅 */
}

@media screen and (max-width: 1200px) {
	header {
		padding: 0 20px 0 40px;
	}
}

@media screen and (max-width: 600px) {
	header .logo {
		width: 40%;
	}
}

@media screen and (max-width: 500px) {
    header {
        padding-left: 0!important;
    }

	header .logo {
		width: 65%;
        height: 90%;
        display: flex;
        justify-content: center;
	}

    header .logo .fabikon {
		display: none;       
	}

    header .logo img:last-child {
        width: 100%;
        height: 100%;
    }
}

/* ナビゲーションメニュー */
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav ul li {
    display: inline;
}

.nav ul li a {
    text-decoration: none;
    font-size: 16px;
    color: #191919;
}

.nav ul li a:hover {
    color: #A3A3A3;
    transition: all .3s ease;
}

@media screen and (max-width: 1400px) {
    .logo {
        width: 17%;
    }

    .nav ul li a {
        font-size: 14px;
    }

    .contact-btn a {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 1300px) {
    .nav ul li a {
        font-size: 12px;
    }

    .contact-btn a {
        font-size: 12px;
    }
}

@media screen and (max-width: 1200px) {
    .nav ul li a {
        font-size: 11px;
    }
}

/* ==========================
    フッター
========================== */
footer {
    background-color: #5482EB;
}

.footer-container {
    width: 90%;
    margin: 0 auto;
}

.footer-logo {
    width: 17%;
    padding: 20px 0;
}

.footer-logo a {
    display: flex;
}

.footer-logo img:first-child {
    /* width: 20%; 1つ目の画像の幅 */
    width: 48px;
}

.footer-logo img:last-child {
    /* width: 80%; 2つ目の画像の幅 */
    width: 225px;
}

.footer-contents {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
}

.footer-contents .br {
	display: none;
}

.footer-content .footer-info {
    display: none;
}

.footer-content a{
    color: white;
    opacity: 0.9;
    font-size: 14px;
    padding-bottom: 10px;
    transition: all .3s ease;
}

.footer-content a:hover {
    color: #d0d0d0;
}

.footer-content div {
    display: flex;
    flex-direction: column;
    color: white;
    line-height: 1.6;
    padding: 10px 0;
}

.footer-content div p:first-child, .footer-content div a:first-child{
    font-size: 16px;
    opacity: 1;
    color: white;
}

.footer-content div p:last-child {
    opacity: 0.9;
    font-size: 14px;
    color: white;
}

.footer-content:last-child div a {
    opacity: 0.9;
    font-size: 14px;
}

.footer-sub-contents {
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-bottom: 40px;
}

.footer-sub-content:first-child {
    flex: 1;
}

.footer-sub-content:last-child {
    flex: 3;
}

.footer-sub-content p {
    color: white;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.6;
}

.footer-sub-content p:first-child {
    margin-bottom: 35px;
}

.footer-sub-content p span {
    display: inline-block; /* インラインブロックで幅指定可能に */
    width: 150px; /* 任意の幅を設定（適宜調整） */
	color: white;
}

.footer-sub-content div p:first-child {
    margin-bottom: 0;
}

.footer-sub-content .sub-span {
    display: inline;
    margin-left: 10px;
}

.footer-sub-content p a {
    padding-left: 20px;
    color: white;
}

.footer-copyright {
    margin-bottom: 0 !important;
    position: absolute;
    left: 50%;
    bottom: 40px;
}

@media screen and (max-width: 1650px) {
    .footer-sub-content{
        flex: 1;
    }
    .footer-sub-content div p:first-child {
        margin-bottom: 20px;
    }
    
    .footer-sub-content p {
        position: relative;
    }

    .footer-sub-content .sub-span {
        position: absolute;
        top: 0;
        left: 60%;
        display: inline-block;
        width: 150px;
    }

    .footer-sub-content .sub-span a {
        display: block;
        padding-left: 0;
    }

    .footer-sub-content .footer-copyright {
        position: absolute;
        left: 50%;
        margin-bottom: 0 !important; 
    }
}

@media screen and (max-width: 1240px) {
    .footer-content a,
	.footer-content p,
    .footer-sub-content p{
        font-size: 14px;
    }

    .footer-content {
        flex: 1;
    }
}

@media screen and (max-width: 1150px) {
    .footer-content a,
	.footer-content p,
    .footer-content div p:last-child,
    .footer-sub-content p{
        font-size: 12px;
    }

    .footer-content div a:first-child,
    .footer-content div p:first-child{
        font-size: 14px;
    }
}

@media screen and (max-width: 1050px) {
    .footer-content a,
	.footer-content p{
        font-size: 11px;
    }

    .footer-content div a:first-child,
    .footer-content:last-child div a {
        font-size: 13px;
    }
}

@media screen and (max-width: 1000px) {
    .footer-content a,
	.footer-content p{
        font-size: 10px;
    }

    .footer-content div a:first-child,
    .footer-content:last-child div a {
        font-size: 12px;
    }
}

@media screen and (max-width: 960px) {
    .footer-sub-contents {
        display: none;
    }
    
    .footer-content .footer-info {
        display: block;
        width: 100%;
    }

    .footer-contents {
        flex-direction: column;
        margin-bottom: 0;
    }
	
	.footer-logo {
		width: 100%;
	}

    .footer-content {
        padding-top: 20px;
        width: 100%;
    } 

    .footer-content span {
        display: inline-block; /* インラインブロックで幅指定可能に */
        width: 150px; /* 任意の幅を設定（適宜調整） */
        color: white;
    }
	
	.footer-content p,
    .footer-content a {
        font-size: 14px !important;
        opacity: 0.9 !important;
        padding-bottom: 10px;
        transition: all .3s ease;
    } 
	
	.footer-content div a:first-child,
    .footer-content:last-child div a {
        font-size: 16px;
    }
}

@media screen and (max-width: 440px) {	
	.footer-content div p,
    .footer-content div a{
        width: 100%;
    }
}


/* ==========================
    ハンバーガーメニュー
========================== */
.burger {
    display: none;
    cursor: pointer;
}

.burger .line1,
.burger .line2,
.burger .line3 {
    width: 25px;
    height: 3px;
    background-color: #4285F4;
    margin: 5px;
    transition: all 0.5s ease-in-out;
    margin-left: 30px;
}

.toggle .line1 {
    transform: translate(0px, 8px) rotate(45deg);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: translate(0px, -8px) rotate(-45deg);
}

@media screen and (max-width: 1080px) {
    .logo {
        width: 24%;
    }

    .burger {
        display: flex;
        align-items: center;
    }

    .nav, .contact-btn {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    .burger {
        width: 50px;
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 50%;
        background-color: #1E11B2;
    }

    .burger .line1,
    .burger .line2,
    .burger .line3 {
        background-color: white;
        margin-left: 5px;
    }
}


/* ==========================
    モーダルウィンドウ
========================== */
.nav-modal {
    width: 100vw;
    height: 100vh;
    display: none;
    position: fixed;
	overflow-y: auto;
    top: 14vh;
    background-color: white;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* .nav-modal {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
  position: fixed;
  top: 10vh;
  left: 0;
  background-color: white;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
} */

/* モーダルが開いたときの状態 */
.nav-modal.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* モーダル内のリスト */
.nav-modal > ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 50%;
    margin: 0 auto;
    padding-top: 5vh;
    justify-content: center;
}

/* 各リストアイテム */
.nav-modal > ul > li {
    font-size: 20px;
}

.nav-modal > ul > li:hover {
    opacity: 0.7;
}

/* 初期状態（非表示 & 下に配置） */
.nav-modal > ul > li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* モーダルが開いたとき（`.show` クラスが付いたら表示） */
.nav-modal.show > ul > li {
    opacity: 1;
    transform: translateY(0);
}

/* それぞれ少しずつ遅れてフェードイン */
.nav-modal.show > ul > li:nth-child(1) {
    transition-delay: 0s;
}
.nav-modal.show > ul > li:nth-child(2) {
    transition-delay: 0.1s;
}
.nav-modal.show > ul > li:nth-child(3) {
    transition-delay: 0.2s;
}
.nav-modal.show > ul > li:nth-child(4) {
    transition-delay: 0.3s;
}
.nav-modal.show > ul > li:nth-child(5) {
    transition-delay: 0.4s;
}
.nav-modal.show > ul > li:nth-child(6) {
    transition-delay: 0.5s;
}
.nav-modal.show > ul > li:nth-child(7) {
    transition-delay: 0.6s;
}
.nav-modal.show > ul > li:nth-child(8) {
    transition-delay: 0.7s;
}
.nav-modal.show > ul > li:nth-child(9) {
    transition-delay: 0.8s;
}

/* お問い合わせボタン */
.modal-btn a {
    font-size: 24px;
    padding: 16px 50px;
    border-radius: 32px;
    margin-bottom: 20px;
}

@media screen and (max-width: 720px) {
    .nav-modal > ul {
        width: 70%;
    }
}

@media screen and (max-width: 720px) {
    .nav-modal {
        max-height: 90vh; /* 画面の90%の高さまで */
        overflow-y: auto;
    }
}

@media screen and (max-width: 600px) {
    .modal-btn a {
        font-size: 18px;
        padding: 12px 40px;
        border-radius: 32px;
        margin-bottom: 20px;
    }
}

/* ==========================
    ヘッダードロップダウン
========================== */

.nav ul li {
    display: inline-block; /* flex でも可 */
    position: relative;
}

.nav .header-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10%;
    background-color: white;
    width: 200px;
    opacity: 0; /* 初期状態は透明 */
    visibility: hidden; /* 初期状態は非表示 */
    transform: translateY(-10px); /* ちょっと上にずらす */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    pointer-events: none; /* ホバーするまでクリック不可 */
}

/* 各メニューの幅 */
.nav .job-menu {
    width: 300px;
}

.nav .business-menu {
    width: 220px;
}

.nav .company-menu {
    width: 140px;
}

.nav .csr-menu {
    width: 180px;
}

.nav .header-dropdown-menu li {
    padding: 10px;
}

.nav .header-dropdown-menu li:last-child {
    border-bottom: none;
}

.nav .header-dropdown-menu li a {
    display: block;
    text-decoration: none;
}

/* ▼ ホバーしたときのアニメーション */
.nav ul li:hover .header-dropdown-menu,
.nav ul li:focus-within .header-dropdown-menu { /* 子要素をフォーカスしても消えないように */
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* 元の位置に戻す */
    pointer-events: auto; /* クリック可能に */
}



/* 修正 */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右に分ける */
    height: 110px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px; /* メニューとボタンの間隔 */
}

body.noscroll {
  overflow: hidden;
}