:root {
    --primary-color: #0F172A;
    --accent-color: #3B82F6;
    --text-color: #334155;
    --bg-color: #FFFFFF;
    --bg-light: #F8FAFC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #E2E8F0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 文字を右側に配置 */
    /* 暗いフィルターを削除し、画像をそのまま表示 */
    background: url('hero-bg.jpg') center/cover no-repeat;
    padding: 0 8%; /* 画面右端からの余白 */
}

.hero-content {
    max-width: 45%; /* 文字が左側の握手に被らないよう幅を制限 */
    text-align: left; /* 文字を左揃えに */
}

.hero-content h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--primary-color); /* 文字色を白から濃いネイビーに変更 */
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-color); /* サブテキストもグレーに */
    font-weight: 700; /* 白背景に負けないよう少し太字に */
}

/* Sections */
.section {
    padding: 100px 20px;
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.section-title span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-top: 5px;
}

/* Cards (Services) */
.cards {
    display: flex;
    gap: 30px;
}

.card {
    flex: 1;
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #E2E8F0;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Table (Company) */
.company-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.company-table th, .company-table td {
    padding: 20px;
    border-bottom: 1px solid #E2E8F0;
}

.company-table th {
    width: 30%;
    text-align: left;
    background-color: #F1F5F9;
    color: var(--primary-color);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* Contact */
.contact-text {
    text-align: center;
    margin-bottom: 30px;
}

.contact-info {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #94A3B8;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .cards {
        flex-direction: column;
    }
    .company-table th, .company-table td {
        display: block;
        width: 100%;
    }
    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    .company-table td {
        padding-top: 5px;
        margin-bottom: 10px;
    }
    #hero {
        justify-content: center; /* スマホでは中央寄せ */
        padding: 0 20px;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.85); /* 文字の背景に半透明の白を敷く */
        padding: 30px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}