/* ==========================================================================
   TEOS LLC — Architectural Light Design System (pattern_A_typographic_rev1)
   Intellectual, Sincere, Structural Beauty with High-Contrast Japanese Typography
   ========================================================================== */

:root {
  /* Color Palette — Architectural Light (WCAG AA 4.5:1+ compliant) */
  --bg-primary: #F7F6F2;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EEECE5;
  --bg-dark: #18181B;

  --text-primary: #18181B;        /* Contrast on #F7F6F2: ~16.5:1 */
  --text-secondary: #3F3F46;      /* Contrast on #F7F6F2: ~9.4:1 */
  --text-muted: #52525B;          /* Contrast on #F7F6F2: ~6.8:1 (Exceeds WCAG AA 4.5:1) */
  --text-on-dark: #F4F4F0;        /* Contrast on #18181B: ~16.1:1 */
  --text-muted-on-dark: #A1A1AA;  /* Contrast on #18181B: ~7.2:1 (Exceeds WCAG AA 4.5:1) */

  --border-hairline: #DCD9D0;
  --border-strong: #18181B;

  /* Typography */
  --font-sans-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --font-sans-en: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Section Heading Hierarchy & Rhythm */
  --h2-major: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
  --h2-minor: 1.5rem;
  --section-py: clamp(4.5rem, 9vw, 8rem);
  --section-py-major: clamp(5rem, 11vw, 9.5rem);
  --section-py-minor: clamp(3.5rem, 6vw, 5.5rem);

  /* Layout & Architectural Grid */
  --container-max: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 100%;
  overflow-x: clip;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans-jp);
  font-feature-settings: "palt" 1, "kern" 1;
  line-height: 1.85;
  line-break: strict;
  letter-spacing: 0.02em;
  text-align: start;
  overflow-wrap: break-word;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Targeted Text Wrapping (modern-web-guidance compliance) */
h1, h2, h3, .balanced-heading {
  text-wrap: balance;
  font-feature-settings: "palt" 1;
  line-height: 1.32;
}

p, li, dd {
  text-wrap: pretty;
}

.ib {
  display: inline-block;
}

.prose-measure {
  max-width: 68ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
}

.contact-section a:focus-visible,
.contact-section button:focus-visible,
.contact-section input:focus-visible,
.contact-section textarea:focus-visible,
.contact-section select:focus-visible {
  outline-color: var(--text-on-dark);
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Header & Mobile Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
}

.brand-logo-img {
  display: block;
  height: clamp(1.15rem, 1rem + 0.45vw, 1.4rem);
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  padding-block: 0.25rem;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.25rem;
  background-color: var(--text-primary);
  color: var(--text-on-dark);
  border-radius: 2px;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: #27272A;
}

/* Mobile Menu Button & Drawer */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-sans-jp);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-icon {
  display: inline-block;
  width: 14px;
  height: 10px;
  position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform 0.2s ease, top 0.2s ease;
}

.mobile-menu-icon::before {
  top: 1px;
}

.mobile-menu-icon::after {
  bottom: 1px;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::before {
  top: 4px;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::after {
  top: 4px;
  transform: rotate(-45deg);
}

.mobile-nav-drawer {
  display: none;
  border-top: 1px solid var(--border-hairline);
  background-color: var(--bg-primary);
  padding: 1.25rem var(--gutter) 1.75rem;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--border-hairline);
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.95rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 820px) {
  .nav-list,
  .site-nav > .nav-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: clamp(4.5rem, 11vw, 8.5rem);
  padding-bottom: clamp(4.5rem, 9vw, 7.5rem);
}

.hero-kicker {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-kicker::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background-color: var(--border-strong);
}

.hero-title {
  font-size: clamp(2.125rem, 1.35rem + 3.4vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.26;
  color: var(--text-primary);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border-strong);
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
    align-items: start;
  }
}

.hero-lead {
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.95;
}

.hero-action-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .hero-action-col {
    border-left: 1px solid var(--border-hairline);
    padding-left: 2.5rem;
  }
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--text-primary);
  color: var(--text-on-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-cta-btn:hover {
  background-color: #27272A;
}

.hero-cta-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Architectural Section Layout (Left-Column Sticky H2, Right-Column Content)
   ========================================================================== */
.section {
  padding-block: var(--section-py);
  border-top: 1px solid var(--border-hairline);
  scroll-margin-top: 4.5rem;
}

.section-major {
  padding-block: var(--section-py-major);
}

.section-minor {
  padding-block: var(--section-py-minor);
}

.section-subtle {
  background-color: var(--bg-subtle);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.section-header {
  display: block;
  margin-bottom: 0;
}

@media (min-width: 860px) {
  .section-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 2.5rem;
  }

  .section-header {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }
}

.section-title-jp {
  font-weight: 700;
  color: var(--text-primary);
}

.section-major .section-title-jp {
  font-size: var(--h2-major);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.section-minor .section-title-jp {
  font-size: var(--h2-minor);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ==========================================================================
   考え方 (About) — Statement + Single-Column Editorial Flow
   ========================================================================== */
.about-grid {
  display: block;
}

.about-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-lead-statement {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

.about-columns {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.95;
  max-width: 42em;
}

/* ==========================================================================
   提供領域 (Capabilities) — Structural Editorial Rows
   ========================================================================== */
.capability-matrix {
  border-top: 0;
}

.capability-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--border-hairline);
}

.capability-item:first-child {
  padding-top: 0.5rem;
}

.capability-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.capability-heading {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

.capability-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.capability-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 42em;
}

.capability-scope {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-hairline);
  line-height: 1.7;
  max-width: 48em;
}

/* ==========================================================================
   メンバー (Professionals) — De-boxed Architectural Hairline Layout
   ========================================================================== */
.professionals-layout {
  display: block;
}

.professionals-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.prof-rep-box {
  padding-top: 0.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border-hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 760px) {
  .prof-rep-box {
    grid-template-columns: 4fr 8fr;
    gap: 3rem;
  }
}

.prof-identity {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prof-position {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.prof-name-jp {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.prof-rep-box .prof-name-jp {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
}

.prof-name-en {
  font-family: var(--font-sans-en);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.prof-role-line {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-hairline);
  line-height: 1.6;
}

.prof-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.prof-bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 42em;
}

.prof-members-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  gap: 2.5rem;
}

@media (min-width: 720px) {
  .prof-members-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.prof-member-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prof-member-box .prof-name-jp {
  font-size: 1.25rem;
}

.prof-member-box .prof-bio {
  font-size: 0.9375rem;
}

.prof-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: auto;
}

.prof-link {
  display: inline-block;
  padding-block: 0.25rem;
  font-family: var(--font-sans-en);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prof-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   よくあるご質問 (FAQ) — Quiet Reference Section
   ========================================================================== */
.faq-layout {
  display: block;
}

.faq-list {
  border-top: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-hairline);
  padding-block: 1.5rem;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.faq-q-num {
  font-family: var(--font-sans-en);
  font-size: 1rem;
  font-weight: 700;
  width: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.9;
  padding-left: 1.75rem;
  max-width: 42em;
}

/* ==========================================================================
   会社概要 (Company Profile) — Quiet Reference Section + Non-Text SVG Location
   ========================================================================== */
.company-layout {
  display: block;
}

.company-dl {
  border-top: 0;
  display: flex;
  flex-direction: column;
}

.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border-hairline);
}

.company-row:first-child {
  padding-top: 0;
}

.company-row:last-child {
  border-bottom: 0;
}

@media (min-width: 640px) {
  .company-row {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.company-dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.75;
}

.company-dd {
  font-size: 0.96875rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.75;
}

.company-note {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover {
  opacity: 0.75;
}

/* Precise vertical alignment between "所在地" label and outlined SVG path */
.location-graphic-wrap {
  display: flex;
  align-items: flex-start;
  margin-top: 0.15rem;
}

.location-graphic {
  display: block;
  max-width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==========================================================================
   お問い合わせ (Contact) — Japanese Labels, 16px Inputs, Privacy Notice
   ========================================================================== */
.contact-section {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: var(--section-py);
  scroll-margin-top: 4.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
}

.contact-title {
  font-size: var(--h2-major);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1.35;
}

.contact-lead {
  font-size: 0.96875rem;
  color: var(--text-muted-on-dark);
  line-height: 1.9;
  margin-top: 1.25rem;
}

.contact-direct-box {
  padding-top: 2rem;
  border-top: 1px solid #2E2E34;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-direct-note {
  font-size: 0.8125rem;
  color: var(--text-muted-on-dark);
  line-height: 1.65;
  margin-top: 0.25rem;
}

.contact-form {
  background-color: #202024;
  border: 1px solid #323238;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted-on-dark);
  line-height: 1.5;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-on-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-badge-req {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-on-dark);
  background-color: #3F3F46;
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
}

/* 16px (1rem) font-size to prevent iOS Safari auto-zoom on focus */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: #18181B;
  border: 1px solid #52525B;
  color: var(--text-on-dark);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.75rem 0.95rem;
  border-radius: 2px;
  transition: border-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #8E8E99;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--text-on-dark);
  outline: none;
}

.form-input:user-invalid,
.form-textarea:user-invalid {
  border-color: #F87171;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Act on Protection of Personal Information (Article 21) notice */
.privacy-box {
  background-color: #18181B;
  border: 1px solid #323238;
  padding: 1rem 1.15rem;
  font-size: 0.8125rem;
  color: var(--text-muted-on-dark);
  line-height: 1.75;
}

.privacy-box-title {
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.35rem;
}

.privacy-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #2E2E34;
  color: var(--text-on-dark);
  font-weight: 500;
  cursor: pointer;
}

.privacy-checkbox {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  accent-color: var(--text-on-dark);
  flex-shrink: 0;
}

/* Honeypot field (visually hidden from humans) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.turnstile-wrap:empty {
  display: none;
}

.form-submit {
  align-self: flex-start;
  background-color: var(--text-on-dark);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-submit:hover {
  opacity: 0.9;
}

.form-status {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-on-dark);
  display: none;
}

.form-status.is-visible {
  display: block;
  padding: 1rem 1.15rem;
  background-color: #18181B;
  border-left: 3px solid var(--text-on-dark);
}

/* ==========================================================================
   Footer — Responsive Wrap (Zero Horizontal Scroll on 320px/375px)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  border-top: 1px solid #2E2E34;
  color: var(--text-muted-on-dark);
  padding-block: 2.5rem;
  font-size: 0.8125rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-logo-img {
  display: block;
  height: 1.1rem;
  width: auto;
  opacity: 0.92;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
}

.footer-links a:hover {
  color: var(--text-on-dark);
}
