
:root {
  --main: #824bd2;
  --main-light: #e4dcff4b;/*#e4dcff*/
  --dark: #1a1f3b;
  --text: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f7f7f7;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  z-index: 11000;
}

header.scrolled {
  background: rgba(255,255,255,0.20);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ddd;
}


.container {
  width: 100%;
  max-width: 1100px;
  margin: 10px auto;
  padding: 5px 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

.logo {
  margin-left: 20px;
}

.h_logo {
  margin-right: 20px;
}

.logo-img {
  height: 40px;
}

.logo-img.change {
  content: url("image/h_logo.png");
}

.h_logo-img.change {
  content: url("image/h_tel.png");
}

.h_logo-img {
  height: 25px;
}

/* ▼ ナビ（PC） ▼ */
nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

 /* ▼ 通常時：薄い背景つき */
  .pc-nav a {
    position: relative;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    background: var(--main-light);
    text-decoration: none;
    transition:
      background .3s ease,
      color .3s ease,
      transform .3s ease,
      box-shadow .3s ease; /* ← 影のアニメーション */
    overflow: hidden;
  }

  /* 通常色（他ページも含む） */
.pc-nav a {
  color: #1a1f3b;
  transition: color .3s ease;
}

/* vehicle / recruit のページで、ヒーロー上にいるときだけ白 */
.page-vehicle .pc-nav.white,
.page-recruit .pc-nav.white {
  color: #fff;
}

.page-vehicle .pc-nav.white a,
.page-recruit .pc-nav.white a {
  color: #fff;
}

/* ▼ PC幅でも横幅が縮んだらナビ間隔を調整 ▼ */
@media (max-width: 1200px) {
  .pc-nav ul {
    gap: 12px;
  }
  .pc-nav a {
    padding: 6px 14px;
    font-size: 14px;
  }
}

@media (max-width: 1050px) {
  .pc-nav ul {
    gap: 10px;
  }
  .pc-nav a {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 950px) {
  .pc-nav ul {
    gap: 4px;
  }
  .pc-nav a {
    padding: 5px 10px;
    font-size: 10px;
  }
}

@media (max-width: 850px) {
  .pc-nav ul {
    gap: 2px;
  }
  .pc-nav a {
    padding: 4px 8px;
    font-size: 11px;
  }
}

/* ▼ ボタン内の下線（グラデーション） */
  .pc-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #824bd2, #bda8ff);
    transform: translateX(-50%);
    transition: width .35s ease;
    border-radius: 2px;
  }

  /* ▼ ホバー時：浮く＋影＋背景濃く＋文字白＋下線伸びる */
  .pc-nav a:hover {
    background: var(--main);
    color: #fff;
    transform: translateY(-5px); /* ← 浮く距離（調整可） */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.30); /* ← 立体感の影 */
  }

  .pc-nav a:hover::after {
    width: 70%;
    background: #fff;
  }

/* ▼▼▼ ヒーロー ▼▼▼ */
.hero-A {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  /* display: flex; */
  align-items: center;
  justify-content: center;
display: block;
}

.hero-A-icon {
  position: absolute;
  top: 100px;
  left: 30px;
  z-index: 10; /* ← overlay や content より前に出す */
  pointer-events: none; /* ← クリック邪魔しない（任意） */
}

.hero-A-icon img {
  width: 20vw;        /* 画面幅に応じて縮む */
  max-width: 500px;   /* PCでは大きくなりすぎない */
  height: auto;
  display: block;
}

/* PC：ぼかし背景 */
@media (min-width: 1025px) {
  .hero-A-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
  }

  .hero-A-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("image/tenma_012.jpg") center/cover;
    filter: blur(20px);
    transform: scale(1.2);
    z-index: 0;
  }

  .hero-A-bg img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← フルワイド化 */
  }
}

/* ▼ オーバーレイ（PC/スマホ共通） */
.hero-A-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    /* rgba(130, 75, 210, 0.40), */
    rgba(26, 31, 59, 0.20) 
  );
  z-index: 2;
}

/* ▼ テキスト（PC） */
  .hero-A-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 90%;
    max-width: 900px;
    text-align: center;
    color: #fff; /* ← 色が変わる問題を防ぐ */
  }

.hero-A-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-A-content p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ▼ ボタン */
.hero-A-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-A-buttons a {
  width: 250px;
  text-align: center;
}

.btn-main,
.btn-sub {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
}

/* ▼▼▼ タブレット・スマホ ▼▼▼ */
@media (max-width: 1024px) {
  .hero-A-content h1 {
    font-size: 25px;
  }
  .hero-A-content p {
    font-size: 18px;
  }

  nav a {
    font-size: 14px;
    padding: 4px 10px;
  }

  nav ul {
    gap: 10px;
  }

  .h_logo {
    display: none;
  }

  .hero-A {
    height: auto;
    min-height: auto;
    padding: 0;
    display: block;
  }

  .hero-A-bg {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
  }

  .hero-A-bg::before {
    content: none;
  }

  .hero-A-bg img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .hero-A-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 90%;
  }

  .hero-A-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .hero-A-buttons a {
    width: 200px;
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .hero-A-icon {
    display: none;
  }
}

/* ▼ スマホ文字縮小 */
@media (max-width: 768px) {
  .hero-A-content h1 {
    font-size: 12px;
  }

  .hero-A-content p {
    font-size: 9px;
  }
.logo {
  margin-left: 10px;
}
  .logo-img {
    height: 16px;
  }

  .hero-A-buttons a {
    width: 170px;
    padding: 2px 14px;
    font-size: 9px;
  }
}

@media (max-width: 768px) {
  header nav {
    display: none;
  }

  .h_logo {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-A {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* ← 下寄せ */
    position: relative;
  }

  .hero-A-content {
    display: flex;
    flex-direction: column;
    height: 60%; /* ← 中身を縦に伸ばす */
    padding: 0 10px;
    text-align: center;
  }

  .hero-A-buttons {
    margin-top: auto; /* ← これでボタンが一番下に寄る */

  }

}

/* ▼ セクション共通 */
section {
  padding: 50px 0;
  background: #f5f3fb;
}

section:nth-of-type(even) {
  background: #ffffff;
}

section:nth-of-type(odd) .section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.section-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
}

/* ▼ カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e2e2e2;
}

/* ▼ 2カラム */
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .footer {
    font-size: 10px;
  }

  .footer .footer-block-title {
    font-size: 11px;
  }

  .footer small {
    font-size: 9px;
  }
}

/* ▼ フッター */
.footer {
  background: #666666;
  color: #ffffff;
  padding: 8px 0;
  border-top: 3px solid #824bd2;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ▼ ヘッダーだけ横幅いっぱい *//* #c9a5ff */
header .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin: 0 auto;
}

.service-button {
  display: inline-block;
  background: #bda8ff;
  color: #fff;
  padding: 3px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.service-button:hover {
  background: #824bd2;
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ▼▼ トップへ戻るボタン ▼▼ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 110px;
  width: 48px;
  height: 48px;
  background: #bda8ff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #824bd2
}

/* スマホは少し小さく */
@media (max-width: 768px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 18px;
    right: 14px;
    bottom: 90px;
  }
}

/* スマホだけ表示 */
.sp-home-btn {
  display: none;
}

/* PCでは非表示 */
.hamburger {
  display: none;
}

@media (max-width: 768px) {

  .hamburger {
    display: block;
    position: fixed;       /* ← header の外でもOK */
    top: 18px;
    right: 16px;           /* ← 右上固定のままでOK */
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 12000;       /* ← スライドメニューより前 */
  }

  .hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: .4s ease;
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 9px; }
  .hamburger span:nth-child(3) { top: 18px; }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ヒーローを通過したら黒い線に */
.hamburger.bg-change span {
  background: #333; /* ← 好きな色に変更 */
}

.slide-menu {
  position: fixed;
  top: 0;
  right: -260px;                 /* ← 右から出す場合 */
  width: 260px;
  height: 100vh;
  background: rgba(20, 20, 30, 0.55);   /* ★ 黒っぽい透明ガラス */
  backdrop-filter: blur(14px);          /* ★ 強めのぼかし */
  -webkit-backdrop-filter: blur(14px);  /* Safari対応 */
  padding: 80px 20px;
  transition: right .35s ease;
  z-index: 9000;                        /* ハンバーガーより下 */
  border-left: 1px solid rgba(255,255,255,0.8); /* ★ ガラス感UP */
}

.slide-menu.open {
  right: 0;
}

.slide-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.5px;
  transition: .25s ease;
}

.slide-menu a:hover {
  padding-left: 8px;
  color: #bda8ff;                         /* 紫のアクセント */
}

/*###################################indexここまで*/

/*###################################businessここから*/

/* ▼▼▼ page-hero（縮小に合わせて高さも縮む仕様） ▼▼▼ */
.page-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: none; /* ← 念のため背景色を消す */
  padding: 0 !important;
}

.page-hero-img {
  width: 100%;
  height: auto;     /* ← 画面幅に合わせて縮小 */
  display: block;
}

.page-hero .container {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
}

/* オーバーレイ */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.page-hero .page-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero .page-sub {
  font-size: 30px;
  line-height: 1.7;
  opacity: 0.95;
}

.card-label {
  color: #7f3f98;
  font-weight: 600;
}

/* ▼▼▼ タブレット ▼▼▼ */
@media (max-width: 1024px) {
  .page-hero .page-title {
    font-size: 32px;
  }

  .page-hero .page-sub {
    font-size: 16px;
  }
}

/* ▼▼▼ スマホ ▼▼▼ */
@media (max-width: 600px) {
  .page-hero .page-title {
    font-size: 11px;
    margin-bottom: 5px;
    line-height: 1.2;
  }

  .page-hero .page-sub {
    font-size: 9px;
    line-height: 1.4;
    margin-top: 0;
  }
}

  .page-hero .page-sub {
    font-size: 11px;
    line-height: 1.4;
  }

/* ▼▼▼ SERVICE（既存のまま） ▼▼▼ */

.service-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.service-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  display: block;
}

.service-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .page-hero .page-sub {
    line-height: 1.2;     /* ← 行間を詰める */
    margin-top: 0;        /* ← 上の余白をなくす */
  }
}

@media (max-width: 768px) {
  .service-flex {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-hero-img {
    height: 100px;    /* スマホ用 */
  }
}
/*###################################businessここまで*/

/*###################################companyここから*/
.greeting-card {
  background: #f7f2fb;   /* ← 好きな色に変更可能 */
}

.page-sub {
  font-weight: 600; /* ← 少し太くなる */
}

.company-info .card-text {
  padding: 8px 0;
  border-bottom: 1px solid #ccc;
}

.company-info .card-text1 {
  padding: 8px 0;
  border-bottom: 1px solid #ccc;
}

/* PC：横並びのまま */
.card-text1 {
  display: flex;
  gap: 8px;
}

/* スマホ・タブレット：縦並びに変更 */
@media (max-width: 768px) {
  .card-text1 {
    display: block;
  }
  .card-text1 strong {
    display: block;
    margin-bottom: 4px;
  }
}

/*###################################companyここまで*/

/*###################################vehicleここから*/
/* ▼ vehicle.html 専用ヒーロー画像の高さ */
.vehicle-hero .page-hero-img {
  height: 300px;      /* 好きな高さに変更 */
  object-fit: cover;
}

@media (max-width: 768px) {
  .vehicle-hero .page-hero-img {
    height: 100px;    /* スマホ用 */
  }
}
/*###################################vehicleここまで*/

/*###################################recruitここから*/
.require-item {
  padding-bottom: 18px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .req-more-wrap {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .req-more-wrap a.service-button {
    margin: 0 auto;
  }
}
/*###################################recruitここまで*/

/*###################################contactここから*/
/* お問い合わせフォームの入力欄を大きく */
.contact-input {
  height: 48px;          /* ← 縦幅を大きく */
  padding: 10px 12px;    /* ← 内側の余白 */
  font-size: 16px;       /* ← 文字も少し大きく */
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-textarea {
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
}

/* PC：70%（今のまま） */
/* スマホ：100% にする */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    width: 100% !important;
  }
}
/*###################################contactここまで*/