/* ================================================================== */
/* Reset CSS
/* ================================================================== */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height:1;
}

article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
  display:block;
}

nav ul {
    list-style:none;
}

blockquote, q {
    quotes:none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}

a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

/* change colours to suit your needs */
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}

/* change colours to suit your needs */
mark {
    background-color:#ff9;
    color:#000; 
    font-style:italic;
    font-weight:bold;
}

del {
    text-decoration: line-through;
}

abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}

table {
    border-collapse:collapse;
    border-spacing:0;
}

/* change border colour to suit your needs */
hr {
    display:block;
    height:1px;
    border:0;   
    border-top:1px solid #cccccc;
    margin:1em 0;
    padding:0;
}

input[type=text], input[type=tel], input[type=email], input[type=url], textarea {
    vertical-align:middle;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
    resize: none;
    border-radius: 0;
}

input[type=radio], select, input[type=checkbox] {
    appearance: none;
}

button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
    appearance: none;
}

/* ================================================================== */
/* Base Styles - 共通スタイル */
/* ================================================================== */
:root {
  --bg: #ffffff;
  --black: #0F2342;
  --muted: #888;
  --accent: #0F2342;
  --main-bg-color: #002147;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  overflow-y: scroll;
  font-size: 10px;
}

body {
  min-height: 100svh;
  margin: 0 auto;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-style: normal;
  color: var(--black);
  background: var(--bg);
  font-size: 1rem;
}

button,
input,
textarea,
select {
  font: inherit;
  line-height: inherit;
}

.box {
  background-image:
    linear-gradient(0deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px)),
    linear-gradient(90deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px));
  background-size: 16px 16px;
  background-repeat: repeat;
  background-position: center;
}

/* ================================================================== */
/* Footer */
/* ================================================================== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  padding: 4rem 0 3rem;
  text-align: center;
  font-size: 1.2rem; /* 12px */
  color: var(--muted);
  background: transparent;
}

.privacy-policy {
  color: #0F2342;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.3rem; /* 13px */
  font-weight: 700;
  margin-bottom: 2rem;
}

.privacy-policy a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.copyright {
  display: block;
  color: #000;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem; /* 10px */
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* ================================================================== */
/* Top Page (index.html) */
/* ================================================================== */
.content-wrapper {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 700px;
  border: 1px solid #0F2342;
}

.lang-toggle {
  position: absolute;
  top: -1px;
  right: -1px;
  display: flex;
  overflow: hidden;
  font-size: 1.2rem; /* 12px */
  transform: translateY(-100%);
  z-index: 100;
  background: #9FA7B3;
  --lang-toggle-tab-width: 117px;
}

.lang-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--lang-toggle-tab-width);
  height: 100%;
  background: #0F2342;
  transition: transform 0.3s ease-in-out;
}

.lang-toggle.en-active::before {
  transform: translateX(100%);
}

.lang-toggle button {
  position: relative;
  width: var(--lang-toggle-tab-width);
  height: 50px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #FFF;
  font-size: 1.5rem; /* 15px */
  font-weight: 600;
  letter-spacing: 0.1em; /* 1.5px / 15px */
  line-height: 150%;
  transition: background 0.2s ease;
}

.lang-toggle button.active {
  background: transparent;
  border: none;
  cursor: default;
}

.exam-logo-container {
  height: 146px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  background: #FFF;
}

.exam-logo-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.exam-logo-container h1,
.exam-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.exam-logo {
  display: block;
  max-width: 380px;
  margin: 0 auto;
}

.exam-lead-container {
  height: 113px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  padding-top: 17px;
  background: #FFF;
}

.lead {
  text-align: center;
  margin: 0;
}

.lead-line1,
.lead-line2 {
  display: inline-block;
  color: #0F2342;
  font-family: "Zen Old Mincho";
  font-weight: 600;
}

.lang-ja .lead-line1 {
  font-size: 2.2rem; /* 22px */
  letter-spacing: 0.02em; /* 0.44px / 22px */
  line-height: 150%;
}

.lang-ja .lead-line2,
.lang-en .result-text .lead-line2 {
  font-size: 3.2rem; /* 32px */
  letter-spacing: 0.02em; /* 0.64px / 32px */
  line-height: 1.2;
  background: linear-gradient(transparent 57%, rgba(19, 93, 130, 0.3) 57%);
  margin-top: -2px;
  padding: 0 10px 2px;
}

.lang-en .lead-line2 {
  font-size: 2.2rem; /* 22px */
  letter-spacing: 0.02em; /* 0.44px / 22px */
  line-height: 150%;
}

.lang-en .lead-line1 {
  font-size: 3.2rem; /* 32px */
  letter-spacing: 0.02em; /* 0.64px / 32px */
  line-height: 1.2;
  background: linear-gradient(transparent 57%, rgba(19, 93, 130, 0.3) 57%);
  margin-top: -2px;
  padding-bottom: 2px;
}


.result-text {
  display: flex;
  justify-content: center;
  align-items: center;
}

.level-buttons-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  width: 100%;
  height: 307px;
  padding: 40px;
  background: #FFF;
}

.btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 390px;
  max-width: 100%;
  height: 75px;
  padding: 0 36px;
  color: #FFF;
  background: #0F2342;
  text-decoration: none;
  font-family: "Zen Old Mincho";
  font-size: 2.4rem; /* 24px */
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: opacity 0.2s ease;
}
.lang-en .btn {
  letter-spacing: 0em;
}

.btn-text {
  margin: auto 0;
}

.level-icon1,
.level-icon2,
.level-icon3 {
  position: absolute;
  left: 36px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 39.839px;
  height: 18.099px;
}

.level-icon3 {
  height: 37px;
}

.vector,
.vector-left {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 23px;
  height: 6px;
}

.vector { right: 36px; }
.vector-left {
  left: 36px;
  transform: scaleX(-1);
}

/* ================================================================== */
/* Exam Page (beginner/intermediate/advanced) */
/* ================================================================== */
body.box { justify-content: center; }

.exam-main {
  width: 100%;
  max-width: 700px;
  margin: auto;
}

.exam-header {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 700px;
  height: 94px;
  border: 1px solid #0F2342;
  background: #fff;
}

.exam-logo-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.exam-logo-wrapper h1,
.exam-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.exam-logo {
  display: block;
  margin: 0 auto;
}

.exam-level {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 138px;
  height: 100%;
  padding: 24px;
  border-inline: 1px solid #0F2342;
  color: #0F2342;
  font-size: 2rem; /* 20px */
  font-weight: 600;
}

.level-exam {
  font-size: 2.2rem; /* 22px */
  letter-spacing: 0.02em; /* 0.44px / 22px */
  line-height: 150%;
  white-space: nowrap;
}

.qcount {
  position: relative;
  height: 100%;
  aspect-ratio: 1 / 1; /* 高さを基準に幅を同じにする */
  padding: 8px 20px;
  color: #0F2342;
  font-size: 2.4rem; /* 24px */
  font-weight: 600;
  letter-spacing: 0.02em; /* 0.48px / 24px */
  text-align: center;
  overflow: hidden;
}

/*
.qcount::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.5px),
    #0F2342 calc(50% - 0.5px),
    #0F2342 calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}
*/
.qcount::after {
  content: '';
  width: 150%;
  height: 1px;
  background-color: #0F2342;
  position: absolute;
  top: 50%;
  left: -25%;
  transform: rotate(-45deg);
  transform-origin: center;
  margin-left: -1px;
}

.qcount .current-q,
.qcount .total-q {
  position: absolute;
  transform: translate(50%, -50%);
}

.qcount .current-q {
  width: 3rem;
  top: 13px;
  left: 15px;
  transform: none;
}

.qcount .total-q {
  bottom: 14px;
  right: 16px;
  transform: none;
}

.question-container {
  width: 100%;
  padding-bottom: 20px;
}

.question-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 257px;
  padding: 50px;
  background: #0F2342;
}

.question-Q,
.question-text {
  margin: 0;
  color: #FFF;
  font-family: "Zen Old Mincho";
  font-size: 2.2rem; /* 22px */
  font-weight: 600;
  letter-spacing: 0.02em; /* 0.44px / 22px */
  line-height: 175%;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.choice-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 76px;
  padding: 25px 20px;
  border-radius: 10px;
  border: 1px solid #CFD3D9;
  background: #FFF;
  color: #0F2342;
  font-family: "Zen Old Mincho";
  font-size: 1.8rem; /* 18px */
  font-weight: 900;
  letter-spacing: 0.1em; /* 1.8px / 18px */
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: border-color 0.2s ease;
}
.lang-en .choice-btn {
  letter-spacing: 0em;
}

.choice-btn * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.choice-btn::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #E3E3E3;
  transform: translateY(-50%);
}

.choice-btn.correct {
  border-color: #4FCE53!important;
  background: #F8FFF8;
  color: #4FCE53;
  /* animation */
  animation: choice-correct-fill 0.2s ease forwards;
}

.choice-btn.correct::before {
  background: #4FCE53 url('../assets/logo/circle.svg') center / 16px 16px no-repeat;
}

.choice-btn.incorrect {
  border-color: #F00!important;
  background: #FFF6F6;
  color: #F00;
  /* animation */
  animation: choice-incorrect-fill 0.2s ease forwards;
}

.choice-btn.incorrect::before {
  background: #F00 url('../assets/logo/cross.svg') center / 16px 16px no-repeat;
}

/* ================================================================== */
/* Results Page */
/* ================================================================== */
.results-container-split {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
  max-width: 700px;
  margin: auto;
}

.results-main-part {
  width: 100%;
  background: #fff;
  border: 1px solid #0F2342;
}

.results-main-part.top {
  margin-top: 10rem;
}

.results-main-part.no-brd {
  width: 390px;
  margin: -2rem auto 0;
  border: none;
}

.result-logo-container {
  height: 146px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-bottom: 1px solid #0F2342;
}

.result-logo-container h1 {
  margin: 0;
  font-weight: inherit;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

h2.result-text {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  align-items: center;
  height: 68px;
}

h3.q-text {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.lang-en h3.q-text {
  line-height: 1.4;
  letter-spacing: 0;
}

.result-container .result-text {
  border-bottom: 1px solid var(--black);
}

.result-container .result-text {
  height: 7.6rem;
}

.result-text-container .result-text {
  height: 9.5rem;
}

.result-score-container {
  padding: 2.8rem 0 3rem;
  text-align: center;
  background: #EAF2F8;
  border-top: 1px solid var(--black);
}

.result-section-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 68px;
  border-bottom: 1px solid var(--black);
}

.result-section-title {
  margin: 0;
  text-align: center;
  font-size: 2rem;
}

.score {
  margin: 8px 0;
  font-weight: 700;
  text-align: center;
}

.score-large { font-size: 3.8rem; /* 38px */ }
.score-small { font-size: 2.4rem; /* 24px */ }

.result-title {
  font-size: 2rem;
  margin: 0 0 20px;
}

.level-badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 390px;
  max-width: 100%;
  height: 10.7rem;
  margin: 0 auto 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid #0F2342;
  position: relative;
}

.level-grade {
  width: 100%;
  text-align: center;
  font-size: 8.4rem;
  font-weight: 900;
  color: #0F2342;
  line-height: 1;
  opacity: 0;
  animation: level-grade-fade 0.3s ease 0.25s forwards;
  position: relative;
  top: -0.2rem;
}

.judgement-text {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-size: 2.6rem;
  font-weight: 600;
  color: #0F2342;
}

.share-btn {
  height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  background: #0F2342;
  cursor: pointer;
  transition: opacity 0.2s ease;
  padding: 0;
}

.share-btn:focus-visible {
  outline: 2px solid #0F2342;
  outline-offset: 4px;
}

.share-icon {
  width: 20px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.share-label {
  display: inline-block;
  font-size: 1.6rem; /* 16px */
}

.results-level-buttons {
  height: auto;
}

.btn.small {
  width: auto;
  height: auto;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1.8rem; /* 18px */
}

.result-qa-container {
  padding: 4rem 4rem 2rem;
  background: #fff;
}

.qa-item {
  margin-bottom: 2rem;
  padding: 3rem;
  border: 1px solid #CFD3D9;
  border-radius: 10px;
  background: #FFF;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.qa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  cursor: pointer;
}

.qa-q-container {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: -webkit-calc(100% - 2rem);
  width: calc(100% - 2rem);
}

.q {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 2rem; /* 20px */
  font-weight: 900;
  color: #0F2342;
}

.q-mark.correct { color: #4FCE53; }
.q-mark.incorrect { color: #F00; }

.qa-toggle-icon {
  position: relative;
  right: -0.6rem;
  width: 2rem;
  height: 2rem;
}

.qa-toggle-icon::before,
.qa-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #0F2342;
  transition: transform 0.3s ease;
  transform: translate(-50%, -50%);
}

.qa-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.qa-item.active .qa-toggle-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.qa-item.active .qa-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.qa-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.correct-answer-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 24px 0 11px;
  padding: 1.7rem 2rem;
  border-radius: 10px;
  background: #E1ECF1;
  font-weight: 600;
}

.correct-answer-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 31px;
  height: 15px;
  font-size: 1.1rem; /* 11px */
  color: #FFF;
  background: #0F2342;
}
.lang-en .correct-answer-label {
  width: 45px;
}

.correct-answer-text {
  font-size: 1.4rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.lang-en .correct-answer-text {
  line-height: 1.2;
  letter-spacing: 0;
}

.your-answer-box {
  margin: 0;
  padding: 0;
  color: #0F2342;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.your-answer-label {
  white-space: nowrap;
}

.lang-en .your-answer-box {
  letter-spacing: 0;
}

.explain { 
  margin-top: 2.8rem;
  font-size: 1.2rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
}
.lang-en .explain {
  line-height: 1.4;
  letter-spacing: 0;
}

.result-retry-container {
  display: flex;
  justify-content: center;
}

.retry-btn { 
  width: 100%;
  height: 58px;
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}

.results-extra-part {
  width: 100%;
}

.results-extra-part .site-footer {
  position: relative;
  width: 100%;
  margin: 60px 0 40px;
  padding: 18px 0;
  left: auto;
  right: auto;
  transform: none;
}

.result-extra-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border: none;
}

.sns-card,
.newsletter-card {
  width: 340px;
//  flex: 1 1 280px;
  position: relative;
  background: #FFF;
}

.sns-card {
  border: 1px solid #0F2342;
}

.sns-card__header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 55px;
  font-family: "Zen Old Mincho";
  font-size: 1.8rem; /* 18px */
  font-weight: 600;
  color: #0F2342;
  border-bottom: 1px solid #0F2342;
}

.sns-card__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
  padding: 27px;
  background: #E1ECF1;
}

.sns-icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 18px;
}

.sns-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.sns-icon img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.sns-avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #0F2342;
  border-radius: 50%;
  background: #FFF;
}

.sns-avatar img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.newsletter-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-card a {
  transition: opacity 0.2s ease;
}

.newsletter-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================================================================== */
/*  animation  */
/* ================================================================== */

.choice-btn::before,
.choice-btn::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
}

.choice-btn::before {
  border-radius: 4px;
  background: #E3E3E3;
  transition: background-color 0.2s ease;
}

.choice-btn::after {
  background: transparent center / 16px 16px no-repeat;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.choice-btn.correct {
  background: #F8FFF8;
  border-color: #4FCE53;
  color: #4FCE53;
  animation: choice-correct-fill 0.2s ease forwards;
}

.choice-btn.correct::before { background: #4FCE53; }
.choice-btn.correct::after {
  background-image: url('../assets/logo/circle.svg');
  opacity: 1;
}

.choice-btn.incorrect {
  background: #FFF6F6;
  border-color: #F00;
  color: #F00;
  animation: choice-incorrect-fill 0.2s ease forwards;
}

.choice-btn.incorrect::before { background: #F00; }
.choice-btn.incorrect::after {
  background-image: url('../assets/logo/cross.svg');
  opacity: 1;
}

@keyframes choice-correct-fill {
  0% { background-color: #FFF; }
  100% { background-color: #F8FFF8; }
}

@keyframes choice-incorrect-fill {
  0% { background-color: #FFF; }
  100% { background-color: #FFF6F6; }
}

@keyframes level-grade-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================== */
/* Responsive */
/* ================================================================== */
@media screen and (max-width: 640px) {
  .result-extra-grid { flex-direction: column; }
  /*
  .sns-card__body { flex-direction: column; }
  */
  .sns-icons { justify-content: center; }
}

@media screen and (min-width: 720px) {
  .container,
  .exam-main {
    max-width: 700px;
    margin-inline: auto;
  }
}

@media screen and (max-height: 769px) and (min-width: 768px) {
  body {
    justify-content: flex-start;
    padding-top: 50px;
  }
  .content-wrapper {
    margin-top: 20px;
  }

  .site-footer {
    position: static;
  }
}

/* PC ver */
@media screen and (min-width: 768px) {
  .question-text { width: 434px; }

  .btn:hover,
  .sns-icon:hover,
  .privacy-policy a:hover,
  .sns-icon:hover,
  .newsletter-card:hover a {
    opacity: 0.5;
  }

  .lang-toggle button:not(.active):hover {
    background: #8791A0;
  }

  .choice-btn:hover,
  .qa-item:hover {
    border-color: #0F2342;
  }

  .lang-en .exam-level.level1 {
    width: 170px;
  }
  .lang-en .exam-level.level2 {
    width: 220px;
  }
  .lang-en .exam-level.level3 {
    width: 200px;
  }

}

/* SP ver */
@media screen and (max-width: 767px) {
  body.box {
    margin: 0;
    padding: 5rem 2rem 0;
    @media screen and (max-width: 350px) {
      padding: 5rem 1rem 0;
    }
  }

  .site-footer {
    position: static;
    padding: 20px 0;
  }

  .lang-toggle {
    --lang-toggle-tab-width: 71px;
  }

  .lang-toggle button {
    width: var(--lang-toggle-tab-width);
    height: 40px;
  }

  .exam-logo-container {
    height: auto;
    padding: 3.1rem 0;
  }

  .exam-logo {
    width: 80%;
    height: auto;
  }

  .exam-lead-container {
    height: auto;
    padding: 15px;
  }

  .lang-ja .lead-line1 {
    font-size: 1.6rem; /* 16px */
    @media screen and (max-width: 350px) {
      font-size: 1.4rem;
    }
  }

  .lang-ja .lead-line2 {
    font-size: 2.4rem; /* 24px */
    @media screen and (max-width: 350px) {
      font-size: 2.2rem;
    }
  }

  .lang-en .lead-line2 {
    font-size: 1.6rem; /* 16px */
    @media screen and (max-width: 350px) {
      font-size: 1.4rem;
    }
  }

  .lang-en .lead-line1 {
    font-size: 2.4rem; /* 24px */
    @media screen and (max-width: 350px) {
      font-size: 2.2rem;
    }
  }
  .level-buttons-container {
    padding: 3rem;
    height: auto;
  }

  .btn {
    font-size: 1.8rem; /* 18px */
  }

  .level-icon1, .level-icon2, .level-icon3 {
    left: 2rem;
  }

  .vector, .vector-left {
    right: 2rem;
  }

  .exam-header {
    height: 60px;
  }

  .exam-logo-wrapper {
    width: 52.5%;
  }

  .exam-logo-wrapper h1 {
    width: 76%;
  }

  .exam-header .exam-logo {
    width: 100%;
    max-width: 16rem;
    height: auto;
  }

  .exam-level {
    width: 30.8%;
  }

  .level-exam {
    font-size: 1.8rem;
  }

  .lang-en .exam-level {
    flex-direction: column;
    gap: 0;
  }

  .lang-en .exam-level .level-exam {
    font-size: 1.4rem;
    letter-spacing: 0;
  }

  .level1 .level-icon-exam {
    width: 1.8rem;
    position: relative;
    top: 1px;
  }
  .level2 .level-icon-exam {
    width: 4rem;
    @media screen and (max-width: 350px) {
      width: 3rem;
    }
    position: relative;
    top: 1px;
  }
  .level3 .level-icon-exam {
    width: 4rem;
    @media screen and (max-width: 350px) {
      width: 3rem;
    }
  }
  .lang-en .level1 .level-icon-exam {
    width: 1.5rem;
    position: relative;
    top: 1px;
  }
  .lang-en .level2 .level-icon-exam {
    width: 2.8rem;
    @media screen and (max-width: 350px) {
      width: 2.8rem;
    }
    position: relative;
    top: 1px;
  }
  .lang-en .level3 .level-icon-exam {
    width: 2.8rem;
    @media screen and (max-width: 350px) {
      width: 2.8rem;
    }
    position: relative;
    top: 1px;
  }

  .qcount {
    width: 5.8rem;
    font-size: 1.8rem;
    padding: 0;
  }

  .qcount .current-q {
    width: 3rem;
    left: 0.4rem;
    top: 0.7rem;
  }

  .qcount .total-q {
    right: 0.8rem;
    bottom: 0.7rem;
  }

  .choices {
    margin-top: 3rem;
  }

  .choice-btn {
    font-size: 1.6rem; /* 16px */
    line-height: 1.4;
    padding: 15px 20px 15px 55px;
    letter-spacing: 0;
  }
  
  .question-box {
    padding: 2rem;
    height: 20rem;
  }

  .question-Q,
  .question-text {
    font-size: 1.8rem;
    line-height: 1.75;
  }
  .lang-en .question-Q,
  .lang-en .question-text {
    font-size: 1.8rem;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .choice-btn::before,
  .choice-btn::after {
    left: 15px;
  }
  
  .privacy-policy {
    font-size: 1.1rem; /* 11px */
  }

  .copyright { /* `copyright`から`.copyright`にセレクタを修正 */
    font-size: 0.8rem; /* 8px */
  }

  /* SP版 結果画面 */
  .results-container-split {
    gap: 4rem;
  }
  .results-main-part.top {
    margin-top: -1rem;
  }
  .results-main-part.no-brd {
    width: 100%;
  }
  .result-score-container {
    padding: 2.8rem 3rem 3rem;
  }
  .result-logo-container {
    height: 12.6rem;
    padding: 0;
  }
  .result-container .result-text {
    height: 6rem;
  }
  .result-text-container .result-text {
    height: 9.1rem;
  }
  .level-badge {
    width: auto;
    height: 10.2rem;
    margin: 0 0 1.5rem;
  }
  .level-grade {
    font-size: 7.8rem;
    letter-spacing: -0.05em;
  }
  .judgement-text {
    font-size: 2.2rem;
    right: 15px;
    bottom: 1.5rem;
  }
  .result-section-title-container {
    height: 5.7rem;
  }
  .result-section-title {
    font-size: 1.8rem;
  }
  .result-qa-container {
    padding: 2.5rem 2rem 1.5rem;
  }
  .qa-item {
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  .q {
    gap: 1rem;
  }
  h3.q-text {
    font-size: 1.3rem;
  }
  .qa-toggle-icon {
    right: 0;
    width: 1.6rem;
    height: 1.6rem;
  }
  .qa-q-container {
    width: -webkit-calc(100% - 1.6rem);
    width: calc(100% - 1.6rem);
    gap: 1.3rem;
  }
  .correct-answer-box {
    margin: 1.5rem 0 1.1rem 0;
    padding: 1.5rem 2rem;
  }
  .correct-answer-label {
    font-size: 1.1rem;
    white-space: nowrap;
  }
  .correct-answer-text {
    font-size: 1.3rem;
  }
  .explain {
    margin-top: 1.7rem;
    letter-spacing: 0.05em;
  }
  .sns-card {
    width: 100%;
    margin-bottom: 2rem;
  }
  .newsletter-card {
    width: 100%;
  }
  .retry-btn {
    font-size: 1.6rem!important;
  }

  .lang-en .result-text .lead-line2 {
    font-size: 2.4rem;
    letter-spacing: 0;
    white-space: nowrap;
    padding: 0 5px 2px;
  }


}

@media (min-width: 768px) {
  .exam-header .exam-logo {
    height: 54px;
  }
}
.exam-logo-wrapper h1 {
  margin: 0;
}