/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* ヘッダー */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header h1 a:hover {
    opacity: 0.8;
}

/* 通知マーク */
.header-notification-bell {
    position: relative;
    display: inline-block;
}

.header-notification-bell::after {
    content: '❗️';
    position: absolute;
    top: -5px;
    right: -5px;
    color: #e74c3c;
    font-size: 0.8rem;
    animation: notificationPulse 0.5s ease-in-out;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* ハンバーガーメニューボタン */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-btn:hover {
    opacity: 0.8;
}

/* モバイル認証セクションはデスクトップでは非表示 */
.mobile-auth-section {
    display: none;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #34495e;
}

nav a.active {
    background-color: #3498db;
}

/* ページヒーロー */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.9;
}

.page-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.page-hero-text {
    flex: 1;
    min-width: 300px;
}

.page-hero-image {
    flex-shrink: 0;
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0.8;
    border-radius: 10px;
}

/* ヒーローセクション */
.hero {
    position: relative;
    color: white;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 2rem;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-slogan {
    font-size: 1.8rem !important;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    opacity: 1 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 152, 219, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.feature-item p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* セクション */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
    margin: 0 auto 2rem auto;
}

/* グリッドレイアウト */
.news-grid,
.job-grid,
.seminar-grid,
.business-grid,
.schools-grid {
    display: block;
    margin-top: 1rem;
}

.news-item,
.job-item,
.seminar-item,
.business-item,
.school-item,
.forum-preview {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
    text-align: center;
    width: 100%;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.news-item date {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.news-item h3,
.job-item h3,
.seminar-item h3,
.school-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* 掲示板 */
.forum-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-form {
    background: #ecf0f1;
    padding: 2rem;
    border-bottom: 1px solid #bdc3c7;
    text-align: left;
}

.post-form h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-form input,
.post-form textarea,
.post-form select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: inherit;
    text-align: left;
}

.post-form textarea {
    height: 300px;
    resize: vertical;
    max-height: none;
    position: relative;
}

/* リサイズハンドルを分かりやすくする */
.post-form textarea::after,
.reply-form textarea::after,
.form-group textarea::after,
.seminar-form textarea::after {
    content: '';
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 12px;
    height: 12px;
    background: linear-gradient(-45deg, transparent 0%, transparent 40%, #bdc3c7 41%, #bdc3c7 43%, transparent 44%, transparent 46%, #bdc3c7 47%, #bdc3c7 49%, transparent 50%);
    pointer-events: none;
}

/* ホバー時にリサイズハンドルを強調 */
.post-form textarea:hover,
.reply-form textarea:hover,
.form-group textarea:hover,
.seminar-form textarea:hover {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

/* リサイズ可能であることを示すツールチップ風のスタイル */
.post-form textarea,
.reply-form textarea,
.form-group textarea,
.seminar-form textarea {
    background-image: 
        linear-gradient(135deg, transparent 85%, #f0f0f0 85%, #f0f0f0 90%, #d0d0d0 90%, #d0d0d0 95%, #b0b0b0 95%);
    background-repeat: no-repeat;
    background-position: right 4px bottom 4px;
    background-size: 10px 10px;
    cursor: text;
}

/* リサイズエリアにマウスカーソルを合わせた時 */
.post-form textarea:hover,
.reply-form textarea:hover,
.form-group textarea:hover,
.seminar-form textarea:hover {
    background-image: 
        linear-gradient(135deg, transparent 80%, #e0e0e0 80%, #e0e0e0 85%, #c0c0c0 85%, #c0c0c0 90%, #a0a0a0 90%);
}

/* プレースホルダーでヒントを追加 */
.post-form textarea::placeholder,
.reply-form textarea::placeholder {
    color: #999;
}

/* 右下角のリサイズエリアを強調 */
.post-form textarea,
.reply-form textarea,
.form-group textarea,
.seminar-form textarea {
    background-size: 12px 12px;
    transition: background-image 0.2s ease, border-color 0.2s ease;
}

.post-form button {
    background: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.post-form button:hover {
    background: #2980b9;
}

.posts {
    padding: 2rem;
}

.post {
    border-bottom: 1px solid #ecf0f1;
    padding: 1.5rem 0;
    text-align: left;
}

.post:last-child {
    border-bottom: none;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.post-content {
    color: #555;
    margin-bottom: 1rem;
    text-align: left;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background: #c0392b;
}

/* 求人詳細セクション */
.job-features,
.job-application {
    padding: 1.5rem;
    text-align: left;
}

.job-features h4,
.job-application h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.job-features p,
.job-application p {
    margin-bottom: 0.8rem;
    margin-left: 1.5rem;
}

/* お問い合わせ */
.contact-info {
    text-align: left;
    padding: 1rem 0;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* フッター */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 深層ページ用スタイル */
.news-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.news-detail date {
    color: #7f8c8d;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.news-detail h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.news-content h4 {
    color: #2c3e50;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.1rem;
}

.news-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

/* 求人カード */
.job-listings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
}

.job-header {
    background: #ecf0f1;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #bdc3c7;
    text-align: left;
}

.job-header h3 {
    color: #2c3e50;
    margin: 0;
}

.job-type {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.job-info, .job-benefits {
    padding: 1.5rem;
    text-align: left;
}

.job-info p {
    margin-bottom: 0.8rem;
}

.job-benefits h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.job-benefits ul {
    list-style: none;
    padding: 0;
    margin-left: 1.5rem;
}

.job-benefits li {
    background: #ecf0f1;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    position: relative;
    padding-left: 2rem;
}

.job-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0.7rem;
    color: #27ae60;
    font-weight: bold;
}

.job-actions {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
}

.apply-btn, .bookmark-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.apply-btn {
    background: #e74c3c;
    color: white;
}

.apply-btn:hover {
    background: #c0392b;
}

.bookmark-btn {
    background: #95a5a6;
    color: white;
}

.bookmark-btn:hover {
    background: #7f8c8d;
}

/* 検索フィルター */
.search-filters,
.search-filter {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: left;
}

.search-filters h3,
.search-filter h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.search-controls,
.sort-section {
    text-align: left;
}

.search-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-controls .search-input {
    flex: 1;
    min-width: 200px;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    text-align: left;
    justify-content: flex-start;
}

.filter-group select {
    padding: 0.8rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background: white;
    text-align: left;
}

.search-btn {
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

/* セミナー関連 */
.event-categories {
    margin-bottom: 2rem;
}

.event-categories h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* 日付フィルタ */
.date-filter {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.date-filter h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.date-filter-controls {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-range label {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.date-input {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 150px;
}

.date-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.search-filter-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-right: 0.5rem;
}

.search-filter-btn:hover {
    background: #2980b9;
}

.clear-filter-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.clear-filter-btn:hover {
    background: #7f8c8d;
}

.date-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preset-btn {
    background: #ecf0f1;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.preset-btn:hover {
    background: #d5dbdb;
    border-color: #bdc3c7;
}

.preset-btn:active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

@media (max-width: 768px) {
    .date-filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-range {
        align-items: stretch;
    }
    
    .date-input {
        min-width: 100%;
    }
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ecf0f1;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

.tab-btn:hover {
    background: #d5dbdb;
}

.tab-btn.active:hover {
    background: #2980b9;
}

.seminar-listings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


/* 養成校関連 */
.school-search {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.school-search h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.school-listings {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.school-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.school-header {
    background: #ecf0f1;
    padding: 1.5rem;
    border-bottom: 1px solid #bdc3c7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.school-header h3 {
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.school-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: white;
}

.badge.university {
    background: #3498db;
}

.badge.college {
    background: #9b59b6;
}

.badge.vocational {
    background: #e67e22;
}

.badge.location {
    background: #27ae60;
}

.school-info {
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 4px;
}

.school-features, .school-curriculum {
    margin-bottom: 1.5rem;
}

.school-features h4, .school-curriculum h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.school-features ul {
    list-style: none;
    padding: 0;
}

.school-features li {
    background: #ecf0f1;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    position: relative;
    padding-left: 2rem;
}

.school-features li:before {
    content: "★";
    position: absolute;
    left: 0.7rem;
    color: #f39c12;
}

.school-actions {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
}

.info-btn, .contact-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.info-btn {
    background: #3498db;
    color: white;
}

.info-btn:hover {
    background: #2980b9;
}

.contact-btn {
    background: #27ae60;
    color: white;
}

.contact-btn:hover {
    background: #219a52;
}

/* お問い合わせ関連 */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-section, .contact-info-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.required {
    color: #e74c3c;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.8rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* 時間入力グループ */
.time-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.time-input-group input[type="time"] {
    width: auto;
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: inherit;
}

.time-input-group span {
    color: #666;
    font-weight: bold;
    padding: 0 0.3rem;
}

/* 勉強会カードのモバイル対応 */
@media (max-width: 768px) {
    .seminar-card {
        flex-direction: column;
    }
    
    .seminar-image-container {
        width: 100%;
        height: 200px;
        margin: 0;
    }
    
    .seminar-image-section {
        margin: 1rem 1rem 0 1rem;
    }
    
    .seminar-content {
        min-width: auto;
    }
    
    .seminar-date-section {
        min-width: auto;
        padding: 1rem;
    }
    
    .date-time-display {
        font-size: 1.1rem;
    }
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #2980b9;
}

.operator-info {
    margin-bottom: 2rem;
}

.info-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.faq-section {
    border-top: 1px solid #ecf0f1;
    padding-top: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

/* 掲示板の返信機能用スタイル */
.category-badge {
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 1rem;
}

/* 投稿者・コメント者リンクスタイル */
.author-link, .comment-author-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.author-link:hover, .comment-author-link:hover {
    text-decoration: underline;
    color: #2980b9;
}


.post-title-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.post-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    text-align: left;
}

.reply-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.reply-btn:hover {
    background: #219a52;
}

.reply-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #ecf0f1;
    border-radius: 4px;
}

.reply-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    resize: vertical;
    height: 100px;
    margin-bottom: 1rem;
    font-family: inherit;
}

.reply-form-actions {
    display: flex;
    gap: 1rem;
}

.reply-form-actions button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reply-form-actions button:first-child {
    background: #3498db;
    color: white;
}

.reply-form-actions button:first-child:hover {
    background: #2980b9;
}

.reply-form-actions button:last-child {
    background: #95a5a6;
    color: white;
}

.reply-form-actions button:last-child:hover {
    background: #7f8c8d;
}

.replies {
    margin-top: 1rem;
    border-left: 3px solid #ecf0f1;
    padding-left: 1rem;
}

.reply {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reply-date {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.delete-reply-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: background-color 0.3s;
}

.delete-reply-btn:hover {
    background: #c0392b;
}

.edit-btn,
.edit-reply-btn {
    background: #f39c12;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: background-color 0.3s;
}

/* 返信ボタンのコンテナ */
.reply-actions {
    display: flex;
    gap: 0.5rem;
}

/* 返信ボタンのマージンをリセット */
.reply-actions .edit-reply-btn,
.reply-actions .delete-reply-btn {
    margin: 0;
}

.edit-btn:hover,
.edit-reply-btn:hover {
    background: #e67e22;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.form-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.form-actions button[type="submit"] {
    background: #3498db;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #2980b9;
}

.form-actions button[type="button"] {
    background: #95a5a6;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #7f8c8d;
}

.reply-content {
    color: #555;
    line-height: 1.5;
}

.reply-actions {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-like-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reply-like-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.reply-like-btn.liked {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.reply-like-btn.liked:hover {
    background: #bbdefb;
    border-color: #1976d2;
}

/* ミッションセクション */
.mission-section {
    background: #f0f8ff;
    color: #333;
}

.mission-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.mission-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    white-space: nowrap;
}

.mission-item p {
    line-height: 1.6;
    color: #555;
    opacity: 1;
}

/* 料金セクション */
.pricing-section {
    background: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-item {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pricing-item:hover {
    transform: translateY(-5px);
}

.pricing-item.free {
    border: 3px solid #27ae60;
}

.pricing-item.paid {
    border: 3px solid #e74c3c;
}

.pricing-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.pricing-item .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.pricing-item.free .price {
    color: #27ae60;
}

.pricing-item.paid .price {
    color: #e74c3c;
}

.pricing-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.pricing-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.pricing-item li:last-child {
    border-bottom: none;
}

.pricing-note {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.contact-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 5px;
    color: #2d5a2d;
    font-size: 0.9rem;
    border-left: 4px solid #27ae60;
}

@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-item {
        padding: 1.5rem;
    }
    
    .pricing-item {
        padding: 1.5rem;
    }
}

.forum-filters {
    margin-bottom: 2rem;
}

.forum-filters h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ecf0f1;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: #3498db;
    color: white;
}

.filter-btn:hover {
    background: #d5dbdb;
}

.filter-btn.active:hover {
    background: #2980b9;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .seminar-card {
        flex-direction: column;
    }
    
    .seminar-date {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        min-width: auto;
    }
    
    .school-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group, .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-title-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-badge {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .hero-features {
        margin-top: 1.5rem;
    }
}

/* 画像関連スタイル */
.section-icon {
    width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto 1rem auto;
}

.section-icon:hover {
    transform: scale(1.05);
}

.section-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.section-link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 画像の基本スタイル */
img {
    max-width: 100%;
    height: auto;
}

/* レスポンシブ画像 */
@media (max-width: 480px) {
    .section-icon {
        width: 180px;
        height: 180px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
    }
}

/* RSS機能のスタイル */
.rss-controls {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.rss-controls h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.rss-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.rss-btn {
    background: #2ecc71;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.rss-btn:hover {
    background: #27ae60;
}

.rss-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* モーダルスタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.form-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-actions button[type="submit"] {
    background: #3498db;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #2980b9;
}

.form-actions button[type="button"] {
    background: #95a5a6;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #7f8c8d;
}

/* RSS管理リスト */
.rss-feed-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feed-info {
    flex: 1;
}

.feed-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feed-info p {
    color: #555;
    margin-bottom: 0.5rem;
}

.feed-info small {
    color: #7f8c8d;
    display: block;
    margin-bottom: 0.2rem;
}

.feed-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 1rem;
}

.feed-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.feed-actions button.active {
    background: #27ae60;
    color: white;
}

.feed-actions button.inactive {
    background: #f39c12;
    color: white;
}

.feed-actions button.delete {
    background: #e74c3c;
    color: white;
}

.feed-actions button:hover {
    opacity: 0.8;
}

/* セミナーカードの拡張 */
.seminar-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.seminar-actions .delete-btn {
    background: #e74c3c;
    color: white;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.seminar-actions .delete-btn:hover {
    background: #c0392b;
}

.seminar-info .source {
    background: #ecf0f1;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    color: #555;
}

/* レスポンシブ対応 - モバイル最適化 */
@media (max-width: 768px) {
    /* 基本レイアウト */
    .container {
        padding: 0 15px;
    }
    
    /* ヘッダー */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .auth-buttons {
        display: flex;
        gap: 0.5rem;
    }
    
    .auth-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* ナビゲーション */
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }
    
    nav a {
        padding: 0.6rem 0.8rem;
        display: block;
    }
}

/* プロフィールリンクのスタイル - v2 */
.user-info .profile-link,
a.profile-link,
.profile-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    margin-right: 0.3rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
    border: none !important;
}

.user-info .profile-link:hover,
a.profile-link:hover,
.profile-link:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.user-info .admin-link,
a.admin-link,
.admin-link {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    margin-right: 0.3rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
    border: none !important;
}

.user-info .admin-link:hover,
a.admin-link:hover,
.admin-link:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    background: linear-gradient(135deg, #ee5a52 0%, #ff6b6b 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent !important;
}

.user-menu {
    background: transparent !important;
}

.user-dropdown {
    background: transparent !important;
}

.user-name {
    background: transparent !important;
}

.user-info a:not(.profile-link):not(.admin-link) {
    white-space: nowrap;
        text-align: center;
        border-radius: 6px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* ヒーロー */
    .hero {
        min-height: 60vh;
    }
    
    .hero-content {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .hero-slogan {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-features {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-item {
        min-width: auto;
        padding: 1.5rem;
        text-align: center;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* ページヒーロー（他のページ） */
    .page-hero {
        padding: 2rem 0;
    }
    
    .page-hero h2 {
        font-size: 1.5rem;
    }
    
    /* グリッドレイアウト */
    .news-grid,
    .job-grid,
    .seminar-grid,
    .business-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    /* カード */
    .news-item,
    .job-item,
    .seminar-item,
    .business-item {
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* セクション */
    .section {
        padding: 2rem 0;
    }
    
    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* セクションアイコン */
    .section-icon {
        width: 200px;
        height: 200px;
        margin: 0 auto 1rem auto;
        display: block;
    }
    
    /* ミッション・料金セクション */
    .mission-section,
    .pricing-section {
        padding: 2rem 0;
    }
    
    .mission-content {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mission-item {
        padding: 1.5rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .mission-item h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        color: #2c3e50;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-item {
        padding: 2rem 1.5rem;
        border-radius: 8px;
        text-align: center;
    }
    
    /* フォーム */
    .search-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-form input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .search-form button {
        width: 100%;
    }
    
    .filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-group label {
        min-width: auto;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    /* 投稿フォーム */
    .post-form {
        padding: 1rem;
    }
    
    .post-form input,
    .post-form textarea,
    .post-form select {
        width: 100%;
        padding: 0.8rem;
        font-size: 16px; /* iOS zoom防止 */
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-actions button {
        width: 100%;
        padding: 1rem;
    }
    
    /* フィルターボタン */
    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* タブボタン（勉強会等） */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-buttons {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem 0;
        min-width: max-content;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
        white-space: nowrap;
        min-width: auto;
    }
    
    /* 日付絞り込み */
    .date-filter {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .date-filter h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .date-filter-controls {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .date-range {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .date-range label {
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .date-input {
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 16px; /* iOS zoom防止 */
    }
    
    .date-presets {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .preset-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
        border: 1px solid #ddd;
        background: white;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .preset-btn:active {
        background: #3498db;
        color: white;
    }
    
    /* 投稿表示 */
    .post-header {
        padding: 1rem;
    }
    
    .post-title-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .post-content {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* 返信 */
    .reply-form textarea {
        font-size: 16px; /* iOS zoom防止 */
    }
    
    .reply-form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .reply-form-actions button {
        width: 100%;
        padding: 0.8rem;
    }
    
    /* モーダル */
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 1rem;
        margin: 1rem;
    }
    
    /* 管理ボタン */
    .admin-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-actions button {
        width: 100%;
        padding: 1rem;
    }
    
    /* テーブル */
    .responsive-table {
        overflow-x: auto;
    }
    
    /* RSS管理 */
    .rss-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .rss-feed-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feed-actions {
        flex-direction: row;
        margin-left: 0;
        gap: 0.5rem;
    }
    
    .feed-actions button {
        flex: 1;
    }
    
    /* 料金表 */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* ミッション */
    .mission-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mission-item {
        padding: 1rem;
    }
    
    .mission-item h3 {
        font-size: 1.1rem;
    }
    
    /* コンタクト */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 0;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px; /* iOS zoom防止 */
    }
    
    /* セクションアイコン */
    .section-icon {
        width: 200px;
        height: 200px;
    }
}

/* タブレット最適化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .news-grid,
    .job-grid,
    .seminar-grid,
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-features {
        flex-wrap: wrap;
    }
    
    .feature-item {
        flex: 1;
        min-width: calc(50% - 1rem);
    }
    
    .modal-content {
        width: 80%;
        max-width: 600px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .mission-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* PC最適化 */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        padding: 0 40px;
    }
    
    /* ヒーロー復元 */
    .hero {
        min-height: auto;
    }
    
    .hero-content {
        padding: 4rem 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-features {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
        width: 100%;
    }
    
    .feature-item {
        flex: 1;
        max-width: 300px;
        padding: 2rem;
        text-align: center;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .feature-item p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* グリッドレイアウト復元 */
    .news-grid,
    .job-grid,
    .seminar-grid,
    .business-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin: 3rem 0;
    }
    
    /* セクション復元 */
    .section {
        padding: 4rem 0;
    }
    
    .section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* セクションアイコン復元 */
    .section-icon {
        width: 220px;
        height: 220px;
        margin: 0 auto 1.5rem auto;
        display: block;
    }
    
    /* カード復元 */
    .news-item,
    .job-item,
    .seminar-item,
    .business-item {
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    /* ミッション・料金セクション復元 */
    .mission-section,
    .pricing-section {
        padding: 4rem 0;
    }
    
    .mission-content {
        flex-direction: row;
        gap: 2rem;
    }
    
    .mission-item {
        flex: 1;
        padding: 2rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .mission-item h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: #2c3e50;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .pricing-item {
        padding: 3rem 2rem;
        border-radius: 8px;
        text-align: center;
    }
    
    .modal-content {
        width: 60%;
        max-width: 800px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* 追加のユーティリティ */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-padding {
        padding: 1rem;
    }
    
    .mobile-margin {
        margin: 1rem 0;
    }
    
    /* 求人カードのモバイル対応 */
    .job-card-layout {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .job-image-section {
        margin: 1rem 0 1rem 1rem;
        flex-shrink: 0;
    }
    
    .job-image-container {
        width: 120px;
        height: 90px;
        margin: 0;
    }
    
    .job-content {
        padding: 1rem 1rem 1rem 0;
        flex: 1;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .additional-image {
        width: 120px !important;
        height: 90px !important;
    }
    
    .additional-images-container {
        width: 100%;
    }
}

/* アスタリスクを赤色にする（JavaScriptで*を<span class="asterisk">*</span>に変換） */
.asterisk {
    color: #e74c3c !important;
    font-weight: bold;
}

/* 緊急修正を削除 */

/* 必須項目のスタイル */
.required {
    color: #e74c3c;
}

.required-asterisk {
    color: #e74c3c;
    font-weight: bold;
}

/* 認証関連のスタイル */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: transparent !important;
}

.auth-link:not(.profile-link):not(.admin-link) {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.auth-link:not(.profile-link):not(.admin-link):hover {
    background-color: white;
    color: #2c3e50;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

.user-name {
    color: white;
    font-weight: bold;
    margin-right: 1rem;
}

/* 投稿者情報のスタイル */
.post-author, .reply-author {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .auth-buttons {
        display: none;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    nav ul.mobile-menu-open {
        display: flex;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }
    
    nav a:hover {
        background-color: #34495e;
    }
    
    .mobile-auth-section {
        display: block;
    }
    
    .mobile-auth-link,
    a.mobile-auth-link,
    nav .mobile-auth-link,
    .mobile-menu .mobile-auth-link {
        color: white !important;
        text-decoration: none !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0.8rem !important;
        border-radius: 0 !important;
        transition: none !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .mobile-auth-link:hover,
    a.mobile-auth-link:hover,
    nav .mobile-auth-link:hover,
    .mobile-menu .mobile-auth-link:hover {
        background-color: #34495e !important;
        color: white !important;
    }
    
    .mobile-logout-btn {
        background: #e74c3c;
        color: white;
        border: none;
        padding: 0.8rem;
        cursor: pointer;
        width: 100%;
        font-size: 1rem;
    }
    
    .mobile-logout-btn:hover {
        background: #c0392b;
    }
    
    .mobile-user-name {
        color: white;
        font-weight: bold;
        text-align: center;
        padding: 0.5rem;
        background: #34495e;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .post-meta, .reply-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 勉強会リンクのスタイル */
.seminar-title-link {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.seminar-title-link:hover {
    color: #3498db;
    text-decoration: underline;
}

.link-indicator {
    color: #27ae60;
    font-size: 0.8rem;
    font-weight: bold;
}

.no-link {
    color: #95a5a6;
    font-size: 0.8rem;
}

.register-btn {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
    cursor: pointer;
}

.register-btn:hover {
    background: #2980b9;
}

.register-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.seminar-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.delete-btn:hover {
    background: #c0392b;
}

/* ユーザータイプ別スタイル */
.user-type {
    background: #9b59b6;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* 勉強会登録セクション */
.seminar-register-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 2px solid #3498db;
}

.register-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.register-seminar-btn, .manage-seminars-btn {
    background: #27ae60;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

.register-seminar-btn:hover {
    background: #229954;
}

.manage-seminars-btn {
    background: #f39c12;
}

.manage-seminars-btn:hover {
    background: #e67e22;
}

/* 勉強会フォームスタイル */
.seminar-form .form-group {
    margin-bottom: 1rem;
}

.seminar-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.seminar-form input,
.seminar-form select,
.seminar-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.seminar-form input:focus,
.seminar-form select:focus,
.seminar-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.image-preview {
    margin-top: 0.5rem;
}

/* カスタムファイル入力スタイル */
.file-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    background: white;
    font-family: inherit;
    cursor: pointer;
}

/* モバイルでのファイル入力カスタマイズ */
@media (max-width: 768px) {
    .file-input-container {
        position: relative;
    }
    
    input[type="file"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        z-index: 2;
    }
    
    .file-input-label {
        display: block;
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #bdc3c7;
        border-radius: 4px;
        background: white;
        color: #666;
        font-size: 1rem;
        font-family: inherit;
        cursor: pointer;
        text-align: left;
        box-sizing: border-box;
        position: relative;
        z-index: 1;
    }
    
    .file-input-label.has-file {
        color: #27ae60;
    }
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.form-actions button[type="submit"] {
    background: #3498db;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #2980b9;
}

.form-actions button[type="button"] {
    background: #95a5a6;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #7f8c8d;
}

/* 勉強会管理リスト */
.my-seminar-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.my-seminar-item h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.my-seminar-item p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.edit-btn {
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: background 0.3s ease;
}

.edit-btn:hover {
    background: #e67e22;
}

/* 勉強会画像スタイル */
.seminar-image {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.seminar-thumbnail {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seminar-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
}

.image-preview-thumbnail {
    width: 150px;
    height: 112px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ddd;
    margin-top: 0.5rem;
}

/* セミナーカードレイアウト調整 */
.seminar-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.seminar-card-layout {
    display: flex;
    flex-direction: column;
}

.seminar-card-layout.has-image {
    flex-direction: row;
}

.seminar-card-layout.no-image {
    flex-direction: column;
}

.seminar-image-section {
    flex: 0 0 250px;
    padding: 1rem;
}

.seminar-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
}

.seminar-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seminar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.seminar-header {
    margin-bottom: 1rem;
}

.seminar-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.seminar-category {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.seminar-info {
    margin-bottom: 1rem;
}

.seminar-info p {
    margin: 0.5rem 0;
    color: #555;
}

.seminar-description {
    margin-bottom: 1rem;
    flex: 1;
}

.seminar-description h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.seminar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.seminar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* セミナーアクションボタンのスタイル統一 - 強制適用 */
.seminar-card .seminar-actions button,
.seminar-card .seminar-actions a,
.seminar-card .seminar-actions .seminar-detail-btn,
.seminar-card .seminar-actions .favorite-btn,
.seminar-card .seminar-actions .edit-btn,
.seminar-card .seminar-actions .delete-btn {
    padding: 0.6rem 1rem !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 0.8rem !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    min-height: 36px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    margin: 0.2rem !important;
    height: 36px !important;
    vertical-align: middle !important;
}

.seminar-card .seminar-actions .seminar-detail-btn {
    background: #3498db !important;
    color: white !important;
}

.seminar-card .seminar-actions .seminar-detail-btn:hover {
    background: #2980b9 !important;
}

.seminar-card .seminar-actions .seminar-detail-btn:disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed !important;
}

.seminar-card .seminar-actions .favorite-btn {
    background: #e74c3c !important;
    color: white !important;
}

.seminar-card .seminar-actions .favorite-btn:hover {
    background: #c0392b !important;
}

.seminar-card .seminar-actions .edit-btn {
    background: #f39c12 !important;
    color: white !important;
}

.seminar-card .seminar-actions .edit-btn:hover {
    background: #e67e22 !important;
}

.seminar-card .seminar-actions .delete-btn {
    background: #e74c3c !important;
    color: white !important;
}

.seminar-card .seminar-actions .delete-btn:hover {
    background: #c0392b !important;
}

/* さらに具体的なボタンスタイル - 最終手段 */
.seminar-card-layout .seminar-content .seminar-actions button,
.seminar-card-layout .seminar-content .seminar-actions a {
    padding: 0.6rem 1rem !important;
    height: 36px !important;
    min-height: 36px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    font-size: 0.8rem !important;
    border: none !important;
    border-radius: 4px !important;
    margin: 0.2rem !important;
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* 画像表示の修正 */
.seminar-card-layout .seminar-image-section {
    flex: 0 0 200px !important;
    padding: 1rem !important;
    max-width: 200px !important;
}

.seminar-card-layout .seminar-image-container {
    width: 100% !important;
    height: 150px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.seminar-card-layout .seminar-image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px !important;
}

/* 画像なしの場合のスタイル調整 */
.seminar-card-layout.no-image .seminar-content {
    max-width: 100% !important;
}

/* 画像ありの場合のコンテンツエリア調整 */
.seminar-card-layout.has-image .seminar-content {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 1rem !important;
}

/* プレースホルダー画像のスタイル */
.seminar-card-layout .seminar-image-container.no-image {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.seminar-card-layout .seminar-image-container.no-image::before {
    content: "📷 画像なし";
    text-align: center;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .seminar-thumbnail {
        width: 150px;
        height: 112px;
    }
    
    .image-preview-thumbnail {
        width: 120px;
        height: 90px;
    }
    
    .seminar-card-layout.has-image {
        flex-direction: column;
    }
    
    .seminar-card-layout .seminar-image-section {
        flex: none !important;
        max-width: 100% !important;
        padding: 1rem 1rem 0 1rem !important;
    }
    
    .seminar-card-layout .seminar-image-container {
        height: 200px !important;
        max-width: 100% !important;
    }
    
    .seminar-actions {
        flex-direction: column;
    }
    
    .seminar-actions button,
    .seminar-actions a {
        width: 100%;
        text-align: center;
    }
}

/* 掲示板の折りたたみ機能スタイル */
.clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.post-header.clickable:hover {
    background-color: #f8f9fa;
}

.expand-icon {
    margin-left: auto;
    font-size: 1.2rem;
    color: #666;
    transition: transform 0.3s ease;
}

.post-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.reply-count.clickable {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}

.reply-count.clickable:hover {
    color: #2980b9;
}

.replies {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.replies[style*="block"] {
    max-height: none;
    transition: max-height 0.5s ease-in;
}

.reply {
    border-left: 3px solid #3498db;
    margin-left: 1rem;
    padding-left: 1rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 0 4px 4px 0;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 管理者削除ボタンスタイル */
.admin-delete {
    background: #8e44ad !important;
    border: 1px solid #8e44ad !important;
    color: white !important;
    font-size: 0.7rem !important;
    padding: 0.2rem 0.6rem !important;
    position: relative;
}

.admin-delete:hover {
    background: #732d91 !important;
    border-color: #732d91 !important;
}

.admin-delete::before {
    content: "👑";
    margin-right: 0.3rem;
}


/* トップページのクリック可能な要素のスタイル */
.feature-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.feature-link .feature-item {
    cursor: pointer;
}

.pricing-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
}

.pricing-link .pricing-item {
    cursor: pointer;
}

/* 強制的にプロフィールと管理者ボタンのスタイルを適用 - 2025年7月10日 */
.profile-link, 
a[href="profile.php"],
.user-info a[href="profile.php"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    margin-right: 0.3rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
    border: none !important;
}

.profile-link:hover, 
a[href="profile.php"]:hover,
.user-info a[href="profile.php"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

.admin-link,
a[href="admin.html"],
.user-info a[href="admin.html"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    margin-right: 0.3rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
    border: none !important;
}

.admin-link:hover,
a[href="admin.html"]:hover,
.user-info a[href="admin.html"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
    background: linear-gradient(135deg, #ee5a52 0%, #ff6b6b 100%) !important;
    color: white !important;
    text-decoration: none !important;
}

/* お気に入りボタンのスタイル */
.favorite-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}

.favorite-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.favorite-btn.favorited {
    background-color: #e74c3c !important;
    color: white !important;
}

.favorite-btn.favorited:hover {
    background-color: #c0392b !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 掲示板 - 横一列表示スタイル */
.post-row {
    display: grid;
    grid-template-columns: 100px 1fr 120px 100px 140px 30px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.post-category {
    display: flex;
    justify-content: flex-start;
}

.post-title-column {
    min-width: 0; /* グリッドオーバーフロー防止 */
}

.post-title {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reply-count-inline {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-left: 0.5rem;
}

.post-author-column {
    text-align: center;
}

.post-date-column {
    text-align: center;
    font-size: 0.8rem;
    color: #7f8c8d;
}

.post-actions-column {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.post-expand-column {
    text-align: center;
}

.edit-btn.small, .delete-btn.small {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 3px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.view-replies-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.view-replies-btn:hover {
    background-color: #138496;
}

/* カテゴリーフィルター横一列表示 */
.forum-filters {
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.forum-filters h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #dee2e6;
    background-color: white;
    color: #6c757d;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.filter-btn.active:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
}

/* Mobile auth link fix - ULTIMATE OVERRIDE */
#mobileMenu .mobile-auth-section .mobile-auth-link,
#mobileMenu .mobile-auth-section a,
.mobile-auth-section .mobile-auth-link,
.mobile-auth-section a,
nav ul li .mobile-auth-section a,
#mobileLoginLink,
#mobileRegisterLink,
a#mobileLoginLink,
a#mobileRegisterLink,
a[href="login.php"].mobile-auth-link,
a[href="register.php"].mobile-auth-link,
.mobile-auth-link,
.mobile-menu a.mobile-auth-link,
#mobileMenu .mobile-auth-link,
.mobile-nav .mobile-auth-link,
a.mobile-auth-link,
nav .mobile-auth-link {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0.8rem !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    color: white !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#mobileMenu .mobile-auth-section .mobile-auth-link:hover,
#mobileMenu .mobile-auth-section a:hover,
.mobile-auth-section .mobile-auth-link:hover,
.mobile-auth-section a:hover,
nav ul li .mobile-auth-section a:hover,
#mobileLoginLink:hover,
#mobileRegisterLink:hover,
a#mobileLoginLink:hover,
a#mobileRegisterLink:hover,
a[href="login.php"].mobile-auth-link:hover,
a[href="register.php"].mobile-auth-link:hover,
.mobile-auth-link:hover,
.mobile-menu a.mobile-auth-link:hover,
#mobileMenu .mobile-auth-link:hover,
.mobile-nav .mobile-auth-link:hover,
a.mobile-auth-link:hover,
nav .mobile-auth-link:hover {
    background-color: #34495e !important;
    color: white !important;
}

/* Additional mobile navigation fixes - ULTIMATE OVERRIDE */
.mobile-menu li a,
#mobileMenu li a,
nav ul li a {
    color: white !important;
}

.mobile-menu li a[href*="login"],
.mobile-menu li a[href*="register"],
nav ul li a[href*="login"],
nav ul li a[href*="register"],
#mobileMenu li a[href*="login"],
#mobileMenu li a[href*="register"] {
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
    border: none !important;
    box-shadow: none !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .post-row {
        display: block !important;
        padding: 1rem !important;
    }
    
    /* カテゴリー行 */
    .post-category {
        display: block !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* タイトル行：タイトル + 展開ボタン */
    .post-title-column {
        display: block !important;
        position: relative !important;
        margin-bottom: 0.5rem !important;
    }
    
    .post-title {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        display: block !important;
        padding-right: 40px !important;
    }
    
    .post-expand-column {
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
        width: 30px !important;
        text-align: center !important;
    }
    
    /* 著者行：投稿者名のみ */
    .post-author-column {
        display: block !important;
        text-align: left !important;
        margin: 0.5rem 0 !important;
        font-size: 0.9rem !important;
    }
    
    /* 日付と編集・削除ボタンを同じ行に */
    .post-date-column {
        display: inline-block !important;
        text-align: left !important;
        margin-right: 1rem !important;
        font-size: 0.8rem !important;
    }
    
    .post-actions-column {
        display: inline-block !important;
        justify-content: flex-start !important;
    }
    
    .filter-buttons {
        justify-content: center;
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* モバイルで返信セクションのスクロール問題を修正 */
    .replies[style*="block"] {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .post-content {
        overflow: visible !important;
        max-height: none !important;
    }
    
    /* モバイルでページ全体のスクロールを確保 */
    body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
    }
}

/* ユーザータイプバッジのスタイル */
.user-type-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 各ユーザータイプの背景色 */
.user-type-technologist {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
}

.user-type-student {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
}

.user-type-organizer {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.user-type-company {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.user-type-hospital {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 放射線技師バッジの緑色表示を完全に無効化 */
.user-type-badge.user-type-technologist,
.user-type-technologist.user-type-badge,
span.user-type-technologist,
.user-type-technologist {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
    color: white !important;
}

/* モバイル用のユーザータイプバッジ */
@media (max-width: 768px) {
    .user-type-badge {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
        margin-left: 0.3rem;
    }
    
    .user-type-badge.user-type-technologist,
    .user-type-technologist.user-type-badge,
    span.user-type-technologist,
    .user-type-technologist {
        background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%) !important;
        color: white !important;
    }
}

/* 画像モーダル表示のスタイル */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: pointer;
}

.image-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* モバイルでの画像モーダル最適化 */
@media (max-width: 768px) {
    .image-modal {
        padding: 5px;
    }
    
    .image-modal img {
        max-width: 99%;
        max-height: 99%;
        width: auto;
        height: auto;
    }
}