:root {
    --color-primary: #6c584c;
    --color-text: #383838;
    --color-background: #fdfcfb;
    --color-background-light: #f7f5f2;
    --color-accent: #c5b8a5;
    --color-border: #e8e5e1;
    --font-family-serif: 'Shippori Mincho', serif;
    --font-family-sans: 'Noto Sans JP', sans-serif;
    --header-height: 80px;
}

html { 
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { 
    margin: 0; 
    font-family: var(--font-family-sans); 
    color: var(--color-text); 
    background-color: var(--color-background); 
    line-height: 1.8; 
    letter-spacing: 0.05em; 
}

/* Header */
.header {
    padding: 0 4%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-sizing: border-box;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
}
.header.is-scrolled {
    background-color: rgba(253, 252, 251, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header__inner { 
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.header__logo img { height: 36px; display: block; }
.header__nav { display: flex; gap: 40px; }
.header__nav a { 
    text-decoration: none; 
    color: #fff; 
    font-weight: 500; 
    position: relative; 
    padding: 5px 0; 
    transition: color 0.4s ease; 
}
.header.is-scrolled .header__nav a { color: var(--color-text); }
.header__nav a::after { 
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0; 
    width: 0; 
    height: 1px; 
    background-color: var(--color-accent); 
    transition: width 0.3s ease; 
}
.header__nav a:hover::after { width: 100%; }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero__image-wrapper { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    z-index: -1; 
    animation: hero-zoom 15s ease-out forwards;
}
@keyframes hero-zoom { 
    from { transform: scale(1.1); } 
    to { transform: scale(1); } 
}
.hero__image-wrapper::after { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.4));
}
.hero__image { width: 100%; height: 100%; object-fit: cover; }
.hero__content { 
    color: #fff; 
    text-align: center; 
}
.hero__title {
    font-family: var(--font-family-serif);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 2.2;
    margin: 0;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    writing-mode: vertical-rl;
    letter-spacing: 0.2em;
}
.hero__title span {
    opacity: 0;
    transform: translateY(20px);
    display: inline-block;
    animation: fade-in-up 1s forwards;
}
.hero__title span:nth-child(1) { animation-delay: 0.5s; }
.hero__title span:nth-child(2) { animation-delay: 0.8s; }
.hero__title span:nth-child(3) { animation-delay: 1.1s; }
@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* General Section Styling */
.section { padding: 120px 4%; }
.section--light-bg { background-color: var(--color-background-light); }
.section__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.section__inner--wide { max-width: 1200px; }
.section__title {
    font-family: var(--font-family-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 60px 0;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}
.section__title::before { /* English Title */
    content: attr(data-en);
    position: absolute;
    top: -1.2em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-family-sans);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0.2em;
}
.section__title::after { /* Underline */
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60px; 
    height: 2px; 
    background-color: var(--color-accent); 
}
.section__text { font-size: 1.1rem; max-width: 700px; margin: 0 auto; text-align: left;}

/* Facility / Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.gallery__item {
    text-decoration: none;
    display: block;
    overflow: hidden;
    position: relative;
}
.gallery__item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    box-sizing: border-box;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.gallery__item:hover .gallery__caption {
    transform: translateY(0);
    opacity: 1;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
    font-weight: 500;
    font-size: 1.1rem;
    padding: 25px 50px 25px 0;
    cursor: pointer;
    position: relative;
}
.faq-item__question::after {
    content: '+';
    font-family: var(--font-family-serif);
    position: absolute;
    right: 10px;
    top: 50%;
    font-size: 1.8rem;
    font-weight: 400;
    transform: translateY(-50%);
    transition: transform 0.4s ease;
    color: var(--color-accent);
}
.faq-item__question.is-active::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__answer {
    line-height: 1.8;
    margin: 0;
    padding: 0 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}
.faq-item__answer.is-active {
    padding-bottom: 25px;
    max-height: 200px;
}

/* Access */
.access-container { display: flex; flex-wrap: wrap; gap: 60px; text-align: left; align-items: center; }
.access-info { flex: 1; min-width: 320px; }
.access-map { flex: 1.2; min-width: 320px; border: 1px solid var(--color-border); }
.section__title--left { text-align: left; display: block; }
.section__title--left::before { left: 0; transform: translateX(0); }
.section__title--left::after { left: 0; transform: translateX(0); }
.info-list { padding: 0; margin: 0; }
.info-list dt { font-weight: 500; margin-top: 25px; color: var(--color-primary); font-size: 0.9rem; }
.info-list dd { margin: 5px 0 0 0; font-size: 1.1rem; }
.info-list__tel { font-size: 1.5rem; font-weight: 500; color: var(--color-text); text-decoration: none; }

/* Footer */
.footer {
    background-color: #2c2c2c;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 80px 4%;
}
.footer__inner { max-width: 1200px; margin: 0 auto; }
.footer__logo img { height: 40px; margin-bottom: 20px; }
.footer__address { font-size: 0.9rem; line-height: 1.8; margin: 0 0 40px 0; }
.footer__copyright { font-size: 0.8rem; opacity: 0.5; }

/* Utility */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}
.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -70%) rotate(-45deg);
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.floating-tel { display: none; } /* Hide for PC */

/* Responsive */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .header__nav { display: none; }
    .hero__title { font-size: 2rem; line-height: 2.0; }
    .section { padding: 80px 5%; }
    .section__title { font-size: 2rem; }
    .section__text { font-size: 1rem; }
    .gallery { grid-template-columns: 1fr; gap: 30px; }
    body { padding-bottom: 70px; }
    .floating-tel {
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        background-color: var(--color-primary);
        color: #fff;
        text-align: center;
        text-decoration: none;
        padding: 20px 10px;
        font-size: 1rem;
        font-weight: 500;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 950;
        display: block;
    }
}