/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #111; 
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 10px; /* 必要に応じて調整 */
}

.menu-icon {
    font-size: 24px; /* フォントサイズを大きくしてボタンを大きく見せる */
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 10px; /* 右側のマージンを少し広げる */
}

.menu-icon span {
    margin-left: 10px;
    font-size: 18px; /* テキストのサイズ */
    color: white;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo-text {
    font-size: 2em;
    font-weight: bold;
    font-family: 'Helvetica', sans-serif;
    color: #ffffff;
    letter-spacing: 2px;
}

header .nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-size: 1.1em;
}

header .nav a:hover {
    text-decoration: underline;
}
.sidenav {
    height: 100%; 
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px; 
}

/* サイドバーが表示された時のスタイル */
.sidenav.open {
    width: 250px; 
}

/* サイドバーの中のリンクのスタイル */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* 閉じるボタンのスタイル */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    color: white;
}

.sidenav a:hover {
    color: #f1f1f1;
}


.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Menu Button Styles */
.menu-btn {
    font-size: 24px;
    cursor: pointer;
    color: white;
    background: transparent;
    border: none;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.menu-btn:focus {
    outline: none;
}

/* Small Screen Adjustments */
@media screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}

/* Hero Section */
.hero {
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ffffff; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
    opacity: 0; 
    animation: fadeInUp 2s ease-out 1s forwards; 
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px; 
    color: #ffffff; 
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
    opacity: 0; 
    animation: fadeInUp 2s ease-out 2s forwards;
}

.cta-button {
    background-color: #ff6f61;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s;
    opacity: 0; 
    animation: fadeInUp 2s ease-out 3s forwards;
}

/* Animation */
@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation .shape {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(143, 116, 67, 0.5);
    border-radius: 50%;
    animation: float 7s infinite ease-in-out;
}

.background-animation .shape:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-duration: 15s;
}

.background-animation .shape:nth-child(2) {
    top: 30%;
    left: 70%;
    animation-duration: 20s;
    background: rgba(0, 255, 0, 0.7);
}

.background-animation .shape:nth-child(3) {
    top: 60%;
    left: 25%;
    animation-duration: 12s;
    background: rgba(0, 0, 255, 0.7);
}

.background-animation .shape:nth-child(4) {
    top: 80%;
    left: 80%;
    animation-duration: 18s;
    background: rgba(255, 0, 255, 0.7);
}

.background-animation .shape:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-duration: 25s;
    background: rgba(255, 255, 0, 0.7);
}

.background-animation .shape:nth-child(6) {
    top: 40%;
    left: 30%;
    animation-duration: 30s;
    background: rgba(0, 255, 255, 0.7);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-100px) translateX(100px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

/* Featured Artworks Section */
.featured-artworks,
.latest-collections {
    padding: 50px 20px;
    text-align: center;
}

.featured-artworks h2,
.latest-collections h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.artwork-grid,
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.artwork-item,
.collection-item {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.artwork-item img,
.collection-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.artwork-item h3,
.collection-item h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.artwork-item p,
.collection-item p {
    font-size: 1em;
    color: #666;
}

/* Art Detail Page */
.art-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
}

.art-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.art-info {
    max-width: 600px;
    text-align: left;
}

.art-info h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.art-info p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.buy-button {
    background-color: #ff6f61;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-button:hover {
    background-color: #ff3b30;
}

/* Upload and Contact Forms */
.upload form,
.contact form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.upload form label,
.contact form label {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: block;
}

.upload form input[type="text"],
.upload form input[type="number"],
.upload form textarea,
.upload form input[type="file"],
.contact form input[type="text"],
contact form input[type="email"],
contact form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.upload form button,
.contact form button {
    background-color: #333;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.upload form button:hover,
.contact form button:hover {
    background-color: #555;
}

/* About Section */
.about {
    padding: 50px 20px;
    text-align: center;
}

.about h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Camera Section */
.camera-capture {
    padding: 50px 20px;
    text-align: center;
}

.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#camera {
    width: 80%;
    max-width: 600px;
    border: 2px solid #333;
    border-radius: 10px;
}

.capture-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff6f61;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

.capture-button:hover {
    background-color: #ff3b30;
}

/* 画像サイズの調整 */
.captured-art-small {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    margin-left: 15px;
}


/* Art Info Section */
#art-info {
    margin-top: 40px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.captured-art {
    display: block;
    width: 100%;
    max-width: 250px; /* 画像の最大幅を制限 */
    margin: 10px 0; /* 上下に少し余白を追加 */
    border-radius: 10px; /* 角を丸める */
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto; /* フッターがページの一番下に来るように */
    position: relative;
}


/* Featured Craftsmen Section */
.featured-craftsmen {
    padding: 50px 20px;
    text-align: center;
}

.craftsmen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.craftsman-item {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.craftsman-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.craftsman-item h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.craftsman-item p {
    font-size: 1em;
    color: #666;
}

/* デフォルトはPC用のナビゲーションバー */
.header .nav {
    display: flex;
    align-items: center;
}

.menu-icon {
    display: none; /* デフォルトでは非表示 */
}

.sidenav {
    display: none; /* サイドナビもデフォルトでは非表示 */
}

/* 画面幅が768px以下の場合（タブレットやスマートフォン） */
@media (max-width: 768px) {
    .header .nav {
        display: none; /* 通常のナビゲーションを非表示 */
    }

    .menu-icon {
        display: flex; /* メニューアイコンを表示 */
        cursor: pointer;
    }

    .sidenav {
        display: block; /* サイドナビを表示 */
        width: 250px;
        position: fixed;
        top: 0;
        right: 0;
        background-color: #111;
        overflow-x: hidden;
        transition: 0.5s;
    }

    .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
    }

    .sidenav a:hover {
        color: #f1f1f1;
    }

    .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }
}
/* サイドナビゲーションを初期状態で非表示に */
.sidenav {
    width: 0;
    transition: 0.5s;
}
