:root {
  --primary: #155e75;
  --primary-dark: #164e63;
  --accent: #0e7490;
  --background: #f6f8fa;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --border: #d8e0e7;
  --notice: #ecfeff;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-dark);
}

.site-header {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.header-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 20px;
}

.site-name {
  color: #fff;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  text-decoration: none;
}

.site-summary {
  max-width: 820px;
  margin: 10px 0 0;
  color: #e6f6fa;
  font-size: 0.95rem;
  line-height: 1.65;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.18);
}

.global-nav a {
  padding: 12px 16px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.global-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.main-content {
  width: min(calc(100% - 32px), var(--max-width));
  min-height: 55vh;
  margin: 28px auto 48px;
}

.hero,
.content-card,
.article-card,
.notice-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}

.hero,
.content-card {
  padding: clamp(22px, 5vw, 42px);
}

.hero h1,
.content-card h1,
.article-body h1 {
  margin-top: 0;
  color: var(--primary-dark);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  line-height: 1.35;
}

h2 {
  margin-top: 2.2em;
  padding-bottom: 8px;
  border-bottom: 2px solid #cde7ed;
  color: var(--primary-dark);
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  line-height: 1.45;
}

h3 {
  margin-top: 1.8em;
  color: var(--primary-dark);
  font-size: 1.2rem;
}

.lead {
  color: #334155;
  font-size: 1.08rem;
}

.notice-box {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--accent);
  background: var(--notice);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.article-card {
  padding: 22px;
}

.article-card h2,
.article-card h3 {
  margin-top: 0;
  padding: 0;
  border: 0;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.button-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 7px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  color: #fff;
  background: var(--primary-dark);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  padding: 28px 16px;
  color: #d8e7eb;
  background: #173640;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}

.site-footer a {
  color: #fff;
}

.disclosure {
  margin: 18px auto 8px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .header-inner {
    padding-top: 22px;
  }

  .global-nav {
    justify-content: flex-start;
  }

  .global-nav a {
    padding: 10px 9px;
    font-size: 0.9rem;
  }

  .main-content {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 18px;
  }

  .hero,
  .content-card,
  .article-body {
    padding: 20px;
  }
}

.contact-form {
  max-width: 760px;
  margin-top: 24px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #aebbc6;
  border-radius: 7px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(14, 116, 144, 0.18);
}

.required {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: #b42318;
  font-size: 0.75rem;
}

.form-note {
  padding: 14px 16px;
  border-left: 4px solid #64748b;
  background: #f1f5f9;
  font-size: 0.92rem;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  display: none;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 7px;
}

.form-status:not(:empty) {
  display: block;
  border: 1px solid #94a3b8;
  background: #f8fafc;
}

.form-status.success {
  border-color: #15803d;
  color: #14532d;
  background: #f0fdf4;
}

.form-status.error {
  border-color: #b42318;
  color: #7f1d1d;
  background: #fef2f2;
}
.affiliate-box {
  margin: 36px 0 8px;
  padding: 24px;
  border: 1px solid #b9d6df;
  border-radius: 10px;
  background: #f0fbfd;
}

.affiliate-box h2 {
  margin-top: 10px;
}

.affiliate-label {
  display: inline-block;
  margin: 0;
  padding: 2px 9px;
  border-radius: 4px;
  color: #fff;
  background: #59636e;
  font-size: 0.78rem;
  font-weight: 700;
}

.affiliate-link {
  margin: 22px 0 4px;
  text-align: center;
}

.affiliate-link > a {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.affiliate-link > a:hover {
  color: #fff;
  background: var(--primary-dark);
}
