/* ============================================
   page-download.css
   各種書類ダウンロードページ（page-downlod.php）専用スタイル
   ============================================ */

.page-head {
  padding: 92px 10px 112px;
}

/* ============================================
   ダウンロードセクション
   ============================================ */
.download-section {
  background: #fafaed;
  padding: 60px 20px 120px;
  padding-top: 20px;
  position: relative;
}

/* ============================================
   ダウンロードグリッド
   ============================================ */
.download-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.download-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.download-card p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.download-card .btn {
  display: inline-block;
  background: #f26c4f;
  color: #fff;
  padding: 10px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
}

/* ============================================
   重要事項説明書 モーダル
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px 32px 36px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0 4px;
}
.modal-close:hover {
  color: #333;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  padding-right: 32px;
}

.modal-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

.modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}
.modal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-item-name {
  font-size: 15px;
  color: #333;
}

.modal-dl-btn {
  display: inline-block;
  background: #f26c4f;
  color: #fff;
  padding: 7px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
.modal-dl-btn:hover {
  background: #e05a3d;
}

@media (max-width: 768px) {
 .page-head {
    height: auto;
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    padding: 60px 15px; 
  }

  .facility-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* ===== 全体 ===== */
  .download-section {
    padding: 40px 15px 100px;
  }

  /* ===== グリッド（2列 → 1列） ===== */
  .download-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ===== カード ===== */
  .download-card {
    padding: 35px 20px;
    border-radius: 20px;
  }

  /* テキスト */
  .download-card p {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* ===== ボタン ===== */

  .download-card .btn {
    display: block;
    width: 180px;
    margin: 0 auto;
    padding: 14px 0;
    font-size: 14px;
    border-radius: 30px;
  }

}
