@charset "utf-8";
/* CSS Document */
/*臨床研究について*/
.cr-info {
	max-width: 750px;
	margin-top: 40px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 100px;
	font-size: 14px;
	line-height: 1.7;
	text-align: left;
}

.cr-row {
	display: flex;
	align-items: flex-start;
	border-bottom: 1px solid #e5e5e5;
	padding-top: 12px;
	padding-right: 10;
	padding-left: 0px;
	padding-bottom: 12px;
}

.cr-label {
  width: 240px;              /* ← 見出し幅を固定 */
  flex-shrink: 0;
  font-weight: bold;
  color: #333;
}

.cr-content {
  flex: 1;
  color: #555;
  word-break: break-word;
}
/*公開ページ*/
.cr-year-list {
	max-width: 800px;
	margin-top: 60px;
	margin-right: auto;
	margin-left: auto;
	margin-bottom: 40px;
	text-align: left;
}

.cr-year-title {
	font-size: 20px;
	margin-bottom: 60px;
	font-weight: bold;
	border-left: 4px solid #EEEADC;
	padding-left: 10px;
	margin-top: 20px;
}

.cr-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.cr-year-card {
  display: block;
  text-align: center;
  padding: 14px 10px;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: 0.2s;
}

/* ホバー */
.cr-year-card:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

/*年度*/
.cr-table-wrap {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 10px;
}

/* テーブル本体 */
.cr-table {
	width: 95%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.6;
	table-layout: fixed; /* ←追加（これ必須） */
	margin-left: auto;
	margin-right: auto;
}

/* 見出し幅（％指定） */
.cr-table th:nth-child(1) { width: 60%; }
.cr-table th:nth-child(2) { width: 18%; }
.cr-table th:nth-child(3) { width: 10%; }
.cr-table th:nth-child(4) { width: 12%; }



/* ヘッダー */
.cr-table thead th {
  background-color: #f0f0f0;
  font-weight: bold;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #ddd;
}

/* セル */
.cr-table td {
  padding: 48px 12px;
  border-bottom: 1px solid #e5e5e5;
  word-break: break-word;
  line-height: 2; /* ←これ追加 */
}
/* 交互カラー（ここが重要） */
.cr-table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.cr-table tbody tr:nth-child(even) {
  background-color: #f7f7f7;
}

/* ホバーで見やすく */
.cr-table tbody tr:hover {
  background-color: #eef6ff;
}

/* リンク */
.cr-table a {
  color: #2a6db0;
  text-decoration: underline;
}

.cr-table a:hover {
  text-decoration: none;
}

@media (max-width: 700px) {
/*臨床研究について*/	
  .cr-row {
	flex-direction: column;   /* ← 縦並びにする */
	padding-left: 0;          /* ← 左余白リセット（好みで） */
	width: 90%;
	margin-left: auto;
	margin-right: auto;
  }

  .cr-label {
	width: 100%;              /* ← 固定幅解除 */
	margin-bottom: 4px;       /* ← ラベルと本文の間に少し余白 */
	color: #393939;
  }

  .cr-content {
    width: 100%;
  }
/*公開ページ*/
	  .cr-year-list {
    max-width: 90%;   /* 念のため維持 */
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .cr-year-title {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .cr-year-grid {
    grid-template-columns: repeat(2, 1fr); /* ← 2列固定で見やすく */
    gap: 10px;
  }

  .cr-year-card {
    padding: 12px 8px;
    font-size: 14px;
  }
	/*--年度--*/
	 /* テーブルをブロック化 */
  .cr-table,
  .cr-table thead,
  .cr-table tbody,
  .cr-table th,
  .cr-table td,
  .cr-table tr {
    display: block;
    width: 100%;
  }

  /* ヘッダー非表示 */
  .cr-table thead {
    display: none;
  }

  /* 1行をカード化 */
  .cr-table tr {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
  }

  /* セル */
  .cr-table td {
    padding: 16px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  /* ラベル表示 */
  .cr-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
    color: #666;
    font-size: 12px;
  }

  /* 最後の線消す */
  .cr-table td:last-child {
    border-bottom: none;
  }

  /* ホバー無効（スマホいらない） */
  .cr-table tbody tr:hover {
    background: none;
  }
}
