/* -------------------------------------------------------
   CPSoft.jp - Global Common Stylesheet
   Applies to all apps under https://cpsoft.jp/
   ------------------------------------------------------- */

/* Reset & Base
---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "SF Pro Display", "Inter", "Noto Sans JP", sans-serif;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/* Typography
---------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0a2540;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
  color: #333;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.3rem;
}

/* Layout Utilities
---------------------------------------------------------- */
.container {
  width: min(90%, 1100px);
  margin-inline: auto;
  padding-block: 2rem;
}

section {
  padding-block: 5rem;
}

.text-center {
  text-align: center;
}

/* Buttons
---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background-color: #2563eb;
  color: #fff;
}

.btn.primary:hover {
  background-color: #1e3a8a;
}

.btn.secondary {
  background-color: #f3f4f6;
  color: #0a2540;
}

.btn.secondary:hover {
  background-color: #e5e7eb;
}

/* Links
---------------------------------------------------------- */
a:hover {
  opacity: 0.8;
}

/* Header
---------------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
}

.site-header nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: #0a2540;
  transition: opacity 0.2s;
}

.site-header nav a:hover {
  opacity: 0.6;
}

.logo {
  height: 36px;
}

/* Footer
---------------------------------------------------------- */
.site-footer {
  background: #0a2540;
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
  padding: 2.5rem 1rem;
}

.site-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive
---------------------------------------------------------- */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .site-header .container {
    flex-direction: column;
    gap: 0.8rem;
  }
  .site-header nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
}