@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --color-primary: #e31e24;
    /* Red */
    --color-secondary: #1a1a1a;
    /* Black */
    --color-bg: #fdfaf5;
    /* Beige/Off-white */
    --color-text: #333333;
    --font-main: 'Noto Sans JP', sans-serif;
    --section-margin-sp: 80px;
    --section-margin-pc: 120px;
}

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

html, body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--color-text);
    background-image: url('../img/bodybg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
}

/* Sections */
section {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    section {
        margin-bottom: 0;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Section Headings with master_4-1 background */
.section-title-wrap {
    position: relative;
    max-width: 50%;
    margin: 0 auto 60px;
    text-align: center;
}

.section-title-bg {
    width: 100%;
    height: auto;
    display: block;
}

.section-title-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* First View */
#fv {
    margin-bottom: 0;
    height: auto;
}

.swiper-fv {
    width: 100%;
}

.swiper-fv .swiper-slide {
    height: auto;
}

.swiper-fv img {
    width: 100%;
    height: auto;
    display: block;
}

/* Ensure no rounded corners/shadows on images as per requirements */
img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Second View (SV Banner) */
#sv {
    margin-bottom: 0;
    margin-top: 0;
}

@media (min-width: 768px) {
    #sv {
        margin-bottom: 0;
    }
}

.sv-banner-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

/* CTA */
.cta-section {
    background-color: var(--color-primary);
    padding: 60px 0;
    color: #fff;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* About & Message (Asymmetrical) */
.asymmetry-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 768px) {
    .asymmetry-grid {
        grid-template-columns: 6fr 4fr;
        align-items: center;
    }

    .asymmetry-grid.reverse {
        grid-template-columns: 4fr 6fr;
    }
}

/* Parallax */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    position: relative;
}

/* For mobile, fixed bg often doesn't work well, so we might need a fallback */
@media screen and (max-width: 1024px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Menu Price Section */
.menu-price-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted #ccc;
    margin-bottom: 10px;
}

/* Gallery */
.gallery-swiper {
    padding-bottom: 50px;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

/* Voice Card */
.voice-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    height: 100%;
}

.voice-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.voice-rating {
    color: #ffb400;
    margin-bottom: 15px;
}

/* Hamburger Overlay */
.hamburger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hamburger-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hamburger-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.overlay-menu-list {
    list-style: none;
    text-align: center;
}

.overlay-menu-list li {
    margin: 20px 0;
}

.overlay-menu-list a {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 700;
}

/* Top Scroll Button */
#backToTop {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 1500;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* Floating Footer CTA (SP) */
.floating-cta-sp {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1500;
}

@media (min-width: 768px) {
    .floating-cta-sp {
        display: none;
    }
}

.floating-cta-sp a {
    flex: 1;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.btn-tel {
    background: #333;
}

.btn-web {
    background: var(--color-primary);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SNS Centering on SP */
@media (max-width: 767px) {
    .contact-sns-wrap {
        justify-content: center;
    }
}

/* Scroll Down Hint for FV */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

img {
    max-width: 100%;
}

/* Message section gap override */
@media (min-width: 1024px) {
    #message-section .lg\:gap-16 {
        gap: 0rem;
    }
}

/* Service Scroll Reveal */
.service-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.service-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Custom Styles from index.html internal style block */



/* 動くグラデーション背景 (ボディ画像が見えるように半透明化) */
.moving-gradient {
    background: linear-gradient(-45deg, rgba(255, 255, 255, 0.75), rgba(243, 237, 230, 0.75), rgba(232, 223, 216, 0.75), rgba(253, 251, 251, 0.75));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* セクション共通パディング */
.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* 見出し装飾 */
.heading-decoration {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.heading-decoration::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #8b7d72;
}

.heading-decoration-left::after {
    left: 0;
    transform: translateX(0);
}

/* モバイルメニューのトランジション */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}

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

/* Swiper カスタマイズ */
.swiper-button-next,
.swiper-button-prev {
    color: #8b7d72 !important;
}

.swiper-pagination-bullet-active {
    background: #8b7d72 !important;
}

/* FV フェードアニメーション */
.fv-fade-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fv-fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fvFadeInOut 18s infinite;
}

.fv-fade-img:nth-child(1) {
    animation-delay: 0s;
}

.fv-fade-img:nth-child(2) {
    animation-delay: 6s;
}

.fv-fade-img:nth-child(3) {
    animation-delay: 12s;
}

@keyframes fvFadeInOut {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* TVセクション背景 */
.tv-section-bg {
    background-image: url('../img/tvbg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 背景画像の明度を少し落としてテキストを見やすくするためのオーバーレイ */
.tv-section-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* コンテンツをオーバーレイの上に配置 */
.tv-section-content {
    position: relative;
    z-index: 2;
}

/* ===== GALLERY LIGHTBOX ===== */
#gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

#gallery-lightbox.active {
    display: flex;
}

#gallery-lightbox .lb-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery-lightbox img#lb-img {
    max-width: 88vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    display: block;
    animation: lbFadeIn 0.3s ease;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Caption */
#lb-caption {
    position: absolute;
    bottom: -2.2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Close button */
#lb-close {
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
    z-index: 10001;
}

#lb-close:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(90deg);
}

/* Prev / Next arrows */
.lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 1.6rem;
    transition: background 0.2s, transform 0.2s;
    z-index: 10001;
    user-select: none;
}

#lb-prev {
    left: 1.2rem;
}

#lb-next {
    right: 1.2rem;
}

.lb-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

#lb-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

#lb-next:hover {
    transform: translateY(-50%) translateX(3px);
}

/* Counter */
#lb-counter {
    position: fixed;
    top: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    z-index: 10001;
}

/* Gallery slide cursor */
.gallery-slide-item {
    cursor: zoom-in;
}

/* Message section gap override */
@media (min-width: 1024px) {
    #message-section .lg\:gap-16 {
        gap: 0rem;
    }
}

/* Scroll Reveal System */
.service-reveal, .reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal-on-scroll.reveal-left {
    transform: translateX(-40px);
}

.reveal-on-scroll.reveal-right {
    transform: translateX(40px);
}

.reveal-on-scroll.reveal-fade {
    transform: none;
}

.service-reveal.revealed, .reveal-on-scroll.revealed {
    opacity: 1;
    transform: translate(0) scale(1) !important;
}

/* Staggered Delay classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-700 { transition-delay: 700ms; }

/* Elegant hover transitions */
.hover-float {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}
.hover-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Entry Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-delay-100 { animation-delay: 150ms; }
.anim-delay-200 { animation-delay: 300ms; }
.anim-delay-300 { animation-delay: 450ms; }

/* Mobile padding adjustments */
@media (max-width: 767px) {
    .lg\:px-8 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .p-6, .p-8 {
        padding: 40px 10px !important;
    }

    .px-4, .px-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (min-width: 768px) {
    .md\:p-8 {
        padding: 1.5rem !important;
    }
}