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

/* Body */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

/* Header */
header {
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    color: #fff;
    position: fixed;
    width: 100%;
    z-index: 10;
}

#icon {
    float: left;
    margin-left: 20px;
}

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

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.8rem;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('background-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#hero h1 {
    font-size: 8rem;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Gallery Section */
#gallery {
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    background-color: #f4f4f4;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.image-item {
    text-align: center;
    margin-bottom: 20px; /* 各画像間の余白 */
}

.image-item .title {
    margin-bottom: 10px; /* 題名と画像の間の余白 */
    font-size: 2rem;
    color: #333;
    font-weight: bold;
}

.image-item img {
    width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.image-item p {
    margin-top: 8px;
    font-size: 1rem;
    color: #666;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    header {
        height: auto;
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .image-item img {
        width: 100%;
    }
}

/* About Section */
#about {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #ccc;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 1.2rem;
    color: #666;
    margin-top: 1rem;
}

.about-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.twitter-link {
    display: block;
    text-align: center;
    margin-top: 10px;
}

.twitter-icon {
    width: 40px; /* アイコンの大きさ */
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s; /* ホバー時のアニメーション */
  }


.twitter-icon:hover {
    transform: scale(1.2); /* ホバー時に拡大 */
    cursor: pointer;
}

#icon img {
    width: 50px; /* アイコンの幅を指定 */
    height: 50px; /* アイコンの高さを指定 */
    border-radius: 50%; /* 丸型にする */
    object-fit: cover; /* 画像を枠内に収める */
    border: 2px solid #333; /* アイコンの周囲に枠を付ける（必要に応じて変更） */
    transition: transform 0.3s; /* ホバーアニメーション用 */
}

#icon img:hover {
    transform: scale(1.1); /* ホバー時に少し拡大 */
    cursor: pointer; /* ホバー時にポインタ表示 */
}
