/*
Theme Name: LMS Theme
Description: オンラインスクール向けLMSテーマ
Version: 1.0.0
*/

/* 基本設定 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.4;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    font-size: 14px;
}

/* コンテナ */
.lms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* メインコンテンツ */
.lms-main-content {
/*  min-height: calc(100vh - 200px);  */
    padding: 20px 0;
}

/* 投稿一覧 */
.lms-posts {
    display: grid;
    gap: 20px;
}

.lms-post {
    background: white;
    padding: 20px;
/*  border-radius: 8px; */
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lms-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lms-post-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.lms-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lms-post-title a:hover {
    color: #e95513;
}

.lms-post-content {
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 13px;
}

.lms-post-meta {
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* コンテンツが見つからない場合 */
.lms-no-content {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.lms-no-content h2 {
    color: #e95513;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* ページネーション */
.lms-pagination {
    margin-top: 30px;
    text-align: center;
}

.lms-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    font-size: 13px;
}

.lms-pagination .page-numbers:hover,
.lms-pagination .page-numbers.current {
    background: #e95513;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 85, 19, 0.3);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .lms-container {
        padding: 0 10px;
    }
    
    .lms-main-content {
        padding: 15px 0;
    }
    
    .lms-post {
        padding: 15px;
    }
    
    .lms-post-title {
        font-size: 1.1rem;
    }
}

/* WordPress標準クラスのスタイル調整 */
.alignleft {
    float: left;
    margin: 0 15px 15px 0;
}

.alignright {
    float: right;
    margin: 0 0 15px 15px;
}

.aligncenter {
    display: block;
    margin: 15px auto;
}

.wp-caption {
    max-width: 100%;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
}

.wp-caption-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

/* フォーム要素 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #e95513;
    box-shadow: 0 0 0 3px rgba(233, 85, 19, 0.1);
}

/* ボタン */
.wp-block-button__link,
input[type="submit"],
button {
    background: linear-gradient(135deg, #e95513, #ff6b2b);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 85, 19, 0.3);
}

.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
    background: linear-gradient(135deg, #d14a0f, #e95513);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(233, 85, 19, 0.4);
    color: white;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    font-size: 13px;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: linear-gradient(135deg, #f7b52c, #ffc947);
    color: white;
    font-weight: 500;
    font-size: 13px;
}

tr:hover {
    background: #f8f9fa;
}

/* リスト */
ul,
ol {
    padding-left: 18px;
    line-height: 1.5;
}

li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* 引用 */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #e95513;
    padding: 15px;
    margin: 15px 0;
    font-style: italic;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

/* コード */
code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    line-height: 1.3;
    font-size: 13px;
}

pre code {
    background: none;
    padding: 0;
}

/* 画像 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    vertical-align: bottom;
}

/* ユーティリティクラス */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 8px; }
.mb-20 { margin-bottom: 15px; }
.mb-30 { margin-bottom: 20px; }

.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 8px; }
.mt-20 { margin-top: 15px; }
.mt-30 { margin-top: 20px; }

.p-0 { padding: 0; }
.p-10 { padding: 8px; }
.p-20 { padding: 15px; }
.p-30 { padding: 20px; }

/* アクセシビリティ */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* プリント用スタイル */
@media print {
    .lms-header,
    .lms-footer,
    .lms-navigation {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .lms-post {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}