/* Medium Layout Styles - 未ログイン用レイアウト */
/* monomane カスタムスタイル */
@import url('common.css');

/* 基本設定（色変数はcommon.cssへ集約） */
/* :root { } */

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header（ログイン済みと同じスタイル） */
.medium-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.medium-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0;
}

.medium-tagline {
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
    color: #6c757d;
}

/* Main Content */
.medium-main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* Cards（ログイン済みと同じスタイル） */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    padding: 0.75rem 1.25rem;
    border-radius: calc(0.375rem - 1px) calc(0.375rem - 1px) 0 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.card-body {
    padding: 1.25rem;
}

/* Terms Content */
.terms-content {
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.terms-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.terms-content h6:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.terms-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
}

/* Forms（ログイン済みと同じスタイル） */
.form-check {
    padding: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}


.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
}

.form-check-label {
    font-size: 1rem;
    font-weight: 400;
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Buttons（ログイン済みと同じスタイル） */
.btn {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    border: 1px solid transparent;
}

/* ボタンのテーマはcommon.cssへ集約（ここでは上書きしない） */
/* .btn-primary { } .btn-secondary { } */

/* Form Actions（ログイン済みと同じスタイル） */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 10rem auto 0;
    max-width: 600px;
}

.form-actions::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.form-actions::after {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    background: white;
    padding: 0 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Alerts（ログイン済みと同じスタイル） */
.alert {
    border: 1px solid transparent;
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert i {
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Section（ログイン済みと同じスタイル） */
.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: left;
}

.section-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer（ログイン済みと同じスタイル） */
.medium-footer {
    background: #f8f9fa;
    color: #6c757d;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #dee2e6;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-link {
    color: #6c757d;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.15s ease-in-out;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-info i {
    font-size: 1rem;
}

.footer-copyright {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Responsive（ログイン済みと同じスタイル） */
@media (max-width: 768px) {
    .medium-logo {
        font-size: 1.5rem;
    }
    
    .section-name {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 2rem;
        padding: 2rem 1rem;
        max-width: 100%;
    }
    
    .form-actions .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        min-height: 52px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-info p {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .medium-header {
        padding: 1rem 0;
    }
    
    .medium-main {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .terms-content {
        max-height: 300px;
    }
}
