/* ===========================
   RESET & GLOBAL
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  background: #050509;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

section {
  width: 100%;
  position: relative;
  padding: 120px 8%;
}

/* セクション間の流れる境界線 */
section::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(120,150,255,0.7), transparent);
  opacity: 0.4;
  transform-origin: left;
  animation: mjBorderFlow 6s linear infinite;
}

section:last-of-type::after {
  display: none;
}

@keyframes mjBorderFlow {
  0% { transform: scaleX(0); opacity: 0; }
  20% { transform: scaleX(1); opacity: 0.5; }
  80% { transform: scaleX(1); opacity: 0.5; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* ===========================
   TOP HERO（背景画像 + 黒透過）
=========================== */
.mj-feature-hero {
  padding: 200px 8% 160px;
  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)),
    url("../images/feture.png") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.mj-feature-hero-inner {
  max-width: 720px;
}

.mj-feature-hero-inner h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin: 0;
  background: linear-gradient(100deg, #ffffff, #9fb7ff, #7cf0ff);
  -webkit-background-clip: text;
  color: transparent;
  animation: mjFadeUp 1.2s ease-out forwards;
}

.mj-feature-hero-inner p {
  margin-top: 24px;
  font-size: 1.15rem;
  opacity: 0;
  animation: mjFadeUp 1.2s ease-out 0.25s forwards;
}

/* ===========================
   PHILOSOPHY（企業サイト 2 カラム + 建築的レイアウト）
=========================== */
.mj-philosophy-section {
  background: radial-gradient(circle at 20% 10%, #181a24, #050509 70%);
  overflow: hidden;
}

/* 背景ノイズ + 斜めの光 */
.mj-philosophy-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("../images/logo.png"),
    linear-gradient(135deg, rgba(120,150,255,0.18), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
  background-size: cover;
}

.mj-philosophy-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

/* 左側テキストブロック */
.mj-philosophy-label {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  opacity: 0.7;
}

.mj-philosophy-title {
  font-size: 3rem;
  margin: 18px 0 16px;
}

.mj-philosophy-title span {
  font-size: 1.35rem;
  opacity: 0.75;
}

.mj-philosophy-lead {
  margin-top: 12px;
  font-size: 1.05rem;
  opacity: 0.9;
}

.mj-philosophy-text {
  margin-top: 18px;
  font-size: 0.98rem;
  opacity: 0.85;
}

/* 右側：建築的な縦積みカード + 写真レイアウト */
.mj-philosophy-grid {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 22px;
  position: relative;
}

/* 背景に半透明の写真ブロックを重ねる */
.mj-philosophy-grid::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 70%;
  height: 46%;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
    url("../images/logo.png") center/cover no-repeat;
  border-radius: 24px;
  opacity: 0.9;
  filter: saturate(1.1);
  z-index: -1;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

/* カード自体はガラス + 浮遊アニメーション */
.mj-philosophy-card {
  background: radial-gradient(circle at 0 0, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
  padding: 26px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  transform: translateY(40px);
  opacity: 0;
  animation: mjFloatUp 1.1s ease-out forwards;
}

.mj-philosophy-card:nth-child(1) { animation-delay: 0.25s; }
.mj-philosophy-card:nth-child(2) { animation-delay: 0.45s; }
.mj-philosophy-card:nth-child(3) { animation-delay: 0.65s; }

/* ===========================
   STRENGTH BANNER
=========================== */
.mj-strength-banner {
  padding: 160px 8%;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)),
    url("images/strengths-hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mj-strength-banner-overlay h2 {
  font-size: 2.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

/* ===========================
   STRENGTHS（3 カラム + 写真レイアウト）
=========================== */
.mj-feature-pillars {
  background: radial-gradient(circle at 80% 0, #151726, #050509 70%);
}

.mj-pillar-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.mj-pillar-card {
  background: rgba(255,255,255,0.04);
  padding: 28px 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
  position: relative;
  overflow: hidden;
}

.mj-pillar-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 18px;
  object-fit: cover;
}

/* カード内の装飾ライン */
.mj-pillar-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -40px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(120,150,255,0.8), transparent);
  opacity: 0.7;
}

/* ホバーで軽い 3D 浮遊 */
.mj-pillar-card:hover {
  transform: translateY(-14px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 26px 70px rgba(0,0,0,0.8);
  background: rgba(255,255,255,0.07);
}

/* ===========================
   WORK STYLE（建築的 2 カラムグリッド）
=========================== */
.mj-feature-workstyle {
  background: #050509;
}

.mj-workstyle-header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.mj-workstyle-header h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.mj-workstyle-header p {
  font-size: 1rem;
  opacity: 0.85;
}

.mj-workstyle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  max-width: 980px;
  margin: 0 auto;
}

.mj-workstyle-item {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 24px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: mjFadeUp 1s ease-out forwards;
}

.mj-workstyle-item:nth-child(1) { animation-delay: 0.15s; }
.mj-workstyle-item:nth-child(2) { animation-delay: 0.25s; }
.mj-workstyle-item:nth-child(3) { animation-delay: 0.35s; }
.mj-workstyle-item:nth-child(4) { animation-delay: 0.45s; }
.mj-workstyle-item:nth-child(5) { animation-delay: 0.55s; }

/* 左端に縦ライン */
.mj-workstyle-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: linear-gradient(to bottom, #8aa4ff, #7cf0ff);
  opacity: 0.9;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes mjFadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes mjFloatUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  section {
    padding: 100px 6%;
  }

  .mj-feature-hero {
    padding: 160px 6% 120px;
  }

  .mj-feature-hero-inner h1 {
    font-size: 3.2rem;
  }

  .mj-philosophy-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
  }

  .mj-pillar-wrapper {
    gap: 28px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 6%;
  }

  section::after {
    left: 6%;
    right: 6%;
  }

  .mj-feature-hero {
    padding: 140px 6% 100px;
  }

  .mj-feature-hero-inner h1 {
    font-size: 2.4rem;
  }

  .mj-philosophy-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mj-philosophy-grid::before {
    position: static;
    width: 100%;
    height: 180px;
    margin-bottom: 18px;
    display: block;
  }

  .mj-pillar-wrapper {
    grid-template-columns: 1fr;
  }

  .mj-workstyle-grid {
    grid-template-columns: 1fr;
  }

  .mj-strength-banner {
    padding: 120px 6%;
  }

  .mj-strength-banner-overlay h2 {
    font-size: 2rem;
    letter-spacing: 0.12em;
  }
}
