
/* ユーティリティ */
.content-wrapper { max-width: var(--max-content-width); margin: 0 auto; padding: 0 var(--spacing-medium); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.button {
    display: inline-block; background-color: var(--primary-color); color: var(--white);
    padding: var(--spacing-small) var(--spacing-medium); border-radius: var(--border-radius-small);
    font-family: var(--font-family-main); 
    font-size: var(--font-size-base); font-weight: 500;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease;
    border: none; cursor: pointer; text-align: center;
}
.button:hover { background-color: var(--primary-color-dark); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled {
    background-color: var(--gray-dark);
    cursor: not-allowed;
    transform: none;
}
.yellow-background { background-color: var(--background-yellow); }
.loading-message { text-align: center; color: var(--text-color-light); padding: 2rem; font-style: italic; }
.fallback-image {
    object-fit: contain; color: var(--gray-dark); display: flex; align-items: center; justify-content: center;
    text-align: center; font-size: 0.8rem; width: 100%;
    background-color: var(--gray-light); border: 1px dashed var(--gray-medium);
}
.shop-logo.fallback-image { height: 120px; }
.menu-popup-image.fallback-image { min-height: 150px; width: auto; max-width: 300px;}
.text-large { font-size: var(--font-size-large); }
.font-semibold { font-weight: 600; }
.margin-top-medium { margin-top: var(--spacing-medium); }
.no-padding-bottom { padding-bottom: 0 !important; }
.required-field::after { content: "*"; color: var(--error-color); margin-left: var(--spacing-xs); }

/* スクロールアニメーション用 */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ヘッダー */
.header-container {
    height: 75vh;
    max-height: 800px; 
    position: relative;
    color: var(--white);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-image: url('../images/img_main/main_img_mobile.webp');
    z-index: 5; 
}
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 1rem;
    width: 90%;
}


/* トップナビゲーション */
.top-navigation {
    position: fixed; top: 0; left: 0; right: 0; padding: 1rem 0;
    background-color: transparent;
    z-index: 1000; display: flex; justify-content: center; align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.top-navigation.scrolled {
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* for Safari */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navigation-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1900px; padding: 0 2rem; }

.navigation-logo { transition: opacity 0.4s ease; }
.top-navigation:not(.scrolled) .navigation-logo {
    opacity: 0;
    pointer-events: none;
}
.navigation-logo a:focus {
    outline: none;
}
.navigation-logo img { height: 30px; width: auto; cursor: pointer; border: none; outline: none;}

.navigation-list {
    position: fixed;
    top: -20px;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(237, 108, 21, 0.9); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    z-index: 990;
}
.navigation-list.open {
    opacity: 1; 
    visibility: visible; 
    transition-delay: 0s;
}

.navigation-list li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.navigation-list.open li {
    opacity: 1;
    transform: translateX(0);
}
.navigation-list.open li:nth-child(1) { transition-delay: 0.1s; }
.navigation-list.open li:nth-child(2) { transition-delay: 0.15s; }
.navigation-list.open li:nth-child(3) { transition-delay: 0.2s; }
.navigation-list.open li:nth-child(4) { transition-delay: 0.25s; }
.navigation-list.open li:nth-child(5) { transition-delay: 0.3s; }
.navigation-list.open li:nth-child(6) { transition-delay: 0.35s; }

.navigation-list a {
    color: var(--white); font-size: 1.2rem; font-weight: 400;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    padding: 0.75rem 1.5rem; display: block; border-radius: var(--border-radius-small);
}
.navigation-list a:hover, .navigation-list a.active { color: var(--white); background-color: rgba(255, 255, 255, 0.15); }

.menu-toggle-button {
    width: 2.8rem; height: 2.8rem; background-color: var(--primary-color-dark);
    box-shadow: 0 3px 7px rgba(0,0,0,0.35); border-radius: 50%;
    display: flex;
    justify-content: center; align-items: center; cursor: pointer;
    z-index: 1000; transition: background-color 0.2s ease-in-out; position: relative; border: none;
}
.menu-line {
    width: 30px; height: 4px; background-color: var(--white); border-radius: 2px;
    position: absolute; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.menu-line--top { transform: translateY(-8px); width: 18px; }
.menu-line--center { opacity: 1; }
.menu-line--bottom { transform: translateY(8px); width: 18px; }
.menu-toggle-button.active .menu-line--center { opacity: 0; }
.menu-toggle-button.active .menu-line--top { transform: rotate(45deg); width: 20px; }
.menu-toggle-button.active .menu-line--bottom { transform: rotate(-45deg); width: 20px; }

.top-navigation.menu-open.scrolled {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}


/* フッター */
.footer {
    position: relative;
    background-color: var(--primary-color-dark);
    color: var(--white);
    padding: 8rem 1rem 2rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: rgb(247 233 116); 
    -webkit-mask-image: var(--wave-dynamic);
    mask-image: var(--wave-dynamic);
    -webkit-mask-size: cover;
    mask-size: cover;
    transform: scaleY(-1) scaleX(-1);
    z-index: 1;
}

.footer::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100px;
    background: #ffffff;
    -webkit-mask-image: var(--wave-dynamic);
    mask-image: var(--wave-dynamic);
    -webkit-mask-size: cover;
    mask-size: cover;
    transform: scaleY(-1) scaleX(-1);
    z-index: 2;
}


.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: var(--max-content-width);
    margin: 0 auto 2rem;
    position: relative;
    z-index: 4; 
}
.footer-section { min-width: 200px; flex: 1; }
.footer-section h3 {
    font-size: 1.25rem; font-weight: 500; margin-bottom: 1rem;
    color: var(--white);
    border-left: 4px solid #ffde70;
    padding-left: 0.75rem;
}
.footer-section p, .footer-section a, .footer-list li {
    font-size: 0.95rem; line-height: 1.6;
    color: var(--white);
    margin: 0.25rem 0; text-decoration: none;
}
.footer-list dt { font-weight: normal; margin-top: 0.5rem; } .footer-list dd { font-weight: 100; margin-left: 0; }
.footer-section a:hover {
    text-decoration: underline;
    color: var(--background-yellow);
}
.footer-copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}
.footer-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-list li .fa-brands {
    font-size: 1.3rem; 
    width: 20px;    
    text-align: center;
}

/* ボトムナビゲーション (モバイルデフォルト) */
.bottom-navigation {
    position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--white);
    display: flex;
    justify-content: space-around; align-items: center;
    height: var(--bottom-nav-height);
    padding-top: var(--spacing-small);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1); z-index: 10;
}
.navigation-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-color-light); font-size: 0.75rem; text-align: center; flex-grow: 1;
    max-width: calc(100% / 5); padding: 0; height: 100%; transition: color 0.2s;
}
.bottom-navigation .navigation-item .material-icons {
    font-size: 1.5rem; margin-bottom: 0.2rem;
    transition: color 0.2s;
}
.navigation-item.active {
    color: var(--primary-color);
}
.navigation-item.active .material-icons {
    color: var(--primary-color);
}
.navigation-item--home .home-icon-custom {
    font-size: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border-radius: 50%;
    transition: transform 0.2s ease;
    color: var(--white); 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-xs);
}
.navigation-item--home.active .home-icon-custom,
.navigation-item--home:hover .home-icon-custom {
    color: var(--white); 
}
.navigation-item--home.active span:not(.material-icons) {
    color: var(--primary-color);
}

body {
   padding-bottom: var(--bottom-nav-height);
}


@media (max-height: 450px) and (orientation: landscape) {
    .header-container {
        height: 100vh; 
        min-height: 350px; 
    }
}

@media (min-width: 880px) {
    .header-container {
        height: 85vh;
        background-image: url('../images/img_main/main_img_desktop.webp');
    }

    .footer-content { flex-wrap: nowrap; }
    
    .top-navigation {
        background-color: rgba(255,255,255,0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .top-navigation:not(.scrolled) .navigation-logo,
    .navigation-logo {
        opacity: 1;
        pointer-events: auto;
    }
    .top-navigation .navigation-list {
        position: static; width: auto; height: auto; flex-direction: row;
        gap: 0.5rem; background: transparent;
        transform: none; opacity: 1; display: flex; visibility: visible;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
  
    .navigation-list li {
        opacity: 1;
        transform: none;
        transition: none;
    }
   .navigation-list a { 
        font-size: 0.9rem; 
        font-weight: 500; 
        padding: 0.5rem 0.5rem; 
        color: var(--text-color-dark);
        text-shadow: none;
    }
    .navigation-list a:hover, .navigation-list a.active { 
        color: var(--primary-color); 
        background-color: rgba(237, 108, 21, 0.1);
    }
    .bottom-navigation { display: none; }
    .menu-toggle-button { display: none; }
}

@media (min-width: 1010px) {
    body {
       padding-bottom: 0;
    }
    .navigation-list a { 
        font-size: 1rem; 
        padding: 1rem;
    }
    .top-navigation .navigation-list {
        gap: 1rem; 
    }
}