@charset "UTF-8";

/* =============================================== */
/* 0. 変数 & 基本設定 */
/* =============================================== */
:root {
    --primary-color: #FF6B6Bcc;
    --secondary-color: #4ECDC4cc;
    --text-dark: #333;
    --text-gray: #555;
}

#content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.home-page-wrapper {
    width: 100%;
    overflow-x: hidden;
    background-color: #f9fbfb;
}

.content-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 2カラムラッパー */
.two-column-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 20px 60px;
    align-items: flex-start;
}

/* メインカラム (左) */
.main-column {
    flex: 1;
    min-width: 0;
}

/* サイドバーカラム (右) */
.sidebar-column {
    width: 300px;
    flex-shrink: 0;
}


/* =============================================== */
/* 1. ヒーローセクション (FV) */
/* =============================================== */
.hero-section {
    position: relative;
    height: 40vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0;
    background-color: #111; 
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/top-hero.jpg');
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    opacity: 0.5; 
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}
.hero-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}
.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 20px 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: 600;
    text-shadow: 0 0 10px #f9706f;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

/* =============================================== */
/* メインカラム内 セクション共通 */
/* =============================================== */
section {
    padding: 0 0 80px 0;
}
.section-header {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}
.section-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    background: none;
    border: none;
    padding: 0;
    font-weight: 700;
    position: relative;
    display: inline-block;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 1.6rem;
    background-color: var(--primary-color);
    margin-right: 12px;
    vertical-align: middle;
    border-radius: 3px;
}
.section-title::after {
    display: none;
}
.section-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0 0 0 20px;
}


/* =============================================== */
/* 2. エリアから探す */
/* =============================================== */
.area-card-grid-top8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}
.area-pic-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3 / 2; 
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.area-pic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.area-pic-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.25); 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.4s ease;
}
.area-pic-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
    transition: transform 0.4s ease;
}
.area-pic-card:hover .area-pic-img { transform: scale(1.08); }
.area-pic-card:hover .area-pic-overlay { background-color: rgba(0,0,0,0.1); }
.area-pic-card:hover .area-pic-title { transform: scale(1.05); }

/* エリアリスト */
.area-list-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.area-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}
.area-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.area-group-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0 0 12px 0;
    border: none;
    padding: 0;
    background: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.area-group-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 1rem;
    background-color: var(--primary-color);
    margin-right: 8px;
    border-radius: 3px;
}
.area-button-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.area-btn {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}
.area-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* =============================================== */
/* 3. 編集部厳選スタジオ (縦型カード) */
/* =============================================== */
.ranking-rows-container {
    display: flex;
    flex-direction: column;
    gap: 50px; 
}
.ranking-row-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    padding: 0 0 8px 0;
    background: none;
    display: flex;
    align-items: center;
}
.ranking-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* 縦型カード (画像 + テキスト) */
.ranking-card-vertical {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}
.ranking-card-vertical:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* サムネイル部分 */
.ranking-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
/* WordPressが出力するimgタグに対応 */
.ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ranking-card-vertical:hover .ranking-thumb img {
    transform: scale(1.05);
}

/* 順位バッジ */
.rank-badge-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    font-family: 'Helvetica', sans-serif;
    border-bottom-right-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}
.rank-1 { background: linear-gradient(135deg, #FFD700, #FDB931); }
.rank-2 { background: linear-gradient(135deg, #E0E0E0, #9E9E9E); }
.rank-3 { background: linear-gradient(135deg, #FFB74D, #F57C00); }

/* コンテンツ部分 */
.ranking-card-info {
    padding: 10px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.ranking-card-info h4 {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    font-weight: bold;
    border: none;
    padding: 0;
    background: none;
}
.ranking-card-info p {
	font-size: 0.75rem;
	color: var(--text-gray);
    margin: 0;
    line-height: 1.4;
}



/* =============================================== */
/* 4. サイドバーウィジェット */
/* =============================================== */
.sidebar-widget {
    margin-bottom: 40px;
    padding: 0 10px;
}
.widget-title:not(.footer-title) {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    background: none;
    border: none;
    padding: 0 0 8px 0;
    margin: 0 0 15px 0;
    border-bottom: 2px dotted var(--primary-color);
}

/* サイト内検索 */
.sidebar-search-form {
    display: flex;
}
.search-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 0.9rem;
    outline: none;
}
.search-submit {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-submit:hover {
    background-color: var(--primary-color);
}

/* バナー */
.widget-banner {
    padding: 0; 
}
.widget-banner a {
    display: block;
    transition: transform 0.3s;
}
.widget-banner a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* カテゴリリスト */
.category-list {
    list-style: none !important;
    padding: 0;
    margin: 0;
}
.category-list li {
    border-bottom: 1px dotted #ddd;
    position: relative;
}
.category-list a {
    display: block;
    padding: 10px 0 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.category-list a:hover {
    color: var(--secondary-color);
}
.category-list a:hover::before {
    background-color: var(--primary-color);
}

/* 人気記事ウィジェット (Cocoon用調整) */
.widget-popular ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* Cocoonのショートコードが出力するCSSクラスへの上書きが必要な場合 */
.widget-popular .popular-entry-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.widget-popular .popular-entry-card-thumb {
    width: 120px;
    flex-shrink: 0;
}
.widget-popular .popular-entry-card-thumb img {
    border-radius: 4px;
    width: 100%;
    height: auto;
}
.widget-popular .popular-entry-card-content {
    font-size: 0.9rem;
    line-height: 1.4;
}
.widget-entry-cards:not(.large-thumb-on) .card-title {
	-webkit-line-clamp: 3 !important;
}

/* プロフィール */
.profile-content {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}
/* WordPressのアバター画像用スタイル */
.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}
.profile-name {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    border: none;
    background: none;
    padding: 0;
}
.profile-text {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* =============================================== */
/* 5. スマホ対応 (レスポンシブ) */
/* =============================================== */
@media (max-width: 991px) {
    .two-column-wrapper {
        flex-direction: column;
        padding: 40px 15px;
    }
    .sidebar-column {
        width: 100%;
        margin-top: 40px;
        border-top: 1px solid #eee;
        padding-top: 40px;
    }
    .studio-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 350px; 
        padding: 60px 0; 
    }
    .hero-content { padding: 0 20px; }
    .hero-title { font-size: 2.2rem; }
    
    .area-card-grid-top8 {
        grid-template-columns: repeat(2, 1fr);
    }
    .area-button-wrap {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .area-btn { text-align: center; }
    
    .ranking-cards-row {
        grid-template-columns: 1fr;
    }
    .ranking-card-vertical {
        flex-direction: row;
        align-items: center;
        height: auto;
    }
    .ranking-thumb {
        width: 120px;
        aspect-ratio: 4 / 3;
        flex-shrink: 0;
    }
    .rank-badge-corner {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}