/* ========================================
   トップページ - モダンデザイン
   ======================================== */

/* ヒーローセクション */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--light);
    transform: skewY(-3deg);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
    position: relative;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .btn {
    background: var(--white);
    color: var(--primary);
    font-size: 1.1rem;
    padding: 1.25rem 3rem;
    position: relative;
    animation: fadeInUp 0.8s ease 0.4s both;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero .btn:hover {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

section {
    margin-bottom: 6rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--dark);
    font-weight: 800;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* サービスカード */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* 特徴セクション */
.features {
    background: var(--white);
    padding: 5rem 2rem;
    margin: 0 -2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.features h2 {
    text-align: center;
    display: block;
}

.features h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--light);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.feature-item h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

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

/* ブログセクション */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    height: 180px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1));
}

.blog-card-content {
    padding: 1.75rem;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-card-category {
    background: var(--gradient);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.blog-card h3 a {
    color: var(--dark);
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

.more-link {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    color: var(--primary);
    font-weight: 600;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.more-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* お問い合わせ */
.contact {
    background: var(--gradient-dark);
    color: var(--white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact h2 {
    color: var(--white);
    display: block;
    text-align: center;
    position: relative;
}

.contact h2::after {
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
}

.contact p {
    position: relative;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.contact .btn {
    margin-top: 2rem;
    position: relative;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1.5rem 6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    main {
        padding: 3rem 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .contact {
        padding: 2.5rem 1.5rem;
    }
}
