/* ===== IssueDo Corporate Site v2 ===== */
:root {
  --ink: #16181d;
  --sub: #5f646e;
  --line: #e3e4e6;
  --bg: #f6f6f5;
  --white: #ffffff;
  --tint: #dce6ef;        /* 色面ブロック */
  --tint-soft: #ecf1f6;
  --accent: #1f3a5f;
  --outline: rgba(31, 58, 95, 0.16); /* アウトライン文字 */
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.en-font {
  font-family: "Helvetica Neue", "Arial", sans-serif;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  max-width: none;
  padding: 0 0 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 24px; width: auto; }
.header-right { display: flex; align-items: center; height: 100%; }
.global-nav { display: flex; gap: 32px; margin-right: 36px; }
.global-nav a {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--sub);
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
  transition: color 0.25s;
}
.global-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.global-nav a:hover::after, .global-nav a.current::after {
  transform: scaleX(1);
  transform-origin: left;
}
.global-nav a:hover, .global-nav a.current { color: var(--ink); }
.header-cta {
  display: flex; align-items: center; justify-content: center;
  height: 68px; padding: 0 34px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  transition: background 0.3s;
}
.header-cta:hover { background: var(--accent); }

/* ===== 背景グリッド ===== */
.grid-bg {
  position: relative;
}
.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(22, 24, 29, 0.09) 1px, transparent 1.6px);
  background-size: 26px 26px;
  pointer-events: none;
}
.grid-bg > * { position: relative; }

/* ===== Hero ===== */
.hero {
  padding: 110px 0 0;
  overflow: hidden;
}
/* ヒーローだけワイド画面に追従させる（shake-hands準拠） */
.hero .container {
  max-width: 1600px;
  padding-left: 48px;
  padding-right: 48px;
}
.hero-inner {
  position: relative;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(480px, 38vw, 730px);
  gap: clamp(48px, 6vw, 140px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; }
.hero .kicker {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.hero p.lead {
  margin-top: 32px;
  color: var(--sub);
  font-size: 15.5px;
  max-width: 480px;
}
.hero-block {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* shake-hands同様ワイド比率 */
  overflow: visible;
}
/* 動画の左下から右端へ抜ける色面パネル */
.hero-block::before {
  content: "";
  position: absolute;
  top: 42%; /* shake-hands準拠：動画の下58%が色面に載る */
  left: -37%;
  width: 200%;
  height: 200%;
  background: var(--tint);
}
.hero-video {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.8);
}
/* 動画にネイビーの薄膜をかけてサイトの色に馴染ませる */
.hero-block::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(31, 58, 95, 0.22), rgba(31, 58, 95, 0.05));
  pointer-events: none;
}

/* ===== 流れる背景テキスト（2段・逆方向、CyberACE準拠の透かしスタイル） ===== */
.hero-flow {
  overflow: hidden;
  padding: 32px 0 56px;
}
.hero-flow-line {
  display: flex;
  white-space: nowrap;
}
.hero-flow-line span {
  flex-shrink: 0;
  display: block;
  padding-right: 0.5em;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 104px);
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.08;
}
.flow-left span { animation: flowLeft 90s linear infinite; }
.flow-right span { animation: flowRight 90s linear infinite; }
@keyframes flowLeft {
  to { transform: translateX(-100%); }
}
@keyframes flowRight {
  from { transform: translateX(-100%); }
  to   { transform: none; }
}
.no-motion .hero-flow-line span { animation: none; }

/* ===== Page title (sub pages) ===== */
.page-title {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-title .bg-word {
  position: absolute;
  right: -0.08em; bottom: -0.32em;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(90px, 16vw, 220px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--outline);
  pointer-events: none;
  white-space: nowrap;
}
.page-title p.en {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-title h1 { font-size: 32px; font-weight: 700; letter-spacing: 0.08em; }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; scroll-margin-top: 40px; }
.section-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .en {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800; letter-spacing: 0.04em;
  line-height: 1;
}
.section-head .ja {
  font-size: 13px; color: var(--sub); letter-spacing: 0.1em;
  padding-left: 24px;
  border-left: 1px solid var(--ink);
  line-height: 1.4;
}
.section.on-white { background: var(--white); }

/* ===== Service cards (top) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--white);
  padding: 44px 36px 40px;
  position: relative;
  transition: background 0.35s;
}
.card:hover { background: var(--tint-soft); }
.card .num {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent);
  display: block; margin-bottom: 20px;
}
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.04em; }
.card p { font-size: 13.5px; color: var(--sub); }

/* ===== Service detail blocks ===== */
.service-block {
  display: grid;
  grid-template-columns: 90px 240px 1fr;
  gap: 32px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: none; }
.service-block .num {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 4px;
}
.service-block h3 { font-size: 19px; font-weight: 700; line-height: 1.7; letter-spacing: 0.04em; }
.service-block .body p { color: var(--sub); font-size: 14.5px; }
.service-block .body p + p { margin-top: 12px; }
.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 12px; color: var(--accent);
  background: var(--tint-soft);
  border-radius: 2px;
  padding: 4px 14px;
  letter-spacing: 0.06em;
}

/* ===== Company table ===== */
.company-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.company-table th, .company-table td {
  text-align: left; vertical-align: top;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th {
  width: 200px; font-weight: 600; color: var(--sub);
  white-space: nowrap;
  background: var(--tint-soft);
}

/* ===== Contact ===== */
.contact-box {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 72px 40px;
  text-align: center;
  position: relative;
}
.contact-box::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
}
.contact-box p { color: var(--sub); font-size: 14.5px; }
.contact-mail {
  display: inline-block;
  margin-top: 28px;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(20px, 3vw, 28px); font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
}
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-note { margin-top: 24px; font-size: 12.5px; color: #9aa0a8; }

/* ===== Buttons ===== */
.cta-row { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 40px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em;
  transition: background 0.3s, color 0.3s;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ===== 色面オフセットブロック（会社概要ティーザー等） ===== */
.offset-panel {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 64px 56px;
}
.offset-panel::after {
  content: "";
  position: absolute;
  top: 28px; left: 28px;
  width: 100%; height: 100%;
  background: var(--tint);
  z-index: -1;
}
.offset-panel p { color: var(--sub); font-size: 14.5px; max-width: 560px; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-band .bg-word {
  position: absolute;
  right: -0.06em; bottom: -0.34em;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: clamp(90px, 14vw, 190px);
  font-weight: 800; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  white-space: nowrap;
}
.cta-band h2 { font-size: 24px; font-weight: 700; letter-spacing: 0.08em; }
.cta-band p { color: rgba(255, 255, 255, 0.65); font-size: 14px; margin-top: 12px; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; margin-top: 36px; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.site-footer .footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 28px;
  padding-bottom: 40px;
}
.footer-brand img { height: 22px; }
.footer-brand p { font-size: 12px; color: var(--sub); margin-top: 14px; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer nav a {
  font-family: "Helvetica Neue", "Arial", sans-serif;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--sub);
  transition: color 0.25s;
}
.site-footer nav a:hover { color: var(--ink); }
.copyright {
  font-size: 11.5px; color: #b0b4ba;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  letter-spacing: 0.06em;
}

/* ===== Scroll reveal（ブラーが晴れる） ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(10px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ===== パララックス対象 ===== */
.hero-block, .bg-word { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-flow-line span { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .hero-block::before { left: -12%; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 100px; }
  .hero h1 { white-space: normal; }
  .hero-block { width: 100%; margin-top: 12px; }
  .hero-block::before { display: none; }
}
@media (max-width: 820px) {
  .service-block { grid-template-columns: 56px 1fr; }
  .service-block .body { grid-column: 2; }
}
@media (max-width: 640px) {
  .site-header .container {
    padding-left: 20px;
    height: auto;
    flex-wrap: wrap;
  }
  .brand { order: 1; height: 56px; }
  .header-right { display: contents; }
  .header-cta { order: 2; height: 56px; padding: 0 22px; font-size: 12px; }
  .global-nav {
    order: 3;
    width: 100%;
    gap: 22px;
    margin-right: 0;
    padding: 10px 0 14px;
  }
  .global-nav a { font-size: 11px; }
  .hero { padding-top: 80px; }
  .hero .container { padding-left: 24px; padding-right: 24px; }
  .hero h1 { font-size: 27px; }
  .hero-block {
    position: relative;
    top: 0; right: 0;
    width: 100%; height: auto;
    margin-top: 44px;
    aspect-ratio: 16 / 9;
  }
  .section { padding: 64px 0; }
  .section-head { gap: 14px; margin-bottom: 36px; }
  .section-head .ja { padding-left: 14px; }
  .service-block { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
  .service-block .body { grid-column: 1; }
  .company-table th { width: 110px; padding: 18px 16px; }
  .company-table td { padding: 18px 16px; }
  .offset-panel { padding: 40px 28px; }
  .offset-panel::after { top: 16px; left: 16px; }
  .footer-nav-sp { display: flex; flex-wrap: wrap; }
}
