*{
    margin: 0;
}
/* コンテンツがヘッダーに隠れないように余白を確保 */

body{
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; /* 適用するデフォルトの太さ */
    font-style: normal;
}

a{
    text-decoration: none;
}

/* スクロールボタンーーーーーーーーーーーーーーーーーーー */
/* スクロールボタンのスタイル */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;
    color: #f1712c;
    padding: 15px 21px;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    border: solid 2px #f1712c;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* 初期状態では少し下に配置 */
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

.scroll-to-top:hover{
    color: white;
    background-color: #f1712c;
    border: solid 2px white;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* 表示時に元の位置に戻る */
}

@media (max-width: 768px) {
    .scroll-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background-color: white;
        color: #f1712c;
        padding: 5px 11px;
        border-radius: 50%;
        font-size: 24px;
        text-align: center;
        border: solid 2px #f1712c;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px); /* 初期状態では少し下に配置 */
        transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
        z-index: 1000;
    }
}

/* ヘッダーーーーーーーーーーーーーーーーーーーーー */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* ヘッダー背景色、透明度あり */
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ナビゲーション下の影 */
    transition: background-color 0.3s ease;
}

.overlay {
    position: fixed; /* スクロールに影響しないように固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0); /* 初期状態は透明 */
    pointer-events: none; /* クリックイベントを無視する */
    transition: background 0.8s; /* スムーズな変化を追加 */
    z-index: -2; /* 全体の上に表示されるようにする */
}

.global-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 40px; /* 横の余白を広めに */
  height: 70px; /* 必要に応じて高さも統一 */
  background-color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-inner {
    width: 100%;
    max-width: 100%; /* 最大幅を設定 */
    margin: 0 auto; /* 中央揃え */
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 32px;
    margin-left: 150px;
}


.logo img {
    width: 160px; /* 必要に応じて変更 */
    height: auto; /* 比率を保持 */
}

.logo-container {
  display: flex;
  align-items: center;
  margin-right: 20px; /* ロゴとnav-listの隙間を必要なぶんだけ確保 */
}


.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

.nav-list {
    display: flex;
    gap: 0px; /* 項目同士の間隔を適切に拡張 */
    list-style: none;
    flex-shrink: 1; /* 横幅が狭くなっても押し出さない */
}


.nav-link {
    text-decoration: none;
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 16px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease; /* 色の変化を滑らかに */
}

.nav-link:hover {
    color: red; /* ホバー時に文字色を変更 */
}


.button-container {
    display: flex;
    gap: 25px; /* ボタン間の余白を少し狭めに */
    flex-shrink: 0; /* ボタンは縮小せず、ぎりぎりまで詰める */
}

.nav-contact-button {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 999px;
  background: linear-gradient(to right, #ff8a00, #ff5e62);
  color: #000;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s;
}

.nav-contact-button:hover {
  opacity: 0.8;
}


@media (max-width: 768px) {
    header {
        height: 0vh; /* すでに指定済み */
        background-position: center center;
    }

    .nav-contact-button {
        /* お問い合わせボタンのスタイル */
        width: 100%;
        display: inline-block; /* ボタンのサイズを適切に設定する */
        padding: 10px 20px;
        border: none;
        background: linear-gradient(to right, rgb(245, 179, 168), #f1712c);
        color: black !important; /* ボタンの文字色 */
        font-size: 16px;
        font-weight: bold;
        border-radius: 50px;
        cursor: pointer; /* マウスカーソルをポインタにする */
        text-align: center; /* テキストを中央に配置 */
        text-decoration: none; /* 下線を消す */
        transition: background-color 0.3s; /* 背景色の変化にトランジションを追加 */
    }

    .logo img {
        width: 130px; /* 必要に応じて変更 */
        height: auto; /* 比率を保持 */
    }
}



/* ハンバーガーメニューのスタイル */
.hamburger-menu {
    display: none;
    font-size: 60px;
    cursor: pointer;
    margin-right: 20px;
    color: black;
}

/* ハンバーガーがバツに変わる際のスタイル */
.hamburger-menu.active {
    font-size: 30px;
    color: red; /* バツマークの色 */
}

/* モバイル用スタイル */
@media (max-width: 768px) {

    .global-nav {
        /* ナビゲーション全体のスタイル */
        max-width: 100%;
        width: 80%;
        top: 4%;
        left: 0%;
        display: flex;
        align-items: center;
        padding: 0px 10px;
        margin: 20px auto 0 auto; /* 上に90px、左右中央に配置 */
        position: relative; /* ヘッダーの位置を相対的に設定 */
        z-index: 1; /* ヘッダーが画像の上に表示されるようにする */
        background-color: rgba(255, 255, 255, 0.2); /* 白色で80%の透明度 */
    }

    .nav-inner {
        width: 100%;
        max-width: 100%; /* 最大幅を設定 */
        margin: 0 auto; /* 中央揃え */
        display: flex;
        justify-content: space-between; /* 子要素を左右に分ける */
        align-items: center;
        padding: 0px 0;
    }

    .logo{
        font-size: 25px; /* フォントサイズを調整 */
    }

    .logo-container {
        /* ロゴのコンテナのスタイル */
        z-index: 999;
    }
    
    .hamburger-menu {
        display: block; /* モバイルで表示 */
        z-index: 9999;
        margin-right: 0px;
        font-size: 40px;
        margin-bottom: 10px;
    }

    .nav-container {
        display: none; /* 初期状態は非表示 */
        position: fixed; /* 画面全体に広がるように */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(233,243,247);
        flex-direction: column;
        align-items: flex-start; /* 左寄せ */
        padding: 40px 20px; /* 左右に余白を追加 */
        justify-content: space-evenly; /* 項目の間に等間隔のスペース */
        z-index: 99; /* 他のコンテンツの上に表示 */
        padding: 20px 0; /* 上下に余白を追加 */
    }

    .nav-list {
        flex-direction: column;
        width: 100%; /* リスト全体を幅いっぱいにする */
        padding: 0;
        margin: 0;
        gap: 15px; /* 各項目間のスペースを調整 */
        list-style: none;
    }

    .nav-link {
        font-size: 18px; /* フォントサイズを調整 */
        padding: 10px 20px; /* 各リンクに余白を追加 */
        width: 80%; /* 幅を全体に揃える */
        text-align: left; /* 左寄せ */
        background-color: white; /* 背景色を透明に */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.1); /* ホバー時に背景色を追加 */
        color: #007bff; /* ホバー時に文字色を変更 */
    }

    .nav-list li {
        width: 100%; /* リストアイテムを幅いっぱいに */
        text-align: center;
    }

    .button-container {
        flex-direction: column;
        gap: 20px;
        margin-left: 0px;
        padding-left: 0;
        border-left: none;
        width: 80%;
        margin: 0 auto;
        align-items: center;
    }

    .contact-button {
        padding: 15px 30px;
        font-size: 20px; /* ボタンの文字サイズを大きく */
        text-align: center;
        width: 90%; /* ボタンも横幅を広く */
        max-width: 100%; /* 最大幅を設定 */
    }
}




/* フォームーーーーーーーーーーーーーーーーーーーーー */

/* フォームの基本スタイル */

main{
    margin-top: 140px;
    margin-bottom: 100px;
}

.form-text h2{
    text-align: center;
    font-size: 30px;
}

.form-text p{
    text-align: center;
    margin: 20px 0;
}

form {
    margin: 20px;
    font-family: Arial, sans-serif;
    width: 60%;
    margin: 0 auto;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

input[type="radio"], input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

input[type="date"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}


#confirm-btn{
    position: relative;
    display: inline-block;
    padding: 10px 40px;
    color: black; /* ボタンの文字色 */
    border: solid 1px black;
    text-decoration: none; /* 下線を消す */
    font-size: 1rem; /* フォントサイズを調整 */
    font-weight: bold; /* フォントを太くする */
    overflow: hidden; /* 擬似要素がボタンを超えないようにする */
    transition: color 0.4s; /* テキストカラーの変化をスムーズにする */
    margin-left: 0; /* 左マージンを設定 */
    z-index: 5;
    cursor: pointer;
}

#confirm-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #f1712c; /* ボタンのホバー時の背景色 */
    transition: left 0.4s; /* 背景の移動をスムーズにする */
    z-index: -1; /* 背景がテキストの後ろに来るように設定 */
}

#confirm-btn:hover::before {
    left: 0; /* ホバー時に背景が左から現れる */
}

#confirm-btn:hover {
    color: black; /* ホバー時にテキストカラーを白にする */
}


/* ポップアップのスタイル */
#confirmation-popup {
    display: none; /* 初期状態で非表示 */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 50%;
    z-index: 99;
}

/* 見出しのスタイル */
#confirmation-popup h2 {
    margin-top: 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

/* 内容のスタイル */
#confirmation-popup p {
    margin: 10px 0;
    font-size: 18px;
}

/* ボタンのスタイル */
#confirmation-popup button {
    padding: 10px 20px;
    background-color: black;
    color: white;
    border: none;
    cursor: pointer;
}

#confirmation-popup button:hover {
    background-color: #0056b3;
}

/* 閉じるボタンのスタイル */
#close-btn {
    background-color: #dc3545;
}

#close-btn:hover {
    background-color: #c82333;
}

/* ボタンコンテナの中央揃え */
.popup-button-container {
    display: flex;
    justify-content: center; /* 中央揃え */
    margin-top: 20px; /* ボタン上の余白 */
}

#submit-btn {
    margin-right: 10px; /* 送信ボタンと閉じるボタンの間の余白 */
}


/* フォーム要素の強調 */
input:focus, textarea:focus, select:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* 必須項目マーク */
.required::after {
    content: " *";
    color: red;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

    form {
        margin: 20px;
        font-family: Arial, sans-serif;
        width: 80%;
        margin: 0 auto;
    }

    input, select, textarea {
        font-size: 16px;
    }

    button {
        font-size: 18px;
    }

    #confirmation-popup {
        width: 90%;
    }
}


/* フッターーーーーーーーーーーーーーーーーーーーーーーーーーー */
footer {
    background-color: rgb(64, 68, 74);
    padding: 40px 0 20px 0;
}

footer a{
    text-decoration: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    color: white;
}

.footer-logo img {
    width: 200px; /* 適切な幅に設定 */
    height: auto; /* 比率を保持 */
}


.footer-logo a {
    text-decoration: none;
    color: white;
}

.footer-logo h1 {
    margin: 0;
    font-size: 24px; /* 必要に応じて調整 */
    margin-bottom: 20px;
}

.footer-logo .highlight {
    color: red; /* 「LINK」の部分を赤にする */
    font-size: 30px;
    padding-left: 10px;
}

.footer-address,
.footer-phone,
.footer-sns {
    margin-bottom: 15px;
}

.footer-address p,
.footer-phone p {
    margin: 0;
}

.footer-sns .sns-link {
    text-decoration: none;
    color: white;
    margin-right: 15px;
    font-size: 32px; /* アイコンのサイズ */
}

.footer-sns .sns-link:hover {
    color: #0056b3; /* ホバー時の色 */
}

.fa-instagram{
    color: #efa5d8;
}

.fa-line{
    color: #00cc44;
}

.footer-right {
    flex: 2.5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    display: flex;
    padding-top: 10px;
}


.footer-nav-link {
    text-decoration: none;
    color: white ;
    margin-right: 15px;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 16px;
}

.footer-nav-link:hover{
    color: red;
}

.footer-contact {
    display: flex;
    gap: 100px;
    margin: 0 auto;
    margin-top: 40px;
}

.contact-btn {
    border: none;
    padding: 25px 70px;
    cursor: pointer;
}


/* 求職者の方ボタン専用スタイル */
.contact-btn-job-seeker {
    background-color: white;
    color: black;
}
.contact-btn-job-seeker:hover{
    background-color: black;
    color: white;
}

/* 企業のご担当の方ボタン専用スタイル */
.contact-btn-employer {
    background-color: black;
    color: white;
}

.contact-btn-employer:hover{
    background-color: white;
    color: black;
}



.footer-bottom{
    border-top: 0.5px solid rgb(188, 186, 186);
    width: 80%;
    margin: 0 auto;
    margin-top: 50px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
}

.copyright{
    color: rgb(188, 186, 186);
}


.policies {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px; /* 項目間のスペース */
  }
  .policy-item a {
    text-decoration: none;
    color: rgb(188, 186, 186);
  }
  .policy-item a:hover {
    color: rgb(219, 217, 217);
  }

/* スマホ用のスタイル */
@media (max-width: 768px) {
    footer {
        padding: 20px 0; /* パディングの調整 */
    }

    .footer-container {
        flex-direction: column; /* 縦並びに設定 */
    }

    .footer-right {
        justify-content: space-between; /* 要素間のスペースを調整 */
        width: 100%; /* 幅を100%に設定 */
    }

    .footer-left {
        order: 1; /* footer-leftを後に表示 */
        padding-left: 50px;
        margin-top: 30px;
    }

    .footer-logo img {
        width: 150px; /* 適切な幅に設定 */
        height: auto; /* 比率を保持 */
    }

    .footer-logo h1 {
        font-size: 20px; /* フォントサイズを調整 */
        margin-bottom: 15px; /* 下のマージンを調整 */
    }

    .footer-logo .highlight {
        font-size: 24px; /* フォントサイズを調整 */
        padding-left: 5px; /* パディングを調整 */
    }

    .footer-address p,
    .footer-phone p {
        font-size: 14px; /* フォントサイズを調整 */
    }

    .footer-sns .sns-link {
        font-size: 24px; /* アイコンのサイズを調整 */
        margin-right: 10px; /* 右のマージンを調整 */
    }

    .footer-nav-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3列に設定 */
        gap: 10px; /* 各項目の間隔を調整 */
        padding: 0; /* 余計なパディングを削除 */
        margin: 20px 0; /* 上下にマージンを設定 */
        justify-items: center; /* 各項目を中央揃え */
        width: 100%;
        margin: 0 auto;
    }

    .footer-nav-link {
        text-align: center; /* テキストを中央揃え */
        font-size: 11px; /* フォントサイズを調整 */
        padding: 5px 10px; /* パディングを調整 */
    }

    .footer-contact {
        gap: 30px; /* ボタン間のスペースを調整 */
        margin-top: 40px; /* 上のマージンを調整 */
    }

    .contact-btn {
        padding: 15px 30px; /* パディングを調整 */
        font-size: 14px; /* フォントサイズを調整 */
    }


    .footer-bottom{
        border-top: 0.5px solid rgb(188, 186, 186);
        width: 80%;
        margin: 0 auto;
        margin-top: 50px;
        padding-top: 30px;
        display: block;
        justify-content: space-between;
    }
    
    .copyright{
        color: rgb(188, 186, 186);
        padding-bottom: 20px;
    }
    
    .law-info{
    
    }
    
    .policies {
        list-style: none;
        padding: 0;
        margin: 0;
        display: block;
        gap: 20px; /* 項目間のスペース */
      }
      .policy-item{
        padding: 5px 0px;
      }

      .policy-item a {
        text-decoration: none;
        color: rgb(188, 186, 186);
      }
      .policy-item a:hover {
        color: rgb(219, 217, 217);
      }
}
