/* 基本スタイル */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ヘッダースタイル */
header {
    background-color: #2E7D32;  /* 濃いグリーン */
    padding: 2rem 2rem 3rem 2rem;
    text-align: center;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header h1 {
    margin: 0;
    color: white;  /* 白に変更 */
    font-family: 'Mincho', serif;
}

header h2 {
    margin: 0.5rem 0;
    color: #DAA520;
    font-family: 'Gothic', sans-serif;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* コンテンツエリア */
.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    margin-bottom: 4rem;
}

/* セクションタイトル */
.content h2 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #DAA520;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1440px) {
    .content {
        max-width: 95%;
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
}

/* 7daysカリキュラム用のスタイル */
.curriculum-list:not(.level-courses .curriculum-list) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}

.curriculum-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    height: 280px;
    justify-content: space-between;
    text-align: center;
}

.curriculum-item h3 {
    margin: 0 0 10px;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-label {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.title {
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0;
    font-weight: bold;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* AI講座（初級・中級・上級）用のスタイル */
.ai-course .curriculum-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.ai-course .curriculum-item {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ai-course .curriculum-item h3 {
    margin: 0 0 15px;
}

.ai-course .curriculum-item h3 .title {
    font-size: 1.1rem;
    line-height: 1.4;
}

/* もっと見るボタンのスタイル */
.show-more-container {
    text-align: center;
    margin: 2rem 0;
}

.show-more-button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.show-more-button:hover {
    color: #0056b3;
}

.show-more-button i {
    transition: transform 0.3s ease;
}

/* 隠れているニュースアイテムの初期スタイル */
.news-item.hidden {
    display: none;
}

/* 表示時のスタイル */
.news-item.hidden.show {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    .news-item.hidden.show {
        grid-template-columns: 1fr;
    }
}

/* レベル別コースのスタイル */
.level-courses {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
    margin: 2rem 0 4rem;
}

.level-course {
    display: grid;
    grid-template-columns: 1fr 3fr;  /* 画像とコンテンツの比率を1:3に調整 */
    gap: 2rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .level-course {
        grid-template-columns: 1fr;  /* モバイル表示では縦並びに */
    }
}

/* 新着情報セクション */
.news-list {
    margin: 2rem 0 3rem;
}

/* ロードマップセクション */
.roadmap-intro {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    display: flex;           /* Flexboxを追加 */
    justify-content: center; /* 水平方向の中央揃え */
}

.roadmap-content {
    width: 100%;            /* 幅を100%に設定 */
    max-width: 600px;       /* コンテンツの最大幅を設定 */
    margin: 0 auto;         /* 左右のマージンを自動に */
    text-align: center;     /* ボタンを中央配置 */
}

.roadmap-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.roadmap-download {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
}

.roadmap-download h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.roadmap-download p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #45a049;
}

.download-button i {
    margin-right: 8px;
}

/* マインドセットセクション */
.mindset-link-section {
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.mindset-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;   /* ボタンなどを中央に配置 */
}

.mindset-description {
    max-width: 800px;
    margin: 0 auto 2rem;  /* 上下マージン0、左右auto */
    line-height: 1.6;
    color: #333;
    text-align: left;     /* テキストは左揃え */
}

.mindset-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.mindset-button:hover {
    background-color: #45a049;
}

.mindset-button i {
    margin-right: 8px;
}

/* Day 8の特別スタイル - 7Daysカリキュラムのみに適用 */
.curriculum-list:not(.level-courses .curriculum-list) .curriculum-item:last-child {
    background: linear-gradient(135deg, #f6f8ff 0%, #f1f5ff 100%);
    border: 2px solid #DAA520;
    position: relative;
    overflow: hidden;
}

.curriculum-list:not(.level-courses .curriculum-list) .curriculum-item:last-child::before {
    content: "FINAL";
    position: absolute;
    top: 10px;
    right: -30px;
    background: #DAA520;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.curriculum-list:not(.level-courses .curriculum-list) .curriculum-item:last-child .day-label {
    color: #DAA520;
    font-weight: bold;
}

.curriculum-list:not(.level-courses .curriculum-list) .curriculum-item:last-child .title {
    color: #333;
    font-size: 1.1rem;
    font-weight: bold;
}

/* 準備中ボタンの特別スタイル - 7Daysカリキュラムのみに適用 */
.curriculum-list:not(.level-courses .curriculum-list) .curriculum-item:last-child .button.forest-button.preparation {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    color: white;
    opacity: 0.8;
    cursor: not-allowed;
}

.curriculum-list:not(.level-courses .curriculum-list) .curriculum-item:last-child .button.forest-button.preparation:hover {
    opacity: 0.9;
}

/* マインドセットページのスタイル */
.mindset-header {
    background-color: transparent;
    background-image: url('https://i.imgur.com/tMDrq5m.png');
    background-size: cover;
    background-position: center bottom;
    padding: 1rem 2rem;  /* パディングを縮小 */
    text-align: center;
    min-height: 120px;  /* 高さを縮小 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.mindset-header h1 {
    margin: 0;
    color: white;
    font-family: 'Mincho', serif;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.back-button {
    position: absolute;
    left: 2rem;
    top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 3;
}

.back-button:hover {
    background-color: #eee;
    transform: scale(1.05);
}

.mindset-videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.video-item {
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-item h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
    flex: 1;
    text-align: left;
}

.video-link {
    margin-left: 2rem;
    flex-shrink: 0;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #4CAF50;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.video-link:hover {
    background-color: #45a049;
}

.video-link i {
    font-size: 1.2rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .mindset-header {
        min-height: 100px !important;  /* さらに高さを縮小 */
        padding: 0.8rem !important;    /* パディングを縮小 */
    }

    .mindset-header h1 {
        font-size: 1.8rem !important;  /* フォントサイズを縮小 */
    }

    .back-button {
        top: 0.5rem;           /* 上部の位置を調整 */
        left: 0.5rem;          /* 左側の位置を調整 */
        padding: 0.3rem 0.8rem; /* パディングを縮小 */
        font-size: 0.8rem;      /* フォントサイズを縮小 */
    }

    .mindset-videos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
}

@media screen and (max-width: 480px) {
    /* さらに小さい画面用の調整 */
    header {
        min-height: 100px !important;
    }

    .mindset-header h1 {
        font-size: 1.6rem !important;
    }
}

/* アーカイブセクションのスタイル修正 */
.archive-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.archive-content {
    text-align: center;
}

.archive-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

.archive-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.archive-button:hover {
    background-color: #45a049;
}

.archive-button i {
    margin-right: 8px;
}

/* マインドセットセクションのスタイル修正 */
.mindset-container,
.archive-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.mindset-intro,
.archive-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.mindset-description,
.archive-description {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #333;
    text-align: left;
}

/* 新着情報セクションのスタイル */
.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.news-title {
    margin: 0 0 0.8rem 0;
    font-size: 1.1rem;
    color: #333;
}

/* 画像スタイル */
.news-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* イベントカレンダー用 */
.seminar-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.seminar-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
}

/* 'line-catch' クラスのスタイルを追加 */
.line-catch {
    color: white !important;  /* 白に変更 */
    font-weight: bold !important;
    font-size: 1.2rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px !important;
    display: inline-block;
    text-shadow: none !important;
    position: relative;
    z-index: 2;
}

.line-container {
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 0.5rem;
}

.lecture-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.curriculum-item p {
    text-align: left;
}

.curriculum-item .forest-button {
    margin: 0 auto;
    display: inline-flex;
}

.image-placeholder {
    width: 120px;  /* 画像と同じ幅 */
    height: 120px;  /* 画像と同じ高さ */
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;  /* 画像がはみ出ないように */
    position: relative;  /* 子要素の位置指定のため */
}

.image-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* アスペクト比を保持 */
}

/* イベントカレンダー用 */
.seminar-image .image-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
}

.seminar-image .image-placeholder img {
    position: relative;  /* absoluteから変更 */
    width: 100%;
    height: auto;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;  /* 1列に */
    }
    
    .image-placeholder {
        width: 100%;
        height: 200px;
    }
}

/* 講義参加ボタンのスタイル */
.news-content .forest-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #2196F3, #1976D2);  /* 青系のグラデーション */
    width: fit-content;  /* コンテンツに合わせた幅 */
    min-width: 160px;    /* 最小幅を設定 */
}

.news-content .forest-button:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);  /* ホバー時は少し暗く */
    transform: translateY(-2px);
}

.news-content .forest-button i {
    font-size: 1.1rem;
}

/* 終了済み講義のボタンスタイル */
.news-content .forest-button.ended {
    background: linear-gradient(135deg, #999, #777) !important;
    transform: none !important;
    pointer-events: none;
}

.news-content .forest-button.ended:hover {
    transform: none !important;
    background: linear-gradient(135deg, #999, #777) !important;
}

/* 評価シートセクションのスタイル */
.evaluation-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.evaluation-content {
    text-align: center;
}

.evaluation-description {
    margin-bottom: 2rem;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.evaluation-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2em;
    color: white;
    background-color: #007bff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.evaluation-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.evaluation-button i {
    margin-right: 10px;
}

.evaluation-image {
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.evaluation-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.curriculum-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.curriculum-intro p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

/* セクション画像のスタイル */
.section-image {
    width: 100%;
    max-width: 800px;
    margin: 1.5rem auto;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: block;
}

/* record.htmlとmindset.htmlの共通ヘッダースタイル */
.site-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.8rem;  /* デフォルトサイズを縮小 */
    font-weight: 700;
    letter-spacing: 0.18em;
    color: white;
    margin: 1rem 0;  /* マージンを縮小 */
    padding: 0;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    /* mindset.htmlとrecord.html共通のヘッダー調整 */
    header {
        min-height: 120px !important;  /* 強制的に高さを縮小 */
        padding: 1rem !important;      /* パディングを縮小 */
        height: auto !important;       /* 高さを自動調整 */
    }

    .site-title {
        font-size: 2rem !important;    /* フォントサイズを縮小 */
        margin: 0.5rem 0 !important;   /* マージンを縮小 */
    }

    .header-content {
        padding: 1rem !important;      /* パディングを縮小 */
        gap: 0.5rem !important;        /* 間隔を縮小 */
    }

    /* mindset.html固有の調整 */
    .mindset-header {
        min-height: 100px !important;  /* さらに高さを縮小 */
        padding: 0.8rem !important;    /* パディングを縮小 */
    }

    .mindset-header h1 {
        font-size: 1.8rem !important;  /* フォントサイズを縮小 */
    }
}

@media screen and (max-width: 480px) {
    /* さらに小さい画面用の調整 */
    header {
        min-height: 100px !important;
    }

    .site-title {
        font-size: 1.8rem !important;
    }

    .mindset-header h1 {
        font-size: 1.6rem !important;
    }
}

/* マップに戻るボタンのスタイル改善 */
.back-to-map {
    text-align: center;
    padding: 2rem 0;
    margin: 0 auto;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.back-to-map a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.back-to-map a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .back-to-map {
        padding: 1.5rem 1rem;
    }

    .back-to-map a {
        font-size: 1.1rem;
    }
}