@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

.custom-h2-wrapper {
  padding-bottom: 3.5rem;
  /* 	height:5.375rem; */
  width: 100%;
  display: flex;
  align-items: center;
}
.custom-h2 {
  display: flex;
}
.custom-h2-bar {
  display: inline-block;
  width: 0.25rem;
  background: #e97838;
  align-self: stretch;
  margin-right: 1.5rem;
}
.custom-h2-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.custom-h2-header {
  font-weight: bold;
  font-size: 2.5rem;
  line-height: 1.2;
}
.custom-h2-subheader {
  font-weight: 600;
  font-size: 1rem;
  color: #0d4896;
}
.custom-h2-more-link {
  opacity: 0.5;
  margin-left: auto;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.custom-h2-more-link span {
  font-size: 0.875rem;
}
/* -----------------
  タブ用のスタイル記述
----------------- */

.tab-buttons {
  display: flex;
  padding-bottom: 3.5rem;
}

/* 共通スタイル */
.tab-button {
  padding: 16px 40px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tab-content {
  display: none;
}

/* 非アクティブ */
.tab-button {
  opacity: 0.4;
}

.tab-button:hover {
  opacity: 0.6;
}

/* アクティブ */
.tab-button.active {
  background-color: #0d4896;
  color: #ffffff;
  opacity: 1;
  cursor: default;
}

.tab-content.active {
  display: block;
}

/* -----------------
  最新記事ウィジェット用の記述
----------------- */
.thumb-wrapper {
  position: relative;
}

.thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  opacity: 0%;
  transition: opacity 0.3s ease;
  border-radius: 1rem;
}

.news-main:hover .thumb-overlay,
.news-sub:hover .thumb-overlay {
  opacity: 35%;
}

.news-wrap {
  display: flex;
  gap: 12px;
}

/* 区切り線 */
.news-divider {
  width: 1px;
  background: #e3e3e3;
  align-self: stretch;
}

/* -----------------
  メイン記事
----------------- */

.news-main {
  width: 456px;
  padding: 8px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.news-main:hover {
  background: #fbfbff;
}

.news-main-thumb {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* -----------------
  サブ記事カラム
----------------- */

.news-sub-column {
  width: 260px;
  display: block;
}

.news-sub {
  display: inline-block;
  width: 260px;
  padding: 8px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}

.news-sub + .news-sub {
  margin-top: 16px;
}

.news-sub:hover {
  background: #fbfbff;
}

.news-sub-thumb {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* -----------------
  共通
----------------- */

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.news-tag {
  background: #eaf5ff;
  color: #2884d9;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  stroke: #2884d9;
}

.news-tag svg path {
  stroke: #2884d9;
}

.news-body {
  margin-top: 4px;
}

.news-date {
  font-size: 12px;
  opacity: 0.5;
}

.news-title {
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.15em;
  word-break: break-word;
}

.news-excerpt {
  font-size: 12px;
  opacity: 0.5;
  line-height: 1.6;
  word-break: break-word;
}

/* 行数制御 */
.line-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 767px) {
  .news-wrap {
    flex-direction: column;
  }
  .news-main {
    width: 100%;
  }
  .news-sub-column {
    width: 100%;
    display: flex;
    overflow-x: auto; /* scrollでもOKだがauto推奨 */
    gap: 16px; /* カード間の余白（任意） */
    padding-bottom: 10px; /* スクロールバー対策（任意） */
  }
  .news-sub-column:nth-child(n + 4) {
    display: none;
  }
  .news-sub {
    width: 200px; /* サブ記事の幅（任意） */
    flex-shrink: 0; /* 幅を固定 */
    flex: 0 0 auto; /* ←これ重要 */
  }
  .news-sub + .news-sub {
    margin-top: 0; /* 縦の余白は不要 */
  }
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px) {
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px) {
  /*必要ならばここにコードを書く*/
}

.entry-card-thumb {
  width: 100px;
}
.entry-card-content {
  margin-left: 110px;
}

.navi-footer-in a:hover {
  background-color: #006;
  text-decoration: underline 3px;
  text-underline-offset: 5px;
}

.navi-in a:hover {
  background-color: #ffffff;
  text-decoration: underline 3px;
  text-underline-offset: 5px;
}

/************************************
 *  AI Security Portal CSS Rules
 ************************************/
/*-----------------------------------
 - パンくずリスト
 -----------------------------------*/
/* アイコンを表示しない */
.breadcrumb .far,
.breadcrumb .fas {
  display: none;
}
/* ただし、右矢羽は表示 */
.breadcrumb .fas.fa-angle-right {
  display: revert;
}

/*-----------------------------------
 - SNS アイコン
 -----------------------------------*/
/* キャプションを表示しない */
.social-icon + .button-caption {
  position: fixed !important;
  top: 0px !important;
  left: 0px !important;
  width: 4px !important;
  height: 4px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  visibility: visible !important;
}
/* 正方形にする */
.sns-share.ss-col-6 a {
  width: 40px;
  height: 40px;
}
@media screen and (max-width: 834px) {
  .sns-share.ss-top.ss-col-6 a,
  .sns-share.ss-bottom.ss-col-6 a {
    width: 40px;
    height: 40px;
  }
}
/* 右寄せにする */
.sns-buttons {
  justify-content: right;
}

/* 本文上には表示しない */
.sns-share.ss-top {
  display: none;
}
/*-----------------------------------
 - 投稿者表記
 -----------------------------------*/
.page .author-info.aisecp {
  display: none;
}

.single .author-info.aisecp {
  font-size: 0.8em;
  text-align: left;
}

/* 本文下には表示しない */
.footer-meta {
  display: none;
}

.date-tags {
  text-align: left;
}

.fas.fa-pencil-alt {
  display: none;
}

/*-----------------------------------
 - 検索窓
 -----------------------------------*/
/* ヘッダ内に検索窓を表示 */
#header-container-in .search-box {
  margin-bottom: 0;
  margin-left: 15px;
  width: 376px;
}

@media screen and (max-width: 834px) {
  #header-container-in .search-box,
  .bogo-language-switcher,
  .kprogram-logo-img {
    display: none;
  }
}

@media screen and (min-width: 835px) and (max-width: 1023px) {
  #header-container-in .search-box,
  .bogo-language-switcher,
  .kprogram-logo-img {
    display: none;
  }
}

.header-row1 {
  display: flex;
  align-items: baseline;
  flex-direction: row;
  justify-content: flex-end;
}

/* 検索結果ページの本文中検索窓を表示しない */
.main .search-box {
  display: none;
}

/*-----------------------------------
 - エントリーカード（記事概要表示）
 -----------------------------------*/
/* literature-database カテゴリの figure を表示しない */
.category-literature-database-post figure {
  display: none;
}
/* フロントページ内の文献データベース、文献データベース一覧、タグページ、関連文献表示ではマージンも削除する */
.front-top-page .list-category-7 .entry-card-content,
.category-literature-database .entry-card-content,
.tag .category-literature-database-post .entry-card-content,
.category-literature-database-post .widget-related-entry-card-content {
  margin-left: 0;
}
/* ただし、検索結果では解説記事と混在するためスペースを残す */
.search-results .category-literature-database-post figure {
  display: revert;
  visibility: hidden;
}
/* 検索結果で表示するカテゴリの調整 */
.entry-card-meta {
  min-width: calc(100% - 110px);
}
.entry-card-info {
  justify-content: space-between;
}
@media screen and (max-width: 480px) {
  .entry-card-meta {
    min-width: calc(100% - 101.6px);
  }
}
.entry-card-info .cat-label {
  position: static;
}
.entry-card-info > div > .post-date,
.entry-card-info > div > .post-update {
  font-size: 1em;
}
/* 記事一覧で表示するタグの調整 */
.aisecp-entry-card-tags {
  display: flex;
  flex-flow: row wrap;
  font-size: var(--cocoon-text-size-s);
}
.aisecp-entry-card-tags > .tag-caption {
  margin-right: 1em;
  margin-top: 0.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aisecp-entry-card-tags .tax-icon {
  margin-right: 0.4em;
}

/*-----------------------------------
 - 記事一覧
 -----------------------------------*/
/* タイトル部分のアイコンを表示しない */
.archive-title .fas.fa-folder-open {
  display: none;
}

/*-----------------------------------
 - AIセキュリティマップ
 -----------------------------------*/
.toc-widget-box .toc-content {
  overflow-y: auto !important;
  height: calc(100vh - 37px) !important;
}
#content-techmap img + p {
  margin-bottom: 0;
}
#content-techmap .element-definition {
  font-size: 0.6em;
}
#content-techmap th :where(h4, h5) {
  border-top: none;
  border-bottom: none;
  margin-bottom: 0;
}
#content-techmap table .cell-short {
  width: 200px;
}
#content-techmap table .cell-middle {
  width: 400px;
}
#content-techmap table .cell-logn {
  width: 600px;
}
#content-techmap .cell-section p {
  margin-bottom: 5px;
  padding-left: 1em;
}
#content-techmap .cell-section p.cell-section-title {
  font-size: 1.2em;
  font-weight: bold;
  padding-left: 0;
}
#content-techmap .techmap-content {
  font-size: 1em;
}
#content-techmap .techmap-content ul {
  margin-bottom: 0;
}
#content-techmap .techmap-content ul li {
  margin: 0 auto;
}
.techmap-content table :where(th, td) {
  padding: 0;
}
#content-techmap table tr:has(> .element-title.hash-selected) {
  background-color: var(--cocoon-watery-yellow-color);
}
#content-techmap table tr:has(> .element-title > h4 > span.hash-selected) {
  background-color: var(--cocoon-watery-yellow-color);
}
#content-techmap table th.element-title {
  font-size: 1.25em;
  background-color: inherit;
}
@media screen and (max-width: 834px) {
  #content-techmap table th.element-title {
    font-size: 1em;
  }
  #content-techmap .article table .cell-short {
    width: 150px;
  }
}
#content-techmap #table-infosys {
  width: 100%;
}
#content-techmap #table-infosys :where(th, td) {
  white-space: normal;
}
#content-techmap table :where(th, td) {
  border-bottom: 1px solid var(--cocoon-grey-color);
  border-top: 1px solid var(--cocoon-grey-color);
  border-left: none;
  border-right: none;
  padding-top: 10px;
  padding-bottom: 20px;
}

#content-techmap #table-infosys-negatives :where(th, td) {
  white-space: normal;
}
#content-techmap #table-external {
  width: 100%;
}
#content-techmap #table-external :where(th, td) {
  white-space: normal;
}

#content-techmap #table-external-negatives :where(th, td) {
  white-space: normal;
}

#content-techmap-detail {
  --techmap-blue: #0d4896;
  --techmap-blue-soft: #f7f9fd;
  --techmap-gray: #f7f9fd;
  --techmap-border: #e1e8f2;
  --techmap-border-soft: #e3e3e3;
}

#content-techmap-detail .techmap-link-literature-database {
  display: inline-block;
  margin-top: 10px;
  margin-left: 0;
  font-weight: 500;
}

#content-techmap-detail .techmap-reference-section h4 {
  font-size: 1.25em;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--aisec-blue-900);
  font-weight: bold;
}

#content-techmap-detail .techmap-reference-section p {
  margin: 16px 0;
  border: 1px solid var(--techmap-border);
  border-radius: 16px;
  padding: 16px;
  padding-top: 6px;
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 28px;
}

#content-techmap-detail .techmap-reference-section {
  padding: 32px;
  border-radius: 16px;
  background-color: var(--techmap-gray);
}

#content-techmap-detail .techmap-reference-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

#content-techmap-detail .techmap-reference-section.hash-selected {
  background-color: var(--cocoon-watery-yellow-color);
}

#content-techmap-detail .portal-app-scope ul + p {
  display: none;
}

#content-techmap-detail ul {
  list-style: disc;
  padding-left: 1.4em;
}

#content-techmap-detail li {
  display: list-item;
}

#content-techmap-detail .techmap-reference-section a {
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

#content-techmap-detail .techmap-reference-section li {
  border-bottom: 1px solid var(--techmap-border-soft);
  padding: 24px 0;
}

#content-techmap-detail .techmap-reference-section li a {
  color: var(--aisec-blue-900) !important;
  font-weight: bold;
}

#content-techmap-detail .portal-app-scope > div.tw\:grid {
  display: grid;
  gap: calc(var(--spacing) * 1.5);
  grid-template-columns: 2fr 5fr;
}

#content-techmap-detail .portal-app-scope > div.tw\:grid > div.tw\:grid {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 2 / span 2;
}

#content-techmap-detail
  .portal-app-scope
  > div.tw\:grid
  > div.tw\:grid
  > div.tw\:font-bold {
  background-color: var(--techmap-blue);
  color: white;
  border-radius: var(--radius-md);
  padding-block: calc(var(--spacing) * 1) !important;
  justify-content: center;
  align-items: center;
  display: flex;
  font-weight: var(--font-weight-bold);
}

#content-techmap-detail
  .portal-app-scope
  > div.tw\:grid
  > div.tw\:grid
  > div.tw\:font-bold
  > p {
  margin-bottom: calc(var(--spacing) * 0) !important;
}

#content-techmap-detail .portal-app-scope > div.tw\:grid > div.tw\:grid > ul {
  margin-bottom: calc(var(--spacing) * 0) !important;
  line-height: 1.7;
  font-size: 0.875rem;
  padding-left: 1.2rem !important;
}

#content-techmap-detail h4 + .portal-app-scope > div > div > div > p {
  color: white !important;
  font-weight: normal !important;
}

@media (max-width: 767px) {
  #content-techmap-detail {
    padding: 22px 16px 30px;
  }

  #content-techmap-detail p {
    font-size: 0.92rem;
    line-height: 1.9;
  }

  #content-techmap-detail h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    padding: 8px 10px;
    border-left-width: 4px;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  #content-techmap-detail h4 {
    font-size: 0.95rem;
  }

  #content-techmap-detail ul {
    list-style: none;
    padding-left: 0.6em;
  }

  #content-techmap-detail li {
    position: relative;
    padding-left: 0.8em;
    margin-bottom: 0.2rem;
    line-height: 1.8;
  }

  #content-techmap-detail li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
  }

  #content-techmap-detail .portal-app-scope > div.tw\:grid {
    gap: 0.55rem;
    grid-template-columns: 1fr;
  }

  #content-techmap-detail .portal-app-scope > div.tw\:grid > div.tw\:grid {
    gap: 0.35rem;
    margin-bottom: 0.3rem;
  }

  #content-techmap-detail
    .portal-app-scope
    > div.tw\:grid
    > div.tw\:grid
    > div.tw\:font-bold {
    background-color: var(--techmap-blue);
    color: white;
    border-radius: var(--radius-md);
    padding-block: calc(var(--spacing) * 1) !important;
    justify-content: center;
    align-items: center;
    display: flex;
    font-weight: var(--font-weight-bold);
  }

  #content-techmap-detail
    .portal-app-scope
    > div.tw\:grid
    > div.tw\:grid
    > div.tw\:font-bold
    > p {
    margin-bottom: 0 !important;
    line-height: 1.6;
    font-size: 0.88rem;
  }

  #content-techmap-detail .portal-app-scope > div.tw\:grid > div.tw\:grid > ul {
    font-size: 0.88rem;
    line-height: 1.8;
    padding-left: 0.6em !important;
  }

  #content-techmap-detail
    .portal-app-scope
    > div.tw\:grid
    > div.tw\:grid
    > ul
    li {
    padding-left: 0.8em;
  }

  #content-techmap-detail .techmap-reference-section {
    padding: 12px;
    margin: 0;
    border-radius: 16px;
    background-color: var(--techmap-gray);
  }

  #content-techmap-detail .techmap-reference-section h4 {
    margin: 0 0 10px;
    padding: 8px 10px;
    font-size: 0.88rem;
  }

  #content-techmap-detail .techmap-reference-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
  }

  #content-techmap-detail .techmap-reference-section li {
    margin: 0;
    padding: 8px 10px;
    border-bottom: 1px solid #e5eaf1;
    line-height: 1.55;
  }

  #content-techmap-detail .techmap-reference-section li:last-child {
    border-bottom: 0;
  }

  #content-techmap-detail .techmap-reference-section li::before {
    content: none;
  }

  #content-techmap-detail .techmap-reference-section a {
    display: inline;
    font-size: 0.78rem;
    line-height: 1.55;
  }
}

/*-----------------------------------
 - 文献データベース
 -----------------------------------*/
#content-literature-database .article-label {
  cursor: pointer;
  border: 1px solid var(--cocoon-x-thin-color);
  border-radius: 2px;
  color: var(--cocoon-text-color);
  padding: 3px 8px;
  text-decoration: none;
  font-size: 12px;
  margin: 2px;
  display: inline-block;
}
#content-literature-database .article-label::before {
  content: "\f02c";
  font-family: "Font Awesome 5 Free";
  margin-right: 7px;
  font-weight: 900;
}
#content-literature-database .article-source {
  margin: 3px auto;
}
#content-literature-database .literature-database-section {
  margin-top: 10px;
  margin-bottom: 20px;
}
#content-literature-database .article-label-annotation {
  font-size: 12px;
}
.category-literature-database-post .date-tags {
  display: none;
}
.list-category-7 .entry-card-info.e-card-info {
  display: none;
}
body.tag.archive .entry-card-info.e-card-info {
  display: none;
}

/*-----------------------------------
 - AIセキュリティフィード
 -----------------------------------*/
#content-related-info ul.news-list li {
  margin-bottom: 10px;
}
#content-related-info .news-list li p {
  margin: 0 auto;
}
#content-related-info .type-label {
  font-size: 0.7em;
  margin: 0px 5px;
  height: 20px;
  line-height: 17px;
  display: inline-block;
  padding: 1px 5px;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(153, 153, 153);
  border-image: initial;
  border-radius: 2px;
}

#content-related-info .news-description {
  font-size: 12px;
}
#content-related-info .news-info {
  font-size: 12px;
}
#content-related-info .author-info {
  display: none;
}
#post-129 .date-tags {
  display: none;
}
body.page-id-263 ul.link-list {
  display: none;
  height: 0;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s;
}
body.page-id-263 h2 {
  text-decoration: underline;
  cursor: pointer;
  position: relative;
  padding-right: 2em;
}
body.page-id-263 h2:before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-top: 2px solid #666;
  border-right: 2px solid #666;
  -webkit-transform: rotate(45deg);
  position: absolute;
  top: calc(50% - 0.4em);
  right: 1em;
  transform: rotate(135deg);
}
body.page-id-263 h2.link-list-open:before {
  top: calc(50% - 0.2em);
  transform: rotate(-45deg);
}
body.page-id-263 h2.link-list-open + ul.link-list {
  display: block;
  height: auto;
  transition: all 0.5s;
}

/*-----------------------------------
 - ニュース記事分析ページ
 -----------------------------------*/
#content-news-analysis .article-source {
  margin: 3px auto;
}
#content-news-analysis .news-analysis-section {
  margin-top: 10px;
  margin-bottom: 20px;
}
#content-news-analysis .news-analysis-annotation {
  font-size: 12px;
}
.category-news-analysis-post .date-tags {
  display: none;
}
.list-category-1385 .entry-card-info.e-card-info {
  display: none;
}

/*-----------------------------------
 - フロントページ
 -----------------------------------*/
.top-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin: 56px auto;
}

.top-catch {
  flex: 1;
}
.top-search {
  flex: 0 0 400px;
  max-width: 100%;
}

.top-catch .top-catch-first {
  font-size: 2rem;
  font-weight: 700;
  font-style: Bold;
  line-height: 160%;
  letter-spacing: 15%;
}
.top-catch .top-catch-second {
  font-size: 1.75rem;
  font-weight: 500;
  font-style: Bold;
  line-height: 160%;
  letter-spacing: 15%;
}
@media (max-width: 767px) {
  .top-hero {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .top-catch {
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 0;
  }
  .top-catch .top-catch-first {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  .top-catch .top-catch-second {
    font-size: 1rem;
    line-height: 1.4;
  }

  .top-search {
    flex-basis: auto;
    width: 100%;
  }
}

.front-top-page .list-title-in {
  padding: 0;
}
.front-top-page .list-title-in::before,
.front-top-page .list-title-in::after {
  display: none;
}
.front-top-page .list-title {
  text-align: left;
}

.list-new-entries {
  display: none;
}

.front-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b c"
    "d e f f";
  gap: 8px;
}
.front-nav-grid > div {
  height: 230px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
.front-nav-grid > a {
  display: block;
  height: 230px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
.front-nav-grid > *:nth-child(1) {
	grid-area: a;
	background-image: url("https://aisecurity-portal.org/wp-content/uploads/2026/03/top-articles.png");
}
.front-nav-grid > *:nth-child(2) {
	grid-area: b;
	background-image: url("https://aisecurity-portal.org/wp-content/uploads/2026/03/top-aisecurity-map.png");
}
.front-nav-grid > *:nth-child(3) {
  grid-area: c;
  background-color: #072556;
}
.front-nav-grid > *:nth-child(4) {
  grid-area: d;
  background-color: #0d0d0d;
}
.front-nav-grid > *:nth-child(5) {
	grid-area: e;
	background-image: url("https://aisecurity-portal.org/wp-content/uploads/2026/03/top-related-news.png");
}
.front-nav-grid > *:nth-child(6) {
	grid-area: f;
	background-image: url("https://aisecurity-portal.org/wp-content/uploads/2026/03/top-literature-database.png");
}

/* 白文字の箱 */
.front-nav-grid .card-content {
  position: relative;
  inset: 0;
  padding: 25px 20px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  height: 100%;
}
/* タイトル */
.front-nav-grid .card-content .card-title {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
/* 説明文 */
.front-nav-grid .card-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  letter-spacing: 0.06em !important;
}
/* リンク群 */
.front-nav-grid .card-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 230px;
  margin-bottom: 25px !important;
  margin-left: 20px !important;
}
.front-nav-grid .card-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.front-nav-grid .card-links a:visited,
.front-nav-grid .card-links a:hover,
.front-nav-grid .card-links a:active {
  color: rgba(255, 255, 255, 0.95) !important;
}
.front-nav-grid .card-links a span {
  font-size: 18px;
  line-height: 1;
}
.front-nav-grid .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.front-nav-grid .split .right {
  display: flex;
  align-items: flex-end;
}
@media (max-width: 767px) {
  .front-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "a a"
      "f f"
      "b b"
      "c c"
      "d e";
    gap: 8px;
    /* margin: 16px; */
  }
  .front-nav-grid > * {
    height: 180px !important;
  }
  .front-nav-grid > *:nth-child(1) {
    grid-area: a;
    background-image: url("https://aisecurity-portal.org/wp-content/uploads/2026/03/top-articles.png");
    height: 250px !important;
  }
  .front-nav-grid > *:nth-child(2) {
    grid-area: b;
    background-image: url("https://aisecurity-portal.org/wp-content/uploads/2026/03/top-aisecurity-map.png");
  }
  .front-nav-grid > *:nth-child(3) {
    grid-area: c;
    background-color: #072556;
  }
  .front-nav-grid > *:nth-child(4) {
    grid-area: d;
    background-color: #0d0d0d;
  }
  .front-nav-grid > *:nth-child(5) {
    grid-area: e;
    background-image: url("https://aisecurity-portal.org/wp-content/uploads/2026/03/top-related-news.png");
  }
  .front-nav-grid > *:nth-child(6) {
    grid-area: f;
    background-image: url("https://aisecurity-portal.org/wp-content/uploads/2026/03/top-literature-database.png");
    height: 250px !important;
  }
  .front-nav-grid .split {
    display: grid;
    grid-template-columns: 1fr;
  }
  .front-nav-grid .card-links {
    width: 100% !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}

.front-ai-security-map {
  margin: 70px auto;
  text-align: center;
}
.front-ai-security-map .ai-security-map-title {
  position: relative;
}
.front-ai-security-map .ai-security-map-title .title-back {
  font-size: 100px;
  color: #dae8f9;
  font-weight: bold;
  line-height: 1;
}
.front-ai-security-map .ai-security-map-title .title-front {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--aisec-blue-900);
  font-size: 20px;
  font-weight: bold;
  line-height: 160%;
  letter-spacing: 15%;
}
.front-ai-security-map .ai-security-map-message {
  font-size: 32px;
  font-weight: bold;
}
.front-ai-security-map .ai-security-map-description {
  font-size: 14px;
}
@media (max-width: 767px) {
  .front-ai-security-map .ai-security-map-title .title-back {
    font-size: 64px;
  }
  .front-ai-security-map .ai-security-map-title .title-front {
    font-size: 16px;
    top: 50%;
  }
}

.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  padding-top: 32px;
  margin-bottom: 16px;
}
.info-list-item:nth-child(n + 2) {
  border-top: 1px solid #e3e3e3;
}

/* 日付を左固定 */
.info-list-item-meta {
  order: 1;
  min-width: 100px;
  opacity: 0.5;
  font-size: 14px;
}

/* contentを右側に */
.info-list-item-content {
  order: 2;
  flex: 1;
  font-size: 16px;
}

/* categoryを非表示 */
.info-list-item-categorys {
  display: none;
}

/*-----------------------------------
 - Not Found
 -----------------------------------*/
img.not-found {
  display: none;
}

/*-----------------------------------
 - Appeal area
 -----------------------------------*/

/* Appeal area message */

.appeal-content {
  background-color: transparent;
  text-align: left;
  margin: 0;
}

.appeal-title,
.appeal-message {
  color: #fff;
}

/* Appeal Area Buttons */
.appeal-area-button {
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  background-color: #001b31;
  padding: 0.5em 1.4em;
  border: 1px solid #fff;
  border-radius: 99px;
  margin: 1em 1em 0 0em;
  width: fit-content;
  min-width: max-content;
}

.appeal-area-button-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

@media screen and (min-width: 1024px) {
  .appeal-area-button-container {
    display: none;
  }
}

@media screen and (min-width: 600px) and (max-width: 1023px) {
  .appeal-area-button-container {
    flex-direction: row;
  }
}

/* literature category no labels*/
.categoryid-7 .article-footer .entry-tags {
  display: none;
}

/*　Search box style */
#header-container-in .search-edit {
  padding: 5px 15px 5px 15px;
}

/* 
 * Search & Filter Styles */

.searchandfilter ul:not(.children) {
  padding-left: 0px;
}
.searchandfilter li {
  display: block;
  width: 100%;
  padding-right: 10px;
}

.searchandfilter h4 {
  margin: 15px 5px 5px 0px;
}
.searchandfilter input,
select {
  padding: 5px 15px 5px 15px;
}

.searchandfilter input[type="submit"] {
  padding: 5px 5px;
  width: auto;
  margin-top: 15px;
}

/* feed-list sidebar */
#aisecfeed-side #content-related-info {
  font-size: 0.8em;
  padding: 0px 10px;
}

#aisecfeed-side #content-related-info ul {
  padding-left: 0px;
  list-style-type: none;
  margin-bottom: 8px;
}

/* list more button */
.list-more-button {
  color: #000066;
  border: 1px solid #000066;
  font-size: 14px;
  padding: 0.3em 1.5em;
}

/* SNS follow footer */

.icon-x-corp-logo {
  width: 30px;
  border-radius: 5px;
  font-size: 16px;
  display: inline-flex;
  background-color: black;
  height: 23px;
  align-items: center;
  justify-content: center;
}

/* Categories sidebar */
#categories-2 ul li.cat-item.cat-item-7,
li.cat-item.cat-item-63 {
  display: none;
}

/* new article mark */
.new-article {
  background-color: #000066;
  color: #fff;
  font-size: 12px;
  padding: 2px 5px;
  margin-left: 5px;
}

/* Main padding */
.main {
  padding: 0 29px 0 29px;
}

@media screen and (max-width: 834px) {
  main.main,
  div.sidebar {
    padding: 0 16px;
  }
}

/* Bogo */

.bogo-language-switcher a {
  text-decoration: none;
}

.bogo-language-switcher .current a {
  display: none;
}

/* English version */

html:not([lang="en-US"]) .english {
  display: none !important;
}
html:not([lang="ja"]) .japanese {
  display: none !important;
}

html:not([lang="ja"]) .list-category-21.list-column {
  display: none !important;
}

html:not([lang="ja"]) .toc-title {
  display: none !important;
}

/* 1.1 */
/* Logo */
/* .header-container-in.hlt-top-menu.hlt-tm-small .logo-header img {
    max-height: 50px;
} */

.wp-card {
  --card-width: 320px;
  --card-border: #ddd;
  --card-bg: #fff;
  --card-hover-bg: #f3f8ff;
  --card-radius: 8px;
  --card-padding: 16px;

  width: min(100%, var(--card-width));
  max-width: var(--card-width);
  margin-left: auto;
  margin-right: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;

  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  overflow: hidden;
  padding: var(--card-padding);

  aspect-ratio: 4 / 5;
  transition: background-color 0.18s ease;
}

.wp-card:hover,
.wp-card:focus {
  background-color: var(--card-hover-bg);
}
.wp-card:focus-visible {
  outline: 3px solid #2b7cff;
  outline-offset: 3px;
  border-radius: calc(var(--card-radius) - 1px);
}

.wp-card-media {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wp-card-media img {
  max-width: 80%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.wp-card .wp-card-title {
  border: none;
  background: transparent;
  padding: 0 6px;
  margin: 12px 0 0;
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;

  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .wp-card {
    --card-width: 260px;
    padding: 14px;
  }
  .wp-card .wp-card-title {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .wp-card {
    width: 100%;
    max-width: 100%;
    --card-width: 100%;
    padding: 12px;
    aspect-ratio: 4 / 5;
  }
  .wp-card .wp-card-title {
    font-size: 1rem;
  }
}

/* Front Page */
.home h2 {
  border: none;
  background: transparent;
  font-size: 20px;
  text-align: left;
  margin-bottom: 0.5em;
  color: #000066;
}

.home h3 {
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
  background: transparent;
  text-align: center;
  font-size: 18px;
  margin-bottom: 0.5em;
  color: #000066;
}

/* .page-id-56976 .new-list-box{
	margin-bottom: 0.5em;
}

.page-id-56976 .wp-block-group{
	margin-bottom: 0em;
} */

.frontpage-full {
  margin: 0 calc(50% - 50vw);
  padding: 0 calc(50vw - 50%);
}

.content {
  margin-top: 0px;
}

/* K Program logo */
.header-in {
  flex-direction: row;
}

.kprogram-logo-img {
  height: 45px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0px 26px;
  list-style: none;
}

.card {
  display: grid; /* image + title stack */
  grid-template-rows: auto 1fr;
  background: #fff;
  color: inherit;
  text-decoration: none;
  border: 1px solid #e5e7eb; /* light gray */
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition:
    background-color 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}

.card:hover,
.card:focus-visible {
  background: #f3f6ff;
  border-color: #c7d2fe;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  outline: none;
}

.card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  font-size: 1rem;
  line-height: 1.3;
  overflow: auto;
}

/* frontpage scrollable news */
.scrollable-news {
  flex: 1 1 auto;
  min-height: 0;
  height: 650px;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0px 4px 8px -2px rgba(48, 48, 48, 0.1);
  scrollbar-width: thin;
  scrollbar-color: transparent transparent; /* Firefox: transparent by default */
}

html:not([lang="ja"]) .scrollable-news {
  height: 400px;
}

.scrollable-news:hover {
  scrollbar-color: #d3d3d3 #fff;
}

.scrollable-news::-webkit-scrollbar {
  width: 8px;
  background: transparent;
}

.scrollable-news:hover::-webkit-scrollbar {
  width: 8px;
}

.scrollable-news::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

/* On hover, visible */
.scrollable-news:hover::-webkit-scrollbar-thumb {
  background: #d3d3d3;
}

.scrollable-news ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.scrollable-news ul li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edeef4;
}

.scrollable-news ul li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/***********************************/
/* 固定ページ用デザイン */

/*
  AI Security Portal article page style
  Source design: resources/design-coding/articles/PC-記事テンプレート.svg
  Target DOM: .article .article-header / .entry-content on WordPress(Cocoon)
*/

:root {
  --aisec-blue-900: #0d4896;
  --aisec-blue-600: #2884d9;
  --aisec-blue-050: #eaf5ff;
  --aisec-accent: #e97838;
  --aisec-text: #1b2a41;
  --aisec-text-muted: #4f6178;
  --aisec-border: #d7e5f5;
  --aisec-surface: #ffffff;
}

.entry-content .article,
.page-content .article {
  background: var(--aisec-surface);
  box-shadow: none;
  overflow: hidden;
}

.entry-content .article-header,
.page-content .article-header {
  padding: 40px 48px 20px;
}

.entry-title {
  margin: 0 0 18px;
  font-size: clamp(1.95rem, 3.1vw, 2.5rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.author-info.aisecp,
.date-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 10px 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.88rem;
  border: 0;
}

.author-info.aisecp a {
  color: inherit;
  text-decoration: none;
}

body.single-post .entry-content,
body.wp-singular .entry-content {
  padding: 34px 48px 44px;
  color: var(--aisec-text);
}

.entry-content > *,
.page-content > * {
  margin-bottom: 1.5rem;
}

.entry-content,
.page-content {
  color: var(--aisec-text);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.01em;
}

.entry-content h2,
.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 12px 16px;
  border-left: 6px solid var(--aisec-accent);
  background: transparent;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.45;
}

.entry-content h3,
.page-content h3 {
  margin-top: 2.1rem;
  margin-bottom: 0.9rem;
  padding: 8px 14px;
  background: transparent;
  border-left: 5px solid var(--aisec-accent);
  border-bottom: 0;
  border-top: 0;
  border-right: 0;
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  line-height: 1.5;
}

.entry-content a,
.page-content a {
  color: var(--aisec-blue-600);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.entry-content a:hover,
.page-content a:hover {
  color: var(--aisec-blue-900);
}

.entry-content ul,
.page-content ul {
  list-style: disc;
  margin-top: 16px;
  margin-bottom: 16px;
  padding-left: 1.4em;
}

.entry-content li,
.page-content li {
  display: list-item;
}

.entry-content p[id^="_ftn"],
.page-content p[id^="_ftn"],
.entry-content p a[id^="_ftn"],
.page-content p a[id^="_ftn"] {
  color: var(--aisec-text-muted);
}

.entry-content figure.wp-block-image,
.page-content figure.wp-block-image {
  margin: 1.9rem auto;
  padding: 0;
  background: #fff;
}

.entry-content figure.wp-block-image img,
.page-content figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.entry-content p.has-text-align-center,
.page-content p.has-text-align-center {
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.entry-content > p:has(br),
.page-content > p:has(br) {
  border-radius: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.entry-content > p:has(br)::first-line,
.page-content > p:has(br)::first-line {
  color: inherit;
  font-weight: inherit;
}

.entry-content .sns-share.ss-top,
.page-content .sns-share.ss-top {
  margin-top: 6px;
}

.entry-content .sns-share.ss-top .sns-button,
.page-content .sns-share.ss-top .sns-button {
  border-radius: 10px;
  border: 1px solid var(--aisec-border);
  background: #fff;
}

.entry-content .entry-categories-tags,
.page-content .entry-categories-tags {
  border-top: 1px solid var(--aisec-border);
  padding-top: 18px;
}

.entry-content .entry-categories .cat-link,
.page-content .entry-categories .cat-link {
  border-radius: 100px;
  background: var(--aisec-blue-050);
  color: var(--aisec-blue-600);
  padding: 4px 12px;
}

.entry-content .yasr-auto-insert-visitor,
.page-content .yasr-auto-insert-visitor {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--aisec-border);
}

.entry-content table,
.page-content table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  overflow: hidden;
}

.entry-content table th,
.page-content table th,
.entry-content table td,
.page-content table td {
  padding: 12px 16px;
  text-align: left;
}

/* 横線だけ */
.entry-content table tr:not(:last-child) th,
.entry-content table tr:not(:last-child) td,
.page-content table tr:not(:last-child) th,
.page-content table tr:not(:last-child) td {
  border-bottom: 1px solid #ccc;
}

/* ヘッダー */
.entry-content table th,
.page-content table th {
  background-color: var(--aisec-blue-900);
  color: white;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .entry-content .article-header,
  .entry-content,
  .page-content .article-header,
  .page-content {
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (max-width: 767px) {
  .entry-content .article,
  .page-content .article {
    border-radius: 0;
  }

  .entry-content .article-header,
  .page-content .article-header {
    padding: 26px 18px 14px;
  }

  .entry-content,
  .page-content {
    padding: 22px 18px 30px;
  }

  .entry-content h2,
  .page-content h2 {
    border-left-width: 5px;
    padding: 10px 12px;
  }

  body.single-post .entry-content p,
  body.wp-singular .entry-content p {
    line-height: 1.9;
  }
}

/***********************************/
