@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue-dark: #2356A0;
  --blue-mid: #1A4580;
  --blue-deep: #0F2D5A;
  --blue-light: #4A9FD5;
  --blue-pale: #C8E0F0;
  --blue-bg: #EBF4FA;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-400: #9aa5b8;
  --gray-600: #5a6780;
  --gray-800: #2c3649;
  --text: #1a2840;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --amber-bg: #FFFBEB;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --teal-bg: #F0FDFA;
  --emerald: #059669;
  --purple: #7C3AED;
  --coral: #E85D35;
}
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; color: var(--text); background: #fff; line-height: 1.7; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 45, 90, 0.18);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease;
}
nav.nav-scrolled {
  background: rgba(10, 28, 68, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 2px 32px rgba(0,0,0,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.nav-logo-text { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; }
.nav-links { display: flex; list-style: none; height: 64px; }
.nav-links > li { position: relative; display: flex; align-items: center; }
.nav-links > li > a {
  color: #fff; text-decoration: none; font-size: 0.82rem;
  padding: 0 1rem; height: 64px; display: flex; align-items: center;
  white-space: nowrap; transition: color .2s;
}
.nav-links > li > a:hover { color: var(--blue-light); }
.nav-dd-btn { background: none; border: none; color: rgba(255,255,255,0.65); cursor: pointer; font-size: 0.7rem; padding: 0 2px 0 3px; line-height: 1; transition: transform .2s; vertical-align: middle; }
.nav-links > li.nav-open .nav-dd-btn { transform: rotate(180deg); }

/* DROPDOWN */
.nav-dropdown {
  display: none; position: absolute; top: 64px; left: 0;
  background: #fff; border-top: 3px solid var(--blue-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); min-width: 200px;
  border-radius: 0 0 8px 8px; z-index: 200;
}
.nav-links > li.nav-open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block; padding: 0.75rem 1.25rem; font-size: 0.85rem;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--gray-100);
  transition: background .15s, color .15s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--blue-bg); color: var(--blue-dark); }
/* GROUPED NAV DROPDOWN — horizontal mega-menu */
.nav-links > li:has(.nav-dd-group) { position: static; }
.nav-links > li.nav-open .nav-dropdown:has(.nav-dd-group) { display: flex; position: fixed; top: 64px; left: 0; right: 0; flex-direction: row; border-radius: 0 0 10px 10px; min-width: unset; }
.nav-dd-group { flex: 1; border-bottom: none; border-right: 1px solid var(--gray-100); padding-bottom: 0.75rem; }
.nav-dd-group:last-child { border-right: none; }
.nav-dd-label { display: block; font-size: 0.68rem; font-weight: 900; color: var(--gray-600); padding: 0.85rem 1.25rem 0.35rem; pointer-events: none; cursor: default; letter-spacing: 0.1em; text-transform: uppercase; }
.nav-dd-group:nth-child(2) .nav-dd-label { color: var(--blue-dark); }
.nav-dd-group:nth-child(3) .nav-dd-label { color: var(--teal-dark); }
.nav-dd-group a { border-bottom: none !important; padding-left: 2rem; position: relative; }
.nav-dd-group a::before { content: '–'; position: absolute; left: 1.1rem; color: var(--gray-400); font-weight: 400; }


.nav-entry {
  background: var(--blue-dark); color: #fff; border: none; padding: 0.5rem 1.25rem;
  border-radius: 4px; font-size: 0.875rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.nav-entry:hover { background: var(--blue-light); }

/* SECTIONS */
section, .page-section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: var(--blue-dark); text-transform: uppercase; margin-bottom: 0.6rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; color: var(--blue-deep); margin-bottom: 1rem; line-height: 1.3; font-family: 'Noto Serif JP', serif; }
.section-desc { color: var(--gray-600); font-size: 0.95rem; max-width: 560px; }

/* PAGE HEADER */
.page-header {
  position: relative; overflow: hidden;
  background: var(--blue-deep);
  background-size: cover; background-position: center;
  padding: 10rem 2rem 4rem; margin-top: 0;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,45,90,0.90) 0%, rgba(26,69,128,0.78) 100%);
  z-index: 0;
}
.page-header .section-inner { position: relative; z-index: 1; }
.page-header .section-label { color: var(--blue-light); }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: #fff; line-height: 1.25; margin-bottom: 0.75rem; font-family: 'Noto Serif JP', serif; }
.page-header p { color: rgba(255,255,255,0.70); font-size: 1rem; max-width: 560px; }
.page-breadcrumb { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.page-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.page-breadcrumb a:hover { color: rgba(255,255,255,0.8); }

/* ICON CIRCLE (HAL21 style large icons) */
.icon-circle {
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-bg) 0%, var(--blue-pale) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(35,86,160,0.12);
}

/* BI ICON BOX — dark gradient rounded-square with white Bootstrap Icon */
.bi-icon-box {
  width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(35,86,160,0.28);
}

/* PHOTO SECTION */
.photo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 360px; }
.photo-split-img { position: relative; overflow: hidden; min-height: 300px; }
.photo-split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-split-img .photo-placeholder { width: 100%; height: 100%; min-height: 300px; background: var(--gray-100); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gray-400); font-size: 0.85rem; text-align: center; gap: 0.5rem; }
.photo-split-img .photo-placeholder span { font-size: 2.5rem; }
.photo-split-body { background: var(--blue-deep); padding: 4rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.photo-split-body h2 { font-size: 1.6rem; font-weight: 900; color: #fff; margin-bottom: 1rem; line-height: 1.4; font-family: 'Noto Serif JP', serif; }
/* photo-split image overlay */
.photo-split-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 55%);
}
@media (min-width: 769px) {
  .photo-split-img::after {
    background:
      linear-gradient(to right, transparent 45%, var(--blue-deep) 100%),
      linear-gradient(to top, rgba(0,0,0,0.22) 0%, transparent 50%);
  }
}
.photo-split-body p { color: rgba(255,255,255,0.70); font-size: 0.9rem; line-height: 1.85; }

/* BUTTONS */
.btn-primary {
  background: var(--blue-dark); color: #fff; border: none; padding: 0.9rem 2.2rem;
  border-radius: 6px; font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--blue-mid); }
.btn-outline {
  background: transparent; color: var(--blue-dark); border: 1.5px solid var(--blue-dark);
  padding: 0.9rem 2rem; border-radius: 6px; font-size: 1rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: background .2s;
  display: inline-flex; align-items: center;
}
.btn-outline:hover { background: var(--blue-bg); }

/* RECRUIT CARD GRID (top page) */
.recruit-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.recruit-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 2rem; text-decoration: none; transition: box-shadow .2s, transform .2s;
  display: block;
}
.recruit-card:hover { box-shadow: 0 6px 20px rgba(35,86,160,0.1); transform: translateY(-3px); }
.recruit-card-icon { font-size: 2rem; margin-bottom: 1rem; }
.recruit-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 0.4rem; }
.recruit-card p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.65; }
.recruit-card-arrow { font-size: 0.8rem; color: var(--blue-dark); margin-top: 1rem; font-weight: 700; }

/* FOOTER */
footer { background: var(--blue-deep); color: rgba(255,255,255,0.45); padding: 3rem 2rem; text-align: center; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 0.5rem; }
.footer-logo img { height: 32px; width: auto; filter: brightness(0) invert(1) opacity(0.8); }
.footer-links { display: flex; gap: 1.75rem; justify-content: center; margin: 1.5rem 0; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.82rem; }
.footer-links a:hover { color: rgba(255,255,255,0.75); }
.footer-copy { font-size: 0.75rem; }

/* BACK LINK */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-dark); text-decoration: none; font-size: 0.875rem; font-weight: 500; margin-bottom: 2rem; }
.back-link:hover { text-decoration: underline; }

/* ENTRY CTA BAND */
.entry-cta { background: linear-gradient(135deg, var(--amber-dark) 0%, #FBBF24 100%); padding: 5rem 2rem; text-align: center; position: relative; overflow: hidden; }
.entry-cta::after { content: ''; position: absolute; bottom: -30%; right: -5%; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,0.07); pointer-events: none; }
.entry-cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 900; color: #fff; margin-bottom: 1rem; font-family: 'Noto Serif JP', serif; }
.entry-cta p { color: rgba(255,255,255,0.82); font-size: 1rem; margin-bottom: 2rem; }
.btn-white { background: #fff; color: var(--amber-dark); border: none; padding: 1rem 2.5rem; border-radius: 6px; font-size: 1rem; font-weight: 900; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity .2s; }
.btn-white:hover { opacity: 0.9; }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(10,20,40,0.55); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 2.5rem; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; }
.modal-header h2 { font-size: 1.4rem; font-weight: 900; color: var(--text); }
.modal-header p { font-size: 0.82rem; color: var(--gray-600); margin-top: 4px; }
.modal-close { background: none; border: none; cursor: pointer; padding: 4px; color: var(--gray-400); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.modal-close:hover { color: var(--text); }

/* FORMS */
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--gray-800); margin-bottom: 0.4rem; }
.form-row label .required { color: #e53935; margin-left: 4px; font-size: 0.7rem; }
.form-row input[type="text"], .form-row input[type="email"], .form-row input[type="tel"],
.form-row select, .form-row textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: 0.9rem; font-family: inherit; color: var(--text); transition: border-color .2s; outline: none;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--blue-dark); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.file-upload { border: 2px dashed var(--gray-200); border-radius: 8px; padding: 1.5rem; text-align: center; cursor: pointer; transition: border-color .2s; position: relative; }
.file-upload:hover { border-color: var(--blue-dark); }
.file-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.file-upload-text { font-size: 0.85rem; color: var(--gray-600); }
.file-upload-text strong { color: var(--blue-dark); }
.file-upload-hint { font-size: 0.72rem; color: var(--gray-400); margin-top: 0.25rem; }
.file-name { font-size: 0.8rem; color: var(--blue-dark); margin-top: 0.5rem; display: none; }
.form-submit { width: 100%; background: var(--blue-dark); color: #fff; border: none; padding: 1rem; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .2s; margin-top: 0.5rem; }
.form-submit:hover { background: var(--blue-mid); }
.form-note { font-size: 0.75rem; color: var(--gray-400); text-align: center; margin-top: 0.75rem; }
.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success .success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.form-success h3 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.form-success p { font-size: 0.9rem; color: var(--gray-600); }
@media (max-width: 500px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ── ハンバーガーボタン ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── モバイルドロワー ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 45, 90, 0.98);
  overflow-y: auto;
  z-index: 98;
  padding: 0.5rem 1.5rem 3rem;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.open { display: block; }

.nav-drawer-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-drawer-item > a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 0;
}
.nav-drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.nav-drawer-toggle::after {
  content: '▾';
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.nav-drawer-toggle.open::after { transform: rotate(180deg); }

.nav-drawer-sub {
  display: none;
  padding: 0 0 0.75rem 0.75rem;
}
.nav-drawer-sub.open { display: block; }

.nav-drawer-group-label {
  font-size: 0.65rem;
  font-weight: 900;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 0 0.3rem;
}
.nav-drawer-sub a {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.45rem 0;
}
.nav-drawer-sub a:hover,
.nav-drawer-sub a:active { color: #fff; }

.nav-drawer-entry {
  display: block;
  margin-top: 1.5rem;
  padding: 0.9rem;
  background: var(--blue-dark);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-entry { display: none; }
  .nav-hamburger { display: flex; }
  .page-header { padding: 8rem 1.5rem 2.5rem; }
  section, .page-section { padding: 3.5rem 1.5rem; }
}
