/* ============================================= */
/* kidsstyle.css (整理後) */
/* ============================================= */

.header-kids {
    background-color: #f8a16c;  /* ヘッダー背景カラー */
}
.top-icon-left {
    float: left; /* 左寄せ */
    margin: auto;
}
.top-icon-right {
    float: right; /*右寄せ */
}
.header-sub{
    background-color: #fdf6ee;
    position: relative;
    padding: 0.8rem 2rem;
    border-bottom: 6px solid #facdcd;
}

.header-sub:before {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 20%;
    height: 6px;
    content: '';
    background: #facdcd;
}
.sub-title{
    font-size: 1.45rem;
    font-weight: bold;
}
.sub-title::before {
    content: "●";
    color: #f8a16c; 
    margin-right: 10px;
    font-weight: bold;
}

.red {
    color:#B91C1C;
}
.image-container {
    position: relative;
    width: 100%;
    height: auto; 
}

.bg-green{
    background-color: #428C5C;
}

.smartphone-bear{
    margin-top: 2%;
}

.m-plus-1p-regular {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 400;
    font-style: normal;
}
.custom-h2 {
    font-size: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 10px 15px;
    margin: 20px 0px;
    font-weight: bold;
}
.side-menu a {
    display: block;
    float: left;
    margin-top: 20px;
}
.side-menu img {
    width: 100%;
    height: auto;
}
.hamburger_kids {
    color:white;
    background-color: #FA4A00;
}
.nav-link.hamburger_label {
    color: white;
    background: transparent;
    font-size: 18px; 
}
.nav-item {
    text-align:left;
    display: inline-block;
    border-bottom: 2px solid white;
    width: 100%;
    padding-left:25px;
}
.navbar-light .navbar-toggler {
    position: absolute;
    right: 10px;
    z-index: 1000;
}
.kids-page-wrapper {
  width: 90%; /* 常に画面の90%の幅にする */
  max-width: 900px; /* ただし、PCで見た時に広がりすぎないように最大幅を指定 */
  margin: 1.5rem auto 0 auto; /* 上に余白をつけ、左右中央に配置 */
}
#kids-icon-mobile-list a {
  display: flex;
  justify-content: center !important;
}

/* ============================================= */
/* こどもページTOP アイコンアーチ配置 (PC・タブレット用) */
/* ============================================= */
@media (min-width: 576px) {
  #kids-icon-arch-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    aspect-ratio: 16 / 9;
  }
  .arch-item {
    position: absolute;
    width: 22%;
    transform: translate(-50%, -50%);
  }
  .arch-item .hover-image {
    display: none;
  }
  .arch-item:hover .hover-image {
    display: block;
  }
  .arch-item:hover .default-image {
    display: none;
  }
  #icon-search { top: 45%; left: 17.5%; }
  #icon-new { top: 18%; left: 37%; }
  #icon-recommend { top: 18%; left: 63%; }
  #icon-event { top: 45%; left: 82.5%; }
  #icon-howto { top: 80%; left: 5%; }
  #icon-elib { top: 80%; left: 95%; }
  #icon-center-character {
    top: 80%;
    left: 50%;
    width: 50%;
    pointer-events: none;
  }
}

/* ============================================= */
/* スマートフォン用の表示設定 */
/* ============================================= */
#kids-icon-mobile-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  text-align: center;
}

/* リンクとキャラクター画像に共通の幅を指定 */
#kids-icon-mobile-list a,
#kids-icon-mobile-list .mobile-character {
  width: 90%;
  margin: 0 auto;
}

/* キャラクター画像にのみ display: block を適用 */
#kids-icon-mobile-list .mobile-character {
  display: block;
}

.mobile-character {
  margin-bottom: 0.75rem;
}

/* lg-size */
@media screen and (max-width: 992px) {
    .top-icon-left{
        width: 80%;
    }
    .top-icon-right{
        width: 80%;
    }
}