/* ============================================================
   Global（海外・クロスボーダー対応）セクション
   /global/・/global/{国}/ と、トップページの導線（.gl-top）
   テーマの rem は画面幅で伸縮するため、ここでは px で指定する。
   ただしページ先頭の余白だけは、rem で伸縮する固定ヘッダーに合わせて rem で取る。
   ============================================================ */

.gl,
.gl-top {
  --gl-ink: #1d3547;      /* 和文見出し */
  --gl-text: #3a3939;     /* 本文（既存 .c-title と同じ） */
  --gl-sub: #6c7e8c;      /* 補助テキスト */
  --gl-blue: #2690cf;     /* 既存のアクセント */
  --gl-mid: #0a6eb7;
  --gl-deep: #004272;     /* 英字見出し・濃い青 */
  --gl-line: #dde8ef;
  --gl-tint: #f4f8fb;
  --gl-latin: "Cormorant Garamond", "Times New Roman", serif;
  --gl-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gl-gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.gl {
  font-family: var(--gl-gothic);
  font-size: 15px;
  line-height: 2;
  color: var(--gl-text);
  letter-spacing: 0.04em;
}

/* リセットは :where() で詳細度を0にし、下の各部品の指定が必ず勝つようにする */
:where(.gl) :where(p, ul, ol, dl, dd, figure, blockquote, h1, h2, h3) {
  margin: 0;
}

:where(.gl) :where(ul, ol) {
  padding: 0;
  list-style: none;
}

:where(.gl) a {
  color: inherit;
  text-decoration: none;
}

/* Cormorant Garamond の数字は既定で小文字風（01 が "oɪ" に見える）なので揃える */
.gl-service__no,
.gl-step__no,
.gl-practice__no {
  font-variant-numeric: lining-nums;
}

.gl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gl-wrap {
  max-width: 1040px;
  padding: 0 20px;
  margin: 0 auto;
}

.gl-wrap--narrow {
  max-width: 800px;
}

@media (min-width: 768px) {
  .gl-wrap {
    padding: 0 40px;
  }
}

/* ---------- ページ上部 ---------- */

.gl-hero {
  position: relative;
  /* 固定ヘッダーの白帯（SP 5.5rem / PC 14rem）の直下から始める */
  margin-top: 5.5rem;
  padding: 44px 0 52px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--gl-mid) 0%, #065d9c 55%, var(--gl-deep) 100%);
}

/* 右側の円（装飾） */
.gl-hero::before,
.gl-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.gl-hero::before {
  top: -120px;
  right: -90px;
  width: 300px;
  height: 300px;
}

.gl-hero::after {
  right: 30px;
  bottom: -110px;
  width: 190px;
  height: 190px;
}

@media (min-width: 768px) {
  .gl-hero {
    margin-top: 14rem;
    padding: 64px 0 76px;
  }

  .gl-hero::before {
    top: -150px;
    right: -60px;
    width: 400px;
    height: 400px;
  }

  .gl-hero::after {
    right: 90px;
    bottom: -120px;
    width: 250px;
    height: 250px;
  }
}

.gl-hero .gl-wrap {
  position: relative;
  z-index: 1;
}

.gl-hero__crumbs {
  font-family: var(--gl-latin);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.8);
}

.gl-hero__crumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.gl-hero__sep {
  margin: 0 0.6em;
}

.gl-hero__title {
  margin-top: 22px;
  font-weight: 400;
}

.gl-hero__en {
  display: block;
  font-family: var(--gl-latin);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.gl-hero__ja {
  display: block;
  margin-top: 10px;
  font-family: var(--gl-mincho);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.3em;
}

.gl-hero__lead {
  max-width: 600px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 2;
}

@media (min-width: 768px) {
  .gl-hero__en {
    font-size: 64px;
  }

  .gl-hero__ja {
    font-size: 15px;
  }

  .gl-hero__lead {
    margin-top: 30px;
    font-size: 15px;
  }
}

/* ---------- セクション共通 ---------- */

.gl-sec {
  padding: 64px 0;
  background: #fff;
}

.gl-sec--tint {
  background: var(--gl-tint);
}

@media (min-width: 768px) {
  .gl-sec {
    padding: 96px 0;
  }
}

/* 見出し：英語を大きく、日本語を小さく添える（既存の Lawyers／弁護士紹介 と同じ組み方） */
.gl-heading {
  margin-bottom: 32px;
  font-weight: 400;
}

.gl-heading__en {
  display: block;
  font-family: var(--gl-latin);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gl-deep);
  letter-spacing: 0.05em;
}

.gl-heading__ja {
  display: flex;
  align-items: center;
  margin-top: 8px;
  font-family: var(--gl-mincho);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gl-blue);
  letter-spacing: 0.2em;
}

.gl-heading__ja::before {
  display: block;
  flex: none;
  width: 22px;
  height: 1px;
  margin-right: 12px;
  content: "";
  background: currentColor;
}

@media (min-width: 768px) {
  .gl-heading {
    margin-bottom: 44px;
  }

  .gl-heading__en {
    font-size: 44px;
  }
}

.gl-sec__lead {
  margin-bottom: 32px;
}

.gl-prose > p + p,
.gl-prose > p + .gl-quote,
.gl-prose > .gl-quote + p {
  margin-top: 20px;
}

.gl-quote {
  padding: 18px 22px;
  font-family: var(--gl-mincho);
  font-size: 15px;
  line-height: 1.9;
  color: var(--gl-deep);
  background: #eaf3fa;
  border-left: 3px solid var(--gl-blue);
}

@media (min-width: 768px) {
  .gl-quote {
    padding: 22px 28px;
    font-size: 16px;
  }
}

.gl-note {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--gl-sub);
}

/* ---------- What We Do ---------- */

.gl-services {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .gl-services {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.gl-service {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--gl-line);
}

.gl-service__no {
  font-family: var(--gl-latin);
  font-size: 15px;
  line-height: 1;
  color: var(--gl-blue);
  letter-spacing: 0.1em;
}

.gl-service__title {
  padding-bottom: 16px;
  margin-top: 14px;
  font-family: var(--gl-mincho);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--gl-ink);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gl-line);
}

.gl-service__text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- Countries & Regions ---------- */

.gl-countries {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .gl-countries {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.gl-country {
  position: relative;
  display: block;
  height: 100%;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--gl-line);
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.gl-country:hover {
  border-color: var(--gl-blue);
  box-shadow: 0 8px 24px rgba(0, 66, 114, 0.08);
}

.gl-country__name {
  padding-bottom: 18px;
  font-weight: 400;
  border-bottom: 1px solid var(--gl-line);
}

.gl-country__en {
  display: block;
  font-family: var(--gl-latin);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gl-deep);
  letter-spacing: 0.05em;
}

.gl-country__ja {
  display: block;
  margin-top: 6px;
  font-family: var(--gl-mincho);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gl-blue);
  letter-spacing: 0.2em;
}

.gl-country__text {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
}

.gl-country__more {
  display: inline-flex;
  gap: 10px;
  margin-top: 20px;
  font-family: var(--gl-latin);
  font-size: 15px;
  line-height: 1;
  color: var(--gl-blue);
  letter-spacing: 0.12em;
  transition: gap 0.2s;
}

a.gl-country:hover .gl-country__more {
  gap: 16px;
}

/* 準備中：押せない。色を抑える */
.gl-country.is-preparing {
  background: #fbfdfe;
}

.gl-country.is-preparing .gl-country__en,
.gl-country.is-preparing .gl-country__ja,
.gl-country.is-preparing .gl-country__text,
.gl-country.is-preparing .gl-country__more {
  color: #93a2ae;
}

.gl-country__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--gl-sub);
  letter-spacing: 0.1em;
  background: var(--gl-tint);
  border: 1px solid var(--gl-line);
}

/* ---------- Our Role（縦の流れ） ---------- */

.gl-steps {
  position: relative;
}

.gl-step {
  position: relative;
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
}

.gl-step:last-child {
  padding-bottom: 0;
}

/* 番号どうしをつなぐ縦線 */
.gl-step:not(:last-child)::before {
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 19px;
  width: 1px;
  content: "";
  background: #c6d8e4;
}

.gl-step__no {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--gl-latin);
  font-size: 17px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.04em;
  background: var(--gl-blue);
  border-radius: 50%;
}

.gl-step__body {
  padding-top: 5px;
}

.gl-step__title {
  font-family: var(--gl-mincho);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--gl-ink);
  letter-spacing: 0.06em;
}

.gl-step__text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.9;
  color: #595757;
}

@media (min-width: 768px) {
  .gl-step {
    gap: 32px;
    padding-bottom: 36px;
  }

  .gl-step__title {
    font-size: 17px;
  }
}

/* ---------- 連携弁護士カード ---------- */

.gl-counsel {
  background: #fff;
  border: 1px solid var(--gl-line);
}

.gl-counsel + .gl-counsel {
  margin-top: 32px;
}

.gl-counsel__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  color: #fff;
  background: linear-gradient(120deg, var(--gl-mid) 0%, var(--gl-deep) 100%);
}

.gl-counsel__name {
  font-family: var(--gl-latin);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.gl-counsel__kana {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  opacity: 0.85;
}

.gl-counsel__position {
  font-size: 13px;
  line-height: 1.6;
}

.gl-counsel__location {
  font-family: var(--gl-latin);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .gl-counsel__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 32px 36px;
  }

  .gl-counsel__name {
    font-size: 36px;
  }

  .gl-counsel__meta {
    text-align: right;
  }
}

.gl-counsel__body {
  padding: 26px 24px 0;
}

.gl-counsel__body.has-photo {
  display: grid;
  gap: 24px;
}

.gl-counsel__photo {
  width: 160px;
}

.gl-counsel__photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .gl-counsel__body {
    padding: 36px 36px 0;
  }

  .gl-counsel__body.has-photo {
    grid-template-columns: 200px 1fr;
    gap: 36px;
    align-items: start;
  }

  .gl-counsel__photo {
    width: 100%;
  }
}

.gl-counsel__bio {
  font-size: 14px;
  line-height: 2;
}

.gl-counsel__rows {
  margin-top: 24px;
  border-top: 1px solid var(--gl-line);
}

.gl-counsel__row {
  padding: 14px 0;
  border-bottom: 1px solid var(--gl-line);
}

.gl-counsel__row dt {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gl-blue);
  letter-spacing: 0.12em;
}

.gl-counsel__row dd {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .gl-counsel__row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .gl-counsel__row dd {
    margin-top: 0;
  }
}

.gl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gl-tags li {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--gl-deep);
  letter-spacing: 0.06em;
  background: #eef5fa;
  border: 1px solid #cfe1ee;
}

.gl-achievements li {
  position: relative;
  padding-left: 1.2em;
}

.gl-achievements li + li {
  margin-top: 8px;
}

.gl-achievements li::before {
  position: absolute;
  top: 0.9em;
  left: 0.2em;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--gl-blue);
  border-radius: 50%;
}

.gl-extlink {
  display: inline-block;
  padding-bottom: 4px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gl-deep);
  border-bottom: 1px solid #c6d8e4;
}

.gl-extlink [aria-hidden] {
  margin-left: 8px;
}

.gl-extlink:hover {
  color: var(--gl-blue);
  border-bottom-color: var(--gl-blue);
}

.gl-counsel__note {
  padding: 14px 18px;
  margin: 26px 24px 26px;
  background: var(--gl-tint);
  border-left: 2px solid #c6d8e4;
}

@media (min-width: 768px) {
  .gl-counsel__note {
    margin: 30px 36px 36px;
  }
}

/* ---------- Practice Areas ---------- */

.gl-practice + .gl-practice {
  margin-top: 32px;
}

.gl-practice__title {
  padding-left: 12px;
  margin-bottom: 14px;
  font-family: var(--gl-mincho);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gl-ink);
  letter-spacing: 0.14em;
  border-left: 3px solid var(--gl-blue);
}

/* 1px の隙間を罫線に見せる。端数のマスは地色（薄いグレー）が見える */
.gl-practice__list {
  display: grid;
  gap: 1px;
  background: #e2e9ef;
  border: 1px solid #e2e9ef;
}

.gl-practice__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  background: #fff;
}

.gl-practice__no {
  flex: none;
  font-family: var(--gl-latin);
  font-size: 15px;
  line-height: 1;
  color: var(--gl-blue);
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .gl-practice__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .gl-practice__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .gl-practice__list li {
    padding: 16px 20px;
  }
}

/* ---------- 前後のページへ ---------- */

.gl-pager {
  padding: 36px 0 48px;
  background: #fff;
}

.gl-pager__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
}

.gl-pager__link {
  padding-bottom: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gl-deep);
  border-bottom: 1px solid var(--gl-line);
}

.gl-pager__link:hover {
  color: var(--gl-blue);
  border-bottom-color: var(--gl-blue);
}

/* ---------- お問い合わせ ---------- */

.gl-contact {
  padding: 64px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(120deg, var(--gl-mid) 0%, var(--gl-deep) 100%);
}

@media (min-width: 768px) {
  .gl-contact {
    padding: 88px 0;
  }
}

.gl-contact__title {
  font-weight: 400;
}

.gl-contact__en {
  display: block;
  font-family: var(--gl-latin);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.gl-contact__ja {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.24em;
}

.gl-contact__text {
  margin-top: 28px;
  font-size: 14px;
  line-height: 2;
}

.gl-contact__text span {
  display: inline-block;
}

.gl-contact__button {
  display: inline-flex;
  gap: 12px;
  align-items: baseline;
  padding: 16px 34px;
  margin-top: 30px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  letter-spacing: 0.14em;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: background 0.2s, color 0.2s;
}

.gl-contact__button:hover {
  color: var(--gl-deep);
  background: #fff;
}

.gl-contact__button-en {
  font-family: var(--gl-latin);
  font-size: 16px;
  letter-spacing: 0.1em;
}

/* ============================================================
   トップページの導線（弁護士紹介と連載コラムの間）
   2026-10：坂本先生の配色案「E 紺地＋地球」に変更。
   スマホは案どおりの縦長カード、PCは同じ要素を横長の帯に並べる。
   ============================================================ */

.gl-top {
  --gl-navy: #1e324d;       /* 配色案の紺地 */
  --gl-navy-hover: #243c5c;
  --gl-globe: #5f7fa3;      /* 地球の線画 */
  --gl-globe-hover: #7d9cc2;
  --gl-on-navy: #f4f8fb;    /* 紺地の上の文字 */
  --gl-on-navy-sub: #9ec3ea;
  padding: 0 20px;
  margin: 40px auto 0;
}

/* 横幅は直下の連載コラム一覧（.rensai-index）と揃える */
@media (min-width: 768px) {
  .gl-top {
    max-width: 1120px;
    padding: 0 24px;
    margin-top: 80px;
  }
}

.gl-top__link {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 52px 28px 64px;
  overflow: hidden;
  font-family: var(--gl-mincho);
  color: var(--gl-on-navy);
  text-decoration: none;
  background: var(--gl-navy);
  transition: background-color 0.3s;
}

.gl-top__link:hover {
  background: var(--gl-navy-hover);
}

.gl-top__link:focus-visible {
  outline: 2px solid var(--gl-blue);
  outline-offset: 3px;
}

/* 地球の線画（装飾）。文字の下に敷き、右下にはみ出させて切る */
.gl-top__globe {
  position: absolute;
  right: -14%;
  bottom: -18%;
  width: 74%;
  max-width: 420px;
  aspect-ratio: 1;
  color: var(--gl-globe);
  pointer-events: none;
  transition: color 0.3s;
}

.gl-top__globe svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 拡大縮小しても線の太さを保つ */
.gl-top__globe svg * {
  vector-effect: non-scaling-stroke;
}

.gl-top__link:hover .gl-top__globe {
  color: var(--gl-globe-hover);
}

.gl-top__title,
.gl-top__text,
.gl-top__more {
  position: relative;
}

.gl-top__title {
  margin: 0;
  font-weight: 400;
}

.gl-top__en {
  display: block;
  font-family: var(--gl-latin);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--gl-on-navy);
  letter-spacing: 0.04em;
}

.gl-top__ja {
  display: block;
  margin-top: 12px;
  font-family: var(--gl-mincho);
  font-size: 13px;
  line-height: 1.6;
  color: var(--gl-on-navy-sub);
  letter-spacing: 0.3em;
}

.gl-top__text {
  margin: 0;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.08em;
}

.gl-top__more {
  display: inline-flex;
  gap: 18px;
  margin-top: 4px;
  font-family: var(--gl-latin);
  font-size: 18px;
  line-height: 1;
  color: var(--gl-on-navy);
  letter-spacing: 0.14em;
  white-space: nowrap;
  transition: gap 0.2s;
}

.gl-top__link:hover .gl-top__more {
  gap: 24px;
}

/* PC：見出し｜本文｜View の横長の帯。地球は右端から上半分だけのぞかせる */
@media (min-width: 768px) {
  .gl-top__link {
    grid-template-columns: 240px 1fr auto;
    gap: 40px;
    align-items: center;
    padding: 44px 48px;
  }

  .gl-top__globe {
    right: -70px;
    bottom: -170px;
    width: 340px;
    max-width: none;
  }

  .gl-top__en {
    font-size: 46px;
  }

  .gl-top__text {
    font-size: 15px;
  }

  .gl-top__more {
    margin-top: 0;
  }
}
