@charset "UTF-8";

/* =========================================================
   common.css — design tokens, reset, typography, primitives
   株式会社アイ・トランスポート・ラボ
   ========================================================= */

:root {
  /* Brand colors */
  --c-green: #249258;
  --c-green-dark: #2a4537;
  --c-green-light: #1D9538;
  --c-navy: #344977;          /* used only for recruit button bg */
  --c-navy-dark: #249258;     /* was #1a3a5c — alias to green per design */

  /* Neutrals */
  --c-text: #2f2f2d;          /* 本文テキスト（旧#249258緑→濃色）。緑アクセントは--c-green */
  --c-text-soft: #2f2f2d;
  --c-muted: #6b7280;
  --c-border: #e5e7eb;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f8fa;
  --c-bg-band: #f6f8fc;

  /* Layout */
  --container: 1220px;
  --container-wide: 1360px;
  --pad-x: clamp(20px, 5vw, 70px);
  --section-pad-y: clamp(64px, 10vw, 140px);

  /* Radii */
  --r-pill: 9999px;
  --r-card: clamp(12px, 1.6vw, 24px);
  --r-card-lg: clamp(16px, 2.4vw, 40px);

  /* Type */
  --ff-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --ff-en: "Oswald", "Inter", system-ui, sans-serif;
  --ff-en-body: "Lexend", "Inter", system-ui, sans-serif;

  /* Shadows */
  --sh-card: 0 4px 24px rgba(26, 58, 92, 0.08);
  --sh-card-hover: 0 8px 36px rgba(26, 58, 92, 0.14);

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--ff-jp);
  font-size: 1rem;       /* 16px base */
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; transition: opacity .2s var(--ease); }
a:hover { opacity: .75; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

/* ---------- Layout primitives ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container-wide {
  width: 100%;
  max-width: calc(var(--container-wide) + var(--pad-x) * 2);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-pad-y); }

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--ff-en);
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.18em;
  color: var(--c-green);
  text-transform: uppercase;
}
.eyebrow--lg {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--c-navy-dark);
}
.heading {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-navy-dark);
}
.heading--hero {
  font-size: clamp(28px, 5.2vw, 64px);
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.lead {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.95;
  color: var(--c-text);
  letter-spacing: 0.04em;
}

/* ---------- Section header (centered intro) ---------- */

.s-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.s-head__rule {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.s-head__title { font-family: var(--ff-jp); font-weight: 700; font-size: clamp(22px, 3vw, 32px); letter-spacing: 0.08em; }
.s-head__lead { color: var(--c-muted); font-size: clamp(13px, 1.2vw, 15px); letter-spacing: 0.06em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 0 32px 0 44px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  min-width: 280px;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn > span:first-child { flex: 1; text-align: center; }
.btn:hover { opacity: 1; transform: translateY(-1px); box-shadow: var(--sh-card-hover); }
.btn__arrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.btn__arrow::after { content: "→"; }
.btn--primary { background: var(--c-green); color: #fff; }
.btn--primary:hover { background: var(--c-green-dark); }
.btn--outline {
  background: transparent;
  color: var(--c-green);
  border: 1.5px solid var(--c-green);
}
.btn--outline:hover { background: var(--c-green); color: #fff; }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.6);
}
.btn--ghost-light:hover { background: #fff; color: var(--c-green-dark); border-color: #fff; }
.btn--wide { min-width: clamp(280px, 30vw, 420px); }

/* Mini "詳しく見る" button — text with underline + pill with arrow */
.btn-mini {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-green);
  transition: gap .25s var(--ease);
}
.btn-mini__label {
  display: inline-block;
}
.btn-mini::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: #fff;
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  transition: background .25s var(--ease);
}
.btn-mini:hover { gap: 22px; opacity: 1; }
.btn-mini:hover::after { background: var(--c-green-dark); }

/* Tag pill */
.tag {
  display: inline-block;
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(68, 106, 86, 0.1);
  color: var(--c-green);
}

/* ---------- Visibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.is-hidden-sp { display: initial; }
.is-hidden-pc { display: none; }
@media (max-width: 768px) {
  .is-hidden-sp { display: none; }
  .is-hidden-pc { display: initial; }
}

/* ---------- Fade-in on scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Aim block (共有見出し部品): ! icon + title + rule + body
   references / trafficscope / countrywidesim 等の共通セクション見出し。
   ブランド緑はミュート #4b7660。rule は右端から左下へ下りる1本の斜線(#446a56)。
   （旧・development-detail.css からここへ集約＝全ページで有効）
   ========================================================= */
.dev-aim-block {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
}
.dev-aim-block__icon {
  font-family: var(--ff-en);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(58px, 6.2vw, 88px);
  line-height: 1;
  color: #4b7660;
  text-align: center;
}
.dev-aim-block__main {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 20px);
  padding-top: clamp(4px, 1vw, 12px);
}
.dev-aim-block__title {
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.06em;
  color: #4b7660;
  margin: 0;
}
.dev-aim-block__rule {
  position: relative;
  display: block;
  height: 1px;
  background: #446a56;
  margin: 4px 0 6px;
}
/* 右端の仕上げ：矢頭ではなく、右上の先端から左下へ下りる1本の斜線 */
.dev-aim-block__rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 26px;
  height: 1px;
  background: #446a56;
  transform-origin: 100% 50%;
  transform: rotate(30deg);
}
.dev-aim-block__main p {
  font-size: 16px;
  line-height: 2;
  color: var(--c-text);
  letter-spacing: 0.03em;
  margin: 0;
}

/* =========================================================
 * 読み上げ専用テキスト（WordPress 標準クラス）
 * the_posts_pagination() などが出力する <h2 class="screen-reader-text">
 * を画面から隠す。無いと「投稿のページ送り」がそのまま見えてしまう。
 * ========================================================= */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 22px;
  position: static !important;
  background: #fff;
  color: var(--c-text, #2f2f2d);
  font-size: 14px;
  text-decoration: underline;
  z-index: 100000;
}
