/* style.css (最終修正版) */

/* --- 基本設定 & 変数 --- */
:root {
    --color-primary: #0F5E64;
    --color-secondary: #0B2B3D;
    --color-text: #333333;
    --color-bg: #ffffff;
    --color-bg-light: #f7f9fc;
    --font-base: 'Noto Sans JP', 'Roboto', sans-serif;
    --header-height: 80px;
}

/* --- リセット & 全体スタイル --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Roboto', sans-serif;
    color: var(--color-secondary);
    letter-spacing: 2px;
}

.section-title span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-top: 8px;
    letter-spacing: 0;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid var(--color-primary);
}

.btn:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sp-only { display: none; }


/* --- アニメーション --- */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    opacity: 0;
    animation: fade-in-up 1s ease-out 0.2s forwards;
}

.animation-target {
    opacity: 0;
    animation: fade-in-up 1s ease-out forwards;
}


/* --- 1. ヘッダー --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-weight: 700;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-contact-nav {
    padding: 8px 20px;
}
.btn-contact-nav:hover::after {
    width: 0;
}

.menu-toggle-checkbox, .menu-toggle-label {
    display: none;
}


/* --- 2. メインビジュアル --- */
.hero {
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    background-image: linear-gradient(rgba(11, 43, 61, 0.5), rgba(11, 43, 61, 0.5)), url(https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1920);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}


/* --- 3. 会社概要 --- */
.about-content {
    display: flex;
    gap: 50px;
    text-align: center;
}
.about-item {
    flex: 1;
}
.about-item h3 {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}
.about-item h3 span {
    display: block;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-top: 5px;
}
.about-item p {
    text-align: left;
}


/* --- 4. サービス紹介 --- */
/* ★★★ 修正箇所 ★★★ */
.service-cards-2 {
    display: grid;
    /* PCでは2カラム表示 */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /* 2つのカードを中央寄せにするためにmax-widthを設定 */
    max-width: 800px;
    margin: 0 auto;
}
.card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.card-img {
    width: 100%;
    height: 220px; /* 画像の高さを少し調整 */
    object-fit: cover;
}
.card-content {
    padding: 25px;
}
.card-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: var(--color-secondary);
}
.card-text {
    margin: 0;
    font-size: 0.95rem;
}

/* --- 5. 導入実績 --- */
.section-text {
    text-align: center;
    max-width: 600px;
    margin: -40px auto 40px;
}
.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.client-logo-item {
    padding: 15px 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 700;
    color: #555;
    background-color: #fff;
}

/* --- 6. ニュース --- */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    border-top: 1px solid #ddd;
}
.news-item a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}
.news-item a:hover {
    background-color: #fff;
    opacity: 1;
}
.news-date {
    font-family: 'Roboto', sans-serif;
    color: #555;
    font-weight: 700;
}
.news-category {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 5px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}
.news-category-info { background-color: var(--color-primary); }
.news-category-release { background-color: var(--color-secondary); }
.news-category-media { background-color: #6c757d; }
.news-title {
    margin: 0;
    font-weight: 700;
}
.section-link {
    text-align: center;
    margin-top: 40px;
}

/* --- 7. 採用情報 --- */
.recruit-section {
    padding: 100px 0;
    text-align: center;
    background-image: linear-gradient(rgba(11, 43, 61, 0.8), rgba(11, 43, 61, 0.8)), url(https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-4.0.3&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1920);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}
.recruit-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.recruit-title span {
    display: block;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
    letter-spacing: 0;
}
.recruit-text {
    font-size: 1.1rem;
    margin: 20px 0 40px;
}
.btn-recruit {
    background-color: #fff;
    color: var(--color-secondary);
    border-color: #fff;
}

/* --- 8. フッター --- */
.footer {
    background-color: var(--color-secondary);
    color: #fff;
    padding-top: 120px;
    padding-bottom: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 1;
}
.footer a {
    color: #fff;
}
.footer-cta {
    text-align: center;
    background-color: #fff;
    color: var(--color-text);
    padding: 40px;
    border-radius: 10px;
    margin: 0 auto 80px;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.footer-cta-title {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}
.btn-contact-footer {
    margin-top: 20px;
}
.btn-contact-footer i {
    margin-right: 8px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}
.footer-info p {
    margin: 0;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}
.footer-links {
    display: flex;
    gap: 50px;
}
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 40px;
}
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-social a {
    font-size: 1.5rem;
}
.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* --- レスポンシブ対応 (SP) --- */
@media (max-width: 768px) {
    .sp-only { display: block; }

    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .hero { height: 90vh; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    /* ハンバーガーメニュー */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        transition: right 0.5s;
        padding-top: 100px;
        z-index: 998;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 15px;
    }
    .nav-menu a:hover::after { width: 0; }
    .btn-contact-nav {
        margin-top: 20px;
    }
    .menu-toggle-label {
        display: block;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        z-index: 999;
    }
    .menu-toggle-label span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--color-secondary);
        position: absolute;
        transition: transform 0.3s, opacity 0.3s;
    }
    .menu-toggle-label span:nth-child(1) { top: 0; }
    .menu-toggle-label span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .menu-toggle-label span:nth-child(3) { bottom: 0; }
    .menu-toggle-checkbox { display: none; }
    .menu-toggle-checkbox:checked ~ .nav-menu {
        right: 0;
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked ~ .menu-toggle-label span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
    
    .about-content { flex-direction: column; }
    /* ★★★ 修正箇所 ★★★ */
    .service-cards-2 { grid-template-columns: 1fr; } /* SPでは1カラム */
    .client-logos { gap: 15px; }
    .client-logo-item { flex-basis: calc(50% - 15px); text-align: center; }
    .news-item a { flex-wrap: wrap; }
    .news-date { width: 100%; margin-bottom: 5px; }
    .news-title { width: 100%; margin-top: 5px; }

    .recruit-section { background-attachment: scroll; }

    .footer { margin-top: 0; padding-top: 60px; }
    .footer-cta { margin-bottom: 40px; }
    .footer-content, .footer-links { flex-direction: column; }
    .footer-info { text-align: center; margin-bottom: 40px; }
    .footer-logo { margin: 0 auto 15px; }
    .footer-nav { grid-template-columns: 1fr; text-align: center; margin-bottom: 40px; }
    .footer-social { flex-direction: row; justify-content: center; }
}