/* ========== Footer ========== */
.footer-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem 3rem;
}

.footer-row .footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-row .footer-section {
  flex-shrink: 0;
}
.footer-section a{
  --tw-text-opacity: 0.3;
  color:rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* ========== Nav & Header (shared) ========== */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s;
  margin-top: 0.5rem;
}

.group:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-scrolled #nav-top-bar {
  display: none !important;
}

/* 导航 Logo 切换：默认 logo-footer.png，滚动后 logo.png */
.nav-logo-img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  transition: opacity .2s ease;
}

.nav-logo-default {
  opacity: 1;
}

.nav-logo-scrolled {
  opacity: 0;
}

nav.nav-scrolled .nav-logo-default {
  opacity: 0;
}

nav.nav-scrolled .nav-logo-scrolled {
  opacity: 1;
}

nav.nav-scrolled {
  background-color: #fff !important;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1);
}

nav.nav-scrolled .text-white {
  color: #1a1a1a !important;
}

nav.nav-scrolled .text-white\/80 {
  color: rgba(26, 26, 26, .8) !important;
}

nav.nav-scrolled .border-white {
  border-color: rgb(38 58 147) !important;
}

nav.nav-scrolled .bg-white.text-mitsui-blue {
  background-color: rgb(38 58 147) !important;
  color: #fff !important;
}

.nav-mobile-open a,
.nav-mobile-open button {
  color: #1a1a1a !important;
}

.nav-mobile-open .text-white {
  color: #1a1a1a !important;
}

/* ========== Hero ========== */
.hero-gradient {
  background: linear-gradient(135deg, rgba(38, 58, 147, .92) 0%, rgba(26, 26, 26, .75) 100%);
}

/* ========== Hero Carousel ========== */
.hero-carousel {
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-copy {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transition: opacity .8s ease, transform .8s ease;
  transform: translateY(8px);
  pointer-events: none;
}

.hero-copy.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero-dots {
  pointer-events: auto;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .35);
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
  opacity: .9;
  cursor: pointer;
}

.hero-dot.is-active {
  background: rgba(255, 255, 255, .95);
  transform: scale(1.25);
}

/* ========== Utilities ========== */
.p-6 {
  padding: 1.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .md\:text-5xl {
    font-size: 1.5rem;
    line-height: 1;
  }

  .md\:text-8xl {
    font-size: 4rem;
    line-height: 1;
  }
}

/* ========== Integrates strip (logo cards) ========== */
.integrates-strip {
  position: relative;
  background-color: #F7F7F7;
  min-height: 460px;
}
.integrates-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/shopbg.png');
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 0;
}
.integrates-strip > * {
  position: relative;
  z-index: 1;
}

/* grid 内每个 cell 中的 item 居中 */
.integrates-strip .grid {
  justify-items: center;
  align-items: center;
}

.integrates-item {
  width: 84px;
  height: 56px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(229, 231, 235, .9);
  border-radius: 18px;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.integrates-item-2-1 {
  width: 120px;
  height: 60px;
  aspect-ratio: 2/1;
  padding: 8px;
}

.integrates-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .35);
}

.integrates-logo {
  width: 100%;
  height: 100%;
  max-height: 30px;
  object-fit: contain;
  display: block;
  opacity: .96;
}

.integrates-item-2-1 .integrates-logo {
  max-height: none;
  object-fit: contain;
  object-position: center;
}

/* ========== Line clamp (max 3 lines) ========== */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Section & Cards ========== */
.section-tag {
  letter-spacing: .3em;
  font-size: .75rem;
}

.barrier-quote {
  border-left: 4px solid rgba(255, 255, 255, .5);
  padding-left: 1.5rem;
}

.advantage-card {
  position: relative;
  overflow: hidden;
}

.advantage-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #263a93, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.advantage-card:hover::after {
  transform: scaleX(1);
}

[data-animate] {
  opacity: 0;
}

/* ========== Index page ========== */
#supply-chain .supply-chain-cards {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

@keyframes barGrow {
  from { height: 0; }
  to { height: var(--bar-h, 50%); }
}

@keyframes metricFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tech-bar {
  height: 0;
  animation: barGrow 1s ease-out .3s forwards;
  transform-origin: bottom;
}

.tech-metric {
  animation: metricFade .8s ease-out forwards;
}

/* ========== About page ========== */
@keyframes aboutFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.about-intro-text {
  animation: aboutFadeIn 1.2s ease-out forwards;
}

.highlight {
  font-weight: 700;
  color: rgb(38 58 147);
}

.about-intro-wrap {
  position: relative;
  overflow: hidden;
}

.about-intro-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-right: 3px solid rgb(38 58 147 / 0.3);
  border-bottom: 3px solid rgb(38 58 147 / 0.3);
}

.about-intro-wrap::before {
  content: "";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 60px;
  height: 60px;
  border-right: 2px solid rgb(38 58 147 / 0.15);
  border-bottom: 2px solid rgb(38 58 147 / 0.15);
}

.section-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.section-title-line::before,
.section-title-line::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: rgb(38 58 147 / 0.4);
}

.section-title-line span {
  font-size: 2.25rem;
  font-weight: 700;
  color: rgb(38 58 147);
  letter-spacing: 0.2em;
}

.logo-meaning-grid {
  display: grid;
  gap: 5rem;
  align-items: center;
}

.logo-meaning-grid > *:first-child {
  width: auto;
  min-width: 0;
}

.logo-meaning-grid > *:last-child {
  min-width: 0;
}

.logo-meaning-grid img {
  margin: 60px 0;
}

@media (min-width: 768px) {
  .logo-meaning-grid {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 767px) {
  .logo-meaning-grid {
    grid-template-columns: 1fr;
  }
}

.culture-philosophy {
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid rgba(255, 255, 255, .5);
}

.culture-core-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.culture-core-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .25);
}

.culture-flywheel {
  position: relative;
}

.culture-flywheel-modules {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1rem;
}

.culture-flywheel-module {
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
}

.culture-flywheel-arrow {
  opacity: .95;
}

.culture-flywheel-item {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .culture-flywheel-modules {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
  }
}

@keyframes cultureFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.culture-animate {
  animation: cultureFadeUp .8s ease-out forwards;
}

/* ========== Supply-chain & Products ========== */
.procurement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .procurement-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem 1.5rem;
  }
}

.procurement-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.125rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(38, 58, 147, .1);
  border-radius: 14px;
  font-size: .9375rem;
  font-weight: 600;
  color: #263a93;
  text-align: center;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04), 0 0 0 1px rgba(38, 58, 147, .04);
  position: relative;
  overflow: hidden;
  animation: fadeInUp .6s ease-out both;
}

.procurement-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(38, 58, 147, .06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .4s;
}

.procurement-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(38, 58, 147, .14), 0 0 0 1px rgba(38, 58, 147, .15);
  border-color: rgba(38, 58, 147, .25);
  background: linear-gradient(135deg, #fff 0%, rgba(38, 58, 147, .04) 100%);
}

.procurement-item:hover::before {
  opacity: 1;
}

.procurement-item:nth-child(1) { animation-delay: .05s; }
.procurement-item:nth-child(2) { animation-delay: .1s; }
.procurement-item:nth-child(3) { animation-delay: .15s; }
.procurement-item:nth-child(4) { animation-delay: .2s; }
.procurement-item:nth-child(5) { animation-delay: .25s; }
.procurement-item:nth-child(6) { animation-delay: .3s; }
.procurement-item:nth-child(7) { animation-delay: .35s; }
.procurement-item:nth-child(8) { animation-delay: .4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.frame-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 3fr 2fr;
  gap: 1.5rem;
}

.frame-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
  transition: all .45s cubic-bezier(.4, 0, .2, 1);
}

.frame-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 26, 26, .4) 100%);
  opacity: 0;
  transition: opacity .4s;
  z-index: 1;
}

.frame-card:hover {
  box-shadow: 0 20px 50px rgba(38, 58, 147, .18);
  transform: translateY(-6px) scale(1.01);
}

.frame-card:hover::before {
  opacity: 1;
}

.frame-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.frame-card:hover img {
  transform: scale(1.1);
}

.frame-card .frame-label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-size: 1.475rem;
  padding: .4rem 1rem;
  border-radius: 10px;
  letter-spacing: .08em;
}

.frame-card.row-span-2 {
  grid-row: span 2;
}

@media (max-width: 767px) {
  .frame-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .frame-card.row-span-2 {
    grid-row: span 1;
  }

  .frame-card {
    min-height: 240px;
  }

  .procurement-grid {
    gap: .875rem 1rem;
  }
}

/* ========== Contact page ========== */
#contact-map {
  height: 300px;
  width: 100%;
}

.contact-card {
  padding: 2.5rem;
  border: 1px solid rgba(38, 58, 147, 0.08);
}

.contact-card .avatar {
  border-radius: 50%;
}

.contact-input {
  border: 1px solid rgba(38, 58, 147, 0.15);
}

.contact-input::placeholder {
  color: rgba(26, 26, 26, 0.5);
}

.contact-input:focus {
  border-color: rgb(38 58 147);
  outline: none;
}

/* ========== Map-capture utility page ========== */
body.map-capture-page {
  margin: 0;
  padding: 20px;
  background: #fff;
}

body.map-capture-page .map-box {
  width: 800px;
  height: 150px;
  overflow: hidden;
  border: 1px solid #ddd;
}

body.map-capture-page #map {
  width: 100%;
  height: 100%;
}

body.map-capture-page .tip {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}
