/* ============================================================
   Header Unified Styles
   - 目的：ヘッダー（ロゴ／受付時間／電話／ナビ）を全ページで固定化
   - 参照：/support/（サポート体制）ページの見た目
   ============================================================ */

/* ===== HEADER ===== */
.site-header{
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15,45,92,0.08);
}
.header-top{
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  font-size: 14px !important;
  padding: 7px 0;
  text-align: right;
}
.header-top .inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.header-top a{ color: var(--gold-light); margin-left: 20px; }

/* スマホ上段：左余白にLINEアイコン（ロゴ行には置かない） */
.header-line-icon{
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #06C755;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  text-decoration: none;
}
.header-line-icon img{
  width: 14px;
  height: 14px;
  display: block;
}


.header-main{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px !important;
}

/* ===== LOGO WITH MARK IMAGE ===== */
.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}
.logo-mark {
  height: 70px;
  width: auto;
  flex-shrink: 0;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.logo-main{
  font-size: 31px !important;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.02em;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.2;
  white-space: nowrap;
}
.logo-sub{
  font-size: 12px !important;
  color: var(--text-light);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header-tel{ display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header-tel .tel-num{
  font-size: 24px !important;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.header-tel .tel-num::before{ content: "📞 "; font-size: 16px; }
.header-tel .tel-note{ font-size: 12px !important; color: var(--text-light); white-space: nowrap; }

/* ===== NAV DESKTOP ===== */
nav{ background: var(--navy); }
nav ul{ max-width: 1100px; margin: 0 auto; padding: 0; display: flex; list-style: none; flex-wrap: nowrap; justify-content: center; }
nav ul li{ flex: 1 1 auto; text-align: center; }
nav ul li a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,0.9);
  font-size: 14.5px !important;
  font-weight: 600;
  padding: 15px 8px !important;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav ul li a:hover,
nav ul li a.active{ background: var(--gold); color: var(--white); }
nav ul li.highlight a{ background: var(--gold); color: var(--white); font-weight: 700; }
nav ul li.highlight a:hover{ background: var(--gold-light); }
.badge-new{
  background: var(--red-badge, #d93025);
  color: #fff;
  font-size: 10px !important;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  flex-shrink: 0;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 201;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.hamburger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2){ opacity: 0; }
.hamburger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===== OVERLAY ===== */
.nav-overlay{
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 198;
  -webkit-tap-highlight-color: transparent;
}
.nav-overlay.is-open{ display: block; }

/* ===== MOBILE BASIC ===== */
@media (max-width: 600px){
  .header-tel{ display: none; }
  .header-main{ height: 60px; }
  .logo-main{ font-size: 20px !important; }
  .logo-mark{ height: 46px; }
  .logo{ gap: 9px; }
}

/* ===== MOBILE DRAWER（〜1024px） ===== */
@media (max-width: 1024px){
  .hamburger{ display: flex !important; }
  .header-tel{ display: none !important; }
  .header-main{ height: 56px !important; }
  .logo-mark{ height: 54px; }

  /* 上段左の余白を活かしてLINEアイコンを常時表示 */
  .header-top .inner{ padding-left: 46px; }
  .header-line-icon{
    display: inline-flex;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
  }

  nav{
    position: fixed !important;
    top: 0 !important;
    right: -290px !important;
    left: auto !important;
    bottom: 0 !important;
    width: 270px !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #091e3f !important;
    z-index: 200 !important;
    transition: right 0.3s ease !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 !important;
    box-shadow: -4px 0 24px rgba(0,0,0,0.4) !important;
    flex-direction: column !important;
  }
  nav.is-open{ right: 0 !important; }

  nav::before{
    content: 'メニュー';
    display: block !important;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav ul{
    display: flex !important;
    flex-direction: column !important;
    padding: 8px 0 40px !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    list-style: none !important;
  }
  nav ul li{
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    float: none !important;
  }
  nav ul li a{
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 22px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    white-space: normal !important;
    color: rgba(255,255,255,0.88) !important;
    background: none !important;
    letter-spacing: 0.03em !important;
  }
  nav ul li a:hover,
  nav ul li a.active{
    background: #c8972a !important;
    color: #fff !important;
  }
  nav ul li.highlight a{
    background: rgba(200,151,42,0.18) !important;
    color: rgba(255,255,255,0.95) !important;
  }
  nav ul li.highlight a:hover,
  nav ul li.highlight a.active{
    background: #c8972a !important;
    color: #fff !important;
  }
}

@media (min-width: 769px){
  .logo-main{ font-size: 31px !important; }
}

/* ===== FOOTER LOGO MARK ===== */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-mark {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
  filter: brightness(1.1);
}

/* ===== FOOTER (unified) =====
   目的：トップ/特定技能/育成就労でも他ページと同じフッターデザインを適用
   ※これらのページは /style.css を読み込まないため、必要最低限をここに同梱
*/
footer{
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 20px 24px;
}
.footer-inner{ max-width: 1100px; margin: 0 auto; }
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo{
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 12px;
}
.footer-desc{ font-size: 13.5px; line-height: 1.8; margin-bottom: 16px; }
.footer-contact{ font-size: 14px; line-height: 1.9; }
.footer-contact strong{ color: var(--white); }
.footer-nav-title{
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-nav ul{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.footer-nav ul li a{
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.footer-nav ul li a:hover{ opacity: 0.85; }
.footer-bottom{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.footer-bottom a{
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-left: 14px;
}
.footer-bottom a:hover{ opacity: 0.85; }

@media (max-width: 768px){
  footer{ padding: 34px 16px 18px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 18px; margin-bottom: 22px; }
  .footer-nav-title{ margin-bottom: 10px; }
  /* スマホ：リンクの右側を押しても遷移（押下範囲を横幅100%に） */
  .footer-nav ul li a{
    width: 100%;
    justify-content: space-between;
    padding: 12px 10px;
    border-radius: 10px;
  }
  .footer-nav ul li a::after{
    content: "›";
    opacity: 0.55;
  }
  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-bottom a{ margin-left: 0; margin-right: 12px; }
}
