body {
    padding: 0;
    margin: 0;
    font-family: 'Noto Sans JP', Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* ヘッダーアニメーション追加 */
.header {
    display: flex;
    width: 100%;
    align-items: center;
    height: 80px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 20px;
    box-sizing: border-box;
    animation: fadeInDown 0.8s ease forwards;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header a {
    margin-left: 3%;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.header a:hover {
    color: #0066cc;
    transform: translateY(-2px);
}

.header a:hover::before {
    width: 100%;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: 5%;
    width: 200px;
    height: 100%;
}

.menu a {
    margin: 0 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    color: black;
    text-decoration: none;
    padding: 5px;
}

.menu a:hover, .menu a.active {
    color: #0066cc;
    transform: translateY(-2px);
}

.menu a::after, .menu a.active::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #0066cc;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.menu a:hover::after, .menu a.active::after {
    width: 100%;
}

.content {
    width: 100%;
    min-height: 500px;
    padding-bottom: 60px;
}

/* ヒーローセクションにアニメーション追加 */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background-color: white;
    margin-bottom: 40px;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.3s;
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dot {
    color: #0066cc;
    display: inline-block;
    animation: pulse 2s infinite;
}

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

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    margin: 10px 0 30px;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.5s;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: #0066cc;
    margin: 0 auto;
    opacity: 0;
    animation: expandWidth 1s ease forwards 0.7s;
}

@keyframes expandWidth {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 60px;
        opacity: 1;
    }
}

.links-grid {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.9s;
}

.link-category {
    margin-bottom: 60px;
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.link-category:nth-child(1) {
    animation-delay: 0.9s;
}

.link-category:nth-child(2) {
    animation-delay: 1.1s;
}

.link-category:nth-child(3) {
    animation-delay: 1.3s;
}

.link-category h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
}

.link-category h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #0066cc;
    border-radius: 3px;
    transform: scaleY(0);
    transform-origin: top;
    animation: expandHeight 0.6s ease forwards;
}

@keyframes expandHeight {
    0% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}

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

.link-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    animation: cardAppear 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.card-container .link-card:nth-child(1) { animation-delay: 1.1s; }
.card-container .link-card:nth-child(2) { animation-delay: 1.2s; }
.card-container .link-card:nth-child(3) { animation-delay: 1.3s; }
.card-container .link-card:nth-child(4) { animation-delay: 1.4s; }

@keyframes cardAppear {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.7s ease;
    z-index: 1;
}

.link-card:hover .card-image::before {
    left: 100%;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.link-card:hover .card-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
}

.card-content {
    padding: 20px;
    position: relative;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    transition: color 0.3s ease;
}

.link-card:hover .card-content h3 {
    color: #0066cc;
}

.card-content p {
    margin: 0 0 15px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f2f2f2;
    color: #555;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-card:hover .tag {
    background-color: #e6f0ff;
    color: #0066cc;
}

.footer {
    width: 100%;
    padding: 40px 0;
    background-color: #222;
    color: white;
    animation: fadeIn 1s ease forwards;
    animation-delay: 1.5s;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Source Code Pro', monospace;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .link-category h2 {
        font-size: 1.5rem;
    }
}