* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #06145f;
  background: #fbfaf8;
  line-height: 1.9;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  padding: 32px 0 20px;
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(86%, 1120px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 160px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 56px;
  font-size: 14px;
}

.nav-button {
  padding: 12px 32px;
  color: #fff;
  background: #213bc4;
  border-radius: 999px;
}

.hero {
  position: relative;
  width: min(86%, 1120px);
  margin: 0 auto 120px;
}

.hero-image {
  position: relative;
  overflow: visible; /* 三角形を外側にも出す */
}

.hero-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 585px;
  object-fit: cover;
}

.hero-triangle-left {
  left: -70px;
  top: -40px;
}

.hero-triangle-right {
  right: -70px;
  bottom: 20px;
}

.hero h1 {
  position: absolute;
  z-index: 3;
  left: 6%;
  top: 18%; /* 少し上へ */
  margin: 0;
  font-size: clamp(24px, 2.5vw, 36px); /* 少し小さめ */
  line-height: 1.8;
  letter-spacing: 0.14em;
  color: #003f47;
}

.hero h1 {
  animation: fadeUp 1.2s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-triangle {
  position: absolute;
  z-index: 5;
  width: 220px;
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter: hue-rotate(0deg) brightness(1);
}

.hero-triangle-left {
  left: -75px;
  top: -20px;
  animation:
    triangleAppear 0.9s ease-out forwards,
    triangleColor 8s ease-in-out 0.9s infinite alternate;
}

.hero-triangle-right {
  right: -80px;
  bottom: 40px;
  transform: rotate(180deg);
  animation:
    triangleAppearRight 1.2s ease-out forwards,
    triangleColor 9s ease-in-out 1.2s infinite alternate;
}

@keyframes triangleAppear {
  0% {
    opacity: 0;
    transform: scale(0.96);
    filter: brightness(1.8) saturate(1.4);
  }
  45% {
    opacity: 0.9;
    transform: scale(1.04);
    filter: brightness(1.8) saturate(1.5);
  }
  100% {
    opacity: 0.45;
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes triangleAppearRight {
  0% {
    opacity: 0;
    transform: rotate(180deg) scale(0.96);
    filter: brightness(1.8) saturate(1.4);
  }
  45% {
    opacity: 0.75;
    transform: rotate(180deg) scale(1.04);
    filter: brightness(1.45) saturate(1.3);
  }
  100% {
    opacity: 0.45;
    transform: rotate(180deg) scale(1);
    filter: brightness(1) saturate(1);
  }
}

@keyframes triangleColor {
  0% {
    filter: saturate(1) brightness(1);
  }
  100% {
    filter: saturate(1.2) brightness(1.05);
  }
}

.section {
  margin-bottom: 120px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 96px;
}

.en-title {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  color: #0888ff;
  font-weight: 700;
}

h2 {
  margin: 0 0 40px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.16em;
  color: #213bc4;
}

.text-block p {
  margin: 0 0 18px;
  font-size: 15px;
  color: #06145f;
}

.image-card img {
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.recruit-banner {
  width: min(86%, 1040px);
  margin: 0 auto 120px;
}

.recruit-inner {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 54px 64px;
  border-radius: 16px;
  overflow: hidden;

  background:
    linear-gradient(135deg, rgba(49, 201, 255, 0.22), rgba(112, 117, 255, 0.32)),
    url("images/02recruit.jpg") center / cover no-repeat;

  color: #fff;
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.recruit-inner:hover {
  transform: translateY(4px);
  box-shadow: inset 0 6px 14px rgba(0, 0, 0, 0.16);
  opacity: 0.95;
}

.recruit-inner h2 {
  color: #fff;
  margin-bottom: 0;
}

.recruit-text {
  position: relative;
  z-index: 2;
}

.truck-illust {
  position: absolute;
  z-index: 2;
  left: 34%;
  bottom: 18px;
  width: 170px;
  pointer-events: none;
}

.white-button {
  position: absolute;
  z-index: 2;
  right: 48px;
  bottom: 52px;
  padding: 12px 36px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  pointer-events: none;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.company-card {
  width: min(86%, 1120px);
  margin: 0 auto;
  padding: 64px 72px;
  background: #fff;
  border-radius: 24px;
}

.company-card dl {
  margin: 0;
}

.row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid #d8d8d8;
}

.row:first-child {
  padding-top: 0;
}

.row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

dt {
  font-weight: 700;
}

dt::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  background: #0888ff;
  border-radius: 50%;
  vertical-align: -1px;
}

dd {
  margin: 0;
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.map-grid p {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.7;
}

.map-grid img {
  border-radius: 8px;
  border: 1px solid #cdeeff;
}

.footer {
  padding: 60px 0;
  background: #050d62;
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  width: 170px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 64px;
  font-size: 14px;
}

.footer-button {
  padding: 12px 36px;
  border: 1px solid #fff;
  border-radius: 999px;
}

.copyright {
  width: min(86%, 1120px);
  margin: 36px auto 0;
  text-align: right;
  font-size: 11px;
}

/* あしらい */
.triangle {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0.35;
  pointer-events: none;
}

.triangle-1 {
  left: -70px;
  top: 40px;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 56px solid #ff9aa5;
  transform: rotate(-18deg);
}

.triangle-2 {
  right: -50px;
  bottom: 50px;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-bottom: 38px solid #ff9aa5;
  transform: rotate(25deg);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .header {
    padding-top: 20px;
  }

  .header-inner {
    flex-direction: column;
    gap: 24px;
  }

  .logo img {
    width: 130px;
  }

  .nav {
    gap: 24px;
    font-size: 13px;
  }

  .nav-button {
    padding: 10px 20px;
  }

  .hero {
    width: 90%;
    margin-bottom: 80px;
  }

  .hero-image img {
    height: 420px;
  }

  .hero h1 {
    left: 8%;
    top: 26%;
    font-size: 26px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section {
    margin-bottom: 80px;
  }

  .recruit-inner {
    padding: 40px 28px 120px;
  }

  .truck-illust {
    left: 28px;
    bottom: 28px;
    width: 130px;
  }

  .white-button {
    right: 28px;
    bottom: 36px;
  }

  .company-card {
    width: 90%;
    padding: 40px 24px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .map-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav {
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.nav-button,
.white-button,
.footer-button {
  display: inline-block;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.nav-button:hover,
.white-button:hover,
.footer-button:hover {
  transform: translateY(3px);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.18);
  opacity: 0.9;
}

.nav-button:active,
.white-button:active,
.footer-button:active {
  transform: translateY(5px);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.25);
}

.nav a:not(.nav-button),
.footer-nav a:not(.footer-button) {
  transition: opacity 0.18s ease;
}

.nav a:not(.nav-button):hover,
.footer-nav a:not(.footer-button):hover {
  opacity: 0.6;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.map-grid iframe {
  width: 100%;
  max-width: 100%;
  height: 300px;
  display: block;
  border-radius: 8px;
}

.map-grid > div {
  min-width: 0;
}

.hamburger {
  display: none;
}

/* スマホ */
@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }

  .header-inner {
    width: 90%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo img {
    width: 130px;
  }

.hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;     /* ←これで中央寄せ */
  justify-content: center; /* ←縦も中央 */
  gap: 6px;

  width: 42px;
  height: 42px;
  padding: 10px;
  border: none;
  background: #213bc4;
  border-radius: 50%;
  cursor: pointer;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: all 0.3s ease; /* ←アニメ用 */
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

  .nav {
    position: absolute;
    top: 90px;
    right: 5%;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 20px;
    min-width: 180px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-button {
    text-align: center;
  }

  /* ヒーロー画像を左右ぶち抜き */
  .hero {
    width: 100%;
    margin-bottom: 80px;
  }

  .hero-image {
    width: 100%;
  }

  .hero-main-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
  }

  .hero h1 {
    left: 8%;
    top: 24%;
    font-size: 25px;
    line-height: 1.9;
  }
}

/* ヘッダー固定のタグ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fbfaf8;
}

body {
  padding-top: 150px; /* ヘッダー高さ分 */
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: transparent; /* ← 最初は透明 */
  transition: all 0.8s ease;
}

/* スクロール後 */
.header.is-scrolled {
  background: rgba(251, 250, 248, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header.is-scrolled .logo img {
  width: 100px; /* 少し縮小 */
}

#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #213bc4;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

#toTop.show {
  opacity: 1;
  pointer-events: auto;
}

#toTop:hover {
  transform: translateY(4px);
}