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

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

/* Scroll Reveal Effect */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Custom Fonts */
.font-display {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Category Tabs Active State */
.active-tab {
    background-color: #1e3a8a !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* Smooth Scroll Padding */
html {
    scroll-padding-top: 80px;
}

/* Custom transitions for FAQ */
.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle.active i {
    transform: rotate(45deg);
}

/* Member Card Styles */
.member-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover {
    transform: translateY(-8px);
}

/* 規約ページ用共通スタイル */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 140px 20px 80px; /* ヘッダー(80px) + 十分な余白 */
    line-height: 1.8;
}

.legal-container h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #1e3a8a; /* navy-800 */
    border-bottom: 3px solid #3b82f6; /* accent-blue */
    padding-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.legal-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
}

.legal-container h2::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background-color: #3b82f6;
    margin-right: 0.75rem;
    border-radius: 2px;
}

.legal-container p {
    margin-bottom: 1.25rem;
    color: #4b5563; /* gray-600 */
}

/* 特商法テーブルのレスポンシブ対応 */
.legal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.legal-table th, .legal-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
    text-align: left;
}

.legal-table tr:last-child th, .legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table th {
    background-color: #f8fafc; /* slate-50 */
    width: 30%;
    font-weight: 700;
    color: #1e3a8a;
    border-right: 1px solid #e5e7eb;
}

.legal-table td {
    background-color: #ffffff;
}

/* スマホ閲覧時の最適化 */
@media (max-width: 640px) {
    .legal-container {
        padding-top: 120px;
    }
    
    .legal-table, .legal-table tbody, .legal-table tr, .legal-table td, .legal-table th {
        display: block;
        width: 100%;
    }
    
    .legal-table th {
        background-color: #f1f5f9;
        border-right: none;
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    .legal-table td {
        padding: 12px 20px 20px;
        border-bottom: 1px solid #e5e7eb;
    }
}

/* 連携画面の表示制御。Tailwindのdisplay指定よりhiddenを優先する。 */
[hidden] { display: none !important; }
button:disabled { opacity: .55; cursor: wait; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid #3b82f6; outline-offset: 4px;
}
#profile-content p, #profile-content h1 { white-space: pre-line; overflow-wrap: anywhere; }
.kl-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
