.block-grid {
  overflow: hidden;
  list-style: none;

}
.ThumbnailGrid {
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 1px;;
}
h2 {
  margin:10px;

  text-align: center;
  background: #ffdbed;
  box-shadow: 0px 0px 0px 5px #dfefff;
  border: dashed 2px white;
  padding: 0.2em 0.5em;

}
h3 {
  color: #010079;
  text-shadow: 0 0 5px white;
  padding: 0.3em 0.5em;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  background: -webkit-repeating-linear-gradient(-45deg, #cce7ff, #cce7ff 3px, #e9f4ff 3px, #e9f4ff 7px);
  background: repeating-linear-gradient(-45deg, #cce7ff, #cce7ff 3px, #e9f4ff 3px, #e9f4ff 7px);
}
.initialH3 {
  color: white;
  text-shadow: initial;
  padding: initial;
  font-size: 20px;
  font-weight: bold;
  text-align: initial;
  background: initial;
}

#PhotoTarget {
  width: 100%;
  margin: 0px;
  overflow-y: scroll;
  overflow-x: hidden;
}
#PhotoName {
  text-align: center;
  font-size: 30px;
  font-weight: bold;
}

#tblPhotoDetail {
  width: 98%;
}
.kekka {
  width: 100%;
  border-collapse: collapse;
  overflow-y: scroll;
  font-size: 12pt;
  table-layout: fixed;
}

.kekka th {
  border-collapse: collapse;
  border: 1px solid #333;
}

.kekka tr:nth-child(even) td {
  background-color: #ffffef;
  border-collapse: collapse;
  border: 1px solid #333;
  text-align: center;
}

.kekka tr:nth-child(odd) td {
  background-color: #ffefef;
  border-collapse: collapse;
  border: 1px solid #333;
  text-align: center;
}

#tblPhotoName {
  width: 100%;
  text-align: center;
  margin: auto;
}
._PhotoName {
  font-size:30px;
  font-weight:bold;
  text-align: center;
  background: #ffefef;
  border: dashed 2px white;
  padding: 0.2em 0.5em;
}
#PhotoTarget {
  background: #dbffdb;
  overflow-y: hidden;
}

/* モダンスタイル拡張 */
.study-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-top: 15px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.study-hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2530;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.study-select-box select, #MyStudyListTarget select {
  border-radius: 12px !important;
  padding: 10px 16px !important;
  font-size: 1.05rem !important;
  min-height: 52px !important;
  height: auto !important;
  border: 2px solid #e2e8f0 !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100% !important;
}

.study-select-box select:focus, #MyStudyListTarget select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
}

.study-hint-box {
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #0369a1;
}

.study-hint-box-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0284c7;
}

.study-hint-box ul {
  padding-left: 20px;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.5;
}

/* Markdown 見出しスタイル (#### は <h3> と同等サイズにスタイリング) */
#Detail h4, #MissionDetail h4, #AnswerTarget h4, .markdown-parsed h4 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-top: 1.2rem !important;
  margin-bottom: 0.6rem !important;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 0.3rem;
  line-height: 1.4 !important;
}

#Detail h3, #MissionDetail h3, #AnswerTarget h3, .markdown-parsed h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-top: 1.4rem !important;
  margin-bottom: 0.7rem !important;
}

#Detail h3:first-child, #MissionDetail h3:first-child, #AnswerTarget h3:first-child, .markdown-parsed h3:first-child,
#DetailDescription > *:first-child, .markdown-parsed > *:first-child {
  margin-top: 0 !important;
}

/* セーフエリア対応コントロールパネル */
#FooterControlPanel {
  padding-bottom: calc(constant(safe-area-inset-bottom, 20px) + 20px) !important;
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 20px) !important;
  padding-top: 12px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  background-color: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#FooterControlPanel .row {
  max-width: 600px;
  margin: 0 auto !important;
}

#FooterControlPanel .btn-lg {
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 12px 16px !important;
  font-size: 1.1rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-study-start {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 24px !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.btn-study-start:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45) !important;
}

.btn-study-start:disabled {
  background: #cbd5e1 !important;
  box-shadow: none !important;
  opacity: 0.7;
}

.admin-action-card {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  padding: 14px;
  margin-top: 20px;
}

.admin-action-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-align: center;
}

.btn-admin-nav {
  border-radius: 8px !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  transition: all 0.2s !important;
}

.study-guide-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}

.study-guide-header {
  background: #f1f5f9;
  padding: 12px 16px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.study-guide-body {
  padding: 16px;
  background: #ffffff;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.study-guide-body ul {
  padding-left: 20px;
  margin-bottom: 0;
}