/* ==========================================
   別ウィンドウ（住民票案内等）用CSS
   ========================================== */

/* 1. 呼び出し元のボタン装飾 */
.info-link-box {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: center;
}

.info-link-lead {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

.btn-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0056b3;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-external-link:hover {
  background-color: #003d82;
}

.icon-external {
  font-size: 12px;
}

/* 2. 別ページ（jyuminhyo.html）内のレイアウト */
.subpage-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.subpage-container h2 {
  font-size: 22px;
  color: #1a202c;
  border-bottom: 3px solid #0056b3;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.subpage-lead {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 25px;
}

.info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.info-card h3 {
  font-size: 16px;
  color: #0056b3;
  margin-bottom: 12px;
}

.info-card ul {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
}

/* 閉じるボタン */
.close-btn-wrap {
  text-align: center;
  margin-top: 30px;
}

.btn-close {
  background-color: #64748b;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.btn-close:hover {
  background-color: #475569;
}

/* スマホ表示の調整 */
@media screen and (max-width: 768px) {
  .subpage-container {
    margin: 20px auto;
  }
  
  .subpage-container h2 {
    font-size: 18px;
  }
}
/* ==========================================
   住民票見本画像の横並び（レイアウト）用CSS
   ========================================== */
.sample-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #cbd5e1;
}

.sample-section h3 {
  font-size: 18px;
  color: #1a202c;
  margin-bottom: 5px;
}

.sample-lead {
  font-size: 13px;
  color: #d97706; /* 注意喚起のオレンジ */
  font-weight: bold;
  margin-bottom: 20px;
}

/* 2枚並べるコンテナ（Flexbox） */
.sample-image-container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

/* 各カードの設定 */
.sample-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

/* 国籍バッジ */
.sample-card .badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #0056b3;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* 画像を枠内にきれいに収める設定 */
.sample-card .img-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f8fafc;
}

.sample-card img {
  width: 100%;
  height: auto;
  display: block;
}

.sample-desc {
  font-size: 12px;
  color: #4a5568;
  margin-top: 10px;
  line-height: 1.5;
}

/* ------------------------------------------
   スマホ表示（768px以下）は縦並びに切り替え
   ------------------------------------------ */
@media screen and (max-width: 768px) {
  .sample-image-container {
    flex-direction: column;
    gap: 25px;
  }
}