@charset "UTF-8";

/* --- Base Styles --- */
:root {
    --primary-color: #004488; /* 東栄HDを意識した信頼感のあるブルー */
    --accent-color: #0066cc;
    --text-color: #333;
    --bg-color: #fff;
    --gray-bg: #f9f9f9;
    --font-base: "Noto Sans JP", sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
}

.logo a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.logo-sub {
    font-size: 10px;
    color: #666;
    letter-spacing: 0.1em;
}

.global-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.global-nav a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
}

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

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

.btn-contact {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 2px;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    opacity: 1;
}

.hamburger {
    display: none;
}

/* --- Hero Slider (Crossfade) --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 全画面表示 */
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 画像設定: main.pngを指定します */
.slide-1 {
    background-image: url('images/main.png'); /* メイン画像 */
    z-index: 1;
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-catch {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.2em;
    z-index: 10;
    padding-top: 40px;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 30px;
    background-color: #fff;
}

/* --- Common Section Styles --- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.center {
    text-align: center;
}

.section-desc {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

/* --- News Section --- */
.news-section {
    background-color: var(--bg-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.view-more {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 700;
}

.news-list li {
    border-bottom: 1px solid #eee;
}

.news-list a {
    display: flex;
    padding: 20px 0;
    align-items: center;
}

.news-list a:hover {
    background-color: #fcfcfc;
    padding-left: 10px;
}

.news-list .date {
    font-family: sans-serif;
    color: #888;
    margin-right: 20px;
    min-width: 100px;
}

.news-list .category {
    background-color: #eee;
    color: #555;
    font-size: 12px;
    padding: 4px 10px;
    margin-right: 20px;
    border-radius: 2px;
}

/* --- Group Service Section --- */
.group-section {
    background-color: var(--gray-bg);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-img {
    height: 200px;
    width: 100%;
}

.card-body {
    padding: 25px;
}

.card-body h4 {
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-size: 20px;
}

.card-body p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* --- Message Section --- */
.message-section {
    background-color: #fff;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.message-text {
    flex: 1;
}

.message-text h4 {
    font-size: 24px;
    margin-bottom: 20px;
}

.message-img {
    flex: 1;
    height: 300px;
    background-color: #eee; /* ここに将来的にイメージ画像を入れます */
    border-radius: 4px;
}

.btn-primary {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 40px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Footer --- */
.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    color: #aaa;
}

.footer-links {
    display: flex;
    gap: 60px;
}

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

.footer-links a {
    color: #aaa;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 12px;
    color: #888;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 20px;
    }
    
    .global-nav {
        display: none; /* スマホではとりあえず非表示（ハンバーガーメニュー実装用） */
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .hamburger span {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { bottom: 0; }

    .hero-catch {
        font-size: 28px;
    }

    .slide {
        background-position: left center;
    }

    .flex-row {
        flex-direction: column;
    }

    .footer-row {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-sub {
        font-size: 9px;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .card-img {
        height: 150px;
    }

    .card-body {
        padding: 15px;
    }

    .card-body h4 {
        font-size: 16px;
    }

    .card-body p {
        font-size: 12px;
    }
}

/* --- Recruit Page Styles --- */
.recruit-item {
    margin-bottom: 50px;
}

.recruit-item ul li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}