/* =============================================================
   TSUNAIDE — Corporate Site
   Per the制作指示書 (v1.0 2026-05-24):
   - 白/黒の高コントラスト + アクセント1色 (Japan-red)
   - 見出しは大きく強く (Inter / Noto Sans JP, weight 900)
   - "繋ぐ" を象徴するリボンモチーフ
   - 曖昧表現禁止、断定・固有名詞・数値
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
  /* Core */
  --ink:        #0a0a0a;
  --ink-soft:   #1a1a1a;
  --paper:      #f4f2f0;
  --accent:     #e60012;   /* 鮮やかな赤 — Japanese flag red, 熱量を象徴 */
  --accent-h:   #b50010;
  --accent-faint: rgba(230, 0, 18, 0.08);

  /* Neutrals */
  --n-50:  #ebe8e4;
  --n-100: #e4e0db;
  --n-150: #ebebeb;
  --n-200: #d9d9d9;
  --n-300: #bcbcbc;
  --n-400: #8a8a8a;
  --n-500: #5e5e5e;
  --n-600: #3d3d3d;
  --n-700: #262626;
  --n-800: #161616;
  --n-900: #0a0a0a;

  /* Type */
  --font-jp: "Noto Sans JP", "游ゴシック体", YuGothic, "Yu Gothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", sans-serif;
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  /* Layout */
  --max-w: 1440px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.65, 0.05, 0.36, 1);
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: #fff; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.en { font-family: var(--font-en); }
.jp { font-family: var(--font-jp); }

.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.flow > * + * { margin-top: 1.5em; }

/* ----- Type roles ----- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-en); font-weight: 700;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--accent); display: inline-block;
}
.eyebrow.on-dark { color: #fff; }
.eyebrow .num {
  color: var(--accent); font-feature-settings: "tnum";
}

.h-display {
  font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(40px, 7.5vw, 112px);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 0;
}
.h-display.en { font-family: var(--font-en); letter-spacing: -0.04em; line-height: 0.95; }

.h-1 {
  font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.12; letter-spacing: -0.005em;
  margin: 0;
}
.h-2 {
  font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.22; letter-spacing: 0;
  margin: 0;
}
.h-3 {
  font-family: var(--font-jp); font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45; letter-spacing: 0.01em;
  margin: 0;
}
.lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.9; color: var(--n-700);
  font-weight: 500; max-width: 64ch;
}
.body-l { font-size: 17px; line-height: 1.9; color: var(--n-700); }
.body   { font-size: 15px; line-height: 1.8; color: var(--n-600); }
.label  { font-size: 13px; line-height: 1.5; color: var(--n-500); font-weight: 500; }
.kbd    { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--n-500); letter-spacing: 0; }

.accent-text { color: var(--accent); }

/* Marker highlight — used sparingly on key Japanese phrases */
.mark {
  background: linear-gradient(rgba(255,255,255,0) 58%, rgba(230,0,18,0.18) 58%);
  padding: 0 2px;
}
.mark-line {
  position: relative; display: inline-block;
}
.mark-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: var(--accent);
}

/* ----- Header / Nav ----- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(244,242,240,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--n-150);
}
.site-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.brand img { display: block; height: 32px; width: auto; }
.site-foot .brand img { height: 36px; }
.nav-list { display: flex; align-items: center; gap: 32px; list-style: none; padding: 0; margin: 0; }
.nav-list a {
  font-family: var(--font-jp); font-weight: 700; font-size: 14px;
  color: var(--ink); letter-spacing: 0.06em;
  position: relative; padding: 8px 0;
  transition: color .2s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--accent); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-jp); font-weight: 700;
  font-size: 15px; letter-spacing: 0.04em;
  padding: 16px 28px; border-radius: 4px;
  transition: all .25s var(--ease-snap);
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(230,0,18,0.5);
}
.btn-primary .arrow { display: inline-block; transition: transform .25s var(--ease-snap); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  color: var(--ink); border: 1.5px solid var(--ink); background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-on-dark.btn-ghost { color: #fff; border-color: #fff; }
.btn-on-dark.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 22px 36px; font-size: 17px; border-radius: 6px; }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-jp); font-weight: 700; font-size: 14px;
  color: var(--ink); padding: 8px 0;
  border-bottom: 2px solid var(--ink); letter-spacing: 0.04em;
  transition: all .25s var(--ease);
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }
.btn-link .arrow { transition: transform .25s var(--ease); }
.btn-link:hover .arrow { transform: translateX(4px); }

/* Reusable arrow glyph */
.icn-arrow { width: 1em; height: 1em; }

/* ----- Section ----- */
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section.tight { padding-block: clamp(60px, 8vw, 120px); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .lede, .section.dark .body-l, .section.dark .body { color: var(--n-300); }
.section.dark .label { color: var(--n-400); }
.section.dark .eyebrow { color: #fff; }

.section-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 4fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
}

@media (max-width: 880px) {
  .section-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-list { display: none; }
}

/* ----- Card ----- */
.card {
  background: var(--paper);
  border: 1px solid var(--n-150);
  padding: 32px;
  transition: all .3s var(--ease);
  position: relative;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(0,0,0,0.15);
}
.card .num {
  font-family: var(--font-en); font-weight: 900;
  font-size: 14px; color: var(--accent); letter-spacing: 0.05em;
}
.card .card-title {
  font-weight: 900; font-size: 22px; line-height: 1.4; margin: 12px 0 12px;
  color: var(--ink);
}
.card .card-en {
  font-family: var(--font-en); font-weight: 800; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--n-500); margin-bottom: 6px;
}

/* ----- Ribbon motif (subtle connecting line) ----- */
.ribbon-bg {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 0;
}
.ribbon-bg svg { position: absolute; width: 200%; height: 100%; left: -50%; top: 0; }
.ribbon-bg path { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.12; }
.section > .container { position: relative; z-index: 1; }

/* Tag/chip used inline */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--n-200);
  font-family: var(--font-en); font-weight: 600; font-size: 12px;
  letter-spacing: 0.1em; color: var(--n-700); text-transform: uppercase;
}
.chip.accent { border-color: var(--accent); color: var(--accent); }
.chip.solid { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ----- Footer ----- */
.site-foot { background: var(--ink); color: #fff; padding: 120px 0 40px; }
.site-foot .brand { color: #fff; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 80px; border-bottom: 1px solid var(--n-700);
}
.foot-grid h4 {
  font-family: var(--font-en); font-weight: 800; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  margin: 0 0 24px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot-grid li a { font-family: var(--font-jp); font-weight: 500; font-size: 14px; color: var(--n-300); transition: color .2s var(--ease); }
.foot-grid li a:hover { color: #fff; }
.foot-tagline {
  font-family: var(--font-jp); font-weight: 900; font-size: 24px; line-height: 1.5;
  color: #fff; margin: 24px 0;
}
.foot-bottom {
  padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-en); font-size: 12px; color: var(--n-400); letter-spacing: 0.08em;
}
@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Add spacer at page top for fixed nav */
main { padding-top: 72px; }

/* Page-hero (used on About/Service/Case/Recruit/Contact sub-pages) */
.page-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--n-150);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero .lede { max-width: 720px; }

/* Number / data styles */
.bignum {
  font-family: var(--font-en); font-weight: 900;
  font-size: clamp(64px, 10vw, 160px);
  line-height: 0.9; letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.bignum .unit { font-size: 0.4em; vertical-align: 0.6em; margin-left: 0.1em; letter-spacing: 0; }
.bignum .strike {
  position: relative; color: var(--n-400);
}
.bignum .strike::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 50%;
  height: 8px; background: var(--accent); transform: rotate(-8deg);
}

/* Reveal-on-scroll baseline */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* Marquee for partner / problem strip */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--n-200);
  padding-block: 18px;
  font-family: var(--font-en); font-weight: 900;
  font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.01em;
  color: var(--ink);
}
.marquee-track { display: inline-flex; gap: 64px; animation: marquee 40s linear infinite; }
.marquee .sep { color: var(--accent); margin-inline: 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
