/*
Theme Name: SHINGAN Studio Theme
Theme URI: https://shingan-art.com
Description: SHINGAN Studio - レンタルスタジオ・ギャラリースペース
Author: SHINGAN
Version: 7.0
Text Domain: shingan
*/

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.4;
}

/* ===== Layout ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    margin-bottom: 50px;
    font-weight: 300;
    text-transform: uppercase;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo img {
    height: 28px;
    width: auto;
}

.site-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    color: #333;
}

/* ===== Navigation ===== */
.main-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #333;
    transition: width 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: #333;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: #333;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===== Hero Section ===== */
.hero {
    margin-top: 52px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 30px 20px;
}

.hero-image {
    display: block;
}

.hero-image img {
    max-width: 850px;
    width: 100%;
    height: auto;
    aspect-ratio: 1012 / 675;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.hero-placeholder {
    max-width: 850px;
    width: 100%;
    aspect-ratio: 1012 / 675;
    background: #e8e8e4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* ===== News Section ===== */
.news-list {
    max-width: 650px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 25px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    align-items: baseline;
}

.news-date {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.05em;
    white-space: nowrap;
    min-width: 90px;
}

.news-title {
    font-size: 0.85rem;
    color: #555;
}

.news-title a:hover {
    opacity: 0.7;
}

/* ===== About Section ===== */
.about {
    background: #fafaf8;
}

.about-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 0.85rem;
    line-height: 2.4;
    color: #777;
}

/* ===== Gallery Section (Swiper Slider) ===== */
.gallery-slider-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 50px;
}

.gallery-slider .swiper-slide {
    overflow: hidden;
    cursor: pointer;
}

.gallery-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-slider .swiper-slide:hover img {
    transform: scale(1.02);
}

/* Swiper Navigation */
.gallery-slider-wrapper .swiper-button-next,
.gallery-slider-wrapper .swiper-button-prev {
    color: #999;
    width: 40px;
    height: 40px;
}

.gallery-slider-wrapper .swiper-button-next::after,
.gallery-slider-wrapper .swiper-button-prev::after {
    font-size: 18px;
}

.gallery-slider-wrapper .swiper-button-next:hover,
.gallery-slider-wrapper .swiper-button-prev:hover {
    color: #333;
}

/* Swiper Pagination */
.gallery-slider-wrapper .swiper-pagination {
    position: relative;
    margin-top: 25px;
}

.gallery-slider-wrapper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.gallery-slider-wrapper .swiper-pagination-bullet-active {
    background: #555;
    width: 20px;
    border-radius: 3px;
}

/* Gallery Link Button */
.gallery-link {
    text-align: center;
    margin-top: 40px;
}

.gallery-link a {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid #999;
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.gallery-link a:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 200;
    line-height: 1;
}

/* ===== Price Section (Simple) ===== */
.price-list {
    max-width: 600px;
    margin: 0 auto;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px solid #eee;
}

.price-item:first-child {
    border-top: 1px solid #eee;
}

.price-label {
    font-size: 0.85rem;
    color: #555;
    letter-spacing: 0.05em;
}

.price-value {
    text-align: right;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 0.02em;
}

.price-note {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 3px;
}

/* ===== Blog Section (横レイアウト) ===== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    transition: opacity 0.3s ease;
}

.blog-card:first-child {
    border-top: 1px solid #eee;
}

.blog-card:hover {
    opacity: 0.75;
}

.blog-card-image {
    width: 100px;
    min-width: 100px;
    height: 100px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    flex: 1;
    padding: 0 0 0 20px;
}

.blog-card-date {
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 6px;
}

.blog-card-title {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
}

.blog-more {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
    padding: 12px 32px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    opacity: 1;
}

/* ===== Contact Section ===== */
.contact {
    background: #fafaf8;
}

.contact-inner {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
}

.contact-inner p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 30px;
    line-height: 2.2;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-block;
    padding: 14px 36px;
    background: #333;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: 1px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cta:hover {
    background: #555;
    border-color: #555;
    opacity: 1;
}

/* ===== Access Section ===== */
.access-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.access-map {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.access-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.access-logo {
    margin-bottom: 25px;
}

.access-logo img {
    max-height: 30px;
    width: auto;
}

.access-info h3 {
    font-size: 1rem;
    margin-bottom: 25px;
    letter-spacing: 0.15em;
    font-weight: 300;
}

.access-info dl {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px 18px;
    font-size: 0.8rem;
}

.access-info dt {
    color: #aaa;
    font-weight: 400;
}

.access-info dd {
    color: #666;
    line-height: 1.8;
}

/* ===== Instagram Section ===== */
.instagram-section {
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

.instagram-section a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.instagram-section a:hover {
    opacity: 0.6;
}

.instagram-section img {
    max-width: 35px;
    height: auto;
    margin: 0 auto;
}

/* ===== Copyright Bottom ===== */
.copyright-bottom {
    text-align: center;
    padding: 25px 20px 35px;
    font-size: 0.6rem;
    color: #aaa;
    letter-spacing: 0.08em;
    background: #fff;
}

/* ===== Page Templates (Equipment / Booking) ===== */
.page-template-content {
    padding-top: 80px;
    min-height: 60vh;
}

.page-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: #fff;
}

.page-hero h1 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
}

.page-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-body h2 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body p {
    font-size: 0.85rem;
    line-height: 2.2;
    color: #666;
    margin-bottom: 20px;
}

.page-body img {
    margin: 20px auto;
}

.page-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-body li {
    font-size: 0.85rem;
    line-height: 2;
    color: #666;
}

.page-body .wp-block-image {
    margin: 30px 0;
}

/* Page Buttons */
.page-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.page-back {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* ===== Scroll Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 280px;
        height: 100vh;
        background: #fff;
        padding: 70px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.08);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a {
        display: block;
        padding: 14px 0;
        font-size: 0.8rem;
    }

    .hero {
        margin-top: 48px;
        padding: 15px 10px;
    }

    .hero-image img {
        max-width: 100%;
    }

    .section {
        padding: 55px 0;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 35px;
    }

    .gallery-slider-wrapper {
        padding: 0 15px;
    }

    .gallery-slider-wrapper .swiper-button-next,
    .gallery-slider-wrapper .swiper-button-prev {
        display: none;
    }

    .price-item {
        flex-direction: column;
        gap: 8px;
    }

    .price-value {
        text-align: left;
    }

    .blog-card-image {
        width: 80px;
        min-width: 80px;
        height: 80px;
    }

    .blog-card-body {
        padding-left: 15px;
    }

    .access-inner {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        gap: 4px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-hero {
        padding: 40px 20px 30px;
    }

    .page-hero h1 {
        font-size: 1.2rem;
    }

    .page-body {
        padding: 40px 20px;
    }

    .page-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .gallery-slider-wrapper {
        padding: 0 10px;
    }

    .blog-card-image {
        width: 70px;
        min-width: 70px;
        height: 70px;
    }
}
