/**
 * SHONAN Photo Wedding — Theme Additional Styles
 * Design: "SHONAN EDITORIAL" — High-fashion editorial + Japanese modern
 * Color: Ink Black #1A1A1A / Pure White / Amber Gold #B8956A / Slate Blue #5B7B8F
 * Typography: DM Serif Display + Zen Old Mincho + Zen Kaku Gothic New + Cormorant
 */

/* ─── Base ─── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #1A1A1A;
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-family: "Zen Old Mincho", serif;
}

/* ─── Font Utility Classes ─── */
.font-display {
    font-family: "DM Serif Display", serif;
}

.font-serif-jp {
    font-family: "Zen Old Mincho", serif;
}

.font-accent {
    font-family: "Cormorant", serif;
}

/* ─── Editorial Components ─── */
.section-number {
    font-family: "DM Serif Display", serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(184, 149, 106, 0.15);
    font-style: italic;
}

.editorial-line {
    height: 1px;
    background: rgba(26, 26, 26, 0.12);
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.scroll-bounce {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.is-visible .animate-on-scroll-child {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered child delays */
.animate-on-scroll.is-visible .animate-on-scroll-child:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.is-visible .animate-on-scroll-child:nth-child(2) { transition-delay: 0.12s; }
.animate-on-scroll.is-visible .animate-on-scroll-child:nth-child(3) { transition-delay: 0.24s; }
.animate-on-scroll.is-visible .animate-on-scroll-child:nth-child(4) { transition-delay: 0.36s; }

/* ─── Header States ─── */
#site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#site-header.scrolled .header-logo-text {
    color: #1A1A1A;
}

#site-header.scrolled .header-logo-sub {
    color: #B8956A;
}

#site-header.scrolled .nav-link {
    color: #1A1A1A;
}

#site-header.scrolled #mobile-menu-toggle {
    color: #1A1A1A;
}

/* ─── FAQ Accordion ─── */
.faq-item.is-open .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-item.is-open .faq-toggle i[data-lucide="chevron-down"] {
    transform: rotate(180deg);
}

/* ─── Hero Slideshow ─── */
.hero-indicator.active {
    width: 2rem; /* w-8 */
    background-color: white;
}

.hero-indicator:not(.active) {
    width: 1rem; /* w-4 */
    background-color: rgba(255, 255, 255, 0.4);
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F7F5F2;
}

::-webkit-scrollbar-thumb {
    background: rgba(184, 149, 106, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 149, 106, 0.6);
}

/* ─── Page Header Visual ─── */
.page-header-visual {
    position: relative;
    background-color: #1A1A1A;
}

.page-header-visual img {
    transition: transform 8s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-header-visual:hover img {
    transform: scale(1.03);
}

/* ─── Page Content Typography ─── */
.page-body h2 {
    position: relative;
}

.page-body h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 3rem;
    height: 2px;
    background-color: #B8956A;
}

.page-body blockquote {
    position: relative;
}

.page-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.25rem;
    left: 0.75rem;
    font-family: "DM Serif Display", serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(184, 149, 106, 0.2);
}

/* ─── Related Pages Cards ─── */
.page-content + section .animate-on-scroll-child {
    opacity: 0;
    transform: translateY(30px);
}

/* ─── WordPress Specific ─── */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Pagination */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border: 1px solid #E8E4DE;
    transition: all 0.3s;
}

.nav-links a:hover {
    background-color: #1A1A1A;
    color: white;
    border-color: #1A1A1A;
}

.nav-links .current {
    background-color: #B8956A;
    color: white;
    border-color: #B8956A;
}

/* ─── Responsive Adjustments ─── */
@media (max-width: 639px) {
    .section-number {
        font-size: 3.5rem;
    }
}

/* ─── Lucide Icon Fill for Stars ─── */
i[data-lucide="star"].fill-\[\\#B8956A\],
.fill-star {
    fill: #B8956A;
}

/* ─── Prose Content (下層ページ共通) ─── */
.prose-content {
    font-size: 0.875rem;
    color: #444;
    line-height: 2;
}

.prose-content h2 {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #E8E4DE;
    position: relative;
}

.prose-content h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 3rem;
    height: 2px;
    background-color: #B8956A;
}

.prose-content h3 {
    font-size: 1.125rem;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose-content h4 {
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose-content p {
    margin-bottom: 1.25rem;
}

.prose-content ul,
.prose-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.prose-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

.prose-content blockquote {
    border-left: 3px solid #B8956A;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: #FDFBF8;
    position: relative;
}

.prose-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    font-family: "DM Serif Display", serif;
    font-size: 3rem;
    line-height: 1;
    color: rgba(184, 149, 106, 0.15);
}

.prose-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.8125rem;
}

.prose-content table th,
.prose-content table td {
    padding: 0.75rem 1rem;
    border: 1px solid #E8E4DE;
    text-align: left;
}

.prose-content table th {
    background-color: #FDFBF8;
    font-weight: normal;
    color: #888;
    letter-spacing: 0.05em;
}

.prose-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.prose-content a {
    color: #B8956A;
    text-decoration: none;
    transition: opacity 0.3s;
}

.prose-content a:hover {
    text-decoration: underline;
}

/* ─── FAQ Accordion (new pages) ─── */
.faq-item .faq-toggle[aria-expanded="true"] i[data-lucide="plus"] {
    transform: rotate(45deg);
}

/* ─── Gallery Filter ─── */
.gallery-filter-btn.active {
    background-color: #1A1A1A;
    color: white;
    border-color: #1A1A1A;
}

/* ─── Lightbox ─── */
.shonan-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shonan-lightbox.is-visible {
    opacity: 1;
}

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

/* ─── TOC (Table of Contents) ─── */
#toc a {
    display: block;
    padding: 0.25rem 0;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.5;
}

#toc a:hover {
    color: #B8956A;
}

#toc a.toc-h3 {
    padding-left: 1rem;
    font-size: 0.6875rem;
}

/* ─── Line Clamp ─── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Mobile Menu ─── */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
}

#mobile-menu.is-open {
    transform: translateX(0);
    opacity: 1;
}

/* ─── Contact Form Styles ─── */
input:focus,
select:focus,
textarea:focus {
    border-color: #B8956A;
    outline: none;
}

/* Contact Form 7 Overrides */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E8E4DE;
    font-size: 0.875rem;
    font-family: "Zen Kaku Gothic New", sans-serif;
    transition: border-color 0.3s;
}

.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background-color: #B8956A;
    color: white;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #A07D58;
}

/* ─── Star Rating ─── */
.star-rating svg {
    display: inline-block;
}
