
*, *::before, *::after { box-sizing: border-box; }


body {
  margin: 0;
  background: #f8fafc;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
               "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.9;
}

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 72px; box-sizing: border-box;
  padding: 0 1.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.04), 0 4px 12px rgb(28 25 23 / 0.05);
}
.site-header .brand {
  display: inline-flex; align-items: center; gap: 0.4rem;
  text-decoration: none; transition: opacity 0.15s;
}
.site-header .brand:hover { opacity: 0.8; }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; }
.site-header nav a {
  color: #64748b; text-decoration: none; font-size: 0.875rem; transition: color 0.15s;
  line-height: 1.5;
}
.site-header nav a:hover { color: #1e293b; }
.site-header .cta {
  background: #2563eb; color: #fff; border-radius: 0.875rem;
  padding: 0.5rem 1.25rem; font-weight: 500;
}
.site-header .cta:hover { background: #1d4ed8; color: #fff; }

@media (max-width: 640px) {
  /* 高さが 72px に固定されているため、折り返すと中身がはみ出す。狭い画面では 1 行に収める。 */
  .site-header { height: auto; min-height: 60px; padding: 0.5rem 1rem; gap: 0.75rem; }
  .site-header nav { gap: 0.75rem; }
  /* 案内のリンクはフッターにも並んでいる。狭い画面では、ログインと申し込みだけ残す。 */
  .site-header nav a:not(.cta):not([href$="/login"]) { display: none; }
  /* 指で押せる高さにする。 */
  .site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-header .cta { padding: 0.5rem 1rem; }
  .site-header .brand svg { width: 116px; height: auto; }
}
.site-header nav a { white-space: nowrap; }

main { max-width: 58rem; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
main a { color: #2563eb; }
.subtitle { color: #64748b; font-size: 0.9rem; margin: 0 0 3rem; }
h1 { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
p, li { color: #334155; }
ul { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }
table { border-collapse: collapse; width: 100%; margin-top: 0.75rem; font-size: 0.95rem; }
th, td { border-bottom: 1px solid #e2e8f0; padding: 0.75rem 0.5rem; text-align: left; vertical-align: top; }
th { color: #64748b; font-weight: 600; }
td { color: #334155; }

/* 幅が足りないときに、表を横スクロールさせる枠 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; contain: inline-size; }
.table-scroll th, .table-scroll td { white-space: nowrap; }
/* 長い文の列。折り返して、幅を 20em〜35em ほどに保つ(表のセルには max-width が効かないため width で指定する) */
.table-scroll th.wrap, .table-scroll td.wrap { white-space: normal; min-width: 20em; width: 35em; }

.site-footer {
  border-top: 1px solid #e2e8f0;
  padding: 2rem 1.5rem 3rem;
}
.site-footer .inner {
  max-width: 58rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  font-size: 0.9rem; color: #94a3b8;
}
.site-footer a { color: #64748b; text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: #1e293b; }
.site-footer .copyright { margin-left: auto; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: #2563eb; color: #fff !important; text-decoration: none; font-weight: 500;
  border-radius: 0.875rem; padding: 0.75rem 1.75rem;
  transition: background-color 0.15s;
}
.button:hover { background: #1d4ed8; }
