/* 機能限定版トップページ（テスト用）
 * 既存CSSの「余白など」を必要最小限だけ調整します。
 * index_tmp.html でだけ読み込まれるため、既存ページへの影響はありません。
 */

/* ヘッダー直下の隙間をなくす（.contents の margin-top を打ち消す） */
#top .contents {
  margin-top: 0;
}

/* ラフに寄せるため、上部余白を縮める */
#top #exam_domestic,
#top #exam_overseas {
  margin: 0;
}

#top #exam_area_bg {
  background: #efefef;
  padding: 40px 0 34px;
}

/* スクショのグレー背景の“面”を作る（上部に余白があり、帯と枠が中央に並ぶ） */
#top #exam_domestic,
#top #exam_overseas {
  padding: 0;
}

#top #exam_overseas {
  margin-top: 40px;
}

#top .limited_section_ttl {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #151515;
  padding: 12px 14px;
  margin: 0 0 14px;
  border-radius: 3px;
}

#top .limited_2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

#top .limited_panel {
  border: 1px solid #d8d8d8;
  background: #fff;
  padding: 14px 14px 16px;
}

#top .limited_panel_ttl {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  padding: 0 0 10px;
}

#top .limited_panel_body {
  padding: 0;
}

#top .limited_btnrow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#top .limited_btnrow + .limited_btnrow {
  margin-top: 6px;
}

/* ボタンの中に説明文＋ラベルを収める */
#top a.btn_type02.limited_btn {
  font-size: 18px;
  font-weight: 700;
  padding: 14px 12px 16px;
  border-radius: 2px;
  line-height: 1.3;
}

#top .limited_btn_sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 2px;
}

#top a.btn_type02.limited_btn._login { background: #f26100; }
#top a.btn_type02.limited_btn._login:hover { background: #ff7524; }
#top a.btn_type02.limited_btn._corp_login { background: #00215B; }
#top a.btn_type02.limited_btn._corp_login:hover { opacity: 0.9; }

#top a.btn_type02.limited_btn._signup,
#top a.btn_type02.limited_btn._corp_signup {
  background: #fff;
}

#top a.btn_type02.limited_btn._signup {
  color: #f26100;
  border: 2px solid #f26100;
}
#top a.btn_type02.limited_btn._signup:hover {
  color: #fff;
  background: #f26100;
}

#top a.btn_type02.limited_btn._corp_signup {
  color: #00215B;
  border: 2px solid #00215B;
}
#top a.btn_type02.limited_btn._corp_signup:hover {
  color: #fff;
  background: #00215B;
}

#top .limited_2btn {
  padding-bottom: 0;
}

#top a.limited_widebtn {
  display: block;
  padding: 14px 12px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  color: #f26100;
  background: #fff;
  border: 2px solid #f26100;
  border-radius: 2px;
}

#top a.limited_widebtn:hover {
  color: #fff;
  background: #f26100;
}

#top .limited_attention {
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.5;
}

#top .limited_attention_link {
  color: #d11;
  font-size: 20px;
  font-weight: 700;
  text-decoration: underline;
}

#top .limited_attention_link:hover {
  color: #aa0000;
}

@media (min-width: 769px) {
  #top .limited_2col {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* PDFの残り：見出し帯＋リンクグリッド（ラフ再現用） */
#top .limited_linkblock {
  margin-top: 28px;
}

#top .limited_bar_ttl {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #151515;
  padding: 12px 14px;
  margin: 0 0 14px;
  line-height: 1.4;
  border-radius: 3px;
}

#top .limited_linkgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

#top .limited_linkgrid li {
  margin: 0;
}

#top .limited_linkgrid a {
  display: block;
  padding: 14px 12px;
  color: #f26100;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 2px solid #f26100;
  border-radius: 2px;
  line-height: 1.4;
}

#top .limited_linkgrid a:hover {
  color: #fff;
  background: #f26100;
}

@media (min-width: 769px) {
  #top .limited_linkgrid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

#top .limited_contact_block {
  margin-top: 80px;
  margin-bottom: 36px;
}

#top .limited_contact_btnwrap {
  margin: 0;
  text-align: center;
}

#top .limited_contact_btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: min(100%, 1200px);
  min-width: 0;
  padding: 20px 56px 20px 28px;
  color: #fff;
  background: #f26100;
  border: 5px solid #f26100;
  border-radius: 5px;
  background-image: url(/img/common/icon_link02.png);
  background-position: right 24px center;
  background-repeat: no-repeat;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

#top .limited_contact_btn:hover {
  color: #000;
  background: #fff;
}

#top .limited_contact_titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#top .limited_contact_exam1,
#top .limited_contact_exam2,
#top .limited_contact_oiwai {
  display: block;
  width: 100%;
  text-align: center;
}

@media (min-width: 769px) {
  #top .limited_contact_titles {
    flex-direction: row;
    flex-wrap: nowrap;
    width: auto;
    align-items: baseline;
  }

  #top .limited_contact_exam1,
  #top .limited_contact_exam2 {
    width: auto;
    white-space: nowrap;
  }

  #top .limited_contact_exam1::after {
    content: '\3000';
  }

  #top .limited_contact_oiwai {
    width: 100%;
  }
}

@media (max-width: 768px) {
  #top #header #spnavi {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #top #header h1 span.sp {
    font-size: 10px;
    line-height: 1.35;
    margin-top: 6px;
  }

  #top #header h1 span.sp a {
    display: block;
    word-break: break-word;
  }

  #top #exam_area_bg {
    padding: 24px 0 28px;
  }

  #top #exam_overseas {
    margin-top: 28px;
  }

  #top .limited_section_ttl,
  #top .limited_bar_ttl {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  #top .limited_panel {
    padding: 12px;
  }

  #top .limited_panel_ttl {
    font-size: 20px;
    padding-bottom: 8px;
  }

  #top a.btn_type02.limited_btn {
    font-size: 16px;
    padding: 12px 10px 14px;
    line-height: 1.35;
  }

  #top .limited_btn_sub {
    font-size: 13px;
    margin-bottom: 4px;
  }

  #top a.limited_widebtn,
  #top .limited_linkgrid a {
    font-size: 15px;
    padding: 12px 10px;
    line-height: 1.35;
  }

  #top .limited_attention {
    margin-top: 14px;
  }

  #top .limited_attention_link {
    display: inline-block;
    font-size: 16px;
    line-height: 1.6;
  }

  #top .limited_linkblock {
    margin-top: 22px;
  }

  #top .limited_linkgrid {
    gap: 10px;
  }

  #top .limited_contact_block {
    margin-top: 56px;
    margin-bottom: 28px;
  }

  #top .limited_contact_btn {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 15px 36px 15px 18px;
    font-size: 18px;
    line-height: 1.3;
    background-position: right 10px center;
    background-size: 10px auto;
  }
}


