@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=DM+Serif+Display&display=swap');

:root {
  --navy: #0f1e35;
  --dark: #1a2d45;
  --teal: #0e7490;
  --teal-light: #22d3ee;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 15px; line-height: 1.85; color: var(--text); background: #fff;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; color: #0e6080; }
img { max-width: 100%; height: auto; }
p { margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }

/* ===== Header ===== */
header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.logo { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.05em; }
.logo span { color: var(--teal-light); }

/* ===== Nav ===== */
.header-nav { display: flex; gap: 0; }
.header-nav a {
  color: rgba(255,255,255,0.6); font-size: 13px; padding: 0 14px; line-height: 60px;
  display: block; border-bottom: 2px solid transparent; transition: color 0.2s;
}
.header-nav a:hover { color: #fff; text-decoration: none; }
.header-nav a.active { color: #fff; border-bottom: 2px solid var(--teal-light); }

/* ===== Page head ===== */
.page-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
  padding: 52px 24px;
  border-bottom: 3px solid var(--teal);
}
.page-head-inner { max-width: 960px; margin: 0 auto; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 10px; letter-spacing: 0.05em; }
.breadcrumb a { color: rgba(255,255,255,0.4); }
.page-head h1 { color: #fff; font-size: 26px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.page-head .lead { color: rgba(255,255,255,0.6); font-size: 14px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2a44 50%, #0a3a50 100%);
  padding: 80px 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(14,116,144,0.2) 0%, transparent 60%);
}
.hero-inner { max-width: 960px; margin: 0 auto; position: relative; }
.hero-label {
  display: inline-block; border: 1px solid rgba(34,211,238,0.4);
  color: var(--teal-light); font-size: 11px; letter-spacing: 0.3em;
  padding: 5px 16px; border-radius: 2px; margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  color: #fff; font-size: clamp(28px, 5vw, 46px); font-weight: 700;
  line-height: 1.3; margin-bottom: 20px; max-width: 680px;
}
.hero h1 em { font-style: normal; color: var(--teal-light); }
.hero-lead {
  color: rgba(255,255,255,0.7); font-size: 16px; max-width: 580px;
  line-height: 1.9; margin-bottom: 40px;
}
.hero-cta {
  display: inline-block; background: var(--teal); color: #fff;
  font-weight: 700; font-size: 15px; letter-spacing: 0.05em;
  padding: 14px 40px; border-radius: 2px; transition: all 0.2s;
}
.hero-cta:hover { background: #0c6580; text-decoration: none; transform: translateY(-1px); }
.hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px;
}
.hero-stat-num { color: var(--teal-light); font-size: 28px; font-weight: 700; display: block; }
.hero-stat-label { color: rgba(255,255,255,0.5); font-size: 12px; letter-spacing: 0.05em; }

/* ===== Layout ===== */
.content-wrap {
  display: grid; grid-template-columns: 1fr 240px; gap: 48px;
  max-width: 960px; margin: 0 auto; padding: 56px 24px;
}

/* ===== Main ===== */
main h2 {
  font-size: 20px; color: var(--navy); font-weight: 700;
  border-left: 4px solid var(--teal); padding-left: 14px;
  margin: 40px 0 16px; line-height: 1.4;
}
main h2:first-child { margin-top: 0; }
main h3 { font-size: 16px; color: var(--dark); font-weight: 700; margin: 24px 0 10px; }

.highlight {
  background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: 4px; padding: 20px 24px; margin: 20px 0;
}
.highlight p:last-child { margin: 0; }

/* ===== Tables ===== */
table.wptable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
table.wptable th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; }
table.wptable td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.8; }
table.wptable tr:nth-child(even) td { background: #f8fafc; }
table.wptable td strong { color: var(--navy); }

/* ===== Steps ===== */
.steps { margin: 24px 0; }
.step {
  display: flex; gap: 20px; margin-bottom: 28px;
  padding: 20px; border: 1px solid var(--border); border-radius: 4px;
  background: #fafcff; transition: box-shadow 0.2s;
}
.step:hover { box-shadow: 0 4px 16px rgba(15,30,53,0.08); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal);
  color: #fff; font-size: 13px; font-weight: 700; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body h3 { font-size: 15px; color: var(--navy); margin: 0 0 6px; }
.step-body p { font-size: 14px; color: #555; margin: 0; line-height: 1.8; }

/* ===== Type cards ===== */
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin: 20px 0; }
.type-card {
  border: 1px solid var(--border); border-radius: 4px; padding: 20px;
  background: #fff; border-top: 3px solid var(--teal);
}
.type-card h3 { font-size: 14px; color: var(--navy); margin: 0 0 8px; }
.type-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; margin: 24px 0; }
.card {
  border: 1px solid var(--border); border-radius: 4px; padding: 20px;
  background: #f8fafc; transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(15,30,53,0.08); }
.card h3 { font-size: 14px; color: var(--navy); margin: 0 0 8px; font-weight: 700; }
.card p { font-size: 13px; color: var(--muted); margin: 0 0 10px; line-height: 1.7; }
.card a { font-size: 13px; color: var(--teal); }

/* ===== Inline CTA ===== */
.cta-inline {
  background: linear-gradient(135deg, var(--navy) 0%, var(--dark) 100%);
  color: #fff; border-radius: 4px; padding: 32px; text-align: center; margin: 36px 0;
}
.cta-inline h3 { color: var(--teal-light); font-size: 18px; margin-bottom: 10px; }
.cta-inline p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px; line-height: 1.9; }
.cta-inline a {
  display: inline-block; background: var(--teal); color: #fff;
  font-weight: 700; padding: 12px 36px; border-radius: 2px; font-size: 14px;
}
.cta-inline a:hover { text-decoration: none; background: #0c6580; }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-q { font-weight: 700; color: var(--navy); margin-bottom: 10px; font-size: 15px; }
.faq-q::before { content: 'Q. '; color: var(--teal); }
.faq-a { font-size: 14px; color: #444; line-height: 1.85; }

/* ===== Next link ===== */
.next-link {
  background: #f8fafc; border: 1px solid var(--border); border-radius: 4px;
  padding: 14px 20px; margin-top: 32px; display: flex; justify-content: space-between; align-items: center;
}
.next-link span { font-size: 12px; color: var(--muted); }
.next-link a { font-size: 14px; font-weight: 700; color: var(--navy); }

/* ===== Sidebar ===== */
aside { padding-top: 0; }
.side-nav {
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 4px; padding: 18px; margin-bottom: 20px;
}
.side-nav h4 {
  font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.side-nav ul { list-style: none; }
.side-nav ul li a {
  font-size: 13px; color: var(--text); display: block;
  padding: 6px 0; border-bottom: 1px dotted var(--border);
}
.side-nav ul li:last-child a { border-bottom: none; }
.side-nav ul li a:hover { color: var(--teal); text-decoration: none; }

.side-cta {
  background: var(--navy); color: #fff;
  border-radius: 4px; padding: 20px; text-align: center;
}
.side-cta h4 { color: var(--teal-light); font-size: 14px; margin-bottom: 10px; line-height: 1.6; }
.side-cta p { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 14px; line-height: 1.7; }
.side-cta a.cta-btn {
  display: block; background: var(--teal); color: #fff;
  font-weight: 700; padding: 9px; border-radius: 2px; font-size: 13px;
}
.side-cta a.cta-btn:hover { text-decoration: none; background: #0c6580; }

/* ===== Footer ===== */
footer {
  background: var(--navy); color: rgba(255,255,255,0.35);
  text-align: center; padding: 28px; font-size: 12px;
  letter-spacing: 0.08em; line-height: 2;
}
footer a { color: rgba(34,211,238,0.5); }
footer a:hover { color: var(--teal-light); }

/* ===== Mobile ===== */
@media (max-width: 680px) {
  .content-wrap { grid-template-columns: 1fr; }
  aside { order: -1; }
  .header-nav { display: none; }
  .hero { padding: 56px 20px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}
