@charset "UTF-8";

/* ============================================================
   gravure 顔タイプ診断
   ============================================================ */

:root {
  --ink: #3a3a3a;
  --muted: #8c8c8c;
  --pink: #d27f99;
  --soft: #f7f4ef;
  --card: #faf8f5;
  --line: #e5e0d8;
  --gold: #d9c89a;
  --track: #ece9e5;
  --dark: #333;
  --accent: var(--pink);

  --serif: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --en: "Jost", "Helvetica Neue", Arial, sans-serif;
  --script: "Parisienne", cursive;

  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: calc(1080px + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.screen[hidden] { display: none; }

.noscript {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}

/* ---------- header ---------- */

.site-header {
  padding: 28px 24px 8px;
  text-align: center;
}
.site-header__logo-img {
  width: 110px;
  height: auto;
  margin-inline: auto;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 40px 18px 56px;
  border-radius: 70px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .14); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.btn__lab { display: flex; flex-direction: column; align-items: flex-start; }
.btn__sub { font-weight: 500; font-size: 14px; line-height: 20px; }
.btn__main { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 38px; white-space: nowrap; }

.btn__arrow {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.btn__arrow svg { width: 20px; height: 20px; }

.btn--retry .btn__main { font-size: 26px; line-height: 36px; }

@media (max-width: 767px) {
  .btn { display: flex; width: 100%; gap: 14px; padding: 12px 20px; }
  .btn__sub { font-size: 12px; line-height: 18px; }
  .btn__main, .btn--retry .btn__main { font-size: 22px; line-height: 30px; }
  .btn__arrow { width: 32px; height: 32px; }
  .btn__arrow svg { width: 18px; height: 18px; }
}

/* ---------- TOP : first view ---------- */

.fv {
  max-width: calc(1080px + var(--pad) * 2);
  margin-inline: auto;
  padding: 8px var(--pad) 0;
  text-align: center;
}
.fv__script {
  font-family: var(--script);
  font-size: 48px;
  line-height: 1.15;
  color: var(--pink);
  opacity: .3;
}
.fv__h1 {
  font-size: 15px;
  font-weight: 400;
}
.fv__catch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
}
.fv__catch span { font-size: 16px; line-height: 28px; }
.fv__catch em {
  font-family: var(--serif);
  font-weight: 700;
  font-style: normal;
  font-size: 30px;
  line-height: 40px;
  color: var(--pink);
}
.fv__title {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.4;
}
.fv__lead { margin-top: 4px; font-size: 15px; line-height: 26px; }
.fv .btn { margin-top: 20px; }

.typemap { padding-top: 24px; }
.typemap__axis { font-size: 12px; line-height: 18px; color: var(--muted); }
.typemap__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 8px 0;
}
.typemap__cell {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
}
.typemap__cell img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- TOP : 4 types ---------- */

.fourtypes {
  margin-top: 40px;
  padding: 44px 0;
  background: var(--soft);
  text-align: center;
}
.fourtypes__ttl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--serif);
  font-weight: 700;
}
.fourtypes__ttl span { font-size: 22px; line-height: 40px; }
.fourtypes__ttl em { font-style: normal; font-size: 34px; line-height: 48px; color: var(--pink); }

.fourtypes__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 26px;
}
.fourtypes__item {
  background: #fff;
  padding: 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fourtypes__item .en {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 1.2px;
}
.fourtypes__item .ja { font-size: 12px; line-height: 18px; }
.fourtypes__item[data-type="fresh"] { color: #7ebc9f; }
.fourtypes__item[data-type="cute"] { color: #fe8b7a; }
.fourtypes__item[data-type="cool"] { color: #4d6e8f; }
.fourtypes__item[data-type="feminine"] { color: #b997c5; }

/* ---------- TOP : flow ---------- */

.flowbox {
  margin-top: 56px;
  border: 1px solid var(--gold);
  padding: 8px;
}
.flowbox__inner {
  border: 1px solid var(--gold);
  padding: 40px 24px;
  text-align: center;
}
.flowbox__lead { font-size: 15px; font-weight: 400; line-height: 30px; }

.steps {
  display: grid;
  gap: 28px;
  padding-top: 30px;
}
.step__no {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: 2.6px;
  color: var(--pink);
}
.step__ttl {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 28px;
}
.step__txt { margin-top: 8px; font-size: 14px; line-height: 26px; color: var(--muted); }

.cta {
  padding: 56px 0 64px;
  text-align: center;
}
.cta__note { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--muted); }

/* ---------- question ---------- */

body[data-screen="question"] .l-footer { display: none; }

.q {
  max-width: calc(520px + var(--pad) * 2);
  min-height: calc(100vh - 220px);
  margin-inline: auto;
  padding: 56px var(--pad) 80px;
  text-align: center;
}
.q__n {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--pink);
}
.q__q, .q__total { font-size: 15px; line-height: 22px; }
.q__total { margin-left: 4px; }
.q__n em { font-style: normal; font-size: 30px; line-height: 34px; }

.q__bar {
  margin-top: 10px;
  height: 4px;
  border-radius: 4px;
  background: var(--track);
  overflow: hidden;
}
.q__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--pink);
  transition: width .35s ease;
}

.q__title {
  padding-top: 40px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
}

.q__options {
  display: grid;
  gap: 14px;
  padding-top: 40px;
}
.option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 22px 28px;
  border: 1px solid transparent;
  border-radius: 70px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 26px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.option:hover { border-color: var(--pink); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); transform: translateY(-2px); }
@media (max-width: 767px) {
  .option { gap: 10px; padding: 20px 18px; font-size: 15px; }
}
.option:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.option__shape { flex: 0 0 auto; width: 86px; height: 34px; }
.option__shape img { width: 86px; height: 34px; object-fit: contain; }

.q__back { padding-top: 40px; }
.q__back a {
  font-size: 14px;
  line-height: 22px;
  color: var(--muted);
}
.q__back a:hover { color: var(--ink); }

/* ---------- result ---------- */

.rhero {
  padding: 8px var(--pad);
  text-align: center;
}
.rhero__script {
  font-family: var(--script);
  font-size: 48px;
  line-height: 1.15;
  color: var(--accent);
  opacity: .3;
}
.rhero__eyebrow { margin-top: 4px; font-size: 15px; line-height: 26px; }
.rhero__title {
  margin-top: 4px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 50px;
}
.rhero__illust {
  width: 100%;
  max-width: 345px;
  margin: 4px auto 0;
}
.rhero__illust img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.rhero__lead {
  max-width: 620px;
  margin: 4px auto 0;
  font-size: 16px;
  line-height: 32px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}
.pill {
  padding: 6px 18px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--accent);
}

.sec { padding-top: 56px; }
.sec--features { padding-top: 64px; }

.shead { text-align: center; }
.shead__en {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 2.9px;
  color: var(--accent);
}
.shead__ja {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 32px;
}

.fcards {
  display: grid;
  gap: 20px;
  padding-top: 30px;
}
.fcard {
  background: var(--card);
  padding: 28px 20px;
  text-align: center;
}
.fcard__no {
  font-family: var(--en);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.45;
  color: var(--accent);
}
.fcard__txt { margin-top: 8px; font-size: 15px; line-height: 27px; }

.rows { padding-top: 30px; }
.row {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.row:first-child { border-top: 1px solid var(--line); }
.row__k { display: flex; flex-direction: column; gap: 2px; }
.row__en {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 16px;
  color: var(--accent);
}
.row__ja {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  line-height: 28px;
}
.row__v { margin-top: 8px; font-size: 15px; line-height: 29px; }

.tips {
  display: grid;
  gap: 20px;
  padding-top: 30px;
}
.tip { background: var(--soft); padding: 28px 30px; }
.tip__ttl {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 26px;
}
.tip__txt { margin-top: 10px; font-size: 14px; line-height: 27px; }

.items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 30px;
}
.item__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.item__img picture { display: block; width: 100%; height: 100%; }
.item__img img { width: 100%; height: 100%; object-fit: contain; }
.item__name { margin-top: 12px; font-size: 14px; line-height: 24px; }
.item__price { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--muted); }

.pmap { padding-top: 26px; text-align: center; }
.pmap__axis { font-size: 12px; line-height: 18px; color: var(--muted); }
.pmap__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 8px 0;
}
.pcell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 28px 4px;
  background: #fff;
  border: 1px solid var(--line);
}
.pcell .en {
  font-family: var(--en);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: 1.7px;
  color: #c9c9c9;
}
.pcell .ja { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pcell.is-active {
  background: var(--accent);
  border-color: var(--accent);
}
.pcell.is-active .en, .pcell.is-active .ja { color: #fff; }

.sec--others { padding-bottom: 64px; text-align: center; }
.others__lead { font-size: 14px; line-height: 22px; color: var(--muted); }
.others__links {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}
.tlink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 70px;
  transition: border-color .2s ease, transform .2s ease;
}
.tlink:hover { border-color: var(--tc); transform: translateY(-2px); }
.tlink:focus-visible { outline: 2px solid var(--tc); outline-offset: 3px; }
.tlink__en { font-family: var(--en); font-size: 14px; letter-spacing: 1.1px; color: var(--tc); }
.tlink__ja { font-size: 14px; }

.sec--others .cta { padding: 28px 0 0; }

/* ---------- footer（gravure 本体サイトと共通） ---------- */

.l-footer {
  --color-white: #ffffff;
  --color-black: #333333;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 70px 0 60px;
}

@media (max-width: 767px) {
  .l-footer {
    padding: 40px 0 30px;
  }
}

.l-footer__wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin: 0 auto;
  padding: 0 70px;
}

@media (max-width: 767px) {
  .l-footer__wrapper {
    padding-inline: 30px;
    gap: 50px;
  }
}

.l-footer__content {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .l-footer__content {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .l-footer__content:last-child {
    flex-direction: column-reverse;
  }
}

.l-footer-logo {
  width: 160px;
  height: 165px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .l-footer-logo {
    width: 114px;
    height: auto;
    margin-bottom: 10px;
  }
}

.l-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.l-footer__nav {
  display: flex;
  gap: 40px;
  font-family: "Zen Old Mincho", serif;
  font-weight: 500;
}

@media (max-width: 767px) {
  .l-footer__nav {
    flex-direction: column;
    gap: 30px;
  }
}

.l-footer__nav-section {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .l-footer__nav-section {
    gap: 20px;
  }
}

@media (min-width: 768px) {
  .l-footer__nav-section {
    gap: 36px;
  }
}

.l-footer__nav-title {
  font-size: 15px;
  letter-spacing: 0.07em;
  line-height: 1;
}

@media (max-width: 767px) {
  .l-footer__nav-title {
    font-size: 14px;
  }
}

.l-footer__nav-title a {
  color: var(--color-white);
  text-decoration: none;
}

.l-footer__nav-title a:hover {
  opacity: 0.7;
}

.l-footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .l-footer__nav-list {
    gap: 15px;
  }
}

.l-footer__nav-item {
  line-height: 1;
}

.l-footer__nav-item::before {
  content: "-";
  padding-left: 20px;
}

.l-footer__nav-link {
  font-size: 14px;
  letter-spacing: 0.07em;
  color: var(--color-white);
  text-decoration: none;
  line-height: 1;
}

@media (max-width: 767px) {
  .l-footer__nav-link {
    font-size: 13px;
  }
}

.l-footer__nav-link:hover {
  opacity: 0.7;
}

.l-footer__copyright {
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.7;
  opacity: 0.6;
  font-family: "Zen Old Mincho", serif;
  font-weight: 500;
}

@media (max-width: 767px) {
  .l-footer__copyright {
    font-size: 10px;
  }
}

.l-footer__link {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.l-footer__link-item {
  line-height: 1.7;
}

.l-footer__link-item:not(:last-child)::after {
  content: "|";
  margin-left: 1em;
  opacity: 0.6;
}

.l-footer__link-link {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.6;
  font-family: "Zen Old Mincho", serif;
  font-weight: 500;
}

@media (max-width: 767px) {
  .l-footer__link-link {
    font-size: 12px;
  }
}

.l-footer__link-link:hover {
  opacity: 1;
}

/* ============================================================
   desktop
   ============================================================ */

@media (min-width: 768px) {

  .fv { padding-top: 8px; }
  .fv__script { font-size: 64px; line-height: 72px; }
  .fv__catch span { font-size: 19px; line-height: 28px; }
  .fv__catch em { font-size: 36px; line-height: 40px; }
  .fv__title { font-size: 64px; line-height: 86px; }

  .typemap__grid { gap: 18px; }

  .fourtypes__ttl span { font-size: 28px; }
  .fourtypes__ttl em { font-size: 44px; }
  .fourtypes__list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .fourtypes__item .en { font-size: 24px; }

  .flowbox__inner { padding: 40px 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .q { padding-top: 56px; }
  .q__title { font-size: 30px; line-height: 44px; }

  .rhero__script { font-size: 64px; line-height: 72px; }
  .rhero__title { font-size: 56px; line-height: 76px; }
  .rhero__illust { max-width: 520px; }

  .shead__ja { font-size: 30px; line-height: 44px; }

  .fcards { grid-template-columns: repeat(3, 1fr); }

  .row { display: flex; gap: 24px; align-items: flex-start; }
  .row__k { flex: 0 0 140px; }
  .row__v { margin-top: 0; flex: 1 1 auto; }

  .tips { grid-template-columns: repeat(2, 1fr); }
  .tip { text-align: left; }

  .items {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .others__links { grid-template-columns: repeat(3, 1fr); justify-items: center; }
  .tlink { width: 220px; }

  .site-header__logo-img { width: 150px; }

}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
