/* =========================================
   株式会社サンプルテック コーポレートサイト
   シンプル / 信頼感 / BtoB / レスポンシブ
   ========================================= */

:root {
  --color-navy: #12315b;
  --color-navy-dark: #0d2545;
  --color-blue: #1f6feb;
  --color-blue-dark: #1a5fce;
  --color-text: #23303f;
  --color-text-light: #5b6b7c;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7fb;
  --color-border: #dbe3ec;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(18, 49, 91, 0.08);
  --shadow-md: 0 8px 24px rgba(18, 49, 91, 0.10);
  --max-width: 1080px;
  --header-h: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-navy);
  background: var(--color-bg-soft);
}

.btn-block {
  width: 100%;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-navy);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--color-navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.logo-text {
  font-size: 1.05rem;
}

.global-nav ul {
  display: flex;
  gap: 32px;
}

.global-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  top: 21px;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.nav-toggle.is-open .nav-toggle-bar {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: #fff;
  padding: 88px 0 72px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-lead {
  font-size: 0.95rem;
  font-weight: 500;
  color: #9fc0f0;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1rem;
  color: #d5e0f0;
  margin-bottom: 32px;
  max-width: 40ch;
}

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

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero-stats {
  display: grid;
  gap: 16px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-unit {
  font-size: 1rem;
  margin-left: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: #c3d3ea;
}

/* ---------- 特長バー ---------- */
.features {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.feature-list h2 {
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.feature-list p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 80px 0;
}

.section:nth-of-type(even) {
  background: var(--color-bg-soft);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ---------- サービスカード ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--color-bg-soft);
  color: var(--color-blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.card > p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.card-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.card-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
}

/* ---------- ご支援の流れ ---------- */
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: flow;
}

.flow-list li {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.flow-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  margin-bottom: 10px;
}

.flow-list h3 {
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.flow-list p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ---------- 会社概要 ---------- */
.company-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.company-table th,
.company-table td {
  text-align: left;
  padding: 16px 8px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.company-table th {
  width: 120px;
  color: var(--color-navy);
  font-weight: 700;
  white-space: nowrap;
}

.company-mission {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.company-mission h3 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.company-mission p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.company-mission p:last-child {
  margin-bottom: 0;
}

/* ---------- お問い合わせ ---------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

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

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.req,
.opt {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.req {
  background: #fdecec;
  color: #c0392b;
}

.opt {
  background: var(--color-bg-soft);
  color: var(--color-text-light);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.15);
}

.form-row textarea {
  resize: vertical;
}

.form-row.is-invalid input,
.form-row.is-invalid textarea {
  border-color: #c0392b;
}

.error-text {
  min-height: 1em;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #c0392b;
}

.form-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.form-check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-message.is-success {
  display: block;
  background: #e8f5ec;
  color: #1e7e42;
  border: 1px solid #b7dfc4;
}

.form-message.is-error {
  display: block;
  background: #fdecec;
  color: #c0392b;
  border: 1px solid #f2c4c0;
}

.contact-direct {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.contact-direct p {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.tel-num {
  font-size: 1.8rem !important;
  font-weight: 700;
  color: var(--color-navy) !important;
  letter-spacing: 0.04em;
  margin: 4px 0;
}

.tel-note {
  font-size: 0.8rem !important;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: #c3d3ea;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}

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

.footer-nav a {
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  font-size: 0.8rem;
  color: #8ba3c2;
}

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .company-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.28s ease;
  }

  .global-nav.is-open {
    transform: translateY(0);
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }

  .global-nav li {
    border-bottom: 1px solid var(--color-border);
  }

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

  .global-nav a {
    display: block;
    padding: 16px 0;
  }

  .global-nav a::after {
    display: none;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .company-table th {
    width: 96px;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
