/* =========================================================
   TechnoUdon Official Site
   ========================================================= */

:root {
  --ink: #1c1c1a;
  --ink-soft: #4c4c48;
  --ink-faint: #8a8a84;
  --paper: #fafaf7;
  --paper-alt: #f1f0ea;
  --line: #d8d6cd;
  --navy: #23365c;
  --dashi: #a97e2f;
  --white: #ffffff;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

section[id] { scroll-margin-top: var(--header-h); }

/* ---- pictograms ---- */
.pict {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pict-s { width: 22px; height: 22px; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: none;
}
.brand-text { line-height: 1.2; }
.brand-ja {
  display: block;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.12em;
}
.brand-en {
  display: block;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.global-nav {
  display: flex;
  gap: 28px;
}
.global-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.global-nav a:hover { border-bottom-color: var(--navy); }
.global-nav .nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 18px;
  transition: background 0.2s, color 0.2s;
}
.global-nav .nav-cta:hover {
  background: var(--ink);
  color: var(--white);
  border-bottom-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #14120f;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
.hero-body {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 24px;
}
.hero-kicker {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-left: 2px;
}
.hero-kicker::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--white);
  margin-top: 14px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.35;
  letter-spacing: 0.08em;
}
.hero-title span { display: block; }
.hero-lead {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.14em;
}
.hero-text {
  margin-top: 18px;
  max-width: 560px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-vertical {
  position: absolute;
  right: 28px;
  bottom: 40px;
  z-index: 1;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.75);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding-right: 14px;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  border: 1px solid var(--white);
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  background: transparent;
  color: var(--white);
}
.btn-line {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-line:hover {
  background: var(--white);
  color: var(--ink);
}
.btn-invert {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-invert:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

/* =========================================================
   Sections (common)
   ========================================================= */
.section {
  padding: 104px 0;
  background: var(--paper);
}
.section-alt { background: var(--paper-alt); }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-inner-narrow { max-width: 880px; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: baseline;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.section-no {
  grid-row: 1 / 3;
  font-family: var(--font-en);
  font-size: 44px;
  font-weight: 400;
  color: var(--ink-faint);
  line-height: 1;
}
.section-kicker {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* =========================================================
   01 Philosophy
   ========================================================= */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}
.lead-serif {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 26px;
  line-height: 1.7;
}
.philosophy-text p + p { margin-top: 18px; }
.philosophy-text p:not(.lead-serif) { color: var(--ink-soft); }
.philosophy-media {
  position: relative;
}
.philosophy-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.philosophy-media figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-align: right;
}

.process {
  margin-top: 72px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.process-item {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 28px;
  text-align: center;
}
.process-item .pict { margin: 0 auto 18px; }
.process-item h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 12px;
}
.process-item p {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: left;
}
.process-arrow {
  display: flex;
  align-items: center;
  flex: none;
}
.process-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Quote band
   ========================================================= */
.quote-band {
  position: relative;
  background: #161310;
  color: var(--white);
  overflow: hidden;
}
.quote-band-media {
  position: absolute;
  inset: 0;
}
.quote-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.quote-band-body {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 24px;
  font-family: var(--font-serif);
  text-align: center;
}
.quote-band-body p {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 2.1;
}
.quote-band-body p + p { margin-top: 20px; }
.quote-band-body cite {
  display: block;
  margin-top: 30px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   02 Services
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--white);
  padding: 40px 30px;
}
.service-card .pict { margin-bottom: 22px; }
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.service-card p {
  font-size: 13px;
  color: var(--ink-soft);
}
.services-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-align: right;
}

/* =========================================================
   03 Numbers
   ========================================================= */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.number-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 24px 34px;
  text-align: center;
}
.number-value {
  font-family: var(--font-en);
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
}
.number-unit {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.infinity {
  width: 84px;
  height: 44px;
  align-self: center;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.number-label {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
  text-align: center;
}
.numbers-note {
  margin-top: 22px;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-align: right;
}

/* =========================================================
   04 History
   ========================================================= */
.history-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.history-text p {
  color: var(--ink-soft);
}
.history-text p + p { margin-top: 18px; }

.timeline {
  border-left: 1px solid var(--ink);
}
.timeline li {
  position: relative;
  padding: 0 0 34px 34px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--paper-alt);
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.timeline-date {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 4px;
}
.timeline-body {
  font-size: 14px;
  line-height: 1.9;
}

.legal-notice {
  margin-top: 72px;
  background: var(--white);
  border: 1px solid var(--ink);
  padding: 36px 40px;
}
.legal-notice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.legal-notice p {
  font-size: 13px;
  color: var(--ink-soft);
}
.legal-notice p + p { margin-top: 10px; }

/* =========================================================
   05 Members
   ========================================================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 44px 30px 36px;
  text-align: center;
}
.member-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}
.member-icon .pict { stroke: var(--ink-faint); }
.member-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}
.member-desc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.member-link {
  margin-top: 18px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.link-disabled {
  color: var(--ink-faint);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 2px;
}
.members-note {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.12em;
}

/* =========================================================
   06 FAQ
   ========================================================= */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 24px 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
  font-family: var(--font-en);
  font-size: 15px;
  color: var(--navy);
  flex: none;
}
.faq-toggle {
  margin-left: auto;
  flex: none;
  position: relative;
  width: 14px;
  height: 14px;
  align-self: center;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.25s;
}
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0deg); }
.faq-a {
  padding: 0 8px 26px 48px;
}
.faq-a p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* =========================================================
   Closing
   ========================================================= */
.closing {
  position: relative;
  background: #131009;
  color: var(--white);
  overflow: hidden;
}
.closing-media {
  position: absolute;
  inset: 0;
}
.closing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.closing-body {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}
.closing-copy {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.8vw, 27px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 2.2;
}
.closing-sub {
  margin-top: 26px;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.8);
}
.closing .btn-invert {
  margin-top: 40px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.closing .btn-invert:hover {
  background: var(--white);
  color: var(--ink);
}
.closing-note {
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #c9c8c2;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 64px;
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
  margin-top: 2px;
}
.footer-name {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.footer-tagline {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8f8e88;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-content: flex-start;
}
.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.14em;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover { border-bottom-color: #c9c8c2; }
.footer-meta {
  grid-column: 1 / -1;
  border-top: 1px solid #3a3a36;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #8f8e88;
}
.footer-copy { margin-left: auto; }
.footer-group-link {
  border-bottom: 1px solid #5a5a55;
  padding-bottom: 1px;
}
.footer-group-link:hover { border-bottom-color: #c9c8c2; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .global-nav.is-open { display: flex; }
  .global-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .global-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }

  .hero-vertical { display: none; }

  .philosophy-grid,
  .history-grid { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-media { max-width: 420px; }

  .process { flex-direction: column; }
  .process-arrow { justify-content: center; }
  .process-arrow svg { transform: rotate(90deg); }

  .members-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 560px) {
  .section { padding: 72px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .number-item:last-child { grid-column: 1 / -1; }
  .legal-notice { padding: 28px 22px; }
  .faq-a { padding-left: 8px; }
}
