/* フィロソフィ実践経営塾帯広 機関誌マラソン スタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card-wide {
    max-width: 900px;
}

h1 {
    color: #1a365d;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2d3748;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #3182ce;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #3182ce;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #2c5282;
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
}

.error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* 誓約書ページ */
.agreement-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.agreement-list {
    margin: 20px 0;
    padding-left: 20px;
}

.agreement-list li {
    margin-bottom: 16px;
}

.agreement-list strong {
    color: #1a365d;
}

.agreement-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.95rem;
}

.checkbox-group {
    background: #ebf8ff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* ダウンロードページ */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.header-row h1 {
    text-align: left;
    margin-bottom: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5568;
}

.welcome-message {
    color: #4a5568;
    margin-bottom: 24px;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.file-table th,
.file-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.file-table th {
    background: #f7fafc;
    font-weight: bold;
    color: #1a365d;
}

.file-table tr:hover {
    background: #f7fafc;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
}

.file-size,
.file-date {
    color: #718096;
    font-size: 0.9rem;
}

.no-files {
    background: #f7fafc;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    color: #718096;
}

.footer-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 0.9rem;
}

/* iPad案内セクション */
.ipad-guide {
    margin-top: 32px;
    padding: 24px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
}

.ipad-guide h2 {
    color: #0369a1;
    font-size: 1.2rem;
    margin-bottom: 12px;
    text-align: left;
}

.ipad-guide h3 {
    color: #1a365d;
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #3182ce;
}

.ipad-guide p {
    color: #334155;
    margin-bottom: 12px;
}

.warning-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    color: #92400e;
}

.tip-box {
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    color: #065f46;
    line-height: 1.8;
}

.setup-steps {
    margin: 12px 0;
    padding-left: 24px;
}

.setup-steps li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.6;
}

.app-link {
    margin: 12px 0;
}

.app-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.app-link a:hover {
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .card {
        padding: 24px 16px;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    .header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-table th,
    .file-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .file-size,
    .file-date {
        display: none;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 13px;
    }
}
