/*
Theme Name: メガアジアJAPAN
Theme URI: https://mega-asia-japan.com
Author: メガアジアJAPAN
Author URI: https://mega-asia-japan.com
Description: 株式会社メガアジアＪＡＰＡＮ - 特定技能外国人の採用・定着支援サービス
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mega-asia-japan
*/

/* Tailwind CSS Base Styles */
*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: #ffffff;
  color: #111827;
}

/* WordPress Admin Bar Fix */
body.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

p {
  margin: 0;
}

button {
  background-color: transparent;
  background-image: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  margin: 0;
  padding: 0;
}

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

input, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/* Utility Classes */
.min-h-screen { min-height: 100vh; }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-900 { background-color: #111827; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-200 { background-color: #fecaca; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-200 { background-color: #a7f3d0; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-200 { background-color: #fde68a; }
.bg-cyan-50 { background-color: #ecfeff; }
.bg-orange-50 { background-color: #fff7ed; }
.bg-teal-50 { background-color: #f0fdfa; }
.bg-violet-50 { background-color: #f5f3ff; }

.text-white { color: #ffffff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-blue-700 { color: #1d4ed8; }
.text-amber-700 { color: #b45309; }
.text-emerald-700 { color: #047857; }
.text-violet-700 { color: #6d28d9; }
.text-cyan-700 { color: #0e7490; }
.text-orange-700 { color: #c2410c; }
.text-teal-700 { color: #0f766e; }

.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }

.top-0 { top: 0; }
.left-0 { left: 0; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.hidden { display: none; }
.grid { display: grid; }
.block { display: block; }
.inline-block { display: inline-block; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.w-full { width: 100%; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-48 { width: 12rem; }
.w-auto { width: auto; }

.h-8 { height: 2rem; }
.h-12 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
.h-auto { height: auto; }

.max-w-none { max-width: none; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }

.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.pt-16 { padding-top: 4rem; }
.pb-16 { padding-bottom: 4rem; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

.text-left { text-align: left; }
.text-center { text-align: center; }

.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }

.whitespace-nowrap { white-space: nowrap; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l-4 { border-left-width: 4px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-800 { border-color: #1f2937; }
.border-red-100 { border-color: #fee2e2; }
.border-red-200 { border-color: #fecaca; }
.border-red-600 { border-color: #dc2626; }
.border-blue-200 { border-color: #bfdbfe; }
.border-blue-300 { border-color: #93c5fd; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-300 { border-color: #6ee7b7; }
.border-amber-200 { border-color: #fde68a; }
.border-amber-300 { border-color: #fcd34d; }
.border-cyan-300 { border-color: #67e8f9; }
.border-orange-300 { border-color: #fdba74; }
.border-teal-300 { border-color: #5eead4; }
.border-violet-300 { border-color: #c4b5fd; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }

.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

.opacity-20 { opacity: 0.2; }

.cursor-pointer { cursor: pointer; }

.resize-none { resize: none; }

/* Background Gradients */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0)));
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0)));
}

.from-red-50 { --tw-gradient-from: #fef2f2; }
.to-white { --tw-gradient-to: #ffffff; }
.from-red-100 { --tw-gradient-from: #fee2e2; }
.to-red-100 { --tw-gradient-to: #fee2e2; }
.from-blue-50 { --tw-gradient-from: #eff6ff; }
.via-white { --tw-gradient-via: #ffffff; }
.to-blue-50 { --tw-gradient-to: #eff6ff; }
.from-blue-100 { --tw-gradient-from: #dbeafe; }
.to-blue-200 { --tw-gradient-to: #bfdbfe; }
.from-blue-600 { --tw-gradient-from: #2563eb; }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }
.from-emerald-50 { --tw-gradient-from: #ecfdf5; }
.to-emerald-50 { --tw-gradient-to: #ecfdf5; }
.from-emerald-100 { --tw-gradient-from: #d1fae5; }
.to-emerald-200 { --tw-gradient-to: #a7f3d0; }
.from-emerald-600 { --tw-gradient-from: #059669; }
.to-emerald-700 { --tw-gradient-to: #047857; }
.from-amber-50 { --tw-gradient-from: #fffbeb; }
.to-amber-50 { --tw-gradient-to: #fffbeb; }
.from-amber-100 { --tw-gradient-from: #fef3c7; }
.to-amber-200 { --tw-gradient-to: #fde68a; }
.from-amber-600 { --tw-gradient-from: #d97706; }
.to-amber-700 { --tw-gradient-to: #b45309; }
.from-red-50 { --tw-gradient-from: #fef2f2; }
.from-red-100 { --tw-gradient-from: #fee2e2; }
.from-red-200 { --tw-gradient-from: #fecaca; }
.from-cyan-50 { --tw-gradient-from: #ecfeff; }
.to-cyan-50 { --tw-gradient-to: #ecfeff; }
.from-cyan-600 { --tw-gradient-from: #0891b2; }
.to-cyan-700 { --tw-gradient-to: #0e7490; }
.from-orange-50 { --tw-gradient-from: #fff7ed; }
.to-orange-50 { --tw-gradient-to: #fff7ed; }
.from-orange-600 { --tw-gradient-from: #ea580c; }
.to-orange-700 { --tw-gradient-to: #c2410c; }
.from-teal-50 { --tw-gradient-from: #f0fdfa; }
.to-teal-50 { --tw-gradient-to: #f0fdfa; }
.from-teal-600 { --tw-gradient-from: #0d9488; }
.to-teal-700 { --tw-gradient-to: #0f766e; }
.from-violet-50 { --tw-gradient-from: #f5f3ff; }
.to-violet-50 { --tw-gradient-to: #f5f3ff; }
.from-violet-600 { --tw-gradient-from: #7c3aed; }
.to-violet-700 { --tw-gradient-to: #6d28d9; }

/* Hover States */
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Focus States */
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.5); }
.focus\:ring-red-500:focus { box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.5); }
.focus\:border-transparent:focus { border-color: transparent; }

/* Responsive Design */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:mb-8 { margin-bottom: 2rem; }
  .sm\:mb-12 { margin-bottom: 3rem; }
  .sm\:mb-16 { margin-bottom: 4rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:gap-8 { gap: 2rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:hidden { display: none; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:space-y-12 > :not([hidden]) ~ :not([hidden]) { margin-top: 3rem; }
  .sm\:space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
  .sm\:w-10 { width: 2.5rem; }
  .sm\:h-10 { height: 2.5rem; }
  .sm\:w-5 { width: 1.25rem; }
  .sm\:h-5 { height: 1.25rem; }
  .sm\:w-20 { width: 5rem; }
  .sm\:h-20 { height: 5rem; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:pt-20 { padding-top: 5rem; }
  .md\:pb-0 { padding-bottom: 0; }
  .md\:p-12 { padding: 3rem; }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
}

/* Mobile Menu */
.mobile-menu { display: none; }
.mobile-menu.active { display: block; }

/* Custom Styles */
.heading-font {
  font-weight: 700;
}

/* WordPress Core Styles */
.wp-block-image img {
  height: auto;
  max-width: 100%;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Smooth Scrolling */
html {
  scroll-padding-top: 80px;
}

/* Focus States */
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  header,
  footer,
  .mobile-menu,
  button {
    display: none !important;
  }
}

.subheading-font {
  font-weight: 700;
}
