/* ===================================================================
   SkyCrest 共通スタイル
   全ページで使用する変数、ベース、ヘッダー、フッター、共通UI
   =================================================================== */

:root {
  --blue: #0e5fa8;
  --sky: #2e9cca;
  --lightsky: #e8f4fb;
  --white: #ffffff;
  --bg: #f7fafd;
  --bg2: #eef4fa;
  --text: #2d3f55;
  --muted: #7a92ae;
  --border: rgba(14, 95, 168, 0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5%;
}
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff; padding: 6px 14px; border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 1.2rem; letter-spacing: 0.05em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .main {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 1.1rem; color: var(--blue); letter-spacing: 0.05em;
}
.logo-text .sub {
  font-size: 0.65rem; color: var(--muted);
  letter-spacing: 0.1em; margin-top: 3px;
}

#header nav { display: flex; gap: 0; }
#header nav a {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 20px; text-decoration: none;
  border-radius: 8px; transition: background 0.2s;
  gap: 2px;
}
#header nav a:hover { background: var(--lightsky); }
#header nav a.active { background: var(--blue); }
#header nav a .ja { font-size: 0.85rem; font-weight: 500; color: var(--text); }
#header nav a.active .ja { color: #fff; }
#header nav a .en {
  font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.1em; font-family: 'Outfit', sans-serif;
}
#header nav a.active .en { color: rgba(255, 255, 255, 0.7); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--blue); border-radius: 2px; transition: 0.3s;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.3rem; font-weight: 700; color: var(--text);
  text-decoration: none; padding: 14px 48px; border-radius: 12px;
  transition: background 0.2s, color 0.2s; width: 260px; text-align: center;
}
.mobile-nav a:hover,
.mobile-nav a.active { background: var(--lightsky); color: var(--blue); }
.mobile-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; font-size: 1.6rem;
  color: var(--text); cursor: pointer;
}

/* ===== COMMON BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--sky));
  color: #fff; padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(14, 95, 168, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14, 95, 168, 0.32);
}
.btn-outline {
  border: 1.5px solid rgba(14, 95, 168, 0.3); color: var(--blue);
  padding: 13px 28px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, border-color 0.2s;
  background: transparent; cursor: pointer; font-family: inherit;
}
.btn-outline:hover {
  background: var(--lightsky); border-color: var(--blue);
}
.btn-white {
  background: #fff; color: var(--blue); padding: 14px 36px;
  border-radius: 50px; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; text-align: center; white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.btn-ghost-white {
  border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff;
  padding: 13px 32px; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; text-decoration: none; text-align: center;
  transition: background 0.2s;
}
.btn-ghost-white:hover { background: rgba(255, 255, 255, 0.1); }

/* ===== COMMON SECTION HEADER ===== */
.section-header { margin-bottom: 48px; }
.section-tag {
  font-family: 'Outfit', sans-serif; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.22em; color: var(--sky);
  text-transform: uppercase; margin-bottom: 10px;
}
.section-h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; color: #0a2540; line-height: 1.25;
}
.section-lead {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.85; margin-top: 10px;
}

/* ===== INNER WRAP ===== */
.inner-wrap { max-width: 1200px; margin: 0 auto; width: 100%; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== FOOTER ===== */
footer {
  background: #f4f8fc; border-top: 1px solid var(--border);
  padding: 56px 5% 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin: 0 auto 48px; max-width: 1200px;
}
.footer-brand .logo-wrap { margin-bottom: 14px; }
.footer-brand p { font-size: 0.82rem; color: var(--muted); line-height: 1.85; margin-top: 14px; }
.footer-col h5 {
  font-family: 'Outfit', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.83rem; color: var(--text);
  text-decoration: none; margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--blue); }
.footer-col a.staff-portal {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid var(--border);
}

.footer-affiliations {
  padding: 12px 5% 10px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted);
  text-align: center; line-height: 1.7;
}
.footer-affiliations .affil-label { font-weight: 600; color: var(--text); margin-right: 6px; }
.footer-affiliations .affil-link { color: var(--blue); text-decoration: none; margin: 0 4px; }
.footer-affiliations .affil-link:hover { text-decoration: underline; }
.footer-affiliations .affil-sep { color: var(--muted); margin: 0 2px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--muted);
}
.footer-links-inline { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links-inline a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links-inline a:hover { color: var(--blue); }

/* ===== BACK TO TOP BUTTON ===== */
#backToTop {
  position: fixed; bottom: 28px; right: 28px; z-index: 300;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #0e5fa8, #2e9cca);
  border: none; color: #fff; font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(14, 95, 168, 0.3);
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  display: flex; align-items: center; justify-content: center;
}
#backToTop.visible { opacity: 1; transform: scale(1); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  #header nav { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .footer-affiliations .affil-sep { display: none; }
  .footer-affiliations .affil-link { display: inline-block; margin: 2px 0; }
  .footer-affiliations .affil-label { display: block; margin-bottom: 4px; }
}
.site-footer {
  background-color: #2e9cca;
  color: #fff;
  padding: 15px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
}

