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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #240099;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo-img {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

.desktop-nav {
    display: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #240099;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 4rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 4rem);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav {
    padding: 2rem 1rem;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #333;
    font-size: 1.25rem;
    font-weight: 500;
    background: #f9f9f9;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
}

.mobile-nav-link:hover {
    background: #f0f0f0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://res.cloudinary.com/dkg9vk1ff/image/upload/v1747554766/IMG_8590_xawc9f.jpg');
    background-size: cover;
    background-position: center 40%;
    animation: heroReveal 2.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(27, 43, 76, 0.35) 0%, rgba(27, 43, 76, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

/* --- Hero Section のテキストレイアウト調整 --- */

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: fit-content;  
    margin: 0 auto;
    gap: 0;
}

/* Airbrush Illustrations (左寄せ) */
.hero-subtitle {
    font-family: 'UnifrakturMaguntia', serif; 
    font-size: 0.8rem; /* さらに小さく調整 */
    font-weight: 400;
    letter-spacing: 0.05em; 
    
    align-self: flex-start; 
    margin: 0 0 -0.4rem 0.1rem; /* 隙間を詰め、左端を微調整 */
    line-height: 1;
    
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

/* マインド美術室 (中央) */
.hero-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 1.8rem; /* 基準サイズ */
    line-height: 1.1;
    margin: 0;
    white-space: nowrap; /* 改行を防ぐ */
    
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 1.2s;
}

/* since 1987 (右寄せ) */
.hero-since {
    font-family: 'Bodoni Moda', serif;
    font-style: italic;
    font-size: 1.0rem; /* バランスを見て少し調整 */
    letter-spacing: 0.05em;
    
    align-self: flex-end; 
    margin: -0.2rem 0.1rem 0 0; /* 隙間を詰め、右端を微調整 */
    line-height: 1;
    
    color: rgba(255, 255, 255, 0.9);
    animation: fadeUp 0.6s ease-out forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
    animation-delay: 2s;
}

/* Section Styles */
.section {
    padding: 4rem 0;
    background: white;
    color: #333;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.about-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 4xl;
}

.about-logo {
    width: 24rem;
    height: 24rem;
    object-fit: contain;
}

.about-text {
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1.125rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item svg {
    color: #240099;
    flex-shrink: 0;
}

/* Gallery Section */
.gallery-section {
    background: #240099;
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-0.5rem);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    top: -3rem;
    right: 0;
}

.lightbox-prev {
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -3rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Footer */
.footer {
    background: #240099;
    color: white;
    padding: 3rem 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-address {
    font-style: normal;
}

.footer-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.footer-phone a {
    color: white;
    text-decoration: none;
}

.footer-phone a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-list a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-list a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: white;
    color: #240099;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Animations */
@keyframes heroReveal {
    0% {
        clip-path: polygon(0 0, 20% 0, 10% 10%, 0 20%);
        transform: scale(2);
        transform-origin: 0 0;
    }
    40% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: scale(2);
        transform-origin: 0 0;
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: scale(1);
        transform-origin: 0 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    /* 他のスタイルは維持しつつ、hero関連のサイズ上書きを削除します */
    .hero-subtitle, .hero-title, .hero-since {
        /* PCでもスマホと同じ比率を保つため、大きなサイズへの変更を無効化 */
        font-size: inherit; 
    }
    
    /* もしPCで全体的に一回り大きくしたい場合のみ、親のhero-textで倍率を調整します */
    .hero-text {
        transform: scale(1.5); /* 全体の比率を保ったまま1.5倍に */
    }
    .desktop-nav {
        display: block;
    }
    
/* 修正後：モバイルメニューボタンを完全に非表示にする */
    .mobile-menu-btn {
    display: none !important;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-since {
        font-size: 2rem;
    }
    
    .about-main {
        flex-direction: row;
        align-items: center;
    }
    
    .about-info {
        flex-direction: row;
        justify-content: center;
        gap: 4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-links {
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* --- Instagramセクション：全デバイス共通で白背景ボタンにする --- */

/* 1. タイトルや説明文を真っ白に固定 */
.instagram-banner .insta-title, 
.instagram-banner .insta-text, 
.instagram-banner .insta-guide {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

/* 2. 「作品ギャラリーを見る」を白背景のボタンにする */
.instagram-banner .insta-button {
    display: inline-block !important;
    background-color: #FFFFFF !important; /* 背景を白に */
    color: #240099 !important;            /* 文字を紺色に */
    padding: 16px 45px !important;       /* 押しやすい大きさ */
    border-radius: 50px !important;      /* 丸角デザイン */
    font-size: 1.1rem !important;        /* 文字を大きく */
    font-weight: 700 !important;         /* 太字 */
    text-decoration: none !important;    /* 下線を消す */
    margin-top: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important; /* 影をつけて浮かせる */
    transition: all 0.3s ease !important;
}

/* 3. ボタンにマウスを乗せた時（ホバー）の反応 */
.instagram-banner .insta-button:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-3px) !important;
}

/* 4. カメラアイコンも白くする */
.instagram-banner .insta-icon-wrapper svg {
    stroke: #FFFFFF !important;
}