/* Custom Aesthetics for Maruzen Chain LP - Refined High-end */

:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #8b0000;
    --brown-accent: #5d2b1e;
    /* Dark reddish brown for shop button */
    --text-muted: #666666;
    --bg-light: #f9f9f9;
}

html {
    font-size: 14px;
    /* Slightly smaller base size */
}

@media (min-width: 1024px) {
    html {
        font-size: 15px;
        /* Scaled for desktop but still refined */
    }
}

body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent !important;
    color: var(--primary);
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.05em;
    line-height: 1.8;
    /* Elegant line height */
}

/* Typography */
h1,
h2,
h3,
h4,
.font-title {
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 700;
}

p,
li,
.font-serif {
    font-family: 'Noto Serif JP', serif;
}

/* Vertical Text */
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.4em;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* FV Background */
#fv {
    height: 100vh;
    min-height: 500px;
    background-image: url('../img/FV4.png');
    /* PC */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

@media (max-width: 1023px) {
    #fv {
        height: auto;
        min-height: 0;
        background-image: none;
        display: block;
        /* SP */
    }
}

#fv::before {
    display: none;
    /* Ensure no overlay */
}

@media (min-width: 1024px) {
    #fv {
        height: 100vh;
    }
}

/* Header States */
#header {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#header.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding-top: 12px;
    padding-bottom: 12px;
}

.init-logo-wrap {
    width: 130px;
    /* Increased logo size */
    transition: width 0.3s ease;
}

.tel-anchor {
    width: fit-content;
    display: flex;
    justify-content: flex-start;
}

#header:not(.scrolled) .header-info-init a,
#header:not(.scrolled) .header-info-init p {
    color: white !important;
}

#header:not(.scrolled) .nav-vertical-init a {
    color: white !important;
}

/* SP Header Toggle Status */
@media (max-width: 1023px) {
    #header:not(.scrolled) #menu-open {
        display: none !important;
    }

    #header.scrolled {
        background: rgba(255, 255, 255, 1.0);
    }

    #header.scrolled .nav-vertical-init {
        display: none !important;
    }
}

/* Header components visibility */
.nav-standard,
.shop-circle-btn {
    display: none !important;
}

#header.scrolled .nav-standard {
    display: none;
}

@media (min-width: 1024px) {
    #header.scrolled .nav-standard {
        display: flex !important;
    }

    #header.scrolled .shop-circle-btn {
        display: flex !important;
    }

    #header.scrolled .header-info-init,
    #header.scrolled .nav-vertical-init {
        display: none !important;
    }

    /* Hide English section title in FV */
    #header:not(.scrolled) .header-english-title {
        display: none;
    }
}

/* PC FV Nav: Second block from right (50%-75%) */
.nav-vertical-init {
    position: absolute;
    /* Changed from fixed to scroll with header */
    top: 40px;
    left: 50%;
    width: 25%;
    z-index: 100;
}

.nav-vertical-init ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    /* Increased gap */
}

.nav-vertical-init li {
    display: block;
}

.nav-vertical-init li a {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.95rem;
    /* Reverted per user request */
    letter-spacing: 0.2em;
    font-weight: 700;
    white-space: nowrap;
    display: block;
}

/* FV Catchphrase */
.fv-copy {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    width: 100%;
    z-index: 10;
    font-family: 'Shippori Mincho B1', serif;
    letter-spacing: 0.3em;
}

.fv-copy .catch {
    font-size: 1.5rem;
    line-height: 1.8;
}

@media (min-width: 1024px) {
    .fv-copy .catch {
        font-size: 2.2rem;
    }
}


@media (max-width: 1023px) {
    .nav-vertical-init {
        display: none !important;
    }

    .header-info-init {
        display: none !important;
    }
}

/* Section Common Spacing */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}

@media (min-width: 1024px) {
    section {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

/* Backgrounds */
.bg-section {
    position: relative;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.bg-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ABOUT Section Background Fix */
#about {
    background-image: url('../img/about_service.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 50;
    /* Higher layer per request */
    margin-top: -100px;
    padding-top: 150px !important;
    padding-bottom: 50px !important;
    /* Give some room at bottom */
    color: var(--primary);
}

@media (max-width: 1023px) {
    #about {
        background-image: none !important;
        position: relative;
        overflow: hidden;
        clip-path: inset(0);
    }

    #about::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/about_service.png');
        background-size: cover;
        background-position: center;
        z-index: -1;
    }
}

/* Recommended section */
#tv {
    z-index: 51;
    /* Higher than #about */
}

.about-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    gap: 0;
    line-height: 0;
    font-size: 0;
}

.about-bg-layer img {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    transform: scale(1.02);
    /* Slight scale to prevent edge gaps */
}

.about-bg-layer img:nth-child(1) {
    height: auto;
    z-index: 2;
}

.about-bg-layer img:nth-child(2) {
    flex: 1 1 auto;
    object-fit: cover;
    margin-top: -5px;
    /* Deeper overlap */
    margin-bottom: -5px;
    z-index: 1;
}




@media (max-width: 1023px) {
    #about {
        margin-top: -60px;
        padding-top: 100px !important;
        padding-bottom: 0 !important;
    }

    .asymmetric-left {
        width: 96vw !important;
        max-width: none !important;
        margin-left: -5vw !important;
        margin-right: auto !important;
        margin-bottom: 0 !important;
    }

    .asymmetric-right {
        width: 90vw !important;
        max-width: none !important;
        margin-right: -5vw !important;
        margin-left: auto !important;
    }

    .about-title-pc {
        position: relative;
        z-index: 10;
        margin-top: -80px !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    .about-title-pc img {
        max-width: 140px !important;
    }

    /* First Row PC margin removal for SP */
    #about .flex-col.gap-12 {
        gap: 0 !important;
        margin-bottom: 0 !important;
    }
}

#about::before {
    display: none;
}

.about-img {
    width: 100%;
    height: auto !important;
    /* Force no fixed height */
    object-fit: contain !important;
    /* Ensure no trimming */
    object-position: center;
}

@media (min-width: 1024px) {
    .asymmetric-right {
        width: 40vw !important;
        /* Slightly smaller */
        max-width: none !important;
        margin-left: auto !important;
        margin-right: calc((100vw - 100%) / -2 - 24px) !important;
        margin-top: -300px;
        /* Higher */
    }

    .asymmetric-left {
        width: 60vw !important;
        max-width: none !important;
        margin-left: calc((100vw - 100%) / -2 - 24px) !important;
        margin-top: 60px;
        /* 下に下げる */
    }

    .about-title-pc {
        transform: translateY(40px) translateX(40px) scale(1.2);
        /* Reduced to 1.2x per request */
        transform-origin: center;
        margin-top: -40px;
        /* 上へ上げる */
        transition: opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            transform 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        opacity: 0;
    }

    .about-title-pc.active {
        opacity: 1 !important;
        transform: translateY(0) translateX(40px) scale(1.2) !important;
    }

    .about-row2-text {
        margin-top: -250px;
        max-width: 450px;
        /* 横幅を制限 */
        margin-left: 120px;
        /* さらに右へ移動 */
    }
}

/* About Service Parallax Section */
.about-service-parallax {
    height: 500px;
    /* 800pxから500pxへ縮小調整 */
    background-image: url('../img/about_service.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

@media (max-width: 1023px) {
    .about-service-parallax {
        height: 250px;
        background-image: none !important;
        position: relative;
        overflow: hidden;
        clip-path: inset(0);
    }

    .about-service-parallax::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/about_service.png');
        background-size: cover;
        background-position: center;
        z-index: -1;
    }
}

/* Service Section Background */
#service {
    background-image: url('../img/point_background1.png');
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

#service::before {
    display: none;
}

/* Service to Menu Parallax */
.service-menu-parallax {
    height: 400px;
    background-image: url('../img/service_menu.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 10;
}

@media (max-width: 1023px) {
    .service-menu-parallax {
        height: 250px;
        background-image: none !important;
        position: relative;
        overflow: hidden;
        clip-path: inset(0);
    }

    .service-menu-parallax::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/service_menu.png');
        background-size: cover;
        background-position: center;
        z-index: -1;
    }
}

/* --- New Course Menu Section Styles --- */
.course-section {
    position: relative;
    overflow: hidden;
    background-image: url('../img/menu_haikei2.jpeg');
    background-size: cover;
    background-position: center;
    background-color: transparent;
}

/* Course Background Layer removed as per request */

.course-section .container {
    position: relative;
    z-index: 2;
    /* Higher than course-bg-layer */
}

.menu-intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

@media (min-width: 1024px) {

    .menu-intro-container,
    .course-card.recommended,
    .course-grid {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .menu-intro-container {
        flex-direction: row;
        align-items: center;
        gap: 60px;
        margin-bottom: 100px;
    }
}

.menu-intro-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .lg-w-2-3 {
        width: 66.666%;
    }

    .lg-w-1-3 {
        width: 33.333%;
    }
}

.menu-intro-text {
    flex: 1;
    text-align: center;
    /* 画像のように中央寄せ */
}

.menu-intro-text .en {
    font-size: 0.85rem;
    letter-spacing: 0.5em;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.menu-intro-text h2 {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    letter-spacing: 0.2em;
}

.menu-intro-text .desc {
    font-size: 1rem;
    line-height: 2.2;
    color: #666;
    letter-spacing: 0.1em;
}

/* Course Cards */
.course-card {
    background-image: url('../img/menubackground.png');
    background-size: cover;
    background-position: center;
    padding: 60px 40px;
    position: relative;
    margin-bottom: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
}

.course-card.recommended {
    padding: 80px 60px;
}

.course-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.course-title {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
}

@media (min-width: 1024px) {
    .course-title {
        font-size: 2.4rem;
    }
}

.badge-red {
    background: #7b0000;
    color: #fff;
    padding: 8px 25px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.2em;
}

.course-separator {
    width: 100%;
    height: 1px;
    background: #333;
    margin: 20px auto 40px;
}

.course-body {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.vertical-label {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: 'Shippori Mincho B1', serif;
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    color: #333;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
    padding: 10px 5px;
    height: fit-content;
    margin-top: 5px;
}

.course-content-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 40px;
    font-size: 1rem;
    color: #333;
}

@media (min-width: 1024px) {
    .course-card.recommended .course-content-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .course-card {
        padding: 40px 20px;
    }

    .course-header {
        flex-direction: column;
        gap: 10px;
    }

    .course-title {
        font-size: 1.4rem;
        white-space: nowrap;
    }

    .badge-red {
        padding: 4px 15px;
        order: -1;
        /* Ensure badge is on top */
    }

    .course-content-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 20px;
    }
}

.course-content-list li {
    list-style: none;
    position: relative;
    padding-left: 15px;
}

.course-content-list li::before {
    content: '・';
    position: absolute;
    left: 0;
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 1024px) {
    .course-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ACCESS Section */
#access {
    background-image: url('../img/access_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: transparent !important;
    position: relative;
    padding-top: 80px;
    /* Reduced from 100px */
    padding-bottom: 80px;
    /* Reduced from 100px */
}

@media (max-width: 1023px) {
    #access {
        background-image: none !important;
        position: relative;
        overflow: hidden;
        clip-path: inset(0);
    }

    #access::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/access_background.png');
        background-size: cover;
        background-position: center;
        z-index: -1;
    }
}

#access dl>div {
    gap: 0.5rem;
    /* Narrower gap between term and definition */
}

#access dl {
    gap: 1.5rem !important;
    /* Reduced from space-y-12 (3rem) */
}

#access .container {
    position: relative;
    z-index: 10;
}

/* Recommended Section Fixed Background */
#tv {
    background-image: url('../img/worries_background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    z-index: 60;
    /* Higher than About section to prevent overlap */
    padding-top: 160px;
    padding-bottom: 160px;
}

@media (max-width: 1023px) {
    #tv {
        background-image: none !important;
        position: relative;
        overflow: hidden;
        clip-path: inset(0);
        background-color: transparent !important;
    }

    #tv::before {
        content: "";
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../img/worries_background.jpg');
        background-size: cover;
        background-position: center;
        z-index: -1;
    }
}

#tv::before {
    display: none;
}

@media (max-width: 1023px) {
    #tv::before {
        display: block !important;
    }
}

.recommended-title {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    line-height: 1.8;
    color: white;
}

.recommended-list {
    font-size: 1.1rem;
    line-height: 2.2;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    border-left: none;
    padding-left: 0;
}

@media (min-width: 1024px) {
    .recommended-list {
        border-right: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 40px;
    }
}

@media (min-width: 1024px) {
    .recommended-container {
        padding-left: 10%;
        padding-right: 10%;
    }
}

/* Reservation Design */
.panel-reservation {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
}

.shop-btn {
    background: var(--brown-accent);
    color: white !important;
    padding: 10px 25px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 10px;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.shop-circle-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.shop-circle-btn:hover {
    transform: scale(1.1);
    background: var(--brown-accent);
}

/* Swiper / Gallery */
.gallery-swiper .swiper-slide {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
    .gallery-swiper .swiper-slide .text-sm {
        font-size: 1.25rem;
        /* 1.5x approx from 0.875rem */
    }

    .gallery-swiper .swiper-slide .text-xs {
        font-size: 1.1rem;
        /* 1.5x approx from 0.75rem */
    }
}

.gallery-swiper .swiper-slide:hover {
    transform: scale(0.97);
}

/* Buttons and UI */
#top-btn {
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 40;
}

#top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Menu link */
.menu-link {
    position: relative;
    padding-bottom: 4px;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-link:hover::after {
    width: 100%;
}

/* Styled Menu List Button */
.btn-menu-list {
    background-color: #7b0000 !important;
    /* Deep red */
    color: #ffffff !important;
    font-size: 1.25rem !important;
    /* Larger */
    padding: 1.5rem 4rem !important;
    /* Larger */
    border: none !important;
    font-weight: 700;
    transition: all 0.4s ease;
    display: inline-block;
    letter-spacing: 0.3em;
    border-radius: 2px;
}

.btn-menu-list:hover {
    background-color: #9b0000 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(123, 0, 0, 0.3);
}