@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500;600&family=Cormorant+Garamond:wght@300;400;500&display=swap');

/* Reset & Base */
:root {
    /* Colors */
    --color-sumimuro: #1a1a1a;
    /* Charcoal */
    --color-gofun: #fcfaf2;
    /* Chalk White */
    --color-gold: #c5a059;
    /* Muted Gold */
    --color-gray: #888888;
    --color-overlay: rgba(0, 0, 0, 0.3);

    /* Fonts */
    --font-jp: 'Noto Serif JP', serif;
    --font-en: 'Cormorant Garamond', serif;

    /* Spacing */
    --space-xs: 8px;
    --space-s: 16px;
    --space-m: 32px;
    --space-l: 64px;
    --space-xl: 120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-jp);
    font-size: 14px;
    color: var(--color-sumimuro);
    background-color: var(--color-gofun);
    line-height: 2.2;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

ul {
    list-style: none;
}

/* Utilities */
.en {
    font-family: var(--font-en);
    font-weight: 300;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

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

/* Standard High-Contrast Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url('washi_texture.png');
    background-color: var(--color-gofun);
    background-repeat: repeat;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--color-gray);
    /* Clear separation */
    /* Clear separation */
    height: auto;
    min-height: 100px;
    /* Increased for 2 rows */
    transition: all 0.6s ease;
    /* Soft 'Fuwa' transition */
    flex-wrap: nowrap;
    /* Prevent wrapping generally, we control layout */
    align-items: flex-start;
    /* Align top */
}

/* Hidden state for scroll down */
.header.hidden {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}

/* Scroll effect: 'Fuwa' (Soft/Floating) */
.header.scrolled {
    background-color: rgba(252, 250, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 40px;
    height: auto;
    min-height: 90px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-left {
    flex-shrink: 0;
    margin-right: 40px;
    padding-top: 5px;
    /* Align with first row text */
}

.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    /* Ensure nav starts next to logo */
}

.header-right {
    position: absolute;
    top: 20px;
    right: 40px;
}

.logo a {
    font-family: var(--font-en);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    color: var(--color-sumimuro) !important;
    text-shadow: none;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Spacing between rows */
}

.nav-list {
    display: flex;
    gap: 30px;
    /* Restored gap */
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
    /* Force single line per row */
}

.nav-list a {
    font-family: var(--font-en);
    font-size: 1rem;
    /* Restored original size */
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    color: var(--color-sumimuro) !important;
    text-shadow: none;
    padding: 5px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 5px;
    width: 0;
    height: 1px;
    background: var(--color-sumimuro) !important;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.8;
    transform: scaleY(0.5);
    transform-origin: bottom;
}

.nav-list a:hover::after {
    width: calc(100% - 10px);
}

.lang-switch {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.9rem;
    /* Restored size */
    color: var(--color-gray);
}

.lang-switch a {
    padding: 5px;
    color: var(--color-gray);
    text-decoration: none;
}

.lang-switch .active {
    color: var(--color-sumimuro);
    pointer-events: none;
    font-weight: 700;
    border-bottom: 1px solid var(--color-sumimuro);
}

/* Oshinagaki Header Style */
.header.oshinagaki-style {
    background-image: url('washi_texture.png');
    background-color: var(--color-gofun);
    /* Fallback */
    background-repeat: repeat;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 4px double var(--color-gray);
    /* Traditional touch */
    padding: 20px 60px;
    height: auto;
    align-items: flex-start;
}

.header.oshinagaki-style .logo a {
    color: var(--color-sumimuro);
    text-shadow: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.8rem;
    letter-spacing: 0.3em;
    margin-top: 10px;
}

.header-right {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.oshinagaki-label {
    writing-mode: vertical-rl;
    font-family: var(--font-jp);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    border: 1px solid var(--color-sumimuro);
    padding: 10px 6px;
    background: #fff;
    /* Optional: make it look like a paper slip */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.header.oshinagaki-style .nav {
    margin-top: 10px;
}

.header.oshinagaki-style .nav-list {
    flex-direction: column;
    /* Stack links vertically for menu feel? Or keep horizontal? User said "Header no yoko ni oshinagaki", let's keep nav horizontal but ensure visibility. Actually, Oshinagaki usually implies a list. Let's keep it simple as requested: "Header no yoko ni... kawarazu nihongo de kaite hoshii". */
    /* Let's stick to horizontal nav next to the label for now to not break layout too much, but style links to look like menu items. */
    gap: 20px;
}

.header.oshinagaki-style .nav-list a {
    color: var(--color-sumimuro);
    text-shadow: none;
    font-family: var(--font-jp);
    /* Use Japanese font even for English links for consistency? Or keep consistent with site. Let's keep font but ensure color is dark. */
    font-weight: 500;
}

.header.oshinagaki-style .nav-list a::after {
    background: var(--color-sumimuro);
}

.header.oshinagaki-style .lang-switch {
    color: var(--color-gray);
    margin-top: 10px;
    /* align with bottom if needed */
}

.header.oshinagaki-style .lang-switch .active {
    color: var(--color-sumimuro);
}

/* Override previous scroll effects since this header is always solid/washi */
.header.oshinagaki-style.scrolled {
    background-image: url('washi_texture.png');
    padding: 15px 60px;
}

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 120px;
    /* Balance vertical alignment to center content */
    /* Prevent overlap with fixed header and scroll indicator */
}

/* Hero content z-index reset */
.hero-content {
    z-index: 2;
}

.scroll-indicator {
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75);
    z-index: 1;
    opacity: 0;
    /* Transformation for Ken Burns Effect */
    transform: scale(1.1);
    /* Long transition for smooth continuous movement */
    transition: opacity 3s ease-in-out, transform 12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-bg.active {
    opacity: 1;
    /* Zoom in slowly while active */
    transform: scale(1.0);
}

.hero-content {
    position: absolute;
    /* Changed from relative to absolute for centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

/* Force centering and disable slide-up for Hero Content */
.hero-content.fade-in,
.hero-content.fade-in.visible {
    transform: translate(-50%, -50%) !important;
    transition: opacity 2s ease-out;
    /* Opacity only */
}

/* Hero Title - Global (Defaults to 2rem for Subpage Kanji) */
.hero-title {
    font-size: 2rem;
    /* Restored size for single Kanji */
    letter-spacing: 0.8em;
    line-height: 2.5;
    margin: 0 auto 10px auto;
    padding: 0;
    font-weight: 300;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5);
    width: auto;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Homepage JP Specific Override (Avoid overlapping) */
html[lang="ja"] .hero-content .hero-title {
    font-size: 1.4rem;
}

/* Homepage EN/RU Specific Override (Horizontal) */
html[lang="en"] .hero-content .hero-title,
html[lang="ru"] .hero-content .hero-title {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    font-size: 1.6rem;
    /* Slightly larger for English/Russian readablity? Or keep 1.4? Let's try 1.6 */
    letter-spacing: 0.2em;
    /* "Ma" for horizontal */
    width: 100%;
    text-align: center;
    line-height: 1.6;
    margin-top: 20px;
}

/* Subpage Hero Title - Strict Single Character Override */
.subpage .hero-title {
    width: 1em !important;
    /* Force exact 1-char width */
    letter-spacing: 0 !important;
    /* Remove spacing to prevent center shift */
    margin: 0 auto 10px auto !important;
    line-height: 1 !important;
}

/* Contact Page Override is handled below */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: white;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Philosophy Section */
.philosophy {
    padding: 15vh 0;
    /* Significant vertical spacing "Ma" to prevent overlap */
    position: relative;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.philosophy-inner {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Stack EN above JP */
    justify-content: center;
    align-items: center;
    gap: 60px;
    /* Space between Gold Text and Japanese */
}

.philosophy-en {
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    clip-path: none !important;
    /* Visible by default */
    opacity: 1 !important;
    display: block !important;
    text-align: center;
    width: 100%;
}

/* Trigger class for Wipe (added via JS) */
.philosophy-en.visible {
    clip-path: inset(0 0 0 0);
    /* Reveal all */
}

.philosophy-jp {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed;
    height: auto !important;
    text-align: center;
    width: 100%;
    line-height: 2 !important;
    margin-top: 30px;
    font-size: 1.6rem;
}

/* Custom "Ukabi-agaru" Animation */
.float-up-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 2s ease-out, transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.float-up-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Categories Section */
.categories {
    padding: var(--space-l) var(--space-m);
    background-color: var(--color-gofun);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* For the 2-grid row if needed, or stick to 3 */
/* If 5 items, maybe 3 top 2 bottom? Flex wrap might be better */


.category-card {
    flex: 0 1 calc(33.333% - 20px);
    margin-bottom: 40px;
    position: relative;
    cursor: pointer;
    min-width: 300px;
    text-decoration: none;
    display: block;
    color: inherit;
}

/* Sub-page Styles */
.subpage .header {
    background-color: var(--color-sumimuro);
    padding: 20px 60px;
}

.subpage .logo a,
.subpage .nav-list a {
    color: #fff;
}

.subpage .nav-list a::after {
    background: #fff;
}

.page-header {
    height: 50vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
    /* Offset fixed header */
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-sumimuro);
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Vertical alignment */
}

.content-section {
    padding: var(--space-l) var(--space-m);
    min-height: 40vh;
    background: #fff;
}

.content-inner {
    max-width: 800px;
    margin: 0 auto;
}

.card-image {
    width: 100%;
    height: 400px;
    /* Taller aspect ratio */
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.category-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    margin-top: 24px;
    text-align: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.8;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--color-sumimuro);
    color: #fff;
    padding: var(--space-xl) 0;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-nav a {
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    font-family: var(--font-en);
    font-size: 0.7rem;
    opacity: 0.3;
    letter-spacing: 0.1em;
}

/* Translated Title (Subtitle for subpages) */
.translated-title {
    font-family: var(--font-en);
    font-size: 1.2rem;
    /* Increased size for balance */
    letter-spacing: 0.2em;
    /* Wider spacing */
    margin-top: 10px;
    /* More breathing room */
    color: var(--color-gold);
    text-transform: uppercase;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Softer glow */
    position: relative;
    padding-bottom: 8px;
    /* Adjusted space for underline */
}

/* Soft Gradient Underline */
/* Soft Gradient Underline (Refined) */
.translated-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    /* Wider line for better proportion */
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(197, 160, 89, 1) 50%, transparent 100%);
    /* Smoother fade */
    opacity: 0.9;
    filter: blur(0.8px) drop-shadow(0 0 2px rgba(197, 160, 89, 0.4));
    /* Fluffy edge + Glow */
}

/* Contact page should also be vertical now, inheriting global styles */
.contact-page .hero-title {
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    margin: 0 auto 5px auto !important;
    letter-spacing: 0.2em;
    width: auto !important;
    /* Allow width to accommodate the vertical block */
    /* Strict centering already applied by margin: 0 auto */
}

.contact-page .page-header-content {
    flex-direction: column;
    /* Ensure stack */
}

/* Force horizontal text for EN/RU content sections */
html[lang="en"] .philosophy-jp,
html[lang="ru"] .philosophy-jp {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    text-align: center;
    height: auto !important;
    width: auto !important;
    margin: 0 auto;
}

/* Removed .hero-title override to maintain vertical aesthetics */

html[lang="en"] .philosophy-jp,
html[lang="ru"] .philosophy-jp {
    text-align: left;
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Keep main kanji vertical in header for all languages, but we need to ensure the wrapper allows it */
/* The structure will be h2.vertical (Kanji) + div.translated (English) */


/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .logo a {
        font-size: 1.2rem;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        /* Changed to absolute */
        top: 30px;
        /* Align vertical center approx */
        right: 20px;
        z-index: 1002;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--color-sumimuro);
        margin-bottom: 6px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn span:last-child {
        margin-bottom: 0;
    }

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

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

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

    /* Mobile Navigation Overlay */
    .nav {
        display: block;
        /* Override default hidden if set */
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 100%;
        height: 100vh;
        background-color: var(--color-gofun);
        background-image: url('washi_texture.png');
        z-index: 1001;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        /* Ensure it's column */
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-list a {
        font-size: 1.2rem;
    }

    .lang-switch {
        /* Position on header for mobile too? Or obscure? */
        /* If we keep it top right, it conflicts with burger at 20px right */
        /* Let's move it left of burger */
        position: absolute;
        top: 25px;
        right: 60px;
        /* Safe distance from burger */
        margin: 0;
    }

    .hero-title {
        font-size: 1.5rem;
        /* Reduced for mobile */
        letter-spacing: 0.2em;
        /* "Ma" reduced to fit screen */
        line-height: 2;
        /* Width removed for vertical text centering */
    }

    .philosophy-inner {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        /* Reduced gap from 60px */
    }

    .philosophy-en {
        transform: rotate(0);
        margin-top: 0;
        margin-bottom: 0;
        /* Handled by gap */
        font-size: 0.9rem;
        /* Slightly smaller */
        letter-spacing: 0.15em;
        width: 100%;
        text-align: center;
    }

    .philosophy-jp {
        writing-mode: horizontal-tb;
        height: auto;
        text-align: center;
        width: 100%;
    }

    .category-card {
        flex: 0 1 100%;
        max-width: 400px;
    }
}

/* Default state for menu button on desktop */
.mobile-menu-btn {
    display: none;
}

/* Layout Refinement Overrides */
.philosophy {
    padding: 10vh 20px !important;
    /* Balanced mobile padding */
    min-height: 60vh !important;
}

.categories {
    padding: var(--space-l) var(--space-m) !important;
}

.category-grid {
    gap: 20px !important;
}


/* Sub-page Styles */
/* Sub-page Styles - Header unified with homepage */
/* .subpage .header removed */

/* .subpage .logo a, .subpage .nav-list a removed */

/* .subpage .nav-list a::after removed */

.page-header {
    height: 50vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
    /* Offset fixed header */
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-sumimuro);
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-section {
    padding: var(--space-l) var(--space-m);
    min-height: 40vh;
    background: #fff;
}

.content-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Back to Top Button - Luxury Style */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-sumimuro);
    /* Dark background */
    color: #fff;
    /* White text */
    border: 1px solid var(--color-gold);
    /* Gold border for luxury */
    border-radius: 50%;
    font-family: var(--font-en);
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Stronger shadow */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.1em;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-gold);
    color: var(--color-sumimuro);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
    /* Gold glow on hover */
}

/* Contact Link Styles for Clickability */
.contact-link {
    display: inline-block;
    color: inherit;
    text-decoration: none !important;
    border-bottom: 1px solid var(--color-gold);
    padding-bottom: 2px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-link:hover {
    color: var(--color-gold) !important;
    border-bottom-color: transparent;
    transform: translateX(4px);
}

/* Tours & Destinations Styles */
.tour-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.tour-item {
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s ease;
}

.tour-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tour-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-gold);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

.tour-item p {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.8;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

.destination-item {
    padding: 30px 20px;
    border: 1px solid var(--color-gray);
    text-align: center;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    color: var(--color-sumimuro);
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    display: block;
    /* Ensure block layout */
}

.destination-item:hover {
    background-color: var(--color-sumimuro);
    color: #fff;
    border-color: var(--color-sumimuro);
}

/* Improved Visibility for Translated Title (Subpage) */
.translated-title {
    color: #ffffff;
    /* White for max contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    /* Strong drop shadow + glow */
    font-weight: 600;
    /* Slightly bolder */
    letter-spacing: 0.25em;
    /* Increase spacing slightly for readability */
}

/* Adjust the underline to match or keep gold for accent to avoid "all white" overload? */
/* Actually user said "color matches are okay", white text is clearest. */
/* Keeping gold underline as an accent sounds nice. */
/* But if I override with cascade, I should override fully. */

/* Overriding CSS by adding at the end */
.translated-title::after {
    /* If I want white underline */
    background: linear-gradient(90deg, transparent 0%, #ffffff 50%, transparent 100%);
    opacity: 0.8;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Luxury Float-Up Reveal Animation */
@keyframes floatUpReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Override previous Translated Title Styles for Luxury */
.translated-title {
    color: #ffffff !important;
    /* Soft but deep shadow for readability and luxury */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2) !important;
    font-weight: 500 !important;
    letter-spacing: 0.5em !important;
    /* Extremely wide for luxury feel */
    margin: 20px auto 0 auto !important;
    /* Centered */
    position: relative;

    /* Animation settings */
    opacity: 0;
    /* Star invisible */
    animation: floatUpReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    animation-delay: 0.5s;
    /* Wait for page load */

    font-family: var(--font-en);
    text-transform: uppercase;
}

/* Refined Gold Gradient Underline */
.translated-title::after {
    /* No need for !important if specificity is ok, but reusing same selector */
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px !important;
    /* Shorter, more elegant */
    height: 1px !important;
    background: linear-gradient(90deg, transparent 0%, #c5a059 50%, transparent 100%) !important;
    /* Gold accent */
    opacity: 0;
    animation: floatUpReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    animation-delay: 1.0s;
    /* Line appears after text */
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.6));
}

/* Fix Alignment of Translated Title Underline */
.translated-title {
    padding-left: 0.5em !important;
    /* Offset letter-spacing on the right */
    box-sizing: content-box;
    /* Ensure padding doesn't squeeze width if relevant */
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure underline is centered relative to the whole box including padding */
.translated-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Force Horizontal Layout for Philosophy Section on Desktop */
.philosophy-jp {
    writing-mode: horizontal-tb !important;
    height: auto !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 2 !important;
    margin-top: 30px;
}

.philosophy-en {
    writing-mode: horizontal-tb !important;
    text-align: center !important;
    width: 100% !important;
    clip-path: none !important;
    /* Eliminate wipe effect if it's hiding text */
    opacity: 1 !important;
    /* Ensure visibility */
    margin-bottom: 20px;
    display: block !important;
}

.philosophy-inner {
    flex-direction: column !important;
    /* Stack vertically */
    align-items: center !important;
    justify-content: center !important;
}

/* Button Styles - Updated to Simple Link */
.btn-gold {
    display: inline-block;
    padding: 10px 0;
    border: none;
    border-bottom: 3px solid var(--color-gold);
    /* Simple underline specific request */
    color: var(--color-sumimuro);
    /* Dark text for contrast on white/texture bg */
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    background: transparent;
    cursor: pointer;
    margin-top: 40px;
    text-decoration: none !important;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: none;
    border-bottom-color: var(--color-sumimuro);
}

.btn-gold::after {
    display: none;
}

/* Unified Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    margin-top: 60px;
}

.grid-layout.col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-layout.col-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {

    .grid-layout,
    .grid-layout.col-4,
    .grid-layout.col-2 {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.grid-item {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    /* For zoom effect */
}

.grid-img-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    /* Vertical portrait usually? Or 4/3? Wabenka style usually portrait or square. Let's go 3/4 or 4/5. */
    overflow: hidden;
    margin-bottom: 20px;
}

.grid-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.grid-item:hover .grid-img {
    transform: scale(1.05);
    /* Zoom effect */
}

.grid-info {
    text-align: center;
    position: relative;
}

.grid-title-en {
    font-family: var(--font-en);
    color: var(--color-gold);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.grid-title-jp {
    font-size: 1.4rem;
    margin-bottom: 15px;
    /* Vertical text for JP title as requested */
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 120px;
    /* Fixed height for vertical alignment */
    margin: 0 auto 20px auto;
    display: flex;
    /* Centering vertical text? */
    align-items: center;
    justify-content: center;
    width: 40px;
}

.grid-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 2;
}

/* Section Spacing - Ma */
.content-section {
    padding: 200px 0 !important;
}

/* Dark Theme for Art & Space */
body.dark-theme {
    background-color: #1A1A1A;
    color: #f7f7f7;
}

body.dark-theme .header {
    background-image: none;
    background-color: #1A1A1A;
    border-bottom: 1px solid #333;
}

body.dark-theme .btn-gold {
    border-bottom-color: var(--color-gold);
}