@charset "UTF-8";

/* =========================================================
 * 大学詳細ページ（トップ・サブタブ）専用UIスタイル
 * 1. テーマ別詳細情報カード（アイコン＋全面クリック可能）
 * 2. オープンキャンパスタブ 2026年度日程ボックス
 * 3. ページ下部固定フッターCTAバー（3等分・中央寄せ）
 * ========================================================= */

/* 1. テーマ別詳細情報カード */
.detail_digest_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 26px;
}

#king a.digest_card_link,
#king a.digest_card_link:visited {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #d4e1f2;
  border-radius: 12px;
  text-decoration: none;
  color: #2d2d2d;
  box-shadow: 0 1px 3px rgba(22, 43, 77, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
  box-sizing: border-box;
  min-width: 0;
}

#king a.digest_card_link:hover {
  border-color: #2557a7;
  background-color: #f8fbff;
  box-shadow: 0 5px 14px rgba(37, 87, 167, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

.digest_card_icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: #eef3fb;
  color: #2557a7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#king a.digest_card_link:hover .digest_card_icon {
  background: #2557a7;
  color: #ffffff;
}

.digest_card_icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.digest_card_body {
  flex: 1 1 auto;
  min-width: 0;
}

.digest_card_title {
  display: block;
  font-size: 15.5px;
  font-weight: bold;
  color: #162b4d;
  line-height: 1.4;
  margin: 0 0 4px;
}

#king a.digest_card_link:hover .digest_card_title {
  color: #2557a7;
}

.digest_card_desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.55;
  color: #595959;
  margin: 0;
}

.digest_card_arrow {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #2557a7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.15s ease;
}

#king a.digest_card_link:hover .digest_card_arrow {
  transform: translateX(3px);
}

/* 2. オープンキャンパスタブ 2026年度日程ボックス */
.detail_oc_schedule_box {
  margin: 16px 0 22px;
  padding: 18px 20px;
  background: #f4f8fe;
  border: 1px solid #c5d7f2;
  border-left: 4px solid #2557a7;
  border-radius: 10px;
  box-sizing: border-box;
}

.detail_oc_schedule_head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 12px;
}

.detail_oc_schedule_title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: bold;
  color: #162b4d;
  margin: 0;
}

.detail_oc_schedule_title svg {
  width: 20px;
  height: 20px;
  color: #2557a7;
  flex-shrink: 0;
}

.detail_oc_campus_badge {
  display: inline-block;
  padding: 3px 10px;
  background: #ffffff;
  border: 1px solid #c5d7f2;
  border-radius: 14px;
  font-size: 12px;
  font-weight: bold;
  color: #2557a7;
}

.detail_oc_date_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.detail_oc_date_chips li {
  display: inline-block;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid #2557a7;
  border-radius: 18px;
  font-size: 13px;
  font-weight: bold;
  color: #2557a7;
  line-height: 1.3;
}

#king .detail_oc_schedule_summary {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: #2d2d2d;
}

#king .detail_oc_schedule_note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #595959;
}

/* 3. ページ下部固定フッターCTAバー（#2557a7 3等分・白破線区切り） */
.detail_fixed_cta_bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: #2557a7;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.16);
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.detail_fixed_cta_inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
}

a.detail_fixed_cta_item,
a.detail_fixed_cta_item:visited {
  position: relative;
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px 9px;
  text-decoration: none;
  text-align: center;
  color: #ffffff;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

a.detail_fixed_cta_item:hover {
  background-color: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  text-decoration: none;
}

a.detail_fixed_cta_item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 0;
  border-right: 2px dashed rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.detail_fixed_cta_sub {
  display: block;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.25;
  color: #ffffff;
  white-space: nowrap;
}

.detail_fixed_cta_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin: 1px 0;
}

.detail_fixed_cta_icon svg {
  height: 34px;
  width: auto;
  display: block;
}

.detail_fixed_cta_label {
  display: block;
  font-size: 13.5px;
  font-weight: bold;
  line-height: 1.25;
  color: #ffffff;
  white-space: nowrap;
}

/* お気に入り星の状態切替（combined-all.js の #keep{id} src書換と連動） */
.cta_clip_tracker {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.detail_fixed_cta_item .cta_star_svg.is-off {
  display: block;
}

.detail_fixed_cta_item .cta_star_svg.is-on {
  display: none;
}

.detail_fixed_cta_item .cta_clip_tracker[src*="keep"] ~ .detail_fixed_cta_icon .cta_star_svg.is-on {
  display: block;
}

.detail_fixed_cta_item .cta_clip_tracker[src*="keep"] ~ .detail_fixed_cta_icon .cta_star_svg.is-off {
  display: none;
}

@media (max-width: 768px) {
  #d_head figure {
    float: none;
    width: auto;
    margin: 0 15px 14px;
  }

  #d_head figure img {
    width: 100%;
    height: auto;
  }

  .detail_digest_grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 10px;
  }

  #king a.digest_card_link,
  #king a.digest_card_link:visited {
    padding: 14px;
    gap: 12px;
  }

  .digest_card_icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
  }

  .digest_card_title {
    font-size: 14.5px;
  }

  .detail_oc_schedule_box {
    margin: 14px 10px 18px;
    padding: 14px;
  }

  a.detail_fixed_cta_item,
  a.detail_fixed_cta_item:visited {
    padding: 7px 4px 8px;
    gap: 2px;
  }

  .detail_fixed_cta_sub {
    font-size: 10.5px;
  }

  .detail_fixed_cta_icon {
    height: 30px;
  }

  .detail_fixed_cta_icon svg {
    height: 28px;
  }

  .detail_fixed_cta_label {
    font-size: 11px;
  }
}

/* 4. 写真枠の整理・写真下の控えめな出典リンク（詳細トップ） */
#d_head figure {
  border: none;
  background: #ffffff;
}

#d_head figure img {
  display: block;
  float: none;
}

#d_head figcaption.univ_photo_credit_link {
  clear: both;
  margin: 5px 0 0;
  padding: 0;
  text-align: right;
  font-size: 11px;
  line-height: 1.3;
  background: #ffffff;
  border-top: none;
}

#d_head figcaption.univ_photo_credit_link a,
#d_head figcaption.univ_photo_credit_link a:visited {
  font-size: 11px;
  color: #999999;
  text-decoration: none;
}

#d_head figcaption.univ_photo_credit_link a:hover {
  color: #666666;
  text-decoration: underline;
}

/* 5. サブタブ下部の関連サイト・出典ページ案内リンク */
.detail_sources_nav {
  margin: 20px 0 8px;
}

#king .detail_sources_nav a,
#king .detail_sources_nav a:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #d4e1f2;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  color: #2557a7;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

#king .detail_sources_nav a:hover {
  background: #eef4fc;
  border-color: #2557a7;
  text-decoration: none;
}

.detail_sources_nav_arrow {
  font-size: 16px;
  font-weight: bold;
  flex-shrink: 0;
}

/* 6. 関連サイト・出典ページ（detail_sources.blade.php） */
#king .sources_section_lead {
  margin: 10px 0 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #4b5563;
}

.sources_updated_date {
  color: #6b7280;
  font-size: 12.5px;
}

.sources_official_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0 24px;
}

.sources_official_item {
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #d4e1f2;
  border-left: 4px solid #2557a7;
  border-radius: 8px;
  box-sizing: border-box;
}

.sources_official_head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.sources_official_label {
  display: inline-block;
  padding: 2px 9px;
  background: #eef3fb;
  color: #162b4d;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: bold;
}

.sources_official_desc {
  font-size: 12.5px;
  color: #595959;
}

.sources_official_url a,
.sources_official_url a:visited {
  font-size: 13.5px;
  color: #2557a7;
  text-decoration: underline;
  word-break: break-all;
  line-height: 1.5;
}

.sources_official_url a:hover {
  color: #162b4d;
}

.sources_ref_list {
  margin: 10px 0 22px;
  padding: 14px 16px 14px 32px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  list-style: disc;
}

.sources_ref_list li {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
}

.sources_ref_list li:last-child {
  margin-bottom: 0;
}

.sources_ref_list li a,
.sources_ref_list li a:visited {
  color: #2557a7;
  text-decoration: underline;
  word-break: break-word;
}

.sources_ref_raw_url {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
  word-break: break-all;
}

.sources_photo_credit_box {
  margin: 10px 0 20px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

#king .sources_photo_attribution {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
  word-break: break-word;
}

#king .sources_photo_attribution a,
#king .sources_photo_note a {
  color: #2557a7;
  text-decoration: underline;
}

#king .sources_photo_note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}

#king .sources_empty_note {
  margin: 10px 0 18px;
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 768px) {
  .detail_sources_nav {
    margin: 16px 10px 8px;
  }

  #king .sources_section_lead,
  #king .sources_empty_note {
    padding: 0 10px;
  }

  .sources_official_list,
  .sources_photo_credit_box {
    margin-left: 10px;
    margin-right: 10px;
  }

  .sources_ref_list {
    margin-left: 10px;
    margin-right: 10px;
    padding: 12px 12px 12px 26px;
  }
}

/* 7. アクセスページ 地図埋め込み & トップへ戻るリンク */
.detail_access_map_wrap {
  width: 100%;
  margin: 18px 0 8px;
  border: 1px solid #d4e1f2;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f6f9;
  box-sizing: border-box;
}

.detail_access_map_wrap iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.detail_back_top {
  margin: 22px 0 12px;
}

#king .detail_back_top a.btn1,
#king .detail_back_top a.btn1:visited {
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  color: #2557a7;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .detail_access_map_wrap {
    width: calc(100% - 20px);
    margin: 16px 10px 8px;
  }

  .detail_access_map_wrap iframe {
    height: 260px;
  }

  .detail_back_top {
    text-align: center;
    padding: 0 10px;
  }
}
