/* ブログ共通CSS */

:root {
    --primary: #4A90E2;
    --accent: #F5A623;
    --text: #333333;
    --bg: #FAFAFA;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

.container {
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* ヘッダー */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-logo {
    max-height: 50px;
    width: auto;
}

.header-brand > a:first-child {
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}

.header-brand > a:first-child:hover {
    opacity: 0.8;
}

.header-school-name {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: normal;
    white-space: nowrap;
}

.header-phone {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.header-phone:hover {
    text-decoration: underline;
}

.header-line-button {
    background-color: #06C755;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-line-button:hover {
    background-color: #05B04A;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.header-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.header-nav a:hover {
    color: var(--primary);
    background-color: #f0f8ff;
}

/* メインセクション */
.blog-article-section {
    padding: 50px 0;
    background: linear-gradient(150deg, #e0f2ff 0%, var(--white) 100%);
}

.article-header {
    background: linear-gradient(135deg, #fff8e1 0%, var(--white) 100%);
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.article-date {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
}

.article-category {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    white-space: nowrap;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.article-content {
    background: var(--white);
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.article-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--accent);
    font-weight: bold;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.article-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 25px;
    line-height: 2;
}

.article-content strong {
    color: var(--accent);
    font-weight: bold;
}

.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 35px;
}

.article-content li {
    margin-bottom: 15px;
    line-height: 2;
    font-size: 1.1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.article-content blockquote {
    padding: 25px 30px;
    margin: 30px 0;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text);
    line-height: 1.8;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-block;
    padding: 12px 25px;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--primary);
    color: white;
}

.back-to-list {
    text-align: center;
    margin-top: 30px;
}

footer {
    padding: 20px;
    text-align: center;
    background: #444;
    color: white;
    font-size: 0.8rem;
    margin-top: 40px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ブログ一覧ページ用 */
.blog-section {
    padding: 50px 0;
    background: linear-gradient(150deg, #e0f2ff 0%, var(--white) 100%);
}

.blog-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: bold;
}

.blog-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-item {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.blog-item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blog-date {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

.blog-category {
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

.blog-item-title {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.blog-item-content {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-item-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s;
}

.blog-item-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

.blog-item-link::after {
    content: " →";
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: var(--primary);
    color: white;
}

.pagination-btn.active {
    background: var(--primary);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .header-brand {
        width: 100%;
        justify-content: space-between;
    }
    .header-line-button {
        width: 100%;
        justify-content: center;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    .header-nav {
        gap: 10px;
    }
    .header-nav a {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
    .article-header {
        padding: 30px 20px;
    }
    .article-title {
        font-size: 1.8rem;
    }
    .article-content {
        padding: 30px 20px;
    }
    .article-content h2 {
        font-size: 1.5rem;
    }
    .article-content h3 {
        font-size: 1.3rem;
    }
    .article-content p {
        font-size: 1rem;
    }
    .blog-title {
        font-size: 1.8rem;
    }
    .blog-item {
        padding: 20px;
    }
    .blog-item-title {
        font-size: 1.2rem;
    }
}

