/* ACCESS用バウンス(グレー→ピンク) */
#access .title-bounce {
    animation: textBounceGrey 6s ease-in-out infinite;
}

#access .title-bounce:nth-child(1) { animation-delay: 0s; }
#access .title-bounce:nth-child(2) { animation-delay: 0.4s; }
#access .title-bounce:nth-child(3) { animation-delay: 0.8s; }
#access .title-bounce:nth-child(4) { animation-delay: 1.2s; }
#access .title-bounce:nth-child(5) { animation-delay: 1.6s; }
#access .title-bounce:nth-child(6) { animation-delay: 2.0s; }

@keyframes borderGradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ACCESS セクション */
#access {
    height: auto;
    min-height: 702px;
    padding-top: 130px;
    padding-bottom: 100px;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    transform: none !important;
}

#access h2 {
    color: #6e6e6e;
    position: relative;
    z-index: 2;
    font-weight: 300;
    -webkit-text-stroke: 5px #ffffff;
    text-stroke: 5px #ffffff;
    paint-order: stroke fill;
}

#access h2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 5px);
    width: 1182px;
    height: 15px;
    background: linear-gradient(90deg,
        #ffcfe3 0%,
        #eaeaff 40%,
        #eaeaff 60%,
        #ffcfe3 100%);
    background-size: 200% 100%;
    border-radius: 5px;
    z-index: -1;
    animation: borderGradientFlow 10s ease-in-out infinite;
}

/* アクセスコンテナ */
.access-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 1180px;
    margin-left: calc(50% - 590px - 1px);
    margin-right: auto;
    margin-top: 50px;
    opacity: 1 !important;
    transform: none !important;
}

.access-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.access-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(248, 165, 200, 0.3) 0%, rgba(157, 174, 228, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.access-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.access-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 26px;
    font-weight: bold;
    color: #333333;
    margin: 0;
    text-align: center;
}

/* 住所 */
.access-address {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 16px;
    color: #666666;
    text-align: center;
    margin: 10px 0 0;
    position: relative;
    z-index: 1;
}

/* Googleマップ */
.access-map {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 20px;
    opacity: 1 !important;
    transform: none !important;
}

.access-map iframe {
    width: 864px;
    height: 450px;
    border-radius: 5px;
    background-color: #ffffff;
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 864px;
    height: 450px;
    background-color: #ffffff;
    border-radius: 5px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.map-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    #access {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    #access h2::before {
        width: 90%;
    }

    .access-container {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .access-map iframe {
        width: 100%;
    }

    .map-placeholder {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    #access {
        padding-top: 50px;
        padding-bottom: 40px;
        min-height: auto;
    }

    #access h2::before {
        width: 95%;
    }

    .access-container {
        width: 95%;
    }

    .access-item {
        gap: 15px;
        padding: 20px;
    }

    .access-title {
        font-size: 18px;
    }

    .access-address {
        font-size: 14px;
    }

    .access-map iframe {
        width: 100%;
        height: 300px;
    }

    .map-placeholder {
        width: 100%;
    }
}

