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

html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
    /* Prevent layout shift when scrollbar disappears/appears */
}

: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: 60px;
    --section-margin-pc: 60px;
    --animation-duration: 1.5s;
}

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

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.05em;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -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: var(--section-margin-sp);
}

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

/* SP text alignment overrides */
@media (max-width: 767px) {
    .sp-text-left {
        text-align: left !important;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    header {
        height: 56px;
        /* Reduced height for mobile (h-14) */
    }
}

/* Section Headings - Text Only */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 15px;
    color: var(--color-secondary);
}

.section-title.text-white {
    color: #fff;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--animation-duration) ease-out, transform var(--animation-duration) ease-out;
}

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

/* Mobile Layout Rules */
@media (max-width: 767px) {
    .section-content-img {
        width: 343px;
        height: 220px;
        max-width: 100%;
        object-fit: cover;
    }

    /* Menu price images always fill container width on SP */
    #menu-price .section-content-img {
        width: 100%;
    }
}

/* Google Review Button */
.google-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    width: 280px;
    max-width: 100%;
    background: #4285F4;
    /* Google Blue */
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

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

/* First View */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

/* First View */
#fv {
    margin-bottom: 0;
    height: auto;
    padding-top: 56px;
    /* Header height for mobile */
}

@media (min-width: 768px) {
    #fv {
        padding-top: 80px;
        /* Header height for desktop */
    }
}

.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;
}

.section-content-img {
    width: 460px;
    height: 311px;
    object-fit: cover;
    max-width: 100%;
    display: block;
}

@media (max-width: 767px) {
    .section-content-img {
        width: 343px;
        height: 220px;
        max-width: 100%;
        object-fit: cover;
    }

    /* Menu price images always fill container width on SP */
    #menu-price .section-content-img {
        width: 100%;
    }
}

/* Google Review Button - Same style as 'その他のメニュー' btn */
.google-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 3rem;
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.google-review-btn:hover {
    background-color: #c0151b;
    transform: translateY(-2px);
}

@media (max-width: 1535px) {
    .service-text-content {
        text-align: left;
        margin-top: 20px;
    }
}

/* iPad Specific Centered Large Layout */
@media (min-width: 768px) and (max-width: 1535px) {
    .section-content-img {
        width: 800px;
        max-width: 100%;
        height: auto;
        aspect-ratio: 46 / 31;
        margin: 0 auto;
    }

    #menu-price .section-content-img {
        width: 800px;
    }

    .service-text-content {
        max-width: 800px;
        margin: 0 auto;
        text-align: left;
    }

    .service-text-content p,
    .service-text-content h3,
    .service-text-content h4,
    .service-text-content span {
        text-align: left !important;
    }

    #message .text-right {
        text-align: left !important;
    }

    #message p {
        text-align: left !important;
    }
}

@media (min-width: 1536px) {
    .service-text-content {
        height: 311px;
        max-width: 460px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
    }

    /* Bring Service points closer */
    .service-grid-compact {
        gap: 60px;
    }

    .justify-self-end {
        justify-self: end;
    }

    .justify-self-start {
        justify-self: start;
    }
}

@media (max-width: 1279px) {
    .service-text-content {
        text-align: center;
        margin-top: 20px;
    }
}

/* CTA */
.cta-section {
    background-color: var(--color-primary);
    padding: 10px 0;
    color: #fff;
    margin-bottom: 0;
    /* Remove gap after red CTA */
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    width: 280px;
    max-width: 100%;
    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: 1536px) {
    .asymmetry-grid {
        grid-template-columns: 6fr 4fr;
        align-items: center;
    }

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

    .symmetric-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Parallax-style section (now simplified as moveable) */
.parallax-bg {
    background-attachment: scroll;
    /* Changed from fixed to moveable per request */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    position: relative;
}

/* For mobile, use scroll (not fixed) with center cover so bg image fills well */
@media screen and (max-width: 1024px) {
    .parallax-bg {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
    }
}

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

/* Custom Fixed Underline for Menu Heading h4 */
.menu-price-fixed-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    /* space between text and line */
}

.menu-price-fixed-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    width: 100%;
    /* default to text width on PC */
    height: 1px;
    /* default thickness */
}

@media (max-width: 767px) {

    /* On SP, force all underlines to be exactly 220px wide, 1px slim, and fully opaque */
    .menu-price-fixed-underline::after {
        width: 220px;
        height: 1px;
        opacity: 1 !important;
    }
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    pointer-events: auto;
    /* Explicitly allow clicks on images */
}

.gallery-swiper {
    padding-bottom: 50px;
    pointer-events: none;
    /* Slider engine ignores all interactions */
}

/* Voice Card */
.voice-swiper-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.voice-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.voice-nav:hover {
    background: #c0151b;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .voice-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.voice-swiper-wrapper .voice-swiper {
    flex: 1;
    min-width: 0;
}

.voice-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.voice-text {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.more-link {
    color: #e31e24;
    text-decoration: underline;
    font-size: 0.7rem;
    display: inline-block;
    margin-top: auto;
}

.more-link:hover {
    color: var(--color-primary);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.voice-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.voice-user-info {
    text-align: left;
}

.voice-user-id {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.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;
}

.overlay-menu-list .cta-btn {
    color: var(--color-primary);
    font-size: 1rem;
    padding: 12px 0;
}

/* 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;
    width: 100%;
    /* Ensure container is full width */
}

@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }
}

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

img {
    max-width: 100%;
}

/* Smooth Swiper Transition */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* Access Section Precision Layout */
.access-map-wrapper {
    width: 520px;
    height: 307px;
    max-width: 100%;
}

.access-info-wrapper {
    width: 520px;
    height: 307px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 767px) {

    .access-map-wrapper,
    .access-info-wrapper {
        width: 100%;
        height: 307px;
    }
}