/* ベーススタイル */
body {
    font-family: Arial, sans-serif;
    background-color: #f6f6f6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロール防止 */
}

/* ヘッダーの基本スタイル */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    background-color: transparent; /* 初期状態は透明 */
}

/* スクロール時の背景色変更 */
#header.header-scrolled {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ロゴのアニメーション */
#logo {
    height: 40px;
    transition: all 0.3s ease;
}

/* PCナビゲーションメニュー（768px以上） */
@media (min-width: 768px) {
    #header nav ul {
        display: flex; /* ナビゲーションを表示 */
        list-style: none;
        margin: 0;
        padding: 0;
        margin-right: 100px;
    }

    #header nav ul li {
        margin-left: 20px;
    }

    #header nav ul li a {
        text-decoration: none;
        color: #fff; /* 初期のリンク色は白 */
        font-weight: bold;
        transition: color 0.3s ease;
    }

    /* スクロール後のリンク色 */
    #header.header-scrolled nav ul li a {
        color: #333;
    }
}

/* ハンバーガーメニューの基本スタイル */
.hamburger {
    display: none; /* PCでは非表示 */
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger div {
    background-color: #fff;
    height: 3px;
    width: 100%;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ハンバーガーメニューのアクティブ状態 */
.hamburger.active div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* モバイルナビゲーション（768px以下） */
@media (max-width: 768px) {
    #header {
        padding: 10px 20px;
    }

    #logo {
        height: 35px;
        transition: all 0.3s ease;
    }

    .hamburger {
        display: flex; /* モバイルでハンバーガーアイコンを表示 */
    }

    nav ul {
        display: none; /* 初期状態では非表示 */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* 黒背景 */
        justify-content: center; /* 中央揃え */
        align-items: center; /* 垂直方向も中央揃え */
        list-style: none; /* リストスタイルを削除 */
        margin: 0;
        padding: 0;
        z-index: 1000;
    }

    /* アクティブ状態で全画面表示 */
    nav.active ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9); /* 背景を黒くする */
        padding: 0;
        margin: 0;
        list-style: none;
    }

    nav ul li {
        margin: 20px 0; /* 各項目の間に余白 */
    }

    nav ul li a {
        color: white; /* 文字色を白に設定 */
        font-size: 24px; /* フォントサイズを大きく */
        text-decoration: none; /* 下線を削除 */
        text-align: center; /* テキストを中央揃え */
        width: 100%; /* リンクを全幅に設定 */
    }

    nav ul li a:hover {
        color: #ff6e6e; /* ホバー時の色変更 */
    }
}


/* トップページのスライドショー */
.hero {
    position: relative;
    width: 100%;
    height: 100%; /* トップページでは全画面表示 */
    overflow: hidden; /* スライドショー領域の外にはみ出さないようにする */
}

.slideshow-container {
    width: 100%;
    height: 100%; /* 親要素（hero）の高さにフィット */
    position: relative;
    overflow: hidden; /* 画像がはみ出さないようにする */
}

.slideshow-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠内にフィットさせ、被らないようにする */
    object-position: center; /* 画像の中央部分を表示 */
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-title .title-en {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-title .title-jp {
    font-size: 24px;
}

/* トップページ以外のスライドショー */
body:not(.home) .hero {
    height: 50vh; /* 高さを半分に */
    overflow: hidden; /* はみ出し防止 */
}

body:not(.home) .slideshow-container img {
    object-fit: cover; /* 画像が切り抜かれてフィットするように */
    object-position: center; /* 画像の中央部分を表示 */
}

body:not(.home) .hero-title .title-en {
    font-size: 32px; /* タイトルサイズを小さく */
}

body:not(.home) .hero-title .title-jp {
    font-size: 16px;
}




/* セクションタイトル */
.section-title{
    font-size: 40px;
    color:#ff5757;
}

.section-title span{
    font-size: 15px;
    margin-left: 10px;
    color:#000;
}

/* ニュースセクション */
.news ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: #f5f5f5;
}

.date {
    font-size: 14px;
    color: #666;
    flex: 0 0 100px; /* 日付の幅を固定 */
}

.category {
    font-size: 12px;
    color: #333;
    border: 1px solid #333;
    padding: 2px 8px;
    margin-right: 20px;
    flex: 0 0 80px; /* カテゴリの幅を固定 */
    text-align: center;
}

.title {
    font-size: 16px;
    color: #333;
    flex: 1;
}

.arrow-icon {
    font-size: 16px; /* 矢印を細く、小さめに調整 */
    color: #003366;
    flex: 0 0 20px;
    text-align: right;
}

.news-item:hover .arrow-icon {
    color: #00509e;
}


/* フッターのスタイル */
footer {
    background-color: white;
    padding: 40px 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

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

.footer-left, .footer-right {
    flex: 1;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.footer-links li a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    justify-content: space-around;
}

.footer-section {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.footer-section li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.social-links a {
    color: #333;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
}

.social-links a img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.social-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        margin-top: 20px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .social-links {
        margin-top: 10px;
    }
}


main {
    padding: 20px;
    min-height: 80vh;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news {
    background: white;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.works {
    background: white;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.work-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* 枠外に画像が出ないようにする */
    position: relative;
}

.work-item .image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9の比率を維持 */
    overflow: hidden; /* 画像が枠を超えて表示されないようにする */
    position: relative;
}

.work-item:hover .work-image {
    transform: scale(1.1); /* 画像をズーム */
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に収めてズーム */
    transition: transform 0.5s ease; /* ズーム効果をスムーズに */
}

.work-content {
    padding: 15px;
    text-align: left;
}

.work-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.work-content p {
    font-size: 14px;
    color: #666;
}

.work-item a {
    text-decoration: none;
    color: inherit;
}


/* 初期状態で非表示にするクラス */
.hidden {
    display: none;
}

/* View Moreボタン */
.view-more {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #1e1e2e;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.view-more:hover {
    background-color: #333;
}

/* プレスリリースページ */
.news-detail {
    padding: 40px 20px;
    background-color: white;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.news-date {
    margin-right: 20px;
}

.news-tags .tag {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 12px;
}

.news-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #333;
}

.news-image {
    margin-bottom: 30px;
    text-align: center;
}

.news-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.news-content p {
    margin-bottom: 20px;
}


/* 会社概要 */
.about {
    background: white;
    padding: 40px 20px;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.about-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
    color: #666;
}

.vision-mission, .history, .company-info {
    margin-bottom: 40px;
}

.vision-mission h3, .history h3, .company-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.vision-mission p, .history ul, .company-info ul {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.history ul, .company-info ul {
    list-style: none;
    padding: 0;
}

.history ul li, .company-info ul li {
    margin-bottom: 10px;
}

.history ul li strong, .company-info ul li strong {
    color: #333;
}

.map {
    text-align: center;
    margin-top: 40px;
}

.map iframe {
    width: 100%;
    max-width: 600px;
    height: 450px;
    border: none;
    margin: 0 auto;
}

/* サービス */
.services {
    background-color: white;
    padding: 40px 20px;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.02); /* ホバー時に少し拡大 */
}

.service-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.service-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.service-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-image {
        margin: 0 0 20px 0;
    }
}


/* お問い合わせフォーム */
.contact {
    background: white;
    padding: 40px 20px;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 24px;
    color: #333;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00509e;
}

.submit-btn {
    background-color: #1e1e2e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #333;
}

.company-field {
    display: none;
}

/* 採用情報 */
.recruit {
    background-color: white;
    padding: 40px 20px;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.recruit h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.recruit-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    transition: transform 0.3s ease;
}

.recruit-item:hover {
    transform: scale(1.02); /* ホバー時に少し拡大 */
}

.recruit-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.recruit-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}

.recruit-content {
    flex: 1;
}

.recruit-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.recruit-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

@media (max-width: 768px) {
    .recruit-item {
        flex-direction: column;
        text-align: center;
    }

    .recruit-image {
        margin: 0 0 20px 0;
    }
}


/* スライダー */
.slider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 5));
    }
}

button {
    background-color: #1e1e2e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-image 0.3s;
    font-weight: bold;
}

button:hover {
    background-image: linear-gradient(90deg, #2f2f34, rgb(204, 204, 204), #2f2f34);
    color:#272727;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        background-color: #000;
    }

    .hamburger {
        display: flex;
    }

    nav.active ul {
        display: flex;
    }

    nav ul {
        display: none;
    }
}
