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

:root {
  --primary-navy: #0A192F;
  --corporate-blue: #0052CC;
  --corporate-blue-hover: #0041A3;
  --light-blue-bg: #F0F4FC;
  --accent-cyan: #0284C7;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Noto Sans JP', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

.font-en {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.text-base:not(.font-semibold):not(.font-bold):not(.font-extrabold) {
  font-weight: 600 !important;
}

/* Corporate Card Shadow & Glow */
.corp-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.corp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -4px rgba(0, 82, 204, 0.12);
  border-color: #CBD5E1;
}

.corp-card,
.corp-card * {
  min-width: 0;
}

.corp-card p,
.corp-card td,
.corp-card th,
footer p {
  overflow-wrap: anywhere;
}

/* Hero Full Background */
.hero-bg {
  background-image: url('../images/bg.jpeg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

@supports (background-image: url('../images/bg2.avif')) {
  .hero-bg {
    background-image: url('../images/bg2.avif'), url('../images/bg.jpeg');
  }
}

.hero-wave-divider {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  left: -0.1vw;
  right: -0.1vw;
  bottom: -3px;
  height: 96px;
  overflow: hidden;
}

.hero-wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-wave-divider path {
  fill: #F0F4FC;
}

.hero-wave-divider path:nth-child(2) {
  fill: #F8FAFC;
}

@media (min-width: 2100px) {
  .hero-wave-divider {
    height: calc(2vw + 96px);
  }
}

@media (max-width: 640px) {
  .hero-wave-divider {
    height: 64px;
  }
}

/* Organic Random Corners Blob Shape */
.blob-shape {
  border-radius: 46% 54% 62% 38% / 44% 56% 44% 56%;
}

.blob-shape-accent {
  border-radius: 54% 46% 38% 62% / 56% 44% 56% 44%;
}

.philosophy-section {
  margin-top: -1px;
  background:
    linear-gradient(180deg, rgba(240, 244, 252, 0.92) 0%, rgba(248, 250, 252, 0.98) 100%),
    radial-gradient(circle at 18% 16%, rgba(0, 82, 204, 0.12), transparent 32%);
  /* border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8); */
}

.service-section {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 76%, #F8FAFC 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.65);
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
}

.service-photo-card {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background: #FFFFFF;
  box-shadow: 0 20px 45px -32px rgba(15, 23, 42, 0.45);
}

.service-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.18) 100%);
  pointer-events: none;
}

.company-section {
  background:
    linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  border-bottom: 1px solid rgba(191, 219, 254, 0.65);
}

.contact-section {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.philosophy-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(191, 219, 254, 0.7);
  /* box-shadow: 0 18px 45px -32px rgba(15, 23, 42, 0.45); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.philosophy-card,
.philosophy-card * {
  min-width: 0;
}

.philosophy-card p,
.philosophy-card h3,
.philosophy-card h4 {
  overflow-wrap: anywhere;
}

.philosophy-card:hover {
  transform: translateY(-2px);
  /* border-color: rgba(96, 165, 250, 0.9); */
  /* box-shadow: 0 22px 50px -30px rgba(0, 82, 204, 0.35); */
}

.philosophy-icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.875rem;
  padding: 1.125rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.value-item:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.value-item-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .philosophy-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .philosophy-card {
    padding: 1.25rem;
  }

  .philosophy-card [class*="text-right"] {
    width: 100%;
    text-align: left;
  }

  .philosophy-icon {
    width: 3.25rem;
    height: 3.25rem;
  }

  .philosophy-card > .flex.items-start.gap-5 {
    flex-direction: column;
    gap: 1rem;
  }
}

.header-glass {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-glass.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  background-color: rgba(255, 255, 255, 0.98);
}

.site-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.site-logo-header {
  height: 34px;
  max-width: min(46vw, 224px);
  transition: transform 0.25s ease;
}

.site-logo-header:hover {
  transform: scale(1.02);
}

.site-logo-footer {
  height: 38px;
  max-width: min(70vw, 280px);
}

@media (max-width: 420px) {
  .hero-bg h1 {
    font-size: 1.75rem;
    line-height: 1.35;
  }
}

/* Section Header Underline */
.title-accent-line {
  position: relative;
  display: inline-block;
}

.title-accent-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #0052CC 0%, #0284C7 100%);
  border-radius: 2px;
}

/* Custom Button Effects */
.btn-primary {
  background: linear-gradient(135deg, #0052CC 0%, #0041A3 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0041A3 0%, #003180 100%);
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  border: 1.5px solid #0052CC;
  color: #0052CC;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #F0F4FC;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.15);
  transform: translateY(-1px);
}

/* Scroll Reveal Animation */
.reveal-element {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

/* Form Styling */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: 0.5rem;
  background-color: #FAFAFA;
  transition: all 0.2s ease;
  font-size: 1rem;
  line-height: 1.6;
}

.form-input:focus {
  outline: none;
  border-color: #0052CC;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

/* Table Styling */
.company-table tr {
  border-bottom: 1px solid #F1F5F9;
}

.company-table tr:last-child {
  border-bottom: none;
}

.company-table th,
.company-table td {
  line-height: 1.7;
}

.company-info-grid > .reveal-element {
  display: flex;
}

.company-info-grid > .reveal-element > .corp-card {
  width: 100%;
  height: 100%;
}

.company-map-card {
  height: 100%;
  min-height: 430px;
}

.company-map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

@media (max-width: 640px) {
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 0.25rem;
  }

  .company-table td {
    padding-top: 0;
  }

  .company-map-card {
    min-height: 360px;
  }
}

/* Toast Message */
#toast {
  visibility: hidden;
  min-width: 280px;
  background-color: #0F172A;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px 24px;
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
