:root {
  color-scheme: light;
  --text: #232323;
  --muted: #8f8f8f;
  --line: #e7e7e7;
  --line-strong: #d8d8d8;
  --frame: #8b8b8b;
  --pill: #858585;
  --button: #272727;
  --button-hover: #111111;
  --danger: #d93025;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body.number-page {
  margin: 0;
  min-height: 100vh;
  padding: 22px 16px;
  background: #ffffff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

.page-shell {
  width: min(100%, 430px);
  min-height: min(92vh, 660px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 70px 48px 34px;
  border: 2px solid var(--frame);
  border-radius: 28px;
  background: #ffffff;
}

.number-card {
  width: 100%;
  text-align: center;
}

.brand-title {
  margin: 0;
  line-height: 1;
}

.brand-logo {
  display: block;
  width: min(76%, 245px);
  height: auto;
  margin: 0 auto;
  filter: none;
}

.headline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 305px);
  min-height: 34px;
  margin: 24px auto 0;
  padding: 4px 18px 5px;
  border-radius: 999px;
  background: var(--pill);
  color: #ffffff;
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.lead {
  margin: 14px 0 0;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.safe-badge {
  display: none;
}

.number-form {
  display: grid;
  gap: 0;
  margin-top: 46px;
  text-align: left;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.number-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
button {
  width: 100%;
  border-radius: 6px;
  font: inherit;
}

input {
  min-height: 46px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: var(--text);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input::placeholder {
  color: #aaaaaa;
  opacity: 1;
}

input:focus {
  border-color: #a7a7a7;
  outline: 3px solid rgba(0, 0, 0, 0.045);
  background: #ffffff;
}

input[aria-invalid="true"] {
  border-color: rgba(217, 48, 37, 0.65);
}

.number-message {
  min-height: 32px;
  margin: 0;
  padding: 7px 2px 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

button {
  min-height: 42px;
  border: 0;
  background: var(--button);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
}

button span {
  display: inline-block;
  margin-left: 12px;
  font-size: 1.1em;
  font-weight: 400;
  vertical-align: -0.02em;
}

button:hover {
  background: var(--button-hover);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.accordion-area {
  display: grid;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  text-align: left;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 16px 32px 16px 12px;
  color: #333333;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "⌄";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-52%);
  color: #8a8a8a;
  font-size: 16px;
  line-height: 1;
}

details[open] summary::after {
  transform: translateY(-48%) rotate(180deg);
}

summary:hover {
  background: #fafafa;
}

.accordion-body {
  padding: 0 12px 14px;
  color: var(--muted);
  text-align: left;
}

.accordion-body p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.request-link-wrap {
  margin-top: auto;
  padding-top: 48px;
  text-align: center;
}

.request-link {
  color: #363636;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.04em;
}

.request-link::before {
  content: none;
}

.request-link:hover,
.site-footer a:hover {
  color: #000000;
}

.site-footer {
  margin-top: 24px;
  text-align: center;
  color: #9a9a9a;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.site-footer a {
  color: #9a9a9a;
  text-decoration: none;
}

@media (min-width: 720px) {
  body.number-page {
    display: grid;
    place-items: center;
  }

  .page-shell {
    min-height: min(88vh, 660px);
  }
}

@media (max-width: 560px) {
  body.number-page {
    padding: 10px;
  }

  .page-shell {
    width: min(100%, 390px);
    min-height: calc(100vh - 20px);
    padding: 52px 34px 28px;
    border-radius: 24px;
  }

  .brand-logo {
    width: min(78%, 230px);
  }

  .headline {
    width: min(100%, 292px);
    min-height: 32px;
    margin-top: 22px;
    padding-inline: 16px;
    font-size: clamp(16px, 5.2vw, 10px);
  }

  .lead {
    margin-top: 13px;
    font-size: 10px;
  }

  .number-form {
    margin-top: 40px;
  }

  input {
    min-height: 44px;
    padding: 0 16px;
    font-size: 12px;
  }

  .number-message {
    min-height: 30px;
    padding-top: 7px;
    font-size: 10px;
  }

  button {
    min-height: 42px;
    font-size: 12px;
  }

  .accordion-area {
    margin-top: 30px;
  }

  summary {
    padding: 15px 30px 15px 10px;
    font-size: 11px;
  }

  .accordion-body {
    padding: 0 10px 12px;
  }

  .accordion-body p {
    font-size: 10px;
  }

  .request-link-wrap {
    padding-top: 42px;
  }

  .site-footer {
    margin-top: 20px;
  }
}

@media (max-height: 720px) {
  body.number-page {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .page-shell {
    min-height: calc(100vh - 16px);
    padding-top: 34px;
    padding-bottom: 18px;
  }

  .brand-logo {
    width: min(70%, 210px);
  }

  .headline {
    margin-top: 18px;
  }

  .lead {
    margin-top: 10px;
  }

  .number-form {
    margin-top: 30px;
  }

  input,
  button {
    min-height: 40px;
  }

  .number-message {
    min-height: 26px;
    padding-top: 5px;
  }

  .accordion-area {
    margin-top: 24px;
  }

  summary {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .request-link-wrap {
    padding-top: 32px;
  }

  .site-footer {
    margin-top: 14px;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-left: 24px;
    padding-right: 24px;
  }

  .headline {
    font-size: 15px;
  }
}
