:root {
  /* Colors */
  --primary-300: #e79e74;
  --primary-400: #e88145;
  --primary-500: #e56e2a;
  --primary-600: #e46b26;
  --primary-700: #cc5714;
  --secondary-50: #f3f3f3;
  --secondary-1000: #2b2b2b;
  --secondary-1100: #000;
  --tertiary-50: #fff;

  /* Font Families */
  --family-Font-EN: Montserrat, sans-serif;
  --family-Font-JP: "Noto Sans JP", sans-serif;

  /* Font Sizes */
  --size-XS: 0.75rem;
  --size-S: 0.875rem;
  --size-M: 1rem;
  --size-L: 1.125rem;
  --size-XL: 1.375rem;
  --size-XXL: 1.5rem;
  --size-Heading-3: 1.75rem;
  --size-Heading-2: 2.25rem;
  --size-Heading-1: 3rem;

  /* Line Heights */
  --line-height-XS: 1.375rem;
  --line-height-S: 1.625rem;
  --line-height-M: 2rem;
  --line-height-L: 2.5rem;
  --line-height-XL: 3.25rem;
  --line-height-XXL: 4.25rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-xxl: 4rem;

  /* Letter Spacing */
  --letter-spacing-M: 0.02rem;

  /* Spacing */
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --spacing-xxxxl: 5rem;
}

body {
  margin: 0;
  padding: 60px 0 0;
  background:
    url("../images/bg-texture.png") repeat,
    var(--secondary-50, #f3f3f3);
  background-attachment: fixed;
  text-align: left;
}

.taC {
  text-align: center;
}

h1 {
  color: var(--secondary-1100, #000);
  font-family: var(--family-Font-EN, Montserrat);
  font-size: var(--size-Heading-1, 3rem);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-XXL, 4.25rem);
  letter-spacing: 0.15rem;
}

p {
  color: var(--secondary-1000, #2b2b2b);
  font-family: var(--family-Font-JP, "Noto Sans JP");
  font-size: var(--size-M, 1rem);
  font-style: normal;
  font-weight: 400;
  line-height: var(--line-height-M, 2rem);
}

header {
  display: flex;
  align-items: center;
  padding: 10px 5%;
  background-color: rgba(223, 223, 223, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  height: 60px; /* 高さを固定して安定させる */
}
header::after {
  content: "";
  width: 10.625rem; /* ロゴの .logo と同じ幅に設定 */
  display: block;
}
nav {
  margin: 0 auto;
}
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 15px;
}

nav a {
  text-decoration: none;
  color: var(--secondary-1100, #000);
  font-family: var(--family-Font-EN);
  font-size: var(--size-M);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-M);
}

.logo {
  width: 10.625rem;
  height: 1.1875rem;
  aspect-ratio: 170/19;
}

main {
  padding: 0;
}

/* =====================
   Title styles
   ===================== */
.title-h1 {
  color: var(--secondary-1100, #000);
  font-family: var(--family-Font-EN, Montserrat, sans-serif);
  font-size: var(--size-Heading-1);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-XXL);
  letter-spacing: 0.15rem;
}

.title-h2 {
  color: var(--secondary-1100, #000);
  font-family: var(--family-Font-EN, Montserrat, sans-serif);
  font-size: var(--size-Heading-2);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-XL);
  letter-spacing: 0.225rem;
}

.title-group {
  display: flex;
  align-items: center;
  gap: 20px;
}
#about .title-group {
  display: block;
  align-items: left;
  /* gap: 20px; */
}
.title-group .jp-h1 {
  font-weight: 700;
}

.title-h3 {
  color: var(--secondary-1100, #000);
  font-family: var(--family-Font-EN, Montserrat, sans-serif);
  font-size: var(--size-Heading-3);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-L);
  letter-spacing: 0.0875rem;
  margin: 0;
}

.body-right {
  color: var(--secondary-1100, #000);
  text-align: right;
  font-family: var(--family-Font-EN, Montserrat, sans-serif);
  font-size: var(--size-M);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-M);
}
/* =====================
   Japanese headings
   ===================== */
.jp-h1 {
  color: var(--secondary-1100, #000);
  font-family: var(--family-Font-JP, "Noto Sans JP", sans-serif);
  font-size: var(--size-XXL);
  font-style: normal;
  font-weight: 400;
  line-height: var(--line-height-XL);
  margin: 0;
}

.jp-h2 {
  color: var(--secondary-1100, #000);
  font-family: var(--family-Font-JP, "Noto Sans JP", sans-serif);
  font-size: var(--size-L);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-L);
  margin: 0;
}

.jp-h3 {
  color: var(--secondary-1100, #000);
  font-family: var(--family-Font-JP, "Noto Sans JP", sans-serif);
  font-size: var(--size-S);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-S);
  letter-spacing: 0.0175rem;
}

.jp-h4 {
  color: var(--secondary-1100, #000);
  text-align: center;
  font-family: var(--family-Font-JP, "Noto Sans JP", sans-serif);
  font-size: var(--size-XL);
  font-style: normal;
  font-weight: 500;
  line-height: var(--line-height-XL);
  letter-spacing: 0.06875rem;
}

/* =====================
   Body styles
   ===================== */
.body-big {
  color: var(--secondary-1000, #2b2b2b);
  text-align: center;
  font-family: var(--family-Font-JP, "Noto Sans JP", sans-serif);
  font-size: var(--size-L);
  font-style: normal;
  font-weight: 700;
  line-height: var(--line-height-L);
  letter-spacing: 0.05625rem;
}

.body-medium {
  color: var(--secondary-1000, #2b2b2b);
  font-family: var(--family-Font-JP, "Noto Sans JP", sans-serif);
  font-size: var(--size-M);
  font-style: normal;
  font-weight: 400;
  line-height: var(--line-height-M);
  letter-spacing: 0.0175rem;
}

.body-small {
  color: var(--secondary-1000, #2b2b2b);
  font-family: var(--family-Font-JP, "Noto Sans JP", sans-serif);
  font-size: var(--size-S);
  font-style: normal;
  font-weight: 400;
  line-height: var(--line-height-S);
  letter-spacing: 0.015rem;
}

.pcno {
  display: none;
}
.spno {
  display: block;
}
/* =====================
   Image styles
   ===================== */
img {
  max-width: 100%;
  height: auto;
}

/* =====================
   Hero Section
   ===================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* text-align: center; */
  color: var(--tertiary-50);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(
    white 0.3
  ); /* Overlay for text readability - adjusted to be lighter */
  z-index: 1;
}

#about {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 618px;
  margin: 0 auto;
  padding: 20px;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content p {
  margin-bottom: 30px;
}

.hero-content button {
  background-color: var(--secondary-1100, #000);
  color: var(--tertiary-50);
  border: none;
  padding: 15px 30px;
  font-size: var(--size-L, 1.125rem);
  cursor: pointer;
  transition: background-color 0.3s;
}

.hero-content button:hover {
  background-color: var(--secondary-1000, #2b2b2b);
}

.hero-text + .hero-text {
  margin-top: 1rem;
}

#contact strong {
  color: var(--primary-700);
}

#service,
#works {
  background-color: var(--tertiary-50);
  width: 100%;
}
#service,
#works,
#contact {
  padding: var(--spacing-xxxxl) 0 0;
}
#service .content-wrap:last-child {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
}
h2 {
  margin: 0 auto var(--spacing-xxxxl);
}

/* =============================================
   Layout Components
   ============================================= */

.content-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg) var(--spacing-xxxxl);
}

/* --- Hero Section 調整 --- */
.hero {
  height: auto; /* 100vhからコンテンツ合わせに変更 */
  min-height: 600px;
  padding: var(--spacing-80) 5%;
  justify-content: space-between;
  gap: 40px;
}

.hero::before {
  display: none; /* 重なりが不要な場合は非表示に */
}

/* Add */
.hero-img {
  /* flex: 1;
  justify-content: flex-end; */
  position: relative;
  flex: 0 0 480px;
  height: 520px;
  display: flex;
  z-index: 2;
}
/* 画像を重ねるレイアウト */
.hero-img img {
  position: absolute;
  object-fit: cover;
}

.hero-img img:first-child {
  /* width: 400px;
  height: 500px;
  object-fit: cover; */
  border-radius: var(--radius-sm);
  width: 18rem;
  height: 18rem;
  top: 0;
  left: 0;
  border-radius: var(--radius-sm);
  z-index: 1;
}

.hero-img img:nth-child(2) {
  /* width: 400px;
  height: 500px;
  object-fit: cover; */
  border-radius: 200px 200px 4px 4px;
  width: 23rem;
  height: 23rem;
  bottom: 0;
  right: 0;
  /* border-radius: 120px 120px var(--radius-sm) var(--radius-sm); */
  z-index: 2;
}

/* オレンジの円の装飾 */
.hero-img::after {
  content: "";
  position: absolute;
  top: 30%;
  right: 10%;
  transform: translate(50%, -50%);
  width: 13rem;
  height: 13rem;
  background-color: var(--primary-500);
  border-radius: 50%;
  z-index: 5;
  filter: drop-shadow(4px 4px 3px rgba(54, 41, 33, 0.3));
}

/* --- Service Table --- */

/* --- Price Block --- */

.content-wrap.price-block {
  padding: 0 var(--spacing-xxxxl);
}
.price-block {
  max-width: 792px;
}
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  margin: 30px auto 0;
  table-layout: fixed;
  /* max-width: 792px; */
}

.price-table th,
.price-table td {
  width: 12.5rem;
}
.price-table th {
  font-family: var(--family-Font-JP);
  font-weight: 700;
}
.price-table th span {
  background-color: var(--primary-500);
  color: var(--tertiary-50);
  padding: 0.28rem 0;
  width: 10.125rem;
  margin: 0 auto;
  border-radius: 30px;
  display: inline-block;
}

.price-table td {
  /* background-color: var(--tertiary-50); */
  text-align: center;
  padding: 0.8rem;
  /* border-bottom: 1px solid #eee; */
}

.price-table tbody tr {
  background: var(--secondary-50, #f3f3f3);
  font-weight: 700;
}

.price-note {
  margin-top: 15px;
}

/* --- CAD Block --- */
.cad-block {
  display: flex;
  background-color: var(--tertiary-50);
  padding: var(--spacing-xxxxl) var(--spacing-xxl);
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  border-radius: 10px;
}

.cad-block .content-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-xl);
  padding: 0;
}
.cad-block .card-wrap {
  margin: 0;
  padding: var(--spacing-xxl);
  background:
    url("../images/bg-texture.png") repeat,
    var(--secondary-50, #f3f3f3);
  background-attachment: fixed;
  text-align: left;
  border-radius: var(--radius-sm);
}
.cad-block .img-wrap {
  flex-shrink: 0;
}
.cad-block .img-wrap img {
  border-radius: var(--radius-sm);
}

/* --- How to Order --- */
.order-steps {
  display: flex;
  gap: 40px;
  margin: var(--spacing-xl) auto;
  max-width: 940px;
  align-items: center;
  position: relative;
}

.step-card {
  flex: 1;
  border-color: var(--primary-500);
  border-style: solid;
  border-width: 0.6rem 0.6rem 4.2rem 0.6rem;
  padding: 1rem 1.1rem 4rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--tertiary-50);
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  align-items: center;
  position: relative;
  box-shadow: 0 5px 4px 3px rgba(0, 0, 0, 0.12);
  height: 13rem;
}
/* 1つ目と2つ目のカードの後に矢印を追加 */
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -2.5rem; /* カードとカードの中間に配置 */
  top: 55%;
  transform: translateY(-50%);

  /* 三角形の作成 */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 18px 0 18px 18px; /* 上 下 左（左の厚みが矢印の長さ） */
  border-color: transparent transparent transparent var(--primary-400);
  border-radius: var(--radius-sm);
  z-index: 10;
}

/* --- レスポンシブ対応（スマホ表示） --- */
@media (max-width: 768px) {
  .order-steps {
    flex-direction: column;
    gap: 60px; /* 矢印が入るスペースを確保 */
  }

  .step-card:not(:last-child)::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -40px; /* カードの下に配置 */
    transform: translateX(-50%);

    /* 下向きの三角形に変更 */
    border-width: 15px 10px 0 10px; /* 上 左 下 右 */
    border-color: var(--primary-400) transparent transparent transparent;
  }
}

.order-steps .step-card:first-child {
  border-color: var(--primary-300);
  color: var(--primary-300);
}
.order-steps .step-card:first-child .step-num {
  background-color: var(--primary-300);
}
.order-steps .step-card:nth-child(2) {
  border-color: var(--primary-400);
  color: var(--primary-400);
}
.order-steps .step-card:nth-child(2) .step-num {
  background-color: var(--primary-400);
}
.order-steps .step-card:nth-child(3) {
  border-color: var(--primary-500);
  color: var(--primary-500);
}
.order-steps .step-card:nth-child(3) .step-num {
  background-color: var(--primary-500);
}

.step-card p {
  margin-bottom: 0;
}
.step-card p:first-of-type::before {
  content: "";
  display: block;
  width: 2.5rem; /* アイコンのサイズ */
  height: 2.5rem;
  margin: 0 auto 1rem; /* アイコン下の余白 */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.step-card p:nth-child(2) {
  font-weight: 500;
  margin-bottom: 0;
}

/* 01: データ送信（紙飛行機アイコン） */
.step-card:nth-child(1) p:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'%3E%3C/line%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'%3E%3C/polygon%3E%3C/svg%3E");
}

/* 02: お見積り（書類アイコン） */
.step-card:nth-child(2) p:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cline x1='10' y1='9' x2='8' y2='9'%3E%3C/line%3E%3C/svg%3E");
}

/* 03: 出力（更新・出力アイコン） */
.step-card:nth-child(3) p:first-of-type::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2v6h-6'%3E%3C/path%3E%3Cpath d='M3 12a9 9 0 0 1 15-6.7L21 8'%3E%3C/path%3E%3Cpath d='M3 22v-6h6'%3E%3C/path%3E%3Cpath d='M21 12a9 9 0 0 1-15 6.7L3 16'%3E%3C/path%3E%3C/svg%3E");
}

.step-num {
  /* background-color: var(--primary-500); */
  color: var(--tertiary-50);
  width: 6.5rem;
  height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xxl);
  font-family: var(--family-Font-EN);
  font-weight: 700;
  position: absolute;
  bottom: -4.2rem;
  left: 50%;
  transform: translateX(-50%);
}

/* --- Works Grid --- */
.works-grid {
  /* display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px; */
  /* margin-top: 30px; */
}

.works-grid img {
  /* width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px; */
}

/* スライダーの外枠 */
.works-slider {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
  /* background-color: var(--tertiary-50); */
  /* ご指定のテクスチャ背景 */
  background:
    url("../images/bg-texture.png") repeat,
    var(--secondary-50, #f3f3f3);
  background-attachment: fixed;

  /* 両端を透過させるマスク設定 */
  /* 左端0-10%でフェードイン、右端90-100%でフェードアウト */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );

  position: relative;
}

/* Rooping grid*/
.works-grid {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: scroll-left 30s linear infinite;
}

/* Item images */
.works-item {
  flex-shrink: 0;
  width: auto;
}

.works-item img {
  height: 17.5rem; /* height for all section */
  width: auto;
  display: block;
  border-radius: var(--radius-sm);
  /* 画像の歪みを防ぐ */
  object-fit: contain;
}

/* Hovering pause action */
.works-slider:hover .works-grid {
  animation-play-state: paused;
}

#works .content-wrap {
  margin: var(--spacing-xxxxl) auto 0;
}

/* Animation：半分(1セット分)移動したらリセット */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* --- Contact Section --- */
#contact {
  text-align: center;
  margin-bottom: 60px;
}

.contact-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: var(--spacing-xl) auto;
}

.btn {
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-xxl);
  color: var(--tertiary-50);
  font-family: var(--family-Font-JP);
  font-weight: 700;
  transition: opacity 0.3s;
  width: 10rem;
  background-color: var(--primary-600);
  position: relative; /* 基準にする */
  padding-left: 4rem; /* アイコンが入るスペースを左側に空ける */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* .btn-mail {
  background-color: var(--primary-600);
  position: relative; 
  padding-left: 3.5rem; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
} */
/* .btn-tel {
  background-color: var(--primary-600);
} */
.btn::before {
  content: "";
  position: absolute;
  left: 2.8rem; /* 左端からの位置 */
  top: 50%; /* 上から50%の位置 */
  transform: translateY(
    -50%
  ); /* 自身の高さの半分だけ戻す（これで完璧に中央） */
  display: inline-block;
  width: 1.4rem; /* アイコンのサイズ (約20px) */
  height: 1.4rem;
  /* background-image: url("../images/mail.svg"); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* top: 0%;
  right: 10%;
  transform: translate(50%, -50%); */

  /* アイコンが黒い場合、白く反転させる設定 */
  filter: brightness(0) invert(1);
}
.btn-mail::before {
  background-image: url("../images/mail.svg");
}
.btn-tel::before {
  background-image: url("../images/phone.svg");
  left: 3.3rem; /* 左端からの位置 */
}

.btn:hover {
  opacity: 0.8;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: var(--spacing-lg) 0 1rem;
  font-size: var(--size-XS);
  color: #999;
  /* border-top: 1px solid #eee; */
  font-family: var(--family-Font-JP);
}

.fwBold {
  font-weight: 700;
}
/* =============================================
   Responsive (Mobile)
   ============================================= */
@media (max-width: 768px) {
  .spno {
    display: none;
  }
  .pcno {
    display: block;
  }
  body {
    padding-top: 50px; /* ヘッダーの高さ分 */
  }
  .title-group {
    display: block;
  }
  h2 {
    margin: 0 auto var(--spacing-xl);
  }
  /* --- Header & Hamburger --- */
  header {
    justify-content: space-between;
    padding: 10px 5%;
    height: 60px;
  }

  header::after {
    display: none;
  } /* デスクトップ用の中央寄せ補正を消す */

  .logo {
    width: 140px; /* モバイル用に少し小さく */
    z-index: 1100;
  }

  /* ハンバーガーボタンのスタイル */
  .menu-trigger {
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    display: flex !important;
    z-index: 1100 !important;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .menu-trigger span {
    display: block;
    width: 28px; /* 線の長さ */
    height: 2px; /* 線の太さ */
    background-color: var(--secondary-1100);
    position: absolute;
    left: 8px; /* (44px - 28px) / 2 = 8px で中央配置 */
    transition: all 0.3s ease-in-out;
    border-radius: 2px; /* 角を少し丸めると柔らかい印象に */
  }

  /* 三本線の初期配置（上下対称に） */
  .menu-trigger span:nth-child(1) {
    top: 14px;
  } /* 上 */
  .menu-trigger span:nth-child(2) {
    top: 21px;
  } /* 中 */
  .menu-trigger span:nth-child(3) {
    top: 28px;
  } /* 下 */

  /* アクティブ時（×印に変形） */
  /* 真ん中の線を消し、上下を45度回転させて中央で交差させる */
  .menu-trigger.active span:nth-child(1) {
    top: 21px; /* 中央に寄せる */
    transform: rotate(45deg);
  }
  .menu-trigger.active span:nth-child(2) {
    opacity: 0; /* 透明にする */
    transform: translateX(-10px); /* 左に逃がすアニメーション */
  }
  .menu-trigger.active span:nth-child(3) {
    top: 21px; /* 中央に寄せる */
    transform: rotate(-45deg);
  }

  /* ナビゲーションメニュー（全画面） */
  nav {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態は画面外 */
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.5s;
    margin: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav.active {
    right: 0;
  }

  nav a {
    font-size: var(--size-XL);
  }

  /* ナビゲーションの強制上書き */
  nav#nav-menu {
    position: fixed !important; /* 強制適用 */
    top: 0 !important;
    right: -100% !important; /* 初期状態は隠す */
    width: 100% !important;
    height: 100vh !important;
    background: #fff !important; /* 透明度があると中身が透けるので一旦白に */
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1000 !important;
    transition: right 0.4s ease-in-out !important;
  }

  /* アクティブ時 */
  nav#nav-menu.active {
    right: 0 !important;
  }

  nav#nav-menu ul {
    flex-direction: column;
    gap: 30px;
  }

  nav#nav-menu a {
    font-size: var(--size-XXL);
  }

  /* ハンバーガーボタンの再調整 */
  nav ul {
    text-align: center;
    flex-direction: column;
    gap: 30px;
  }

  .hero-content h1 {
    font-size: 230%;
  }
  /* --- Hero Section --- */
  .hero {
    flex-direction: column;
  }
  .hero-img {
    justify-content: center;
  }
  .hero-img img:first-child {
    width: 100%;
    height: auto;
  }

  .hero {
    flex-direction: column;
    padding: var(--spacing-xxl) 1rem;
    height: auto;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
    /* margin-bottom: 40px; */
  }

  .hero-img {
    flex: 0 0 auto;
    width: 100%;
    height: 350px;
  }

  .hero-img img:first-child {
    width: 12rem;
    height: 12rem;
  }
  .hero-img img:nth-child(2) {
    width: 16rem;
    height: 16rem;
  }
  .hero-img::after {
    width: 8rem;
    height: 8rem;
  }

  /* --- Service & Table --- */
  .cad-box,
  .order-steps {
    flex-direction: column;
  }
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-btns {
    flex-direction: column;
    align-items: center;
  }

  .content-wrap.price-block {
    overflow-x: visible;
    padding: 0 var(--spacing-lg) var(--spacing-xxxxl);
  }

  /* テーブルだけを横スクロールさせる設定 */
  .table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-bottom: 20px; /* 注釈との間隔 */
  }
  /* Chrome, Safari用 */
  .table-scroll-container::-webkit-scrollbar {
    display: none;
  }
  .price-table {
    width: 500px; /* スクロールを発生させるための固定幅 */
    margin: 0; /* 余計なマージンをリセット */
  }

  /* 注釈：これは画面幅（100%）に収まり、スクロールしません */
  .price-note {
    width: 100%;
    white-space: normal; /* 折り返しを許可 */
    margin-top: 10px;
  }

  /* --- CAD Block --- */
  .cad-block {
    padding: 0 var(--spacing-lg) var(--spacing-xxxxl);
    margin: 0;
  }
  .cad-block .content-inner {
    flex-direction: column;
  }

  .cad-block .card-wrap {
    padding: 20px;
  }

  /* --- Steps --- */
  .order-steps {
    gap: var(--spacing-xxl);
    margin: var(--spacing-xl) 2rem;
  }

  .step-card {
    width: 100%;
    height: auto;
    padding: 20px 20px 60px;
  }

  .step-card:not(:last-child)::after {
    top: auto;
    bottom: -6.5rem;
    transform: translateX(-50%);
    border-width: 25px 30px 0 30px;
    border-color: var(--primary-400) transparent transparent transparent;
  }

  /* --- Works --- */
  #works .content-wrap {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-xxxxl);
  }
  #works .content-wrap {
    margin: 0 auto 0;
  }
  /* --- Contact --- */
  .contact-btns {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 260px;
    /* margin: 0 auto; */
  }
  .btn {
    width: 100%;
    max-width: 300px;
    padding-left: 3rem;
  }
  .btn::before {
    width: 2rem;
    height: 2rem;
    left: 4.5rem;
  }
}

/* --- PC版のみ適用 (769px以上) --- */
@media (min-width: 769px) {
  header::after {
    content: "";
    width: 10.625rem;
    display: block;
  }
  nav {
    margin: 0 auto;
  }
  .menu-trigger {
    display: none; /* PCではハンバーガーを隠す */
  }
}

/* --- モバイル版 (768px以下) --- */
@media (max-width: 768px) {
}
