/* テンプレート53: ギャラリー風 */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@400;500;700&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans JP', sans-serif; font-size: 16px; line-height: 1.9; color: #222; background: #fafafa; }

.site-header { background: #222; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.logo { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: #fff; letter-spacing: 0.1em; }
.logo span { color: #e53935; }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { color: #999; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.main-nav a:hover { color: #fff; }

.hero-gallery { background: #222; padding: 100px 40px; text-align: center; }
.hero-gallery h1 { font-family: 'Bebas Neue', sans-serif; font-size: 4rem; color: #fff; letter-spacing: 0.15em; margin-bottom: 20px; }
.hero-gallery h1 span { color: #e53935; }
.hero-gallery p { color: #888; font-size: 1.1rem; }

.main-content { padding: 60px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* マソンリーギャラリー風 */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; }
.gallery-item.fade-in { opacity: 0; transform: scale(0.95); transition: all 0.5s; }
.gallery-item.fade-in.visible { opacity: 1; transform: scale(1); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: all 0.5s; filter: grayscale(100%); }
.gallery-item:hover img { filter: grayscale(0); transform: scale(1.1); }
.gallery-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, transparent 50%, rgba(229, 57, 53, 0.9) 100%); opacity: 0; transition: all 0.4s; display: flex; align-items: flex-end; padding: 25px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { color: #fff; font-size: 1.2rem; }

/* ライトボックス */
.lightbox { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); z-index: 2000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox-content { max-width: 90%; max-height: 90%; position: relative; }
.lightbox-content img { max-width: 100%; max-height: 80vh; }
.lightbox-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 20px; font-size: 1.2rem; }

.content-box { background: #fff; border-radius: 8px; padding: 50px; box-shadow: 0 5px 30px rgba(0,0,0,0.08); margin-top: 60px; border-left: 5px solid #e53935; }
.content-box h2 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: #222; letter-spacing: 0.1em; margin-bottom: 20px; }
.content-box p { color: #555; }

.site-footer { background: #222; color: #888; padding: 50px 40px; margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-nav a { color: #888; text-decoration: none; margin-left: 25px; transition: color 0.3s; }
.footer-nav a:hover { color: #e53935; }

.hamburger { display: none; width: 28px; height: 20px; position: relative; cursor: pointer; }
.hamburger span { display: block; position: absolute; width: 100%; height: 2px; background: #fff; transition: all 0.3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.mobile-nav { display: none; position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #222; padding: 80px 30px; transition: right 0.4s; z-index: 999; }
.mobile-nav.open { right: 0; }
.mobile-nav a { display: block; padding: 15px 0; color: #fff; text-decoration: none; border-bottom: 1px solid #333; }

.back-to-top { display: none; position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: #e53935; color: #fff; border: none; cursor: pointer; z-index: 998; }

.sitemap-list { list-style: none; }
.sitemap-list li { margin-bottom: 12px; padding-left: 20px; position: relative; }
.sitemap-list li::before { content: '●'; position: absolute; left: 0; color: #e53935; font-size: 0.5rem; }
.sitemap-list a { color: #222; text-decoration: none; }

@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .main-nav { display: none; }
    .hamburger { display: block; }
    .mobile-nav { display: block; }
    .hero-gallery h1 { font-size: 2.5rem; }
    .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
}
