*{
    padding: 0;
    margin: 0;

}

html, body {
  width: 100%;
  overflow-x: hidden;
}

h1{
    font-size: 40px;
    margin-bottom: 20px;
}

h2{
    font-size: 36px;
    margin-bottom: 20px;  
}

h3{
    font-size: 30px;
    margin-bottom: 20px;
    
}

h4{
    font-size: 24px;
    margin-bottom: 20px;
    
}
.container{
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
}


/* ページ全体 */
body {
  margin: 0;
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
}

#header-spacer {
  width: 100%;
  height: 80px;
  pointer-events: none;
}

/* Support h2タイトル */
.container header h2 {
  position: relative;
  display: inline-block;   /* 下線を文字幅に合わせる */
  padding-bottom: 10px;
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 36px;
  font-weight: bold;
  text-align: left;
  margin: 40px 0 60px;     /* 上下の余白 */
  width: auto;             
  max-width: 100%;
}

/* 下線 */
.container header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #e38cfe;
  border-radius: 2px;
}



main {
    background-color: white;
    padding: 30px;
    padding-top: 0;
    text-align: left;
}

/* FAQ h3タイトル */
h3 {
  position: relative;
  width: 1500px;          /* 横幅を固定 */
  max-width: 100%;       /* 画面幅が狭いときは自動で縮む */
  padding-bottom: 10px;  /* 線との余白 */
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 32px;
  text-align: left;      /* 左寄せ */
}

/* 文字下 色付き下線 */
h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;             /* 文字の下に線を表示 */
  width: 100%;           /* h2の幅に合わせて線を引く */
  height: 4px;
  background-color: #e38cfe;
}

h4,.h4-pj {
  position: relative;
  padding-left: 15px;  /* 縦線の分だけ内側に余白を追加 */
  width: 1500px;          /* 横幅を固定 */
  max-width: 100%;       /* 画面幅が狭いときは自動で縮む */
  padding-bottom: 0px;  /* 線との余白 */
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  text-align: left;      /* 左寄せ */
}

.FAQ header {
    margin-bottom: 0px;
}

.Contact header {
    margin-bottom: 0px;
}

/* 左端の縦線 */
h4::before {
  content: "";
  position: absolute;
  left: 0;           /* H4の左端に配置 */
  top: 0;
  height: 100%;      /* H4の高さに合わせる */
  width: 4px;        /* 縦線の太さ */
  background-color: #e38cfe; /* 線の色 */
  border-radius: 2px; /* 丸みを付けたい場合 */
}

/* 左端の縦線 */
.h4-pj::before {
  content: "";
  position: absolute;
  left: 0;           /* H4の左端に配置 */
  top: 0;
  height: 100%;      /* H4の高さに合わせる */
  width: 4px;        /* 縦線の太さ */
  background-color: #ff8800; /* 線の色 */
  border-radius: 2px; /* 丸みを付けたい場合 */
}



.pj-link {
  position: relative;
  color: #ff8800;         /* 下線と同系色で統一 */
  font-weight: 550;       /* 少し強調 */
  text-decoration: none;  /* デフォルトの下線を消す */
  transition: color 0.2s; /* ホバー時の色変化 */
}

/* 下線アニメーション（中央から左右に広がる） */
.pj-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;            /* 文字の少し下に線を引く */
  width: 0;
  height: 1px;
  background-color: #ff8800;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.pj-link:hover::after {
  width: 100%; /* 中央から両端に伸びる */
}


.link {
  position: relative;
  color: #e38cfe;         /* 下線と同系色で統一 */
  font-weight: 550;       /* 少し強調 */
  text-decoration: none;  /* デフォルトの下線を消す */
  transition: color 0.2s; /* ホバー時の色変化 */
}

/* 下線アニメーション（中央から左右に広がる） */
.link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;            /* 文字の少し下に線を引く */
  width: 0;
  height: 1px;
  background-color: #e38cfe;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.link:hover::after {
  width: 100%; /* 中央から両端に伸びる */
}




p {
  position: relative;
  padding-left: 15px;  /* 縦線の分だけ内側に余白を追加 */
  width: 1500px;          /* 横幅を固定 */
  max-width: 100%;       /* 画面幅が狭いときは自動で縮む */
  margin-top: 30px;
  padding-bottom: 0px;  /* 線との余白 */
  font-family: "游ゴシック", "Yu Gothic", sans-serif;
  font-size: 20px;
  font-weight: 550;
  text-align: left;      /* 左寄せ */
}


.pp-link {
  position: relative;
  color: #e38cfe;         /* 下線と同系色で統一 */
  font-weight: 500;       /* 少し強調 */
  text-decoration: none;  /* デフォルトの下線を消す */
  transition: color 0.2s; /* ホバー時の色変化 */
}

/* 下線アニメーション（中央から左右に広がる） */
.pp-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;            /* 文字の少し下に線を引く */
  width: 0;
  height: 1px;
  background-color: #e38cfe;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.pp-link:hover::after {
  width: 100%; /* 中央から両端に伸びる */
}

.VehicleStructure img {
  display: block;          /* ブロック要素にして中央寄せ可能に */
  width: 90%;              /* コンテナの90%の横幅で表示 */
  max-width: 1500px;       /* コンテナの上限と揃える（任意） */
  height: auto;            /* 縦横比維持 */
  margin: 20px auto;       /* 上下20px、左右自動で中央寄せ */
  border-radius: 8px;      /* （任意）角を少し丸く */
}

.image-wrapper {
  position: relative;
  width: 90%;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
}

.image-wrapper img {
  width: 100%;
  display: block;
  border-radius: 12px;
  transition: transform 0.4s ease;
}

/* ホバー時の画像拡大 */
.image-wrapper:hover img {
  transform: scale(1.05);
}

/* オーバーレイ全体をリンク化 */
.overlay {
  position: absolute;
  top: 0;
  right: -40%;
  width: 40%;
  height: 100%;
  background: rgba(227, 140, 254, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  text-decoration: none;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 12px 0 0 12px;
}

/* ホバーで右からスライドして表示 */
.image-wrapper:hover .overlay {
  right: 0;
  opacity: 1;
}

/* テキストの軽いアニメーション */
.overlay span {
  transition: transform 0.3s ease;
}

.image-wrapper:hover .overlay span {
  transform: translateX(5px);
}



.contact-button-wrapper {
    margin-top: 30px; 
}

.contact-dm-button {
    /* ボタンをブロック要素にし、親要素の幅いっぱいに広げる */
    display: block; 
    width: 50%;
    max-width: 400px; /* PCなど画面が広い場合に幅を制限する */
    margin: 0; 
    margin-left: 4vh;  /* 左マージンを0に固定 */
    margin-right: auto;
    margin-bottom: 4vh;

    /* デザイン */
    background-color: rgba(227, 140, 254, 0.85); /* X（Twitter）のブランドカラー */
    color: white;
    text-decoration: none; /* 下線を消す */
    text-align: center;
    border: 2px solid rgba(227, 140, 254, 0.85);;

    /* タップしやすいようにパディングとフォントサイズを大きくする */
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    
    /* ホバー/タップ時の視覚的なフィードバック */
    transition: background-color 0.3s ease;
}

.contact-dm-button:hover {
    background-color: #ffffff;
    color: rgba(227, 140, 254, 0.85);;
    border: 2px solid rgba(227, 140, 254, 0.85);;
}



.mail {
  color: #e38cfe;
  font-size: 1.5rem;
  font-weight: bold;
}



/* スマホ対応（狭い画面では下にオーバーレイ表示） */
@media (max-width: 850px) {

  h2 .h2-titele {
    margin-bottom: 50px;
  }

  .overlay {
    right: 0;
    right: -53%;
    width: 53%;
    height: 100%;
    border-radius: 12px 12px 0 0;
  }


  .contact-button-wrapper {
        margin-top: 20px;
  }

  .contact-dm-button {
        /* スマホでは最大幅を解除し、画面幅を広く使う */
        max-width: 100%;
        padding: 14px 15px;
        font-size: 1rem;
  }

.FAQ header {
    margin-bottom: 50px;
}

.Contact header {
    margin-bottom: 50px;
}


}