/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #ffffff, #e8f4ff);
    color: #333;
    line-height: 1.6;
}
header {
    background: #1abc9c;
    color: #fff;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-container {
    display: flex;
    align-items: center; /* 垂直方向に中央揃え */
}
.logo {
    height: 40px; /* ロゴの高さを調整 */
}
header h1 {
    margin: 0;
    font-size: 1.3rem;
    padding-left: 10px;
}
header h1 a {
    color: #fff;
    text-decoration: none;
}
header h1 a:hover {
    color: #fff;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
nav ul li {
    margin: 0;
    position: relative;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #2c3e50;
}
.intro {
    height: 300px;
    background-image: url('./images/index/header.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
}
.intro h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}
.container h2 {
    color: #16a085;
}
.content {
    margin-bottom: 2rem;
}
.content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    text-align: center;
}
.content-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    justify-content: space-evenly;
}
.content .item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.content .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.content .item img {
    width: 100%;
    border-bottom: 2px solid #1abc9c;
}
.content .item a {
    display: block;
    padding: 10px;
    color: #16a085;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}
.content .item a:hover {
    color: #e74c3c;
}
.about {
    width: 90%;
    max-width: 1200px;
    margin: 3rem auto 0;
    text-align: center;
}
.about ul {
    margin-top:0;
    padding: 0;
    text-align: left;
    font-size: 1rem;
}
.about ul li {
    margin-bottom: 0.5rem;
}
.gotop {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    text-align: center;
}
footer {
    background: #1abc9c;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}
footer a {
    color: #fff;
}
footer a:hover {
    color: #2c3e50;
}

/* モバイル対応 */
@media(max-width: 767px) {
    header {
        display: flex;
        flex-direction: column;
        padding: 0.5rem;
        align-items: center;
        justify-content: center;
    }

    header .header-container {
        margin-bottom: 5px;
    }

    header nav ul {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 0;
        list-style: none;
        align-items: center;
    }

    header nav ul li {
        display: inline-block;
    }

    header nav ul li a {
        text-decoration: none;
        padding: 5px 0;
        font-size: 0.9rem;
    }

    .intro {
        height: 200px;
    }

    .container {
        padding: 0 4%;
    }

    .gotop {
        width: 50px;
        height: 50px;
    }

}
