/* -------------- ★ ボタン --------------  */
.memo-btn,
.memo-cell .memo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  padding:0!important;
  width: 32px;
  height: 32px;
}

.memo-btn:focus-visible{
  outline:2px solid #0d6efd;
  outline-offset:2px;
  border-radius:4px;
}

/* -------------- ボタン内 SVG --------------  */
.memo-btn svg{
  position:absolute;
  inset:8px;
  width:24px;
  height:24px;
  transition:opacity .15s ease;
}
.memo-cell .memo-btn svg{
  inset:4px;
}

.memo-btn .memo-icon-filled {
  color:#33f;/*#ffc107*/ !important; 
}

.memo-btn .memo-icon-outline {
  color:#aab;/*#ffc107*/ !important; 
}

.memo-btn[aria-pressed="false"] .memo-icon-filled{ 
  display:none; 
}
.memo-btn[aria-pressed="true"]  .memo-icon-outline{
   display:none; 
}


/* -------------- ツールチップ--------------  */
.memo-btn[data-tip],
.del-btn[data-tip],
.close-filter-btn[data-tip] {
  position: relative;
}

.memo-btn[data-tip]::after,
.del-btn[data-tip]::after,
.close-filter-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.4;
  background: #f5f5f5;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 10000;
}


/* --------------  三角の矢印 -------------- */
.memo-btn[data-tip]::before,
.del-btn[data-tip]::before {
  content: "";
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 6px solid transparent;
  border-top-color: #f5f5f5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 10000;
}

.memo-btn[data-tip]:hover::after,
.memo-btn[data-tip]:hover::before,
.memo-btn[data-tip]:focus-visible::after,
.memo-btn[data-tip]:focus-visible::before,
.del-btn[data-tip]:hover::after,
.del-btn[data-tip]:hover::before,
.del-btn[data-tip]:focus-visible::after,
.del-btn[data-tip]:focus-visible::before{
  opacity:1;
}

.glossaryTable .tbody .tr,
.glossaryTableFuzzy .tbody .tr,
.memo-cell,
.memo-btn{
  overflow:visible;
}

.memo-cell:first-of-type .memo-btn[data-tip]::after,
.memo-cell:first-of-type .memo-btn[data-tip]::before,
.memo-cell:first-of-type .del-btn[data-tip]::after,
.memo-cell:first-of-type .del-btn[data-tip]::before{
  left:0;
  transform:none;
}

/* -------------- Toast --------------  */
.toast{
  position:fixed;
  left:50%; bottom:16px;
  transform:translateX(-50%) scale(.9);
  display:flex; gap:16px;
  padding:12px 20px;
  border-radius:6px;
  background:#212529; color:#fff;
  font-size:14px;
  opacity:0; pointer-events:auto;
  transition:opacity .2s ease, transform .2s ease;
}
.toast.show{ opacity:1; transform:translateX(-50%) scale(1); }

.undo-btn{
  background:none; border:none; padding:0;
  color:#0d6efd; cursor:pointer;
  font-size:14px; text-decoration:underline;
}

.glossary-pc {display:block;}
.glossary-sp {display:none;}

/* -------------- ゴミ箱セル全体 -------------- */
/*
.memo-table .tbody .tr .td{ 
  padding:12px !important;
  border:none !important;
}
*/

.memo-table .tbody .tr .memo-content .td{ 
  padding:12px !important;
  border:none !important;
}

/*
.memo-table .tbody .tr .memo-del{
  padding:0 12px 10px 12px !important;             
}
*/
.memo-table .tbody .tr{
  display:flex;
  align-items:start;
}

/* -------------- 削除ボタン ------------------ */
.del-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:0;
  border:none;
  background:none;
  cursor:pointer;
}
.del-btn:focus-visible{
  outline:2px solid #dc3545;
  outline-offset:2px;
  border-radius:4px;}

.icon-trash{
  width:22px;
  height:22px;
  color:#555/*#dc3545*/;
  vertical-align: middle;
  margin-bottom: 0.4rem;
}

button .icon-trash{
	margin-bottom: 0.2rem;
}

/* -------------- SVG アイコン ---------------- */
.del-btn svg{
  width:24px; height:24px;
  flex-shrink:0;
  display:block;
}

.memo-table .tr{
  display:flex;
  align-items:center;
}


.memo-table .tr .td{
  display:table-cell;
  padding:12px;
  border:none;
}

.glossaryTable .memo-cell{ text-align:center; }

/* PC では5列目(SP画像)を非表示にしておく          */
.glossaryTable .tbody .tr > *:nth-child(5){ display:none; }

.empty-msg {
  font-size: 16px;
  line-height: 24px;
}

.glossary_image{ padding:0; text-align:center; }
.glossary_image img{ max-width:100%; height:auto; }

/* 関連項目（span.linkGroup）をリンク風に */
.linkGroup {
  cursor: pointer;
  color: #6c757d;
  text-decoration: underline;
}

.linkGroup:hover {
  color: #343a40;
}

.pc-only { display: block; }
.sp-only { display: none; }


.p-manuals-wrap01.memo-usage {
  margin-bottom: 30px !important;
}

.glossaryTable.memo-table {
  padding-top: 20px !important;
}






/* モバイル版 */
@media (max-width:768px){

  .glossary-pc {display:none !important;}
  .glossary-sp {display:block !important;}  

  /* ツールチップ非表示 */
  .memo-btn[data-tip]::after, .memo-btn[data-tip]::before,
  .del-btn[data-tip]::after,.del-btn[data-tip]::before {
    display: none !important;
  }

  /* ワード検索 */
  .glossaryTable .tbody .tr > *:nth-child(2), .glossaryTableFuzzy .tbody .tr > *:nth-child(2) {
    padding-top: 18px;
  }

  /* 用語メモ */
  .glossaryTable.memo-table .tbody .tr > *:nth-child(2), .glossaryTableFuzzy .tbody .tr > *:nth-child(2) {
    padding-top: 18px;
  }

  /*----------------------------★ button */
  .memo-btn,
  .memo-cell .memo-btn{
      width:40px;
      height:40px;
  }

  .memo-cell .memo-btn svg{
      position: relative;
      top: -3px;
      width:40px;
      height:40px;      
  }

  .del-btn svg{
    flex-shrink:0;
    display:block;
  }

  /*--------------  Toast --------------  */
  .toast{
      bottom:24px;
      padding:18px 24px;
      font-size:20px;
      gap:24px;
      opacity: 0;
      pointer-events: none;      
	  width: 60vw;
	  text-align: center;
  }

  .toast.show {
    opacity: 1;
    pointer-events: auto;
  }  
  .msg {
	width: 45vw;
	padding-top: 0.25rem;
  }
  .undo-btn{
      font-size:20px;
      line-height:1.4;
      padding:4px 2px;
	  text-align: center;
	  width: 15vw;
	  color: #fff;
  }
  .glossaryTable .tbody .tr{
    display:block;
    border: 1px solid #333333;
    /*margin-bottom:24px;*/
  }
  .glossaryTable .tbody .tr > *{
    width:100%;
    padding:10px 14px;
  }

  .glossaryTable .memo-cell{ text-align:right; }

  .glossaryTable   .explanation,
  .glossaryTableFuzzy .explanation{
      text-align:left;
      margin-top:12px;
  }  

  /* SPでは4列目(PC画像) を隠し5列目を表示 */
  .glossaryTable .tbody .tr > *:nth-child(4){ display:none; }
  .glossaryTable .tbody .tr > *:nth-child(5){
    display:block;
    text-align:center;
  }

  .del-btn {
    width: 40px;
    height: 40px;
  }

  .del-btn[aria-labelp] {
    position: relative;
  }

  .del-btn svg {
    position: relative;
    top: 6px;
    width: 50px;
    height: 50px;
  }

  .del-btn[aria-labelp]::before {
    border-width: 10px;
    border-top-color: #333;
  }


  .memo-content:hover {
    background-color: #f0f0f0;
  }
  .memo-item {
    position: relative;
    overflow: hidden;
  }

  .memo-delete-button {
    position: absolute;
    right: 0;
    top: 0;
    width: 60px;
    height: 100%;
    background-color: red;
  }

  .glossaryTable.memo-table .tbody .sp-only .tr.memo-item > *:nth-child(2), 
  .glossaryTableFuzzy.memo-table .tbody .sp-only .tr.memo-item > *:nth-child(2){
    font-size: 32px;
    line-height: 42px;
    font-weight: 700;
    width:80%;
    margin: 3px;
    padding-left: 0.5em;
    padding-top: 0.5em;
    /*padding-left: 2.5em;*/
  }

  .headTd2,
  .glossaryTable .memo-content .td.table_index1.glossary-text01 {
    border-color: #efefef !important;
    margin: 0 !important;
    font-size: 32px;
    line-height: 42px;
    font-weight: 700;
    width: 95%;
    display: inline-block;    
  }  
  

  .memo-table .tbody .tr .memo-item .td{ 
    padding:12px !important;
    border:none !important;
  }  

  .explanation {
    font-size: 30px !important;
    line-height: 40px !important;
    font-weight:400 !important;
    text-align: left !important;
    margin-top: 12px !important;
  } 

  .sp-only {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }
  
  .sp-only .glossaryTable .tbody .tr > * {
    width: auto !important;
  }

  .glossaryTable .tbody .tr .memo-content> *:nth-child(2), .glossaryTableFuzzy .tbody .tr .memo-content> *:nth-child(2) {
      font-size: 32px;
      line-height: 42px;
      font-weight: 700;
  }  

  .sp-only .memo-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    padding: 16px 0px 16px 0px;
    margin-bottom: 24px;
    align-items: flex-start;
  }

  .td.memo-del {
      position: absolute;
      top: 8px;
      left: 8px;
  }

  /* ゴミ箱 */
 .sp-only .memo-item .memo-del {
    align-self: flex-start;
    margin-bottom: 8px;
  }

  .sp-only .memo-item .td.table_index1 {
    width: 100%;
    text-align: center; /* ★ 用語名を中央に */
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
  }

  .sp-only .memo-item .td.explanation {
    width: 100%;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .sp-only .memo-item .td.glossary_image {
    width: 90% !important;
    text-align: center;
  }

  .memo-item .td.glossary_image {
    width: 90% !important;
    text-align: center;
  }
  
/*
  .sp-only .memo-item .memo-del .del-btn {
    margin: 0;
    padding: 0;
  }


  .sp-only .memo-item .memo-del svg {
    width: 50px;
    height: 50px;
    color: #dc3545;
  }

  .sp-only .memo-item .glossary-text01 {
    font-size: 18px;
    line-height: 24px;
  }

  .sp-only .memo-item .td {
    width: auto !important;
    padding: 0;
  }

  .sp-only .memo-item .td.table_index1 {
    text-align: center;
    flex-grow: 1;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
  }

  .sp-only .memo-item .td.explanation {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.5;
  }

  .sp-only .memo-item .glossary_image {
    margin-top: 8px;
  }
*/
  .empty-msg {
    font-size: 30px    !important;
    line-height: 40px  !important;
    font-weight: 600   !important;
    margin: 16px 0     !important;
    /*text-align: center !important;*/
	padding-left: 20px;
  }

  .pc-only { display: none !important; }
  .sp-only { display: block !important; }

  .l-mainvisual-title.memo-title{
      font-size: 48px;
      line-height: 48px;
      display: block;
      padding-bottom: 20px;
      margin: 20px;
  }  
}


/* 用語メモの使い方 */
.memo-section .memo-icon {
  width: 24px;
  height: 24px;
  margin: 0 2px;
  vertical-align: middle;
  margin-bottom: 0.3rem;
}

.memo-icon.memo-icon-filled{
  color:#333/*#ffc107*/ !important; 
}

@media (max-width:768px){
  .memo-section .memo-icon {
    width: 30px;
    height: 30px;
    margin: 0 2px;
    vertical-align: middle;
	margin-bottom: 0.3rem;
  }
}

.indent01 {
  margin-left: 20px; /* 全体の字下げを統一 */
}

.indent01 .text {
  margin: 10px;
  padding: 0;
  line-height: 1.6;
}

.indent01 .icon-textWrap {
  margin-left: 20px;
}

.indent01 .icon-textWrap .text {
  align-items: center;
}

.indent01 svg {
/*  margin: 0 5px;*/
  vertical-align: middle;
  width: 24px;
  height: 24px;
}

.indent01 .icon-trash {
  /*margin: 0 5px;*/
  vertical-align: middle;
  width: 24px;
  height: 24px;
}

@media screen and (max-width: 768px) {
  .indent01 {
      margin-left: 10px;
      padding-left: 5px;
  }
  .l-pageBody {
	min-height: calc(100vh - 270px);
  }
}

  .l-pageBody {
	min-height: calc(100vh - 140px);
  }
