/* スタイリッシュなアニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

/* スタイリッシュな追加要素 */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(45deg, #e83e8c, #6f42c1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.highlight-box {
    border-left: 4px solid #e83e8c;
    padding-left: 15px;
    margin: 20px 0;
    background: rgba(232, 62, 140, 0.05);
    padding: 20px;
    border-radius: 0 10px 10px 0;
}

.shimmer-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #e83e8c, #d6336c, #e83e8c);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
}

.shimmer-button:hover {
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.5);
    transform: translateY(-2px);
}

.floating-card {
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* モダンなカラースキーム */
:root {
    --primary: #e83e8c;
    --primary-dark: #d6336c;
    --secondary: #6f42c1;
    --accent: #fd7e14;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #20c997;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* 洗練されたボタンスタイル */
.btn-modern {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--primary);
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.5);
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-modern:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* モダンなカード */
.modern-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modern-card-header {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px;
    position: relative;
}

.modern-card-body {
    padding: 30px;
}

.modern-card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.modern-card-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* スタイリッシュなアイコン装飾 */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
}

/* モダンなフォーム要素 */
.modern-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.modern-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.2);
    outline: none;
}

.modern-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: var(--dark);
}

/* スタイリッシュなセクション区切り */
.section-divider {
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 60px 0;
    border-radius: 5px;
}

/* モダンなリスト */
.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.modern-list li:last-child {
    border-bottom: none;
}

.modern-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    margin-right: 15px;
    font-size: 18px;
}

/* スタイリッシュなバッジ */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 10px;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-secondary {
    background: var(--secondary);
    color: white;
}

.badge-accent {
    background: var(--accent);
    color: white;
}

/* モダンなプログレスバー */
.progress-container {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    transition: width 1s ease;
}

/* スタイリッシュなタブ */
.modern-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.modern-tab {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: bold;
    color: #6c757d;
    position: relative;
    transition: all 0.3s ease;
}

.modern-tab.active {
    color: var(--primary);
}

.modern-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.modern-tab:hover {
    color: var(--primary-dark);
}

/* スタイリッシュなアコーディオン */
.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 20px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.accordion-item.active .accordion-content {
    padding: 20px;
    max-height: 1000px;
}

.accordion-icon {
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* スタイリッシュなツールチップ */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: var(--dark);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* スタイリッシュなスクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.5);
}

/* スタイリッシュなローディング */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}

@keyframes loading1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* スタイリッシュなプライスカード */
.price-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.price-card-popular {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg) translate(20%, -100%);
    transform-origin: top right;
}

.price-card-header {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 30px 20px;
}

.price-card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-card-price {
    font-size: 48px;
    font-weight: bold;
}

.price-card-period {
    font-size: 14px;
    opacity: 0.8;
}

.price-card-body {
    padding: 30px;
}

.price-card-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.price-card-features li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.price-card-features li:last-child {
    border-bottom: none;
}

.price-card-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: var(--primary);
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
}

.price-card-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.5);
}

/* スタイリッシュなタイムライン */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background: white;
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-left {
    left: 0;
}

.timeline-right {
    left: 50%;
}

.timeline-left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #e9ecef;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #e9ecef;
}

.timeline-right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #e9ecef;
    border-width: 10px 10px 10px 0;
    border-color: transparent #e9ecef transparent transparent;
}

.timeline-right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.timeline-content h2 {
    color: var(--primary);
    margin-top: 0;
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-container::before {
        left: 60px;
        border: medium solid #e9ecef;
        border-width: 10px 10px 10px 0;
        border-color: transparent #e9ecef transparent transparent;
    }
    
    .timeline-left::after, .timeline-right::after {
        left: 19px;
    }
    
    .timeline-right {
        left: 0%;
    }
}
