* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    sans-serif;

  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
}

.container {
  width: min(760px, 92%);
  margin: 30px auto;
}

/* ヘッダー */

.site-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  width: min(760px, 92%);
  margin: auto;
  padding: 18px 0;
}

.site-title {
  margin: 0;
  font-size: 21px;
}

.site-title a {
  color: #222;
  text-decoration: none;
}

/* ナビゲーション */

.nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  background: #eff6ff;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav a:hover {
  text-decoration: underline;
}

/* カード */

.card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

h1 {
  margin-top: 0;
  font-size: 28px;
  line-height: 1.4;
}

h2 {
  margin-top: 0;
  font-size: 20px;
}

.description {
  color: #666;
}

/* フォーム */

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

button {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  background: #2563eb;
  color: white;
}

button:hover {
  opacity: 0.9;
}

/* 結果 */

.result {
  display: none;
}

.result-main {
  font-size: 30px;
  font-weight: bold;
  margin: 10px 0 20px;
}

.result-details {
  background: #f5f7fa;
  border-radius: 10px;
  padding: 16px;
}

.result-details p {
  margin: 6px 0;
}

.success {
  color: #15803d;
}

.warning {
  color: #b45309;
}

.danger {
  color: #b91c1c;
}

.error {
  color: #b91c1c;
  font-weight: bold;
  margin-top: 12px;
}

.notice {
  color: #777;
  font-size: 13px;
}

/* トップページ */

.tool-grid {
  display: grid;
  gap: 15px;
}

.tool-card {
  display: block;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #222;
  text-decoration: none;
}

.tool-card:hover {
  border-color: #2563eb;
  background: #f8fbff;
}

.tool-card strong {
  display: block;
  color: #2563eb;
  font-size: 18px;
  margin-bottom: 5px;
}

.tool-card span {
  color: #666;
  font-size: 14px;
}

/* 関連ツール */

.tool-links a {
  display: block;
  margin: 10px 0;
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

.tool-links a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 25px;
  color: #888;
  font-size: 13px;
}

@media (max-width: 600px) {

  .container {
    margin-top: 20px;
  }

  .card {
    padding: 20px;
  }

  h1 {
    font-size: 23px;
  }

  .result-main {
    font-size: 25px;
  }

  .nav {
    gap: 5px;
  }

  .nav a {
    font-size: 12px;
  }

  .card h3 {
    margin-top: 22px;
    margin-bottom: 6px;
    font-size: 17px;
  }

  .card ul {
    padding-left: 22px;
  }

  .card li {
    margin: 5px 0;
  }
}
/* お問い合わせボタン */

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: #2563eb;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.contact-button:hover {
  background: #1d4ed8;
  color: white;
}

.contact-button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
