/* ========================================
   UNICO ASSOCIATES - Global Styles
   ======================================== */

:root {
  --primary: #0089A1;
  --primary-dark: #006B7F;
  --primary-light: #00B4D8;
  --accent: #F0A500;
  --bg-white: #ffffff;
  --bg-light: #F0F9FA;
  --text: #1A1A2E;
  --dark: #0A2A33;
  --gray-100: #f7f7f7;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-glass: 0 8px 32px rgba(0, 137, 161, 0.10);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,137,161,0.08);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.logo {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}
.logo span {
  color: var(--primary-dark);
  font-weight: 400;
  font-size: 0.75em;
  margin-left: 0.15em;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-white);
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  }
  .nav-links.open { right: 0; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
  }
  .nav-overlay.show { display: block; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 40%, #67e8f9 70%, var(--bg-light) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(240,165,0,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,180,216,0.2) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 3rem 1.5rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Wave Divider ---- */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,137,161,0.3);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #d99400;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,165,0,0.3);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}
.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ---- Sections ---- */
.section {
  padding: 5rem 1.5rem;
}
.section-light { background: var(--bg-light); }
.section-white { background: var(--bg-white); }
.section-dark {
  background: var(--dark);
  color: #fff;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.section-dark .section-title { color: #fff; }
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 3rem;
  font-size: 1rem;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }
.title-accent {
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ---- Glass Cards ---- */
.glass-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
  transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---- Grid Helpers ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

/* ---- Card Icon ---- */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #fff;
}
.card-icon svg { width: 28px; height: 28px; }

.card-icon-accent {
  background: linear-gradient(135deg, var(--accent), #d99400);
}

/* ---- Info Table ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th,
.info-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.info-table th {
  width: 160px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--bg-light);
  white-space: nowrap;
  vertical-align: top;
}
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td {
    display: block;
    width: 100%;
  }
  .info-table th {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }
  .info-table td {
    padding-top: 0.25rem;
  }
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.timeline-item .time-label {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

/* ---- Steps ---- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  counter-reset: step;
}
.step-card {
  flex: 1;
  min-width: 200px;
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  counter-increment: step;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-card::before {
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.step-card h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

/* ---- CTA Bar ---- */
.cta-bar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-xl);
  margin: 0 auto;
  max-width: 1000px;
}
.cta-bar h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.cta-bar p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}
.cta-phone {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col p, .footer-col li {
  font-size: 0.88rem;
  line-height: 1.9;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul a {
  color: rgba(255,255,255,0.7);
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---- Page Hero (sub pages) ---- */
.page-hero {
  position: relative;
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #67e8f9 100%);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(240,165,0,0.12) 0%, transparent 50%);
}
.page-hero h1 {
  position: relative;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}
.page-hero p {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
}

/* ---- Scroll Animation ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Misc ---- */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* News list */
.news-list { list-style: none; }
.news-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: flex-start;
}
.news-date {
  font-size: 0.85rem;
  color: var(--gray-500);
  white-space: nowrap;
  min-width: 100px;
}

/* Map */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Schedule Timeline for employment */
.schedule-timeline {
  position: relative;
  padding-left: 3.5rem;
}
.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary), var(--primary-dark));
  border-radius: 2px;
}
.schedule-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.schedule-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-light);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.schedule-item .sch-time {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}
.schedule-item .sch-title {
  font-weight: 700;
  margin: 0.15rem 0;
}
.schedule-item .sch-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Contact cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  text-align: center;
  padding: 2rem;
}
.contact-card .contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
}
.contact-card .contact-icon svg { width: 28px; height: 28px; }

/* Feature badges for employment */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg-light);
  border: 1px solid rgba(0,137,161,0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Philosophy card */
.philosophy-card {
  background: linear-gradient(135deg, rgba(0,137,161,0.05), rgba(0,180,216,0.08));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.5rem;
  font-size: 1.1rem;
  line-height: 2;
  position: relative;
}
.philosophy-card::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 0.75rem;
  font-size: 4rem;
  color: var(--primary-light);
  opacity: 0.3;
  font-family: serif;
}

/* ========================================
   Mobile Responsive
   ======================================== */

/* -- Tablet & below (768px) -- */
@media (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }
  .section-subtitle {
    margin-bottom: 2rem;
  }
  .hero {
    min-height: 55vh;
  }
  .hero-content {
    padding: 2rem 1rem;
  }
  .page-hero {
    padding: 5rem 1rem 2.5rem;
  }
  .cta-bar {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .cta-bar h3 {
    font-size: 1.25rem;
  }
  .cta-phone {
    font-size: 1.4rem;
  }
  .glass-card {
    padding: 1.5rem;
  }
  .site-footer {
    padding: 3rem 1rem 1.5rem;
  }
  .footer-inner {
    gap: 2rem;
  }
  .steps {
    flex-direction: column;
  }
  .step-card {
    min-width: 0;
  }
  .philosophy-card {
    padding: 1.5rem 1.5rem;
    font-size: 1rem;
  }
  .schedule-timeline {
    padding-left: 2.5rem;
  }
  .schedule-item {
    padding: 0.85rem 1rem;
  }
}

/* -- Small phones (480px) -- */
@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0.75rem;
  }
  .header-inner {
    padding: 0 1rem;
    height: 3.75rem;
  }
  html {
    scroll-padding-top: 4rem;
  }
  .hero {
    min-height: 50vh;
  }
  .hero h1 {
    margin-bottom: 0.75rem;
  }
  .hero p {
    margin-bottom: 1.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
  .page-hero {
    padding: 4.5rem 0.75rem 2rem;
  }
  .glass-card {
    padding: 1.25rem;
    border-radius: var(--radius);
  }
  .grid-2, .grid-3, .grid-4 {
    gap: 1rem;
  }
  .contact-cards {
    gap: 1rem;
  }
  .contact-card {
    padding: 1.5rem 1rem;
  }
  .contact-card p[style*="font-size:1.4rem"] {
    font-size: 1.2rem !important;
  }
  .cta-bar {
    padding: 1.75rem 1rem;
    border-radius: var(--radius);
  }
  .cta-bar h3 {
    font-size: 1.1rem;
  }
  .cta-phone {
    font-size: 1.2rem;
  }
  .site-footer {
    padding: 2rem 0.75rem 1rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom {
    margin-top: 1.5rem;
    font-size: 0.75rem;
  }
  .news-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .news-date {
    min-width: auto;
  }
  .map-wrapper iframe {
    height: 280px !important;
  }
  .schedule-timeline {
    padding-left: 2rem;
  }
  .schedule-timeline::before {
    left: 0.75rem;
  }
  .schedule-item::before {
    left: -1.85rem;
    width: 10px;
    height: 10px;
  }
  .feature-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
  .info-table th,
  .info-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}
