@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0; /* パディングを完全に削除 */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    padding-left: 0; /* 左パディングを削除 */
}

.logo-image {
    height: 9rem;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    display: inline-block;
}

.logo-text-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.logo-text-link:hover {
    color: #00ffff;
}

header {
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
}

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

body {
    font-family: 'poppins', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}


nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00ffff;
}

main {
    padding-top: 80px;
}

section {
    padding: 5rem 2rem;
    max-width: 2500px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

h1 {
    font-size: 60rem;
}

h2 {
    font-size: 2.5rem;
}

.hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/random/1920x1080?technology') no-repeat center center/cover;
}

.hero h1 {
    font-size: 8rem;
    margin-bottom: 1rem;
    font-family: 'fantasy';
}

.hero p {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea, button {
    margin-bottom: 1rem;
    padding: 0.5rem;
    font-family: inherit;
    border: none;
    border-radius: 5px;
}

input, textarea {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

button {
    background-color: #00ffff;
    color: #000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #00cccc;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes glow {
    0% { text-shadow: 0 0 5px #00ffff; }
    50% { text-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff; }
    100% { text-shadow: 0 0 5px #00ffff; }
}

.hero h1, .hero p {
    animation: fadeIn 1.5s ease-out, glow 2s ease-in-out infinite;
}

.service-item, form input, form textarea, form button {
    animation: slideUp 0.5s ease-out forwards;
    opacity: 0;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

.about p {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* service-itemのhoverエフェクトを.service-linkに移動 */
.service-link:hover .service-item {
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}
