/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}

.new_mark{
    width: 70px;
    height: 50px;
 }
/* ヘッダースタイル */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ナビゲーションスタイル */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.main-site-link {
    color: #e74c3c !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
}

.main-site-link:hover {
    color: #c0392b !important;
}

/* セクションスタイル */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.section p {
    max-width: 800px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2rem;
}

/* お問い合わせフォームスタイル */
.contact-form-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container iframe {
    max-width: 100%;
    border-radius: 5px;
    transition: height 0.3s ease;
}

/* モバイル向け調整 */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 10px;
    }
    
    .contact-form-container iframe {
        height: 1000px; /* モバイル向けに高さを増やす */
    }
}

/* ウェルカムセクションスタイル */
.welcome {
    background-color: #3498db;
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.welcome h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

/* 各セクションの背景色 */
#welcome {
    background-color: #f5f5f5;
}

#materials {
    background-color: #ecf0f1;
}

#forum {
    background-color: #f5f5f5;
}

#profile {
    background-color: #ecf0f1;
}

/* 資料カードグリッドスタイル */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
}

.material-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.material-card-new {
    background-color: white;
    background-image: url(../img/new.png);
    background-repeat: no-repeat;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding-top: 50px;
    padding-left: 50px;
}

.material-card:hover {
    transform: translateY(-10px);
}

.material-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.material-content {
    padding: 20px;
}

.material-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.material-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: left;
}


.material-content img {
    width:100%;
    height: 180px;
}

.material-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* Googleドライブフォルダ埋め込みのスタイル */
.drive-folder-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.drive-folder-container iframe {
    max-width: 100%;
    border-radius: 5px;
    background-color: #f8f9fa;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .drive-folder-container {
        padding: 10px;
    }
    
    .drive-folder-container iframe {
        height: 400px;
    }
}

/* Formカードグリッドスタイル */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(1200px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
}

.form-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.form-card:hover {
    transform: translateY(-10px);
}

.form-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.form-content {
    padding: 20px;
}

.form-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.form-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: left;
}

.material-content img {
    width:100%;
    height: 180px;
}

.material-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}


/* 掲示板スタイル */
.forum-container {
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
}

.forum-post-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.forum-posts {
    margin-top: 30px;
}

.post {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.post-author {
    font-weight: 600;
    color: #2c3e50;
}

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

.post-content {
    font-size: 1rem;
    line-height: 1.6;
}

.post-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.post-action {
    margin-left: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.post-action:hover {
    color: #3498db;
}

/* フォームスタイル */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

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

/* プロフィールセクションスタイル */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.profile-status {
    font-size: 1rem;
    color: #7f8c8d;
}

.profile-details {
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.profile-detail {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.logout-btn {
    background-color: #e74c3c;
    margin-top: 30px;
}

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

/* トップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .section h2 {
        font-size: 2.5rem;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    /* 掲示板関連の強化スタイル - style2.cssに追加 */

/* フォーラムコントロール */
.forum-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
}

.forum-sort {
    display: flex;
    align-items: center;
}

.forum-sort label {
    margin-right: 10px;
    font-weight: 500;
}

.forum-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    font-size: 0.9rem;
}

/* スレッド表示のスタイル */
.thread {
    margin-bottom: 30px;
}

.replies {
    margin-left: 30px;
    border-left: 2px solid #3498db;
    padding-left: 20px;
}

.reply {
    margin-top: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* 投稿スタイルの調整 */
.post {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

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

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

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

.post-author {
    font-weight: 600;
    color: #3498db;
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.post-action {
    margin-right: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.post-action:hover {
    color: #3498db;
}

.post-action-icon {
    margin-right: 5px;
}

.reply-post {
    background-color: #f5f9ff;
}

.reply-indicator {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.replied-to {
    font-weight: 600;
    color: #3498db;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #2c3e50;
}

/* フォームの調整 */
.form-group label small {
    font-weight: normal;
    color: #7f8c8d;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .forum-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forum-sort {
        margin-top: 10px;
    }
    
    .replies {
        margin-left: 15px;
        padding-left: 10px;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}
}