/* Custom CSS for Tailwind overrides and additional styles */

/* フォント設定 */
body {
    font-family: 'Zen Maru Gothic', sans-serif;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-100 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-300 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* テキストストローク（明るい色の縁取り） */
.text-stroke-light {
    color: #4A4A3F;
    text-shadow: 
        -1px -1px 0 rgba(249, 247, 242, 0.9),
        1px -1px 0 rgba(249, 247, 242, 0.9),
        -1px 1px 0 rgba(249, 247, 242, 0.9),
        1px 1px 0 rgba(249, 247, 242, 0.9),
        0 -1px 0 rgba(249, 247, 242, 0.9),
        0 1px 0 rgba(249, 247, 242, 0.9),
        -1px 0 0 rgba(249, 247, 242, 0.9),
        1px 0 0 rgba(249, 247, 242, 0.9),
        0 0 4px rgba(249, 247, 242, 0.8),
        0 0 8px rgba(249, 247, 242, 0.6);
}

/* ハンバーガーメニューのアニメーション */
#hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

#hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

#hamburger-menu span {
    transition: all 0.3s ease;
}

/* カスタムスクロールバー（オプション） */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9F7F2;
}

::-webkit-scrollbar-thumb {
    background: #7D8F69;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A8B594;
}

/* 占い師画像のジャギー対策 */
.fortune-teller-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 横スクロールのスクロールバーを非表示（スマホ版） */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* 価格表バナーのスタイル */
.pricing-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(168, 181, 148, 0.3) 0%, rgba(125, 143, 105, 0.2) 100%);
    overflow: visible;
    border: 2px solid rgba(125, 143, 105, 0.3);
}

.pricing-banner-border {
    position: absolute;
    inset: -2px;
    border: 1px solid rgba(125, 143, 105, 0.2);
    pointer-events: none;
    z-index: 1;
}

.pricing-banner-border::before,
.pricing-banner-border::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(125, 143, 105, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 90% 20%, rgba(125, 143, 105, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 10% 80%, rgba(125, 143, 105, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(125, 143, 105, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* 価格表カードの高さを統一 */
#pricing .grid > div {
    display: flex;
    flex-direction: column;
}

/* 0円プランを目立たせるスタイル */
.pricing-card-free {
    border-width: 3px !important;
    box-shadow: 0 10px 30px rgba(216, 168, 92, 0.3);
    transform: scale(1.05);
}

@media (max-width: 1023px) {
    .pricing-card-free {
        transform: scale(1);
    }
}

.pricing-card-free:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(216, 168, 92, 0.4);
    border-color: #D8A85C !important;
}

@media (max-width: 1023px) {
    .pricing-card-free:hover {
        transform: scale(1.05);
    }
}

.pricing-banner-free {
    background: linear-gradient(135deg, rgba(216, 168, 92, 0.5) 0%, rgba(255, 193, 7, 0.3) 100%);
    border: 2px solid rgba(216, 168, 92, 0.4);
}

.pricing-banner-border-free {
    position: absolute;
    inset: -2px;
    border: 1px solid rgba(216, 168, 92, 0.3);
    pointer-events: none;
    z-index: 1;
}

.pricing-banner-border-free::before,
.pricing-banner-border-free::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(216, 168, 92, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 90% 20%, rgba(216, 168, 92, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 10% 80%, rgba(216, 168, 92, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(216, 168, 92, 0.2) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* グリッドレイアウトで0円プランを最初に配置 */
#pricing .grid {
    display: grid;
}

/* 0円プランが最初に来るように順序を調整 */
#pricing .grid > .pricing-card-free {
    order: -1;
}

