/* ============================================
   TORQA — Ink & Craft Design
   ============================================ */

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

/* Design tokens */
:root {
  --ink: #1c2b3a;
  --ink-soft: #243548;
  --text: #1a1c28;
  --text-sub: #565869;
  --text-muted: #8a8c9a;
  --signal: #2dd87a;
  --signal-dark: #1ab860;
  --signal-deep: #0f7a3e;
  --signal-bg: #edfaf4;
  --amber: #e8960f;
  --surface: #ffffff;
  --bg: #f5f3ee;
  --bg-alt: #edeae3;
  --border: #dedad2;
  --font-body: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', Georgia, serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --section-pad: 100px;
  --radius: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
}

/* Base */
html { width: 100%; overflow-x: hidden; }

body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }

/* ============================================
   Header
   ============================================ */
.header {
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.header__logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.header__logo h1,
.header__logo p { font-size: 20px; font-weight: 800; margin: 0; }

.header__logo h1 a,
.header__logo p a,
.logo-link {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
}


.logo-q {
  color: var(--signal);
  letter-spacing: inherit;
}

.logo-tagline {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  padding-left: 1px;
}

.header__nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.header__nav a:not(.btn) {
  text-decoration: none;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.header__nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--signal-dark);
  transition: width 0.25s ease;
}

.header__nav a:not(.btn):hover { color: var(--text); }
.header__nav a:not(.btn):hover::after { width: 100%; }

/* Burger */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
  position: relative;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger span + span { margin-top: 6px; }

.header__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  padding: 12px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--signal);
}

.btn-primary:hover {
  background: var(--signal-dark);
  border-color: var(--signal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 216, 122, 0.32);
  color: var(--ink);
}

/* Make sure nav button color doesn't break */
.header__nav .btn-primary,
.header__nav .btn-primary:hover,
.header__nav .btn-primary:visited { color: var(--ink); }

.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.32);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 17px 44px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.header__nav .btn {
  padding: 9px 22px;
  font-size: 13px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background: #1c2b3a;
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero__bg-text {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 220px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0 88px;
  position: relative;
  z-index: 2;
}

.hero__text { animation: fadeUp 0.5s ease-out both; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--signal);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--signal);
}

.hero__title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: white;
}

.hero__title em {
  font-style: normal;
  color: var(--signal);
}

.hero__subtitle {
  font-size: 17px;
  margin-bottom: 44px;
  color: rgba(255,255,255,0.68);
  line-height: 2;
  letter-spacing: 0.01em;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero__tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 4px 12px;
}

.hero__image {
  animation: fadeUp 0.5s ease-out 0.15s both;
  position: relative;
}

.hero__image::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 48px;
  height: 48px;
  border-top: 2px solid var(--signal-dark);
  border-right: 2px solid var(--signal-dark);
  z-index: 2;
  pointer-events: none;
}

.hero__image::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -8px;
  width: 48px;
  height: 48px;
  border-bottom: 2px solid var(--border);
  border-left: 2px solid var(--border);
  z-index: 2;
  pointer-events: none;
}

.hero__image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Section commons
   ============================================ */
section {
  width: 100%;
  padding: var(--section-pad) 0;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--signal-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--signal-deep);
}

.section__title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.section__title::after { display: none; }

.section-lead {
  max-width: 580px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.95;
}

/* ============================================
   Problems
   ============================================ */
.problems {
  background: var(--surface);
  padding: 88px 0;
}

.problems__heading {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.problems__card {
  background: var(--bg);
  padding: 44px 32px 40px;
  text-align: left;
  transition: background 0.25s;
  position: relative;
}

.problems__card:hover { background: var(--signal-bg); }

.problems__card + .problems__card {
  border-left: 1px solid var(--border);
}

.problems__num {
  display: block;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--border);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  transition: color 0.25s;
}

.problems__card:hover .problems__num { color: rgba(45, 216, 122, 0.35); }

.problems__icon { display: none; }

.problems__card p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-sub);
}

.problems__card p strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  background: none;
}

.problems__cta {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 22px 32px;
  background: var(--signal-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(45, 216, 122, 0.25);
  letter-spacing: 0.01em;
}

/* ============================================
   Services
   ============================================ */
.services {
  background: var(--bg);
}

.services__header {
  text-align: center;
  margin-bottom: 56px;
}

.services__header .section__label {
  display: flex;
  justify-content: center;
}

.services__flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.services__flow .service-card {
  flex: 1 1 0;
  min-width: 0;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  color: var(--signal-dark);
  opacity: 0.5;
}

.service-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45, 216, 122, 0.35);
}

.service-card__content {
  padding: 28px 24px;
}

.service-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--border);
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.25s;
}

.service-card:hover .service-card__num { color: rgba(45, 216, 122, 0.4); }

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--signal-bg);
  color: var(--signal-deep);
  margin-bottom: 12px;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.5;
}

.service-card p {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.9;
}

/* ============================================
   Message
   ============================================ */
.message {
  background: var(--surface);
  padding: 88px 0;
}

.message__body {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 64px;
  align-items: start;
}

.message__image {
  text-align: center;
  position: sticky;
  top: 100px;
}

.message__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.message__author {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.7;
}

.message__text {
  position: relative;
}

.message__text p {
  font-family: var(--font-serif);
  color: var(--text-sub);
  line-height: 2.1;
  margin-bottom: 24px;
  font-size: 16px;
  position: relative;
}

.message__text p strong {
  color: var(--text);
  font-weight: 700;
}

.message__text .btn {
  position: relative;
}

/* ============================================
   CTA
   ============================================ */
.cta {
  background: var(--ink);
  color: white;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--signal) 50%, transparent 100%);
}

.cta h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
  letter-spacing: 0.02em;
}

.cta h2::after { display: none; }

.cta > .container > p:first-of-type {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================
   Page header (about etc)
   ============================================ */
.page-header {
  background: var(--ink);
  color: white;
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--signal) 50%, transparent 100%);
}

.page-header__sub {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--signal);
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
}

/* ============================================
   About page
   ============================================ */
.about-section {
  padding: 72px 0;
}

.about-section:nth-child(odd) { background: var(--surface); }
.about-section:nth-child(even) { background: var(--bg); }

.about-message-full {
  max-width: 720px;
  margin: 0 auto;
}

.about-message-full h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.about-message-full p {
  font-family: var(--font-serif);
  color: var(--text-sub);
  line-height: 2.1;
  margin-bottom: 22px;
  font-size: 16px;
}

.about-message-full strong { color: var(--text); }

/* Profile */
.profile-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.profile-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.profile-image img { width: 100%; height: auto; display: block; }

.profile-text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.profile-title {
  font-size: 13px;
  color: var(--signal-deep);
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.profile-details h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.profile-details p {
  margin-bottom: 16px;
  color: var(--text-sub);
  line-height: 1.95;
  font-size: 15px;
}

.profile-details strong { color: var(--text); }

/* Company table */
.company-table {
  background: var(--surface);
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.company-table table {
  width: 100%;
  border-collapse: collapse;
}

.company-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}

.company-table td:first-child {
  width: 140px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
}

.company-table td:last-child {
  color: var(--text-sub);
  line-height: 1.8;
}

.company-table tr:last-child td { border-bottom: none; }

.company-services {
  list-style: none;
  margin: 0;
  padding: 0;
}

.company-services li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.company-services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* Legal */
.legal-content { max-width: 720px; }

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--text);
  font-weight: 700;
}

.legal-content p {
  color: var(--text-sub);
  line-height: 1.95;
  margin-bottom: 12px;
  font-size: 14px;
}

.legal-content ul { margin: 0 0 12px 20px; }

.legal-content li {
  color: var(--text-sub);
  margin-bottom: 6px;
  font-size: 14px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  padding: 56px 0 28px;
  color: rgba(255,255,255,0.4);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer__section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.footer__section ul { list-style: none; }
.footer__section ul li { margin-bottom: 8px; }

.footer__section a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__section a:hover { color: rgba(255,255,255,0.8); }

.footer__bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 20px; }

  /* Hero */
  .hero__content {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 0 56px;
  }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 15px; margin-bottom: 32px; }
  .hero__image img { height: 240px; }
  .hero__bg-text { font-size: 88px; }

  /* Sections */
  .section__title { font-size: 24px; }
  .problems__heading { font-size: 22px; margin-bottom: 36px; }
  .cta h2 { font-size: 24px; }
  .section-lead { font-size: 14px; margin-bottom: 36px; }

  /* Problems */
  .problems__grid {
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }
  .problems__card + .problems__card {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .problems__card { padding: 32px 24px; }
  .problems__num { font-size: 52px; }
  .problems__cta { font-size: 14px; padding: 18px 20px; }

  /* Services */
  .services__flow { flex-direction: column; }
  .services__flow .service-card { flex: none; width: 100%; }
  .step-arrow { width: 100%; height: 28px; }
  .step-arrow svg { transform: rotate(90deg); }
  .service-card__num { font-size: 40px; }
  .service-card h3 { font-size: 16px; }

  /* Message */
  .message__body { grid-template-columns: 1fr; gap: 32px; }
  .message__image { max-width: 160px; position: static; }

  /* About */
  .profile-content { grid-template-columns: 1fr; gap: 32px; }
  .profile-image { max-width: 200px; position: static; }

  /* CTA */
  .cta__buttons { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 300px; text-align: center; }

  /* Header mobile */
  .header__burger { display: block; }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 270px;
    height: 100dvh;
    background: var(--surface);
    box-shadow: -4px 0 32px rgba(0,0,0,0.12);
    padding: 88px 32px 48px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 105;
  }

  .header__nav.is-open { transform: translateX(0); }

  .header__nav ul { flex-direction: column; gap: 0; width: 100%; }
  .header__nav ul li { border-bottom: 1px solid var(--border); }
  .header__nav ul li:last-child { border-bottom: none; margin-top: 20px; }

  .header__nav a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-size: 15px;
  }

  .header__nav a:not(.btn)::after { display: none; }

  .header__nav .btn {
    display: block;
    text-align: center;
    width: 100%;
  }

  .header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 104;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .header__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}
