
.topics .nspImageWrapper img {
    display: block;
  filter: drop-shadow(7px 10px 5px #aaaaaa);
  margin-bottom: 1em;

}



#sp-main-body {
    padding: 30px 0 !important;
}



/* 記事の本文写真のスタイル設定 */
.article-full-image {
    display: flex !important;
    justify-content: center !important; /* 横方向の中央寄せ */
}

.article-full-image img {
    width: 50% !important;
    height: auto !important;
}

/* スマホ用（画面幅が768px以下のとき） */
@media (max-width: 768px) {
    .article-full-image img {
        width: 100% !important;
        height: auto !important;
    }
}

/* デフォルト：PC（元サイズ） */
.article-content p video {
    display: block;
    margin: 0 auto;
    width: 100%;      /* 画面幅いっぱいに拡大 */
    max-width: 1200px; /* 元サイズが大きい場合は上限を設定 */
    height: auto;
}

/* スマホ（768px以下） */
@media (max-width: 768px) {
    .article-content p video {
        width: 100%;   /* 画面幅に合わせる */
        height: auto;
    }
}

/* 説明文フォーマット */
.image-caption {
    display: block;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 5px;
    color: #555;
    margin-left: 6em;
    margin-right: 6em;
    margin-bottom: 1em;
}
/* スマホ用（画面幅768px以下） */
@media (max-width: 768px) {
    .image-caption {
        margin-left: 1em;
        margin-right: 1em;
    }
}




/* 記事の見出しタイトル */

.kiji_TITLE-WRAP-U {
  position: relative;           /* 下線の基準 */
  border-bottom: 1px solid #888; /* 横幅いっぱいの下線 */
  margin-bottom: 0.5em;         /* 下線と次の要素の間隔 */
}

.kiji_TITLE-U {
  display: inline-block;         /* 文字幅だけ背景色 */
  color: white;
  background-color: #888;
  padding: 0 0.5em;
  border-radius: 0.3em 0.3em 0 0;
}

/* 見出しタイトルの下線が文字の上 */
.kiji_TITLE-WRAP-D {
  position: relative;
  border-top: 1px solid #888;   /* 線を上に */
  margin-top: 1em;
}

/* 見出し文字：線の下に配置 */
.kiji_TITLE-D {
  display: inline-block;
  color: white;
  background-color: #888;
  padding: 0.2em 0.5em;        /* 上下の余白 */
  border-radius: 0 0 0.3em 0.3em;
}




/* トピックタイトルのスハイライト */
.topics_highlight {
                /* background-color: #849693; */
                background-color: #7e6ef3;
                padding: 5px;
                text-align: center;
                font-size: 18px;
                color: white;
}


.kiji_image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.image-set {
    width: calc(50% - 10px);  /* PCでは横2列に対応 */
    text-align: center;
    display: flex;
    flex-direction: column;    /* 画像とコメントを縦に並べる */
    align-items: center;
}

.image-set img {
    width: 100%;
    height: auto;
    display: block;
}
/****
.image-caption {
    display: block;
    margin-top: 5px;
    color: #555;
    font-size: 0.9em;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .image-set {
        width: 100%;           /* 縦一列 */
    }
}
****/


#sp-main-body {
    /* padding: 30px 0px !important; */
    padding: 10px 0px !important;
}

.topics a::before {
  /*  content: '詳細はこちら ⇒ ';;  */
    content: '詳細 ⇒ ';;
}

.topics_n a::before {
        content: '';;
}


.topics img {
    max-width: 600px;   /* 横幅の最大値 */
    max-height: 600px;  /* 高さの最大値 */
    object-fit: contain;
    display: block;     /* 任意: 余白調整用 */
}


.gk5width {
  padding-left: 15%;
  padding-right: 15%;
}

@media (max-width: 767px) {
  .gk5width {
    width: 100%;
    padding-left: 0%;
    padding-right: 0%;
  }
}

.Rcorner img {
  border-radius: 6px;
  border: solid 1px #88a191 !important;
}













/* 記事タイトルを画像の上に重ねる */
.article-full-image {
    position: relative;
    display: inline-block;
}

.article-full-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* タイトルを画像の上に */
.article-header {
    position: absolute;
    bottom: 0; /* 下端に配置（上にしたければ top:0;） */
    left: 0;
    right: 0;
    /* background: #849693; */
    background: #7e6ef3;
    color: #fff;
    padding: 10px 20px;
    margin: 0;
}

.article-header h1 {
    font-size: 1.2em !important;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}



/********************************************* 2025-10-22 ************************************/
.style7 {
    position: relative;
    margin: 3em 2em 1em 2em;
    /* padding: 0.5em 1em; */
    padding: 0em;
    border: solid 3px #7e6ef3;
}

.style7 ul {
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
}

.style7 .box-title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 14px;
    background: #7e6ef3;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}




/* 画像を中央にして、タイトル・本文は下にくる */
.nspArt .center,
.nspArt .nspImageWrapper {
    float: none !important;
    display: block !important;
    text-align: center; /* 画像中央寄せ */
    margin: 0 auto 10px auto; /* 下に余白 */
}

.nspArt .gkArtContentWrap {
    clear: both; /* float解除 */
    text-align: left; /* タイトル・本文は左寄せ */
    margin-top: 0; /* 画像下にくる */
}



/* コード全体の背景色と枠線 */
code {
  background-color: #eee;
  color: #333;
  font-family: "Courier New", monospace;
  padding: 10px;
  display: block;
  overflow-x: auto;
}



/**** トピクス ***********/
.topics a::before {
/*
    content: '詳細 ⇒ ';;
*/
    content: '⇒ ';;
}

.topics_n a::before {
        content: '';;
}


.Rcorner img {
  border-radius: 6px;
/*  border: solid 1px #88a191 !important; */
}

.topics img {
  filter: drop-shadow(7px 10px 5px #aaaaaa);
  margin-bottom: 24px;
}


.sp-megamenu-parent a {
  color: #555 !important;
}

#sp-main-body {
    padding: 30px 0 !important;
}


/* 通常時（PCなど） */
.sppb-column, .sppb-column-addons {
    margin-top: 30px !important;
}

/* タブレットの場合 */
@media (max-width: 999px) {
    .sp-module-content-top {
        margin-top: 80px !important;
    }
}


/* スマートフォンの場合（幅768px以下） */
@media (max-width: 768px) {
    .sp-module-content-top {
        margin-top: 80px !important;
    }
}




/* スマートフォン表示時のレイアウト調整（最終版・位置微調整） */
@media (max-width: 767px) {
  
  /* STEP 1: 親コンテナをFlexboxにして、子の表示順を制御 */
  #column-id-1585565030229 > .sppb-column-addons {
    display: flex;
    flex-direction: column; /* 縦に並べる */
  }

  /* --- STEP 2: 各要素の表示順(order)と重なり順(z-index)を指定 --- */

  /* 1番目: 見出し「灰と黒の工作室」 */
  #sppb-addon-wrapper-1584946526278 {
    order: 1;
    position: relative;
    z-index: 10; /* 手前 */
  }

  /* 2番目: テキスト「灰だけが、、、、、」 */
  #sppb-addon-wrapper-1584946535102 {
    order: 2;
    position: relative;
    z-index: 10; /* 手前 */
    width: 100% !important;
    margin: 20px 0 !important;
  }
  
  /* 4番目: ボタン「ユニークなものはこれ！」 */
  #sppb-addon-wrapper-1585022773541 {
    order: 4;
    position: relative;
    z-index: 10; /* 手前 */
    margin-bottom: 40px !important;
  }
  
  /* 5番目: 4カラムのセクション (UNIX系など) */
  #section-id-1584946489792 {
    order: 5;
    position: relative;
    z-index: 10; /* 手前 */
    margin-top: 0 !important; /* 上部の余白をリセット */
  }

  /* --- STEP 3: 問題の画像セクションとアドオンの位置を微調整 --- */
  
  /* 3番目: 問題の画像 "が含まれるセクション" */
  #section-id-1760841854475 {
    order: 3; /* 3番目に表示 */
    position: relative;
    z-index: 5 !important; /* 奥 */
    padding: 0 !important; /* パディングをリセット */
    
    /* ★ ご要望: "少し下にマージを取る" */
    /* これで画像セクションと次のUNIX系セクションの間に余白ができます */
    margin-bottom: 30px !important; 
  }

  /* 問題の画像アドオンラッパー（PC用の位置指定を解除） */
  #sppb-addon-wrapper-1760841971124 {
    position: relative !important;
    left: 0 !important;        
    width: 100% !important;   
    z-index: auto !important; 
    margin: 0 !important; /* マージンをリセット */
    
    /* ★ ご要望: "少し上に持ち上げて" */
    /* topをマイナス値にすることで、要素を通常の位置より上に移動させます */
    top: -30px !important; 
  }

  /* 画像そのものを中央に配置 */
  #sppb-addon-wrapper-1760841971124 img {
    max-width: 90%;
    height: auto;
    display: block;
        margin: -10px;
        margin-bottom: 170px;
  }
}



@media (min-width: 768px) and (max-width: 991px) {
    #sppb-addon-wrapper-1760841971124 {
        left: -260px !important;
        top: 50px !important;
    }
}




/*******************************************/

#sppb-addon-wrapper-1760841971124 {
    margin-bottom: -200px !important;
}



a:hover {
  background-color: orange !important;
  color: white !important;
}


/* =========================================
 * 共通設定
 * ========================================= */
.iconimg {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
  white-space: nowrap;
}

.container .container-inner {
  max-width: 100% !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.sp-page-builder .page-content .sppb-section {
  margin-left: 15px !important;
  margin-right: 15px !important;
}

/* =========================================
 * トップセクション背景補正
 * ========================================= */
#section-id-1585565030230 {
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: scroll !important;
  position: relative !important;
  overflow: visible !important; /* ←ここ重要：切れ防止 */
  max-height: none !important;
}

#section-id-1585565030230 .sppb-container-inner,
#section-id-1585565030230 .sppb-row {
  position: relative !important;
  z-index: 2;
}

/* =========================================
 * 4カラム（UNIX系など）補正
 * ========================================= */

/* 共通: 高さ切れ防止 */
#section-id-1718870198889 {
  overflow: visible !important;
  height: auto !important;
}
#section-id-1718870198889 .sppb-row {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: auto !important; /* ←高さ固定解除 */
}

/* タブレット（768px〜991px）: 2カラム */
@media (min-width: 768px) and (max-width: 991px) {
  #section-id-1718870198889 .sppb-col-md-6 {
    width: 48% !important;
    float: none !important;
    margin-bottom: 25px !important;
  }

  /* セクション全体の高さを自動化 */
  #section-id-1718870198889 {
    height: auto !important;
    overflow: visible !important;
  }
}

/* スマホ（767px以下）: 1カラム */
@media (max-width: 767px) {
  /* 背景セクションの重なり解消 */
  #section-id-1585565030230 {
    margin-top: 0 !important;
    max-height: none !important;
    padding-top: 60px !important;
    padding-bottom: 40px !important;
    overflow: visible !important;
  }

  #mod-custom131,
  .mod-custom.custom {
    clear: both !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: 18px !important;
  }

  /* 4カラム → 1カラム */
  #section-id-1718870198889 .sppb-row {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  #section-id-1718870198889 .sppb-col-xs-12 {
    width: 100% !important;
    float: none !important;
    margin-bottom: 25px !important;
  }

  /* タイトル位置補正 */
  div[data-sppb-type="section_title"].sppb-text-left {
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 20px !important;
    clear: both;
  }

  /* ナビゲーション補正 */
  .sp-megamenu-parent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .sp-megamenu-parent li {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
  }
  .sp-megamenu-parent li a {
    display: block;
    padding: 10px 15px;
    text-align: left;
  }

  /* 余白と画像処理 */
  .sppb-container-inner,
  .container-inner {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
  }
  img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* フッター整形 */
  #sp-footer .container-inner {
    padding: 15px !important;
    text-align: center !important;
  }

  /* 見出しとテキスト調整 */
  h1, .page-title {
    font-size: 1.6em !important;
    line-height: 1.3em !important;
    word-break: break-word;
  }
  p {
    font-size: 0.95em;
    line-height: 1.6;
  }

  .sppb-section {
    margin-bottom: 30px !important;
  }
}

/* =========================================
 * フッター・配色
 * ========================================= */
#sp-bottom {
  padding: 20px 0 0 !important;
}
#sp-footer .container-inner {
  padding: 10px 0 !important;
  text-align: right;
}

.KTcolor a { background-color: #80F8F8; }
.KTcolor a:hover { color: #ff7c5c; }
.KTYcolor a { background-color: #99ddff; }
.KTYcolor a:hover { color: #ff7c5c; }
.YKBcolor a { background-color: #BDD7EE; }
.YKBcolor a:hover { color: #ff7c5c; }
.YCScolor a { background-color: #C6E0B4; }
.YCScolor a:hover { color: #ff7c5c; }
.YCTcolor a { background-color: #FFFF99; }
.YCTcolor a:hover { color: #ff7c5c; }
.ETTcolor a { background-color: #CCCCFF; }
.ETTcolor a:hover { color: #ff7c5c; }
.TYScolor a { background-color: #FFE699; }
.TYScolor a:hover { color: #ff7c5c; }
.YATcolor a { background-color: #F8CBAD; }
.YATcolor a:hover { color: #ff7c5c; }
.NYAcolor a { background-color: #DBDBDB; }
.NYAcolor a:hover { color: #ff7c5c; }
.YAEcolor a { background-color: #FFCCFF; }
.YAEcolor a:hover { color: #ff7c5c; }

/* =========================================
 * セミナーボタン
 * ========================================= */
.seminer_linkbtn {
  width: 270px;
  height: 45px;
  line-height: 45px;
  margin: 0 20px;
}
.seminer_linkbtn a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  text-align: center;
  border-left: 7px solid #bae52d;
  color: #333;
  font-size: 14px;
  box-shadow: 0 2px 2px 0 #dedede;
  transition: all 1s ease;
  background-image: linear-gradient(-45deg, transparent 10px, #efefef 140px);
}
.seminer_linkbtn a:hover {
  background: #f7f7f7;
  color: #FFC000;
  box-shadow: 0 2px 2px 0 #dedede;
  border: solid 1px #FF7C5C;
}

