/* ベース */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.7;
  color: #111827; /* ほぼ黒に近い濃いグレー */
  background: radial-gradient(
    circle at top,
    #e5f0ff 0,
    #f9fafb 40%,
    #f9fafb 100%
  );
}

hr {
  margin: 2em 0;
}

/* ヘッダー */
.site-header {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #f9fafb;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.site-nav a:hover {
  background-color: rgba(248, 250, 252, 0.1);
  border-color: rgba(248, 250, 252, 0.3);
}

.site-nav a.active {
  background-color: #f9fafb;
  color: #1d4ed8;
  font-weight: 600;
}

/* メイン */
.site-main {
  max-width: 960px;
  margin: 18px auto 40px;
  padding: 20px 16px 32px;
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

/* Markdown本文のざっくり整形 */
.site-main h1 {
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.site-main h2 {
  font-size: 1.15rem;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  padding-left: 8px;
  border-left: 4px solid #2563eb;
}

.site-main h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.site-main p {
  margin: 0 0 0.7rem;
}

.site-main ul {
  padding-left: 1.2rem;
  margin: 0.4rem 0 0.8rem;
}

/* ヒーロー画像など */
.section-hero {
  margin: -4px 0 16px;
  border-radius: 16px;
  overflow: hidden;
}

.section-hero img {
  width: 100%;
  display: block;
}

.markdown-body img,
.markdown-body p img {
  max-width: 800px !important;
  width: auto !important; /* ← 100%をやめて拡大しない */
  height: auto !important;
  display: block !important;
  margin: 1.5em auto !important;
  border-radius: 8px !important;
  object-fit: cover !important;
}

/* フッター */
.site-footer {
  background-color: #0f172a;
  color: #9ca3af;
  padding: 14px 12px;
  font-size: 0.8rem;
  text-align: center;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-main {
    margin: 12px 10px 28px;
    padding: 18px 14px 26px;
  }
}

/* form */
.pf-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 12px;
}

.pf-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pf-field input,
.pf-field select,
.pf-field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.pf-field textarea {
  resize: vertical;
}

.pf-required {
  color: #dc2626;
  font-size: 0.8rem;
  margin-left: 4px;
}

.pf-radio-group label {
  display: inline-block;
  margin-right: 12px;
  font-size: 0.9rem;
}

.pf-btn {
  margin-top: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #f9fafb;
  font-weight: 600;
  cursor: pointer;
}

.pf-btn:hover {
  opacity: 0.9;
}
