* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro",
    "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO";
}

body {
  background-image: url(../images/tax_quiz_bg.jpg);
  z-index: 0;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.container {
  margin: 0 auto;
  max-width: 1200px;
  padding-bottom: 5em;
}

hr {
  border-top: 2px dotted #888;
  border-right: none;
  border-bottom: none;
  border-left: none;
  margin: 0 20px;
}

.main_visual_container {
  display: flex;
  font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro",
    "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO";
  margin: 0 40px 20px 40px;
  position: relative;
  align-items: flex-start;
}

.main_visual_left {
  flex: 0 0 auto; /* 固定幅にする */
  width: 45%;
  position: relative;
  z-index: 1;
}

.main_visual_right {
  flex: 1; /* 残りの幅を全て使う */
  /* padding-left: 200px; 左側の画像が重なる分のスペースを確保 */
  text-align: right;
  position: absolute;
  right: 0;
  width: 74%;
  z-index: 2;
}

/* 画像のサイズ調整 */
.main_visual_left img {
  max-width: 500px;
}

.main_visual_right img {
  max-width: 100%;
  height: auto;
}

.right_content01 img {
  width: 800px;
}

.right_content02 img {
  width: 500px;
}

/* テキスト部分のスタイル調整 */
.main_visual_right p {
  line-height: 1.6;
}

.quiz_form_container {
  position: relative;
  font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro",
    "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO";
}

.tax_dog_container {
  position: absolute;
  z-index: 10;
  top: -16px; /* 上の位置を調整 */
  right: 10px; /* オレンジのボーダーに近づける */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tax_dog_text {
  background: #fef1d8;
  border-radius: 100%;
  padding: 2px 40px;
  margin-bottom: -20px; /* 犬に重ねる */
  margin-right: 60px; /* 左にずらす */
  position: relative;
  z-index: 1; /* 犬の上に表示 */
  transform: rotate(-8deg);
}

.tax_dog_text p {
  text-align: center;
  font-size: 0.9rem;
}

.tax_dog {
  position: relative;
  z-index: 2;
}

.tax_dog img {
  width: 140px;
  height: 100%;
}

.quiz_form_container fieldset {
  border: 2px solid #f6ab00;
  border-radius: 16px;
  padding: 20px 0;
  margin: 0 40px;
  background: #fff;
}

.quiz_form_container legend {
  background: #f6ab00;
  color: #fff;
  text-align: center;
  padding: 10px 40px;
  border: 4px solid #fff;
  border-radius: 9999px;
  font-weight: bold;
}

.quiz_title {
  position: relative;
  display: flex;
  align-items: center;
}

.quiz_number {
  position: absolute;
}

.quiz_number img {
  width: 120px;
  height: auto;
}

.quiz_text {
  background: #e8f5fd;
  padding: 10px 120px;
  width: 100%;
}

.options {
  display: flex;
  margin: 20px 0 10px 120px;
  max-width: 600px;
  justify-content: space-between;
  gap: 20px;
}

/* .option {
    flex: 1;
    text-align: center;
} */

.hint {
  font-size: 0.8rem;
  color: #ec7682;
  margin: auto auto 40px 120px;
}

.hint span {
  color: #fff;
  background: #ec7682;
  /* margin: 6px; */
  padding: 6px;
  border-radius: 100%;
}

.form_button {
  text-align: center;
}

.quiz_form_container button {
  background: #f6ab00;
  border: 1px solid #fff;
  border-radius: 99999px;
  color: #fff;
  padding: 0.3em 2em;
  font-weight: bold;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 2em;
}

.quiz_form_container button:hover {
  background: #ffd36d;
}

/* --------------------個人情報--------------------- */
.profile_container {
  margin: 60px;
  font-family: Arial, sans-serif;
}

.profile_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 1;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.profile_table th,
.profile_table td {
  /* border: 1px solid #ddd; */
  padding: 12px;
  text-align: left;
}

.profile_table th {
  background-color: #f2f0f0;
  font-weight: bold;
  width: 150px;
  vertical-align: middle;
}

.profile_table td {
  background-color: #f8f9fa;
}

.required {
  color: red;
  font-weight: bold;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

select {
  height: 40px;
}

.address_row td {
  padding: 0;
}

.address_table {
  width: 100%;
  border-collapse: collapse;
}

.address_table td {
  border: none;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.address_table td:last-child {
  border-bottom: none;
}

.address_table label {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: bold;
}

/* .note {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 4px solid #007bff;
} */

.note {
  font-size: 0.8rem;
  color: #888;
}

/* --------------------個人情報--------------------- */

@media screen and (max-width: 768px) {
  body {
    background-image: url(../images/tax_quiz_bg_sp.jpg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center top;
  }

  .is_sp_none {
    display: none;
  }
  .container {
    margin: 0 10px;
  }

  /* メインビジュアル部分 */
  .main_visual_container {
    flex-direction: column;
    margin: 20px;
    padding-top: 20px;
    align-items: stretch;
  }

  .main_visual_left {
    width: 100%;
    position: relative;
    z-index: 1;
    order: 2; /* 下に配置 */
    margin: -50px auto 0 auto;
  }

  .main_visual_left img {
    width: 70vw;
  }
  .main_visual_right {
    position: static;
    width: 100%;
    text-align: center;
    z-index: 2;
    order: 1; /* 上に配置 */
  }

  .right_content01 img {
    width: 100%;
  }

  .right_content02 img {
    width: 100%;
    max-width: 75vw;
  }

  .main_visual_right p {
    font-size: 0.9rem;
    padding: 0 10px;
    margin: 10px 0;
    text-align: left;
  }

  /* クイズフォーム部分 */
  .quiz_form_container fieldset {
    margin: 0 20px;
    padding: 20px 10px;
  }

  .quiz_form_container legend {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  /* タックス犬の調整 */
  .tax_dog_container {
    top: -5em;
    right: 0;
  }

  .tax_dog img {
    width: 100px;
  }

  .tax_dog_text {
    padding: 2px 20px;
    margin-right: 40px;
  }

  .tax_dog_text p {
    font-size: 0.7rem;
  }

  /* クイズ部分 */
  .quiz_title {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz_number {
    position: absolute;
    margin-bottom: 10px;
    top: -50px;
    left: -30px;
  }

  .quiz_number img {
    width: 80px; /* スマホでサイズ縮小 */
  }

  .quiz_text {
    padding: 30px 15px 15px 15px; /* margin調整 */
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .options {
    flex-direction: column; /* 縦並び */
    margin: 15px 20px 10px 20px; /* margin調整 */
    gap: 10px;
  }

  .option {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .option input[type="radio"] {
    flex-shrink: 0;
  }

  .option label {
    font-size: 0.9rem;
  }

  .hint {
    margin: 10px 20px 60px 20px; /* margin調整 */
    font-size: 0.75rem;
  }

  /* プロフィール入力欄 */
  .profile_container {
    margin: 40px 20px;
  }

  .profile_table,
  .profile_table tbody,
  .profile_table tr,
  .profile_table th,
  .profile_table td {
    display: block;
  }

  .profile_table tr {
    margin-bottom: 3px;
    /* border: 1px solid #ddd; */
    /* border-radius: 8px; */
    overflow: hidden;
  }

  .profile_table th {
    width: 100%;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }

  .profile_table td {
    width: 100%;
    padding: 10px;
  }

  .address_table,
  .address_table tbody,
  .address_table tr,
  .address_table td {
    display: block;
  }

  .address_table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }

  .address_table label {
    display: block;
    margin-bottom: 5px;
  }

  .form_button {
    margin: 20px 0;
  }

  .quiz_form_container button {
    padding: 12px 24px;
    font-size: 1.3rem;
  }

  .note {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}

@media screen and (max-width: 400px) {
  .main_visual_left {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .main_visual_container {
    margin: 0 10px 20px 10px;
  }

  .quiz_form_container fieldset {
    margin: 0 10px;
  }

  .profile_container {
    margin: 30px 10px;
  }

  .quiz_text {
    font-size: 0.85rem;
  }

  .option label {
    font-size: 0.85rem;
  }

  .hint {
    font-size: 0.7rem;
  }
}

/* サンクスページ用スタイル */
.thanks_message_container {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #ff6b35;
  border-radius: 15px;
  padding: 40px;
  margin: 40px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.thanks_message_container h2 {
  color: #ff6b35;
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.thanks_message_container p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .thanks_message_container {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .thanks_message_container h2 {
    font-size: 1.5rem;
  }
  
  .thanks_message_container p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .thanks_message_container {
    margin: 15px;
    padding: 25px 15px;
  }
  
  .thanks_message_container h2 {
    font-size: 1.3rem;
  }
  
  .thanks_message_container p {
    font-size: 0.9rem;
  }
}
input.input_zipcode {
  width: 100px;
}