@font-face {
  font-family: "EFD Luckiest Guy";
  src: url("fonts/BagelFatOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "EFD Mochiy Pop P One";
  src: url("fonts/MPLUS1p-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "EFD Mochiy Pop P One";
  src: url("fonts/MPLUS1p-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "EFD Mochiy Pop P One";
  src: url("fonts/MPLUS1p-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  color: #17131d;
  background: #fff;
  font-family: "EFD Luckiest Guy", "EFD Mochiy Pop P One", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
}

body.efd-kantei-guide-route .efd-pwa-launcher,
body.efd-kantei-guide-route .efd-pwa-panel {
  display: none !important;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

.guide-header {
  overflow: hidden;
  border-bottom: 4px solid #17131d;
  background: #326bdd;
  color: #fff;
}

.guide-header-inner {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  min-height: 440px;
  margin: 0 auto;
  padding: 70px 330px 54px 0;
}

.guide-brand {
  position: relative;
  z-index: 2;
}

.guide-kicker,
.section-heading > p {
  margin: 0;
  color: #d7ff00;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  color: #ffde4d;
}

.guide-lead {
  max-width: 660px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.guide-support {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.guide-support span {
  padding: 7px 11px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.guide-character {
  position: absolute;
  right: 12px;
  bottom: -170px;
  width: 270px;
  height: auto;
  filter: drop-shadow(8px 10px 0 rgba(23, 19, 29, 0.48));
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.guide-section {
  padding: 64px 0;
  border-bottom: 2px solid #17131d;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading > p {
  color: #ff2b84;
}

h2 {
  margin: 7px 0 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: 0;
}

.file-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 3px solid #17131d;
  background: #ffde4d;
  box-shadow: 6px 6px 0 #17131d;
  color: inherit;
  text-decoration: none;
}

.file-strip span {
  font-size: 12px;
  font-weight: 900;
}

.file-strip strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 15px;
}

.start-steps,
.browser-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.start-steps li,
.browser-steps li {
  display: grid;
  min-height: 152px;
  grid-template-columns: 42px 1fr;
  align-content: start;
  gap: 12px;
  padding: 20px;
  border: 2px solid #17131d;
  border-radius: 8px;
  background: #fff;
}

.start-steps li:nth-child(1),
.browser-steps li:nth-child(1) {
  box-shadow: 5px 5px 0 #50c9d8;
}

.start-steps li:nth-child(2),
.browser-steps li:nth-child(2) {
  box-shadow: 5px 5px 0 #ff9ec3;
}

.start-steps li:nth-child(3),
.browser-steps li:nth-child(3) {
  box-shadow: 5px 5px 0 #d7ff00;
}

.start-steps li > b,
.browser-steps li > b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid #17131d;
  border-radius: 50%;
  background: #17131d;
  color: #fff;
}

.start-steps strong,
.browser-steps strong {
  display: block;
  margin: 3px 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

.start-steps span,
.browser-steps span {
  display: block;
  color: #5e5863;
  font-size: 12px;
  line-height: 1.7;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

.important-note,
.browser-warning {
  margin: 25px 0 0;
  padding: 14px 17px;
  border-left: 6px solid #ff2b84;
  background: #fff0f6;
  font-size: 13px;
  line-height: 1.7;
}

.guide-purpose-lead {
  max-width: 880px;
  margin: 0;
  color: #403a45;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.guide-purpose-steps {
  margin-top: 24px;
}

.guide-purpose-note {
  margin: 25px 0 0;
  padding: 16px 18px;
  border: 2px solid #17131d;
  background: #fff5bd;
  box-shadow: 5px 5px 0 #ff2b84;
  font-size: 13px;
  line-height: 1.8;
}

.guide-purpose-note strong {
  display: block;
  margin-bottom: 3px;
}

.browser-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 3px solid #17131d;
  background: #17131d;
  gap: 2px;
}

.browser-tabs button {
  display: flex;
  min-width: 0;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px;
  border: 0;
  background: #fff;
  color: #17131d;
  font-size: 12px;
  font-weight: 900;
}

.browser-tabs button[aria-selected="true"] {
  background: #d7ff00;
}

.browser-tabs button:focus-visible,
.browser-address button:focus-visible {
  outline: 4px solid #ff2b84;
  outline-offset: -4px;
}

.browser-tabs i {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 2px solid #17131d;
  border-radius: 50%;
  color: #17131d;
  font-style: normal;
}

.browser-tabs .is-chrome { background: #ffde4d; }
.browser-tabs .is-edge { background: #50c9d8; }
.browser-tabs .is-firefox { background: #ff9ec3; }
.browser-tabs .is-other { background: #fff; }

.browser-panels {
  padding-top: 28px;
}

.browser-panels article[hidden] {
  display: none;
}

.browser-address {
  display: flex;
  min-width: 0;
  border: 2px solid #17131d;
  background: #f5f7f8;
}

.browser-address code {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.browser-address button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-left: 2px solid #17131d;
  background: #326bdd;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.browser-address button.is-copied {
  background: #18783e;
}

.other-browser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.other-browser-grid > div > strong {
  display: block;
  margin-bottom: 8px;
}

.check-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.check-layout > ol {
  margin: 0;
  padding-left: 24px;
}

.check-layout > ol li {
  margin: 0 0 16px;
  padding-left: 6px;
  font-weight: 700;
  line-height: 1.65;
}

.control-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid #17131d;
}

.control-guide span {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid #17131d;
  font-size: 12px;
  font-weight: 800;
}

.control-guide b {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 2px solid #17131d;
  border-radius: 50%;
  background: #fff;
}

.guide-help details {
  border-top: 2px solid #17131d;
}

.guide-help details:last-child {
  border-bottom: 2px solid #17131d;
}

.guide-help summary {
  padding: 18px 4px;
  cursor: pointer;
  font-weight: 900;
}

.guide-help details p {
  margin: 0;
  padding: 0 4px 20px;
  color: #5e5863;
  font-size: 13px;
  line-height: 1.8;
}

.privacy-strip {
  margin: 42px 0;
  padding: 18px 22px;
  border: 3px solid #17131d;
  background: #17131d;
  color: #fff;
}

.privacy-strip > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.privacy-strip > p,
.privacy-strip details p {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.privacy-strip details {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.privacy-strip summary {
  padding-top: 14px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
}

.privacy-strip a,
footer a {
  color: inherit;
  font-weight: 900;
}

.privacy-strip a {
  font-size: 15px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(20px, calc((100% - 1120px) / 2));
  border-top: 4px solid #17131d;
  background: #ffde4d;
}

@media (max-width: 760px) {
  .guide-header-inner {
    width: min(100% - 28px, 1120px);
    min-height: 455px;
    padding: 38px 0 220px;
  }

  .guide-character {
    right: 50%;
    bottom: -195px;
    width: 230px;
    transform: translateX(50%);
  }

  h1 {
    font-size: 42px;
  }

  .guide-lead {
    font-size: 14px;
  }

  .guide-purpose-lead {
    font-size: 14px;
  }

  main {
    width: min(100% - 28px, 1120px);
  }

  .guide-section {
    padding: 44px 0;
  }

  .file-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .start-steps,
  .browser-steps {
    grid-template-columns: 1fr;
  }

  .start-steps li,
  .browser-steps li {
    min-height: 0;
  }

  .browser-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .browser-tabs button {
    min-height: 56px;
  }

  .browser-address {
    flex-direction: column;
  }

  .browser-address button {
    min-height: 42px;
    border-top: 2px solid #17131d;
    border-left: 0;
  }

  .other-browser-grid,
  .check-layout {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
