/* すべてのページに適用される設定 */

html {
    font-size: 16px;
    font-family: sans-serif;
}

* {
    box-sizing: border-box;
    color: #0f172a;
}

body {
    margin: 0;
}


a {
    text-decoration: none;
}

p,
li,
td {
    line-height: 1.5;
}

img {
    max-width: 100%;
    vertical-align: top;
}

.hero {
    max-width: 1100px;
    margin: 88px auto 0;
}



/* すべてのページに適用　ヘッダー */

.header {
    max-width: 1100px;
    margin: 30px auto 15px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
}

.nav-list {
    position: fixed;
    top: 85px;
    right: 0;
    left: 0;
    width: 100%;
    background-color: rgba(247, 247, 247, 0.5);
    z-index: 20;
    display: flex;
    justify-content: center;
    transition: top 0.3s ease;
}

.nav-list.is-fixed {
    top: 0;
}

.nav {
    list-style: none;
    font-size: 25px;
    display: flex;
    gap: 60px;
}

.nav a {
    position: relative;
}

/* 下線のスタイル */
.nav a::after {
    background-color: #333;
    /* 下線の色 */
    bottom: -4px;
    /* 要素の下端からの距離 */
    content: "";
    /* 要素に内容を追加 */
    height: 2px;
    /* 下線の高さ */
    left: 0;
    /* 要素の左端からの距離 */
    position: absolute;
    /* 絶対位置指定 */
    transform: scale(0, 1);
    /* 下線を横方向に0倍、縦方向に1倍に変形（非表示） */
    transform-origin: center top;
    /* 変形の原点を中央上に指定 */
    transition: transform .3s;
    /* 変形をアニメーション化 */
    width: 100%;
    /* 要素の幅 */
}

/* リンクにホバーした際の下線の表示 */
.nav a:hover::after {
    transform: scale(1, 1);
    /* 下線を横方向に1倍、縦方向に1倍に変形（表示） */
}

.header-button {
    display: flex;
    gap: 10px;
}

.button-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    margin: 0 auto;
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgb(0 0 0 / 25%), 0 2px 3px -2px rgb(0 0 0 / 15%);
    background-color: #ff9500;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-1:hover {
    background-color: #ef8500;
    transform: translateY(-2px);
    /* 上に5px持ち上げる */
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.15);
    /* 影を濃く・広くして立体感を出す */
}

.button-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    margin: 0 auto;
    padding: .9em 2em;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgb(0 0 0 / 25%), 0 2px 3px -2px rgb(0 0 0 / 15%);
    background-color: #3d2db9;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-2:hover {
    background-color: #2d1da9;
    transform: translateY(-2px);
    /* 上に5px持ち上げる */
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.15);
    /* 影を濃く・広くして立体感を出す */
}


/* --- TOPへ戻るボタン（丸型・矢印付き） --- */
.pagetop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

/* 矢印（CSSのボーダーで作る簡易矢印） */
.pagetop::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(-45deg);
    margin-top: 4px;
}

/* --- ハンバーガーメニュー基本スタイル --- */
.hamburger {
    display: none;
    /* PCでは非表示 */
}

/* すべてのページに適用　メイン */

main {
    max-width: 1100px;
    margin: 0 auto;
}

/* すべてのページに適用　フッター */

.footer {
    background-color: #191970;
}

.footer-container {
    padding: 20px 0;
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 15px;
    max-width: 1100px;
    margin: 0 auto;
}

.footer h4,
.footer p {
    color: #fff;
}

.footer p {
    font-size: 14px;
    margin: 0;
    padding-top: 20px;
}

.copy {
    padding-bottom: 50px;
    opacity: 0.8;
}

.footer-logo {
    margin-right: 20px;
}

.footer ul {
    padding: 0;
}

.footer li {
    list-style: none;
}

.footer span {
    color: #fff;
    opacity: 0.8;
    font-size: 12px;
}

.copy {
    max-width: 1100px;
    margin: 0 auto;
}

/* 個別のスタイル */

/* index.html */


.hero.index {
    background-image: linear-gradient(to right,
            #fff 0%,
            /* 左端は完全に黒 */
            transparent 20%,
            /* 左から20%の位置で透明（画像が見える） */
            transparent 80%,
            /* 右から20%の位置まで透明を維持 */
            #fff 100%
            /* 右端は完全に黒 */
        ), url(../images/main1.png);
    width: 100%;
    background-repeat: no-repeat;
    height: 80vh;
    background-size: contain;
}

/* 白い発光感を出すシャドウ（暗い色の文字用） */
.hero-title {
    padding-top: 90px;
    color: #515151;
    /* メインカラー */
    text-shadow:
        0 0 15px rgba(255, 255, 255, 0.9),
        0 0 30px rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.15);
    /* ほんのり全体の引き締め */
}

/* サブテキストのスタイル調整 */
.hero-doc {
    color: #2d3f58;
    /* 少し濃いめのスレートグレー */
    font-size: 15px;
    font-weight: 600;
    /* 少し太字にして視認性をアップ */
    line-height: 1.7;

    /* 幅を絞って左側の棚エリアに収める */
    max-width: 260px;
    /* 人物の頭にかかる手前で折り返す */
    text-align: left;
    /* 左揃え */
    margin-top: 16px;

    /* ほんのり文字の周りに白いぼかし影を入れて浮き立たせる */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.9);
}


.card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 50px;
    position: relative;
    z-index: 10;
    margin-top: -150px;
    margin-bottom: 50px;
}



.card-access {
    padding: 25px;
    background: #fff;
    border: 1px solid #cbcbcb;
    border-radius: 12px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.tag-job span {
    background-color: #fcdeb4;
    color: #ff9500;
    padding: 5px;
    border-radius: 5px;
}

.tag-job a {
    background-color: #ff9500;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.tag-biz span {
    background-color: #c3bbff;
    color: #3d2db9;
    padding: 5px;
    border-radius: 5px;
}

.tag-biz a {
    background-color: #3d2db9;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

.button {
    display: flex;
    justify-content: center;
}

#company table {
    border-collapse: collapse;
}

#company th,
td {
    border: solid 1px #333;
    padding: 20px;

}

.section-header {
    text-align: center;

    h2 {
        margin-top: 5px;
    }

    &.s {
        background-color: #e6f4ff;
        margin: 0 0 30px;
        padding: 15px 0;
        border-radius: 10px;
    }
}

section {
    margin-top: 60px;
}

.s-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.card.service {
    border: solid 0.5px #c4c3c3;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
}

.card.service p {
    margin: 20px;
}

.services a p {
    text-align: center;
    font-weight: 600;
    color: #412dd6;
    margin-top: 40px;
}

.n-container {
    text-align: center;
    margin: 100px auto 0;
}

.news-item {
    display: grid;
    grid-template-columns: 1fr 1fr 3fr;
    padding: 10px;
    border-bottom: solid 1px #4a4a4a;
    margin: 15px 20px;
}

.news-category {
    border: #e2e0e0;
    background-color: #e2e0e0;
}

.news-title {
    text-align: left;
    padding-left: 15px;
}

.company table {
    margin: 30px auto;
}

.company a p {
    text-align: center;
    font-weight: 600;
    color: #412dd6;
    margin-bottom: 60px;
}

/* services.html */

.hero.service {
    background-image: linear-gradient(to right,
            #fff 0%,
            /* 左端は完全に黒 */
            transparent 20%,
            /* 左から20%の位置で透明（画像が見える） */
            transparent 80%,
            /* 右から20%の位置まで透明を維持 */
            #fff 100%
            /* 右端は完全に黒 */
        ), url(../images/main3.png);
    width: 100%;
    background-repeat: no-repeat;
    height: 60vh;
    background-size: cover;
}

.service h2 {
    margin: 20px 0 20px 20px;
}

.service h3,
.service p {
    margin: 30px 0 30px 50px;
}

.ser-doc {
    margin: 20px 0 20px 20px;
}


/* バナー全体の外枠設定 */
.banner-service {

    display: block;
    position: relative;
    width: 100%;
    max-width: 700px;
    /* バナーの横幅 */
    height: 150px;
    /* バナーの高さ */
    border-radius: 12px;
    overflow: hidden;
    /* 角丸からはみ出る部分をカット */

    background-image: url(../images/item1.jpg);
    max-width: 700px;
    text-align: right;
    margin: 50px auto;
    padding: 25px 65px 25px 0;


    background-size: cover;
    background-position: center;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 透過オーバーレイ（擬似要素） */
.banner-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(255, 255, 255, 0.2);

    transition: background-color 0.3s ease;
    z-index: 1;
}

/* テキストコンテンツ（オーバーレイより上にする） */
.banner-service p {
    position: relative;
    z-index: 2;
    /* オーバーレイ(z-index: 1)の上に配置 */
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    opacity: 0.9;
    color: #fff;
}

/* ホバー（マウスオーバー）時の動き */
.banner-service:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.banner-service:hover::before {
    /* ホバー時に少しオーバーレイを濃くして文字を強調 */
    background-color: rgba(255, 255, 255, 0.4);
}


/* news.html */

#year {
    text-align: left;
    padding-left: 30px;
}

#news {
    margin-left: 80px;
    margin-bottom: 100px;

    .news-item {
        display: flex;
        gap: 20px;
        border: none;
        padding: 10px;

        p {
            margin: 0;
            padding: 3px;
        }
    }

    .news-title {
        border-bottom: solid 1px #4a4a4a;
        margin: 10px auto 40px;
        padding-left: 40px;
    }
}



/* company.html */
.hero.company {
    background-image: linear-gradient(to right,
            #fff 0%,
            /* 左端は完全に黒 */
            transparent 20%,
            /* 左から20%の位置で透明（画像が見える） */
            transparent 80%,
            /* 右から20%の位置まで透明を維持 */
            #fff 100%
            /* 右端は完全に黒 */
        ), url(../images/item3.png);
    width: 100%;
    background-repeat: no-repeat;
    height: 60vh;
    background-size: cover;
}

.vision {
    max-width: 700px;
    /* 横幅を絞る */
    margin: 0 auto;
    /* ブロックを画面中央に配置 */
    padding: 0 20px;
}



/* 段落テキスト（文章は左揃えで読みやすく） */
.vision p {
    text-align: left;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* イラストを中央に配置 */
.vision .illust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

/* リスト領域の調整 */
.vision ol {
    padding-left: 20px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.vision ol li {
    margin-bottom: 12px;
    line-height: 1.6;
}


/* recruit.html */

.hero.recruit {
    background-image: linear-gradient(to right,
            #fff 0%,
            /* 左端は完全に黒 */
            transparent 20%,
            /* 左から20%の位置で透明（画像が見える） */
            transparent 80%,
            /* 右から20%の位置まで透明を維持 */
            #fff 100%
            /* 右端は完全に黒 */
        ), url(../images/main2.png);
    width: 100%;
    background-repeat: no-repeat;
    height: 60vh;
    background-size: cover;
}

.recruit.main {
    padding: 0 40px;
}

.recruit p,
.recruit h4 {
    margin: 40px 0;
    padding-left: 25px;
}

/* バナー全体の外枠設定 */
.banner-recruit {

    display: block;
    position: relative;
    width: 100%;
    max-width: 700px;
    /* バナーの横幅 */
    height: 150px;
    /* バナーの高さ */
    border-radius: 12px;
    overflow: hidden;
    /* 角丸からはみ出る部分をカット */

    background-image: url(../images/item2.jpg);
    max-width: 700px;
    text-align: right;
    margin: 50px auto;
    padding: 25px 65px 25px 0;


    background-size: cover;
    background-position: center;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 透過オーバーレイ（擬似要素） */
.banner-recruit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-color: rgba(255, 255, 255, 0.2);

    transition: background-color 0.3s ease;
    z-index: 1;
}

/* テキストコンテンツ（オーバーレイより上にする） */
.banner-recruit p {
    position: relative;
    z-index: 2;
    /* オーバーレイ(z-index: 1)の上に配置 */
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    opacity: 0.9;
    color: #141414;
}

/* ホバー（マウスオーバー）時の動き */
.banner-recruit:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.banner-recruit:hover::before {
    /* ホバー時に少しオーバーレイを濃くして文字を強調 */
    background-color: rgba(255, 255, 255, 0.4);
}

/* contact.html */

.contact {
    margin: 40px auto 0;
    padding: 60px 0 0;
}


.contact-doc {
    margin-bottom: 15px;

    span {
        color: #ec2121;
    }
}

.contact-form {
    margin-bottom: 50px;
}

.contact-table {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.contact-item,
.contact-body {
    padding: 20px;
    border: 1px solid #ccc;
}

.contact-item {
    text-align: left;
    width: 30%;
    background-color: #eee;
}

.contact-body {
    width: 70%;
}

.form-text {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    max-width: 400px;
}

.contact-sex+.contact-sex {
    margin-left: 10px;
}

.contact-sex-txt {
    display: inline-block;
    margin-left: 5px;
}

.form-select {
    width: 180px;
    height: 40px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-skill {
    display: block;
}

.contact-skill+.contact-skill {
    margin-top: 10px;
}

.contact-skill-txt {
    display: inline-block;
    margin-left: 5px;
}

.form-textarea {
    width: 100%;
    padding: 10px;
    height: 200px;
    border-radius: 5px;
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contact-submit {
    width: 250px;
    background-color: #333;
    color: #fff;
    font-weight: bold;
    display: block;
    margin: 0 auto;
    font-size: 16px;
    padding: 15px;
    border-radius: 100vh;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* --- メインコンテンツのスマホ調整 --- */
@media screen and (max-width: 600px) {

    .main,
    .header,
    .hero {
        padding: 5%;
    }

    .header {
        margin: 0;
    }

    .header-inner {
        display: block;
    }

    .logo {
        margin-bottom: 10px;
    }

    .hero {
        margin: 0;
    }

    .hero.index {
        height: 56vh;
    }

    .hero-doc {
        margin-bottom: 0;
        max-width: 100%;
        text-align: center;
        /* スマホでは中央揃えに戻す */
    }

    .card-container {
        display: block;
        margin: 10px;
        padding: 0;
    }

    .card-access {
        margin: 10px;
    }

    .services {
        margin: 0;
    }

    .s-container {
        display: block;
        .card.service {
            margin: 10px;
        }
    }

    .news-item {
        display: block;
    }

    .vision .illust {
        display: block;
        text-align: center;
    }

    .illust img {
        margin: 10px;
    }

    #year {
        margin: 0;
    }

    .contact {
        margin: 0;
        padding: 0;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 200;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: #333;
        transition: all 0.3s ease;
    }

    /* ハンバーガー開閉アニメーション */
    .hamburger.is-active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    /* スマホ用ナビゲーション */
    .nav-list {
        position: fixed;
        top: 0;
        left: auto;
        /* PC用の left:0 を上書き */
        right: -100%;
        /* 初期状態は画面右外に隠す */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        transition: right 0.3s ease;
        z-index: 150;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-list.is-active {
        right: 0;
        /* メニュー開閉時に画面内へスライド */
    }

    /* スマホ表示時のメニューの縦並び化 */
    .nav-list .nav {
        flex-direction: column;
        gap: 20px;
        padding: 0;
        text-align: center;
    }

    .footer {
        padding: 5%;
    }
}