:root {
  --color-primary: #ed7783;
  --color-secondary: #fce5e9;
  --color-accent: #2cac38;
  --color-text: #333;
}

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

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-secondary);
}

body::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1081 / 1350;
  background-image: url(../images/2026/tax_quiz_bg.png);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  pointer-events: none;
  content: "";
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 80%,
    transparent 100%
  );
}

.container {
  display: flow-root;
  position: relative;
  z-index: 1;
  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: 20px 40px;
  position: relative;
  align-items: flex-start;
}

.main_visual_left {
  flex: 0 0 auto; /* 固定幅にする */
  width: 45%;
  max-width: 400px;
  aspect-ratio: 406 / 554;
  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 {
  position: absolute;
  height: auto;
}

.main_visual_kinchaku {
  top: 0;
  left: 0;
  z-index: 1;
  width: 66%;
}

.main_visual_prize {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
}

.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";
  margin-top: -100px;
  z-index: 1;

  @media (max-width: 768px) {
    margin-top: -60px;
  }
}

/* --------------------送信完了--------------------- */
.thanks_page .quiz_form_container {
  margin: 20px 40px 0;
}

.thanks_message_container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
  box-shadow: 0 8px 24px rgba(237, 119, 131, 0.12);
}

.thanks_message_container h1 {
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.4;
}

.thanks_message_container p {
  font-size: 1rem;
  line-height: 2;
}

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

.tax_dog_text {
  background: #fff100;
  border-radius: 100%;
  padding: 10px 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 var(--color-primary);
  border-radius: 16px;
  padding: 20px 0;
  margin: 0 40px;
  background: #fff;
}

.quiz_form_container legend {
  background: var(--color-primary);
  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;
  padding: 10px;
}

.quiz_text {
  background: var(--color-secondary);
  padding: 10px 120px;
  width: 100%;
}

.options {
  display: flex;
  margin: 20px 0 10px 120px;
  padding: 0;
  max-width: 600px;
  gap: 50px;
  list-style: none;
}

.option_note {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
}

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

.hint {
  font-size: 0.8rem;
  color: var(--color-accent);
  margin: auto auto 40px 120px;
}

.hint > span:first-child {
  color: #fff;
  background: var(--color-accent);
  margin-right: 6px;
  padding: 6px;
  border-radius: 100%;
}

.hint_item {
  display: inline-block;
  margin-right: 2em;
  color: var(--color-accent);
}

.hint_item:last-child {
  margin-right: 0;
}

.form_button {
  text-align: center;
}

.quiz_form_container button {
  background: var(--color-primary);
  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;
  @media (max-width: 768px) {
    margin-bottom: 0;
  }
}

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

/* --------------------個人情報--------------------- */
.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;
}


/* Mailform Proが付与する余白による入力欄のはみ出しを防止 */
#mailformpro input[type="text"],
#mailformpro input[type="tel"],
#mailformpro select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

#mailformpro 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) {
  .is_sp_none {
    display: none;
  }
  .container {
    margin: 0 10px;
  }

  .thanks_page .quiz_form_container {
    margin: 24px 10px 0;
  }

  .thanks_message_container {
    padding: 28px 18px;
  }

  .thanks_message_container h1 {
    margin-bottom: 14px;
    font-size: 1.35rem;
  }

  .thanks_message_container p {
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
  }

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

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

  .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: 1rem;
    padding: 0 10px;
    margin: 10px 0;
    text-align: left;
  }

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

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

  /* タックス犬の調整 */
  .tax_dog_container {
    display: none;
  }

  .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: 1.125rem;
    line-height: 1.6;
  }

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

  .options li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .option_note {
    flex-basis: 100%;
    margin-top: 0;
    margin-left: 24px;
    font-size: 1rem;
    line-height: 1.5;
  }

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

  .options li label {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .hint {
    margin: 10px 20px 60px 20px; /* margin調整 */
    font-size: 1rem;
    line-height: 1.6;
  }

  .hint--items {
    position: relative;
    padding-left: 82px;
  }

  .hint--items > span:first-child {
    position: absolute;
    top: 0;
    left: 0;
    margin-right: 0;
    line-height: 1.2;
  }

  .hint--items .hint_item {
    display: block;
    margin-right: 0;
    line-height: 1.6;
  }

  /* プロフィール入力欄 */
  .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: 1rem;
    line-height: 1.6;
  }

  input[type="text"],
  input[type="tel"],
  select {
    font-size: 1rem;
  }
}

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

@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,
  .options li label {
    font-size: 1.125rem;
  }

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


/* --------------------応募締切・当選者発表--------------------- */
.deadline_container {
  margin: 24px 40px 0;
  padding: 22px 28px;
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(237, 119, 131, 0.12);
}

.deadline_summary {
  display: grid;
  grid-template-columns: minmax(460px, 1fr) minmax(0, 1.25fr);
  gap: 24px 36px;
  align-items: center;
}

.deadline_item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.deadline_item h2 {
  display: flex;
  flex: none;
  align-items: center;
  font-size: 1.35rem;
  line-height: 1.4;
  white-space: nowrap;
}

.deadline_item h2::before {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
}

.deadline_item h2::after {
  margin-left: 8px;
  font-weight: normal;
  content: "／";
}

.deadline_item--result h2::before {
  background: var(--color-accent);
}

.deadline_item p {
  min-width: 0;
  line-height: 1.7;
}

.deadline_item--date p {
  flex: 1 1 240px;
}

.deadline_item--date time {
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  font-weight: bold;
}

.deadline_item--result p {
  flex: 1 1 280px;
  font-size: 0.9rem;
}

.deadline_notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dotted #aaa;
  list-style: none;
}

.deadline_notes li {
  color: #666;
  font-size: 0.75rem;
  line-height: 1.6;
}

.deadline_notes li::before {
  content: "※";
}

@media screen and (max-width: 768px) {
  .deadline_container {
    margin: 20px 10px 0;
    padding: 20px 16px;
  }

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

  .deadline_item {
    display: block;
  }

  .deadline_item h2 {
    margin-bottom: 6px;
    font-size: 1.2rem;
  }

  .deadline_item h2::after {
    content: "";
  }

  .deadline_item p {
    margin-left: 22px;
  }

  .deadline_item--date time {
    font-size: 1.35rem;
  }

  .deadline_item--result p {
    font-size: 0.9rem;
  }

  .deadline_notes {
    display: block;
    margin-top: 20px;
  }

  .deadline_notes li + li {
    margin-top: 6px;
  }
}

@media screen and (max-width: 1000px) {
  .deadline_summary {
    grid-template-columns: 1fr;
  }
}
