/* =========================================
   基本設定 & Webフォント適用
   ========================================= */
/* 背景色は温かみのあるオフホワイトを維持しつつ、よりおだやかなトーンに */
body {
    background-color: #faf8f5; 
}

h1, h2, h3, 
.section-title, 
.gateway-text h3, 
.pickup-title, 
.profile-name {
    font-weight: 600;
    color: #333; /* 強い黒から、目に優しいダークグレーへ */
}

.front-page-main section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* 見出し：太線をなくし、くすみグリーンの繊細な下線で上品に */
.section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    border-bottom: 2px solid #8f9f8c; 
    display: inline-block;
    padding-bottom: 8px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* テーマ共通の緑の点を消す設定はそのまま維持 */
.section-title::before,
.section-title::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* =========================================
   ① ファーストビュー (画像のみ)
   ========================================= */
.hero-section {
    padding: 0 !important;
    max-width: 100% !important;
}

.hero-image-only {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   ② ターゲット別の大きな入り口
   ========================================= */
.gateway-container {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.gateway-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    
    /* ★修正：極細の枠線をつけ、影を少しだけはっきりさせる */
    border: 1px solid #e0ddd6; /* 背景に馴染むごく薄いグレーベージュの線 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06); /* 影を0.04から0.06に微増 */
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時の影も少しだけ濃くします */
.gateway-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gateway-image {
    border-bottom: none; /* 画像下の太線を削除 */
}

.gateway-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* 正方形を維持 */
    object-fit: cover;
    display: block;
}

.gateway-text {
    padding: 24px 20px;
    text-align: center;
}

.gateway-text h3 {
    font-size: 17px;
    margin: 0;
    line-height: 1.5;
    color: #444;
}

.gateway-btn-wrap {
    text-align: center;
    padding: 0 20px 25px;
    margin-top: auto;
}

/* ★ボタン：丸みを活かしたナチュラルなデザイン★ */
.btn-small {
    display: inline-block;
    padding: 10px 28px;
    background-color: #8f9f8c; /* サイトに馴染む優しいくすみグリーンに変更 */
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    
    border: none;
    box-shadow: 0 3px 10px rgba(143, 159, 140, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* ホバー時の設定 */
.btn-small:hover {
    background-color: #7a8a77; /* ホバー時は少し濃いくすみグリーンに */
    transform: translateY(-1px);
    color: #fff !important; /* ★追記：テーマの干渉を無視して、文字色を「白」で強制固定します */
}


/* =========================================
   ③ ピックアップ記事 (縦長・自動取得対応)
   ========================================= */
.pickup-scroll-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 25px;
    /* スクロールバーも目立たない薄いグレーに */
    scrollbar-width: thin;
    scrollbar-color: #ddd #f4f4f4;
}

.pickup-scroll-wrapper::-webkit-scrollbar { height: 6px; }
.pickup-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
.pickup-scroll-wrapper::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.pickup-card {
    flex: 0 0 calc(33.333% - 14px); 
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    
    /* ★修正：ゲートウェイカードと同じ枠線と影を適用 */
    border: 1px solid #e0ddd6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pickup-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pickup-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-bottom: none;
    overflow: hidden;
}

.pickup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pickup-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pickup-title {
    font-size: 15px;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pickup-excerpt {
    font-size: 13px;
    color: #666; /* 文字色を少し淡くして読みやすく */
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================
   ④ 運営者プロフィール
   ========================================= */
.operator-profile {
    /* 枠線と影をなくし、淡いくすみグリーンベージュの背景で優しく包む */
    background-color: #f2f4f1; 
    border: 1px solid #e0ddd6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px; /* 余白を少し広げてゆったりと */
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff; /* 写真の周りに白い縁取りをつけて上品に */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    object-fit: cover;
}

.profile-content {
    flex: 1;
}

.profile-name {
    font-size: 19px;
    margin-bottom: 8px;
    color: #333;
}

.profile-name::before,
.profile-name::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.profile-name .sp-only {
    display: none;
}

.profile-link {
    display: inline-block;
    margin-top: 12px;
    color: #7a8a77;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid #7a8a77; /* 線を細く上品に */
    transition: color 0.2s ease, border-color 0.2s ease;
}

.profile-link:hover {
    color: #5d6b5b;
    border-color: #5d6b5b;
    background-color: transparent; /* 背景色変化をリセット */
}

/* =========================================
   ⑤ 最新の投稿
   ========================================= */
.latest-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* 太線を細くし、主張しすぎない上品な区切り線（グレー）に変更 */
.latest-posts-list li {
    border-bottom: 1px solid #e5e5e5; 
}

.latest-posts-list li:last-child {
    border-bottom: none;
}

.latest-posts-list a {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    text-decoration: none;
    color: #333;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.latest-posts-list a:hover {
    color: #8f9f8c; /* ホバーすると文字が優しくくすみグリーンに変わる */
    opacity: 0.9;
}

.post-title {
    font-size: 15px;
    font-weight: bold;
}

.post-date {
    font-size: 13px;
    color: #888; /* 日付は少し控えめなグレーにして綺麗に整列 */
    font-weight: normal;
}

/* =========================================
   スマートフォン対応
   ========================================= */
@media (max-width: 768px) {
    .front-page-main section {
        padding: 40px 15px; /* スマホの余白調整 */
    }

    .gateway-container {
        flex-direction: column;
        gap: 24px;
    }

    .pickup-scroll-wrapper {
        scroll-snap-type: x mandatory;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: -15px;
        margin-right: -15px;
    }

    .pickup-card {
        flex: 0 0 82%; 
        scroll-snap-align: center;
    }
    
   .profile-card {
        flex-direction: column;
        text-align: center; /* 写真や名前を中央にするためのベース設定 */
        padding: 30px 20px;
    }

    /*名前のフォントを少し小さくする（19px → 17px） */
    .profile-name {
        font-size: 17px;
    }

    /*紹介文だけを左寄せにする */
    .profile-bio {
        text-align: left;
        font-size: 14px; /* スマホ用に少し文字サイズを調整しても読みやすいです */
        line-height: 1.6;
    }
	
	.profile-name .sp-only {
        display: inline;
    }

    .latest-posts-list a {
        flex-direction: column;
        gap: 6px;
    }
    
    .post-date {
        font-size: 12px;
    }
}