.main-visual {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    /* 背面に配置 */
}

.main-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画面いっぱいにトリミング */
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    filter: brightness(0.8);
}

#bg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.maintitle {
    position: absolute;
    left: 0%;
    color: #fff;
    font-weight: bold;
    bottom: 15px;
    padding: 20px;
}

.maintitle h1 {
    font-size: 110px;
}

.maintitle p {
    position: relative;
    color: #fff;
    font-size: 40px;
       background-image: linear-gradient(70deg, #3f88d7 0%, #4bf5de 100%);
    padding: 10px 20px;
    border-radius: 0px 50px 50px 0px;
    left: -20px;
}
@media (max-width: 1000px) {
    .maintitle h1 {
        font-size: 80px;
    }

    .maintitle p {
        font-size: 35px;
    }
}

@media (max-width: 670px) {
    .maintitle {
        bottom: 80px;
    }

    .maintitle h1 {
        font-size: 45px;
    }

    .maintitle p {
        font-size: 25px;
    }
}


.mainmenu {
    position: relative;
    background: #fff;
    margin-top: 100vh;
    padding-bottom: 100px;
}

.wave-main {
    position: absolute;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    fill: #7eb5ef;
    top: -100px;
    z-index: 1;
}

.wave-connect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background-image: linear-gradient(0deg, #ffffff 0%, #7eb5ef 100%);
}

/* 最新情報バー */
.news-bar {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 20px 16px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin: 50px 0;
    z-index: 2;
}

.news-bar .label {
    font-weight: bold;
    color: #d40000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

/* ニュースティッカー */
.news-ticker {
    overflow: hidden;
    flex: 1;
    display: flex;
}

@media (max-width: 600px) {

    .news-bar {
        padding: 10px;
    }

    .news-ticker {
        display: block;
    }

    .news-ticker .label {
        padding: 10px;
    }
}

.ticker-content {
    padding: 0 0 0 40px;
}

.ticker-content li {
    margin-bottom: 5px;
}

.product-card {
    flex: 1;
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    margin: 30px 0;
    max-width: 850px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.product-img img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .product-card {
        display: block;
    }

    .product-img img {
        height: 200px;
    }
}

.product-content {
    margin: auto;
    width: 100%;
    padding: 20px;
}

.product-content h4 {
    font-size: 30px;
    margin-bottom: 10px;
}

.product-content h3 {
    font-size: 20px;
    padding: 5px 10px;
    background-color: #3f88d7;
    border-radius: 5px;
    color: #fff;
}

.product-content p {
    font-size: 20px;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-image: linear-gradient(70deg, #ffb251 0%, #ff7600 100%);
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
}

.topics {
    position: relative;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 20px;
    background-image: linear-gradient(70deg, #ffb251 0%, #ff7600 100%);
    margin: 10px;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}


.main-block {
    position: relative;
    width: 80%;
    left: 10%;
}

@media (max-width: 1024px) {
    .main-block {
        position: relative;
        width: 90%;
        left: 5%;
    }
}

.menu-section {
    padding: 40px 5%;
    background: #f7f7f7;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 2rem;
}

@media (max-width: 1200px) {
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0px, 1fr));
    }
}

@media (max-width: 800px) {
    .menu-grid {
        grid-template-columns: repeat(1, minmax(0px, 1fr));
        gap: 3rem;
    }
}

.menu-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 6px 18px rgb(0 0 0 / 17%);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);
}

.menu-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-img::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8),
            /* 下部：濃い影 */
            rgba(0, 0, 0, 0)
            /* 上部：透明 */
        );
    pointer-events: none;
}

.menu-detail {
    position: relative;
    padding: 20px;
}

.menu-card:hover .menu-img img {
    transform: scale(1.08);
}

.menu-card h3 {
    font-size: 28px;
    font-weight: 600;
}

.menu-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.servicebtn {
    display: flex;
    justify-content: right;
    margin-top: 10px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
}

.servicebtn p {
    color: #fff;
    padding: 9px;
    font-weight: bold;
}

.s-arrow-circle {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #3f88d7;
    border-radius: 50%;
}

.s-arrow-top {
    position: absolute;
    width: 13px;
    height: 4px;
    background-color: #fff;
    transform: rotate(40deg);
    top: 15px;
}

.s-arrow-bottom {
    position: absolute;
    width: 13px;
    height: 4px;
    background-color: #fff;
    transform: rotate(-40deg);
    top: 21px;
}

.service,
.company,
.equipment,
.SDGs {
    position: relative;
    margin: 100px 0;
}

.recruit {
    position: relative;
    margin-top: 10%;
}

.company {
    position: relative;
}

.company-base {
    position: relative;
    top: 50px;
}

.companyimg {
    position: relative;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

.company img {
    position: relative;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
    width: 100%;
}

.companyimg img:hover {
    transform: scale(1.04);
}

.company-grid {
    display: grid;
    gap: 80px;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
}

@media (max-width: 1024px) {
    .company-grid {
        display: block;
    }
}


.menu-item {
    position: relative;
    display: block;
    width: 380px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ラベル（画像の上に文字を重ねる） */
.menu-label {
    position: relative;
    z-index: 2;
}

.company-title {
    display: block;
    font-size: 35px;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.companydesc {
    display: block;
    font-size: 15px;
    margin-top: 4px;
    opacity: 0.85;
}

.company-right,
.company-left {
    transition: 0.3s ease;
    transform: translate(0, 0) scale(1);
    text-decoration: none;
}

.company-right {
    position: relative;
    top: 40px;
}

.company-left {
    position: relative;
}

.equipment-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(2, minmax(0px, 1fr));
    }
}

/* カード本体 */
.equipment-card {
    position: relative;
    height: 200px;
    /* ← 高さ短め */
    overflow: hidden;
    border-radius: 10px;
}

/* 画像 */
.equipment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

/* ホバーでズーム */
.equipment-card:hover img {
    transform: scale(1.08);
}

/* テキスト帯 */
.equipment-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.6),
            rgba(0, 0, 0, 0));
    color: #fff;
}

/* タイトル */
.equipment-info h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

/* 説明文 */
.equipment-info p {
    margin: 2px 0 0;
    font-size: 12px;
    opacity: 0.85;
    color: #fff;
}

.equipmentmorebtn {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    text-decoration: none;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    backdrop-filter: blur(12px);
}

.sdgscard {
    position: relative;
}

.sdgsimg {
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
}

.sdgsimg img {
    position: relative;
    width: 100%;
    object-fit: cover;
    max-width: 650px;
    margin: 20px auto;
    display: flex;
}

.sdgsgrid {
    position: relative;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
}

@media (max-width: 1024px) {
    .sdgsgrid {
        grid-template-columns: repeat(1, minmax(0px, 1fr));
    }
}

.sdgscontent {
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 1px 1px 10px #00000026;
}

.sdgscontent h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.sdgscontent p {
    font-size: 0.95rem;
}

.recruit-container {
    position: relative;
}

.recruit-img {
    overflow: hidden;
    border-radius: 10px;
}

.recruit-img::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 40%;
    /* ← 影の高さを調整 */
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.45),
            /* 下部：濃い影 */
            rgba(0, 0, 0, 0)
            /* 上部：透明 */
        );
    pointer-events: none;
    border-radius: 10px;
}

.recruit-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: 0.4s;
}

.recruit-img img:hover {
    transform: scale(1.04);
}

.recruit-text {
    position: absolute;
    bottom: 25px;
    left: 20px;
    z-index: 1;
}

.recruit-title {
    font-size: 62px;
    color: #fff;
    font-weight: bold;
}

.recruit-detail {
    font-size: 17px;
    color: #fff;
}

/* --- CTAボタン --- */
.recruit-btn-block,
.sdgs-btn-block {
    position: relative;
    text-align: center;
}

.recruit-btn,
.sdgs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 24px;
    background: #3f88d7;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    transition: background .2s ease, transform .2s ease;
}

.recruit-btn:hover,
.sdgs-btn:hover {
    background: #004a94;
    transform: translateY(-2px);
}

/* --- 丸い矢印 --- */
.arrow-circle {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #005bac;
    border-radius: 50%;
}

.arrow-top {
    position: absolute;
    width: 13px;
    height: 4px;
    background-color: #3f88d7;
    transform: rotate(40deg);
    top: 15px;
}

.arrow-bottom {
    position: absolute;
    width: 13px;
    height: 4px;
    background-color: #3f88d7;
    transform: rotate(-40deg);
    top: 21px;
}

.circle-arrow {
    position: absolute;
    right: 7%;
    bottom: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    z-index: 2;
    background-color: #ffffff;
}

/* 白い矢印（→） */
.circle-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 45%;
    width: 30px;
    height: 30px;
    border-top: 8px solid #005fa3;
    border-right: 8px solid #005fa3;
    transform: translate(-50%, -50%) rotate(45deg);
}