@charset "UTF-8";
:root {
  --color-voce: #e4007f;
  --color-voce-light: #fbc6e3;
  --color-background-colored: #feeae6;
  --color-yellow: #f5e48c;
  --color-brown: #ddc59e;
  --color-red: #efadae;
  --color-blue: #b6d8e7;
  --font-ja: '游ゴシック体', YuGothic, '游ゴシック', 'Yu Gothic', 'メイリオ',
    Meiryo, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', Verdana, Osaka,
    'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}

/* =====
 * voce-choicetest-static
===== */

/* all settings */

html,
body {
  margin: 0 auto;
  height: 100%;
  background-color: #fff;
}

#header,
#container,
main,
#wrapper,
.btn-wrap a,
.content-img img {
  display: block;
  max-width: 100%;
  margin-inline: auto;
  height: auto;
}

#wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.header-logo {
  width: 142px;
  margin: 0 auto;
  margin-bottom: -30px;
  padding: 10px 0;
}

/* text parts */
h1,
h2,
btn-wrap,
#container p,
#container p > a {
  color: #555;
  font-style: normal;
  font-family: 'Inter', '游ゴシック体', YuGothic, '游ゴシック', 'Yu Gothic',
    'メイリオ', Meiryo, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro',
    Verdana, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
}

h1,
.btn-wrap,
btn,
.question-area,
.supervised-area,
.header-bg,
.top-img img,
.btn-wrap a,
.content-img img {
  margin-bottom: 34px;
}

h2,
.text,
.content-img,
.results-sub {
  margin-bottom: 20px;
}

.paragraph {
  margin-bottom: 0.5em;
}

h1,
.header-heading{
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

:is(h1, .header-heading) span {
  display: block;
  text-align: left;
}

h2,
.question-text{
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.question-text{
  font-size: 24px;
  text-align: start;
  margin-block-end: 20px;

  @media (min-width: 769px) {
    font-size: 24px !important;
  }
}

.results-sub {
  font-size: 20px;
  margin-top: 30px;
  color: #e4007f;
  font-weight: bold;
  text-align: center;
}

.text {
  font-size: 16px;
  line-height: 1.6;
}

.text-s {
  font-size: 14px;
  line-height: 1.5;
}

/* link parts */

.btn-wrap a {
  color: #999;
}

.btn-wrap a:hover {
  transition: all 0.5s;
  opacity: 0.5;
}

.text-s a {
  text-decoration: underline;
}

.text-btn-wrap {
  margin-bottom: 20px;
  text-align: center;
}
.text-btn {
  font-weight: bold;
  text-decoration: underline;
  color: #555;
  font-size: 24px;
}
@media screen and (max-width: 767px) {
  .text-btn {
    font-weight: bold;
    text-decoration: underline;
    color: #555;
    font-size: 18px;
  }
}
.btn-wrap {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: 340px;
}
.btn,
a.btn {
  padding: 22px 0.75em;
  text-decoration: none;
  line-height: 1.2;
  font-weight: bold;
  color: #fff;
  background-color: #e4007f;
  border-color: transparent;
  box-shadow: 0 6px 12px rgb(228 0 127 / 33%);
}

.btn-normal,
a.btn-normal {
  color: #333;
  background-color: #fff;
  border: 3px solid var(--color-voce);
  box-sizing: border-box;
}

/* choice test parts */

.question-area {
  height: auto;
  background: var(--color-background-colored);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  padding: 20px;
}
.bg {
  margin-top: 20px;
}

/* sperviser-area */

.supervised-area h2 {
  align-items: baseline;
  border-bottom: 2px solid #555555;
  display: flex;
  font-weight: 300;
  margin-bottom: 20px;
  padding: 8px 10px;
  gap: 0.2em 0.5em;
  flex-wrap: wrap;
}

.superviser {
  font-size: 0.7em;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4em;
  align-items: baseline;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.superviser__name {
  font-weight: bold;
  font-size: 1.8em;
}

.supervised-area h2 .supervised-area__who {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  padding-left: 0.5em;
}

.supervised-area h2 .supervised-area__who-item {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.2em;
  margin: 0.5em 0 0 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.supervised-area h2 .job-title {
  display: block;
  font-size: 0.65em;
  font-weight: normal;
}

.profile {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}
.profile img {
  width: 150px;
  margin-bottom: 0;
  border-radius: 50%;
  aspect-ratio: 1/1;
  height: auto;
}

.profiles-list dt {
  font-weight: bold;
}
.profiles-list dt:not(:first-child) {
  margin-top: 0.5em;
}
.profiles-list dt::after {
  content: ': ';
}

/* header bg parts */

.top-img img {
  width: 600px;
  display: block;
  margin: 0 auto;
  margin-bottom: 34px;
}
.header-bg {
  background-image: url(../img/bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.header-filter {
  box-sizing: content-box;
  min-height: 60px;
  text-align: center;
  padding: 1em 30px;
  background: rgba(255, 255, 255, 0.4);
}

:where(.header-filter) p {
  font-size: 24px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.progress {
  margin-top: -10px;
}

/* sns share parts */
.sns-share {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1em;
}

.sns-share h2 {
  margin-bottom: 0;
}

.line-share img {
  width: 36px;
  height: 36px;
}

.line-share img,
.twitter-share img {
  width: 36px;
  height: 36px;
  margin-bottom: 0;
}

.share-btn {
  width: 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copy_btn i {
  font-size: 24px;
}

.recommend-title {
  text-align: center;
  margin: 50px auto 34px;
}

@media screen and (max-width: 767px) {
  #wrapper {
    width: 90%;
  }

  .header-logo {
    width: 120px;
  }

  h1,
  .header-heading {
    font-size: 24px;
    line-height: 1.4;
  }

  h2,
  .question-text {
    font-size: 18px !important;
    line-height: 1.4;
    text-align: start;
  }

  .text {
    font-size: 14px;
  }

  .text-s {
    font-size: 12px;
    line-height: 1.5;
  }

  .top-img {
    width: 100%;
  }
  .btn-wrap {
    width: 100%;
    height: auto;
  }

  .btn,
  a.btn {
    font-size: 15px;
  }

  .profile img {
    width: 100px;
  }

  :where(.header-filter) p {
    font-size: 20px;
    line-height: 22px;
  }
}

.word-break-control {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.word-break-control-by-span {
  :where(span) {
    display: inline-block;
  }
}

.question-item {
  display: none;
}
.result-item {
  display: none;
}
.question-item.is-active {
  display: block;
}
.question-note {
  margin-block: 1em;
}
.result-item.is-active {
  display: block;
}

.result-head {
  margin-top: 30px;
  margin-block-end: 20px;
  display: grid;
  place-items: center;
  gap: 0.5em;
}

.result-head-description {
  word-break: auto-phrase;
}

.result-head-heading {
  margin-block-end: 0;

  :where(small) {
    font-size: 0.75em;
  }
}

.result-title--sm {
  font-size: 32px;
}
.result-score {
  color: #e4007f;
  font-size: 48px;
}
@media screen and (max-width: 767px) {
  .result-title--sm {
    font-size: 20px;
  }
  .result-score {
    color: #e4007f;
    font-size: 28px;
  }
}

.countermeasure {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.countermeasure-heading {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-weight: bold;
  gap: 0.5em;
}

.countermeasure-heading__result {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4em;
  flex-wrap: wrap;
}

.countermeasure-heading__name {
  --_color: var(--color-voce-light);
  background: var(--_color);
  display: flex;
  font-size: 24px;
  font-weight: bold;
  justify-content: center;
  padding: 0.5em 0.75em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-align: center;
}

.countermeasure-heading__name--yellow {
  --_color: var(--color-yellow);
}

.countermeasure-heading__name--brown {
  --_color: var(--color-brown);
}

.countermeasure-heading__name--red {
  --_color: var(--color-red);
}

.countermeasure-heading__name--blue {
  --_color: var(--color-blue);
}

.countermeasure-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

.countermeasure-list > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1em;
}

.countermeasure-list__title {
  font-weight: bold;
  font-size: 1.1em;
}

.countermeasure-list__answer {
  --_color: var(--color-voce-light);
  font-size: 1.3em;
  overflow-wrap: anywhere;
  text-decoration-color: var(--_color);
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 0.5em;
  text-underline-offset: -0.2em;
  word-break: keep-all;
}

.countermeasure-list__answer--yellow {
  --_color: var(--color-yellow);
}

.countermeasure-list__answer--brown {
  --_color: var(--color-brown);
}

.countermeasure-list__answer--red {
  --_color: var(--color-red);
}

.countermeasure-list__answer--blue {
  --_color: var(--color-blue);
}

.u-items-center {
  display: flex;
  justify-content: center;
}

.u-text-center {
  text-align: center;
}

@media (max-width: 767px) {
  .countermeasure-heading__result {
    flex-direction: column;
    align-items: center;
  }

  .supervised-area h2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .superviser__title {
    flex: 1 0 100%;
  }
}

.ingredient-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
}

.ingredient-name {
  font-weight: bold;
  background: color-mix(in srgb, var(--color-voce-light), white 50%);
  padding-inline: 0.5em;
  padding-block: 0.2em;
  display: inline-block;
  border-radius: 0.2em;
  text-align: center;
  word-break: auto-phrase;
}

.title-text {
  font-size: 1.5rem;
  font-weight: bold;

  @media(max-width: 500px) {
    font-size: 5vw;
  }
}

.result-image {
  max-inline-size: 280px;
  display: block;
  margin-inline: auto;

  img&{
    margin-block-end: 0;
  }
}

.copyright {
  display: flex;
  justify-content: center;
}

.has-marker {
  display: inline-block;
  position: relative;
  padding-inline-start: 1em;
}

.has-marker__marker {
  position: absolute;
  inset-inline-start: 0;
}

.result-description-layout {
  display: grid;
  place-items: center;
}

.result-description {
  --_background-color: hsl(327deg 100% 95%);
  color: color-mix(in srgb, currentColor, var(--color-voce));
  font-weight: bold;
  background: var(--_background-color);
  padding: 0.5em;
  border-radius: 0.4em;
  margin-inline: auto;
  position: relative;
  text-align: center;

  > * {
    margin: 0;
  }

  &::before {
    content: "";
    display: block;
    block-size: 0;
    inline-size: 0;
    border-style: solid;
    border-color: transparent;
    border-block-end-color: var(--_background-color);
    border-inline-width: 0.6em;
    border-block-end-width: 1em;
    position: absolute;
    inset-inline: 0;
    inset-block-end: 100%;
    margin-inline: auto;
  }
}

.result-description-heading {
  font-size: 1.25em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin-block-end: 0.2em;
  line-height: 1.4;
}

.text-wrapped-slash {
  display: inline-block;
  position: relative;
  padding-inline: 1em;

  &::before,
  &::after {
    position: absolute;
    inset-block: 0;
    margin-block: auto;
    block-size: 1em;
    line-height: 1;
  }

  &::before {
    content: "＼";
    inset-inline-start: 0;
  }

  &::after {
    content: "／";
    inset-inline-end: 0;
  }
}

/* =====
 * Result page (shindan 51) — matching shindan 27 card style
===== */

.results-title {
  margin-top: 30px;
  word-break: auto-phrase;
}

/* Cosmetic card — mirrors shindan 27 .content-img */
.content-img img {
  width: 80%;
  margin: 0 auto;
}
.content-img {
  padding: 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 -8px 16px rgb(0 0 0 / 8%),
    0 6px 16px rgb(0 0 0 / 8%);
  margin-bottom: 40px;
}
.content-img .text {
  text-decoration: underline;
}

.content-img,
.btn-wrap a {
  position: relative;
}

.content-img a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.more-cosme,
a.more-cosme {
  color: #fff;
  background-color: var(--color-voce);
  box-sizing: border-box;
  border-radius: 50px;
  margin-bottom: -15px;
  display: block;
}

/* Result items list */
.result-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 34px;
}

/* Placeholder image for items pending real image */
.content-img .placeholder-img {
  width: 80%;
  margin: 0 auto;
  display: block;
  opacity: 0.6;
}

/* sperviser-area */

.supervised-area h2 {
  align-items: baseline;
  border-bottom: 2px solid #555555;
  display: flex;
  font-weight: 300;
  margin-bottom: 20px;
  padding: 8px 10px;
  gap: 0.2em 0.5em;
  flex-wrap: wrap;
}

.superviser {
  font-size: 0.7em;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4em;
  align-items: baseline;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.superviser__name {
  font-weight: bold;
  font-size: 1.8em;
}

.supervised-area h2 .supervised-area__who {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  padding-left: 0.5em;
}

.supervised-area h2 .supervised-area__who-item {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.2em;
  margin: 0.5em 0 0 0;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.supervised-area h2 .job-title {
  display: block;
  font-size: 0.65em;
  font-weight: normal;
}

.profile {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}
.profile img {
  width: 150px;
  margin-bottom: 0;
  border-radius: 50%;
  aspect-ratio: 1/1;
  height: auto;
}

.profiles-list dt {
  font-weight: bold;
}
.profiles-list dt:not(:first-child) {
  margin-top: 0.5em;
}
.profiles-list dt::after {
  content: ': ';
}
