@charset "UTF-8";

/* -------- キッズトップ -------- */

            /*---------tuikaruby--------------*/
   .hide-ruby rt {
      display: none;
    } 
          /*-------main_quiz kids h2　font-size: 1.17em;--------*/     
    .kids {
		  position: relative;
		  padding: 1em;
		  font-size: 1.17em;
		  color: #0338a0;
		  display: block;
		  margin-block-start: 1em;
		  margin-block-end: 1em;
		  margin-inline-start: 0px;
		  margin-inline-end: 0px;
		  font-weight: bold;
		  unicode-bidi: isolate; 
		}

		.kids:after {
		        position: absolute;
		        content: "";
		        left: 0;
		        bottom: 0;
		        width: 100%;
		        height: 10px;
		        background: repeating-linear-gradient(-45deg, #B8DFEA, #B8DFEA 5px, #ffffff 5px, #ffffff 10px);
		}

    .kids_sub {
            font-size: 24px;
            color: #333337;
            position: relative;
            padding-bottom: 20px;
            text-align: center;
          }

      .kids_sub::after {
              content: '';
              position: absolute;
              bottom: 0;
              left: 50%;
              transform: translateX(-50%);
              width: 0;
              height: 0;
              border-width: 10px 8px 0 8px;
              border-style: solid;
              border-color: #78c8c7 #fff #fff #fff;
        }

      .kids_sub {
             padding: .5em 1em;
             border-bottom: 3px dotted #000;
         }

  
          /* --- メインコンテンツエリア --- */
        main {
            padding-bottom: 70px;
            max-width: 960px;
            margin: 0 auto;
            padding-left: 20px;
            padding-right: 20px;
            position: relative;
            z-index: 10;
        }


        /* --- コンテンツボックスエリア --- */
        .content-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            padding-bottom: 50px; 
        }

      .kids_text{
            margin-top: 15px;
            margin-left: 60px;
        } 


      .content-box {
            background-color: rgba(255, 255, 255, 0.85);
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
            border: 2px solid rgba(255,255,255,0.6);
            transition: transform 0.3s,box-shadow 0.3s ease;
            will-change: transform;
          }

      .content-box:hover {
            transform: translate3d(0, -3px, 0);
            box-shadow: 0 10px 22px rgba(0,0,0,0.14);
          }

      .box-image {
           display: block;        
           width: 100%;
           height: 180px;         
           object-fit: cover;     
           object-position: center;
           max-width: 100%;            
          }



      .box-image.placeholder-1 {
          background-image: url("../img/quiz_s.png");
          background-size: cover;          
          background-position: center;     
          background-repeat: no-repeat;    
          image-rendering: auto;           
          }




.box-image.placeholder-2 {background-image: url('../img/profile_s.png');}
.box-image.placeholder-3 {background-image: url('../img/yougo_s.png');}
.box-image.placeholder-4 {background-image: url('../img/movie.png'); }


/*追加分のプレースホルダー を増やす場合はimegeを追加する    */
        .box-image.placeholder-5 { background-image: url('../img/.png'); }
        .box-image.placeholder-6 { background-image: url('../img/.png'); }


.box-desc {
            padding: 20px;
        }
.box-desc h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--secondary-color);
        }
.box-desc p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.6;
        }

.section__title {
  color: #fff; 
  font-size: clamp(22px, 3vw, 32px); 
  margin: 0 0 24px; 
  text-align: center; 
        }


      /* --- 動画/画像セクション（親） --- */
.video-section {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
        }

      /* --- 中身（video / img）を枠に100%フィットさせる --- */
.video-section > video,
.video-section > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;       
  object-position: center;
  background: #000;       
         }


        /* ここから レイアウト：グリッド配置 */
        .content-grid {
   --gap: clamp(12px, 2vw, 20px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  align-items: stretch;
        }

      /* 各ボックスの見た目 */
.content-box {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
      }
        .content-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
      }

      /* 背景画像の表示領域 */
        .box-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: #f2f2f2; 
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  transform: scale(1);
  transition: transform .4s ease, filter .3s ease;
  will-change: transform;
      }
      .content-box:hover .box-image {
          transform: scale(1.03);
      }

/* 説明部 */
.box-desc {
  padding: 14px 16px 18px;
}
.box-desc h3 {
  margin: 10px 0 8px;
  font-size: clamp(16px, 1.2rem, 20px);
  line-height: 1.3;
}
.box-desc p {
  margin: 0;
  color: #333;
  line-height: 1.6;
}
.box-desc a {
  color: inherit;
  text-decoration: none;
}
.box-desc a:hover,
.box-desc a:focus-visible {
  text-decoration: underline;
  outline: none;
}


  /*----------ruby---------------*/
  .hide-ruby rt {
  display: none;
}
  /* ボタンデザイン（ブルーベース） */
  #toggleRuby {
    background: #1e90ff;      
    color: white;
    border: none;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
  }

  /* ホバー時 */
  #toggleRuby:hover {
    background: #1565c0;       
  }

  /* 押した瞬間 */
  #toggleRuby:active {
    background: #0d47a1;      
    transform: scale(0.96);
  }

   /* キッズ戻るボタン */
  .control-group {
    display: flex;
    gap: 12px;                
    align-items: center;      
    flex-wrap: wrap;          
    justify-content: center; 
    margin-top: 20px;
  }

  .back-btn {
    background-color: #1e90ff; 
    color: white;              
    padding: 10px 20px;        
    border: none;              
    border-radius: 10px;      
    font-size: 16px;           
    cursor: pointer;           
  }

  .back-btn:hover {
    background-color: #187bcd; 
  }
