:root {
  --primary-color: #FF8800;
  --secondary-color: #E65100;
  --accent-color: #ffc107;
  --text-color: #2d3436;
  --text-muted: #636e72;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
  --white: #ffffff;
  --font-main: 'Noto Sans JP', sans-serif;
  --font-heading: 'Bebas Neue', sans-serif;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --input-bg-color: #fff3e0;
  /* 薄いオレンジ色 */
  --input-border-color: #ffcc80;
  /* 薄い枠線 */
  --required-color: #dc3545;
  /* 赤色 */
}

/* Visibility Utilities */
.only-pc {
  display: block;
  /* Default block, allows specialized layouts like flex in child elements */
}

.only-sp {
  display: none !important;
  /* Force hide on PC regardless of selector specificity */
}

@media (max-width: 1024px) {
  .only-pc {
    display: none !important;
    /* Force hide on Mobile/Tablet */
  }

  .only-sp {
    display: block !important;
    /* Force show on Mobile/Tablet, overriding the global hide */
  }
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* No Image Placeholder */
.no-image-wrapper {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: #999;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
  background-size: 20px 20px;
}

.no-image {
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin-top: 15px;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.section-subtitle span {
  color: var(--primary-color);
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-section {
  display: flex;
  flex-direction: column;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wrap img {
  height: 40px;
}

.header-tagline {
  font-size: 10px;
  /* 少し小さく */
  color: var(--text-muted);
  margin: 3px 0 0 0;
  line-height: 1.2;
  font-weight: 400;
  width: 100%;
  text-align: justify;
  text-align-last: justify;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  /* gapを小さく */
}

.header-contact .tel {
  font-size: 18px;
  /* フォントサイズを小さく */
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
  /* アイコンとテキストのgapを小さく */
  background-color: var(--primary-color);
  padding: 6px 12px;
  /* パディングを小さく */
  border-radius: 18px;
  /* 角丸を小さく */
}

.header-contact .tel::before {
  content: "";
  display: inline-block;
  width: 16px;
  /* アイコンサイズを小さく */
  height: 16px;
  /* アイコンサイズを小さく */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.header-nav ul {
  display: flex;
  gap: 30px;
}

.header-nav a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.header-nav a:hover {
  color: var(--primary-color);
}

.header-nav .contact-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 25px;
}

.header-nav .contact-btn:hover {
  background-color: var(--secondary-color);
  opacity: 1;
}

/* Mobile Menu */
.burger-btn {
  display: none;
  cursor: pointer;
}

.burger-btn span {
  display: block;
  width: 25px;
  height: 2px;
  /* Thinner line for modern look */
  background-color: var(--primary-color);
  margin: 6px 0;
  transition: all 0.3s ease-in-out;
}

/* Burger Button Animation */
.burger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.burger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0.1em;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-white:hover {
  background-color: var(--light-gray);
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 700px;
  /* background: url(...) removed */
  margin-top: 80px;
  overflow: hidden;
  clip-path: url(#heroWave);
  -webkit-clip-path: url(#heroWave);
  background-color: var(--light-gray);
  /* この行を追加 */
  z-index: 2;
}



/* Background Image Animation */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  /* Behind content and filter */
}

.hero-bg-1 {
  background-image: url('../../images/images/main.png');
  animation: bgFade1 10s infinite;
}

.hero-bg-2 {
  background-image: url('../../images/34093528_m.jpg');
  animation: bgFade2 10s infinite;
}

@keyframes bgFade1 {
  0% {
    opacity: 1;
  }

  40% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  90% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes bgFade2 {
  0% {
    opacity: 0;
  }

  40% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: rgba(255, 136, 0, 0.9);
  clip-path: polygon(0 0, 50% 0, 35% 100%, 0% 100%);
  /* 上方が広く、下方が狭い逆台形（＼） */
  z-index: 1;
  animation: slideDown 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-content {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  /* 左半分 */
  z-index: 2;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 垂直中央 */
  align-items: flex-start;
  /* 左揃え */
  /* コンテナ幅(1200px)の左端に合わせる計算: (100vw - 1200px) / 2 + padding(15px) */
  /* 画面が狭い時は最低限の余白を確保 */
  padding-left: max(30px, calc(50vw - 600px + 15px));
  padding-right: 20px;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.2s forwards;
}

@keyframes slideDown {
  0% {
    height: 0;
  }

  100% {
    height: 100%;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-main);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.hero-sub-text {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0;
  /* 間隔を詰めるために修正 */
  margin-top: 1rem;
  /* 下に下げるために追加 */
  display: block;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
  text-align: left;
}

.hero .btn {
  background-color: var(--white);
  color: var(--primary-color);
  font-size: 1.1rem;
  padding: 18px 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 0.8rem;
  /* ボタンの上のマージンを調整 */
}

.hero .btn:hover {
  background-color: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about-section {
  background-color: var(--white);
  padding-top: 160px;
  padding-bottom: 120px;
}

.about-container-new {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 56px;
}

/* Left Column: Text */
.about-text-col {
  width: 45%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about-headings {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}

.company-en {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 8px;
}

.company-ja {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
}

.company-line {
  width: 50px;
  height: 4px;
  background-color: #F6C400;
  border-radius: 2px;
}

.about-body {
  width: 100%;
}

.about-text-new {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 16px;
  text-align: left;
}

.about-cta-new {
  text-align: left;
}

/* Right Column: Collage Images */
.about-img-col {
  width: 55%;
}

.collage-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(2, 240px);
  gap: 20px;
  width: 100%;
}

.collage-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.collage-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.collage-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.collage-item:hover img {
  transform: scale(1.05);
}

/* Collage Placement */
.item-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.item-2 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.item-3 {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  height: 100%;
}

/* Responsive for Company Section */

/* Tablet & Smaller Mobile Optimization (<= 1024px) */
@media (max-width: 1024px) {
  section {
    padding: 60px 0;
  }

  .container {
    width: 92%;
    padding: 0 15px;
  }

  .section-title {
    font-size: 3rem;
  }

  /* About Section Optimization */
  .about-section {
    padding-top: 100px;
    padding-bottom: 80px;
  }

  .about-container-new {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .about-text-col {
    width: 100%;
    max-width: 800px;
    flex-basis: auto;
    align-items: center;
    text-align: center;
  }

  .about-headings {
    align-items: center;
  }

  .about-text-new {
    text-align: center;
    font-size: 16px;
    margin-bottom: 30px;
  }

  .about-cta-new {
    text-align: center;
  }

  .about-img-col {
    width: 100%;
    max-width: 800px;
    flex-basis: auto;
  }

  /* Service Section Optimization */
  .service-section {
    margin-top: -100px;
    padding-top: 160px;
  }

  .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .service-card {
    padding: 30px 20px;
  }

  /* Hero Section for Tablet */
  .hero {
    height: 600px;
  }

  .hero-content {
    width: 70%;
    padding-left: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {

  /* Keep existing mobile styles but ensure compatibility */
  .hero {
    height: 500px;
    clip-path: none;
    -webkit-clip-path: none;
  }

  .hero-content {
    width: 100%;
    padding: 0 20px;
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .hero-subtitle {
    text-align: center;
  }

  .hero-cta {
    width: 100%;
  }

  .btn {
    padding: 14px 30px;
    width: 100%;
    max-width: 320px;
  }
}

.company-dl {
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: 10px;
}

.company-dl dt {
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.company-dl dt:first-child {
  margin-top: 0;
}

.company-dl dd {
  margin-left: 0;
  padding-left: 20px;
  line-height: 1.8;
}

/* Service Section */
.service-section {
  background-color: var(--light-gray);
  margin-top: -150px;
  padding-top: 250px;
  /* Adjust for negative margin */
  padding-bottom: 120px;
}




.service-stack {
  display: flex;
  flex-direction: column;
  gap: 120px;
  /* Space between each service block */
  margin-top: 60px;
}

.service-block {
  display: flex;
  align-items: center;
  gap: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.service-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-block:nth-child(even) {
  flex-direction: row-reverse;
}

.service-block .img-col {
  flex: 1;
  max-width: 55%;
}

.service-block .img-col img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.service-block .text-col {
  flex: 1;
}

.service-block .service-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.service-block .service-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
}

.service-block .service-sub-copy {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.5;
}

.service-block .service-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Tablet & Mobile (<= 1024px) */
@media (max-width: 1024px) {
  .service-section {
    margin-top: -100px;
    padding-top: 180px;
    padding-bottom: 80px;
  }

  .service-stack {
    gap: 80px;
  }

  .service-block,
  .service-block:nth-child(even) {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .service-block .img-col,
  .service-block .text-col {
    width: 100%;
    max-width: 100%;
  }

  .service-block .img-col {
    order: 1;
    /* Image always first on mobile */
  }

  .service-block .text-col {
    order: 2;
  }

  .service-block .service-heading {
    font-size: 1.8rem;
  }
}

/* Contact Section */
.contact-section {
  background-color: var(--white);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-item {
  background-color: var(--light-gray);
  padding: 40px 30px;
  border-radius: 10px;
}

.contact-item h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-tel {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-time {
  color: #666;
  font-size: 0.95rem;
}

/* Contact CTA Section */
.contact-cta-section {
  padding: 100px 0;
  background: linear-gradient(rgba(255, 136, 0, 0.6), rgba(255, 136, 0, 0.6)), url('../img/common/bg_contact.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-cta-box {
  background: transparent;
  color: var(--white);
  padding: 0;
  border-radius: 0;
  text-align: center;
  box-shadow: none;
}

.contact-cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  display: block;
}

.contact-cta-box h2::after {
  display: none;
}

.contact-cta-box p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-tel {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  font-size: 1.8rem !important;
}

.btn-tel:hover {
  background-color: var(--light-gray) !important;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 100px 0 60px;
  margin-top: 80px;
  text-align: center;
  color: var(--white);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Section CTA */
.section-cta {
  text-align: center;
  margin-top: 40px;
}

/* Feature Section */
.feature-section {
  background-color: var(--light-gray);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.feature-card p {
  line-height: 1.8;
}

/* Truck Section */
.truck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.truck-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.truck-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.truck-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.truck-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.truck-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin: 20px 20px 10px;
  font-weight: 700;
}

.truck-card p {
  padding: 0 20px 20px;
  line-height: 1.8;
}

/* Area Section */
.area-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.area-image {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
  border-radius: 10px;
}

.area-text {
  font-size: 1.1rem;
  line-height: 2;
}

/* Flow Section */
.flow-section {
  background-color: var(--light-gray);
}

.flow-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.flow-image {
  width: 100%;
  border-radius: 10px;
}

/* Access Section */
.access-section {
  background-color: var(--light-gray);
}

.access-content {
  margin-top: 40px;
  max-width: 900px;
  /* 他のコンテンツに合わせる */
  margin-left: auto;
  margin-right: auto;
}

.access-info h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.access-info h3:first-child {
  margin-top: 0;
}

.access-info p {
  line-height: 1.8;
}

.access-map {
  border-radius: 10px;
  overflow: hidden;
}

/* Mobile Responsive for Access Content */
@media (max-width: 768px) {
  .access-content {
    max-width: 100%;
    padding: 0 20px;
    /* .message-body-new と同じパディング */
  }
}

/* Page Header Title Shadows */
.page-header .page-title,
.page-header .page-subtitle {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* 文字に影を追加 */
}

/* Contact Page */
.contact-form-section {
  padding: 80px 0;
  /* セクション全体の余白 */
  background-color: var(--light-gray);
  /* フォーム背景色とのコントラスト */
}

.contact-form-section .container {
  max-width: 900px;
  /* フォーム全体の最大幅 */
  margin: 0 auto;
  /* 中央寄せ */
  padding: 0 15px;
  /* 左右の余白 */
}

.contact-intro {
  margin-top: 20px;
  /* 見出しとの余白 */
  margin-bottom: 30px;
  /* 必須項目表示との余白 */
  text-align: center;
  line-height: 1.8;
}

.contact-intro p {
  font-size: 1.1rem;
  color: var(--text-color);
}

.contact-form-wrapper {
  padding: 50px;
  /* 内側の余白を増やす */
  margin-bottom: 80px;
  /* 電話情報ブロックとの間隔を大きく */
}

.contact-form-wrapper h2 {
  font-size: 2rem;
  /* 見出しサイズ調整 */
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.contact-form-wrapper h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
  /* 区切り線 */
  margin: 15px auto 0;
}

.required-notice {
  color: var(--required-color);
  /* 赤色 */
  text-align: right;
  margin-bottom: 30px;
  /* 見出しとフォームの間隔 */
  font-size: 0.85rem;
  /* 小さめ */
  font-weight: normal;
  /* 主張しすぎない */
  padding-right: 15px;
  /* 右寄せ */
}

.contact-form .form-group {
  display: flex;
  align-items: center;
  /* 垂直方向中央揃え */
  margin-bottom: 25px;
  /* 各行の上下余白 */
  flex-wrap: wrap;
  /* スマホで折り返す */
}

.contact-form .form-group label {
  flex-basis: 220px;
  /* ラベルの固定幅を調整 */
  margin-right: 25px;
  /* ラベルと入力欄の間隔 */
  text-align: left;
  /* ラベルを左寄せ */
  font-weight: bold;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.5;
  /* 行の高さ */
}

/* 必須マークのスタイル */
.contact-form .form-group label .required {
  color: var(--required-color);
  /* 赤色 */
  margin-left: 5px;
  font-size: 0.9em;
  vertical-align: middle;
}

/* 入力欄の共通スタイル */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
  flex-grow: 1;
  /* 残りのスペースを埋める */
  background-color: var(--input-bg-color);
  /* 薄い水色 */
  border: 1px solid var(--input-border-color);
  /* 薄い枠線 */
  border-radius: 4px;
  /* 少し角丸 */
  padding: 14px 15px;
  /* やや大きめの高さ */
  font-size: 1rem;
  color: var(--text-color);
  width: auto;
  /* flex-growとの併用のため */
  transition: all 0.2s ease-in-out;
}

/* フォーカス時のスタイル */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  /* フォーカス時に色が変わる */
  box-shadow: 0 0 0 2px rgba(26, 79, 168, 0.2);
  /* var(--primary-color)のRGB値を使用 */
}

/* テキストエリアのスタイル */
.contact-form textarea {
  flex-grow: 1;
  background-color: var(--input-bg-color);
  border: 1px solid var(--input-border-color);
  border-radius: 4px;
  padding: 14px 15px;
  font-size: 1rem;
  color: var(--text-color);
  width: auto;
  /* flex-growとの併用のため */
  resize: vertical;
  /* 垂直方向のみリサイズ可能に */
  min-height: 150px;
  /* 複数行入力できる縦サイズを大きく */
  transition: all 0.2s ease-in-out;
}

/* ラジオボタンのグループ */
.contact-form .radio-group {
  align-items: flex-start;
  /* 上寄せ */
}

.contact-form .radio-group .radio-options {
  display: flex;
  gap: 40px;
  /* ラジオボタン間の余白をしっかり取る */
  flex-grow: 1;
  flex-wrap: wrap;
  /* スマホで折り返す */
}

.contact-form .radio-group .radio-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
  font-size: 1rem;
  color: var(--text-color);
  flex-basis: auto;
  /* flex-basisをリセット */
  margin-right: 0;
}

.contact-form .radio-group .radio-options input[type="radio"] {
  margin-right: 10px;
  /* ラジオボタンとテキストの間隔 */
  transform: scale(1.1);
  /* ラジオボタンを少し大きく */
  flex-grow: 0;
  width: auto;
  height: auto;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* 送信ボタンのスタイル */
.contact-form .form-submit {
  text-align: center;
  margin-top: 50px;
  /* フォームとの間隔を大きく */
}

.contact-form .submit-btn {
  width: 100%;
  max-width: 280px;
  /* ボタンの幅を調整 */
  padding: 16px 30px;
  /* 高さを少し大きく */
  margin: 0 auto;
  /* 中央寄せ */
  display: block;
  font-size: 1.1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
  /* 角丸 */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.contact-form .submit-btn:hover {
  background-color: var(--secondary-color);
  /* hover時に少し濃くなる */
  transform: translateY(-2px);
  /* わずかに浮き上がる効果 */
  box-shadow: var(--shadow-lg);
}

/* 電話情報ブロックのスタイル */
.contact-tel-box {
  margin-top: 80px;
  /* フォームとの間隔を大きく */
  text-align: center;
  padding: 40px;
  /* 内側の余白を増やす */
  background-color: var(--white);
  /* 背景色 */
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.contact-tel-box h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  /* 見出しと電話番号の間隔 */
  color: var(--primary-color);
}

.contact-tel-box .tel {
  font-size: 3rem;
  /* 電話番号を大きく */
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 15px;
  letter-spacing: 0.05em;
  display: block;
  /* リンクとしてブロック要素に */
}

.contact-tel-box .tel:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.contact-tel-box .time {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .contact-form-section {
    padding: 40px 0;
  }

  .contact-form-section .container {
    padding: 0 15px;
  }

  .contact-intro {
    margin-bottom: 30px;
  }

  .contact-intro p {
    font-size: 1rem;
  }

  .contact-form-wrapper {
    padding: 25px;
    margin-bottom: 50px;
  }

  .contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .contact-form-wrapper h2::after {
    margin-top: 10px;
  }

  .required-notice {
    margin-bottom: 20px;
    font-size: 0.8rem;
    padding-right: 0;
  }

  .contact-form .form-group {
    flex-direction: column;
    /* 1カラムにする */
    align-items: flex-start;
    margin-bottom: 15px;
  }

  .contact-form .form-group label {
    flex-basis: auto;
    margin-right: 0;
    margin-bottom: 8px;
    /* ラベルと入力欄の間隔 */
    font-size: 0.9rem;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form input[type="tel"],
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    /* 横幅100% */
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .contact-form textarea {
    min-height: 100px;
  }

  .contact-form .radio-group .radio-options {
    flex-direction: column;
    /* 縦並び */
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    /* 親要素の幅いっぱいに */
  }

  .contact-form .radio-group .radio-options label {
    font-size: 0.9rem;
  }

  .contact-form .radio-group .radio-options input[type="radio"] {
    transform: scale(1);
    /* ラジオボタンのサイズ調整 */
  }

  .contact-form .submit-btn {
    font-size: 1rem;
    padding: 12px 20px;
    max-width: 250px;
    margin-top: 30px;
  }

  .contact-tel-box {
    margin-top: 50px;
    padding: 25px;
  }

  .contact-tel-box h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .contact-tel-box .tel {
    font-size: 2rem;
  }

  .contact-tel-box .time {
    font-size: 1rem;
  }
}

/* Privacy Policy */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.privacy-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.privacy-content ul li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.policy-date {
  text-align: right;
  font-weight: 500;
  margin-top: 40px;
}

/* ======================
   Blog Section
====================== */
.blog-section {
  padding: 80px 0;
  background-color: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.blog-card {
  display: block;
  text-decoration: none;
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f0f0f0;
}

.blog-image .no-image-wrapper {
  width: 100%;
  height: 100%;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-title {
  padding: 24px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.6;
  min-height: 90px;

  /* 2行までで省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======================
   Recruitment CTA Section (Homepage)
====================== */
.recruit-cta-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.recruit-cta-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.recruit-cta-text {
  flex: 0 0 58%;
  width: 58%;
}

.recruit-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
  line-height: 1.2;
}

.recruit-cta-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 24px;
  line-height: 1.4;
}

.recruit-cta-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 32px;
}

.recruit-cta-button .btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
}

.recruit-cta-image {
  flex: 0 0 42%;
  width: 42%;
}

.recruit-cta-image .no-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Mobile */
@media (max-width: 1024px) {
  .recruit-cta-section {
    padding: 60px 0;
  }

  .recruit-cta-container {
    flex-direction: column;
    gap: 40px;
  }

  .recruit-cta-text,
  .recruit-cta-image {
    width: 100%;
    flex: 0 0 100%;
  }

  .recruit-cta-title {
    font-size: 2rem;
  }

  .recruit-cta-subtitle {
    font-size: 1.3rem;
  }

  .recruit-cta-description {
    font-size: 1rem;
  }

  .recruit-cta-image {
    order: 2;
  }
}

/* Profile Section */
.profile-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Footer Styles */
.footer {
  background-color: var(--white);
  /* 白に変更 */
  padding-top: 80px;
  /* 上部の余白を広めに */
  color: var(--text-color);
  /* メインのテキストカラーを使用 */
}

.footer-inner {
  max-width: 1200px;
  /* コンテンツ幅 */
  margin: 0 auto;
  padding: 0 40px;
  /* 左右の余白 */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  /* カラム間の余白を広めに */
  padding-bottom: 50px;
  align-items: flex-start;
  /* 左右の要素の上端を揃える */
  flex-wrap: wrap;
  /* これを追加して折り返しを許可 */
}

.footer-company-info {
  flex-basis: 300px;
  /* 左カラムの幅を固定気味に */
  flex-shrink: 0;
  text-align: left;
  /* 左寄せ */
}

.footer-logo-area {
  margin-bottom: 20px;
}

.footer-logo {
  max-width: 180px;
  /* ロゴの最大幅を調整 */
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.footer-company-info .company-name {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 20px;
}

.company-details p {
  margin-bottom: 8px;
  line-height: 1.3;
  /* 行間を狭める */
  font-size: 0.95em;
}

.footer-sitemap {
  flex-grow: 1;
  /* 右カラムが残りスペースを埋める */
  display: flex;
  /* Flexboxに変更 */
  justify-content: space-around;
  /* 要素を均等に配置 */
  gap: 20px;
  /* カテゴリ間の余白 */
  padding-top: 0;
  /* footer-contentで上端を揃えるためリセット */
  flex-wrap: wrap;
  /* 必要に応じて折り返しを許可 */
}

.sitemap-category .category-title {
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-color);
  margin-bottom: 15px;
  white-space: nowrap;
  /* 見出しの折り返しを防ぐ */
}

/* h3.category-title内のaタグのスタイル */
.sitemap-category .category-title a {
  color: inherit;
  /* 親要素の色を継承 */
  text-decoration: none;
  /* 下線を削除 */
}

.sitemap-category .category-title a:hover {
  color: var(--primary-color);
  /* ホバー時の色 */
  text-decoration: underline;
  /* 下線を追加 */
}

.sitemap-category ul {
  /* h3見出しの下のulの余白調整 */
  margin-top: -5px;
  /* 見出しとリンクの間の余白を調整 */
}

.sitemap-category ul li {
  margin-bottom: 8px;
}

.sitemap-category ul li a {
  color: var(--text-muted);
  /* 少し薄い色に */
  transition: var(--transition);
  /* 変数を使用 */
  line-height: 1.6;
  /* リンク間の行間 */
  display: inline-block;
  /* ホバーエリアを広げる */
}

.sitemap-category ul li a:hover {
  color: var(--primary-color);
  /* ホバー時の色 */
  text-decoration: underline;
  /* 下線を追加 */
}

.copyright-area {
  padding-top: 30px;
  text-align: center;
}

.copyright-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  /* 変数を使用 */
  margin: 0 auto 20px;
  width: 80%;
  /* 区切り線の幅 */
}

.copyright {
  font-size: 0.85em;
  color: var(--text-muted);
  /* 少し薄い色に */
  padding-bottom: 20px;
}

/* --- Media Queries for Responsive Design --- */
@media screen and (max-width: 768px) {
  .footer {
    padding-top: 50px;
  }

  .footer-inner {
    padding: 0 20px;
  }

  .footer-content {
    flex-direction: column;
    /* 1列縦並び */
    gap: 40px;
    align-items: center;
    /* 中央寄せ */
  }

  .footer-company-info {
    flex-basis: auto;
    width: 100%;
    text-align: center;
    /* スマホでは中央寄せ */
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-company-info .company-name {
    text-align: center;
  }

  .company-details {
    text-align: center;
  }

  .footer-sitemap {
    grid-template-columns: 1fr;
    /* 1列 */
    gap: 30px;
    width: 100%;
    text-align: center;
    /* スマホでは中央寄せ */
  }

  .sitemap-category .category-title {
    text-align: center;
  }

  .sitemap-category .category-title a {
    /* スマホでも見出しリンクスタイル */
    color: inherit;
    text-decoration: none;
  }

  .sitemap-category .category-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
  }


  .sitemap-category ul li a {
    padding: 5px 0;
    /* タップしやすく */
  }

  .copyright-area {
    padding-top: 20px;
  }

  .copyright-divider {
    width: 90%;
    margin-bottom: 15px;
  }

  .copyright {
    padding-bottom: 15px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-nav {
    display: block;
    /* Switch to block to use opacity/visibility for transition */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 60px;
    /* Adjusted for smaller header */
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 40px 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: all 0.3s ease-in-out;
    transform: translateY(-10px);
  }

  .header-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-nav ul {
    flex-direction: column;
    text-align: center;
  }

  .burger-btn {
    display: block;
  }

  .hero {
    height: 700px;
    margin-top: 60px;
    background: linear-gradient(to right, rgba(0, 48, 155, 0.9) 0%, rgba(0, 48, 155, 0.9) 50%, transparent 50%),
      url('../../images/images/main.png') center center / cover no-repeat;
  }

  .hero::before {
    clip-path: polygon(0 0, 70% 0, 50% 100%, 0% 100%);
  }

  .hero-content {
    text-align: left;
    padding-left: max(30px, calc(50vw - 600px + 15px));
    width: 100%;
    align-items: flex-start;
    position: absolute;
    /* 親要素の.heroに対して配置 */
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 垂直中央 */
  }

  .hero-title {
    font-size: 3rem;
    /* 小さめのフォントサイズに */
    margin-bottom: 0rem;
    /* マージンを調整して距離を近づける */
    line-height: 1;
    /* 行間を調整して距離を近づける */
    text-align: left;
  }

  .hero-sub-text {
    font-size: 1.2rem;
    /* スマホ用hero-sub-textのフォントサイズ */
    font-weight: 400;
    line-height: 1.2;
    /* 行間を元に戻して下げる */
    margin-bottom: 0rem;
    /* マージンを増やして下げる */
    display: block;
  }

  .hero-subtitle {
    font-size: 0.5rem;
    /* さらに小さく */
    letter-spacing: normal;
    margin-bottom: 1rem;
    /* マージンを調整 */
    opacity: 0.9;
    text-align: left;
    text-indent: -0.1em;
  }

  .hero .btn {
    padding: 12px 30px;
    /* ボタンのパディング調整 */
    font-size: 0.9rem;
    /* ボタンのフォントサイズ調整 */
    margin-top: 0.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .about-text {
    font-size: 1rem;
  }

  .company-dl {
    padding: 30px 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-content h2 {
    font-size: 2rem;
    /* Smaller font for mobile */
    margin-bottom: 0.5rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
    /* Smaller font for mobile */
    margin-bottom: 1.5rem;
    line-height: 1.5;
    padding: 0 10px;
    /* Add padding to prevent edge touching */
  }

  .company-dl dt,
  .company-dl dd {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-sitemap {
    display: none;
    /* User request: hide menu on mobile */
    flex-direction: column;
    gap: 40px;
    /* Increased from default to be more touch-friendly */
    text-align: center;
  }

  /* Compact Header for Mobile */
  .header {
    padding: 8px 0;
  }

  .logo-wrap img {
    height: auto;
    max-height: 35px;
    max-width: 150px;
    /* Ensure it doesn't take up too much width */
  }

  .burger-btn {
    margin: 0;
    /* Remove any extra margin */
  }

  .page-header {
    padding: 80px 0 40px;
    margin-top: 60px;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .feature-grid,
  .truck-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .access-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .area-image {
    max-width: 100%;
  }

  .area-text {
    font-size: 1rem;
  }

  /* Contact CTA Mobile */
  .contact-cta-section {
    padding: 60px 0;
    /* More compact and modern on mobile */
    background: linear-gradient(rgba(255, 136, 0, 0.6), rgba(255, 136, 0, 0.6)), url('../img/common/bg_contact_sp.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .contact-cta-box {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .contact-cta-box h2 {
    font-size: 1.8rem;
    /* Increased from 1.6rem for punchier impact */
  }

  .contact-cta-box p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    /* Changed from stretch to center */
  }

  .cta-buttons .btn {
    width: 280px;
    /* Set fixed width for centering balance */
    max-width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .btn-tel {
    font-size: 1.25rem !important;
  }
}

/* Responsive Safety Fixes */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }

  img,
  iframe,
  video {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Ensure no fixed width elements cause scroll */
  * {
    max-width: 100%;
  }
}

/* Vehicle List Page */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.vehicle-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.vehicle-card .vehicle-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #f0f0f0;
  position: relative;
}

.vehicle-card .vehicle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-card .vehicle-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-card h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  display: inline-block;
  align-self: flex-start;
}

.vehicle-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--text-color);
}

/* Tablet */
@media (max-width: 900px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .vehicle-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .vehicle-card .vehicle-info {
    padding: 20px;
  }
}


/* New Message Section Layout */
.message-body-new {
  max-width: 900px;
  /* Match Company Overview table width */
  margin: 40px auto 0;
  padding: 0 15px;
}

/* PC Layout: Side-by-side */
#message-body-pc {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#message-body-pc .message-content {
  width: 58%;
}

#message-body-pc .message-photo {
  width: 38%;
  margin-top: 0;
}

.message-signature {
  text-align: right;
  margin-top: 40px;
}

/* Photo style */
.message-photo .portrait-wrapper {
  width: 100%;
  aspect-ratio: 3/4;
  /* 縦長すぎないサイズ */
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  border-radius: 4px;
  overflow: hidden;
  /* 画像がはみ出さないように */
}

.message-photo .portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text styles */
.message-catch p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.4;
  text-align: left;
}

.catch-line {
  width: 100%;
  /* 全幅 */
  height: 1px;
  background-color: #e0e0e0;
  /* 薄いグレー */
  border: none;
  margin: 0 0 30px 0;
  /* 下に余白 */
}

.message-text p {
  text-align: left;
  line-height: 1.8;
  margin-bottom: 1.5em;
  font-size: 1rem;
}

.sign-job {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 10px;
}

.sign-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .message-body-new {
    margin-top: 30px;
  }

  /* #message-body-sp handles the mobile layout structure implicitly via block flow */

  .message-catch p {
    font-size: 1.3rem;
    text-align: center;
  }

  .catch-line {
    margin: 0 auto 20px auto;
    /* スマホ時は中央寄せ */
    width: 80px;
    /* スマホ時は短くする */
  }

  .message-photo {
    margin: 30px 0;
    width: 100%;
  }

  .message-photo .portrait-wrapper {
    max-width: 100%;
    aspect-ratio: 16/9;
    /* スマホでは少し横長 */
  }

  .message-signature {
    text-align: right;
    margin-top: 0;
  }
}



/* --- Global Width Overrides (Requested by User) --- */
/*
 * 横幅が広がらない原因の修正
 * #main_Contents と .inner のCSSが原因で、ページ全体やコンテンツの幅が固定されている問題を修正します。
 * 既存のCSSを上書きするため、!important を使用します。
 */

/* 原因1: #main_Contents が常に80%幅になっているのを修正 */
#main_Contents {
  width: 100% !important;
  left: 0 !important;
}

/* 原因2: .inner が width: 960px 固定になっているのを修正 */
.inner {
  max-width: 1200px !important;
  /* 広がる最大幅 */
  width: 100% !important;
  /* 常に100%幅を使用 */
  margin: 0 auto !important;
  /* 中央寄せを維持 */
  padding: 0 15px !important;
  /* 左右に余白を確保 */
}

/* --- End Global Width Overrides --- */

/* Company Overview Table */
.overview-table-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
}

.overview-table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0 auto;
  font-size: 1rem;
}

.overview-table tr {
  border-bottom: 1px solid #e0e0e0;
  /* Light gray border */
}

.overview-table tr:first-child {
  border-top: 1px solid #e0e0e0;
}

.overview-table th,
.overview-table td {
  padding: 20px;
  text-align: left;
  vertical-align: middle;
}

.overview-table th {
  background-color: #f8f9fa;
  /* Light gray background for left column */
  width: 25%;
  /* Fixed width */
  min-width: 160px;
  font-weight: 700;
  color: var(--text-color);
  border-right: 1px solid #e0e0e0;
  /* Optional: vertical divider if needed, but row border is requested. Let's keep it simple. */
  border-right: none;
}

.overview-table td {
  background-color: #ffffff;
  width: 75%;
  /* Variable width */
}

/* Mobile Responsive: Vertical Stack */
@media (max-width: 768px) {

  .overview-table,
  .overview-table tbody,
  .overview-table tr,
  .overview-table th,
  .overview-table td {
    display: block;
    width: 100%;
  }

  .overview-table tr {
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .overview-table th {
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px 20px 5px;
    /* Adjust padding for stack label */
    border-bottom: none;
    font-size: 0.9rem;
    color: var(--primary-color);
  }

  .overview-table td {
    width: 100%;
    padding: 5px 20px 20px;
    /* Content below label */
    border-top: none;
  }
}





/* Works Page Specific Styles (New Layout) */

/* Works Page Header (Title Band) */
.works-page-header {
  background-color: var(--primary-color);
  /* 濃い青 */
  padding: 30px 0;
  /* 高さを調整 */
  margin-top: 80px;
  /* ヘッダーの高さ分 */
  color: var(--white);
}

.works-page-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  /* 左右の余白 */
}

.works-page-title {
  font-size: 2.2rem;
  /* ページタイトル */
  font-weight: 700;
  text-align: left;
  margin: 0;
  line-height: 1.2;
}

/* Main Visual Image */
.works-main-visual {
  width: 100%;
  overflow: hidden;
  /* はみ出しを隠す */
  margin-bottom: 60px;
  /* キャッチコピーとの間隔 */
}

.works-main-visual img {
  width: 100%;
  height: 350px;
  /* 画像の高さを固定 */
  object-fit: cover;
  /* 縦横比を維持しつつ画像を埋める */
  display: block;
}

/* Main Catchcopy and Description */
.works-main-catchcopy {
  padding-top: 60px;
  /* 調整 */
  padding-bottom: 60px;
  /* 下部余白 */
  max-width: 1200px;
  margin: 0 auto;
}

.works-main-catchcopy .container {
  padding: 0 15px;
  /* 左右の余白 */
  max-width: 900px;
  /* 本文の横幅を制限 */
}

.main-catchcopy-heading {
  font-size: 2.2rem;
  /* 太字の大きめコピー */
  font-weight: 700;
  color: var(--primary-color);
  /* 青文字 */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.4;
}

.main-catchcopy-text {
  font-size: 1.1rem;
  /* 通常の説明文 */
  color: var(--text-color);
  /* 黒文字 */
  text-align: center;
  line-height: 1.8;
}

/* Service Feature Blocks (Two Column Layout) */
.works-feature-blocks {
  padding-top: 0;
  /* 調整 */
  padding-bottom: 80px;
  /* 下部余白 */
  max-width: 1200px;
  margin: 0 auto;
}

.works-feature-blocks .container {
  padding: 0 15px;
  /* 左右の余白 */
}

.works-feature-item {
  display: flex;
  flex-direction: column;
  /* 追加 */
  align-items: center;
  /* 写真と文章を中央揃え */
  margin-bottom: 80px;
  /* 各ブロック間の余白 */
}

.works-feature-item:last-child {
  margin-bottom: 0;
  /* 最後のブロックは下部余白なし */
}

.works-feature-photo {
  width: 100%;
  /* 幅いっぱい */
  flex-shrink: 0;
  /* 縮小させない */
  overflow: hidden;
  padding: 0;
  /* 余白をリセット */
  margin-bottom: 30px;
  /* 写真の下に余白 */
}

.works-feature-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* 横長に変更 */
  object-fit: cover;
  /* 縦横比を維持しつつ画像を埋める */
  display: block;
  border-radius: var(--radius);
  /* 角丸 */
  box-shadow: var(--shadow-md);
  /* 影 */
}

.works-feature-content {
  width: 50%;
  /* 文章カラムの幅 */
  padding: 20px;
  /* 文章の余白 */
}

/* Alternate layout: Right Photo / Left Text */
.works-feature-item.reverse {
  flex-direction: row-reverse;
  /* 左右を反転 */
}

/* Text styles within feature content */
.feature-heading {
  font-size: 1.8rem;
  /* 小見出し */
  font-weight: 700;
  color: var(--primary-color);
  /* 青太字 */
  margin-bottom: 20px;
  line-height: 1.4;
}

.feature-description {
  font-size: 1rem;
  /* 説明文 */
  color: var(--text-color);
  /* 黒文字 */
  margin-bottom: 25px;
  line-height: 1.8;
}

.feature-subheading {
  font-size: 1.1rem;
  /* 対応荷物の例、強み の小見出し */
  font-weight: 700;
  color: var(--primary-color);
  /* 青太字 */
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.feature-list {
  list-style: disc;
  /* 箇条書き */
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.feature-list li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 5px;
}

.feature-details-wrapper {
  display: flex;
  gap: 30px;
  /* 必要に応じて調整 */
  margin-top: 30px;
  /* 上部余白 */
}

.feature-details-wrapper .feature-detail-col {
  flex: 1;
  /* 等しい幅で並べる */
}

/* --- Explanation Blocks (Works Page Premium Style) --- */
.explanation-block {
  flex: 1;
  /* Added to align heights and widths */
  background-color: #fcfdfe;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  padding: 30px;
  /* margin-bottom is handled by mobile media query or parent gap */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Removed redundant last-child margin reset as we handle it on mobile */

.explanation-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.explanation-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
}

.explanation-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #8fa1b8;
  background-color: #f1f5fa;
  padding: 4px 12px;
  border-radius: 4px;
}

.explanation-line {
  border: none;
  border-top: 1.5px solid #bdcada;
  margin: 0 0 20px 0;
  width: 100%;
  opacity: 0.6;
}

.explanation-body {
  width: 100%;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .feature-details-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .explanation-block {
    margin-bottom: 20px;
  }

  .explanation-block:last-child {
    margin-bottom: 0;
  }
}


/* Transportation Area Section (Adjusted) */
.works-area-section {
  padding-top: 60px;
  /* 上部余白 */
  padding-bottom: 80px;
  /* 下部余白 */
}

.works-area-section .section-title {
  margin-bottom: 0.5rem;
}

.works-area-section .section-subtitle {
  margin-bottom: 3rem;
}

.works-area-section .area-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.works-area-section .area-image-wrapper {
  max-width: 800px;
  /* 画像の最大幅を調整 */
  margin: 40px auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.works-area-section .area-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive for Works Page */
@media (max-width: 768px) {
  .works-page-header {
    padding: 20px 0;
    margin-top: 60px;
    /* ヘッダーの高さ分 */
  }

  .works-page-title {
    font-size: 1.8rem;
    text-align: center;
    /* スマホでは中央寄せ */
  }

  .works-main-visual {
    margin-bottom: 40px;
  }

  .works-main-visual img {
    height: 200px;
    /* スマホでの画像の高さ */
  }

  .works-main-catchcopy {
    padding-bottom: 40px;
  }

  .main-catchcopy-heading {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .main-catchcopy-text {
    font-size: 0.95rem;
  }

  .works-feature-blocks {
    padding-bottom: 60px;
  }

  .works-feature-item {
    flex-direction: column;
    /* 2カラムを解除して縦並び */
    margin-bottom: 60px;
  }

  .works-feature-photo {
    width: 100%;
    /* 幅いっぱい */
    padding: 0;
    /* 余白をリセット */
    margin-bottom: 30px;
    /* 写真と見出しの間隔 */
  }

  .works-feature-photo img {
    height: 250px;
    /* スマホでの画像の高さ */
  }

  .works-feature-content {
    width: 100%;
    /* 幅いっぱい */
    padding: 0;
    /* 余白をリセット */
  }

  /* Reverse order for works-feature-item.reverse */
  .works-feature-item.reverse {
    flex-direction: column;
    /* 左右反転時も縦並び */
  }

  .works-feature-item.reverse .works-feature-photo {
    margin-bottom: 30px;
    /* 写真と見出しの間隔 */
  }

  .feature-heading {
    font-size: 1.5rem;
    text-align: center;
    /* スマホでは中央寄せ */
    margin-bottom: 15px;
  }

  .feature-description {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .feature-subheading {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
    /* スマホでは中央寄せ */
  }

  .feature-list {
    margin-left: 15px;
    margin-bottom: 15px;
  }

  .feature-list li {
    font-size: 0.95rem;
  }

  .works-area-section {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .works-area-section .section-subtitle {
    margin-bottom: 2rem;
  }

  .works-area-section .area-image-wrapper {
    margin: 30px auto;
  }
}

.works-service-item.works-media-right .works-service-content {
  padding: 0 40px;
  /* 左右反転時の余白調整 */
}

.works-service-item.works-media-right .works-service-image {
  margin-left: 0;
  /* 左側画像時のマージンリセット */
}


.works-service-heading {
  font-size: 1.8rem;
  /* 小見出し */
  font-weight: 700;
  color: var(--primary-color);
  /* 青太字 */
  margin-bottom: 20px;
  line-height: 1.4;
}

.works-service-text {
  font-size: 1rem;
  /* 説明文 */
  color: var(--text-color);
  /* 黒文字 */
  margin-bottom: 25px;
  line-height: 1.8;
}

.works-service-subheading {
  font-size: 1.1rem;
  /* 対応荷物の例、強み の小見出し */
  font-weight: 700;
  color: var(--primary-color);
  /* 青太字 */
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.works-service-list {
  list-style: disc;
  /* 箇条書き */
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.works-service-list li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 5px;
}

/* Transportation Area Section (Adjusted) */
.works-area-section {
  padding-top: 60px;
  /* 上部余白 */
  padding-bottom: 80px;
  /* 下部余白 */
}

.works-area-section .section-title {
  margin-bottom: 0.5rem;
}

.works-area-section .section-subtitle {
  margin-bottom: 3rem;
}

.works-area-section .area-image-wrapper {
  max-width: 800px;
  /* 画像の最大幅を調整 */
  margin: 40px auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.works-area-section .area-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Recruitment Page Specific Styles */
.recruit-item .recruit-image-box {
  width: 100%;
  /* 親要素の幅いっぱいに広げる */
  max-width: 400px;
  /* 必要であれば最大幅を設定 */
  height: 150px;
  /* 縦幅を調整 */
  overflow: hidden;
  margin: 0 auto 20px auto;
  /* 中央寄せと下部余白 */
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.recruit-item .recruit-image-box .no-image-wrapper,
.recruit-item .recruit-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Responsive for Works Page */

/* End of maintained styles */