* {
    box-sizing: border-box;
    cursor: url('images/cursor.png'), auto;

}

:root {
    --accent-color: #0c3d0b;
    --accent-light: #e5dfd8;
    --text-color: #333;
    --card-bg: rgba(200, 210, 195, 0.75);
    --light-text: #363937;
}

html {
    scroll-behavior: smooth;
}

html, body {
    color: var(--text-color);
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding-top: 70px;
    line-height: 1.8;
    overflow-x: hidden;
}

a, button, input, textarea, select, label { cursor: inherit; }

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    background: rgba(112, 136, 161, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    height: 70px;
    border-bottom: 1px solid rgba(73, 4, 4, 0.615);
    box-shadow: 0 2px 10px rgba(181, 220, 168, 0.906);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    text-decoration: none;
}

nav {
    display: flex;
}

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

nav ul li a {
    display: block;
    padding: 0 1vw;
    text-decoration: none;
    color: var(--light-text);
    font-weight: bold;
    transition: color 0.3s;
    white-space: nowrap;
}

nav ul li a:hover {
    color: var(--accent-light);
}

.hamburger { display: none; }
#nav-toggle { display: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 20px;
}

h1{
    font-family: 'Playfair Display', serif;
    color: #319532;
    text-shadow: #fdfbfb;

}

h2, h3 {
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    color: #fdfbfb;
    text-shadow: 0 0 10px rgb(66, 215, 113);
    margin-bottom: 40px;
}

h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.482);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid rgba(68, 3, 30, 0.845);
    box-shadow: 0 4px 20px rgba(63, 48, 48, 0.943);
}

#home {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 40px;
}

.home-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
}

#artwork-container {
    flex: 0 1 1000px;
    height: 120vh;
    max-height: 1000px;
    cursor: grab;
}
#artwork-container * { cursor: grab; }

#artwork-container:active { cursor: grabbing; }
#artwork-container *:active { cursor: grabbing; }

#home-text-content {
    flex: 0 1 440px;
    max-width: 440px;
    text-align: left;
}

#home h2 {
    font-size: 4rem;
    text-align: left;
    margin-bottom: 10px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

#home p {
    color: #ccc;
    font-size: 1.2rem;
    text-align: left;
}

/* --- プロセスリストのホバー機能 --- */
.process-list {
    list-style: none;
    padding-left: 0;
}
.process-list li {
    position: relative;
    background: rgba(240, 248, 235, 0.6);
    border-left: 3px solid var(--accent-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s, background 0.3s;
}
.process-list li:hover {
    transform: translateX(10px);
    background: rgba(240, 248, 235, 1);
}
.process-list li strong {
    color: var(--accent-color);
    display: block;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}
.tooltip {
    visibility: hidden;
    opacity: 0.5;
    width: 350px;
    background-color: #4b4d4b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px 15px;
    position: absolute;
    z-index: 10;
    bottom: 100%;
    left: 80%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    pointer-events: none;
}
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
.process-list li:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.marquee-container {
    width: 100%;
    overflow: hidden; 
    padding: 20px 0; 
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.marquee-content {
    display: flex;
    width: max-content;
}

.marquee-item {
    display: flex;
    animation: scroll 40s linear infinite;
}

.marquee-container:hover .marquee-item {
    animation-play-state: paused;
}

.marquee-content img {
    width: auto;
    height: 250px;
    margin: 0 10px;
    border-radius: 8px;
    border: 2px solid #3f7b32;
    box-shadow: 0 4px 15px rgba(220, 210, 210, 0.742);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.marquee-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

#gallery.container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}


@media (max-width: 768px) {
    .marquee-content img {
        height: 180px; /* 小さい画面では高さを調整 */
        margin: 0 5px; /* 余白も調整 */
    }
    .marquee-item {
        animation: scroll 30s linear infinite; /* アニメーション速度も調整 */
    }
}

@media (max-width: 480px) {
    .marquee-content img {
        height: 120px; /* さらに小さい画面での高さ */
    }
    .marquee-item {
        animation: scroll 20s linear infinite; /* さらに早く */
    }
    /* マスクの調整 (必要であれば) */
    .marquee-container {
        -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
        mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    }
}


#contact .card { text-align: center; }
#contact a {
    display: inline-block;
    color: #fff;
    background-color: var(--accent-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}
#contact a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#contact a.insta-link {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
}
#contact a.insta-link:hover {
    transform: none;
    box-shadow: none;
}

#conclusion .card {
    background: linear-gradient(135deg, rgba(236, 243, 238, 0.8), rgba(236, 243, 238, 0.8));
    color: #0a0a0ab4;
}

footer {
    text-align: center;
    padding: 40px 20px;
    color: #94a294;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 960px) {
    nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(240, 248, 235, 0.98);
        height: calc(100vh - 70px);
    }
    #nav-toggle:checked ~ nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        width: 100%;
        text-align: center;
    }
    nav ul li a {
         padding: 20px 0;
         font-size: 1.2rem;
    }
    .hamburger {
        display: block;
        cursor: pointer;
        color: var(--text-color);
        font-size: 2rem;
        user-select: none;
        z-index: 1001;
    }
}

@media (max-width: 800px) {
     .home-layout {
        flex-direction: column;
        text-align: center;
     }
     #artwork-container {
        flex-basis: auto;
        width: 90%;
        max-width: 400px;
        height: 50vh;
        margin-bottom: 20px;
        margin-right: 0;
     }
     #home-text-content, #home h2, #home p {
        text-align: center;
     }
     #home h2 {
        font-size: 3rem;
     }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    header { height: 60px; padding: 0 20px; }
    nav {
        top: 60px;
        height: calc(100vh - 60px);
    }
    h2 { font-size: 2.2rem; }
}