/* ============================================================
   ACFブロック共通スタイル
   対象：共同研究 / 学会発表 / 論文投稿
   ============================================================ */


/* ------------------------------------------------------------
   アコーディオン共通
   ------------------------------------------------------------ */

.acf-block {
  margin-block: 0;
}

.Text .acf-block a {
  background-color: transparent;
}

/* デフォルトの▶マーカーを非表示 */
.acf-block > summary {
  list-style: none;
}
.acf-block > summary::-webkit-details-marker {
  display: none;
}

.block__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  user-select: none;
  background-color: #5737aa;
  color: #fff;
}

.block__nendo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* 開閉アイコン（CSS のみ） */
.block__toggle-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.block__toggle-icon::before,
.block__toggle-icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
/* 横棒（常時表示） */
.block__toggle-icon::before {
  transform: translateY(-50%);
}
/* 縦棒（閉じているとき＋表示） */
.block__toggle-icon::after {
  transform: translateY(-50%) rotate(90deg);
}
/* 開いているとき縦棒を消す（= - 表示） */
details[open] .block__toggle-icon::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}


/* ------------------------------------------------------------
   共同研究
   ------------------------------------------------------------ */

.kyodo-kenkyu__body {
  padding-block: 0.5rem 2.5rem;
}

.kyodo-kenkyu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kyodo-kenkyu__item {
  padding-block: 1.25rem;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
}

.kyodo-kenkyu__cell:first-child .cell__value {
  font-weight: bold;
}

/* 4カラムグリッド（研究題目・企業名・担当者・研究機関） */
.kyodo-kenkyu__grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
}

/* 研究概要：グリッド下に全幅で追加 */
.kyodo-kenkyu__gaiyo {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e0e0e0;
}


/* ------------------------------------------------------------
   学会発表
   ------------------------------------------------------------ */

.gakkai-happyo__body {
  padding-block: 0.5rem 2.5rem;
}

.gakkai-happyo__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ヘッダー行・データ行 共通：2カラムグリッド */
.gakkai-happyo__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid #e0e0e0;
}

/* ヘッダー行のみスタイル調整 */
.gakkai-happyo__header {
  border-top: none;
  padding-top: 0;
}

.gakkai-happyo__title-col {
  font-weight: bold;
}

.gakkai-happyo__title-col a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}


/* ------------------------------------------------------------
   論文投稿
   ------------------------------------------------------------ */

.ronbun-toko__body {
  padding-block: 0.5rem 2.5rem;
}

.ronbun-toko__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 各論文アイテム：タイトル（1行目）→ 執筆者（2行目） */
.ronbun-toko__item {
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 0.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.ronbun-toko__title-row {
  font-weight: bold;
}

.ronbun-toko__title-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ronbun-toko__author {
  font-size: 0.875rem;
  color: #666;
}


/* ------------------------------------------------------------
   セル共通（ラベル・値）
   ------------------------------------------------------------ */

.cell__label {
  display: block;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  color: #666;
  margin-bottom: 6px !important;
  margin-top: 0;
}

.cell__value {
  display: block;
  margin: 0;
  line-height: 1.6;
}


/* ------------------------------------------------------------
   モバイル対応（768px 以下で全 1 列）
   ------------------------------------------------------------ */

@media (max-width: 768px) {

  /* 共同研究：4列 → 1列 */
  .kyodo-kenkyu__grid4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* 学会発表：2列 → 1列 */
  .gakkai-happyo__item {
    grid-template-columns: 1fr;
  }

  /* 論文投稿はもともと縦積みのため変更不要 */

}
