/* ========================================
   株式会社Foundot Corporate Site
   Anthropic-inspired: warm, editorial, confident
   ======================================== */

:root {
  /* Colors */
  --bg:          #F5F4EF;
  --bg-soft:     #FBFAF5;
  --surface:     #FFFFFF;
  --text:        #141413;
  --text-soft:   #5C5B58;
  --text-muted:  #8A8986;
  --accent:      #CC785C;
  --accent-hov:  #B66346;
  --accent-soft: rgba(204, 120, 92, 0.1);
  --border:      #E5E1D8;
  --border-soft: #EDE9E0;
  --dark:        #1A1917;

  /* Fonts */
  --font-sans:   "Noto Sans JP", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-serif:  "Noto Serif JP", "Hiragino Mincho ProN", "游明朝", serif;
  --font-en:     "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --max:     1200px;
  --pad:     max(1.5rem, 5vw);

  /* Misc */
  --ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --radius:  16px;
  --radius-btn: 999px;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  font-feature-settings: "palt";
}
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }

/* === Container === */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* === Common utilities === */
.eyebrow,
.section-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--accent-soft);
  border-radius: var(--radius-btn);
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
}

.section-label {
  display: block;
  margin-bottom: 1.25rem;
}

.arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
  margin-left: 0.125rem;
}

.btn:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(3px);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-btn);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hov); }

.btn-lg { padding: 0.95rem 1.75rem; font-size: 1rem; }

/* === Text link === */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: all 0.2s var(--ease);
  margin-top: 1.5rem;
}
.text-link::after { content: " →"; transition: transform 0.2s var(--ease); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link:hover::after { transform: translateX(3px); }

/* ========================================
   Header
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 244, 239, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  gap: 2rem;
}

.brand { flex-shrink: 0; display: inline-flex; }
.brand-logo { height: 28px; width: auto; }

.nav-menu {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.nav-menu a { position: relative; transition: color 0.2s var(--ease); }
.nav-menu a:hover { color: var(--text); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.2s var(--ease);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding-block: clamp(5rem, 12vw, 10rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 400px);
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 900px; }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--text);
}
.hero-title .title-line {
  display: block;
  white-space: nowrap;
}
.hero-title .accent { color: var(--accent); }
.hero-title .spacer::before { content: "\00a0"; }

.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.9;
  color: var(--text-soft);
  margin-bottom: 2.75rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* === Decorative dots pattern === */
.hero-decoration {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  justify-self: end;
}
.hero-decoration svg { width: 100%; height: 100%; }

.dots-lines line {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.35;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 2.5s var(--ease) 0.3s forwards;
}
.dots-circles circle {
  fill: var(--accent);
  opacity: 0;
  transform-origin: center;
  animation: pop 0.6s var(--ease) forwards;
}
.dots-circles circle:nth-child(1) { animation-delay: 0.1s; }
.dots-circles circle:nth-child(2) { animation-delay: 0.3s; }
.dots-circles circle:nth-child(3) { animation-delay: 0.5s; }
.dots-circles circle:nth-child(4) { animation-delay: 0.7s; }
.dots-circles circle:nth-child(5) { animation-delay: 0.9s; }
.dots-circles circle:nth-child(6) { animation-delay: 1.1s; }
.dots-circles circle:nth-child(7) { animation-delay: 1.3s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop  { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

/* ========================================
   Sections (common)
   ======================================== */
.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  max-width: 900px;
}

.section-body {
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--text-soft);
  max-width: 720px;
  margin-bottom: 0;
}

/* ========================================
   Section-specific
   ======================================== */

/* Mission */
.section-mission {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}

/* Service */
.section-service {
  background: var(--bg-soft);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
}
.service-card {
  padding: 2.5rem 2rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(20, 20, 19, 0.1);
}
.service-number {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.service-body {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-soft);
}

/* Message */
.section-message { background: var(--bg); }
.message-container { max-width: 780px; }
.message-body {
  font-size: 1.0625rem;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.message-body p + p { margin-top: 1.25rem; }
.message-body .muted { color: var(--text-muted); font-style: italic; margin-top: 1.75rem; }
.message-signature {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* Values */
.section-values {
  background: var(--bg-soft);
  border-block: 1px solid var(--border-soft);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 3.5rem;
}
.value-item {
  padding-top: 1.75rem;
  border-top: 1px solid var(--text);
}
.value-number {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 0.875rem;
}
.value-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.value-en {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.value-body {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-soft);
}

/* News */
.section-news { background: var(--bg); }
.news-list {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}
.news-item {
  display: grid;
  grid-template-columns: 110px 110px 1fr;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: padding-left 0.2s var(--ease);
}
.news-item:last-child { border-bottom: 1px solid var(--border); }
.news-item:hover { padding-left: 0.5rem; }
.news-date {
  font-family: var(--font-en);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.news-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--border-soft);
  border-radius: var(--radius-btn);
  text-align: center;
  color: var(--text-soft);
  justify-self: start;
}
.news-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

/* CTA */
.section-cta {
  background: var(--dark);
  color: var(--bg);
  text-align: center;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}
.cta-body {
  font-size: 1.0625rem;
  color: rgba(245, 244, 239, 0.7);
  margin-bottom: 2.5rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 4.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
}
.footer-logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-title {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-address,
.footer-copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-decoration {
    max-width: 320px;
    justify-self: center;
    order: -1;
    opacity: 0.5;
  }
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-block: 1.25rem;
  }
  .news-tag { justify-self: start; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* Mobile nav drawer */
.nav-menu.open {
  display: flex;
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--bg);
  flex-direction: column;
  justify-content: flex-start;
  padding: 2rem var(--pad);
  gap: 1.5rem;
  font-size: 1.125rem;
  border-top: 1px solid var(--border);
}

/* ========================================
   Page Hero (sub-pages)
   ======================================== */
.page-hero {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--border-soft);
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-block: 1.25rem 1.5rem;
}
.page-lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 720px;
}

/* Current page indicator in nav */
.nav-menu a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ========================================
   Prose (article-style content)
   ======================================== */
.prose {
  max-width: 780px;
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--text);
}
.prose p + p { margin-top: 1.25rem; }
.prose strong { color: var(--text); font-weight: 700; }

/* ========================================
   Tagline callout
   ======================================== */
.tagline-callout {
  margin-top: 3.5rem;
  padding: 2.5rem 2.25rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 780px;
}
.tagline-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.tagline-text {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.tagline-note {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-soft);
}

/* ========================================
   Name Origin section
   ======================================== */
.section-origin {
  background: var(--bg-soft);
  border-block: 1px solid var(--border-soft);
}
.origin-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: 4rem;
  align-items: center;
}
.origin-text .section-body { margin-bottom: 1.5rem; }
.origin-text .section-body:last-child { margin-bottom: 0; }
.origin-visual {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
}
.origin-svg { width: 100%; height: 100%; }

/* ========================================
   Vision stages
   ======================================== */
.vision-stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-block: 3.5rem;
}
.vision-stage {
  padding: 2.5rem 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.vision-stage-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.vision-stage-title {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}
.vision-stage-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.vision-stage-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.vision-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-soft);
}
.vision-list li {
  padding-left: 1.25rem;
  position: relative;
}
.vision-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Vision goals */
.vision-goals {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  text-align: center;
}
.goals-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: rgba(245, 244, 239, 0.8);
}
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.goal-item {
  padding: 1rem 0.5rem;
}
.goal-number {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.goal-unit {
  font-size: 0.6em;
  margin-left: 0.1em;
}
.goal-label {
  font-size: 0.8125rem;
  color: rgba(245, 244, 239, 0.65);
  letter-spacing: 0.05em;
}
.goals-note {
  font-size: 0.875rem;
  color: rgba(245, 244, 239, 0.55);
  line-height: 1.8;
  max-width: 600px;
  margin-inline: auto;
}

/* ========================================
   Values detail
   ======================================== */
.values-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-block: 3.5rem;
}
.value-detail-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--text);
}
.value-detail-head .value-number { margin-bottom: 0.75rem; }
.value-detail-head .value-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}
.value-detail-head .value-en {
  font-size: 0.8125rem;
  margin-bottom: 0;
}
.value-detail-body {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-soft);
}
.value-lead {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.value-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.value-list li {
  padding-left: 1.25rem;
  position: relative;
}
.value-list li::before {
  content: "·";
  position: absolute;
  left: 0.25rem;
  font-weight: 700;
  color: var(--accent);
}
.value-why {
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.8;
}
.value-why strong { color: var(--text); }

/* Values boundary */
.values-boundary {
  margin-top: 4rem;
  padding: 2rem 2.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 780px;
}
.boundary-label {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.boundary-text {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.boundary-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-soft);
}
.boundary-list li {
  padding-left: 1.5rem;
  position: relative;
}
.boundary-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.boundary-list strong { color: var(--text); }

/* ========================================
   Message full
   ======================================== */
.message-full {
  max-width: 780px;
  font-size: 1.0625rem;
  line-height: 2.1;
  color: var(--text);
  margin-bottom: 3rem;
}
.message-full p + p { margin-top: 1.5rem; }

.message-sig-block {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 780px;
}
.message-sig-block .message-signature {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.message-signature-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.message-signature-en {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ========================================
   Company brief (on about page)
   ======================================== */
.section-company-brief {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
}
.company-brief-list {
  margin-block: 2.5rem;
  max-width: 780px;
}
.company-brief-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.company-brief-row:first-child { border-top: 1px solid var(--border); }
.company-brief-row dt {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.company-brief-row dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

/* ========================================
   Service page — Why Foundot cards
   ======================================== */
.section-why { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}
.why-card {
  padding: 2.5rem 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.why-card:hover {
  border-color: var(--accent);
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -12px rgba(20, 20, 19, 0.08);
}
.why-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.why-icon svg { width: 100%; height: 100%; }
.why-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.why-body {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-soft);
}

/* ========================================
   Service page — Function showcase
   ======================================== */
.section-function { border-top: 1px solid var(--border-soft); }
.section-function-primary { background: var(--bg-soft); }
.section-function-secondary { background: var(--bg); }

.function-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2.5rem;
}
.function-grid.reverse .function-text { order: 2; }
.function-grid.reverse .function-visual { order: 1; }

.function-tag {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.function-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.function-body {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
}
.function-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text);
}
.function-list li {
  padding-left: 1.5rem;
  position: relative;
}
.function-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.function-visual {
  width: 100%;
  aspect-ratio: 1;
  max-width: 500px;
  justify-self: center;
}
.function-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(20, 20, 19, 0.08));
}

/* ========================================
   Service page — Audience
   ======================================== */
.section-audience {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.audience-item {
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  transition: all 0.2s var(--ease);
}
.audience-item:hover {
  border-color: var(--accent);
}
.audience-role {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.375rem;
  color: var(--text);
}
.audience-note {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ========================================
   Service page — Flow (3 steps)
   ======================================== */
.section-flow { background: var(--bg); }
.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-top: 3.5rem;
}
.flow-step {
  padding: 2rem 1.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.flow-number {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.flow-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.875rem;
}
.flow-body {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-soft);
}
.flow-arrow {
  align-self: center;
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 300;
}

/* ========================================
   Responsive for service page
   ======================================== */
@media (max-width: 900px) {
  .function-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .function-grid.reverse .function-text { order: 1; }
  .function-grid.reverse .function-visual { order: 2; }
  .function-visual { max-width: 400px; }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}
@media (max-width: 640px) {
  .why-grid, .audience-grid { gap: 1rem; }
  .why-card, .audience-item { padding: 1.75rem 1.5rem; }
}

/* ========================================
   News page — filter + archive
   ======================================== */
.section-news-list { background: var(--bg); }

.news-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.news-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid var(--border);
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.news-filter-btn:hover {
  color: var(--text);
  border-color: var(--text-soft);
}
.news-filter-btn.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.news-archive {
  display: flex;
  flex-direction: column;
}
.news-item-full {
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: none;
}
.news-item-full:first-of-type { border-top: 1px solid var(--border); }
.news-item-full .news-date {
  display: inline-block;
  margin-right: 1rem;
  font-family: var(--font-en);
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.news-item-full .news-tag {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.25rem 0.75rem;
  background: var(--border-soft);
  border-radius: var(--radius-btn);
  font-size: 0.75rem;
  color: var(--text-soft);
}
.news-item-full .news-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin-block: 0.875rem 0.75rem;
  color: var(--text);
}
.news-excerpt {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-soft);
  max-width: 780px;
}
.news-item-full.is-hidden { display: none; }

.news-empty-state {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: var(--bg-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.news-empty-text {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--text-muted);
}

/* ========================================
   Company page — info table
   ======================================== */
.section-company { background: var(--bg); }

.company-table {
  margin: 0 auto;
  max-width: 900px;
}
.company-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.company-row:first-child { border-top: 1px solid var(--border); }

.company-row dt {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 0.25rem;
}
.company-row dt::after {
  content: attr(data-ja);
}
.company-row dd {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
}
.company-value-primary {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.company-value-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.business-list {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
}
.business-list li { padding-left: 0.25rem; }
.business-list li::marker {
  color: var(--accent);
  font-weight: 500;
}
.company-service-link {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: all 0.2s var(--ease);
}
.company-service-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ========================================
   Contact page — Form
   ======================================== */
.section-contact { background: var(--bg); }
.contact-container { max-width: 780px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

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

.field-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.field-required,
.field-optional {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-btn);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.field-required {
  background: var(--accent);
  color: #fff;
}
.field-optional {
  background: var(--border);
  color: var(--text-soft);
}

.field-input,
.field-textarea,
.field-select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  width: 100%;
  transition: all 0.15s var(--ease);
  line-height: 1.6;
}
.field-textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.85;
}

.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(204, 120, 92, 0.12);
}
.field-input:invalid:not(:placeholder-shown),
.field-textarea:invalid:not(:placeholder-shown) {
  border-color: #C9453A;
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-muted);
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-soft);
  font-size: 0.75rem;
}
.field-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field-helper {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: right;
  margin: 0;
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Consent */
.field-consent { padding-top: 0.5rem; }
.consent-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-soft);
  cursor: pointer;
  align-items: start;
}
.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Error */
.form-error {
  padding: 1rem 1.25rem;
  background: #FBEEE9;
  border-left: 3px solid #C9453A;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #8B2E25;
  line-height: 1.7;
}

/* Submit button spinner */
.form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}
.form-actions .btn {
  min-width: 180px;
  position: relative;
}
.btn .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}
.btn.is-loading .btn-label,
.btn.is-loading .arrow { display: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading::after { content: "送信中..."; margin-left: 0.5rem; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Thank you screen */
.contact-thankyou {
  text-align: center;
  padding: 4rem 2rem;
}
.thankyou-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}
.thankyou-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.thankyou-body {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

/* Other Contact Channels */
.section-other-contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  padding-block: 4rem;
}
.other-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 780px;
}
.other-contact-item {
  padding: 1.5rem 0;
}
.other-contact-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.other-contact-text {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-soft);
}
.text-link-inline {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: all 0.2s var(--ease);
}
.text-link-inline:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ========================================
   Responsive for news + company
   ======================================== */
@media (max-width: 640px) {
  .company-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-block: 1.5rem;
  }
  .news-filter { gap: 0.375rem; }
  .news-filter-btn { padding: 0.4rem 0.8rem; font-size: 0.8125rem; }
}

/* ========================================
   Responsive for about page
   ======================================== */
@media (max-width: 900px) {
  .origin-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .origin-visual {
    max-width: 280px;
    justify-self: center;
    order: -1;
    opacity: 0.8;
  }
  .value-detail-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .goals-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}
@media (max-width: 640px) {
  .company-brief-row {
    grid-template-columns: 1fr;
    gap: 0.375rem;
    padding-block: 1rem;
  }
  .goals-grid { grid-template-columns: 1fr; gap: 0; }
  .vision-goals { padding: 2rem 1.5rem; }
}
