body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Header */
.bbix-area {
  background-color: #03040a;
}

.bbix-inner {
  max-width: calc(1248px - 48px);
  padding: 12px 24px;
  margin: 0 auto;
}

.header {
  position: sticky;
  left: 0;
  z-index: 9999;
  margin: 0 auto;
  background-color: #1d3758;
  transition:
    all 0.2s ease-in,
    top 0.5s ease-out;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: calc(1248px - 48px);
  padding: 16px 24px;
  margin: 0 auto;
  background-color: rgba(29, 55, 88, 0.95);
  transition: all 0.2s ease-in-out;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav-list {
  display: flex;
  gap: 56px;
  align-items: center;
  padding-left: 0;
}

.header-nav-item {
  line-height: 1.4;
  text-align: center;
  list-style: none;
}

.header-nav-link {
  font-size: 1.125rem;
  color: #fff;
  letter-spacing: 0.1em;
  white-space: pre-line;
}

/* Main */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 2.5rem;
  background-color: #ffffff;
  color: #4a5568;
}

.title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2.5rem;
  text-align: center;
  color: #718096;
}

.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  width: 100%;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 75%;
}

.ip-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ip-label {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
}

.ip-input-container {
  display: flex;
  gap: 0.5rem;
}

.ip-value {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: #edf2f7;
}

.button {
  background: linear-gradient(115deg, #d72e2e 0%, #ec8c69 100%);
  color: white;
  font-weight: bold;
  font-size: 15px;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  cursor: pointer;
  opacity: 1;
}

.button:hover {
  background: #eb5286;
}

.button:disabled,
.button:disabled:hover {
  background: #d3d3d3;
  cursor: not-allowed;
  opacity: 0.6;
}

.contact-button {
  border: 2px solid #222222;
  text-decoration: none;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.test-result-container {
  padding: 2rem;
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.test-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  text-align: center;
}

.test-result-text {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: #4a5568;
}

.test-result-text.is-ok,
.test-result-text.is-failed {
  font-size: 3rem;
}

.test-result-text.is-ok {
  color: #48bb78;
}

.test-result-text.is-failed {
  color: #e53e3e;
}

.indicator-container {
  display: flex;
  flex-direction: column;
  margin: 3rem;
  padding: 1rem;
  align-items: center;
  outline: 3px solid #4c9ac0;
  outline-offset: 5px;
  width: 90%;
}

.indicator-container[hidden] {
  display: none;
}

.indicator-text {
  font-weight: bold;
  padding: 0.5em 1em;
  font-size: 1.25rem;
  margin: 10px 5px;
  text-align: center;
  width: 100%;
}

.flex-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

/* Provider */
.provider {
  background: linear-gradient(135deg, rgba(29,31,96,1) 0%, rgba(28,72,94,1) 40%, rgba(28,72,94,1) 60%, rgba(22,4,68,1) 100%);
}

.provider-section-inner {
  max-width: 1248px;
  padding: 112px 24px;
  margin: 0 auto;
}

.provider-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.provider-contents {
  line-height: 1.75;
}

.provider-website > a {
  color: inherit;
  text-decoration: underline;
}

.provider-website > a:hover {
  text-decoration: none;
}

/* Footer */
.footer {
  background-color: #03040a;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1248px;
  padding: 48px 24px;
  margin: 0 auto;
}

.footer-link-list {
  display: flex;
  gap: 56px;
  align-items: center;
  justify-content: center;
  padding-left: 0;
}

.footer-link-item {
  list-style: none;
}

.footer-link-item > a {
  font-size: 0.875rem;
  color: #fff;
}

.copyright {
  font-size: 0.75rem;
  color: #fff;
  text-align: center;
}

@media (max-width: 768px) {
  .bbix-inner {
    padding: 12px;
  }

  .bbix-inner > img {
    width: auto;
    height: 30px;
  }

  .header-inner {
    padding: 8px 12px;
  }

  /* 元実装はハンバーガーメニュー前提で画面外に退避しており、開くボタンが無いため実質非表示 */
  .header-nav {
    position: fixed;
    top: 0;
    right: -200vw;
    z-index: -1;
    width: 100%;
    height: 100vh;
    padding: 40px 24px 120px;
    background-color: rgba(74, 74, 74, 0.95);
    transition: right 0.3s;
  }

  .header-nav-list {
    gap: 40px;
    flex-direction: column;
  }

  .provider-section-inner {
    max-width: 600px;
    padding: 60px 12px;
  }

  .provider-inner {
    gap: 16px;
    flex-direction: column;
  }

  .provider-logo {
    width: 140px;
  }

  .provider-logo > img {
    width: 100%;
    height: auto;
  }

  .provider-contents {
    padding: 0 12px;
  }

  .footer-link-list {
    gap: 16px 24px;
    flex-wrap: wrap;
  }
}

@media (max-width: 540px) {
  .header-logo > a > img {
    width: 110px;
    height: auto;
  }
}
