/*
 * 7th Logic Unified Design System (Original Brand Revival + Clean Editorial Structure)
 * 元のTOPのデザイン言語（白地・#1C1C1C・#4CB78E・#FFE655・名刺モチーフ枠・
 * 角丸ゼロのシャープな造形・方眼グリッド）を継承しつつ、
 * 情報階層・読みやすさ・レスポンシブ安定性を全ページ共通で整える。
 */

:root {
  --canvas: #ffffff;
  --surface-subtle: #f4f6f5;
  --ink-primary: #1c1c1c;
  --ink-secondary: #2d3230;
  --ink-muted: #525a56;
  --border-subtle: #d5dad7;
  --brand-green: #4cb78e;
  --brand-green-dark: #2f8b67;
  --brand-yellow: #ffe655;
  --brand-black: #1c1c1c;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--ink-primary);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.8;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

.jp-prose {
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.font-logo {
  font-family: 'Teko', sans-serif;
}

/* Original subtle square grid backdrop */
.pattern-grid {
  background-image:
    linear-gradient(to right, currentColor 1px, transparent 1px),
    linear-gradient(to bottom, currentColor 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Consistent site container (leaves room for desktop side brand frame) */
.site-container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .site-container {
    padding-inline: 3rem;
  }
}

/* Focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

/* Scrolled header */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--border-subtle);
}

/* Key message underline highlight */
.headline-accent {
  background-image: linear-gradient(transparent 74%, var(--brand-yellow) 74%, var(--brand-yellow) 96%, transparent 96%);
  padding-bottom: 0.04em;
}

/* Link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  transition: color 0.18s ease, gap 0.18s ease;
}

.link-arrow:hover {
  color: var(--brand-green-dark);
  gap: 0.65rem;
}

/* Sharp flat form inputs matching original brand */
.form-field {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: #ffffff;
  border: 2px solid var(--brand-black);
  border-radius: 0;
  color: var(--ink-primary);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: border-color 0.18s ease;
}

.form-field::placeholder {
  color: #9ca3af;
}

.form-field:focus {
  outline: none;
  border-color: var(--brand-green);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
