/* 右端固定ナビゲーション */
.side-navigation {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 90px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border-radius: 12px 0 0 12px;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.08);
}

/* hover時のスケールと明るさ変更 */
.side-nav-item:hover {
    transform: scale(1.05) translateX(-2px);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.12);
}

.nav-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* 電話予約リンクのスタイル */
.phone-link {
    background: #265C00;
    pointer-events: all !important;
}

.phone-link:hover {
    opacity: 1;
}

.phone-link .nav-icon,
.phone-link .nav-text {
    color: #ffffff;
}

/* メール予約リンクのスタイル */
.contact-link {
    background: #06c755;
}

.contact-link:hover {
    opacity: 1;
}

.contact-link .nav-icon,
.contact-link .nav-text {
    color: #ffffff;
}

/* アイコンとテキストの共通スタイル */
.nav-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.side-nav-item:hover .nav-icon {
    transform: scale(1.15) rotate(5deg);
}

.nav-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: center;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 8px;
    transition: transform 0.3s ease;
}

.side-nav-item:hover .nav-text {
    transform: scale(1.05);
}


/* グローエフェクト */
.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.side-nav-item:hover .glow-effect {
    opacity: 1;
}

/* アクティブ状態 */
.side-nav-item:active {
    transform: scale(0.98) translateX(-1px);
}

/* パルスアニメーション（電話リンク） */
.phone-link::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
    opacity: 0.8;
    z-index: 3;
}

/* 電話番号モーダル */
.phone-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.phone-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: #666;
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-phone-icon {
    width: 32px;
    height: 32px;
    color: #6DB33F;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.modal-body {
    text-align: center;
}

.modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.phone-number-display {
    background: linear-gradient(135deg, #6DB33F 0%, #5FA336 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.phone-number {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0px;
}

.copy-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.copy-button.copied {
    background: rgba(255, 255, 255, 0.9);
    color: #6DB33F;
}

.copy-icon {
    width: 18px;
    height: 18px;
}

.modal-info {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
}

.reception-hours {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin: 0;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: #6DB33F;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.2);
    }
}

/* タブレット対応（1024px以下） */
@media screen and (max-width: 1024px) {
    .side-navigation {
        gap: 2px;
    }
    
    .side-nav-item {
        width: 75px;
        height: 85px;
    }
    
    .side-nav-item:hover {
        transform: scale(1.05) translateX(-2px);
    }
    
    .nav-icon {
        width: 26px;
        height: 26px;
    }
    
    .nav-text {
        font-size: 11px;
    }
    
    .modal-content {
        padding: 28px;
    }
}

/* スマートフォン対応（599px以下） */
@media screen and (max-width: 599px) {
    .side-navigation {
        gap: 1px;
        top: auto;
        bottom: 170px;
        transform: none;
    }
    
    .side-nav-item {
        width: 65px;
        height: 70px;
        border-radius: 10px 0 0 10px;
    }
    
    .side-nav-item:hover {
        transform: scale(1.03) translateX(-1px);
    }
    
    .side-nav-item:active {
        transform: scale(0.98) translateX(0);
    }
    
    .nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .nav-text {
        font-size: 10px;
        letter-spacing: 0.3px;
        margin-top: 6px;
    }
    
    .phone-link::before {
        top: 10px;
        right: 10px;
        width: 6px;
        height: 6px;
    }
    
    .modal-content {
        padding: 24px;
        width: 95%;
    }
    
    .phone-number {
        font-size: 24px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
}

/* Google Map追従ボタン */
.floating-map-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 90px;
    height: 90px;
    background: #951E4E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px #951E4E, 
                0 2px 4px #951E4E;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    animation: float 3s ease-in-out infinite;
}

.floating-map-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(109, 179, 63, 0.4), 
                0 3px 6px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.map-button-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.map-icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
    margin-bottom: 2px;
}

.map-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    font-family: 'Noto Sans JP', sans-serif;
}

.pulse-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #951E4E;
    transform: translate(-50%, -50%);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* タブレット用Map追従ボタン調整 */
@media screen and (max-width: 1024px) {
    .floating-map-button {
        bottom: 25px;
        right: 25px;
        width: 65px;
        height: 65px;
    }
    
    .floating-map-button .map-icon {
        width: 26px;
        height: 26px;
    }
    
    .floating-map-button .map-text {
        font-size: 10px;
    }
}

/* スマートフォン用Map追従ボタン調整 */
@media screen and (max-width: 599px) {
    .floating-map-button {
       bottom: 70px;
        right: 20px;
        width: 80px;
        height: 80px;
    }
    
    .floating-map-button .map-icon {
        width: 24px;
        height: 24px;
    }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
    .floating-map-button,
    .phone-link::before {
        animation: none;
    }
    
    .pulse-animation {
        display: none;
    }
    
    .side-nav-item:hover .nav-icon {
        transform: scale(1.1);
    }
    
    .side-nav-item:hover {
        transform: scale(1.03) translateX(-1px);
    }
    
    .shine-effect {
        display: none;
    }
}
