/* =========================================================================
   Solutions 2 GO Japan – Mock Stylesheet
   本家 solutions2go.ca のカラー・タイポを踏襲した日本法人向けモック
   ========================================================================= */

:root {
  /* Brand colors — S2G Brand Guidelines 2025 v1.02 準拠（グリーン主体・ブルー廃止） */
  --c-primary: #89d50a;        /* S2G Green = 主アクセント／操作色 */
  --c-primary-dark: #739b05;   /* S2G Dark Green = hover/shade */
  --c-primary-darker: #000000; /* Black = グラデの締め */
  --c-accent: #89d50a;
  --c-accent-dark: #739b05;

  --c-text: #54554e;
  --c-text-dark: #090909;
  --c-text-muted: #8a8a82;

  --c-bg: #ffffff;
  --c-bg-soft: #f5f5f5;
  --c-bg-line: #e5e5e5;
  --c-bg-dark: #1a1a1a;
  --c-bg-black: #0c0c0c;

  --c-white: #ffffff;

  /* Typography — S2G Brand Guidelines: 見出し/本文とも Montserrat、法務行は Noto Sans Thai Light */
  --ff-display: "Montserrat", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-body: "Montserrat", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-legal: "Noto Sans Thai", "Noto Sans JP", sans-serif;
  --c-nav-bg: #222;
  --c-nav-text: #9d9d9d;
  --c-nav-hover: #fff;

  /* Layout */
  --container: 1170px;       /* 本家 Bootstrap3 準拠 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.42857; /* 本家準拠 */
  color: #222;
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

/* fixed navbar(高さ約58px)分のオフセットを確保 */
body {
  padding-top: 58px;
}

/* 言語切替ドロップダウン */
.navbar-nav > li.lang-switch > a {
  color: var(--c-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.navbar-nav > li.lang-switch > a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--c-primary-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-display);
  color: var(--c-text-dark);
  font-weight: 600; /* 本家準拠 */
  line-height: 1.1; /* 本家準拠 */
  margin: 0 0 0.6em;
  /* text-transform: uppercase はクラス側で必要に応じて適用（日本語見出しは大文字化しない） */
}

h1, h2, h3 {
  margin-top: 22px;
  margin-bottom: 11px;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;          /* 本家 Bootstrap3 準拠 */
}

.text-center {
  text-align: center;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
  color: var(--c-white);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-white);
}

.btn-outline:hover {
  background: var(--c-white);
  color: var(--c-primary);
}

.btn-accent,
.btn_brand {
  background: var(--c-accent);
  color: var(--c-text-dark);
  border-color: var(--c-accent);
  text-transform: uppercase;
}

.btn-accent:hover,
.btn_brand:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: var(--c-text-dark);
}

/* ========== Navbar (本家 solutions2go.ca 構造を踏襲) ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  min-height: 58px;
  margin: 0;
  background-color: var(--c-nav-bg);
  background-image: url("../img/s2g_navbar_footer_black_grain.png");
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: 0;
  border-bottom: 1px solid #090909;
}

.navbar .container {
  display: flex;
  align-items: stretch; /* 子要素が navbar 全高に伸びる */
  justify-content: space-between;
  flex-wrap: wrap;
  /* padding は .container 共通 (0 15px) を使う */
}

.navbar-header {
  display: flex;
  align-items: stretch;
  position: relative;     /* 本家準拠：::before で白帯を viewport 左端まで延ばす起点 */
}

/* 本家のしくみ：navbar-header の左に巨大な白い矩形を絶対配置で延ばし、
   ロゴ左端〜画面左端をすべて白でつなぐ */
.navbar-header::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  left: -9999px;
  height: 100%;
  background: #fff;
  display: inline-block;
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0 0 0 15px;    /* 本家準拠：左 15px のみ */
  background: #fff;
  margin: 0 0 0 -15px;    /* 本家準拠：container padding を相殺 */
  text-decoration: none;
  min-height: 58px;       /* 本家準拠：navbar高さに揃う白帯 */
}

.navbar-brand:hover,
.navbar-brand:focus {
  background-color: #fff;
}

.navbar-brand__logo {
  display: block;
  width: auto;
  height: 58px;           /* 本家準拠：min-height:58px が効くため実効58px */
  max-width: none;        /* 重要：generic img の max-width:100% を打ち消す（潰れ防止）*/
  margin-right: -25px;    /* 本家準拠：白帯の右端にロゴが少し食い込む */
  border: 0;
}

.navbar-collapse {
  display: flex;
  align-items: center;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-nav > li {
  position: relative;
}

.navbar-nav > li > a {
  display: block;
  padding: 19px 15px;
  color: var(--c-nav-text);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color 0.15s, background-color 0.15s;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  color: var(--c-nav-hover);
  background-color: transparent;
}

.navbar-nav > li.open > a,
.navbar-nav > li.open > a:hover,
.navbar-nav > li.open > a:focus,
.navbar-nav > li.active > a,
.navbar-nav > li.active > a:hover,
.navbar-nav > li.active > a:focus {
  color: #fff;
  background-color: #090909;
}

.navbar-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  display: none;
  z-index: 1000;
}

.navbar-nav .dropdown-menu > li > a {
  display: block;
  padding: 6px 20px;
  color: #333;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav .dropdown-menu > li > a:hover,
.navbar-nav .dropdown-menu > li > a:focus {
  color: #fff;
  background-color: var(--c-primary);
}

.navbar-nav > li.dropdown:hover > .dropdown-menu,
.navbar-nav > li.dropdown.open > .dropdown-menu {
  display: block;
}

.navbar-toggle {
  display: none;
  position: relative;
  float: right;
  padding: 9px 10px;
  margin: 8px 15px 8px 0;
  background-color: transparent;
  background-image: none;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 1px;
}

.navbar-toggle .icon-bar + .icon-bar {
  margin-top: 4px;
}

/* ========== Header / Hero (本家 solutions2go.ca 準拠) ========== */
.header {
  position: relative;
  padding-bottom: 30px;
  background-color: #fff;
  overflow: hidden;
}

/* 本家準拠（2026-11-08）：写真は上端に幅いっぱいで置き（16:9）、その上に白い矢印形（角丸）と
   下端の白グラデーションを重ねる。本家は写真に描き込み済みだが、こちらは写真を差し替えても形が残るよう SVG で重ねる */
.header__hero_img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 2560px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.header__shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 2560px;
  height: auto;
  aspect-ratio: 16 / 9;
  z-index: 1;
  pointer-events: none;
}

.header .container {
  position: relative;
  z-index: 2;
}

/* 本家準拠：上の余白は幅に対する割合（992px 以上 20%、480px 以上 15%、それ未満 10%） */
.header__headline_wrapper {
  padding-top: 10%;
  padding-bottom: 20px;
  max-width: 66.6667%;
}

@media (min-width: 480px) {
  .header__headline_wrapper {
    padding-top: 15%;
    padding-left: 9px;
    padding-bottom: 30px;
  }
}

@media (min-width: 992px) {
  .header__headline_wrapper {
    padding-top: 20%;
    padding-bottom: 50px;
  }
}

/* 本家準拠（2026-11-08 実測）：Montserrat SemiBold、社名行も見出しと同じ大きさ。
   幅ごとの大きさ 1200px 以上 48/52、993〜1199px 42/46、769〜992px 38/40、768px 以下 24/28 */
.header__headline {
  margin: 0;
  font-family: var(--ff-display);
  font-size: 48px;
  line-height: 52px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: #000;
}

.header__headline span {
  display: block;
  color: var(--c-accent);
}

@media (min-width: 993px) and (max-width: 1199px) {
  .header__headline {
    font-size: 42px;
    line-height: 46px;
  }
}

/* 緑カード（本家 page_summary 準拠） */
/* 緑カード：本家準拠（2026-11-08 実測）。緑は 80% の濃さで、背景の写真が透ける */
.page_summary {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0;
  position: relative;
}

.page_summary_inner {
  background: rgba(137, 213, 10, 0.8);
  padding: 30px 20px 25px;
}

@media (min-width: 768px) {
  .page_summary_inner { padding: 35px; }
}

@media (min-width: 992px) {
  .page_summary_inner { padding: 45px; }
}

.page_summary_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.page_summary_image {
  display: flex;
  justify-content: center;
}

/* 本家の画像は横長（1020×685）。こちらの仮画像は正方形なので同じ比率に切り抜く */
.page_summary_img {
  width: 100%;
  height: auto;
  aspect-ratio: 1020 / 685;
  object-fit: cover;
}

.page_summary_copy {
  color: #000;
}

.page_summary_copy p {
  color: #000;
  font-size: 16px;
  line-height: 26px;
  margin: 0 0 11px;
}

.page_summary_copy p:last-of-type {
  margin-bottom: 25px;
}

.page_summary_copy p strong {
  font-weight: 700;
  color: #000;
}

/* 本家準拠：緑カードの中のボタンは白地に黒文字、角なし */
.page_summary_copy .btn_brand {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  border-radius: 0;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}

.page_summary_copy .btn_brand:hover {
  background: var(--c-accent);
  color: #fff;
}

/* ========== Section base ========== */
.section {
  padding: 70px 0;
  background: #fff;
}

.section--mission {
  background: #fff;
}

.section--titles {
  background: #f5f5f5;     /* 本家のケーススタディと同色 */
}

.section--soft {
  background: #f5f5f5;
}

.section--stats {
  background: #fff;
  padding: 60px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-foot {
  text-align: center;
  margin-top: 40px;
}

.section-head__eyebrow {
  display: block;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 32px;
  margin: 0 0 16px;
  color: var(--c-text-dark);
  text-transform: uppercase;
}

.section-head__lead {
  max-width: 820px;
  margin: 0 auto 24px;
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.7;
}

/* ========== Service grid ========== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--c-primary);
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(137, 213, 10, 0.1); /* S2G Green 淡色 */
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  margin: 0;
}

.service-card__more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  text-transform: uppercase;
}

/* ========== Title (Games) Grid ========== */
.title-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.title-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.title-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.title-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.title-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.title-card:hover .title-card__media img {
  transform: scale(1.04);
}

.title-card__body {
  padding: 18px 18px 22px;
}

.title-card__genre {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--c-accent-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.title-card__name {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--c-text-dark);
}

.title-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text);
  margin: 0 0 10px;
}

.title-card__more {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
}

/* ========== Stats ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat__num {
  font-family: var(--ff-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-accent-dark);
  margin-bottom: 10px;
}

.stat__label {
  font-size: 12px;
  font-weight: 600; /* 他の大文字ラベルと統一（ブランド規定 SemiBold） */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text);
  line-height: 1.4;
}

/* ========== Case studies ========== */
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.case-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.case-row__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-darker) 100%);
  position: relative;
  overflow: hidden;
}

.case-row__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(137, 213, 10, 0.4) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.04) 12px 13px);
}

.case-row__media--green::after {
  background:
    radial-gradient(circle at 30% 70%, rgba(137, 213, 10, 0.55) 0%, transparent 55%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.04) 12px 13px);
}

.case-row__media--dark {
  background: linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-bg-black) 100%);
}

.case-row__body {
  padding: 32px 36px 32px 0;
}

.case-row__body h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.case-row__body p {
  margin-bottom: 16px;
}

/* ========== Map / global ========== */
.map-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
}

.map-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
  align-items: center;
}

.map-grid h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.map-art {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 22% 35%, var(--c-accent) 0 4px, transparent 5px),
    radial-gradient(circle at 30% 50%, var(--c-accent) 0 4px, transparent 5px),
    radial-gradient(circle at 38% 68%, var(--c-accent) 0 4px, transparent 5px),
    radial-gradient(circle at 52% 30%, var(--c-primary) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 55%, var(--c-accent) 0 4px, transparent 5px),
    radial-gradient(circle at 75% 42%, var(--c-accent) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 60%, var(--c-accent) 0 4px, transparent 5px),
    linear-gradient(135deg, var(--c-bg-dark) 0%, var(--c-bg-black) 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.map-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(137, 213, 10, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 213, 10, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-art__tag {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--c-accent);
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 0.3em;
}

/* ========== CTA strip (本家準拠：白背景・緑ボタン) ========== */
.cta-strip {
  background: #fff;
  color: var(--c-text-dark);
  padding: 70px 0;
  border-top: 1px solid #e5e5e5;
}

.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-strip h2 {
  color: var(--c-text-dark);
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}

.cta-strip p {
  margin: 8px 0 0;
  color: var(--c-text);
  font-size: 15px;
}

/* ========== Page header (sub pages) — 本家準拠：白背景・緑帯 ========== */
.page-hero {
  padding: 60px 0 50px;
  background: #fff;
  color: var(--c-text-dark);
  border-bottom: 6px solid var(--c-accent);
}

.page-hero__crumb {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--c-accent-dark);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.page-hero h1 {
  color: var(--c-text-dark);
  font-size: 36px;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.page-hero p {
  font-size: 16px;
  max-width: 820px;
  color: var(--c-text);
  line-height: 1.7;
}

/* ========== Title detail (title.html 用) ========== */
.title-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.title-detail {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 36px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 0;
  overflow: hidden;
}

.title-detail__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.title-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.title-detail__body {
  padding: 24px 28px 24px 0;
}

.title-detail__body h3 {
  font-family: var(--ff-display);
  font-size: 26px;
  text-transform: uppercase;
  margin: 4px 0 14px;
  color: var(--c-text-dark);
}

.title-detail__body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text);
  margin: 0 0 16px;
}

.title-detail__spec {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--c-text);
}

.title-detail__spec li {
  padding: 5px 0;
  border-bottom: 1px dotted #d5d5d5;
}

.title-detail__spec li:last-child {
  border-bottom: 0;
}

.title-detail__spec strong {
  display: inline-block;
  min-width: 100px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
}

/* ========== Two-col content ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col h2 {
  font-size: 32px;
}

.two-col__visual {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.two-col__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.two-col__visual--accent {
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent-dark));
}

/* ========== Values cards ========== */
.values {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.value-card {
  background: var(--c-white);
  border: 1px solid var(--c-bg-line);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}

.value-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-3px);
}

.value-card__no {
  font-family: var(--ff-display);
  font-weight: 700; /* ブランド上限 Bold（旧 800 ExtraBold は規格外） */
  font-size: 12px;
  color: var(--c-accent-dark);
  letter-spacing: 0.15em;
}

.value-card h3 {
  font-size: 16px;
  margin: 8px 0 6px;
}

.value-card p {
  font-size: 13px;
  margin: 0;
}

/* ========== Solution detail rows ========== */
.solution-detail {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.solution-detail__no {
  font-family: var(--ff-display);
  font-weight: 700; /* ブランド上限 Bold（旧 800 ExtraBold は規格外） */
  font-size: 40px;
  color: var(--c-primary);
  line-height: 1;
}

.solution-detail h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.solution-detail__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  background: rgba(137, 213, 10, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ========== Locations ========== */
.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.location-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--c-primary);
}

.location-card__country {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 4px;
}

.location-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.location-card p {
  font-size: 13px;
  margin: 0 0 4px;
}

/* ========== Contact form ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 50px;
}

.contact-info dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px 20px;
  margin: 0;
}

.contact-info dt {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  padding-top: 4px;
}

.contact-info dd {
  margin: 0;
  font-size: 15px;
  color: var(--c-text-dark);
}

.form {
  background: var(--c-white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form__field {
  margin-bottom: 18px;
}

.form__field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 6px;
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--ff-body);
  font-size: 15px;
  border: 1px solid var(--c-bg-line);
  border-radius: var(--radius-sm);
  background: #fbfbfb;
  transition: border-color 0.2s, background 0.2s;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: 0;
  border-color: var(--c-primary);
  background: var(--c-white);
}

.form__field textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========== Company page: profile table ========== */
.company-table {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 8px 28px;
}

.company-table dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  margin: 0;
}

.company-table dt,
.company-table dd {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  margin: 0;
}

.company-table dt {
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
}

.company-table dd {
  font-size: 14px;
  color: var(--c-text-dark);
}

.company-table dl > *:nth-last-child(-n+2) {
  border-bottom: 0;
}

/* ========== Contact page ========== */
.contact-info {
  margin-bottom: 24px;
}

.contact-info p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--c-text-dark);
  line-height: 1.6;
}

.contact-info p strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-japan-img {
  margin-top: 24px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.contact-japan-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact form: form wrapper (single column, centered) */
.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form-wrapper > .section-head__eyebrow {
  display: block;
  text-align: center;
}

.contact-form-wrapper > h2 {
  text-align: center;
  margin-bottom: 32px;
}

/* Contact form: label>span pattern */
.form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 18px;
}

.form label {
  display: block;
}

.form label > span {
  display: block;
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  margin-bottom: 6px;
}

.form label > span em {
  color: #d9534f;
  font-style: normal;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--ff-body);
  font-size: 14px;
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 0;
  transition: border-color 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  border-color: var(--c-accent);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ========== Contact page: locations grid ========== */
.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.loc-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.loc-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

.loc-card.highlight {
  border-color: var(--c-accent);
  border-width: 2px;
  background: rgba(137, 213, 10, 0.06);
}

.loc-card h3 {
  font-family: var(--ff-display);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--c-text-dark);
  margin: 0 0 6px;
}

.loc-card p {
  font-size: 13px;
  color: var(--c-text);
  margin: 0;
}

.loc-card.highlight p {
  color: var(--c-accent-dark);
  font-weight: 600;
}

/* ========== Footer (本家 solutions2go.ca 構造を踏襲) ========== */
.footer {
  background-color: var(--c-accent);
  margin-top: 0;
}

.footer__black_outer_wrapper {
  padding-top: 35px;
  background-color: #0c0c0c;
  background-image: url("../img/s2g_navbar_footer_black_grain.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.footer__black_inner_wrapper {
  padding: 0 15px 25px;       /* 本家準拠：横 15px + 下 25px */
  margin: 0 -15px;            /* container padding を相殺し container 全幅へ */
  text-align: center;
}

.footer__brand_logo_link {
  display: inline-block;
  margin: 0 auto 15px;        /* 本家準拠：margin-bottom 15px */
  border: 0;
  font-size: 0;               /* インライン要素間の余白を消す（リンク高=画像高） */
  line-height: 0;
}

.footer__brand_logo {
  width: 80px;
  height: auto;
  border: 0;
  display: inline-block;
  max-width: none;
}

.footer__menu_wrapper {
  margin-bottom: 5px;         /* 本家準拠：5px */
}

.footer__menu {
  display: inline-block;
  margin: 0 7px;
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.125rem;
  text-decoration: none;
  text-transform: uppercase;
}

.footer__menu:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__link_wrapper {
  margin-top: 0;              /* 本家準拠：margin-top なし */
}

/* 本家は本文の行の高さが 26px（16px×1.625）で、メニュー行・リンク行の高さがそれで決まる。
   サイト全体の行の高さは変えず、フッターの2行だけ本家に合わせる（2026-11-08 実測で合わせた） */
.footer__menu_wrapper,
.footer__link_wrapper {
  line-height: 26px;
}

@media screen and (min-width: 768px) {
  .footer__link {
    font-size: 10px;          /* 本家準拠：PC 幅では 10px */
    line-height: 14px;
  }
}

.footer__link {
  display: inline-block;
  margin-right: 3px;
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 11px;
  line-height: 0.9375rem;
  text-decoration: none;
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__link:before {
  content: "•";
  margin-right: 5px;
  display: inline-block;
}

.footer__green_wrapper {
  padding: 10px 15px;         /* 本家準拠：縦 10px、横 15px */
  background-color: var(--c-accent);
  color: #000;
  font-weight: 400;
  font-size: 11px;
  line-height: 0.9375rem;
  text-align: center;
}

.footer__green_wrapper em {
  font-style: italic;
  /* 法務行はブランド規定フォント Noto Sans Thai Light */
  font-family: var(--ff-legal);
  font-weight: 300;
  font-style: normal;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .hero__inner,
  .two-col,
  .case-row,
  .map-grid,
  .contact-grid,
  .page_summary_row {
    grid-template-columns: 1fr;
  }

  .services,
  .stats,
  .title-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header__headline {
    font-size: 38px;
    line-height: 40px;
  }

  .values {
    grid-template-columns: repeat(2, 1fr);
  }

  .locations {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-row__body {
    padding: 0 28px 28px;
  }
}

@media (max-width: 768px) {
  .navbar-header {
    width: 100%;
    align-items: center;
  }

  .navbar-brand {
    order: 0;
  }

  .navbar-toggle {
    display: block;
    order: 1;
    margin-left: auto;
  }

  .navbar-collapse {
    display: none;
    width: 100%;
    flex-basis: 100%;
    background-color: #090909;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 0;
  }

  .navbar-collapse.is-open {
    display: block;
  }

  .navbar-nav {
    display: block;
    width: 100%;
  }

  .navbar-nav > li {
    width: 100%;
  }

  .navbar-nav > li > a {
    padding: 12px 20px;
    color: #fff;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    background-color: transparent;
    padding: 0 0 8px 16px;
  }

  .navbar-nav .dropdown-menu > li > a {
    color: #9d9d9d;
    padding: 6px 16px;
  }

  .navbar-nav .dropdown-menu > li > a:hover,
  .navbar-nav .dropdown-menu > li > a:focus {
    background-color: transparent;
    color: #fff;
  }

  /* Header / hero — モバイル調整 */
  /* 本家準拠：スマホでは緑カード内の画像を出さない */
  .page_summary_image {
    display: none;
  }

  .header__headline {
    font-size: 24px;
    line-height: 28px;
    word-break: keep-all;
  }

  .page_summary_row {
    gap: 20px;
  }

  /* Section base */
  .section {
    padding: 50px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: 22px;
    line-height: 1.2;
  }

  .section-head__eyebrow {
    font-size: 12px;
  }

  .section-head__lead {
    font-size: 14px;
  }

  /* Grids -> 1 column */
  .services,
  .stats,
  .values,
  .locations,
  .title-grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  /* Title detail (title.html) — 縦積み */
  .title-detail {
    grid-template-columns: 1fr;
  }

  .title-detail__body {
    padding: 20px 20px 24px;
  }

  .title-detail__body h3 {
    font-size: 22px;
  }

  /* Stats */
  .stat__num {
    font-size: 44px;
  }

  /* Page hero */
  .page-hero {
    padding: 40px 0 36px;
  }
  .page-hero h1 {
    font-size: 26px;
  }
  .page-hero p {
    font-size: 14px;
  }

  /* CTA strip */
  .cta-strip {
    padding: 40px 0;
  }
  .cta-strip h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  .cta-strip__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Buttons: prevent text overflow */
  .btn {
    padding: 12px 20px;
    font-size: 12px;
    word-break: keep-all;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* h1/h2/h3 — Montserrat default で長い英文が overflow しないように */
  h1, h2, h3, h4, h5, h6 {
    overflow-wrap: anywhere;
  }

  /* Company table — 縦積み */
  .company-table dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .company-table dt {
    padding-bottom: 4px;
    border-bottom: 0;
  }
  .company-table dd {
    padding-top: 4px;
    padding-bottom: 12px;
  }

  /* Two-col stacked images get reasonable max height */
  .two-col__visual {
    aspect-ratio: 16 / 10;
  }

  .solution-detail {
    grid-template-columns: 60px 1fr;
    padding: 28px 24px;
  }

  /* 本家準拠：スマホ幅ではメニューを縦に並べる（2026-11-08 実測で合わせた） */
  .footer__brand_logo_link {
    margin-bottom: 25px;
  }
  .footer__menu_wrapper {
    margin-bottom: 20px;
  }
  .footer__menu {
    display: block;
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 19px;
  }

  .page-hero h1 {
    font-size: 32px;
  }
}
