@charset "utf-8";


/* ========================================================================================== */
/* 固定ページ共通
/* ========================================================================================== */

/* コンテンツ最上部余白の削除 */
.l-content {
    padding-top: 0 !important;
} 
/* 固定ページのタイトル（h1要素）を非表示にする */
.c-pageTitle {
    display: none;
}
/* タイトル下余白の削除 */
 .post_content {
    margin-top: 5px !important; 
}


/* 画像の角丸 */
 img{
        border-radius: 10px;
}

/* snowmonkeyスライダー（ギャラリー機能） 　学校生活で使用*/
    .spider__slide img{
        border-radius: 3px;
    }
    .spider__slide .smb-spider-slider__item
    {
        background-color: rgba(100, 100, 100, 0.7);
        height: 25%;
        /* padding: 3px 0 3px 0 !important; */
    }
    .spider__slide .smb-spider-slider__item__caption {
        color: var(--white);
        
        /* text-align: center; */
        /* font-weight: 600; */
    }


/* ========================================================================================== */
/* トップページ
/* ========================================================================================== */

/* アイキャッチ */
.toppage-eyecatch {

    .eyecatchtext {
        position: absolute; 
        text-align: center;
        color: white;
        white-space: nowrap;
        font-weight: 700;
    }
    
    @media all and (min-width: 960px){

        img {
            text-align: center;
            width: 1200px;
            max-width: 1200px;
            height: auto;
        }

        .eyecatchtext {
           
            top: 47%; 
            left: 65%; 
            transform: translate(-50%, -50%);

            div:first-child {
                margin-left: -5em;
                margin-bottom: 0.5em;
                font-size: 1.5em;
            }
            div:last-child {
                font-size: 2.5em;
            }
        }
    }

    @media all and (max-width: 959px){

        figure {
            width: 170%;

            img { 
                height: auto;
                width: 170%;
                max-width: 170%;
                transform: translateX(-25%);
            }
        }

        .eyecatchtext {
           
            top: 25%; 
            left: 76%; 
            transform: translate(-50%, -50%);

            div:first-child {
                margin-left: -4em;
                margin-bottom: 0.5em;
                font-size: 1em;
            }
            div:last-child {
                font-size: 1.5em;
              
            }
        }
    
    }
}


/* toppage-box */
.toppage-box {
    position: relative;
    /* 背景画像 */
    &::after {
        position: absolute;
        top: 90px;
        width: 700px;
        height: 280px;
        background-image: url(https://minori-niigata.butsuri-jikken.com/wp-content/uploads/2025/11/backgroundtest1.jpg);
        content: "";
        z-index: -1;
        border-radius: 0 40px 0 40px;
    }

    /* 画像 */
    img {
        border-radius: 0 40px 0 40px;
        box-shadow: 15px 15px var(--main-light);
    }

    /* 英語 */
    .toppage-box-English {
        font-family: 'Caveat-Eng';
        line-height: 1.5;
        font-size: 90px;
    }

    @media all and (min-width: 960px){
    
        .swell-block-columns__inner {
        gap: 30px;
        }

        &.box-typeA {
            &::after {
                right: 50px;
            }
        }

        &.box-typeB {
            
            /* 画像列を右に配置 */
            .imagecolumn {
            order: 1;
            }

            &::after {
                left: -50px;
                top: 60px;
                width: 800px;
                height: 310px;
                /* border-radius: 40px 0 40px 0; */
            }
        }
    }

    @media all and (max-width: 959px){
    
        /* 背景 */
        &::after {
            top: 60px;
            left: -100px;
            width: 1000px;
            height: calc(100% - 95px);
        }

        .toppage-box-English {
            font-size: 45px;
            text-align: right;
            /* line-heightは英語と写真の間隔 heightは英語とテキストの間隔*/
            line-height: 0.7;
            height: 50px;
        }

        /* 画像 */
        .swell-block-columns__inner .swell-block-column:nth-child(1) {
            padding-left: 20px;
            padding-right: 30px;
        }

        /* テキスト （英語以外）*/
        .swell-block-columns__inner .swell-block-column:nth-child(2) > *:not(.toppage-box-English) {
            padding-left: 0;
        }

        /* ボタン */
        .swell-block-columns__inner .swell-block-column:nth-child(2) .wp-block-buttons {
            justify-content: center;
        }
    
    } 
}

/* トップページのみサイト幅を変える */
@media (min-width: 960px) {
    .home .l-mainContent {
        max-width: 1100px !important; 
    }
}





/* ========================================================================================== */
/* アイキャッチ
/* ========================================================================================== */
.pattern-eyecatch {
    text-align: center;

    /* .swell-block-fullWide */
    .swell-block-fullWide {
        background-image: linear-gradient(to bottom right, var(--main-lightest), var(--main-lighter));
    }

    /* 画像 */
    .wp-block-image img {
        border-radius: 5px;
        /* border: 1px solid var(--main-light); */
        /* box-shadow: 6px 6px var(--main-light); */
    }
}

/* アイキャッチ下リスト  アイキャッチ下リストは非同期のため編集画面で変更できない。このため変更はcssで行う*/
.under-eyecatch {
    /* スペーサの高さ メインコンテンツとの距離*/
    .wp-block-spacer {
        height:50px !important;
    }

}


/* ========================================================================================== */
/* フッター前ウィジェット
/* ========================================================================================== */

.w-beforeFooter {
    .smb-panels__item {
        padding: 0;
    }

    /* Panelsブロック全体 */
    .wp-block-snow-monkey-blocks-panels {
        box-shadow: none;
        border: 1px solid var(--main-deep);
    }

    /* アイコンのサイズを大きく */
    .footer-icon-row {
        font-size: 40px; 
    }

    /* LINEアイコンの色を設定 */
    .lineicon {
        color: var(--linegreen);
    }
}

@media all and (max-width: 959px){
    .w-beforeFooter{
        display: none;
    }
}


/* ========================================================================================== */
/* 矢印リスト　リンク用
/* ========================================================================================== */
.arrowlist{
    li {
        color: main(--text);
        margin-right: 5px;
        a {
            text-decoration: none;
            color: var(--text);
        }
        a:hover {
            color: var(--main); /* オレンジに変更 */
        }
    }
    li::marker {
 
        /* マーカーの色を変更する */
        color: var(--main-deep);
        font-family: icomoon !important;
        content: "\e93b" !important;/*swellの右三角矢印アイコンのコード*/
    }
}



/* ========================================================================================== */
/* 投稿ページ
/* ========================================================================================== */

.l-article {

    .p-articleThumb img{
        width: 70%;   
    }
}


/* ========================================================================================== */
/* 職員紹介
/* ========================================================================================== */
.staff-message {

    line-height: 1.3;
}
.staff-subject {

    line-height: 2.5;
}

/* ========================================================================================== */
/* カリキュラム
/* ========================================================================================== */

/* 卒業の要件　各タイトルのheight減らす */
.graduate-condition {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* 科目表 */
.subject-table {

    font-size: 0.8em;

    .wp-block-table tr,
    .wp-block-table td {
        height: 30px;
        padding: 3px;
        text-align: center;
    }

    @media all and (max-width: 959px){
        .wp-block-snow-monkey-blocks-container {
            padding-left: 5px;
            padding-right: 5px;
        }
    
    }


    .wp-block-table td:nth-child(1),
    .wp-block-table th:nth-child(1) {
        width: 5em; 
        padding-left: 0;
        padding-right: 0;
    }

    .wp-block-table td:nth-child(3),
    .wp-block-table th:nth-child(3) {
        width: 3em; /* 例: 幅を 50px に設定 */
        padding-left: 0;
        padding-right: 0;
    }
}

/* ========================================================================================== */
/* 進路
/* ========================================================================================== */

.page-id-3411 {
    h4.wp-block-heading {
        margin-top: 1em;
        margin-bottom: 0.4em;
    }
}

/* ========================================================================================== */
/* ツール
/* ========================================================================================== */


/* マルチカラムで折り返し禁止　必要か？ */
.swellcolumns-nowrap .swell-block-columns__inner{
    flex-wrap: nowrap !important;
}


/* 非公開にするブロックは hiddenblock を持たせればＯＫ */
body:not(.block-editor-page) .hiddenblock {
    display: none !important;
}

/* 横並びリスト 　現状アイキャッチでしか使わないのでfontsizeも変えてある*/
.flexlist{
    display: flex;
    list-style-position: inside;
    gap: 5px;
    font-size: 0.9em;
    margin-left: 0px;
    padding-left: 0px !important;/*なぜかmain.cssより先に読み込まれてしまうのでimportant*/
}

/* ボタン用box boxにつけるだけ 余白をなくしてhoverを追加*/
.box-button {
    padding: 0;
    :hover {
        opacity: 0.7; 
    }
}


/* 左寄せ */
.align-left{
    text-align: left;
}

/* スマホの場合タブの周囲の余白を減らす */
.tab-padding-cut {

    @media all and (max-width: 959px){
    
        padding-left: 5px;
        padding-right: 8px;
    }
}

/* ステップブロックのboldを解除 */
.nobold .swell-block-step__title {
    font-weight: 500;
}

.hidden {
      position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}