/* ============================================
   T2LAB Corporate Site
   ============================================ */

:root {
  --bg: #0a0b0f;
  --bg-soft: #0e1016;
  --surface: #14161f;
  --surface-2: #191c28;
  --line: rgba(174, 178, 194, 0.14);
  --text: #f1f2f6;
  --text-sub: #9ba1b2;
  --accent: #ffb020;
  --accent-2: #ff7a1a;
  --gradient: linear-gradient(135deg, #ffc837 0%, #ff7a1a 100%);
  --radius: 16px;
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.en {
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(12, 13, 18, 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 24px;
  width: auto;
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(174, 178, 194, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 178, 194, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 24px;
  max-width: 560px;
  color: var(--text-sub);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #1c1206;
  box-shadow: 0 8px 28px rgba(255, 150, 40, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(255, 122, 26, 0.34);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(255, 176, 32, 0.08);
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-desc {
  margin-top: 16px;
  color: var(--text-sub);
  max-width: 640px;
}

/* ---------- Works ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 32, 0.4);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.work-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 8.5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.work-thumb-market {
  background: #12203a;
}

.work-thumb-bonanza {
  background: #1e1740;
}

.work-thumb-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: rgba(232, 236, 248, 0.92);
  text-align: center;
  padding: 0 20px;
}

.work-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.work-card p {
  color: var(--text-sub);
  font-size: 0.92rem;
  flex: 1;
}

.work-link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}

.work-link:hover {
  gap: 12px;
}

.work-legal-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 28px 28px;
}

.work-legal-links::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-bottom: 6px;
}

.work-legal-links a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-legal-links a:hover {
  color: #ffd37a;
}

.work-legal-links a span {
  color: var(--text-sub);
  font-size: 0.72rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.x-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-x {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}

.footer-x:hover {
  border-color: var(--accent);
  background: rgba(255, 176, 32, 0.08);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.footer-nav a:hover {
  color: var(--text);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* ---------- Privacy (article page) ---------- */
.page-hero {
  padding: 160px 0 64px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
}

.page-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article {
  padding: 72px 0 110px;
}

.article .container {
  max-width: 760px;
}

.article-lead {
  color: var(--text-sub);
  margin-bottom: 48px;
}

.language-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 48px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.language-nav a {
  color: var(--accent);
  font-weight: 600;
}

.policy-language {
  scroll-margin-top: 96px;
}

.policy-language + .policy-language {
  margin-top: 80px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.policy-language-title {
  margin-bottom: 40px;
  color: var(--text);
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  font-size: 1.45rem;
}

.article section + section {
  margin-top: 48px;
}

.article h2 {
  font-size: 1.2rem;
  font-weight: 700;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
}

.article p,
.article li {
  color: var(--text-sub);
  font-size: 0.95rem;
}

.article ul {
  padding-left: 24px;
  margin-top: 8px;
}

.article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article .enacted {
  margin-top: 56px;
  text-align: right;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero {
    padding: 150px 0 100px;
  }

  .section {
    padding: 80px 0;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 12px 20px;
  }

}
