@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;750;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  --primary: #151F6D;
  --accent: #ED8B00;
  --bg: #f1f5f9;
  --dark: #1e293b;
  --light: #ffffff;
  --muted: #64748b;
  --font: 'Noto Sans JP', 'Inter', sans-serif;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font);
  font-size: 17px;
  background-color: var(--bg);
  background-image: url('../images/background.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

.hidden { display: none !important; }
.flex { display: flex !important; }

/* 1. Gateway Screen */
.gateway-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #020617;
  user-select: none;
}

@media (min-width: 768px) {
  .gateway-screen { flex-direction: row; }
}

.gate-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3.5rem 1.5rem 2.5rem;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .gate-panel { height: 100%; padding: 5rem 3rem 3.5rem; }
}

.gate-left {
  background-color: var(--primary);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .gate-left { border-bottom: none; border-right: 1px solid rgba(255, 255, 255, 0.1); }
}

.gate-right {
  background-color: var(--accent);
  color: #020617;
}

/* Background Image Effects */
.gate-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gate-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  mix-blend-mode: luminosity;
  transition: all 1s ease-out;
}

.gate-left:hover .gate-bg-image { transform: scale(1.05); opacity: 0.35; }
.gate-right:hover .gate-bg-image { transform: scale(1.05); opacity: 0.3; }

.gate-overlay-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary) 0%, rgba(21, 31, 109, 0.98) 50%, rgba(21, 31, 109, 0.5) 100%);
}

@media (min-width: 768px) {
  .gate-overlay-left {
    background: linear-gradient(to right, var(--primary) 0%, rgba(21, 31, 109, 0.98) 60%, rgba(21, 31, 109, 0.3) 100%);
  }
}

.gate-overlay-right {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--accent) 0%, rgba(237, 139, 0, 0.98) 50%, rgba(237, 139, 0, 0.5) 100%);
}

@media (min-width: 768px) {
  .gate-overlay-right {
    background: linear-gradient(to left, var(--accent) 0%, rgba(237, 139, 0, 0.98) 60%, rgba(237, 139, 0, 0.3) 100%);
  }
}

/* Brand Logos */
.gate-brand {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gate-brand { top: 2.5rem; left: 3rem; }
}

.brand-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: serif;
  font-size: 1.125rem;
  font-weight: 900;
}

.gate-left .brand-badge {
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gate-right .brand-badge {
  background: linear-gradient(135deg, #090d16, #020617);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.brand-text-container { display: flex; flex-direction: column; }

.gate-logo-image {
  display: block;
  width: min(220px, 42vw);
  height: auto;
  background-color: #fff;
  border-radius: 1.5rem;
  padding: 1rem;
}

.brand-title {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1;
}

.gate-left .brand-title { color: #ffffff; }
.gate-right .brand-title { color: #020617; }

.brand-subtitle {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-top: 2px;
}

.gate-left .brand-subtitle { color: var(--accent); }
.gate-right .brand-subtitle { color: var(--primary); }

/* Decorative Circles & Imagery (Portal UI) */
.portal-circles {
  position: absolute;
  right: 1.5rem;
  top: 38%;
  transform: translateY(-50%);
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .portal-circles { display: flex; }
}

@media (min-width: 768px) {
  .portal-circles { right: 2%; }
}

@media (min-width: 1024px) {
  .portal-circles { right: 4%; }
}

@media (min-width: 1280px) {
  .portal-circles { right: 8%; }
}

.dashed-circle {
  position: absolute;
  border-radius: 50%;
  border-style: dashed;
  transition: var(--transition);
}

.outer-circle {
  width: 320px;
  height: 320px;
  border-width: 1px;
}

@media (min-width: 768px) {
  .outer-circle {
    width: 480px;
    height: 480px;
  }
}

@media (min-width: 1024px) {
  .outer-circle {
    width: 620px;
    height: 620px;
  }
}

@media (min-width: 1280px) {
  .outer-circle {
    width: 720px;
    height: 720px;
  }
}

.gate-left .outer-circle { border-color: rgba(255, 255, 255, 0.15); }
.gate-right .outer-circle { border-color: rgba(2, 6, 23, 0.15); }

.gate-left:hover .outer-circle { transform: scale(1.15) rotate(90deg); }
.gate-right:hover .outer-circle { transform: scale(1.15) rotate(-90deg); }

.inner-circle {
  width: 250px;
  height: 250px;
  border-width: 1px;
}

@media (min-width: 768px) {
  .inner-circle {
    width: 400px;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .inner-circle {
    width: 530px;
    height: 530px;
  }
}

@media (min-width: 1280px) {
  .inner-circle {
    width: 620px;
    height: 620px;
  }
}

.gate-left .inner-circle { border-color: rgba(255, 255, 255, 0.25); }
.gate-right .inner-circle { border-color: rgba(2, 6, 23, 0.25); }

.gate-left:hover .inner-circle { transform: scale(1.12) rotate(-90deg); }
.gate-right:hover .inner-circle { transform: scale(1.12) rotate(90deg); }

/* Center Portal photo container - fixed size & ratio */
.clear-image-container {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .clear-image-container {
    width: 310px;
    height: 310px;
  }
}

@media (min-width: 1024px) {
  .clear-image-container {
    width: 430px;
    height: 430px;
  }
}

@media (min-width: 1280px) {
  .clear-image-container {
    width: 500px;
    height: 500px;
  }
}

.gate-left .clear-image-container {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: #0f172a;
}

.gate-right .clear-image-container {
  border: 2px solid rgba(2, 6, 23, 0.3);
  background-color: #451a03;
}

.clear-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gate-left:hover .clear-image-container {
  transform: scale(1.25);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(237, 139, 0, 0.5);
}

.gate-right:hover .clear-image-container {
  transform: scale(1.25);
  border-color: var(--primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(21, 31, 109, 0.5);
}

/* Gate Front Content Box */
.gate-content {
  margin-top: auto;
  margin-bottom: 1rem;
  max-width: 30rem;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gate-tagline {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  display: block;
  text-transform: uppercase;
}

.gate-left .gate-tagline { color: var(--accent); }
.gate-right .gate-tagline { color: var(--primary); }

.gate-h2 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
}

@media (min-width: 640px) { .gate-h2 { font-size: 2.2rem; } }
@media (min-width: 1024px) { .gate-h2 { font-size: 2.5rem; } }

.gate-left .gate-h2 {
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.gate-right .gate-h2 {
  color: #020617;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.95), 0 1px 4px rgba(255, 255, 255, 0.9);
}

.gate-description {
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
  padding: 1rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .gate-description { font-size: 1rem; margin-left: -1rem; margin-right: -1rem; }
}

.gate-left .gate-description {
  color: #f1f5f9;
  background-color: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.gate-right .gate-description {
  color: #0f172a;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(2, 6, 23, 0.08);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.gate-left:hover .gate-description {
  background-color: rgba(21, 31, 109, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gate-right:hover .gate-description {
  background-color: rgba(255, 251, 235, 0.95);
  border: 1px solid rgba(69, 26, 3, 0.15);
}

.gate-btn-wrapper { margin-top: 0.5rem; }

.gate-btn-wrapper .btn-orange-to-blue,
.gate-btn-wrapper .btn-dark {
  min-width: 13rem;
  justify-content: center;
}

/* Buttons */
.btn-orange-to-blue {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 1.05rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.btn-orange-to-blue:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: #020617;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 1.05rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background-color: var(--primary);
  transform: translateY(-2px);
}

/* Gate Footer Bar */
.gate-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .gate-footer-bar { flex-direction: row; justify-content: space-between; align-items: center; }
}

.gate-right .gate-footer-bar { border-top-color: rgba(2, 6, 23, 0.15); }

.gate-footer-left { display: flex; flex-direction: column; gap: 0.375rem; }

.badge-pill-light {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  width: fit-content;
}

.gate-right .badge-pill-light { background-color: rgba(2, 6, 23, 0.08); }

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.gate-left .badge-dot { background-color: var(--accent); }
.gate-right .badge-dot { background-color: #020617; }

.badge-pill-text {
  font-size: 9px;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.05em;
}
.gate-left .badge-pill-text { color: #cbd5e1; }
.gate-right .badge-pill-text { color: #020617; }

.footer-section-title { font-size: 0.75rem; font-weight: 900; }
@media (min-width: 640px) { .footer-section-title { font-size: 0.85rem; } }
.gate-left .footer-section-title { color: var(--accent); }
.gate-right .footer-section-title { color: #020617; }

.gate-footer-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
}
@media (min-width: 640px) { .gate-footer-right { align-items: flex-end; text-align: right; } }
.gate-left .gate-footer-right { color: #cbd5e1; }
.gate-right .gate-footer-right { color: #451a03; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* 2. Main Portal App Screen Styles */
.main-portal-container {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) { .main-portal-container { padding: 1.5rem; } }

/* Sticky Header */
.app-header {
  background-color: var(--primary);
  color: #fff;
  padding: 0.7rem 1.25rem 0.6rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(21, 31, 109, 0.08);
  position: sticky;
  top: 0.5rem;
  z-index: 40;
}

.header-left { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }

.header-logo-image {
  display: block;
  width: min(180px, 42vw);
  height: auto;
  background-color: #fff;
  border-radius: 1rem;
  padding: 0.75rem;
}

.header-left .header-title-container {
  display: none;
}

.header-logo-badge {
  font-size: 1.25rem;
  font-weight: 900;
  background-color: var(--accent);
  color: #ffffff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title-container { display: flex; flex-direction: column; }
.header-h1 { font-size: 0.9rem; font-weight: 900; line-height: 1.1; color: #ffffff; }
.header-desc { font-size: 9px; color: #cbd5e1; margin-top: 2px; }

/* Navigation */
.nav-container { display: none; align-items: center; gap: clamp(0.8rem, 1.6vw, 1.65rem); }
@media (min-width: 1024px) { .nav-container { display: flex; } }

.tab-btn {
  background: none;
  border: none;
  color: #fff;
  width: 6.7rem;
  min-height: 6.45rem;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.tab-btn:hover { color: var(--accent); transform: translateY(-2px); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.tab-btn-image {
  display: block;
  width: 6.1rem;
  height: 5.15rem;
  object-fit: contain;
}

.tab-btn-label {
  display: block;
  white-space: nowrap;
}

.nav-divider { height: 3.75rem; width: 1px; background-color: rgba(21, 31, 109, 0.14); }

.back-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.back-btn {
  background-color: rgba(255, 255, 255, 0.55);
  color: var(--primary);
  border: 1px solid rgba(21, 31, 109, 0.12);
  padding: 0.45rem 1.4rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  text-decoration: none;
  justify-content: center;
  white-space: nowrap;
}
.back-btn:hover { background-color: var(--accent); color: #ffffff; border-color: var(--accent); }

.back-btn-recruit {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.back-btn-recruit:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--accent);
}

/* Mobile Triggers */
.mobile-nav-triggers { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 1024px) { .mobile-nav-triggers { display: none; } }

.mobile-back-btn {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--primary);
  border: 1px solid rgba(21, 31, 109, 0.14);
  font-size: 10px;
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.mobile-recruit-btn {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.mobile-recruit-btn:hover {
  background-color: #ffffff;
  color: var(--accent);
}

.hamburger-btn {
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(21, 31, 109, 0.14);
  padding: 0.4rem;
  border-radius: 0.5rem;
  color: var(--primary);
  cursor: pointer;
  display: flex;
}

/* Mobile Drawer Menu */
.mobile-drawer {
  background-color: var(--primary);
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
@media (min-width: 1024px) { .mobile-drawer { display: none !important; } }

@media (max-width: 1023px) {
  .mobile-drawer {
    position: fixed;
    top: 5.6rem;
    left: 1rem;
    right: 1rem;
    z-index: 39;
    max-height: calc(100dvh - 6.6rem);
    overflow-y: auto;
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.22);
  }
}

.mobile-tab-btn {
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.mobile-tab-btn.active { background-color: var(--accent); color: #ffffff; }

.mobile-drawer-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.mobile-drawer-shortcut {
  background-color: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.mobile-drawer-recruit {
  background-color: #e0f2fe;
  color: #075985;
  border-color: #bae6fd;
}

@media (max-width: 760px) {
  .mobile-nav-triggers .mobile-back-btn {
    display: none;
  }
}

/* Grid Wrapper & Bento Cards */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .bento-grid { grid-template-columns: repeat(12, 1fr); } }

.bento-card {
  background-color: #ffffff;
  padding: 1.75rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: var(--transition);
  position: relative;
}

.col-12 { grid-column: span 12; }
@media (min-width: 768px) {
  .col-8 { grid-column: span 8; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
}

.hero-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 350px; position: relative; overflow: hidden; }
.hero-bg-accent { position: absolute; right: -3rem; bottom: -3rem; width: 10rem; height: 10rem; background: rgba(21, 31, 109, 0.03); border-radius: 50%; pointer-events: none; }

.hero-lower-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-main-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-character {
  position: absolute;
  z-index: 2;
  display: block;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.home-character-hero {
  right: -1rem;
  bottom: -0.6rem;
  width: clamp(96px, 12vw, 160px);
}

.home-character-news {
  right: 1.5rem;
  bottom: 0.35rem;
  width: min(135px, 24vw);
}

.news-footer {
  padding-right: min(150px, 26vw);
}

.home-character-dept {
  right: 1rem;
  bottom: 2.2rem;
  width: 86px;
}

.department-card .dept-content {
  padding-bottom: 3.4rem;
}

.department-card .dept-content .text-center {
  margin-right: 5.8rem;
}

.home-character-hygiene {
  right: 1rem;
  bottom: 3.8rem;
  width: 76px;
}

.home-character-recruit {
  right: 0.9rem;
  bottom: 2.1rem;
  width: 82px;
}

@media (min-width: 761px) and (max-width: 1024px) {
  .hero-card {
    padding-bottom: 2rem;
  }

  .hero-copy-area {
    padding-right: 0;
  }

  .hero-card .hero-btn-container {
    position: relative;
    align-items: stretch;
    padding-right: clamp(7rem, 22vw, 12rem);
    width: 100%;
  }

  .hero-card .hero-btn-container a {
    flex: 1 1 100%;
    min-width: clamp(16rem, 33vw, 18.5rem) !important;
    width: clamp(16rem, 33vw, 18.5rem) !important;
    max-width: none;
  }

  .home-character-hero {
    right: -0.5rem;
    bottom: -0.4rem;
    width: clamp(96px, 12vw, 140px);
  }
}

.recruit-box-right {
  position: relative;
  padding-bottom: 4.8rem;
}

.recruit-box-right > a {
  width: auto !important;
}

@media (max-width: 639px) {
  .hero-card .hero-btn-container,
  .hero-copy-area,
  .news-footer {
    padding-right: 0;
  }

  .department-card .dept-content {
    padding-bottom: 0;
  }

  .department-card .dept-content .text-center {
    margin-right: 0;
  }

  .recruit-box-right {
    padding-bottom: 1.25rem;
  }

  .recruit-box-right > a {
    margin-right: 0;
    width: 100% !important;
  }

  .home-character-news,
  .home-character-dept,
  .home-character-hygiene {
    opacity: 0.28;
  }

  .home-character-recruit {
    opacity: 1;
  }
}

/* Slider for hero-card */
.hero-slider-container {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  background-color: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.8);
}
@media (min-width: 640px) {
  .hero-slider-container { height: 430px; }
}
@media (min-width: 1024px) {
  .hero-slider-container { height: 540px; }
}
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}
.slide-img.active {
  opacity: 1;
  z-index: 10;
}
.slider-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
}
.slider-dot.active {
  background-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.card-intro-badge { display: inline-flex; align-items: center; gap: 0.25rem; background-color: #fffbeb; color: var(--accent); font-size: 0.84rem; font-weight: 700; padding: 0.28rem 0.7rem; border-radius: 9999px; width: fit-content; }
.card-heading-large { font-size: 1.65rem; font-weight: 500; color: var(--primary); line-height: 1.3; margin: 1rem 0 0.7rem; }
@media (min-width: 640px) { .card-heading-large { font-size: 2rem; } }
@media (min-width: 1024px) { .card-heading-large { font-size: 2.55rem; } }

.card-text-muted { 
  font-size: 0.98rem; 
  color: var(--muted); 
  line-height: 1.75; 
  width: 100%;
}

.hero-btn-container { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }

.hero-card .hero-btn-container a {
  min-width: 12rem;
  justify-content: center;
}

.btn-secondary { background-color: #f1f5f9; color: #334155; font-weight: 700; font-size: 0.95rem; padding: 1.05rem 2rem; border-radius: 0.75rem; border: none; cursor: pointer; transition: all 0.2s ease; }
.btn-secondary:hover { background-color: #e2e8f0; }

/* Stats Card */
.stats-card { background-color: var(--accent); color: #ffffff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.hero-stats-card { min-height: 100%; padding: 1.5rem; border-radius: 1.25rem; box-shadow: 0 12px 24px rgba(237, 139, 0, 0.18); }
.hero-stats-card a.text-xs { font-size: 0.92rem !important; padding: 0.9rem 1.15rem !important; }
.stats-deco-circle { position: absolute; right: -2rem; top: -2rem; width: 6rem; height: 6rem; background-color: rgba(255, 255, 255, 0.1); border-radius: 50%; }
.stats-card-tag { font-size: 0.78rem; font-weight: 750; color: #fffbeb; letter-spacing: 0.05em; }
.stats-card-h3 { font-size: 1.45rem; font-weight: 500; line-height: 1.35; margin-top: 0.35rem; }
.stats-numbers { margin: 1.25rem 0; display: flex; flex-direction: column; gap: 0.75rem; }
.stats-row { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 0.5rem; }
.stats-row-label { font-size: 0.84rem; color: #fffbeb; }
.stats-row-num { font-size: 1.75rem; font-weight: 700; }
.stats-footer-p { font-size: 0.82rem; line-height: 1.7; color: rgba(255, 255, 255, 0.85); }

/* News Logs */
.news-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.news-heading { font-size: 1.15rem; font-weight: 500; color: var(--primary); display: flex; align-items: center; gap: 0.375rem; }
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.7rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease; }
@media (min-width: 640px) { .news-item { flex-direction: row; align-items: center; gap: 0.75rem; } }
.news-item:last-child { border-bottom: none; }

.news-badge { font-size: 9px; font-weight: 700; color: #ffffff; padding: 0.2rem 0.5rem; border-radius: 4px; }
.news-badge-recruit { background-color: var(--accent); }
.news-badge-safety { background-color: var(--primary); }
.news-date { font-family: monospace; color: #94a3b8; font-weight: 700; }
.news-text { color: #475569; font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-item:hover .news-text { color: var(--accent); }
.news-item:hover .news-arrow-icon { transform: translateX(3px); }

/* Department Info Cards */
.department-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.dept-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.dept-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.dept-icon-bread { background-color: #fffbeb; }
.dept-icon-rice { background-color: #eff6ff; }
.dept-h3 { font-size: 1.45rem; font-weight: 500; color: var(--primary); margin: 0.85rem 0 0.65rem; }
.dept-desc { font-size: 0.98rem; color: var(--muted); line-height: 1.75; }
.dept-link { background: none; border: none; color: var(--primary); font-weight: 700; font-size: 12px; margin-top: auto; padding-top: 1.25rem; cursor: pointer; align-self: flex-start; transition: color 0.15s ease; }
.dept-link:hover { color: var(--accent); }

/* Dark Accent Hygiene Card */
.hygiene-card-dark { background-color: var(--primary); color: #ffffff; display: flex; flex-direction: column; justify-content: space-between; min-height: 280px; }
.hygiene-h3 { font-size: 1.45rem; font-weight: 500; margin: 0.5rem 0; }
.hygiene-desc { font-size: 0.98rem; color: #cbd5e1; line-height: 1.75; }
.hygiene-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.hygiene-indicator { display: flex; align-items: center; gap: 0.25rem; color: var(--accent); font-size: 12px; font-weight: 700; }
.hygiene-btn { background-color: rgba(255, 255, 255, 0.1); color: #ffffff; border: none; padding: 0.4rem 0.75rem; border-radius: 0.5rem; font-size: 11px; font-weight: 700; cursor: pointer; }
.hygiene-btn:hover { background-color: rgba(255, 255, 255, 0.2); }

/* Recruit Card */
.recruit-card-wide { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 1261px) { .recruit-card-wide { grid-template-columns: repeat(12, 1fr); } }
.recruit-info-left { grid-column: span 12; display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 1261px) { .recruit-info-left { grid-column: span 7; } }
.recruit-badge-pill { background-color: #fffbeb; color: var(--accent); font-size: 11px; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 9999px; width: fit-content; }
.recruit-h3 { font-size: 1.8rem; font-weight: 500; color: var(--primary); line-height: 1.35; margin: 0.5rem 0; }
.recruit-tags-wrapper { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag-pill-light { background-color: #f1f5f9; color: #475569; padding: 0.3rem 0.6rem; border-radius: 0.375rem; font-size: 11px; font-weight: 700; }

.recruit-box-right { grid-column: span 12; background-color: #f8fafc; padding: 1.25rem; border-radius: 1rem; border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: space-between; gap: 0.6rem; }
@media (min-width: 1261px) { .recruit-box-right { grid-column: span 5; } }
.recruit-box-heading { font-size: 1.25rem; font-weight: 500; color: var(--primary); display: flex; align-items: center; gap: 4px; line-height: 1.35; }
.recruit-p-line { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; justify-content: flex-start; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.55rem; font-size: 1rem; line-height: 1.45; }
.recruit-p-line:last-child { border-bottom: none; }
.recruit-p-val { font-size: 1.12rem; font-weight: 700; color: #1e293b; overflow-wrap: anywhere; }
.recruit-box-btn { background-color: var(--accent); color: #ffffff; border: none; border-radius: 0.5rem; padding: 0.6rem; font-size: 12px; font-weight: 700; cursor: pointer; width: 100%; transition: all 0.25s ease; }
.recruit-box-btn:hover { background-color: var(--primary); }

@media (max-width: 1260px) {
  .hygiene-card-dark,
  .recruit-card-wide {
    grid-column: 1 / -1;
  }

  .recruit-card-wide {
    grid-template-columns: 1fr;
  }

  .recruit-info-left,
  .recruit-box-right {
    grid-column: 1 / -1;
  }

  .recruit-p-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .recruit-box-right {
    padding-bottom: 1.25rem;
  }

  .recruit-box-right > a {
    margin-right: 0;
    width: 100% !important;
  }

  .home-character-recruit {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    display: block;
    width: min(110px, 26vw);
    margin-top: 0.75rem;
  }
}

/* Sub Pages Layout Components */
.sub-panel-top { background-color: #ffffff; padding: 1.75rem; border-radius: 1.5rem; border: 1px solid rgba(226, 232, 240, 0.8); position: relative; overflow: hidden; }
.panel-deco-circle { position: absolute; right: -3rem; bottom: -3rem; width: 8rem; height: 8rem; background-color: rgba(21, 31, 109, 0.02); border-radius: 50%; }
.panel-tag { font-size: 11px; font-weight: 750; color: var(--accent); letter-spacing: 0.08em; }
.panel-h2 { font-size: 1.9rem; font-weight: 500; color: var(--primary); margin-top: 0.25rem; }
.panel-p { font-size: 0.98rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.75; }
@media (min-width: 640px) { .panel-p { font-size: 1.05rem; } }

.grid-two-half { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .grid-two-half { grid-template-columns: 1fr 1fr; } }

.badge-item-list { background-color: #f8fafc; padding: 1.25rem; border-radius: 1rem; border: 1px solid #e2e8f0; }
.badge-list-title { font-size: 1.2rem; font-weight: 500; color: var(--primary); margin-bottom: 0.6rem; }
.badge-items-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; color: #475569; font-size: 0.98rem; list-style: none; }

/* Product Showcase 2x2 Grid Style */
.product-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  width: 100%;
  list-style: none;
  padding: 0;
}
@media (max-width: 530px) {
  .product-2x2-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
.product-grid-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
}
.product-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.product-grid-img-wrapper {
  width: 100%;
  height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
}
.product-grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-grid-card:hover .product-grid-img {
  transform: scale(1.06);
}
.product-grid-content {
  padding: 0.65rem 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.product-grid-title {
  font-size: 13px;
  font-weight: 850;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.product-grid-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}

.grid-three-third { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .grid-three-third { grid-template-columns: repeat(3, 1fr); } }

.safety-item-card { background-color: #ffffff; padding: 1.5rem; border-radius: 1.5rem; border: 1px solid rgba(226, 232, 240, 0.8); display: flex; flex-direction: column; gap: 0.5rem; }
.safety-card-icon { font-size: 1.6rem; }
.safety-card-h4 { font-size: 1.1rem; font-weight: 500; color: var(--primary); }
.safety-card-p { font-size: 0.98rem; color: var(--muted); line-height: 1.75; }

.grid-twelve-split { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 1024px) { .grid-twelve-split { grid-template-columns: repeat(12, 1fr); } }

.recruit-table-wrapper { grid-column: span 12; background-color: #ffffff; padding: 1.5rem; border-radius: 1.5rem; border: 1px solid rgba(226, 232, 240, 0.8); }
@media (min-width: 1024px) { .recruit-table-wrapper { grid-column: span 7; } }
.recruit-table-h3 { font-size: 1.2rem; font-weight: 500; color: var(--primary); border-bottom: 1px solid #f1f5f9; padding-bottom: 0.5rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.375rem; }
.recruit-specs-list { display: flex; flex-direction: column; gap: 0.85rem; font-size: 13px; }
.recruit-spec-row { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid #f1f5f9; padding-bottom: 0.5rem; gap: 4px; }
@media (min-width: 640px) { .recruit-spec-row { grid-template-columns: repeat(4, 1fr); gap: 0; padding-bottom: 0.375rem; } }
.recruit-spec-row:last-child { border-bottom: none; }
.recruit-spec-label { font-weight: 700; color: var(--primary); grid-column: span 1; }
.recruit-spec-val { color: #475569; grid-column: span 3; line-height: 1.55; }
@media (min-width: 640px) { .recruit-spec-val { grid-column: span 3; } }
.recruit-spec-val-highlight { color: var(--accent); font-weight: 900; }

.recruit-box-perk { grid-column: span 12; background-color: #f8fafc; padding: 1.5rem; border-radius: 1.5rem; border: 1px solid rgba(226, 232, 240, 0.8); display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 1024px) { .recruit-box-perk { grid-column: span 5; } }
.perks-list { display: flex; flex-direction: column; gap: 0.75rem; margin: 0.75rem 0 1rem; }
.perk-item { display: flex; gap: 0.5rem; font-size: 13px; color: #475569; line-height: 1.55; }
.perk-bullet { color: var(--accent); font-weight: 900; }

/* Company Info Table */
.company-grid-card { grid-column: span 12; background-color: #ffffff; padding: 1.5rem; border-radius: 1.5rem; border: 1px solid rgba(226, 232, 240, 0.8); margin-top: 1.25rem; }
.company-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .company-layout { grid-template-columns: repeat(12, 1fr); } }
.company-table-col { grid-column: span 12; overflow-x: auto; }
@media (min-width: 1024px) { .company-table-col { grid-column: span 8; } }

.app-table { width: 100%; border-collapse: collapse; font-size: 13px; border-top: 1px solid #f1f5f9; }
.app-table tr { border-bottom: 1px solid #f1f5f9; }
.app-table th { padding: 0.85rem 0.5rem; color: #64748b; font-weight: 700; text-align: left; width: 25%; }
.app-table td { padding: 0.85rem 0.5rem; color: #334155; font-weight: 500; line-height: 1.55; }
.company-info-strong { font-weight: 900; color: var(--primary); }

.map-card-col { grid-column: span 12; background-color: #f8fafc; padding: 1.25rem; border: 1px solid #e2e8f0; border-radius: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 1024px) { .map-card-col { grid-column: span 4; } }
.map-container-box { background-color: #cbd5e1; border: 1px solid #94a3b8; width: 100%; height: 9.5rem; border-radius: 0.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #475569; position: relative; }
.map-pin-city { font-size: 10px; color: var(--primary); margin-top: 0.375rem; font-weight: 900; background-color: #ffffff; padding: 2px 6px; border-radius: 4px; }

/* Contact Form */
.form-panel-card { background-color: #ffffff; padding: 2rem; border-radius: 1.5rem; border: 1px solid rgba(226, 232, 240, 0.8); display: flex; flex-direction: column; gap: 1.5rem; max-width: 42rem; margin: 1.25rem auto 0; }
.form-header-center { text-align: center; }
.form-title-h3 { font-size: 1.6rem; font-weight: 500; color: var(--primary); }
.form-subtitle-p { font-size: 0.98rem; color: #64748b; margin-top: 0.25rem; }

.app-form { display: flex; flex-direction: column; gap: 1rem; font-size: 13px; font-weight: 750; }
.inputs-row-two { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .inputs-row-two { grid-template-columns: 1fr 1fr; } }
.form-group-field { display: flex; flex-direction: column; gap: 4px; }
.form-label { color: var(--primary); font-weight: 700; }
.form-input-text, .form-select, .form-textarea { width: 100%; padding: 0.75rem 0.95rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; background-color: #ffffff; font-size: 13px; font-family: inherit; transition: all 0.2s ease; font-weight: 500; }
.form-input-text:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.form-textarea { min-height: 120px; resize: vertical; }

.form-consent-box { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.form-checkbox { width: 1rem; height: 1rem; cursor: pointer; }
.form-checkbox-label { font-size: 12px; color: #64748b; cursor: pointer; user-select: none; }
.btn-form-submit { width: 100%; background-color: var(--accent); color: #ffffff; border: none; border-radius: 0.5rem; padding: 0.95rem; font-size: 13px; font-weight: 900; cursor: pointer; margin-top: 0.5rem; transition: all 0.2s ease; }
.btn-form-submit:hover { background-color: var(--primary); }

.thankyou-box-card { background-color: #ffffff; padding: 2.5rem; text-align: center; border-radius: 1.5rem; border: 1px solid rgba(226, 232, 240, 0.8); display: flex; flex-direction: column; gap: 0.75rem; max-width: 38rem; margin: 1.25rem auto 0; }
.thank-emoji { font-size: 2.5rem; animation: bounce 1.5s infinite; }
.thankyou-heading { font-size: 1.55rem; font-weight: 500; color: var(--primary); }
.thankyou-desc-p { font-size: 13px; color: #64748b; margin: 0 auto; line-height: 1.6; }
.thankyou-btns-wrapper { margin-top: 1rem; display: flex; justify-content: center; gap: 0.5rem; }
.btn-reset-form { background-color: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; padding: 0.6rem 1.25rem; border-radius: 0.5rem; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-thankyou-home { background-color: var(--primary); color: #ffffff; border: none; padding: 0.6rem 1.25rem; border-radius: 0.5rem; font-size: 12px; font-weight: 700; cursor: pointer; }

/* Footer Area */
.app-footer {
  background-color: rgba(226, 232, 240, 0.8);
  padding: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(203, 213, 225, 0.3);
  font-size: 9px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.375rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .app-footer { flex-direction: row; } }
.foot-label-strong { font-weight: 700; display: flex; align-items: center; gap: 4px; }
.status-emerald-dot { width: 5px; height: 5px; border-radius: 50%; background-color: #10b981; animation: pulse 2s infinite; }

/* ==========================================================================
   ポータル内部画像の新規追加クラス
   ========================================================================== */

/* パン・炊飯紹介の画像を配置する角丸ラッパー */
.dept-image-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.06);
}

@media (max-width: 639px) {
  .dept-image-wrapper {
    height: clamp(220px, 64vw, 300px);
  }
}

.dept-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.department-card:hover .dept-image {
  transform: scale(1.06);
}

.dept-badge-overlay {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 0.375rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* クリーンルーム衛生：背景写真エフェクト */
.hygiene-bg-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hygiene-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: transform 0.6s ease;
}

.hygiene-card-dark:hover .hygiene-bg-image {
  transform: scale(1.08);
}

.hygiene-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(21, 31, 109, 0.88) 0%, rgba(21, 31, 109, 0.98) 100%);
}

.hygiene-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* パートさん顔写真＆メッセージインライン */
.recruit-img-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  background-color: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.recruit-small-img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* 詳細タブページ内の大型写真 */
.panel-image-container {
  width: 100%;
  height: 330px !important;
  border-radius: 1rem;
  overflow: hidden;
}

@media (max-width: 639px) {
  .panel-image-container {
    height: clamp(230px, 68vw, 320px) !important;
  }
}

.panel-image-large {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.badge-item-list:hover .panel-image-large {
  transform: scale(1.04);
}

/* 衛生対策サブページ用 */
.safety-featured-image-wrapper {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.15);
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 639px) {
  .safety-featured-image-wrapper {
    height: clamp(240px, 70vw, 340px);
  }
}

.safety-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.safety-img-caption {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  background-color: rgba(2, 6, 23, 0.85);
  padding: 0.5rem 1rem;
  font-size: 10px;
  color: #cbd5e1;
  text-align: center;
  font-weight: 700;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* パート採用サブページ用 */
.recruit-featured-card {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.05);
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  max-width: 460px;
  margin: 0 auto;
}

.recruit-featured-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.recruit-job-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .recruit-job-hero {
    grid-template-columns: minmax(320px, 42%) 1fr;
    gap: 2rem;
  }
}

.recruit-slider-column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}

.recruit-job-slider {
  position: relative;
  min-height: 330px;
  border-radius: 1.25rem;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.05);
}

.recruit-image-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.recruit-image-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.recruit-image-slide .recruit-featured-img {
  height: 100%;
}

.recruit-image-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background-color: rgba(21, 31, 109, 0.9);
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 900;
}

.recruit-slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.15);
}

.recruit-slide-prev { left: 0.8rem; }
.recruit-slide-next { right: 0.8rem; }

.recruit-job-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.recruit-job-dot {
  border: 1px solid rgba(21, 31, 109, 0.16);
  border-radius: 9999px;
  background-color: #ffffff;
  color: var(--primary);
  padding: 0.55rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recruit-job-dot.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.recruit-job-copy {
  min-width: 0;
}

.recruit-job-panel {
  display: none;
}

.recruit-job-panel.active {
  display: block;
}

.recruit-top-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .recruit-top-hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.recruit-top-image {
  width: 100%;
  min-height: 260px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.recruit-page-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  scroll-margin-top: 7rem;
}

.recruit-branch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .recruit-branch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.recruit-branch-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem;
  border-radius: 1.25rem;
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-decoration: none;
  color: var(--dark);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.recruit-branch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(237, 139, 0, 0.45);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.recruit-branch-index {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.recruit-branch-card h3,
.recruit-faq-item h3,
.news-list-card h3,
.legal-page h3 {
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
}

.recruit-branch-card p,
.recruit-faq-item p,
.news-list-card p,
.legal-page p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.75;
}

.recruit-faq-list,
.news-list-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.recruit-faq-item,
.news-list-card {
  background-color: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  padding: 1.25rem;
}

.recruit-sticky-nav {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: min(92vw, 560px);
  padding: 0.45rem;
  border: 1px solid rgba(237, 139, 0, 0.22);
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.14);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.recruit-sticky-nav a {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 9999px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 0.68rem 0.5rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.recruit-sticky-nav a:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

#tab-recruit {
  padding-bottom: 5rem;
}

#recruit-voices,
#recruit-faq {
  display: flex;
  flex-direction: column;
}

#recruit-voices > .panel-tag,
#recruit-faq > .panel-tag {
  order: 1;
}

#recruit-voices > .panel-h2,
#recruit-faq > .panel-h2 {
  order: 2;
}

.recruit-voice-intro {
  order: 3;
}

.recruit-voice-list {
  order: 4;
}

.recruit-voice-hero {
  order: 3;
}

#recruit-voices > .recruit-branch-grid {
  display: none;
}

.recruit-faq-bubbles {
  order: 3;
}

#recruit-faq > .recruit-faq-list {
  display: none;
}

.recruit-section-lead {
  max-width: 820px;
  padding-left: 0 !important;
  margin: 0.25rem 0 1.25rem;
}

.recruit-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.35rem 0;
}

.recruit-flow-step {
  position: relative;
  overflow: visible;
  min-height: 220px;
  padding: 1.25rem 1.2rem 5.2rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.15rem;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.recruit-flow-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background-color: rgba(237, 139, 0, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.recruit-flow-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.recruit-flow-step h3,
.recruit-voice-card h3,
.recruit-faq-bubble h3 {
  color: var(--primary);
  font-weight: 900;
}

.recruit-flow-step p,
.recruit-voice-card p,
.recruit-faq-bubble p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.75;
}

.recruit-flow-character {
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  width: 92px;
  height: 92px;
  object-fit: contain;
  pointer-events: none;
}

.recruit-voice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.recruit-voice-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.2rem;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.07);
}

.recruit-voice-comment {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.35rem;
}

.recruit-voice-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 0;
}

.recruit-voice-meta div {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.recruit-voice-meta dt {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.recruit-voice-meta dd {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 800;
}

.recruit-voice-photo {
  overflow: hidden;
  min-height: 260px;
  margin: 0;
  border-radius: 1rem;
  background-color: #f8fafc;
}

.recruit-voice-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.recruit-faq-bubbles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-height: 420px;
  margin-top: 1.5rem;
  padding: 1rem 0 0;
}

.recruit-faq-slider {
  display: contents;
}

.recruit-faq-character {
  position: relative;
  display: grid;
  place-items: center;
  order: 2;
}

.recruit-faq-character img {
  width: min(220px, 58vw);
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.recruit-faq-character::after {
  position: absolute;
  inset: 0;
  background: url("../images/charactor/recruit-answer.png") center / contain no-repeat;
  content: "";
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.recruit-faq-bubbles:has(.recruit-faq-bubble:hover) .recruit-faq-character img {
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
}

.recruit-faq-bubbles:has(.recruit-faq-bubble:hover) .recruit-faq-character::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.recruit-faq-bubble {
  position: relative;
  min-height: 164px;
  padding: 1.2rem;
  border: 2px solid rgba(237, 139, 0, 0.28);
  border-radius: 1.25rem;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.recruit-faq-bubble::after {
  position: absolute;
  bottom: -12px;
  left: 2rem;
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(237, 139, 0, 0.28);
  border-bottom: 2px solid rgba(237, 139, 0, 0.28);
  background-color: rgba(255, 255, 255, 0.97);
  content: "";
  transform: rotate(45deg);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.recruit-faq-bubble:hover {
  border-color: rgba(237, 139, 0, 0.72);
  background-color: rgba(255, 247, 237, 0.98);
  transform: translateY(-4px);
}

.recruit-faq-bubble:hover::after {
  border-color: rgba(237, 139, 0, 0.72);
  background-color: rgba(255, 247, 237, 0.98);
}

.recruit-faq-bubble h3 {
  font-size: 1.08rem;
  line-height: 1.55;
}

.recruit-faq-bubble .faq-answer {
  display: none;
}

.recruit-faq-bubble:hover .faq-question {
  display: none;
}

.recruit-faq-bubble:hover .faq-answer {
  display: block;
}

@media (min-width: 760px) {
  .recruit-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .recruit-flow::before {
    position: absolute;
    top: 2.35rem;
    left: 7%;
    right: 7%;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, rgba(237, 139, 0, 0.15), rgba(237, 139, 0, 0.8), rgba(21, 31, 109, 0.32));
    content: "";
  }

  .recruit-flow-step {
    min-height: 300px;
    padding-bottom: 5.7rem;
  }

  .recruit-flow-character {
    width: 105px;
    height: 105px;
  }

  .recruit-voice-card {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.25rem;
    padding: 1.2rem;
  }

  .recruit-voice-comment {
    padding: 1rem 0.75rem 1rem 1rem;
  }

  .recruit-faq-bubbles {
    grid-template-columns: 1fr 220px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    min-height: 360px;
  }

  .recruit-faq-character {
    grid-column: 2;
    grid-row: 1 / span 2;
    order: initial;
  }

  .recruit-faq-bubble-left {
    grid-column: 1;
    grid-row: 2;
  }

  .recruit-faq-bubble-top {
    grid-column: 2 / span 2;
    grid-row: 1;
    justify-self: center;
    width: min(100%, 430px);
  }

  .recruit-faq-bubble-right {
    grid-column: 3;
    grid-row: 2;
  }

  .recruit-faq-bubble-left::after {
    left: auto;
    right: -10px;
    bottom: 2rem;
  }

  .recruit-faq-bubble-top::after {
    left: 42%;
  }

  .recruit-faq-bubble-right::after {
    left: -10px;
    bottom: 2rem;
  }
}

@media (max-width: 640px) {
  .recruit-sticky-nav {
    width: calc(100% - 1rem);
    overflow-x: auto;
    justify-content: center;
  }

  .recruit-sticky-nav a {
    flex: 0 0 auto;
    min-width: 4rem;
    font-size: 0.76rem;
  }

  .recruit-flow-step {
    min-height: 200px;
  }
}

.recruit-flow {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.recruit-flow::before {
  display: none;
}

.recruit-flow-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: min(100%, 620px);
  min-height: 0;
  padding: 1.2rem;
}

/* .recruit-flow-step::after {
  position: absolute;
  left: 50%;
  bottom: -1.35rem;
  z-index: 0;
  width: 2px;
  height: 1.35rem;
  background-color: rgba(237, 139, 0, 0.5);
  content: "";
} */

.recruit-flow-step:last-child::after {
  display: none;
}

.recruit-flow-image {
  overflow: hidden;
  min-height: 280px;
  margin: 0;
  border-radius: 0.95rem;
  background-color: #f8fafc;
}

.recruit-flow-image img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.recruit-flow-text {
  position: relative;
  min-height: 6.4rem;
  padding: 0 10rem 0 0;
}

.recruit-flow-text p {
  margin: 0;
}

.recruit-flow-text::after {
  position: absolute;
  right: -0.85rem;
  bottom: -1rem;
  width: 96px;
  height: 96px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  content: "";
  pointer-events: none;
}

.recruit-flow-step:nth-child(1) .recruit-flow-text::after {
  background-image: url("../images/charactor/recruit-workflow-prepare.png");
}

.recruit-flow-step:nth-child(2) .recruit-flow-text::after {
  background-image: url("../images/charactor/recruit-workflow-material.png");
}

.recruit-flow-step:nth-child(3) .recruit-flow-text::after {
  background-image: url("../images/charactor/recruit-workflow-cook.png");
}

.recruit-flow-step:nth-child(4) .recruit-flow-text::after {
  background-image: url("../images/charactor/recruit-workflow-check.png");
}

.recruit-flow-step:nth-child(5) .recruit-flow-text::after {
  background-image: url("../images/charactor/recruit-workflow-tidy.png");
}

.recruit-flow-mini {
  display: none;
  position: absolute;
  right: -0.85rem;
  bottom: -1rem;
  width: 96px;
  height: 96px;
  object-fit: contain;
  pointer-events: none;
}

.recruit-voice-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1rem;
}

.recruit-voice-copy {
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.25rem;
  background-color: rgba(255, 255, 255, 0.96);
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.07);
}

.recruit-voice-panel {
  display: none;
}

.recruit-voice-panel.active {
  display: block;
}

.recruit-voice-slider-column {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}

.recruit-voice-slider {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}

.recruit-voice-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.recruit-voice-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.recruit-voice-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.recruit-voice-prev { left: 0.8rem; }
.recruit-voice-next { right: 0.8rem; }

@media (min-width: 760px) {
  .recruit-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem 2rem;
    align-items: start;
  }

  .recruit-flow-step {
    grid-template-columns: 1fr;
    min-height: 230px;
    width: 100%;
  }

  .recruit-flow-step:nth-child(even) {
    margin-left: 0;
    margin-top: 3rem;
  }

  .recruit-flow-step:nth-child(n + 2) {
    margin-top: 0;
  }

  .recruit-flow-step:nth-child(even) {
    margin-top: 3rem;
  }

  .recruit-flow-step::after {
    left: auto;
    right: -1.05rem;
    top: 50%;
    bottom: auto;
    width: 2rem;
    height: 2px;
  }

  .recruit-flow-step:nth-child(even)::after {
    right: auto;
    left: -1.05rem;
  }

  /* .recruit-flow-step:nth-child(2n)::before {
    position: absolute;
    left: -1.05rem;
    top: -1.55rem;
    z-index: 0;
    width: 2px;
    height: 1.55rem;
    background-color: rgba(237, 139, 0, 0.5);
    content: "";
  }

  .recruit-flow-step:nth-child(odd):not(:first-child)::before {
    position: absolute;
    right: -1.05rem;
    top: -1.55rem;
    z-index: 0;
    width: 2px;
    height: 1.55rem;
    background-color: rgba(237, 139, 0, 0.5);
    content: "";
  } */

  .recruit-flow-image {
    min-height: 320px;
  }

  .recruit-flow-image img {
    height: 320px;
  }

  .recruit-flow-text::after {
    right: -2.15rem;
    bottom: -2.15rem;
    width: 150px;
    height: 150px;
  }

  .recruit-voice-hero {
    grid-template-columns: 1fr minmax(320px, 42%);
    gap: 2rem;
  }

  .recruit-voice-copy {
    display: flex;
    align-items: center;
  }

  .recruit-voice-slider {
    min-height: 380px;
  }

  .recruit-voice-slide img {
    min-height: 380px;
  }

  .recruit-faq-bubbles {
    grid-template-columns: minmax(0, 1fr) 240px minmax(0, 1fr);
    grid-template-rows: repeat(2, auto);
    align-items: center;
    gap: 1.2rem 1.5rem;
  }

  .recruit-faq-character {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .recruit-faq-bubble-left,
  .recruit-faq-bubble-top {
    grid-column: 1;
    width: 100%;
  }

  .recruit-faq-bubble-left {
    grid-row: 1;
  }

  .recruit-faq-bubble-top {
    grid-row: 2;
    justify-self: stretch;
  }

  .recruit-faq-bubble-right {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

.news-list-card time {
  display: block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.legal-page {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.app-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .app-footer {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-tel-image {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin-left: auto;
  align-self: flex-end;
  flex: 0 0 auto;
}

.contact-tel-box {
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 0.35rem;
}

.contact-tel-image {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

#recruit-faq .recruit-faq-bubble .faq-answer {
  display: none;
}

#recruit-faq .recruit-faq-bubble:hover .faq-question {
  display: none;
}

#recruit-faq .recruit-faq-bubble:hover .faq-answer {
  display: block;
}

@media (min-width: 760px) {
  #recruit-faq .recruit-faq-bubble::after {
    top: 50%;
    bottom: auto;
    width: 22px;
    height: 22px;
    border: 0;
    border-top: 2px solid rgba(237, 139, 0, 0.28);
    border-right: 2px solid rgba(237, 139, 0, 0.28);
    background-color: rgba(255, 255, 255, 0.97);
    transform: translateY(-50%) rotate(45deg);
  }

  #recruit-faq .recruit-faq-bubble-left::after,
  #recruit-faq .recruit-faq-bubble-top::after {
    left: auto;
    right: -12px;
  }

  #recruit-faq .recruit-faq-bubble-right::after {
    left: -12px;
    right: auto;
    transform: translateY(-50%) rotate(225deg);
  }
}

#recruit-faq .recruit-faq-bubble:hover::after {
  border-color: rgba(237, 139, 0, 0.72);
  background-color: rgba(255, 247, 237, 0.98);
}


/* WordPress/Tailwind-compatible utility helpers used by the static mockup. */
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline-flex { display: inline-flex !important; }
.flex-col { flex-direction: column !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.text-center { text-align: center !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.object-cover { object-fit: cover !important; }
.no-underline { text-decoration: none !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.inset-0 { inset: 0 !important; }
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.py-2\.5, .py-2\.5 { padding-top: .625rem !important; padding-bottom: .625rem !important; }
.py-3 { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-6 { gap: 1.5rem !important; }
.gap-8 { gap: 2rem !important; }
.rounded-xl { border-radius: .75rem !important; }
.rounded-2xl { border-radius: 1rem !important; }
.border { border-width: 1px !important; border-style: solid !important; }
.border-slate-200\/80 { border-color: rgba(226,232,240,.8) !important; }
.bg-white { background-color: #fff !important; }
.bg-slate-100 { background-color: #f1f5f9 !important; }
.bg-amber-500 { background-color: #f59e0b !important; }
.bg-white\/10 { background-color: rgba(255,255,255,.1) !important; }
.hover\:bg-white\/20:hover { background-color: rgba(255,255,255,.2) !important; }
.text-white { color: #fff !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-700 { color: #334155 !important; }
.text-amber-600 { color: #d97706 !important; }
.text-xs { font-size: .75rem !important; }
.text-sm { font-size: .875rem !important; }
.text-base { font-size: 1rem !important; }
.font-bold { font-weight: 700 !important; }
.font-black { font-weight: 900 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.shadow-xs { box-shadow: 0 1px 2px rgba(15,23,42,.05) !important; }
.transition-all { transition: all .25s ease !important; }
.transition-colors { transition: color .2s ease, background-color .2s ease, border-color .2s ease !important; }
.overflow-hidden { overflow: hidden !important; }
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: 1fr !important; }
@media (min-width:768px){ .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } .md\:text-lg { font-size: 1.125rem !important; } }

/* WordPress preview corrections: keep component display rules stronger than utility helpers. */
.gateway-screen .gate-panel {
  display: flex !important;
}

.company-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
  .company-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.company-media-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-media-frame {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.company-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.company-media-frame:hover .company-media-img {
  transform: scale(1.05);
}

.company-media-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: #ffffff;
  font-size: 0.75rem;
  background-color: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.company-caption-badge {
  flex-shrink: 0;
  border-radius: 4px;
  background-color: var(--accent);
  padding: 0.125rem 0.625rem;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

.company-message-card {
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  padding: 1rem;
}

.company-message-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.05;
  pointer-events: none;
}

.company-message-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .company-message-inner {
    flex-direction: row;
    align-items: center;
  }
}

.company-message-label {
  display: inline-block;
  border-radius: 4px;
  border: 1px solid #fde68a;
  background-color: #fffbeb;
  color: #92400e;
  padding: 0.125rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
}

.company-message-title {
  margin-top: 0.375rem;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 700;
}

.company-message-text {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.65;
}

.company-message-badge {
  display: inline-block;
  width: fit-content;
  border-radius: 4px;
  border: 1px solid #d1fae5;
  background-color: #ecfdf5;
  color: #059669;
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
}

/* Responsive refinements */
img,
iframe {
  max-width: 100%;
}

.bento-card,
.sub-panel-top,
.form-panel-card,
.company-grid-card,
.badge-item-list,
.recruit-table-wrapper,
.recruit-box-perk,
.recruit-voice-copy,
.recruit-job-copy,
.recruit-job-slider,
.recruit-voice-slider {
  min-width: 0;
}

.gate-panel {
  width: 100%;
  min-height: 50dvh;
}

@media (min-width: 768px) {
  .gate-panel {
    width: 50%;
    min-height: 100dvh;
  }
}

@media (max-width: 767px) {
  .gateway-screen {
    position: relative;
    min-height: 100dvh;
    overflow: visible;
  }

  .gate-panel {
    flex: 0 0 auto;
    padding: 5rem 1rem 1.25rem;
  }

  .gate-logo-image {
    width: min(180px, 58vw);
    border-radius: 1rem;
    padding: 0.7rem;
  }

  .gate-content {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 5.5rem;
  }

  .gate-h2 {
    font-size: clamp(1.18rem, 6.2vw, 1.45rem);
  }

  .gate-description {
    padding: 0.8rem;
  }

  .gate-footer-bar {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .main-portal-container {
    padding: 0.75rem;
    gap: 1rem;
  }

  .app-header {
    padding: 0.65rem 0.75rem;
    border-radius: 1rem;
  }

  .header-logo-image {
    width: min(150px, 48vw);
    padding: 0.55rem;
    border-radius: 0.8rem;
  }

  .bento-grid {
    gap: 1rem;
  }

  .col-12,
  .col-8,
  .col-6,
  .col-4,
  .recruit-table-wrapper,
  .recruit-box-perk,
  .company-grid-card,
  .map-card-col,
  .company-table-col {
    grid-column: 1 / -1;
  }

  .bento-card,
  .sub-panel-top,
  .form-panel-card,
  .company-grid-card {
    padding: 1rem;
    border-radius: 1rem;
  }

  .hero-card {
    min-height: 0;
  }

  .hero-lower-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-main-copy,
  .hero-stats-card {
    min-width: 0;
    width: 100%;
  }

  .gate-content,
  .hero-lower-layout,
  .hero-copy-area,
  .hero-btn-container,
  .dept-content,
  .recruit-info-left,
  .recruit-box-right,
  .badge-item-list > *,
  .product-grid-content,
  .recruit-voice-copy,
  .recruit-job-copy,
  .recruit-flow-text,
  .form-header-center,
  .app-form {
    width: 100%;
    min-width: 0;
  }

  .hero-slider-container {
    height: clamp(260px, 70vw, 360px);
  }

  .card-heading-large,
  .panel-h2,
  .recruit-h3 {
    font-size: clamp(1.18rem, 5.8vw, 1.45rem);
  }

  .gate-h2,
  .card-heading-large,
  .panel-h2,
  .panel-p,
  .card-text-muted,
  .dept-h3,
  .dept-desc,
  .product-grid-title,
  .product-grid-desc,
  .recruit-h3,
  .recruit-table-h3,
  .recruit-flow-step h3,
  .recruit-flow-step p,
  .recruit-voice-copy,
  .recruit-faq-bubble,
  .news-text,
  .app-table th,
  .app-table td {
    display: block;
    max-width: calc(100vw - 2rem);
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
    line-break: anywhere;
  }

  .hero-btn-container,
  .news-footer,
  .hygiene-footer,
  .thankyou-btns-wrapper {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-btn-container a,
  .hygiene-footer a,
  .thankyou-btns-wrapper > * {
    width: 100%;
  }

  .hero-card .hero-btn-container a {
    min-width: 0;
  }

  .news-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .stats-row,
  .recruit-p-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .recruit-card-wide,
  .recruit-info-left,
  .recruit-box-right {
    display: flex !important;
    flex-direction: column !important;
  }

  .recruit-img-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .recruit-small-img {
    width: 4rem;
    height: 4rem;
  }

  .home-character-hero {
    position: absolute;
    right: 0.35rem;
    bottom: 0.55rem;
    align-self: auto;
    width: clamp(78px, 22vw, 118px);
    margin-top: 0;
  }

  .home-character-news,
  .home-character-dept {
    display: none;
  }

  .home-character-hygiene {
    display: block;
  }

  .home-character-recruit {
    display: block;
    width: min(96px, 30vw);
  }

  .department-card .dept-content .text-center {
    width: 100%;
  }

  .dept-image-wrapper,
  .panel-image-container,
  .safety-featured-image-wrapper {
    height: clamp(230px, 68vw, 340px) !important;
  }
}

@media (max-width: 760px) {
  .hero-card {
    align-items: center;
    text-align: center;
  }

  .hero-copy-area {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-card .card-intro-badge {
    align-self: center;
  }

  .hero-card .hero-btn-container {
    position: relative;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    padding-right: 0;
  }

  .hero-card .hero-btn-container a {
    width: 100%;
    max-width: none;
  }

  .home-character-hero {
    position: absolute;
    right: 0.35rem;
    bottom: 0.55rem;
    z-index: 4;
    width: clamp(78px, 22vw, 118px);
    max-width: 30%;
    margin-top: 0;
    align-self: auto;
  }

  .home-character-news,
  .home-character-dept,
  .home-character-hygiene {
    position: absolute;
    display: block;
    opacity: 1;
    z-index: 3;
    pointer-events: none;
  }

  .home-character-news {
    right: 0.75rem;
    bottom: 0.2rem;
    width: min(96px, 25vw);
  }

  .home-character-dept {
    left: 0.7rem;
    right: auto;
    bottom: 2rem;
    width: min(78px, 22vw);
  }

  .home-character-hygiene {
    right: 0.75rem;
    bottom: 0.85rem;
    width: min(96px, 27vw);
  }

  .news-footer {
    padding-right: 6.2rem;
    padding-bottom: 1.8rem;
  }

  .department-card .dept-content {
    min-height: 12.5rem;
    padding-bottom: 5.1rem;
  }

  .department-card .dept-content .text-center {
    width: auto;
    margin-right: 0;
    margin-left: 4.7rem;
    width: calc(100% - 4.7rem) !important;
  }

  .recruit-box-right {
    align-items: stretch;
    text-align: center;
    padding-bottom: 6.25rem;
  }

  .recruit-box-heading {
    justify-content: center;
    font-size: 1.2rem;
  }

  .recruit-p-line {
    align-items: center;
    font-size: 1rem;
    line-height: 1.55;
  }

  .recruit-p-val {
    font-size: 1.12rem;
  }

  .recruit-box-right > a {
    position: relative;
    z-index: 3;
    width: 100% !important;
    margin-right: 0;
    padding-left: 5.8rem !important;
  }

  .home-character-recruit {
    position: absolute;
    left: 0.25rem;
    right: auto;
    bottom: 3.9rem;
    z-index: 4;
    display: block;
    width: min(112px, 30vw);
    margin-top: 0;
    opacity: 1;
  }
}

@media (max-width: 560px) {
  .badge-item-list {
    padding: 1rem !important;
  }

  .badge-items-grid {
    grid-template-columns: 1fr;
  }

  .product-grid-card {
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .product-grid-img-wrapper {
    width: 100% !important;
    height: 150px !important;
  }

  .product-grid-content {
    padding: 0.75rem !important;
  }

  .app-table,
  .app-table tbody,
  .app-table tr,
  .app-table th,
  .app-table td {
    display: block;
    width: 100%;
  }

  .app-table th {
    padding: 0.75rem 0.5rem 0.15rem;
    border-bottom: 0;
  }

  .app-table td {
    padding: 0 0.5rem 0.75rem;
  }

  .form-consent-box {
    align-items: flex-start;
  }

  .contact-tel-box {
    justify-content: center;
  }

  .contact-tel-image {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 380px) {
  .mobile-nav-triggers {
    gap: 0.35rem;
  }

  .mobile-back-btn {
    padding: 0.35rem 0.4rem;
    font-size: 9px;
  }

  .btn-orange-to-blue,
  .btn-dark,
  .btn-secondary {
    justify-content: center;
    width: 100%;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-card .hero-btn-container a {
    width: 100%;
    max-width: none;
  }

  .hero-card .hero-btn-container {
    padding-right: 0;
  }

  .home-character-hero {
    width: clamp(70px, 23vw, 96px);
  }

  .recruit-box-right > a {
    width: 100% !important;
    margin-right: 0;
  }
}

@media (max-width: 760px) {
  #recruit-faq .recruit-faq-bubbles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: center;
    min-height: 0;
    margin-top: 1rem;
    padding: 0.25rem 0 0;
    overflow-x: visible;
    overflow-y: visible;
  }

  #recruit-faq .recruit-faq-slider {
    display: flex;
    grid-row: 1;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 1.15rem;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  #recruit-faq .recruit-faq-slider::-webkit-scrollbar {
    height: 6px;
  }

  #recruit-faq .recruit-faq-slider::-webkit-scrollbar-track {
    border-radius: 9999px;
    background-color: rgba(226, 232, 240, 0.8);
  }

  #recruit-faq .recruit-faq-slider::-webkit-scrollbar-thumb {
    border-radius: 9999px;
    background-color: rgba(237, 139, 0, 0.45);
  }

  #recruit-faq .recruit-faq-character {
    position: relative;
    top: auto;
    right: auto;
    z-index: 3;
    width: min(150px, 42vw);
    height: auto;
    justify-self: center;
    grid-row: 2;
    order: 2;
    transform: none;
    pointer-events: none;
  }

  #recruit-faq .recruit-faq-character img {
    width: 100%;
    max-height: 100%;
  }

  #recruit-faq .recruit-faq-bubble {
    flex: 0 0 min(100%, 19rem);
    width: auto;
    min-height: 13rem;
    scroll-snap-align: start;
  }

  #recruit-faq .recruit-faq-bubble-left,
  #recruit-faq .recruit-faq-bubble-top,
  #recruit-faq .recruit-faq-bubble-right {
    grid-column: auto;
    grid-row: auto;
    width: auto;
  }

  #recruit-faq .recruit-faq-bubble::after {
    top: auto;
    right: auto;
    bottom: -11px;
    left: 50%;
    border: 0;
    border-right: 2px solid rgba(237, 139, 0, 0.28);
    border-bottom: 2px solid rgba(237, 139, 0, 0.28);
    transform: translateX(-50%) rotate(45deg);
  }
}
