@charset "UTF-8";

/* ==================================== */
/* ブログページ専用スタイル */
/* ==================================== */

/* ブログヒーローセクション */
.blog-hero {
    width: 100%;
    height: 35vh;
    min-height: 250px;
    /* 背景に薄い黒のフィルターをかけて文字を読みやすくする */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--primary-gradient, linear-gradient(135deg, #2c3e50, #3498db));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    margin-top: -70px; /* ヘッダー固定分の相殺 */
    padding-top: 70px;
}

.blog-hero-content h1 {
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: clamp(32px, 6vw, 48px);
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.blog-hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
}

/* 記事読み込み中のテキスト */
.loading-text {
    text-align: center;
    width: 100%;
    color: #888;
    padding: 40px 0;
}

/* 記事一覧グリッド */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

/* 記事カード */
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
    border: 1px solid #f0f0f0;
    opacity: 0; /* JSでふわっと表示させるため初期値は0 */
    transform: translateY(20px);
}

/* JSで追加される表示用のクラス */
.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* サムネイル画像 */
.blog-card-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f8f9fa;
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img-wrapper img {
    transform: scale(1.08);
}

/* 記事コンテンツ部分 */
.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: 12px;
    color: var(--primary-color, #2c3e50);
    background-color: #f0f4f8;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    font-weight: 700;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--primary-color, #3498db);
}

.blog-desc {
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: auto;
}

/* ==================================== */
/* 記事詳細ページ用スタイル */
/* ==================================== */
.article-header {
    margin-top: 70px;
    padding: 60px 20px 30px;
    text-align: center;
    background: #fdfdfd;
}

.article-date {
    display: inline-block;
    color: var(--primary-color, #2c3e50);
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-weight: 700;
    margin-bottom: 15px;
    background: #f0f4f8;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.article-title {
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.5;
    color: #222222;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 900;
}

.article-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.article-content {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.article-main-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-content .lead-text {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color, #3498db);
    color: #444;
}

/* 見出しの装飾をリッチに */
.article-content h2 {
    font-size: 24px;
    color: #222;
    margin: 60px 0 25px;
    padding: 12px 15px;
    background: #f4f7f9;
    border-left: 5px solid var(--primary-color, #2c3e50);
    border-radius: 0 8px 8px 0;
    line-height: 1.4;
}

.article-content h3 {
    font-size: 20px;
    margin: 40px 0 20px;
    color: #333;
    display: flex;
    align-items: center;
    border-bottom: 2px dashed #eee;
    padding-bottom: 10px;
}

.article-content h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 20px;
    background: var(--accent-color, #e67e22);
    margin-right: 12px;
    border-radius: 4px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 25px;
    color: #444;
}

.highlight {
    background: linear-gradient(transparent 60%, #fff3cd 60%);
    font-weight: bold;
    color: #222;
}

/* リストの装飾 */
.article-list {
    margin: 0 0 35px 20px;
    line-height: 1.9;
    background: #fafafa;
    padding: 20px 20px 20px 40px;
    border-radius: 8px;
}

.article-list li {
    margin-bottom: 12px;
    color: #444;
}

.article-list li:last-child {
    margin-bottom: 0;
}

/* ポイントボックス */
.point-box {
    background: #fffbf5;
    border: 2px solid #ffe8c2;
    padding: 20px 40px 30px;
    border-radius: 16px;
    margin: 40px 0;
}

.point-box h3 {
    border-bottom: none;
    color: #d35400;
}

.point-box h3::before {
    background: #d35400;
}

/* CTA（予約誘導）エリアの装飾 */
.article-cta {
    margin-top: 60px;
    padding: 4px; /* グラデーションの枠線の太さ */
    background: linear-gradient(135deg, var(--primary-color, #2c3e50), var(--accent-color, #3498db));
    border-radius: 16px;
    text-align: center;
}

.cta-inner {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 12px;
}

.cta-inner h3 {
    justify-content: center;
    color: var(--primary-color, #2c3e50);
    margin-top: 0;
    font-size: 22px;
    border: none;
}

.cta-inner h3::before {
    display: none;
}

.cta-inner p {
    margin-bottom: 30px;
}

/* ボタンを押しやすく・目立たせる */
.apply-button {
    display: inline-block;
    background: var(--accent-color, #e67e22);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 50px;
    box-shadow: 0 6px 15px rgba(230, 126, 34, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
}

.apply-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.4);
    background: #d35400;
}

/* 戻るボタン */
.back-to-blog {
    margin-top: 50px;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    padding: 14px 30px;
    border-radius: 30px;
    border: 2px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
}

.back-button:hover {
    background: #f8f9fa;
    color: #222;
    border-color: #ccc;
    transform: translateX(-5px); /* 左に少し動くアニメーション */
}

/* ==================================== */
/* レスポンシブ対応 (スマホ用表示調整) */
/* ==================================== */
@media (max-width: 768px) {
    .blog-hero {
        height: 25vh;
        min-height: 200px;
    }
    
    .blog-grid {
        gap: 24px;
        grid-template-columns: 1fr; /* スマホでは1列にして大きく見せる */
    }
    
    .article-content {
        padding: 30px 20px;
    }
    
    .article-content .lead-text {
        padding: 20px;
        font-size: 15px;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin: 40px 0 20px;
    }
    
    .point-box {
        padding: 15px 20px 25px;
    }
    
    .cta-inner {
        padding: 30px 15px;
    }
    
    .apply-button {
        padding: 16px 20px;
        font-size: 16px;
    }
}