:root {
  --serif: "Shippori Mincho", serif;
  --sans-serif: "Noto Sans JP", sans-serif;
  --kakugo: "Zen Kaku Gothic New", sans-serif;
}

body {
  font-family: var(--sans-serif);
  min-height: 100vh;
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #333;
  @media (max-width: 768px) {
    padding-bottom: 70px;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
main {
  flex: 1;
}

/* 言語切り替え制御 */
body[data-lang="en"] .lang-ja {
  display: none !important;
}
body[data-lang="ja"] .lang-en {
  display: none !important;
}
/* インライン要素用の調整 */
span.lang-ja,
span.lang-en {
  display: inline;
}
ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

/* ====================================================
   Footer
   ==================================================== */
.footer {
  background-color: #3b5998;
  background-image: url("images/cta_bg.webp");
  background-size: cover;
  background-position: center;
  padding-bottom: 6rem;
  padding-top: 6rem;
}

.footer.is-active {
  transform: translateY(0);
}

.footer_close {
  display: none;
}

.footer.is-active .footer_close {
  display: block;
}

.footer.is-active .footer_open {
  display: none;
}

.footer_inner {
  padding: 10rem 2rem 6rem 2rem;
  text-align: center;
  position: relative;
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1280px;
  margin: auto;
  @media (width < 1024px) {
    flex-direction: column;
    width: 100%;
    gap: 8rem;
  }
}

.footer_clm {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.footer_img {
  display: block;
  max-width: 380px;
  margin: -120px auto 10px auto;
}

.footer_logo img {
  display: block;
  margin: 2rem auto 0.5rem auto;
  height: 3rem;
}

.footer_name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #39538e;
  text-align: center;
  font-family: var(--sans-serif);
  font-style: normal;
  font-weight: 700;
  line-height: 160%; /* 38.4px */
}

.hachiman .footer_name {
  color: #873c3c;
}

.footer_desc {
  font-size: 0.9rem;
  margin-bottom: 30px;
  font-family: var(--serif);
}

.footer_cv_btn {
  display: flex;
  flex-direction: column;
  background-color: #3b5998;
  color: #fff;
  padding: 15px;
  margin: 2rem auto;
  color: #fff;
  text-align: center;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.hachiman .footer_cv_btn {
  background-color: #873c3c;
}

.footer_cv_btn .small {
  font-size: 1rem;
}

.footer_cv_btn .large {
  font-size: 1.3rem;
}

.footer_contact {
  margin-bottom: 30px;
}

.tel_number {
  font-size: 2rem;
  color: #3b5998;
  font-weight: bold;
}

.hachiman .tel_number {
  color: #873c3c;
}

.english_text {
  font-size: 0.85rem;
  color: #3b5998;
}

.hachiman .english_text {
  color: #873c3c;
}

.footer_time {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.footer_address {
  font-size: 0.85rem;
  font-style: normal;
  margin-bottom: 20px;
}

.map_btn {
  display: inline-block;
  border: 1px solid #ccc;
  padding: 5px 30px;
  color: #333;
  font-size: 0.9rem;
}

.footer_lead {
  text-align: center;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
  width: fit-content;
  margin: auto;
  line-height: 1.4;
}

.footer_lead .clm1 {
  font-size: 1.6rem;
  display: block;
  border-bottom: 2px solid #ffdf40;
  padding-bottom: 8px;
  font-family: var(--serif);
  line-height: 1.6;
}

.footer_lead .clm2 {
  font-size: 1.2rem;
  display: block;
  padding: 12px 0;
  font-weight: 300;
}

/* ====================================================
   Header
   ==================================================== */
.header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  @media (max-width: 768px) {
    position: relative !important;
    padding: 15px 0;
  }
}

.header_inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1024px;
  width: 100%;
  margin: 0 auto;
  @media (width < 768px) {
    justify-content: center;
    gap: 8px;
  }
}
.header_logo {
  width: 260px;
}

.nav_list {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .header_nav.pc {
    display: none !important;
  }

  .sp_fixed_nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
  }

  .sp_fixed_nav .nav_item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: bold;
    border-right: 1px solid #eee;
    background: none;
    border-top: none;
    border-left: none;
    border-bottom: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    @media (max-width: 768px) {
      text-align: center;
    }
  }

  .sp_fixed_nav .lang-toggle-btn {
    flex-direction: row;
    gap: 6px;
  }

  .sp_fixed_nav .nav_item span {
    display: block;
  }

  .sp_fixed_nav .nav_item.reserve {
    background: #b1965c;
    color: #fff;
    border-right: none;
  }

  .sp_fixed_nav .nav_item:last-child {
    border-right: none;
  }
}

@media screen and (min-width: 769px) {
  .sp_fixed_nav {
    display: none;
  }
}
/*---------------------
BASE UI Tailwind置き換え
-----------------------*/
.inner {
  max-width: 1024px;
  margin: auto;
  padding: 4rem 1rem 0 1rem;
  @media (max-width: 768px) {
    padding: 2rem 1rem 0 1rem;
  }
}

.sheet {
  background-color: white;
  border-radius: 1.2rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin: 2rem auto;
  padding: 3rem;
  max-width: 860px;
  @media (max-width: 768px) {
    padding: 1rem;
  }
}

.section_title {
  font-size: 1.5rem;
  color: #333;
  text-align: left;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0.02rem;
  margin: 4rem auto 2rem auto;
  @media (max-width: 768px) {
    margin: 0 auto 2rem auto;
  }
}

.step_text {
  font-size: 1.1rem;
  color: #333;
  max-width: 640px;
  margin: 0 auto 1rem auto;
}

.progressbar_bg {
  background-color: #a9aeb7;
  height: 1.2rem;
  border-radius: 9999px;
  margin-top: 1rem;
}

.progressbar {
  background-color: #ffdf40;
  height: 1.2rem;
  border-radius: 9999px;
  transition: width 0.3s ease-in-out;
}

.question_btn {
  border: 2px solid #ddd;
  padding: 1.5rem;
  width: 100%;
  text-align: left;
  border-radius: 0.5rem;
  transition: border-color 0.3s ease-in-out;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}

.question_btn:hover {
  background-color: #0052af;
  color: white;
}

.question_btn.selected {
  opacity: 1;
  background-color: #0052af;
  color: white;
}

.question_btn.selected::before {
  content: "\2713";
  display: inline-block;
  color: white;
  margin-right: 0.5rem;
  font-weight: bold;
  opacity: 1;
}

.question_list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1rem auto;
}

.bottom_btns {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  margin: auto;
  @media (width < 768px) {
    display: flex;
    flex-direction: column-reverse;
    gap: 1rem;
  }
}

.back_btn {
  border: 2px solid #ddd;
  padding: 1.5rem;
  width: 100%;
  text-align: center;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease-in-out;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5;
}

.next_btn {
  background-color: #0052af;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  border: none;
  padding: 1.5rem;
  width: 100%;
  text-align: center;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease-in-out;
}

.next_btn:disabled,
.next_btn.is-disabled {
  background-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.restart_btn_wrapper {
  display: grid;
  place-content: center;
}

.restart_btn {
  border: 2px solid #ddd;
  padding: 1.5rem 4rem;
  width: 100%;
  text-align: center;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease-in-out;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.5;
  background-color: white;
  max-width: 420px;
  margin: auto;
}

.hidden {
  display: none;
}

/*---------------------
最終画面予約ボタン
-----------------------*/
.cv_btn {
  display: flex;
  flex-direction: column;
  background-color: #0052af;
  color: #fff;
  padding: 15px;
  margin: 2rem auto 0 auto;
  color: #fff;
  text-align: center;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  max-width: 420px;
}

.cv_btn .small {
  font-size: 1rem;
}

.cv_btn .large {
  font-size: 1.3rem;
}

/*---------------------
最終画面コンテンツ
-----------------------*/
.urgencybox {
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.urgencybox_high {
  border: 2px solid #d47d7d;
  background-color: #f4e3e3;
  color: #512727;
}

.urgencybox_medium {
  border: 2px solid #ffdf40;
  background-color: #fff9d6;
  color: #3b3428;
}

.urgencybox_low {
  border: 2px solid #81bfa0;
  background-color: #d1ebde;
  color: #1f3821;
}

.urgency-badge {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 9999px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background-color: white;
}

.urgency-badge-high {
  color: #9e3030;
}

.urgency-badge-medium {
  color: rgb(218, 140, 57);
}

.urgency-badge-low {
  background-color: #208b46;
  color: #1f3821;
}

.result_title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.result_desc {
  margin-bottom: 0;
}

.urgencybadge_high {
  background-color: #fff;
  border-radius: 999px;
}

.urgencybadge_medium {
  border-radius: 999px;
  background-color: #fff;
}

.urgencybadge_low {
  border-radius: 999px;
  background-color: #fff;
}

.support {
  background-color: white;
  padding-bottom: 4rem;
}

.support_img img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: top left;
  margin: auto;
  @media (width < 768px) {
    object-position: top center;
  }

  @media (width > 1280px) {
    height: 550px;
  }

  @media (width > 1480px) {
    height: 600px;
  }
}

.support_lead {
  text-align: center;
  font-size: 1.2rem;
  color: #3b5998;
  font-weight: bold;
  margin-bottom: 2rem;
  display: block;
}

.support_lead::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  border-bottom: 2px solid #0052af;
  margin-right: 1rem;
  transform: rotate(50deg);
}

.support_lead::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  border-bottom: 2px solid #0052af;
  margin-left: 1rem;
  transform: rotate(-50deg);
}

.support h2 {
  margin-top: 4rem;
}

.support_title {
  text-align: center;
  font-size: 2rem;
  color: #0052af;
  font-weight: 300;
  line-height: 160%;
  letter-spacing: 0.01em;
  font-family: var(--serif);
  display: block;
  width: fit-content;
  margin: auto;
  @media (width < 768px) {
    font-size: 1.5rem;
  }
}

.support_list {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 960px;
  margin: 3rem auto;
  gap: 2rem;
  @media (width < 768px) {
    flex-direction: column;
    width: 96%;
  }
}

.support_list > * {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.support_list h3 {
  color: #0052af;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.01em;
  @media (width < 768px) {
    font-size: 1.3rem;
  }
}

.support_list p {
  color: #000;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 28.8px */
}

.wbr {
  display: inline-block;
}
