/* ================================================
   Reset & Base Styles
   ================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #0884C4;
    --primary-dark: #1a3d2f;
    --primary-light: #3d7a64;
    --secondary-color: #c9a86a;
    --secondary-light: #e0c898;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #707070;
    --bg-light: #f8f7f4;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --overlay-dark: rgba(0, 0, 0, 0.5);
    --overlay-light: rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* ================================================
   Container
   ================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.container-fluid {
    max-width: 100%;
    padding: 0 40px;
}

/* ================================================
   Navigation
   ================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.nav.scrolled {
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-logo img{
        width: 120px;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

/* ================================================
   Section Header
   ================================================ */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ================================================
   Buttons
   ================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--primary-color);
    color: var(--bg-white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(44, 95, 79, 0.2);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 168, 106, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero-text {
    padding-right: 40px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 30px;
    max-width: 1600px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    margin-bottom: 40px;
    line-height: 2;
}

.hero-description p {
    margin-bottom: 15px;
}

.hero-images {
    position: relative;
    display: flex;
    gap: 1px;
}

.hero-image-main {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-image-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image-main:hover img {
    transform: scale(1.05);
}

.hero-image-sub {
    flex: 0.7;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-top: 80px;
}

.hero-image-sub img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image-sub:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    text-align: center;
    font-weight: bold;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--text-light), transparent);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ================================================
   Facilities Section
   ================================================ */
.facilities {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.facility-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.facility-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.facility-card:hover .facility-image img {
    transform: scale(1.1);
}

.facility-content {
    padding: 30px;
}

.facility-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.facility-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.facility-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ================================================
   Comparison Section
   ================================================ */
.comparison {
    padding: var(--section-padding) 0;
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
}

.comparison-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
}

.comparison-side {
    padding: 60px 50px;
    position: relative;
}

.comparison-side.fredge {
    background: linear-gradient(135deg, #fdfdfd 0%, #ffffff 100%);
}

.comparison-side.vivant {
    background: linear-gradient(135deg, #f3f2ef 0%, #ffffff 100%);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.comparison-name {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-name span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 5px;
}

.comparison-badge {
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.comparison-badge.premium {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.comparison-images {
    margin-bottom: 40px;
}

.comparison-image-main {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-image-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.comparison-image-sub {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.comparison-image-sub img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.comparison-content {
    padding-top: 20px;
}

.comparison-intro {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.comparison-intro h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.comparison-intro p {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.comparison-specs {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

/* 追加: テキスト部分の幅を可変に */
.spec-text {
    flex: 1;
}

/* 追加: 右側のサムネイル画像スタイル */
.spec-image {
    width: 240px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.spec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.spec-item:hover .spec-image img {
    transform: scale(1.1);
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.spec-label i {
    font-size: 1.2rem;
}

.spec-item p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.8;
}

/* ================================================
   Gallery Sections
   ================================================ */
.gallery {
    padding: var(--section-padding) 0;
}

.gallery-1 {
    background: var(--bg-white);
}

.gallery-2 {
    background: var(--bg-light);
}

.gallery-content {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-main {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-main:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

.gallery-description {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 40px;
    background: rgba(44, 95, 79, 0.03);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.gallery-description p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 2;
    margin-bottom: 15px;
}

.gallery-description p:last-child {
    margin-bottom: 0;
}

.gallery-sub-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.gallery-sub-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-sub-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-sub-item:hover img {
    transform: scale(1.1);
}

/* ================================================
   Showroom Section
   ================================================ */
.showroom {
    padding: var(--section-padding) 0;
    background: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
}

.showroom-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.showroom-text {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 50px;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.showroom-catchcopy {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.showroom-description {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 2;
}

.showroom-description p {
    margin-bottom: 20px;
}

.showroom-description p:last-child {
    margin-bottom: 0;
}

.showroom-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.showroom-image-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.showroom-image-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.showroom-image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.showroom-cta {
    text-align: center;
}

.showroom-cta-note {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ================================================
   Footer
   ================================================ */
.footer {
    color: var(--bg-light);
    padding: 60px 0 30px;
}
.footer img{
    width: 120px;
}
.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    justify-content: center;
}

.footer-logo i {
    font-size: 1.6rem;
    color: var(--secondary-color);
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ================================================
   Back to Top Button
   ================================================ */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ================================================
   Responsive Design - Tablet
   ================================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .container,
    .container-fluid {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 15px 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 30px 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-images {
        justify-content: center;
    }
    
    .hero-image-main img {
        height: 500px;
    }
    
    .hero-image-sub {
        margin-top: 60px;
    }
    
    .hero-image-sub img {
        height: 380px;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .comparison-wrapper {
        grid-template-columns: 1fr;
    }
    
    .comparison-side {
        padding: 50px 40px;
    }
    
    .gallery-sub-images {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .showroom-images {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ================================================
   Responsive Design - Mobile
   ================================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .container,
    .container-fluid {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 15px 20px;
    }
    
    .nav-logo {
        font-size: 1.1rem;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        font-size: 1.1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-images {
        flex-direction: column;
        gap: 1px;
    }
    
    .hero-image-main img,
    .hero-image-sub img {
        height: 350px;
    }
    
    .hero-image-sub {
        margin-top: 0;
    }
    
    .image-caption,
    .gallery-caption {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .btn-primary {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 16px 35px;
        font-size: 1rem;
    }
    
    .comparison-side {
        padding: 40px 20px;
    }
    
    .comparison-name {
        font-size: 1.8rem;
    }
    
    .comparison-image-main img {
        height: 400px;
    }
    
    .comparison-image-sub img {
        height: 220px;
    }
    
    .gallery-main img {
        height: 400px;
    }
    
    .gallery-sub-item img {
        height: 400px;
    }
    
    .gallery-description {
        padding: 25px;
    }
    
    .showroom-tabs {
        flex-direction: column;
        gap: 15px;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .showroom-text {
        padding: 30px 20px;
    }
    
    .showroom-catchcopy {
        font-size: 1.5rem;
    }
    
    .showroom-image-item img {
        height: 250px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .spec-item {
        flex-direction: column;
        align-items: start;
    }
    .spec-item .spec-image{
        width: 100%;
        height: 300px;
    }
}

/* ================================================
   AOS Animation Overrides
   ================================================ */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}
/* Hero全体のラッパー */
#hero.hero-wrapper {
  position: relative;
  width: 100%;
}

/* 1. 画像エリアを画面に固定 (Sticky) */
.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

/* ★追加: ::afterで全体を覆う黒い幕を作成 */
.hero-sticky::after {
  content: "";
  position: absolute;
  inset: 0; /* top: 0; left: 0; right: 0; bottom: 0; と同じ */
  background-color: #000000;
  opacity: 0;
  z-index: 2;
  pointer-events: none; /* クリック等を貫通させる */
  transition: opacity 0.8s ease; /* フワッと変化させる秒数 */
}

/* ★追加: JSで付与されるクラス。スクロールしたら暗くする */
.hero-sticky.is-scrolled::after {
  opacity: 0.7; /* 完全に1にすると画像が消えるので、0.7程度がおすすめです */
}

/* 画像の配置 */
.hero-images {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-img {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* --- 中央テキストの配置と基本設定 --- */
.hero-sticky-text {
  position: absolute; /* ★relativeからabsoluteに変更 */
  top: 50%;           /* ★上から50% */
  left: 50%;          /* ★左から50% */
  transform: translate(-50%, -50%); /* ★要素自身の中心を基準点に補正 */
  z-index: 3; 
  color: #ffffff;
  text-align: center;
  width: 100%;
  padding: 0 5%;
  box-sizing: border-box;
  
  /* ★追加: フワッと消えるためのトランジション設定 */
  transition: opacity 0.6s ease; 
}

/* --- スクロール時の挙動（追加） --- */
/* ★追加: .is-scrolledが付与されたらopacityを0にする */
.hero-sticky.is-scrolled .hero-sticky-text {
  opacity: 0;
  pointer-events: none; /* 見えなくなったテキストがクリック判定等の邪魔にならないようにする */
}

.hero-sticky-title {
  /* ★かなり大きめに設定 (最小1.5rem〜最大2.5remの間で画面幅に合わせて可変) */
  font-size: clamp(1.5rem, 4vw, 2.5rem); 
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.1em;
  /* ★画像の上でも読めるように強いドロップシャドウをかける */
  text-shadow: 0 0 15px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,1);
}

/* 2. スクロールで重なってくるテキストエリア */
.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: 100px;
}

/* テキストボックス自体を1画面分の高さにし、下から上がってくるようにする */
.hero-text-box {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  box-sizing: border-box;
  color: #ffffff;
}

/* テキストの装飾 */
.hero-title {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: bold;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: #fff;
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  line-height: 2.2;
  text-align: center;
  max-width: 800px;
  letter-spacing: 0.5em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 1200px;
}

/* スマホ表示用の調整 */
@media screen and (max-width: 768px) {
  .hero-images {
    flex-direction: column;
  }
  /* Sticky内中央テキストの調整 */
  .hero-sticky-text {
    padding: 0 8%;
  }
  .hero-sticky-title {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }
  .hero-text-box {
    padding: 0 8%;
  }
  .hero-title {
    margin-bottom: 1.5rem;
  }
}