/* ====================================================================
   TripClear — 海外製品マーケティング支援ページ専用レイヤ（/sns/japan-entry/）
   sns.css / pov.css / service-page.css のトークンを前提に、
   このページにしか出てこないセクションだけを .je- prefix で足す。

   守っていること（.claude/skills/design-fb/SKILL.md）:
     - グラデーションは --tc-grad のみ。新しい紫を増やさない
     - 角丸は --radius-sm / md / lg のみ。生の px を増やさない
       （ピル型の 999px だけは既存コンポーネントと同じ扱い）
     - ダーク面は --home-*、ライト面は --tc-light-* を再利用
     - 面の並び: ヒーロー(紺) → Partner/Numbers(#f5f5f6) → Why(紺) →
       Service(#f5f5f6) → Case(紺面に白カード) → Process(#f5f5f6) → Services(紺)
     - スマホ（〜600px）は PC の縮小ではなく縦積み専用レイアウト
   ==================================================================== */

/* 和文の行頭禁則を厳格に。既定の line-break では「ー」「っ」が行頭に来る
   （例: 「パ／ートナー」「や／った施策」）。英文には影響しない */
.je-page { line-break: strict; }

/* 見出し・カードタイトルの改行を均等に（1文字だけの孤立行を避ける） */
.je-page .sns-section-sub,
.je-partner-title,
.je-why-card-title,
.je-chain-title,
.je-tl-title,
.je-page .sns-plan-title,
.je-lang-title { text-wrap: balance; }

/* ==========================================================================
   共通：セクション末尾の締めの帯（Why）
   引用文のように左のグラデ縦線だけで締める（recruit の .rc-band と同型）
   ========================================================================== */
.je-band {
  position: relative;
  margin-top: 56px;
  padding: 6px 0 6px 26px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 800;
  line-height: 1.7;
  letter-spacing: 0.005em;
  font-feature-settings: 'palt' 1;
  color: var(--home-ink);
  max-width: 30em;
}
.je-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--tc-grad);
}

/* ==========================================================================
   S1 PARTNER / NUMBERS — ライト面。提携の事実（ロゴ）を数字より先に置き、
   その下に既存の深紫バンド（.sns-results-highlight--light）で実績数字
   ========================================================================== */
.je-partner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 36px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--tc-light-line);
}
.je-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  border-radius: var(--radius-md);
  background: var(--tc-light-bg);
}
.je-partner-logo img {
  display: block;
  width: 160px;
  height: auto;
}
.je-partner-eyebrow {
  font-family: var(--font-body-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tc-light-ink-3);
  margin-bottom: 8px;
}
.je-partner-title {
  font-size: clamp(18px, 1.7vw, 21px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.005em;
  font-feature-settings: 'palt' 1;
  color: var(--tc-light-ink);
  margin-bottom: 10px;
}
/* 文中の Insta360 はワードマークのロゴで見せる。
   読み上げ・翻訳用のテキストは HTML に残したまま、視覚的にだけ差し替える
   （日本語版・英語版とも <strong>Insta360</strong> なので1ルールで効く） */
.je-partner-title strong {
  display: inline-block;
  /* 実測: ワードマークは viewBox いっぱい（ink 99%）で、天地はキャップハイト＝ベースライン。
     本文の欧文キャップハイト 0.737em に合わせ、縦横比 521:99 で幅を決める */
  width: 3.92em;
  height: 0.745em;
  background: url("../../images/insta360.svg") left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}
/* 和文中の欧文は前後に四分アキを入れる。英語版はカンマが続くので余白を付けない */
html[lang="ja"] .je-partner-title strong { margin: 0 0.1em; }
.je-partner-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--tc-light-ink-2);
}
.je-partner-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--tc-light-ink-3);
}
/* Case セクションへの導線。色は .sns-details--light の .sns-solution-link を継承する */
.je-partner-link { margin-top: 14px; }
/* 深紫バンドはパートナーカードの下に置くので上マージンだけ足す */
.body-home .je-trust .sns-results-highlight--light {
  margin-top: 28px;
  margin-bottom: 0;
}
.body-home .je-trust .sns-result-big-label { max-width: 16em; line-height: 1.6; }
/* ラベルが長いぶん数字を少し抑えて、ラベルが潰れて4行になるのを防ぐ */
.body-home .je-trust .sns-results-highlight--light .sns-result-big-number,
.body-home .je-trust .sns-results-highlight--light .sns-result-big-card:first-child .sns-result-big-number {
  font-size: clamp(46px, 5vw, 72px);
}

/* ==========================================================================
   S2 WHY — ダーク面。上罫線だけの3カード（recruit の .rc-why-card と同型）
   ========================================================================== */
.je-why-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
}
.je-why-card {
  padding: 24px 0 0;
  border-top: 1px solid var(--home-line);
}
.je-why-ico {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--home-accent-2);
}
.je-why-ico svg { width: 24px; height: 24px; }
.je-why-card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--home-ink);
  margin-bottom: 6px;
}
.je-why-card-lead {
  font-size: 13px;
  font-weight: 700;
  color: var(--home-accent-2);
  margin-bottom: 10px;
}
.je-why-card-desc {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--home-ink-2);
}

/* ==========================================================================
   S3 SERVICE — ライト面。5ステップのチェーン（背面を貫く --tc-grad のライン）
   ＋ 6枚のメニューカード（sns-plan-card の light 版を再利用）＋ 英語対応の帯
   ========================================================================== */
.je-chain {
  --je-chain-gap: 20px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--je-chain-gap);
  align-items: stretch;
  margin-top: 60px;
}
/* 5つのノード中心を貫く1本のグラデーションライン（背面） */
.je-chain::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 20.5px;
  left: calc((100% - 4 * var(--je-chain-gap)) / 10);
  right: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--tc-grad);
}
/* ラインの右端の矢じり */
.je-chain::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 12px;
  right: 0;
  width: 20px;
  height: 20px;
  background: var(--tc-grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 4 17 12 9 20'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 4 17 12 9 20'/%3E%3C/svg%3E") center / contain no-repeat;
}
.je-chain-step {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  padding: 30px 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--tc-light-line);
  background: #fff;
  text-align: center;
}
/* カード間の小さな進行方向マーク */
.je-chain-step + .je-chain-step::before {
  content: "";
  position: absolute;
  top: calc(50% - 6px);
  left: calc(-1 * (var(--je-chain-gap) / 2) - 6px);
  width: 12px;
  height: 12px;
  background: #7b6bff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 4 17 12 9 20'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 4 17 12 9 20'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 円形の番号ノード。カード枠から上へ少し飛び出させる */
.je-chain-num {
  position: absolute;
  z-index: 2;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--tc-grad);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.je-chain-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--tc-light-ink);
  margin-bottom: 8px;
}
.je-chain-desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--tc-light-ink-2);
}

.je-menu { margin-top: 56px; }

/* 英語対応の帯（白カード＋アイコン） */
.je-lang {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 48px;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--tc-light-line);
}
.je-lang-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--tc-lavender-soft);
  color: var(--tc-purple-deep);
}
.je-lang-ico svg { width: 22px; height: 22px; }
.je-lang-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--tc-light-ink);
  margin-bottom: 6px;
}
.je-lang-desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--tc-light-ink-2);
}

/* ==========================================================================
   S4 CASE — ダーク面に白カード（TOP / SNS の Results と同じ面構成）
   ========================================================================== */
.je-case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 44px;
}
.je-case-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--home-ink-2);
}
.je-case-text p + p { margin-top: 18px; }
.je-case-link {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 700;
  color: var(--home-accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(195, 180, 255, 0.5);
  padding-bottom: 2px;
  transition: opacity 0.25s;
}
.je-case-link:hover { opacity: 0.75; }
.je-case-media {
  display: grid;
  gap: 14px;
}
.je-case-figure { margin: 0; }
.je-case-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.je-case-figure--wide img { background: #fff; }
.je-case-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--home-ink-3);
}

.je-timeline {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.je-tl-item {
  padding: 24px 24px 26px;
  border-radius: var(--radius-md);
  background: #fff;
}
.je-tl-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--tc-ink-navy);
  margin-bottom: 8px;
}
.je-tl-desc {
  font-size: 13px;
  line-height: 1.85;
  color: var(--tc-light-ink-2);
}

/* ==========================================================================
   タブレット（〜1000px）
   ========================================================================== */
@media (max-width: 1000px) {
  .je-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 18px; margin-top: 48px; }
  .je-chain::before,
  .je-chain::after,
  .je-chain-step + .je-chain-step::before { display: none; }
  .je-why-cards { gap: 28px; }
  .je-case-intro { grid-template-columns: 1fr; gap: 28px; }
  .je-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   スマホ（〜600px）: 縦積み専用レイアウト
   ========================================================================== */
@media (max-width: 600px) {
  .je-band { margin-top: 36px; font-size: 16px; padding-left: 18px; }

  .je-partner {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
    padding: 22px 20px;
    border-radius: var(--radius-md);
  }
  .je-partner-logo { height: 92px; }
  .je-partner-logo img { width: 128px; }
  .je-partner-title { font-size: 17px; }
  .je-partner-desc { font-size: 13.5px; }
  .body-home .je-trust .sns-results-highlight--light { margin-top: 18px; }

  .je-why-cards { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
  .je-why-card { padding-top: 18px; }

  /* チェーン: 左に縦のグラデーションラインを通したタイムライン型 */
  .je-chain {
    --je-chain-gap: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--je-chain-gap);
    margin-top: 32px;
    padding-left: 58px;
  }
  .je-chain-step {
    margin-top: 0;
    padding: 18px 16px 16px;
    border-radius: var(--radius-sm);
    text-align: left;
  }
  .je-chain-num { top: 14px; left: -58px; transform: none; width: 42px; height: 42px; font-size: 14px; }
  .je-chain-step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: -38.5px;
    top: 56px;
    bottom: calc(-1 * (var(--je-chain-gap) + 14px));
    width: 3px;
    border-radius: 2px;
    background: var(--tc-grad);
  }
  .je-chain-step + .je-chain-step::before {
    display: block;
    top: calc(-1 * (var(--je-chain-gap) / 2) - 6px);
    left: calc(50% - 6px);
    transform: rotate(90deg);
  }
  .je-chain-title { font-size: 15px; }
  .je-chain-desc { font-size: 12.5px; }

  .je-menu { margin-top: 36px; }
  .je-lang { margin-top: 30px; padding: 18px 16px; gap: 14px; border-radius: var(--radius-sm); }
  .je-lang-title { font-size: 15px; }
  .je-lang-desc { font-size: 13px; }

  .je-case-intro { margin-top: 28px; gap: 22px; }
  .je-case-text p { font-size: 14px; line-height: 1.9; }
  .je-timeline { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .je-tl-item { padding: 18px 18px 20px; border-radius: var(--radius-sm); }
  .je-tl-title { font-size: 15px; }
}
