@charset "utf-8";

/*----------追加----------*/
html {
    padding-top: 30px;
    background-color: #fffff0;
}
/*----------追加終了----------*/

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}


.main-content {
margin: 0;
padding: 0;
background-color: #fffff0;
}

.content-wrapper {
  margin: 0;
  padding: 0 100px;
  background-color: #fffff0;
  border-radius: 10px;
}

.egotest {
  margin: 0 auto;
  padding: 20px 60px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
margin: 0; /* 上下左右の余白をなくす */
padding: 0; /* 必要に応じて追加 */
padding:  0 5%;
}

/*-------tb and tb-------*/
@media screen and (max-width: 769px) {
    h1 { padding:  0; }
}
/*-------end tb /*-------

/*-------tb and tb-------*/
@media screen and (max-width: 400px) {
    h1 { padding:  0; }
}
/*-------end tb /*-------



/* 画像を中央に配置し、周りにマージンを追加 */
h1 img {
  display: block;
  margin: 0 auto; /* 上下の中央に配置 */
  padding: 0; /* 必要に応じて追加 */
  max-width: 100%; /* 親要素の幅に応じて画像が縮小される */
  /* border-radius: 8px; ボーダーを角丸にする */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 影を追加 */
}




h2 {
  color: #643907;
  font-size:  24px;
}

h3 {
  font-size:  20px;
  color: rgb(53, 52, 52);
}



li {
  color: #64530e; /* リストアイテムの色 */
  font-size: 14px; /* フォントサイズ */
  margin-bottom: 4px; /* 下の余白 */
}

/* ------ここにkyoutu-3questions.css , kyoutu-3question5.cssの情報が入る */
/*-------------------------------------------------------------- */

/* ホバー時の視覚的効果 */
.answer-options label:hover {
  background-color: rgba(255, 204, 204, 0.6); /* ホバー時の背景色を薄い赤に（例：薄い赤） */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* 影を少し大きくして丸みを増す */
  border-radius: 8px; /* ラベルに丸みを追加 */
}


.answer-options input[type="radio"] {
  margin-right: 10px; /* ラジオボタンとテキストの間に余白を追加 */
  cursor: pointer; /* ラジオボタン自体にも指マークを適用 */
  width: auto; /* ボタンの幅は変えない */
  height: auto; /* ボタンの高さは変えない */
  position: relative; /* ラベル内での位置は維持 */
}



.answer-options .arrow {
  font-size: 16px;
  color: #8b5e34; /* 矢印の色 */
  margin: 0 10px; /* 矢印の左右の余白 */
}


.highlight-link {
  color: #00e1ff;
  font-weight: bold;
  text-decoration: underline; /* アンダーラインをつける */
}



.error-message {
  color: red;
  font-weight: bold;
  font-size: 14px; /* フォントサイズを調整 */
  margin-bottom: 10px;
}


.scrollable-container {
  width: 600px; /* 幅を指定 */
  height: 200px; /* 高さを指定 */
  overflow-y: auto; /* 縦方向のスクロールを有効にする */
  border: 1px solid #ccc; /* 枠線を追加 */
 border-radius: 10px; /* 角を丸くする */
  padding: 10px; /* 内側の余白を追加 */
}


 /* --------質問後のForm送信ボタン----------------- */
  /* --------診断するボタンと法人ボタンとは仕様が異なるので注意！！----------------- */
/* --------送信ボタン----------------- */
/* 送信ボタン周りのリセット */
.btn-image {
  padding: 0; /* パディングを削除 */
  border: none; /* ボーダーを削除 */
  background: none; /* 背景色を削除 */
  outline: none; /* フォーカス時のアウトライン（枠線）を削除 */
}

.btn-container {
  text-align: center;
  margin: 20px 0;
}

/* ボタン内の画像を調整 */
.btn-image img {
  transition: all 0.3s ease; /* アニメーションで画像がスムーズに切り替わる */
  max-width: 300px; /* 最大幅を設定 */
  height: auto; /* 高さは自動で調整 */
}

/* パソコンのカーソルホバー時に画像を切り替える タッチディバイスのはこの下に*/
@media (hover: hover) {
  .btn-image:hover img {
    content: url('../imag/sousinb2.jpg'); /* ホバー時に画像を変更 */
  }
}

/* タッチデバイス用: ホバーが無い場合のスタイル */
@media (hover: none) {
  .btn-image:hover img {
    content: none; /* ホバー時の画像切り替えを無効化 */
  }
  /* 画像をクリックしても切り替わらないようにする */
  .btn-image:active img {
    content: none; /* クリック時も画像が変わらないように */
  }
}

 /* --------質問後のForm送信ボタン　おわり----------------- */


 
/* レスポンシブデザインのためのメディアクエリ */
@media (max-width: 1200px) {
  h1 img {
    width: auto; /* デスクトップサイズの幅を指定 */
    height: auto; /* 高さは自動で設定 */
  }

  /*----------追加----------*/
  body {
    /*padding: 10px;*/ /* パディングを小さく */
    padding: 0px;
  }
  /*----------追加終了----------*/
  
  .content-wrapper{
    padding: 20px;
  }

  .egotest {
    padding: 10px; /* パディングを小さく */
  }

  
  .scrollable-container {
    height: 150px; /* 高さを小さく */
    width: auto; /* 幅を指定 */
  }

  
  .question-text {
    width: auto; 
  }

  .answer-options {
    width: 78%; /* ラジオボタンを100%幅に */
    display: flex;
    justify-content: space-between;
    margin-top: 10px; /* 上に少しマージンを追加 */
  }


}

@media (max-width: 900px) {

    /*----------追加----------*/
    h1 {
      padding: 0;
    }

    .logo img {
      width: 80px; 
      height: auto; /* アスペクト比を保持 */
      margin-left: 20px; /* 左側に隙間 */
    }
    /*----------追加終了----------*/

  .egotest {
    margin: 0;
    padding: 5px 5px;

  }
  .content-wrapper{
    margin: 0;
    padding: 0 5px;
    }
    
  

.question {
  grid-template-columns: 1fr; /* 質問項目と回答を縦に並べる */
  margin: 0;
  padding: 0 8px;
}

.question-text {
  margin-bottom: 10px; /* 質問と回答の間の余白 */
}

.response-labels,
.answer-options {
  max-width: none; /* ラベルとラジオボタンの幅制限を解除 */
  width: 90%;
}
}



@media (max-width: 480px) {

    /*----------追加----------*/
    .logo img {
      margin-left: 0px;
    }
    /*----------追加終了----------*/
    
.btn-image img {
  max-width: 200px; /* モバイル端末用に画像をさらに小さく設定 */
}

h2 {
  font-size: 18px; /* フォントサイズを小さく */
}


}



