/* disclosure 情報公開のレイアウト */


/* 全体スタイル */
.disclosure-container {
  max-width: var(--view-width);
  margin: 0 auto;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
}

@media (max-width: 640px){
.disclosure-container {
  margin: var(--mb-margin-xy);
}
}

.disclosure-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 36px;
  text-align: center;
  letter-spacing: 0.05em;
}

.section {
  margin-bottom: 40px;
}

.disclosure-subtitle {
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  margin: 40px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclosure-subtitle::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background-color: #1063ad;
  border-radius: 2px;
}


/* ---------------------------------
   1. Webカード（2列グリッド）
--------------------------------- */
.web-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(410px, 1fr));
  gap: 16px;
}

.web-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
}

.card-desc {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.arrow {
  color: #1063ad;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.web-card:hover {
  border-color: #1063ad;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16, 99, 173, 0.1);
}

.web-card:hover .arrow {
  transform: translateX(4px);
}

/* ---------------------------------
   2. 基本PDFリスト
--------------------------------- */
.pdf-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 12px;
}

.pdf-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pdf-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}

.pdf-date {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
}

.pdf-action {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1063ad;
  background-color: #f0f7ff;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.pdf-item:hover {
  border-color: #1063ad;
}

.pdf-item:hover .pdf-action {
  background-color: #1063ad;
  color: #ffffff;
}

/* ---------------------------------
   3. アコーディオン（<details>タグ活用）
--------------------------------- */
.accordion-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease,
              transform 0.5s ease;
}

.accordion-item[open] {
  border-color: #cbd5e1;
}

details::details-content {
    transition:
      height 0.2s,
      opacity 0.2s,
      content-visibility 0.2s allow-discrete;
    height: 0;
    opacity: 0;
    overflow: clip;
    background-color: #f0f2ff;
}

details[open]::details-content {
    opacity: 1;
    height:auto;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background-color: #f8fafc;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  cursor: pointer;
  list-style: none; /* デフォルトの矢印を消去 */
}

.accordion-header::-webkit-details-marker {
  display: none;
}

.accordion-icon {
  color: #64748b;
  transition: transform 0.2s ease;
}

.accordion-item[open] .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.doc-link:hover {
  background-color: #1063ad;
  color: #ffffff;
  border-color: #1063ad;
}

/* モバイル対応 */
@media (max-width: 640px) {
  .web-grid,
  .pdf-list,
  .accordion-content {
    grid-template-columns: 1fr;
  }
}
