/* Terms of Serviceページ専用CSS */

/* グローバルアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.1);
    }
}

/* メインコンテンツ */
.main-terms {
    min-height: 100vh;
    padding-top: 100px;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

/* ヒーローセクション */
.terms-hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
    color: white;
    margin-bottom: 60px;
    border-radius: 16px;
}

.terms-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.terms-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 0 0 24px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.last-updated {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 24px;
    display: inline-block;
    margin-top: 24px;
}

.last-updated p {
    font-size: 14px;
    margin: 0;
    opacity: 0.8;
}

/* 利用規約コンテンツ */
.terms-content {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
    transition: all 0.3s ease;
}

.terms-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #ffffff;
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4b5563;
}

.terms-section p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section ul {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 24px;
}

.terms-section li {
    margin-bottom: 8px;
    font-size: 16px;
}

.terms-section li:last-child {
    margin-bottom: 0;
}

.terms-section a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid #4b5563;
    transition: border-color 0.2s ease;
}

.terms-section a:hover {
    border-bottom-color: #ffffff;
}

/* 利用規約フッター */
.terms-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #4b5563;
    text-align: center;
}

.terms-footer p {
    color: #d1d5db;
    font-size: 16px;
    margin-bottom: 24px;
}

.company-info {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    border-left: 4px solid #ffffff;
}

.company-info p {
    color: #d1d5db;
    margin-bottom: 8px;
    font-size: 16px;
}

.company-info p:last-child {
    margin-bottom: 0;
}

/* 目次（将来の拡張用） */
.terms-toc {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid #4b5563;
}

.terms-toc h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.terms-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-toc li {
    margin-bottom: 8px;
}

.terms-toc a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.terms-toc a:hover {
    color: #ffffff;
}

/* 重要な注意事項 */
.terms-notice {
    background: #2d2d2d;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.terms-notice h4 {
    color: #f59e0b;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.terms-notice p {
    color: #d1d5db;
    margin-bottom: 0;
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .terms-hero h1 {
        font-size: 2.5rem;
    }
    
    .terms-hero p {
        font-size: 1.1rem;
    }
    
    .terms-content {
        padding: 40px 24px;
        margin-bottom: 40px;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .terms-section p,
    .terms-section li {
        font-size: 15px;
    }
    
    .company-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .main-terms {
        padding-top: 80px;
    }
    
    .terms-hero {
        padding: 60px 20px;
        margin-bottom: 40px;
    }
    
    .terms-hero h1 {
        font-size: 2rem;
    }
    
    .terms-content {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .terms-section h2 {
        font-size: 1.3rem;
    }
    
    .terms-section p,
    .terms-section li {
        font-size: 14px;
    }
    
    .terms-footer {
        margin-top: 40px;
        padding-top: 24px;
    }
    
    .company-info {
        padding: 16px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-hero {
    animation: fadeInUp 0.6s ease-out;
}

.terms-content {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* 印刷用スタイル */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .main-terms {
        padding-top: 0;
        background: white;
    }
    
    .terms-hero {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
    
    .terms-content {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .terms-section h2 {
        color: black;
        border-bottom-color: #ccc;
    }
    
    .terms-section p,
    .terms-section li {
        color: black;
    }
    
    .company-info {
        background: #f5f5f5;
        border-left-color: #ccc;
    }
    
    .company-info p {
        color: black;
    }
}
