/*
Theme Name: JIN Child
Template: jin
*/

/* ---------------------------------------------------------
 * AICHI SOCIAL JUNCTION - BRAND COLORS & FONTS
 * --------------------------------------------------------- */

:root {
    --navy-main: #003366;
    --accent-orange: #FF8C00;
    --accent-green: #2E8B57;
    --bg-light: #f0f4f8;
}

body {
    font-family: 'Noto Sans JP', sans-serif !important;
}

/* ヘッダー・メインカラー設定 */
#header { border-top: 5px solid var(--accent-orange) !important; }
.main-color, .navigation, #infobar, .content-title, .btn-orange, #footer, .header-logo-text {
    background-color: var(--navy-main) !important;
}
.header-logo a, #g-menu .g-menu-list a, .navigation-inner a, .search-icon, .snsc-item a {
    color: #ffffff !important;
}

/* ---------------------------------------------------------
 * 【重要】トップページ全幅化（枠をぶち破る設定）
 * --------------------------------------------------------- */

/* トップページのみ、JINの横幅制限を完全に解除する */
.home.page #contents,
.home.page #main-contents,
.home.page .content-inner,
.home.page .main-content-inner,
.home.page article,
.home.page .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    float: none !important;
}

/* 画面左右にできてしまう謎の白い余白を消去 */
.home.page .wrapper {
    overflow: hidden !important;
}

/* 不要な要素を非表示 */
.home.page .entry-title, .home.page #sidebar, .home.page .sns-top, .home.page .sns-bottom, 
.home.page .ent-entry-footer, .home.page .breadcrumb {
    display: none !important;
}

/* ---------------------------------------------------------
 * CUSTOM HERO & SEARCH BOX (モックアップ再現)
 * --------------------------------------------------------- */

.asj-hero-container {
    background: linear-gradient(rgba(0,51,102,0.85), rgba(0,51,102,0.85)), 
                url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?q=80&w=2000');
    background-size: cover;
    background-position: center;
    padding: 120px 5% !important; /* 左右に少しだけ余裕 */
    color: #fff;
    text-align: center;
    border-radius: 0 0 50px 50px;
    width: 100% !important;
    box-sizing: border-box;
}

.asj-main-copy {
    font-size: clamp(1.8rem, 5vw, 3rem); /* 画面サイズに合わせて自動調整 */
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 30px;
}

.asj-search-box {
    background: #fff;
    max-width: 1000px;
    margin: -60px auto 80px;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
    width: 90%; /* スマホで端まで行かないように */
}

.asj-search-flex {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.asj-tags a {
    background: var(--bg-light);
    color: var(--navy-main) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

/* 記事一覧などは中央寄せにする */
.home.page .jin-shortcode-posts-list,
.home.page .fixed-content-width {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}