/* --------------------
  Reset & base
-------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  line-height: 1.7;
  color: #222;
  background-color: #f7f8fb;
}

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

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

p {
  margin: 0 0 0.8em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.4;
}

/* --------------------
  Layout helpers
-------------------- */
.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-alt {
  padding: 72px 0;
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 15px;
  color: #555;
}

/* --------------------
  Page hero (sub pages)
-------------------- */
.page-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid #e3e6f0;
}

.page-hero .section-label {
  margin-bottom: 6px;
}

.page-hero h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

/* --------------------
  Header
-------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(247, 248, 251, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo a {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
}

/* Nav */
.main-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  font-size: 14px;
  padding: 6px 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #2f5fff;
  transition: width 0.2s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

/* --------------------
  Hero (TOP)
-------------------- */
.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 30px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 220px;
}

.hero-circle {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #aab8ff, #2f5fff);
  opacity: 0.9;
  position: absolute;
  right: 0;
  top: 10px;
}

.hero-card {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(15, 27, 74, 0.15);
  max-width: 260px;
}

.hero-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-card-body {
  font-size: 13px;
  color: #555;
}

/* --------------------
  Buttons
-------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
}

.btn.primary {
  background: #2f5fff;
  color: #ffffff;
}

.btn.primary:hover {
  background: #264acc;
  transform: translateY(-1px);
}

.btn.ghost {
  background: #ffffff;
  color: #2f5fff;
  border-color: #d0d7ff;
}

.btn.ghost:hover {
  background: #eff2ff;
}

/* --------------------
  Cards & grids
-------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 24px rgba(15, 27, 74, 0.06);
  font-size: 14px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #555;
}

.card-list li {
  margin-bottom: 4px;
}

.card.small {
  padding: 14px 16px 16px;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-works .tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff2ff;
  color: #2f5fff;
  margin-bottom: 8px;
}

/* Company */
.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: flex-start;
}

.company-table-wrapper {
  overflow-x: auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.company-table th,
.company-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e3e6f0;
  vertical-align: top;
}

.company-table th {
  width: 120px;
  font-weight: 600;
  white-space: nowrap;
}

/* Philosophy */
.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.philosophy-points {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

/* Recruit */
.recruit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.recruit-note {
  font-size: 13px;
  color: #777;
  margin-top: 8px;
}

/* Contact */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  padding: 24px 20px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 27, 74, 0.05);
}

.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.required {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: #c0392b;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d0d4e2;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2f5fff;
  box-shadow: 0 0 0 1px rgba(47, 95, 255, 0.1);
}

.form-actions {
  margin-top: 16px;
  text-align: right;
}

.form-note {
  margin-top: 6px;
  font-size: 12px;
  color: #777;
}

/* --------------------
  Footer
-------------------- */
.site-footer {
  background: #111522;
  color: #d7d9e5;
  padding: 22px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-logo {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-address {
  margin: 0;
  color: #a6a9c0;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 0 0 6px;
}

.footer-links a {
  color: #d7d9e5;
}

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

.footer-copy {
  margin: 0;
  color: #8b8fb0;
}

/* --------------------
  Responsive
-------------------- */
.br-sp {
  display: none;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-layout,
  .philosophy-layout,
  .recruit-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .section,
  .section-alt {
    padding: 56px 0;
  }

  .header-inner {
    padding: 8px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 120%;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 27, 74, 0.14);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 180px;
    display: none;
  }

  .nav-list li {
    border-bottom: 1px solid #eef0f6;
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: 9px 16px;
  }

  .nav-list.is-open {
    display: block;
  }

  .service-grid,
  .works-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .br-sp {
    display: inline;
  }
}
