.company-fv {
  background: #f5f8ff;
}

.company-fv__inner {
  position: relative;
  height: 400px;
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 25, 85, 0.92) 0%,
      rgba(0, 55, 150, 0.72) 38%,
      rgba(0, 75, 180, 0.25) 68%,
      rgba(0, 75, 180, 0.05) 100%
    ),
    url("../images/contact/contact.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 45px rgba(0, 40, 120, 0.18);
}

.company-fv__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.company-fv__text {
  position: relative;
  z-index: 2;
  padding: 86px 0 0 90px;
  color: #fff;
}

.company-fv__text h1 {
  font-size: 45px;
  line-height: 1;
  letter-spacing: 0.04em;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 28px;
}

.company-fv__jp {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.company-fv__lead {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .company-fv {
    padding: 20px 16px 0;
  }

  .company-fv__inner {
    height: 320px;
    border-radius: 22px;
    background-position: center;
  }

  .company-fv__text {
    padding: 58px 28px 0;
  }

  .company-fv__text h1 {
    font-size: 52px;
  }

  .company-fv__jp {
    font-size: 24px;
  }

  .company-fv__lead {
    font-size: 15px;
  }
}
/*fvここまで*/

.menu-btn {
  position: fixed;
  right: 46px;
  bottom: 46px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 70, 200, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  z-index: 1000;
  cursor: pointer;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.menu-btn:hover {
  transform: translateY(-5px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);

  transition: 0.3s;
}

.menu-btn span {
  display: block;
  width: 34px;
  height: 2px;
  background: #fff;
  margin: 3px auto;
}

.menu-btn small {
  font-size: 15px;
  letter-spacing: 0.12em;
}

/* メニュー画面 */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 20, 70, 0.92);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.45s ease;
}

.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-bg {
  position: absolute;
  inset: 0;
  background-image: url("./images/fv-truck.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}

.menu-inner {
  position: relative;
  z-index: 2;
  width: min(520px, 80%);
  margin-left: auto;
  height: 100%;
  padding: 70px 70px 50px;
  background: rgba(0, 35, 110, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(100%);
  transition: 0.55s ease;
}

.menu-panel.is-open .menu-inner {
  transform: translateX(0);
}

.menu-logo img {
  width: 90px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.menu-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.menu-list a:hover {
  opacity: 0.65;
}

.menu-close {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  cursor: pointer;
  z-index: 3;
}

.menu-close:hover {
  transform: translateY(-5px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);

  transition: 0.3s;
}

.menu-close span {
  position: absolute;
  top: 31px;
  left: 25px;
  width: 34px;
  height: 2px;
  background: #fff;
}

.menu-close span:first-child {
  transform: rotate(45deg);
}

.menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.menu-close small {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  font-size: 10px;
  letter-spacing: 0.12em;
}
/*fvここまで*/

.company,
.vehicle {
  padding: 100px 0;
  background: #fff;
}

.company-inner {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
}

.company-title {
  font-size: 30px;
  font-weight: bold;
  width: 350px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #999;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #333;
}

.company-table th,
.company-table td {
  border: 1px solid #999;
  padding: 22px;
  font-size: 16px;
  text-align: center;
  vertical-align: middle;
}

.company-table th {
  width: 25%;
  font-weight: bold;
}

.office-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
}

.office-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.office-card iframe {
  width: 230px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
}

.office-card p {
  font-size: 13px;
  line-height: 1.8;
}

/*vahicle*/
.vehicle {
  padding: 120px 0;
  background: #fff;
}

.vehicle-inner {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}

.vehicle-title {
  font-size: 30px;
  font-weight: bold;
  width: 350px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #999;
}

.vehicle-gallery {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 80px;
}

.main-vehicle-img {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: #0047ff;
  border-radius: 10px;
}

.main-vehicle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.thumb-list {
  display: flex;
  width: 100%;
  gap: 10px;
  margin-top: 15px;
}

.vehicle-thumb {
  width: calc((100% - 20px) / 3);
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.55;
  transition: 0.3s;
}

.thumb-list img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
  border-radius: 10px;
}

.thumb-list img.active,
.thumb-list img:hover {
  opacity: 1;
  outline: 3px solid #0047ff;
}

.vehicle-table {
  width: 70%;
  margin: 0 auto;
  border-collapse: collapse;
}

.vehicle-table th,
.vehicle-table td {
  border: 1px solid #999;
  padding: 22px;
  text-align: center;
  font-size: 18px;
}

.vehicle-table th {
  font-weight: bold;
}

.company-table td a {
  color: #0057d9;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .company-fv {
    padding: 5px 5px;
  }

  .company-fv__inner {
    width: 100%;
    height: 200px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }

  .company-fv__text {
    padding: 55px 28px;
  }

  .company-fv__text h1 {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 15px;
  }

  .company-fv__jp {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .company-fv__lead {
    font-size: 10px;
    line-height: 1.9;
  }

  @media (max-width: 768px) {
    /* 開く前のMENUボタン */
    .menu-btn {
      position: fixed;
      right: 14px;
      bottom: 18px;
      width: 52px;
      height: 52px;
      border: none;
      border-radius: 50%;
      background: #1769aa;
      z-index: 1000;

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
    }

    .menu-btn span {
      width: 20px;
      height: 1.5px;
      background: #fff;
    }

    .menu-btn small {
      color: #fff;
      font-size: 7px;
    }

    /* メニュー本体 */
    .menu-panel {
      position: fixed;
      top: 0;
      right: 0;

      width: 100%;
      height: 100dvh;

      background: #fff;
      border-radius: 0 0 0 24px;

      z-index: 9999;

      transform: translateX(105%);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;

      transition:
        transform 0.4s ease,
        opacity 0.3s ease;
    }

    .menu-panel.active,
    .menu-panel.is-active,
    .menu-panel.is-open,
    .menu-panel.open {
      transform: translateX(0);
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    /* 青背景はうっすらだけ */
    .menu-bg {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        160deg,
        rgba(23, 105, 170, 0.1),
        rgba(255, 255, 255, 0.98) 55%
      );
      border-radius: 0 0 0 24px;
      z-index: 0;
    }

    /* メニューの中身 */
    .menu-inner {
      position: relative;
      z-index: 2;

      width: 100%;
      height: 100%;
      padding: 28px 24px 90px;

      display: flex;
      flex-direction: column;
    }

    /* ロゴ */
    .menu-logo {
      width: 90px;
      margin-bottom: 45px;
    }

    .menu-logo img {
      width: 100%;
      display: block;
    }

    /* メニュー項目 */
    .menu-list {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .menu-list li {
      border-bottom: 1px solid #fff;
      width: 75%;
    }

    .menu-list li:first-child {
      border-top: 1px solid rgba(20, 70, 120, 0.15);
    }

    .menu-list a {
      padding: 17px 2px;

      display: flex;
      justify-content: space-between;
      align-items: center;

      color: #fff;
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
    }

    .menu-list a span {
      color: #fff;
      font-size: 18px;
    }

    /* 閉じるボタン */
    .menu-close {
      position: absolute;
      right: 18px;
      bottom: 20px;

      width: 48px;
      height: 48px;

      border: none;
      border-radius: 50%;
      background: #153c63;

      z-index: 5;
    }

    .menu-close span {
      position: absolute;
      left: 13px;
      top: 19px;

      width: 22px;
      height: 1.5px;

      background: #fff;
    }

    .menu-close span:nth-child(1) {
      transform: rotate(45deg);
    }

    .menu-close span:nth-child(2) {
      transform: rotate(-45deg);
    }

    .menu-close small {
      position: absolute;
      bottom: 5px;
      left: 50%;
      transform: translateX(-50%);

      color: #fff;
      font-size: 6px;
    }

    /* メニュー開いてる時は元のMENUボタンを隠す */
    body.menu-open .menu-btn {
      opacity: 0;
      pointer-events: none;
    }

    /* =========================
     会社概要 全体
  ========================= */

    .company {
      padding: 30px 15px !important;
    }

    .company-inner {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
    }

    .company-title {
      font-size: 20px !important;
      margin: 0 0 22px !important;
      padding-bottom: 14px !important;
    }

    /* =========================
     テーブルをスマホ用に縦並び
  ========================= */

    .company-table {
      display: block !important;
      width: 100% !important;
      border-collapse: collapse !important;
    }

    .company-table tbody {
      display: block !important;
      width: 100% !important;
    }

    .company-table tr {
      display: block !important;
      width: 100% !important;
      border-bottom: 1px solid #ddd !important;
    }

    /* 項目名 */
    .company-table th {
      display: block !important;
      width: 100% !important;

      box-sizing: border-box !important;

      padding: 10px 12px !important;

      font-size: 13px !important;
      line-height: 1.4 !important;

      text-align: left !important;

      background: #f2f6ff !important;

      border: none !important;
    }

    /* 内容 */
    .company-table td {
      display: block !important;
      width: 100% !important;

      box-sizing: border-box !important;

      padding: 12px !important;

      font-size: 12px !important;
      line-height: 1.7 !important;

      text-align: left !important;

      border: none !important;
    }

    /* =========================
     保有車両
  ========================= */

    .company-table td {
      overflow-wrap: anywhere !important;
      word-break: normal !important;
    }

    /* =========================
     所在地
  ========================= */

    .office-list {
      display: block !important;
      width: 100% !important;
    }

    .office-card {
      width: 100% !important;

      margin: 0 0 20px !important;
      padding: 0 !important;

      text-align: center !important;
    }

    .office-card h3 {
      font-size: 14px !important;
      margin: 0 0 8px !important;
    }

    /* Googleマップ */
    .office-card iframe {
      display: block !important;

      width: 100% !important;
      height: 180px !important;

      margin: 0 auto 10px !important;

      border: 0 !important;
    }

    /* 住所・TEL・FAX */
    .office-card p {
      margin: 3px 0 !important;

      font-size: 11px !important;
      line-height: 1.6 !important;

      text-align: center !important;
    }

    /* =========================
     主要取引先
  ========================= */

    .company-table td p {
      margin: 3px 0 !important;
      font-size: 11px !important;
      line-height: 1.5 !important;
    }

    .vehicle-title {
      font-size: 20px !important;
      line-height: 1.4 !important;
      margin-bottom: 18px !important;
    }

    /* 会社概要の表を少し細くして中央へ */
    .company-table {
      width: 90% !important;
      max-width: 90% !important;
      margin: 0 auto !important;
    }

    /* 項目名 */
    .company-table th {
      text-align: center !important;
      padding: 9px 10px !important;
    }

    /* 内容 */
    .company-table td {
      text-align: center !important;
      padding: 6px 5px !important;
    }

    /* 所在地の中身も中央 */
    .office-card,
    .office-card h3,
    .office-card p {
      text-align: center !important;
    }

    /* 車両案内全体 */
    .vehicle {
      padding: 25px 18px !important;
    }

    .vehicle-inner {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
    }

    /* メイン画像 */
    .main-vehicle-img {
      width: 90% !important;
      height: 220px !important;
      margin: 0 auto 10px !important;

      border-radius: 12px !important;
      overflow: hidden !important;
    }

    .main-vehicle-img img {
      width: 100% !important;
      height: 100% !important;

      object-fit: cover !important;
      display: block !important;
    }

    /* 下の3枚 */
    .thumb-list {
      display: flex !important;
      width: 90% !important;
      margin: 0 auto 30px !important;

      gap: 6px !important;
    }

    .thumb-list img {
      width: calc((100% - 12px) / 3) !important;
      height: 65px !important;

      object-fit: cover !important;
      border-radius: 6px !important;

      margin: 0 !important;
    }

    /* 車両台数の表 */
    .vehicle-table {
      width: 70% !important;
      margin: 0 auto !important;

      font-size: 13px !important;
    }

    .vehicle-table th,
    .vehicle-table td {
      padding: 6px 4px !important;
      text-align: center !important;
    }

    .vehicle-table {
      width: 60% !important;
      margin: 0 auto 0 !important;
      font-size: 10px !important;
    }

    .vehicle-table th,
    .vehicle-table td {
      padding: 4px 3px !important;
      height: auto !important;
      font-size: 10px !important;
      line-height: 1.2 !important;
      text-align: center !important;
    }

    .thumb-list {
      margin-bottom: 0 !important;
    }

    .vehicle-table {
      margin-top: -60px !important;
    }
  }
}
