/* 全体のスタイル */
body {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    text-align: center;
}

/* トップセクション */
.hero-section {
    position: relative;
    color: #fff;
    height: 500px;
    overflow: hidden;
}

.hero-section h1 {
    position: relative;
    font-size: 2.5em;
    z-index: 1;
    margin: 0;
    padding: 220px 20px;
    background: rgba(0, 0, 0, 0.5);
}

/* 自動スクロールギャラリーの背景 */
.scroll-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    display: flex;
    overflow: hidden;
    animation: scroll 20s linear infinite;
}

.gallery-container {
    display: flex;
}

.gallery-container img {
    width: auto;
    height: 500px;
    border-radius: 8px;
    margin: 0 5px;
}

/* ループアニメーション */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* プロフィールセクション */
.profile-section {
    padding: 40px 20px;
    background-color: #fff;
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #4db6ac;
    text-decoration: none;
    margin-right: 15px;
    font-weight: bold;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #388e8e;
}

/* お問い合わせフォーム */
.contact-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
}

.contact-section form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.contact-section form input,
.contact-section form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1em;
}

.contact-section form button {
    display: block;
    padding: 12px 20px;
    background-color: #4db6ac;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 20px;
}

/* イラストギャラリー */
.gallery-section {
    padding: 50px 20px;
}

.gallery-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* モーダルポップアップ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    cursor: pointer;
}
