/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: Lightning Child Theme
Author: ver.1.0
*/

/* ==========================================
   全体レイアウト調整
   ========================================== */
:root {
  /* 基本のテキストサイズ */
  --vk-size-text: 18px !important;
  /* 小さな注釈などのサイズ */
  --vk-size-text-sm: 0.875rem;
  --vk-size-text-xs: 0.75rem;
  /* 大きめの見出しなどのサイズ */
  --vk-size-text-lg: 1.313rem;
  /* メタ情報（日付など）のサイズ */
  --vk-size-text-meta: 0.75rem;
}
.site-body {
    padding: 3.5rem 0 0rem !important;
}
.page-id-126 .site-body {
    padding: 0 !important;
}
.vk_post_title_new{
	display: none!important;
}
.author{
	display: none !important;	
}
.entry-meta-data-list {
	display: none !important;	
}
.entry-meta-item-updated {
    display: none !important;
}
/* アーカイブのページ送り */
.pagination {
	margin-bottom: 2rem;	
}
/* ==========================================
   フッター
   ========================================== */
#menu-footer-sub-navigation {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none !important;
    padding: 0 !important;
    margin: 10px 0 !important;
    gap: 20px;
}
#menu-footer-sub-navigation li a {
    color: #ffffff !important;
    font-size: 14px !important;
    text-decoration: none !important;
}
/* フッター全体に背景画像を設定 */
.site-footer {
    background-image: url("https://www.ihatov.iwate.jp/official/wp-content/uploads/2026/02/footer-image.jpg") !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed; /* スクロール時に背景が固定されておしゃれになります */
    padding: 0 !important; /* 内側の余白を一度リセット */
    position: relative;
}
/* 背景画像の上に黒い透過レイヤーを重ねる */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* 黒の透過度 */
    z-index: 1;
}
/* 文字などのコンテンツをレイヤーより上に表示 */
.site-footer > div {
    position: relative;
    z-index: 2;
}
/* フッター内の文字色を白で統一 */
.site-footer,
.site-footer a,
.site-footer .widget-title {
    color: #fff !important;
}
/* コピーライト部分（一番下の黒い帯）も透過させる場合 */
.site-footer-copyright {
    position: relative;
    z-index: 2;
    text-align: center;	
}
@media (max-width: 991.98px) {
    .main-section {
        margin-bottom: 0rem!important;
    }
}

/* 固定ページのメインタイトル (h1) */
.page-header {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: 8rem!important;
    text-align: center;
    color: #fff;
    background: #3b65f9 !important;
}
.page .entry-title {
    font-size: 28px !important;
    text-align: center; 
    color: #333;
    margin-bottom: 60px !important;
    position: relative;
    padding-bottom: 20px !important;
}

/* タイトルの下の装飾線 */
.page .entry-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--vk-color-primary); /* メインの青色 */
}

/* 固定ページの本文見出し (h2) */
.page .entry-content h2 {
    font-size: 26px !important;
    padding: 15px 20px !important;
    border-left: 8px solid var(--vk-color-primary) !important;
    background: #f0f4f8;
    margin-top: 70px !important;
    margin-bottom: 30px !important;
    color: #222;
}

/* 固定ページの小見出し (h3) */
.page .entry-content h3 {
    font-size: 22px !important;
    padding-left: 15px !important;
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 10px !important;
    margin-top: 50px !important;
    position: relative;
}

/* h3の左側に小さな四角アクセント */
.page .entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1.2em;
    background: var(--vk-color-primary);
}
/* PCサイズ（992px以上）の時に幅を制限する */
@media (min-width: 992px) {
    .custom-width-1024 {
        max-width: 1024px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ==========================================
    PC版専用設定 (992px以上)
   ========================================== */
@media (min-width: 992px) {
    /* お問い合わせメニューをボタン状にする */
    .header-btn-contact {
        display: flex !important;
        align-items: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-left: 10px !important;
    }
    .header-btn-contact a {
        background-color: var(--vk-color-primary) !important;
        color: #ffffff !important;
        padding: 14px 28px !important;
        line-height: 1 !important;
        border-radius: 4px !important; /* pxを追記しました */
        height: auto !important;
        display: flex !important;
        align-items: center;
        transition: background-color 0.3s ease;
        font-weight: bold;
    }

    .header-btn-contact a:hover {
        background-color: var(--vk-color-primary-dark) !important;
        color: #ffffff !important;
        opacity: 0.9;
        text-decoration: none !important;
    }

    .header-btn-contact a::after {
        display: none !important;
    }
}

/* 見出し2 (h2) : 上下線で挟むスタイル */
.entry-content h2 {
    font-size: 24px !important;
    text-align: center; /* 中央寄せで権威を出す */
    padding: 20px 0 !important;
    border-top: 1px solid #333 !important;
    border-bottom: 1px solid #333 !important;
    margin-top: 60px !important;
}

/* 見出し3 (h3) : 左側に2色のライン */
.entry-content h3 {
    font-size: 20px !important;
    padding: 5px 0 5px 15px !important;
    border-left: 2px solid #ccc !important;
    border-left: 6px solid var(--vk-color-primary) !important; /* メインカラーを細く */
}
/* ==========================================
   ニュースリスト（最新の投稿）
   ========================================== */
ul.wp-block-latest-posts {
    padding-left: 0 !important;
    border-top: 1px solid #ddd !important;
    margin-left: 0 !important;
}

.wp-block-latest-posts li {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding: 18px 10px !important;
    border-bottom: 1px solid #ddd !important;
    list-style: none !important;
    margin: 0 !important;
    position: relative !important;
    transition: background-color 0.3s ease;
}

.wp-block-latest-posts li:hover {
    background-color: #f8f6ec !important;
}

.wp-block-latest-posts li time {
    order: -1 !important;
    display: inline-block !important;
    min-width: 130px !important;
    color: #666 !important;
    font-size: 14px !important;
    margin-right: 15px !important;
    white-space: nowrap !important;
}

.wp-block-latest-posts li a.wp-block-latest-posts__post-title {
    flex: 1 !important;
    display: block !important;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    margin: 0 !important;
    position: relative;
    z-index: 1;
}

/* 行全体をクリック可能にする */
.wp-block-latest-posts li a.wp-block-latest-posts__post-title::before {
    content: "";
    position: absolute;
    top: -18px;
    bottom: -18px;
    left: -145px;
    right: -40px;
}
.wp-block-latest-posts li::after {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    border-top: 2px solid #5e89d6 !important;
    border-right: 2px solid #5e89d6 !important;
    transform: rotate(45deg) !important;
    margin-left: 15px !important;
    flex-shrink: 0 !important;
}

/* ==========================================
   スマートフォン専用設定 (767px以下)
   ========================================== */
@media (max-width: 767px) {
    /* メイン画像全画面 */
    .ltg-slide-item-img {
        content: url("https://www.ihatov.iwate.jp/official/wp-content/uploads/2026/02/main-sp.jpg") !important;
        height: 100vh !important;
        width: 100vw !important;
        object-fit: cover !important;
    }
    .ltg-slide, .ltg-slide-inner, .swiper-container, .swiper-slide {
        height: 100vh !important;
    }

    /* ニュースリストのスマホ調整 */
    .wp-block-latest-posts li {
        padding: 12px 5px !important;
        align-items: flex-start !important;
    }
    .wp-block-latest-posts li time {
        min-width: 90px !important;
        font-size: 13px !important;
    }
    .wp-block-latest-posts li a.wp-block-latest-posts__post-title {
        font-size: 14px !important;
        -webkit-line-clamp: 2;
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 固定フッターボタン */
    .mobile-footer-btns {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 10000 !important;
        box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
    }
    .mob-btn {
        flex: 1 !important;
        height: 65px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #ffffff !important;
        font-weight: bold;
        font-size: 15px;
        text-decoration: none !important;
    }
    .btn-scholarship { background-color: #5e89d6; border-right: 1px solid rgba(255,255,255,0.2); }
    .btn-contact { background-color: #4b6eab; }

    footer.site-footer {
        padding-bottom: 80px !important;
    }
}

/* ==========================================
   Snow Monkey Forms
   ========================================== */
/* 1. ボタン本体への強制指定 */
.smf-button-control__control {
    display: inline-block !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: var(--vk-color-primary) !important;
    color: #ffffff !important;
    
    /* 長丸にするための設定 */
    border-radius: 9999px !important;
    padding: 18px 80px !important;
    min-width: 280px !important;
    
    /* 装飾と余白 */
    font-weight: bold !important;
    font-size: 18px !important;
    line-height: 1 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

/* 2. 戻るボタン（戻るボタンがある場合の色分け） */
.smf-button-control__control[data-action="back"] {
    background-color: #999999 !important;
}

/* 3. ホバー時の動き */
.smf-button-control__control:hover {
    opacity: 0.8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
    background-color: var(--vk-color-primary-dark) !important;
}

/* 4. 送信中などの状態でも形を維持 */
.smf-button-control__control:focus,
.smf-button-control__control:active {
    outline: none !important;
    border-radius: 9999px !important;
}

/* 5. スマホでの調整 */
@media (max-width: 767px) {
    .smf-button-control {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
    .smf-button-control__control {
        width: 100% !important;
        min-width: 100% !important;
        padding: 15px 20px !important;
    }
}
/* --- Snow Monkey Forms ボタンの色をはっきりさせる --- */

.smf-button-control__control {
    /* 背景色を青色に強制指定 */
    background-color: var(--vk-color-primary) !important;
    background-image: none !important; /* グラデーションを消す */
    
    /* 文字色を白に強制指定 */
    color: #ffffff !important;
    
    /* 形の維持 */
    border-radius: 9999px !important;
    padding: 18px 80px !important;
    border: none !important;
    
    /* 影をつけて立体感を出す */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    
    /* フォント設定 */
    font-weight: bold !important;
    font-size: 18px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* ホバー（マウスを乗せた時）の設定 */
.smf-button-control__control:hover {
    background-color: var(--vk-color-primary-dark) !important; /* 濃い青に */
    color: #ffffff !important;
    opacity: 0.9 !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
}

/* 戻るボタンが白くならないように（もしあれば） */
.smf-button-control__control[data-action="back"] {
    background-color: #999999 !important;
}

/* ==========================================
   投稿ページの次へ前へのリンク
   ========================================== */
/* 前後ナビ全体の枠（外側） */
.custom-post-navigation {
    margin: 60px 0 40px;
    padding: 0;
}
/* WordPressが出力するnav要素 */
.custom-post-navigation .post-navigation {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}
/* リンクを横並びにする */
.custom-post-navigation .nav-links {
    display: flex !important;
    justify-content: space-between;
    gap: 20px;
}
/* 左右のブロック */
.custom-post-navigation .nav-previous, 
.custom-post-navigation .nav-next {
    flex: 1; /* 均等な幅にする */
    margin: 0 !important;
}
.custom-post-navigation .nav-next {
    text-align: right;
}
/* リンク全体をブロック化して押しやすく */
.custom-post-navigation .nav-links a {
    text-decoration: none !important;
    display: block;
}
/* 「前の記事」「次の記事」というラベル */
.custom-post-navigation .nav-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--vk-color-primary) ;
    font-weight: bold;
    margin-bottom: 5px;
}

/* スクリーンリーダー用テキスト（非表示にする） */
.custom-post-navigation .screen-reader-text {
    display: none !important;
}

/* スマホ対応：横に並べるのが厳しい場合は縦に並べる */
@media (max-width: 576px) {
    .custom-post-navigation .nav-links {
        flex-direction: column;
    }
    .custom-post-navigation .nav-previous, 
    .custom-post-navigation .nav-next {
        width: 100%;
        text-align: left;
    }
}
/* ==========================================
   スマホ対応：ハンバーガーメニュー
   ========================================== */
.vk-mobile-nav-menu-btn {
	position: fixed;
	top: 15px!important;
	left: 5px;
	z-index: 2100;
	overflow: hidden;
	border: none!important;
	border-radius: 2px;
	width: 45px!important;
	height: 45px!important;
	cursor: pointer;
	text-indent: -9999px;
	background-size: 35px 35px!important;
	transition: border-color .5s ease-out;
}
.vk-mobile-nav {
	background-color: #585757!important;
	border-bottom: 1px solid #e5e5e5;
}
/* モバイルメニュー内のリンク文字を白く、読みやすくする */
.vk-mobile-nav .menu li a {
    color: #fff !important;
    font-weight: 500;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* 繊細な区切り線 */
    text-decoration: none;
}
/* メニュー内の現在のページ（アクティブ）を強調 */
.vk-mobile-nav .menu li.current-menu-item > a {
    color: var(--vk-color-primary)  !important; 
    background-color: rgba(0,0,0,0.1);
}

/* ==========================================
   ページトップ戻るボタン：新色（やわらかい黄色）
   ========================================== */
.page_top_btn {
    /* 背景色：やわらかいクリームイエロー */
    background-color: var(--vk-color-primary) !important;
    
    /* 背景画像（矢印）の設定 */
    background-image: var(--ver_page_top_button_url) !important;
    background-size: 50% !important;
    background-repeat: no-repeat !important;
    background-position: center !important;

    /* すりガラス効果 */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    
    /* 既存の線を消し、黄色に馴染む薄い枠線に */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    
    /* 形を丸くする */
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;    
    transition: all 0.3s ease !important;

    /* 矢印の色が白で見えにくい場合、少し暗くするフィルタ（必要に応じて） */
    filter: brightness(0.9);
}
/* ホバー時の設定：少しだけ濃い黄色に */
.page_top_btn:hover {
    background-color: rgba(255, 235, 120, 0.9) !important;
    transform: translateY(-5px) !important;
    opacity: 1 !important;
    filter: brightness(1);
}
/* マスク機能を強制的に無効化する */
.vk_outer, .wp-block-image, .wp-block-cover {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

