#gls {
    padding: 120px 0 180px;
}

.gls-category-section {
    top: 80px;
    transition: .5s;
}


.newsroom-navi-list {
    width: 80%;
    max-width: 1200px;
}

.newsroom-navi-list li {
    width: 50%;
}

.newsroom-navi-list .is-active, 
.newsroom-navi-list li:hover {
    background-color: #004077; /* ここに背景色を追加 */
}
.newsroom-navi-list .is-active a,
.newsroom-navi-list li:hover a {
    font-weight: bold;
    color: #fff !important;
}

.alphabet-button.disabled {
    opacity: 0.5; /* 半透明化 */
    cursor: not-allowed; /* マウスカーソルを禁止マークに変更 */
}

@media screen and (max-width: 1050px) {

    .newsroom-navi-list {
        flex-wrap: wrap;
        width: 92%;
        top: -150px;
        box-shadow: 0 6px 6px -3px rgba(0, 0, 0, .05), 0 -10px 5px -3px rgba(0, 0, 0, .05);
    }

    .casestudy-search {
        transform: translateX(0%);
        position: relative;
        top: 60px;
        left: 0;
        width: 100%;
        height: auto;
        padding: 0;
        overflow-y: visible;
        background: #fff;
        transition: .5s;
    }

    .cnt-cmsod-category li:first-child {
        width: 50% !important;
    }

    .newsroom-navi-list li:first-child::before {
        display: none !important
    }

    .newsroom-navi-list li:nth-child(2n)::before {
        display: block
    }

    .newsroom-navi-list li:nth-child(2n+1)::before {
        display: none !important
    }
}

/*=========================*/
/*-- 用語集 --*/
/*=========================*/

.glossary-kv-wrapper {
    max-height: 550px;
    overflow: hidden
}

.glossary-kv-wrapper-h img {
    min-height: 250px;
    -o-object-fit: cover;
    object-fit: cover
}

#glossary-app {
    padding: 20px 20px;
    text-align: center
}

#glossary-app a {
    color: #004077;
    text-decoration: none;
}

#glossary-app p {
    padding: 10px 0px 0px 0px;
    margin: 0 auto;
    font-size: 1.3rem;
}

#glossary-app .tabs {
    display: flex;
    gap: 10px;
    justify-content: left;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#glossary-app .tab {
    margin: -1px 0 0 -1px;
    padding: 8px 20px;
    color: #ccc;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer
}

@media screen and (max-width: 768px) {
    #glossary-app .tabi {
        width: 50%;
        padding: 10px;
        font-size: 1rem;
        text-align: center
    }
}

#glossary-app .tab.active {
    color: #004077;
    border-bottom: 2px solid #004077
}

#glossary-app .search-bar {
    margin-top: 20px;
    padding: 10px;
    width: 50%;
}

@media screen and (max-width: 768px) {
    #glossary-app .search-bar {
        width: 100%;
    }
	#glossary-app p {
		text-align: left;
	}

}


.glossary-category {
    max-width: 960px;
    margin: 50px auto;
}


.glossary-category h3 {
    width: 100%;
    position: relative;
    padding: 5px 0;
    color: #000;
    font-size: 2.0rem;
    border-bottom: solid 2px #ff9;
    text-align: left;
    margin-bottom: 10px;
    margin-top: 30px;
}

.glossary-category h3::after {
    position: absolute;
    content: " ";
    display: block;
    border-bottom: solid 2px #004077;
    bottom: -2px;
    width: 100%;
}



.glossary-category ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    padding: 40p 20px;
}

.list-item {
    width: 33.3%;
    margin: 20px 0px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    font-size: 1.5rem;
	text-align: left;
}


.list-item span {
    position: relative;
    display: inline-block;
    color: #004077;
}

.list-item span::after {
    background-color: #004077;
    bottom: -4px;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    transform: scale(0, 1);
    transform-origin: left top;
    transition: transform .3s;
    width: 100%;
}

.glossary-category .list-item span:hover::after {
    transform: scale(1, 1);
}

@media screen and (max-width: 768px) {
.list-item {
        display: block;
        width: 100%;
        margin-right: 8px;
        font-size: 1.6rem;
    }
}

.list-item:before {
    content: "\00BB ";
    color: #004077;
    margin-right: 10px;
}

#glossary-app .main-title{
    font-size:2.8rem;
    font-weight:bold;
    line-height:1.3;
    margin:60px 0 40px;
    padding-left:20px;
    border-left:5px solid #004077;
	text-align: left;
}

#glossary-app .detail-view {
    margin-top: 20px;
	font-size: 1.5rem;
}



#glossary-app .detail-view h3 {
    width: 100%;
    position: relative;
    padding: 5px 0;
    color: #004077;
    font-size: 2.0rem;
    border-bottom: none;
    text-align: left;
}

#glossary-app .detail-view h3::before {
    content: "";
    position: absolute;
    bottom: 0;
    display: block;
    width: 100%;
    height: 3px;
    background: #004077;
    background: linear-gradient(90deg, rgb(0, 64, 119) 0%, rgb(0, 64, 119) 30%, rgb(255, 241, 0) 70%, rgb(255, 241, 0) 100%);
}
/*
#glossary-app .detail-view h3::after {
    position: absolute;
    content: "";
    display: block;
    height: 3px;
    background-image: linear-gradient(to right, #004077, #4a82b8);
    bottom: 0; 
    left: 0;
    width: 70%; 
}
*/

#glossary-app .detail-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    justify-content: center;
    padding: 20px 0;
}

#glossary-app .detail-view .detail-image-box {
    flex: 1 1 calc(50% - 10px);
	min-width: 250px;
    text-align: center;
    box-sizing: border-box; 
	padding:30px 10px;
}

#glossary-app .detail-view .detail-image-box img {
  border: 2px solid #ddd;
	max-width: 100%;
}

#glossary-app .detail-images-container .detail-image-box:only-child {
    flex-basis: 100%;
}


/* --- 最終的な推奨CSS --- */
#glossary-app .term-details {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 5px 5px; 
    margin: 0;
    padding: 20px 0;
}

#glossary-app .term-details dt {
    font-weight: bold;
    margin: 0;
	text-align:right;
}

#glossary-app .term-details dd {
    margin: 0;
}



#glossary-app .back-button {
    cursor: pointer;
    margin-top: 80px;
}

#glossary-app .back-button:hover {
    color: #ffffff;
}


/* 新しいリストコンテナのスタイル */
.glossary-list {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-items: stretch;
    padding: 10px 20px;
    margin: 50px auto;
    max-width: 960px;
}


/* カテゴリボタンのコンテナ */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

/* スマホ用のスタイル（必要に応じて調整） */
@media screen and (max-width: 1050px) {
    .category-buttons {
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .category-buttons {
        justify-content: flex-start;
    }
  #glossary-app .detail-view {
    grid-template-columns: 1fr;
  }

  #glossary-app .detail-view > *,
  #glossary-app .detail-view .detail-image {
    grid-column: 1;
  }
	
	#glossary-app .detail-images-container {
		display: block !important;
		gap: 0;
	}
	
	#glossary-app .detail-view .detail-image-box {
		max-width: 100% !important;
		width: 100%;
		flex: none !important;
		margin-bottom: 20px;
	}
	
	#glossary-app .detail-view .detail-image-box img{
		max-width: 100% !important;
		width: 100%;
	}
	#glossary-app .detail-view .detail-image-box:last-child {
        margin-bottom: 0; 
    }
}

/* 個々のカテゴリボタン */
.category-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: background-color 0.3s, color 0.3s;
}

/* アクティブなカテゴリボタンのスタイル */
.category-button.active {
    background-color: #004077;
    color: #fff;
    border-color: #004077;
}

/* ホバー時のスタイル */
.category-button:hover {
    background-color: #004077;
    color: #fff;
}

/*=========================*/
/*-- 頭文字検索用 --*/
/*=========================*/
.initial-search-area {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f7f7f7;
	border-radius: 10px;
}

/* 50音とアルファベットのコンテナを共通化 */
.syllabary-grid, .alphabet-grid {
    display: flex;
    background-color: #fff;
    border: 1px solid #ddd;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* タイトル部分のスタイルを共通化 */
.syllabary-title, .alphabet-title {
    background-color: #e6e6e6;
    color: #555;
    padding: 20px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
}

/* 50音ボタンのグループ化コンテナ */
.syllabary-groups-container {
    display: flex;
    flex-wrap: wrap; /* ボタンが回り込むように */
    width: 100%;
    padding: 10px 20px;
}

/* 各50音ボタンのグループ */
.syllabary-buttons-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 40%;
	margin: 10px 5px 10px 10px;
}

/* アルファベットボタンのコンテナ */
.alphabet-buttons {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 10px;
    padding: 10px 20px;
    justify-items: center;
    align-items: center;
    width: 100%;
}

/* ボタンのスタイルを共通化 */
.syllabary-button, .alphabet-button, .symbol-button {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #f7f7f7;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    text-align: center;
    width: 40px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    border-radius: 3px;
    color: #555;
}

/* ホバーとアクティブ時のスタイル */
.syllabary-button:hover, .alphabet-button:hover, .symbol-button:hover,
.syllabary-button.active, .alphabet-button.active, .symbol-button.active {
    background-color: #2c6eb5;
    color: #fff;
    border-color: #2c6eb5;
}

/* Symbol button 修正 */
.symbol-button {
    grid-column: span 13;
    width: 100%;
}

/*=========================*/
/*-- スマホ・タブレット用調整 --*/
/*=========================*/
@media screen and (min-width: 769px) {
/* 各50音ボタンのグループ */
.syllabary-buttons-group {
	margin: 10px 5px 10px 10px;
}
}
@media screen and (max-width: 960px) {
/* 各50音ボタンのグループ */
	.syllabary-buttons-group {
		width: 45%;
		gap: 7px;
	}
	.alphabet-buttons {
		grid-template-columns: repeat(10, 1fr);
		gap: 7px;
	}
}
@media screen and (max-width: 768px) {
  /* グループ化コンテナを縦並びに変更 */
  .initial-search-area, .syllabary-groups-container, .syllabary-grid, .alphabet-grid {
      align-items: stretch;
	  justify-content: space-around;
      width: 100%;
  }
	.syllabary-buttons-group {
		width: 40%;
		margin: 10px 20px 10px 2px;
	}
  
  /* ボタンのスタイル調整 */
  .syllabary-button, .alphabet-button, .symbol-button {
    font-size: 1.2rem;
    padding: 5px 8px;
    width: 35px;
    height: 35px;
  }

  .symbol-button {
      grid-column: span 5;
  }
}

.not-found, .result-count{
    width: 100%;
    text-align: center !important;
    font-size: 1.6rem !important;
}
@media screen and (max-width: 640px) {
  /* さらに狭い画面向け */
  .initial-search-area, .syllabary-groups-container, .syllabary-grid, .alphabet-grid {
      flex-direction: column;
  }
	
	  /* タイトル部分のスタイル調整 */
  .syllabary-title, .alphabet-title {
      min-width: auto;
      text-align: center;
      padding: 10px;
  }
  
  /* 各グループの幅を自動調整 */
  .syllabary-buttons-group {
    width: auto;
    grid-template-columns: repeat(5, 1fr);
	margin: 10px 5px 10px 10px;
  }

  /* アルファベットボタンの列数を調整 */
  .alphabet-buttons {
    grid-template-columns: repeat(5, 1fr);
    width: auto;
  }
  .symbol-button {
      grid-column: span 4;
  }
}

.alphabet-button:disabled {
    opacity: 0.3;
    cursor: not-allowed; 
    pointer-events: none; 
}