@charset "UTF-8";
/* ヘッダー：PCは1段（ロゴ左／ナビ／ボタン右）、スマホはメニューを開いた画面を整える */
.header-logo { display: none; }

@media (min-width: 1024px) {
  /* 元CSSは幅1024pxちょうどでナビもハンバーガーも出ないため、1024px以上はPC表示にそろえる */
  nav.gnav.pc { display: block !important; }
  .tablet { display: none !important; }
  /* 最初から固定ヘッダー1本にする（ロゴは常にヘッダー内） */
  #logo_area { display: none !important; }
  #header, #header.scrolled {
    display: flex !important; align-items: center !important; justify-content: flex-start !important;
    height: 68px; padding: 0 28px !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 2px 16px rgba(13,37,53,.08) !important;
    border-bottom: 1px solid #eef2f5 !important;
    backdrop-filter: blur(12px);
  }
  #header .header-logo { display: block; line-height: 0; margin-right: auto; }
  .header-logo img { height: 40px; width: auto; display: block; }

  .gnav_menu_area { margin-right: 0 !important; gap: 2px; }
  .gnav_menu.buttom_menu { padding: 0 !important; }
  .gnav_menu_area li:not(:nth-last-child(-n+2)) a {
    display: block; padding: 8px 14px; font-size: 14px; font-weight: 600;
    color: #0d2535 !important; text-decoration: none; border-radius: 0 !important;
    transition: color .2s;
  }
  .gnav_menu_area li:not(:nth-last-child(-n+2)) a:hover { color: #4a90e2 !important; background: none !important; }
  .gnav_menu_area li:not(:nth-last-child(-n+2)) a.is-active {
    color: #4a90e2 !important; box-shadow: inset 0 -3px 0 #4a90e2;
  }
  /* ボタン：登録を主役（オレンジ）、お問い合わせは控えめ（白に枠線） */
  .gnav_menu_area li:nth-last-child(2) { margin: 0 6px 0 14px !important; }
  .gnav_menu_area li:nth-last-child(2) a, .gnav_menu_area li:last-child a {
    display: block; padding: 9px 16px; font-size: 13px; text-decoration: none; white-space: nowrap;
  }
  .gnav_menu_area li:last-child { margin: 0 !important; background-color: #fff !important; border: 1px solid #b8d4ed !important; }
  .gnav_menu_area li:last-child:hover { background-color: #f3f8fc !important; }
  .gnav_menu_area li:last-child a { color: #1a3a52 !important; font-weight: 700 !important; }
}

/* スマホ・タブレット：メニューを開いた画面（左揃え・右に›・下に登録ボタン） */
@media (max-width: 1023px) {
  /* ヘッダーがスクロールで固定されないため、メニューは画面基準で固定する（スクロール後も見えるように） */
  #mobilemenu { position: fixed; top: 56px; left: 0; right: 0; width: 100%; background-color: #fff; box-shadow: 0 12px 24px rgba(13,37,53,.18); max-height: calc(100vh - 56px); overflow-y: auto; }
  #mobilemenu li { font-size: 15px; font-weight: 600; border-top: 1px solid #eef2f6; }
  #mobilemenu li:last-child { border-bottom: 0; }
  #mobilemenu li a { text-align: left; padding: 15px 52px 14px 20px; color: #0d2535; }
  #mobilemenu li:before { top: 15px; right: 20px; }
  #mobilemenu li.mm-cta, #mobilemenu li.mm-sub { border: 0; padding: 0 20px; }
  #mobilemenu li.mm-cta { padding-top: 14px; }
  #mobilemenu li.mm-sub { padding-bottom: 16px; }
  #mobilemenu li.mm-cta:before, #mobilemenu li.mm-sub:before { display: none; }
  #mobilemenu li.mm-cta a { text-align: center; padding: 13px 0; border-radius: 26px; color: #fff; font-weight: 700; background: linear-gradient(135deg, #f0a020, #f5b848); }
  #mobilemenu li.mm-sub a { margin-top: 8px; text-align: center; padding: 11px 0; border: 1px solid #b8d4ed; border-radius: 26px; font-size: 13px; color: #1a3a52; font-weight: 700; }
}
