body{
    font-family: Arial,'Helvetica Neue', sans-serif;
    margin: 0;
    color: #333;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
}

.header{
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    box-sizing: border-box;
    z-index: 10;
    color: #5085be;
    transition: background-color 0.3s, color 0.3s;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
    

.header.scrolled{
    background-color: white;
    color: #333;
    box-shadow: 0 2px 5px
    rgba(0,0,0,0.1)
}

.logo{
    font-size: 1.5rem;
    font-weight: bold;
}

.header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}


.hero::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color:  rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-img{
    position: absolute;
    top: 50%;
    left:50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-text h2 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 20px;
    letter-spacing: 2px;
    animation: fadeInText 1.5s 0.5s ease-out backwards;
}

.hero-text p {
    font-size: 1.2rem;
    animation: ease-out backwards;
}

.content {
    padding: 100px 50px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
        gap: 40px;
}

.content-item {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.content-itemfade-in img {
    width: 50%;
    height: 50%;
    margin: 0 10px;
    transition: transform 0.3s ease;
    padding: 5px;

}

.content-itemfade-in li {
    list-style: none;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: inline-block;
  }

  .image-effect:hover {
    transform: scale(1.1); /* 1.1倍に拡大 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* 影をつける */
  }

