/* ===== 基本設定 ===== */
:root {
    --primary-color: #1A4E8A;
    --secondary-color: #5BC6F5;
    --dark-blue: #0A3259;
    --light-blue: #E5F4FD;
    --text-dark: #333333;
    --text-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 18px;
    color: var(--text-gray);
}

.section-header.with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.section-header.with-link h2 {
    margin-bottom: 0;
}

.section-header.with-link h2::after {
    left: 30px;
}

.view-all {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
}

.view-all i {
    margin-left: 5px;
    transition: var(--transition);
}

.view-all:hover i {
    transform: translateX(5px);
}

/* ===== ヘッダー ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.logo {
    max-width: 200px;
}

.logo img {
    height: auto;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

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

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a:hover::after, 
nav ul li a.active::after {
    width: 100%;
}

.contact-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
}

.contact-btn::after {
    display: none;
}

.contact-btn:hover {
    background-color: var(--dark-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ===== ヒーローセクション ===== */
#hero {
    background: linear-gradient(to right, rgba(26, 78, 138, 0.95), rgba(10, 50, 89, 0.9));
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 650px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(91, 198, 245, 0.2);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--secondary-color);
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    position: relative;
}

.hero-text h1 .highlight {
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.hero-text h1 .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    background-color: rgba(91, 198, 245, 0.3);
    bottom: 8px;
    left: 0;
    z-index: -1;
}

.typing-effect {
    border-right: 3px solid var(--secondary-color);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary-color) }
}

.hero-text p {
    font-size: 22px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.accent-text {
    color: var(--secondary-color);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
    color: var(--white);
    position: relative;
}

.stat-plus, .stat-percent {
    font-size: 24px;
    position: absolute;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons .primary-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(26, 78, 138, 0.3);
}

.hero-buttons .primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.hero-buttons .primary-btn:hover::before {
    left: 100%;
}

.hero-buttons .primary-btn i {
    transition: transform 0.3s ease;
}

.hero-buttons .primary-btn:hover i {
    transform: translateX(5px);
}

.hero-buttons .secondary-btn {
    padding: 16px 30px;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.hero-buttons .secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.hero-image {
    position: relative;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-image img {
    max-width: 100%;
}

.floating-badge {
    position: absolute;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: pulse 3s infinite;
}

.badge-1 {
    top: 20%;
    left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    top: 40%;
    right: -5%;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 2s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== サービス概要セクション ===== */
#services-overview {
    padding: 100px 0;
    background-color: var(--white);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

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

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
}

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

.service-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.service-link {
    font-weight: 500;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===== 特徴セクション ===== */
#features {
    padding: 100px 0;
    background-color: var(--light-blue);
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature {
    display: flex;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.feature-number {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 36px;
    font-weight: 700;
    padding: 30px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-content {
    padding: 30px;
}

.feature-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-content p {
    color: var(--text-gray);
}

/* ===== 導入メリットセクション ===== */
#benefits {
    padding: 100px 0;
    background-color: var(--white);
}

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

.benefit-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--light-blue);
    transition: var(--transition);
}

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

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

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

.benefit-card p {
    color: var(--text-gray);
}

/* ===== CTAセクション ===== */
#cta {
    padding: 100px 0;
    background: linear-gradient(to right, var(--primary-color), var(--dark-blue));
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
}

/* ===== ニュースプレビューセクション ===== */
#news-preview {
    padding: 100px 0;
    background-color: var(--white);
}

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

.news-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.news-item:hover {
    background-color: var(--light-blue);
}

.news-date {
    min-width: 100px;
    font-size: 14px;
    color: var(--text-gray);
}

.news-category {
    min-width: 100px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 12px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 20px;
}

.news-title a, .news-title span {
    color: var(--text-dark);
    font-weight: 500;
}

.news-title a:hover {
    color: var(--primary-color);
}

/* ===== フッター ===== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

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

.footer-info {
    max-width: 320px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 20px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
}

.company-info p {
    margin-bottom: 15px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-nav {
    display: flex;
    gap: 50px;
}

.footer-nav-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
}

.footer-nav-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

.footer-nav-column ul li {
    margin-bottom: 10px;
}

.footer-nav-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition);
}

.footer-nav-column ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 32px;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .hero-text p {
        font-size: 18px;
    }
    
    .feature {
        flex-direction: column;
    }
    
    .feature-number {
        min-width: 100%;
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-nav {
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 30px 0;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-date,
    .news-category {
        min-width: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}