/* style.css - Sorairo Works グラスモーフィズム・スタイル */

/* =========================================
   1. ベース：オーロラ風グラデーション背景
========================================= */
html {
    scroll-behavior: smooth;
}

body {
    /* 淡いオーロラ風の背景グラデーション（固定） */
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(167, 139, 250, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 15%, rgba(129, 230, 217, 0.16) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 50% 80%, rgba(251, 191, 36, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 90% 40% at 30% 60%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 75% 70%, rgba(244, 114, 182, 0.10) 0%, transparent 50%),
        linear-gradient(135deg, #f0f4ff 0%, #fdf2f8 25%, #ecfdf5 50%, #fef9c3 75%, #eff6ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* =========================================
   2. グラスモーフィズム共通エフェクト
========================================= */
.glass-effect {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* グラスカード：セクション内のカード要素用 */
.glass-card {
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
}

/* =========================================
   3. ヘッダー：すりガラスナビゲーション
========================================= */
header.fixed {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(24px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* =========================================
   4. セクション背景の透明化
   （HTMLの bg-white / bg-brand-soft を上書き）
========================================= */
section {
    background: transparent !important;
    position: relative;
}

/* セクション内コンテンツをグラスカードで囲む雰囲気を演出 */
section > .max-w-\[1400px\],
section > .max-w-5xl {
    position: relative;
    z-index: 1;
}

/* =========================================
   5. 悩みカード（Worry Cards）
========================================= */
.worry-card {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.worry-card:hover {
    transform: translateY(-4px) translateX(2px);
    border-color: rgba(191, 167, 93, 0.6) !important;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.08),
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 悩みセクション内の解決ボックス */
#about .border-gray-100 {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* =========================================
   6. サービスカード（Service Cards）
========================================= */
.service-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.10),
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(191, 167, 93, 0.8), rgba(167, 139, 250, 0.4), rgba(129, 230, 217, 0.4));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}
.service-card:hover::before {
    transform: scaleX(1);
}

/* サービスカード内のボタン領域のアイコンボックス */
.service-card .bg-gray-50 {
    background: rgba(255, 255, 255, 0.60) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================================
   7. 強み（USP）セクション
========================================= */
#strength {
    background: transparent !important;
}

/* 強みセクション内の画像カード */
#strength .shadow-xl {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 強みの番号バッジ */
#strength .bg-brand\/10 {
    background: rgba(191, 167, 93, 0.15) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================================
   8. 制作実績（Works）セクション
========================================= */
#works .bg-white {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* =========================================
   9. プロフィールセクション
========================================= */
#profile .bg-white {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* プロフィールの大きなカード */
#profile .rounded-\[2\.5rem\] {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.08),
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* プロフィール内の引用風ボックス */
#profile .bg-brand-light {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left-color: #bfa75d !important;
}

/* =========================================
   10. FAQ セクション
========================================= */
#faq {
    background: transparent !important;
}
#faq .bg-white {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#faq .bg-white:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.08),
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* =========================================
   11. お問い合わせ（Contact）セクション
========================================= */
#contact .bg-white,
#contact .rounded-\[2rem\],
#contact .rounded-\[3rem\] {
    background: rgba(255, 255, 255, 0.80) !important;
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* フォーム領域 */
#contact .bg-brand-soft {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.07),
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* フォーム入力欄 */
#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    background: rgba(255, 255, 255, 0.60) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease;
}
#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    background: rgba(255, 255, 255, 0.80) !important;
    border-color: rgba(191, 167, 93, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(191, 167, 93, 0.15);
}

/* チェックボックスエリア */
#contact .space-y-3.bg-white {
    background: rgba(255, 255, 255, 0.50) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

/* =========================================
   12. ファーストビュー（FV）
========================================= */
/* FV背景のオーバーレイを半透明に */
section:first-of-type .bg-gradient-to-r {
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.75),
        rgba(255, 255, 255, 0.50),
        transparent
    ) !important;
}

/* FVのサブコピー枠 */
section:first-of-type .bg-white\/50 {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* FVのタグバッジ */
section:first-of-type .bg-white\/70 {
    background: rgba(255, 255, 255, 0.40) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* =========================================
   13. フッター
========================================= */
footer {
    background: rgba(17, 24, 39, 0.85) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

footer .bg-gray-800 {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
footer .bg-gray-800:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* =========================================
   14. モバイルメニュー
========================================= */
#mobile-menu {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
}

/* =========================================
   15. CTA（行動喚起）ボタン
========================================= */
.btn-primary,
section:first-of-type a[href="#contact"] {
    position: relative;
    overflow: hidden;
}

/* 送信ボタン・CTAの光沢エフェクト */
button[type="submit"],
a.bg-gray-900,
a.bg-slate-800 {
    position: relative;
    overflow: hidden;
}
button[type="submit"]::after,
a.bg-gray-900::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}
button[type="submit"]:hover::after,
a.bg-gray-900:hover::after {
    left: 100%;
}

/* =========================================
   16. アニメーション（Intersection Observer 併用）
========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 表示時のクラス */
.visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* =========================================
   17. セクション区切りの装飾ライン
========================================= */
#strength .bg-gradient-to-r {
    background: linear-gradient(to right, transparent, rgba(191, 167, 93, 0.25), transparent) !important;
}

/* =========================================
   18. Bento UI Items（互換用）
========================================= */
.bento-item h3 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.bento-item p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* =========================================
   19. 微細なオーロラアニメーション（背景に生命感を追加）
========================================= */
@keyframes auroraShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
}

body {
    background-size: 200% 200%;
    animation: auroraShift 25s ease-in-out infinite;
}

/* =========================================
   20. スクロールバーのカスタマイズ（Webkit向け）
========================================= */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(240, 244, 248, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(191, 167, 93, 0.35);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(191, 167, 93, 0.55);
}

/* =========================================
   21. レスポンシブ微調整
========================================= */
@media (max-width: 768px) {
    .glass-card,
    .worry-card,
    .service-card,
    #faq .bg-white,
    #profile .bg-white,
    #works .bg-white {
        backdrop-filter: blur(12px) saturate(1.2);
        -webkit-backdrop-filter: blur(12px) saturate(1.2);
    }
}
