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

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

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

/* GUIDE セクション */
#guide {
    height: auto;
    min-height: 702px;
    padding-top: 130px;
    padding-bottom: 100px;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

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

#guide 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: guideBorderGradientFlow 10s ease-in-out infinite;
}

/* ガイドリスト */
.guide-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
    width: 1180px;
    margin-left: calc(50% - 590px - 1px);
    margin-right: auto;
}

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

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

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

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

/* ===== コンセプト ===== */
.concept-body {
    position: relative;
    z-index: 1;
    width: 864px;
    margin: 0 auto;
}

.concept-catch {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.6;
    text-align: center;
    color: #ff69b4;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(248, 165, 200, 0.3);
}

.concept-text {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 18px;
    color: #333333;
    line-height: 1.9;
    margin: 20px 0;
    text-align: left;
}

.concept-em {
    color: #ff69b4;
    font-weight: bold;
    border-bottom: 3px solid #ff69b4;
    animation: borderColorChange 3s linear infinite;
    padding-bottom: 2px;
}

/* プレミアムオプション枠 */
.concept-option {
    margin: 30px 0;
    padding: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
}

.concept-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(248, 165, 200, 0.5) 0%, rgba(157, 174, 228, 0.5) 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;
}

.concept-option-title {
    font-family: "Times New Roman", Times, serif;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
    text-align: center;
    color: #ff69b4;
    margin: 0 0 18px 0;
}

.concept-option .concept-text {
    margin: 0;
}

.concept-closing {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #555555;
    margin-top: 30px;
}

/* スマホ時のみ有効な改行 */
.sp-br {
    display: none;
}

/* ===== ご利用方法（フロー） ===== */
.flow-steps {
    position: relative;
    z-index: 1;
    width: 864px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.flow-step {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 30px;
}

.flow-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(248, 165, 200, 0.5) 0%, rgba(157, 174, 228, 0.5) 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;
}

/* ステップを縦に繋ぐライン */
.flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 64px;
    bottom: -40px;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, rgba(248, 165, 200, 0.8) 0%, rgba(157, 174, 228, 0.4) 100%);
    z-index: 0;
}

.flow-step-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.flow-step-num {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f8a5c8 0%, #9daee4 100%);
    box-shadow: 0 4px 12px rgba(248, 165, 200, 0.4);
    line-height: 1;
}

.flow-step-label {
    font-family: "Times New Roman", Times, serif;
    font-size: 11px;
    letter-spacing: 1px;
}

.flow-step-no {
    font-family: "Times New Roman", Times, serif;
    font-size: 30px;
    font-weight: bold;
    margin-top: 2px;
}

.flow-step-title {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin: 0;
}

.flow-step-body {
    padding-left: 88px;
}

.flow-step-body p {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 18px;
    color: #333333;
    line-height: 1.9;
    margin: 0 0 12px 0;
    text-align: left;
}

.flow-step-note {
    font-size: 15px !important;
    color: #666666 !important;
}

/* 電話 / LINE ボタン */
.flow-btns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.flow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    padding: 14px 30px;
    border-radius: 30px;
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-btn i {
    font-size: 20px;
}

.flow-btn-phone {
    background: linear-gradient(135deg, #f8a5c8 0%, #ff69b4 100%);
    box-shadow: 0 4px 12px rgba(248, 165, 200, 0.4);
}

.flow-btn-line {
    background: linear-gradient(135deg, #06C755 0%, #04a544 100%);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.flow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

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

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

    .guide-list {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .concept-body,
    .flow-steps {
        width: 100%;
    }
}

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

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

    .guide-list {
        width: 95%;
    }

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

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

    .concept-body,
    .flow-steps {
        width: 95%;
    }

    .concept-catch {
        font-size: 21px;
    }

    .concept-text {
        font-size: 15px;
    }

    .concept-option {
        padding: 20px;
    }

    .concept-option-title {
        font-size: 19px;
    }

    .concept-closing {
        font-size: 17px;
    }

    .sp-br {
        display: inline;
    }

    .flow-steps {
        gap: 30px;
    }

    .flow-step {
        padding: 20px;
    }

    .flow-step:not(:last-child)::after {
        left: 44px;
        bottom: -30px;
        height: 30px;
    }

    .flow-step-head {
        gap: 14px;
        margin-bottom: 14px;
    }

    .flow-step-num {
        width: 54px;
        height: 54px;
    }

    .flow-step-no {
        font-size: 24px;
    }

    .flow-step-label {
        font-size: 10px;
    }

    .flow-step-title {
        font-size: 19px;
    }

    .flow-step-body {
        padding-left: 0;
    }

    .flow-step-body p {
        font-size: 15px;
    }

    .flow-step-note {
        font-size: 13px !important;
    }

    .flow-btns {
        gap: 12px;
    }

    .flow-btn {
        flex: 1;
        min-width: 0;
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media screen and (max-width: 480px) {
    .guide-item {
        padding: 15px;
    }

    .guide-title {
        font-size: 16px;
    }

    .concept-catch {
        font-size: 18px;
    }

    .concept-text {
        font-size: 15px;
    }

    .concept-closing {
        font-size: 16px;
    }

    .flow-step {
        padding: 16px;
    }

    .flow-step-head {
        flex-direction: row;
    }

    .flow-step-num {
        width: 48px;
        height: 48px;
    }

    .flow-step-no {
        font-size: 21px;
    }

    .flow-step-title {
        font-size: 17px;
    }

    .flow-step-body p {
        font-size: 14px;
    }

    .flow-btns {
        flex-direction: column;
    }

    .flow-btn {
        width: 100%;
        min-width: 0;
    }
}
