@font-face {
    font-family: 'maka';
    src: url('fonts/maka.ttf') format('truetype');
    /* フォントのパスを指定 */
}

@font-face {
    font-family: 'NotoSerifJP';
    src: url('fonts/NotoSerifJP-Regular.ttf') format('truetype');
    /* フォントのパスを指定 */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 10px;
    /* より小さな文字サイズ */
}


/* ------------------☆背景設定☆------------------ */
.background-image {
    height: 100vh;
    /* ビューポートの高さいっぱいに広がるように設定 */
    overflow: hidden;
    /* 内容がはみ出たときに隠す */
}

.background-image img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像を全体にカバー */
    z-index: -1;
    /* コンテンツよりも背面に配置 */
}

/* ------------------☆背景設定☆------------------ */

/* ------------------☆ヘッダー設定☆------------------ */
@media (max-width: 700px) {
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0px;
        background-color: rgba(150, 150, 150, 0.8);
        /* 透明度を設定した背景色 */
        color: white;
        height: 5vh;
        /* ビューポートの5%の高さ */
        box-shadow: 0 4px 50px rgba(0, 0, 0, 0.1);
        /* 下に影をつける */
        position: fixed;
        /* スクロールしても固定 */
        top: 0;
        /* ページの上部に固定 */
        width: 100%;
        /* 横幅を画面いっぱいに設定 */
        max-width: 700px;
        /* 最大幅を600pxに制限 */
        left: 50%;
        /* 水平方向の中央に配置 */
        transform: translateX(-50%);
        /* 自身の幅の半分だけ左にずらして中央揃え */
        z-index: 5;
        /* 他の要素より前面に表示 */
    }

    .header-image {
        flex: 3;
        /* 左側の要素を全体の2/10 */
        justify-content: center;
        /* 子要素を水平方向に中央揃えにする */
        align-items: center;
        /* 子要素を垂直方向にも中央揃えにする */
        padding-left: 15px;
    }

    .header-image img {
        width: 100%;
        /* 親要素の幅の100%に設定 */
    }

    .header-nav-menu {
        flex: 7;
        /* 右側の要素を全体の8/10 */
        justify-content: center;
        /* 子要素を水平方向に中央揃えにする */
        padding: 0px 10px;
    }

    .header-nav-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-end;
        /* 子要素を水平方向に右寄せにする */
    }

    .header-nav-menu ul li {
        display: flex;
        /* フレックスボックスを使用 */
        justify-content: center;
        /* 水平方向に中央揃え */
        align-items: center;
        /* 垂直方向に中央揃え */
        padding: 0px 0px;
        /* 横のパディングはそのまま */
    }

    .header-nav-menu ul li h1 {
        margin: 0px 0px;
        font-size: 12px;
        text-align: center;
        /* テキストの中央揃え */
        white-space: nowrap;
        /* テキストの改行を防ぐ */
    }

    .header-nav-menu ul li h2 {
        margin: 0px 0px;
        font-size: 8px;
        color: #CCCCCC;
        font-family: 'maka', sans-serif;
        /* Makaフォントを適用 */
        text-align: center;
        /* テキストの中央揃え */
        white-space: nowrap;
        /* テキストの改行を防ぐ */
    }

    .header-nav-menu ul li a {
        text-decoration: none;
        color: white;
        padding: 5px 5px;
        transition: background-color 0.7s ease;
        /* 背景色と角丸の変化を0.3秒かけてスムーズに */
    }

    .header-nav-menu ul li a:hover {
        background-color: #555;
        border-radius: 5px;
    }

}

@media (min-width: 701px) {
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0px;
        background-color: rgba(150, 150, 150, 0.8);
        /* 透明度を設定した背景色 */
        color: white;
        box-shadow: 0 4px 50px rgba(0, 0, 0, 0.1);
        /* 下に影をつける */
        position: fixed;
        /* スクロールしても固定 */
        top: 0;
        /* ページの上部に固定 */
        width: 100%;
        /* 横幅を画面いっぱいに設定 */
        left: 50%;
        /* 水平方向の中央に配置 */
        transform: translateX(-50%);
        /* 自身の幅の半分だけ左にずらして中央揃え */
        z-index: 5;
        /* 他の要素より前面に表示 */
        max-height: 50px;
        /* 最大幅を500pxに制限 */
    }

    .header-image {
        flex: 3;
        /* 左側の要素を全体の2/10 */
        justify-content: center;
        /* 子要素を水平方向に中央揃えにする */
        align-items: center;
        /* 子要素を垂直方向にも中央揃えにする */
        padding-left: 15px;
    }

    .header-image img {
        width: 100%;
        /* 親要素の幅の100%に設定 */
        max-width: 200px;
        /* 最大幅を600pxに制限 */
        border-radius: 5px;
        /* 角丸 */
    }

    .header-logo h1 {
        margin: 0;
    }

    .header-nav-menu {
        flex: 7;
        /* 右側の要素を全体の8/10 */
        justify-content: center;
        /* 子要素を水平方向に中央揃えにする */
        padding: 0px 10px;
    }

    .header-nav-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-end;
        /* 子要素を水平方向に右寄せにする */
    }

    .header-nav-menu ul li {
        display: flex;
        /* フレックスボックスを使用 */
        justify-content: center;
        /* 水平方向に中央揃え */
        align-items: center;
        /* 垂直方向に中央揃え */
        padding: 0px 0px;
        /* 横のパディングはそのまま */
    }

    .header-nav-menu ul li h1 {
        margin: 0px 0px;
        font-size: 14px;
        text-align: center;
        /* テキストの中央揃え */
        white-space: nowrap;
        /* テキストの改行を防ぐ */
    }

    .header-nav-menu ul li h2 {
        margin: 0px 0px;
        font-size: 12px;
        color: #CCCCCC;
        font-family: 'maka', sans-serif;
        /* Makaフォントを適用 */
        text-align: center;
        /* テキストの中央揃え */
        white-space: nowrap;
        /* テキストの改行を防ぐ */
    }

    .header-nav-menu ul li a {
        text-decoration: none;
        color: white;
        padding: 5px 30px;
        transition: background-color 0.7s ease;
        /* 背景色と角丸の変化を0.3秒かけてスムーズに */
    }

    .header-nav-menu ul li a:hover {
        background-color: #555;
        border-radius: 5px;
    }

}

/* ------------------☆ヘッダー設定☆------------------ */



/* ------------------☆本体☆------------------ */
.mainpage {
    margin: 0px auto;
    /* 中央寄せするためのマージン */
    position: absolute;
    /* 要素を絶対位置に配置 */
    top: 0;
    /* 親要素の上端に合わせる */
    left: 50%;
    /* 親要素の中央に配置 */
    transform: translateX(-50%);
    /* 水平方向に中央に移動 */
    z-index: 1;
    /* ビデオより手前に配置 */
    text-align: center;
    /* 中央揃え */
    width: 100%;
    /* 親要素の幅の100%に設定 */
    color: black;
    /* 文字色を黒に設定 */
    background-color: rgba(244, 244, 244, 0.8);
    /* 透明度を設定した背景色 */
}

/* ------------------☆本体☆------------------ */


/* ------------------☆フッター☆------------------ */
footer {
    padding: 20px 0;
    /* 上下の余白 */
    text-align: center;
    /* テキスト中央寄せ */
    font-family: 'Noto Serif JP', sans-serif;
    color: #111;
}

.footer-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    /* 親要素に対して幅を最大化 */
}

.footer-company-info,
.footer-contact-info,
.footer-social,
.footer-logo {
    text-align: center;
    /* 各セクションのテキストを中央寄せ */
}

.footer-company-info p {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin: 2px 0 4px;
}

.footer-company-info .company-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 4px 0;
}

.footer-company-info .company-english-name {
    font-size: 12px;
    font-weight: normal;
    color: #666;
    margin: 0;
}

.footer-contact-info {
    margin: 10px 0;
}

.footer-contact-info p {
    margin: 0;
}

.footer-logo img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0;
}

.footer-contact-info a {
    text-decoration: none;
}

.footer-contact-info a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.footer-social img {
    width: 20px;
    height: auto;
}

.footer-copyright {
    padding: 10px 0;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 8px;
}

/* 画面幅700px以下でのスタイル */
@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}

/* 画面幅701px以上でのスタイル */
@media (min-width: 701px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        /* 子要素を左右幅に合わせて均等配置 */
        max-width: 1200px;
    }
}

/* ------------------☆フッター☆------------------ */



/* ------------------☆フェードイン機能☆------------------ */

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 3s ease-out, transform 3s ease-out;
    /* ← 3秒に変更 */
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ------------------☆フェードイン機能☆------------------ */






/* ------------------☆トップ画像☆------------------ */
@media (max-width: 700px) {
    .niyasaka-top-style-image {
        display: flex;
        /* フレックスボックスの設定を追加 */
        justify-content: center;
        /* 子要素を水平方向に中央揃えにする */
        align-items: center;
        /* 子要素を垂直方向にも中央揃えにする */
        padding: 0px 0px;
        width: 100%;
        /* 親要素の幅の80%に設定 */
        margin-top: 100px;
        /* 上に余白を追加 */
    }

    .niyasaka-top-style-image img {
        width: 100%;
        height: auto;
        /* 高さは自動調整 */
        border-radius: 5px;
        /* 角丸 */
    }
}

@media (min-width: 701px) {
    .niyasaka-top-style-image {
        display: flex;
        /* フレックスボックスの設定を追加 */
        justify-content: center;
        /* 子要素を水平方向に中央揃えにする */
        align-items: center;
        /* 子要素を垂直方向にも中央揃えにする */
        width: 100%;
        /* 親要素の幅の80%に設定 */
        max-width: 300px;
        /* 最大幅を600pxに制限 */
        margin-top: 100px;
        /* 上に余白を追加 */
    }

    .niyasaka-top-style-image img {
        width: 100%;
        height: auto;
        /* 高さは自動調整 */
        border-radius: 5px;
        /* 角丸 */
    }
}

/* ------------------☆トップ画像☆------------------ */


/* ------------------☆採用トップ画像☆------------------ */
.recruitment-top-image {
    max-width: 1200px;
    /* 他のセクションと同じ幅 */
    margin: 0 auto;
    /* 中央寄せ */
    text-align: center;
}

.recruitment-top-image img {
    width: 100%;
    /* 画面幅いっぱい */
    height: auto;
    /* 縦横比を保持 */
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    /* 中央寄せ */
}

/* ------------------☆採用トップ画像☆------------------ */





/* ------------------☆求人情報☆------------------ */

/* グリッドレイアウトの設定 */
.recruitment {
    display: block;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.recruitment h1 {
    text-align: left;
}

/* 動的生成用コンテナ */
#recruitment-blocks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 各ブロックのスタイル */
.recruitment-block {
    background-color: #EFEFEF;
    /* グレーの背景色 */
    padding: 20px;
    /* 内側の余白 */
    border-radius: 10px;
    /* 角丸をつける */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* 軽い影を追加して立体感 */
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

.recruitment-block-image {
    width: 100%;
    /* 親要素の幅の80%に設定 */
    max-width: 300px;
    /* 最大幅を600pxに制限 */
    margin: 0px 0px;
}

.recruitment-block-image img {
    width: 30%;
    height: auto;
    /* 高さは自動調整 */
    border-radius: 5px;
    /* 角丸 */
}

/* 見出しスタイル */
.recruitment h2 {
    color: #333;
    font-size: 24px;
    margin-top: 10px;
    /* 上の余白は10px */
    margin-bottom: 0;
    /* 下の余白を0に設定 */
}

/* テキストスタイル */
.recruitment p {
    color: #333;
    font-size: 12px;
    margin: 5px 0;
}

/* リストスタイル */
.recruitment ul {
    list-style-type: none;
    padding: 0;
}

.recruitment ul li {
    margin-bottom: 5px;
}

/* ------------------☆求人情報☆------------------ */



/* ------------------☆社員インタビュー☆------------------ */


@media (max-width: 700px) {
    .interview {
        padding: 20px;
        margin: 20px auto;
        /* 自動マージンで中央寄せ */
        max-width: 1200px;
        /* YouTubeセクションと同じ幅 */
        background-color: #f9f9f9;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        font-family: 'NotoSerifJP', sans-serif;
        font-size: 10px;
    }

    .interview-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* 横に3つのカラム */
        gap: 10px;
        /* 各要素の間に余白 */
        max-width: 100%;
        /* グリッド全体がはみ出さないようにする */
        box-sizing: border-box;
        /* パディングを含めて要素のサイズを計算 */
        margin: 0 auto;
        /* グリッドを中央寄せ */
        margin-bottom: 10px;
    }

    .interview h2 {
        font-size: 20px;
    }

    .interview h4 {
        font-size: 8px;
        font-family: 'Roboto', sans-serif;
    }
}

@media (min-width: 701px) {
    .interview {
        padding: 20px;
        margin: 20px auto;
        /* 自動マージンで中央寄せ */
        max-width: 1200px;
        /* YouTubeセクションと同じ幅 */
        background-color: #f9f9f9;
        border-radius: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        font-family: 'NotoSerifJP', sans-serif;
        font-size: 10px;
    }

    .interview-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        /* 横に3つのカラム */
        gap: 10px;
        /* 各要素の間に余白 */
        max-width: 100%;
        /* グリッド全体がはみ出さないようにする */
        box-sizing: border-box;
        /* パディングを含めて要素のサイズを計算 */
        margin: 0 auto;
        /* グリッドを中央寄せ */
        margin-bottom: 10px;
    }

    .interview h2 {
        font-size: 20px;
    }

    .interview h4 {
        font-size: 8px;
        font-family: 'Roboto', sans-serif;
    }
}

.interview-image {
    display: flex;
    /* フレックスボックスの設定を追加 */
    justify-content: center;
    /* 子要素を水平方向に中央揃えにする */
    align-items: center;
    /* 子要素を垂直方向にも中央揃えにする */
    width: 100%;
    /* 親要素の幅の80%に設定 */
    max-width: 300px;
    /* 最大幅を600pxに制限 */
    margin: 10px 10px;
}

.interview-image img {
    width: 100%;
    height: auto;
    /* 高さは自動調整 */
    border-radius: 5px;
    /* 角丸 */
}

.interview-block {
    padding: 10px 0px;
    background-color: #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    /* パディング込みのサイズにする */
}

.interview-photo {
    width: 100%;
    /* 親要素に対して画像の幅を100%に */
    aspect-ratio: 1 / 1;
    /* 正方形に維持 */
    object-fit: cover;
    /* 画像のトリミング */
    border-radius: 50%;
    /* 丸型にする */
    margin-bottom: 4px;
}

.interview-name {
    font-size: 20px;
    margin: 4px 0px;
}

.interview-role,
.interview-year {
    font-size: 12px;
    margin: 4px 0px;
}

.interview-comment {
    margin: 4px 0px;
    font-size: 8px;
}

/* インタビューページへのリンク */
.interview-link {
    display: inline-block;
    /* リンクをブロック化 */
    padding: 10px 15px;
    /* 内側の余白 */
    background-color: #6c757d;
    /* グレーの背景色 */
    color: #fff;
    /* テキストカラー */
    text-decoration: none;
    /* アンダーラインを削除 */
    border-radius: 4px;
    /* 角を丸める */
    margin-top: 10px;
    /* 上の余白 */
    font-weight: bold;
    /* 太字にする */
    transition: background-color 0.3s;
    /* ホバー時の色変化をスムーズに */
}

.interview-link:hover {
    background-color: #5a6268;
    /* ホバー時の暗いグレー */
}

/* ------------------☆社員インタビュー☆------------------ */






/* ------------------☆YouTubeセクション☆------------------ */
.youtube-section {
    position: relative;
    /* 擬似要素を重ねるため */
    padding: 20px;
    margin: 40px auto;
    max-width: 1200px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'NotoSerifJP', sans-serif;
    text-align: center;
    overflow: hidden;
    /* 擬似要素がはみ出さないように */
}

/* 背景画像（半透明） */
.youtube-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("images/youtube-background.png") center/cover no-repeat;
    opacity: 0.5;
    /* 透明度50% */
    z-index: 0;
}

/* 中のコンテンツは前面に */
.youtube-section * {
    position: relative;
    z-index: 1;
}

/* 見出しや本文 */
.youtube-section h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.youtube-section p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* --- PC表示: 3列固定 --- */
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 各ブロック */
.youtube-block {
    background: rgba(255, 255, 255, 0.7);
    /* 白を70%透過に変更 */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(4px);
    /* 背景をぼかすとより見やすい */
}

/* iframeを16:9で維持 */
.youtube-block iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 5px;
    display: block;
}

/* タイトルを動画の下に */
.youtube-block h2 {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 0;
    color: #222;
    line-height: 1.4;
}


/* --- スマホ表示: 1列 --- */
@media (max-width: 700px) {
    .youtube-grid {
        grid-template-columns: 1fr;
    }
}

/* --- タブレット表示: 2列 --- */
@media (min-width: 701px) and (max-width: 1024px) {
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 背景なしバージョン */
.youtube-block.no-bg {
    background: none !important;
    /* 背景を完全に透明に */
    box-shadow: none !important;
    /* 影を削除 */
    padding: 0 !important;
    /* 内側の余白もリセット */
}

/* 静止画像のスタイル */
.youtube-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

/* ------------------☆YouTubeセクション☆------------------ */




/* ------------------☆Instagramセクション☆------------------ */
.instagram-section {
    padding: 20px;
    margin: 40px auto;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.5);
    /* 白・透明度50% */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Noto Serif JP', sans-serif;
    text-align: center;
    overflow-x: hidden;
    /* 横スクロールを抑制 */
}

/* 見出し */
.instagram-section h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.instagram-section p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

/* グリッドレイアウト */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* PC: 3列 */
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 各投稿ブロック */
.instagram-block {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(4px);
    overflow: hidden;
    /* 内部要素がはみ出さないように */
}

/* 埋め込み調整 */
.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    /* Instagramのデフォルトmin-widthを無効化 */
    margin: 0 auto !important;
    box-sizing: border-box;
}

/* キャプション */
.insta-caption {
    margin-top: 10px;
    font-size: 12px;
    color: #222;
    line-height: 1.5;
    text-align: left;
}

/* --- スマホ表示: 1列（スライドショー風） --- */
@media (max-width: 700px) {
    .instagram-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        /* 余白を小さめに */
        padding: 0 6px;
        /* 左右のパディングも減らす */
    }

    .instagram-block {
        flex: 0 0 40%;
        /* カードを40%幅に */
        max-width: 200px;
        /* お好みで最大幅制限 */
        scroll-snap-align: center;
        box-sizing: border-box;
        padding: 4px;
        /* 内側の余白を極限まで削る */
    }

    .instagram-media {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        /* 余白ゼロで枠いっぱいに */
    }

    .insta-caption {
        font-size: 10px;
        /* キャプションは小さく */
        margin-top: 4px;
        /* 埋め込みとの間隔も最小限 */
        line-height: 1.3;
    }
}



/* --- タブレット表示: 2列 --- */
@media (min-width: 701px) and (max-width: 1024px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------------☆Instagramセクション☆------------------ */



















/* ☆☆☆☆☆☆☆☆☆☆☆☆スマホ版☆☆☆☆☆☆☆☆☆☆☆☆ */
@media (max-width: 700px) {}

/* ☆☆☆☆☆☆☆☆☆☆☆☆スマホ版☆☆☆☆☆☆☆☆☆☆☆☆ */





/* ☆☆☆☆☆☆☆☆☆☆☆☆PC☆☆☆☆☆☆☆☆☆☆☆☆ */
@media (min-width: 701px) {}

/* ☆☆☆☆☆☆☆☆☆☆☆☆PC☆☆☆☆☆☆☆☆☆☆☆☆ */