@charset "UTF-8";

/* ==========================================================================
   Base Styles
   ========================================================================== */
:root {
    --main-color: #FFFFFF;
    --accent-color: #000000;
    --bg-color: #A4E845;
    /* Hero Background */
    --text-color: #333333;
    --font-ja: 'Zen Maru Gothic', sans-serif;
    --font-en: 'Zen Maru Gothic', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-ja);
    color: var(--text-color);
    background-color: var(--main-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('../images/cursor_idle.png') 32 32, auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
}

.loading-video {
    width: 90%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .loading-video {
        width: 95%;
        max-width: 400px;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.menu-trigger {
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    position: relative;
    z-index: 1001;
}

.menu-trigger span {
    display: block;
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
    left: 10px;
    transition: all 0.3s;
}

.menu-trigger span:nth-child(1) {
    top: 15px;
    transform: rotate(-5deg);
}

.menu-trigger span:nth-child(2) {
    top: 25px;
    transform: rotate(2deg);
}

.menu-trigger span:nth-child(3) {
    top: 35px;
    transform: rotate(-3deg);
}

.menu-trigger.active span:nth-child(1) {
    top: 25px;
    transform: rotate(45deg);
}

.menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.menu-trigger.active span:nth-child(3) {
    top: 25px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Navigation Overlay
   ========================================================================== */
#global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#global-nav.active {
    opacity: 1;
    visibility: visible;
}

.nav-list {
    text-align: center;
}

.nav-list li {
    margin: 20px 0;
}

.nav-list a {
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    position: relative;
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 60px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-logo {
    font-family: 'Yusei Magic', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero-logo {
        font-size: 3rem;
    }
}

.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

#hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.sns-links {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.sns-links a {
    font-weight: bold;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.sns-links a:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   About Section
   ========================================================================== */
#about {
    padding: 120px 20px;
}

@media (min-width: 768px) {
    #about {
        padding: 150px 20px;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 2fr;
        gap: 60px;
    }
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin: 0 auto;
}

.about-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .about-name {
        font-size: 2rem;
    }
}

.about-handle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.about-bio {
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-sns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.sns-btn {
    padding: 10px 20px;
    background: none;
    border: 2px solid var(--accent-color);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    display: inline-block;
    font-weight: bold;
    transition: all 0.3s;
}

.sns-btn:hover {
    background-color: var(--accent-color);
    color: var(--main-color);
}

/* ==========================================================================
   ON SALE Section
   ========================================================================== */
.onsale-section {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6f0 100%);
    padding: 100px 20px;
}

@media (min-width: 768px) {
    .onsale-section {
        padding: 150px 20px;
    }
}

.onsale-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-top: -40px;
    margin-bottom: 60px;
    color: #666;
}

.onsale-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .onsale-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.onsale-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
    .onsale-item {
        padding: 30px;
    }
}

.onsale-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.onsale-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 10;
}

.new-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.onsale-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.onsale-image img {
    width: 100%;
    height: auto;
    display: block;
}

.onsale-content {
    text-align: center;
}

.onsale-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .onsale-title {
        font-size: 1.8rem;
    }
}

.onsale-subtitle-text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
}

.onsale-award {
    margin-bottom: 20px;
}

.award-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.onsale-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.onsale-btn {
    min-width: 200px;
    font-size: 1.1rem;
}

/* ==========================================================================
   Works Section - Carousel
   ========================================================================== */
#works {
    padding: 100px 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    #works {
        padding: 150px 0;
    }
}

#works .section-title {
    padding: 0 20px;
}

.works-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.works-carousel {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    transition: transform 0.5s ease;
    cursor: grab;
}

@media (min-width: 768px) {
    .works-carousel {
        gap: 30px;
        padding: 0 40px;
    }
}

.works-carousel:active {
    cursor: grabbing;
}

.works-carousel.dragging {
    transition: none;
}

.work-card {
    flex: 0 0 auto;
    width: calc(100vw - 60px);
    max-width: 350px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 480px) {
    .work-card {
        width: 350px;
        max-width: none;
    }
}

@media (min-width: 768px) {
    .work-card {
        width: 450px;
    }
}

@media (min-width: 1200px) {
    .work-card {
        width: 500px;
    }
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.work-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-info {
    padding: 25px;
}

.work-card-date {
    display: inline-block;
    background: var(--bg-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.work-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .work-card-title {
        font-size: 1.4rem;
    }
}

.work-card-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.work-card-link {
    display: inline-block;
    font-weight: bold;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.work-card-link:hover {
    opacity: 1;
    color: var(--bg-color);
    border-color: var(--bg-color);
}

/* カルーセルボタン */
.works-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.works-carousel-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

.works-carousel-prev {
    left: 10px;
}

.works-carousel-next {
    right: 10px;
}

@media (min-width: 768px) {
    .works-carousel-prev {
        left: 20px;
    }

    .works-carousel-next {
        right: 20px;
    }
}

/* インジケーター */
.works-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0 20px;
}

.works-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    transition: all 0.3s;
}

.works-indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.works-indicator:hover {
    background: var(--bg-color);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
#gallery {
    padding: 100px 20px;
}

@media (min-width: 768px) {
    #gallery {
        padding: 150px 20px;
    }
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: none;
    border: 2px solid var(--accent-color);
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    font-family: var(--font-ja);
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--accent-color);
    color: var(--main-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    border: 2px solid #eee;
    transition: all 0.3s;
    aspect-ratio: 1;
}

.gallery-item:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
#contact {
    padding: 100px 20px;
}

@media (min-width: 768px) {
    #contact {
        padding: 150px 20px;
    }
}

.contact-message {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border: 3px solid var(--accent-color);
    border-radius: 50px;
    min-width: 160px;
    text-align: center;
    transition: all 0.3s;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
}

@media (min-width: 768px) {
    .btn {
        padding: 15px 40px;
        font-size: 1.1rem;
        min-width: 200px;
    }
}

.btn.primary {
    background-color: var(--accent-color);
    color: var(--main-color);
}

.btn.primary:hover {
    background-color: var(--main-color);
    color: var(--accent-color);
}

.btn.secondary {
    background-color: var(--main-color);
    color: var(--accent-color);
}

.btn.secondary:hover {
    background-color: var(--accent-color);
    color: var(--main-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: var(--main-color);
    border-top: 2px solid var(--accent-color);
    overflow: hidden;
}

#footer-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.copyright {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--text-color);
    font-size: 0.8rem;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-sizing: border-box;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-img {
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid #fff;
    border-radius: 10px;
}

.modal-close,
.modal-prev,
.modal-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    padding: 10px;
    z-index: 2001;
}

.modal-close {
    top: 20px;
    right: 20px;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 105px;
    height: 105px;
    background: none;
    border: none;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.tori-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 100%;
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    border: 3px solid var(--accent-color);
    border-radius: 50px;
    min-width: 160px;
    text-align: center;
    transition: all 0.3s;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
}

@media (min-width: 768px) {
    .btn {
        padding: 15px 40px;
        font-size: 1.1rem;
        min-width: 200px;
    }
}

.btn.primary {
    background-color: var(--accent-color);
    color: var(--main-color);
}

.btn.primary:hover {
    background-color: var(--main-color);
    color: var(--accent-color);
}

.btn.secondary {
    background-color: var(--main-color);
    color: var(--accent-color);
}

.btn.secondary:hover {
    background-color: var(--accent-color);
    color: var(--main-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
    position: relative;
    width: 100%;
    height: 400px;
    background-color: var(--main-color);
    border-top: 2px solid var(--accent-color);
    overflow: hidden;
}

#footer-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.copyright {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--text-color);
    font-size: 0.8rem;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-sizing: border-box;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-img {
    max-width: 100%;
    max-height: 90vh;
    border: 5px solid #fff;
    border-radius: 10px;
}

.modal-close,
.modal-prev,
.modal-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    padding: 10px;
    z-index: 2001;
}

.modal-close {
    top: 20px;
    right: 20px;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 105px;
    height: 105px;
    background: none;
    border: none;
    cursor: url('../images/cursor_click.png') 32 32, pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.tori-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.shaking {
    animation: shake 0.5s ease-in-out;
}

.scroll-hint {
    display: none !important;
}