:root {
  --ink: #1a1a1a;
  --sub: #666;
  --line: #e6e6e6;
  --bg: #ffffff;
  --paper: #f7f7f7;
  --accent: #1e4da0;
  --accent-dark: #173d82;
  --footer-bg: #000000;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

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

/* Header */
header.site-header {
  background: transparent;
}

.header-inner {
  width: 100%;
  margin: 0;
  padding: 22px clamp(24px, 4vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.logo-mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.logo-word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

@media (min-width: 600px) {
  .logo-mark {
    font-size: 24px;
  }
  .logo-word {
    font-size: 14px;
  }
}

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(18px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.site-nav a {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  color: var(--sub);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav.site-nav a .jp {
  display: block;
  font-family: inherit;
  font-weight: normal;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--sub);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
}

nav.site-nav a:hover {
  color: var(--accent);
}

nav.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

main {
  flex: 1 0 auto;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
  min-height: calc(100svh - 90px);
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 28% 18%, #f2f5fa 0%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.hero-lead {
  position: relative;
  margin: 0 0 16px;
}

/* h1の上下中央に透かしの上下中央を一致させる（.hero-leadの高さ=h1の高さ） */
.hero-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 14vw, 210px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
  color: #f0f2f6;
  background: linear-gradient(175deg, #eceff5 20%, #f7f9fc 55%, #e9edf4 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  pointer-events: none;
}

.hero h1,
.hero p.sub {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700;
  margin: 0;
  line-height: 1.6;
}

.hero p.sub {
  font-size: 16px;
  color: var(--sub);
  margin: 0;
}

@media (min-width: 600px) {
  .hero p.sub {
    font-size: 18px;
  }
}

/* Sections (top page) */
.section {
  padding: clamp(80px, 11vw, 140px) 24px;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin: 0 0 clamp(36px, 5vw, 56px);
}

.section-head .en {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
}

.section-head .ja {
  display: block;
  font-size: 14px;
  color: var(--sub);
  margin: 10px 0 0;
}

/* EN 3-line block (vision) */
.en-block {
  text-align: center;
}

.en-block .en-lead {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.4;
  letter-spacing: 0.01em;
  max-width: 980px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.en-block p {
  max-width: 760px;
  margin: 0 auto 12px;
  font-size: 16px;
}

@media (min-width: 600px) {
  .en-block p {
    font-size: 17px;
  }
}

/*
 * Products grid — 将来のプロダクト一覧の「席」。
 * 対応するHTMLはトップページ内でコメントアウトされており、公開ページには表示されない。
 */
.products-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
}

.product-card .product-tag {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  margin: 16px 16px 0;
}

.product-card .product-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin: 8px 16px 0;
}

.product-card .product-sub {
  display: block;
  font-size: 12px;
  color: var(--sub);
  margin: 2px 16px 16px;
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* Sub page title */
.page-title {
  text-align: center;
  padding: clamp(56px, 9vw, 100px) 24px clamp(36px, 6vw, 64px);
}

.page-title .en {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--ink);
}

.page-title .ja {
  display: block;
  font-size: 14px;
  color: var(--sub);
  margin: 12px 0 0;
}

/* Lead strip (sub pages) */
.lead-strip {
  background: var(--paper);
  padding: 26px 24px;
  text-align: center;
  font-size: 14px;
}

.lead-strip p {
  max-width: var(--max);
  margin: 0 auto;
}

/* Generic page */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 24px;
  width: 100%;
}

.page h1 {
  font-size: 24px;
  margin: 0 0 40px;
}

/* Company table */
table.info {
  width: 100%;
  border-collapse: collapse;
}

table.info th,
table.info td {
  text-align: left;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: normal;
  font-size: 15px;
  vertical-align: top;
}

table.info th {
  width: 30%;
  color: var(--sub);
  font-size: 13px;
}

@media (max-width: 480px) {
  table.info th,
  table.info td {
    display: block;
    width: 100%;
    padding: 4px 8px;
  }
  table.info th {
    padding-top: 16px;
    border-bottom: none;
  }
}

/* News list */
ul.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.news-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

ul.news-list time {
  color: var(--sub);
  font-size: 13px;
  flex-shrink: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Company table image (rendered from scripts/table-render.html) */
.company-table-img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
}

/* Contact */
.contact-note {
  font-size: 13px;
  color: var(--sub);
  margin: 0 0 32px;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form .field {
  margin-bottom: 28px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  max-width: 420px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--accent);
  margin-bottom: -1px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  max-width: 640px;
  border: 1px solid var(--line);
  padding: 12px;
}

.contact-form textarea:focus {
  border: 1px solid var(--accent);
  margin-bottom: 0;
}

.contact-form button {
  display: inline-block;
  padding: 14px 48px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.08em;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-form button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.contact-form button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.contact-privacy-note {
  margin: 0 0 28px;
}

.contact-form .form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--sub);
}

/* Privacy */
.page.privacy h2 {
  font-size: 16px;
  margin: 32px 0 8px;
}

.page.privacy p {
  font-size: 14px;
  color: var(--ink);
}

.page.privacy p.meta {
  color: var(--sub);
  font-size: 13px;
}

/* Opening logo intro (top page only, first visit only) */
.ak-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.ak-intro.is-fading {
  opacity: 0;
}

/* 白地から灰→黒へゆっくり滲み浮かぶフェード（光沢表現なし） */
.ak-intro__text {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(96px, 18vw, 190px);
  line-height: 1;
  color: #d4d4d4;
  letter-spacing: 0.5em;
  opacity: 0;
  transform: translateX(0.25em);
  transition: letter-spacing 1.8s ease, opacity 1.2s ease, transform 1.8s ease, color 2s ease;
}

.ak-intro__text.is-tight {
  letter-spacing: 0.02em;
  opacity: 1;
  transform: translateX(0.01em);
  color: var(--ink);
}

/* Scroll reveal (enabled only when JS adds .anim to <html>; off under reduced motion) */
html.anim .sc {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.anim .sc.sc-in {
  opacity: 1;
  transform: none;
}

/* Footer (thin black bar, all pages) */
footer.site-footer {
  background: var(--footer-bg);
  color: #aaa;
  padding: 18px 24px;
  text-align: center;
  font-size: 12px;
}
