@charset "UTF-8";

/*-----------------------
sitemap
----------------------*/
main{
    margin-bottom: 240px;
}
li{
    list-style: none;
    padding: 40px;

}
.breadcrumb-item{
    padding: 1px;
}
.border-1{
    /* 線（ボーダー）の設定 */
    
    /* 線とテキストの間の隙間を設定 */
    padding-top: 0;    /* 上の線と文字の間に10pxの隙間 */
    padding-bottom: 20px; /* 下の線と文字の間に10pxの隙間 */
    
    /* 他のコンテンツとの間隔を設定 */
    margin-top: 30px;
    margin-bottom: 30px;
    
}
.border-2{
    
    /* 線とテキストの間の隙間を設定 */
    padding-top: 60px;    /* 上の線と文字の間に10pxの隙間 */
    padding-bottom: 20px; /* 下の線と文字の間に10pxの隙間 */
    
    /* 他のコンテンツとの間隔を設定 */
    margin-top: 30px;
    margin-bottom: 30px;

}

.lists{
/* 親要素: 横並びと折り返しを有効にする */
    display: flex;
    flex-wrap: wrap; /* 要素を折り返すための重要な設定 */
    padding: 10px;
    margin: 0 auto;
}

/* 子要素: PCでの幅設定 */
.item {
    /* 4つ並ぶように、約25%の幅を設定 (gapを考慮) */
    width: calc(25%); /* (40px/4) = 10px の gap があるとして、25% - 7.5px で調整 */
    text-align: center;
    line-height: 40px;
    box-sizing: border-box;
}

/* 2行目の余白調整 (Flexboxの欠点を補うための工夫) */
/* 2行目(5つ目以降)のアイテムの左寄せを確実にする */
.item:nth-child(4n + 5) {
    margin-left: 0; 
}
/* 2行目が左に寄るようにするために、あえて4つ目と5つ目の間にスペースを開ける工夫もありますが、
   ここではシンプルに幅の調整だけで対応しています。 */

   /* --- スマートフォン用の設定 (画面幅 769px 以下) --- */
@media (max-width: 900px) {
    
    /* 子要素: 幅を100%に広げる */
    .item {
        /* これにより、すべてのアイテムが幅100%になり、縦一列に並びます */
        width: 100%; 
        height: 40px; /* スマホ時の高さを調整 (任意) */
        line-height: 40px;
        margin: 0; /* PCで設定した可能性のあるマージンをリセット */
    }
}
.no-wrap-text {
  /* ★ この一行が重要です ★ */
  white-space: nowrap;
}