/* =========================================================================
   SQOOL 2026 — main.css
   モバイルファースト。ブレークポイントは 640 / 900 / 1200px の 3 つだけ。
   固定幅・固定高さを使わない（6言語で文字数が 2〜3 倍になっても崩れないため）。
   ========================================================================= */

/* --- 1. トークン ------------------------------------------------------- */
:root {
  --ink:        #17242e;   /* 15.8:1 */
  --ink-2:      #4a5b65;   /*  7.1:1 */
  --ink-3:      #5d6f79;   /*  5.2:1 AA */
  --muted:      #9aa8af;   /* 2.9:1 — プレースホルダ専用。本文に使わない */

  --navy:       #395e7d;   /*  6.8:1 AA */
  --navy-dark:  #2b4a63;
  --mint-deep:  #1f8368;   /*  4.7:1 AA — ミントの文字用派生色 */
  --mint:       #7dc7ac;   /*  1.97:1 — 面・下線・アイコン専用。文字にしない */
  --mint-pale:  #d9f0e5;
  --forest:     #0f342a;   /* ファーストビューの地色。ミントを深く落とした色 */
  --yellow:     #fff462;   /*  1.14:1 — 面専用。必ず黒文字を載せる */

  --bg:         #f4f7f6;
  --surface:    #ffffff;
  --surface-2:  #eef2f0;
  --line:       #dde5e2;
  --line-2:     #e4eae7;

  --font:  "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut:      20px;   /* 左右の余白。900px 以上で 40px */
  --sec:      48px;   /* セクション間の余白。900px 以上で 72px */
  --maxw:     1440px;

  --tap:      44px;   /* タップ領域の最小 */
}

@media (min-width: 900px) {
  :root { --gut: 40px; --sec: 72px; }
}

/* --- 2. リセットと下地 -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;      /* 長い英語・ベトナム語で横スクロールさせない */
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--mint-deep); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.4; text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sq-mono {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
}

.sq-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sq-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px;
}
.sq-skip:focus { left: 0; }

/* --- 3. レイアウト ------------------------------------------------------ */
.sq-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.sq-pad  { padding-inline: var(--gut); }
.sq-sec  { padding-top: var(--sec); }

/* 汎用グリッド。列数はブレークポイントで変える */
.sq-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sq-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .sq-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .sq-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px){ .sq-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --- 4. ヘッダー -------------------------------------------------------- */
.sq-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.sq-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
@media (min-width: 900px) { .sq-header__bar { min-height: 78px; } }

.sq-logo { display: flex; align-items: center; flex-shrink: 0; }
.sq-logo a { display: flex; align-items: center; }
/* WordPress のカスタムロゴは <img class="custom-logo"> を自前の <a> で包んで出力する */
/* ロゴは会社の顔なので、ヘッダーの中で最も目に入る大きさにしている */
.sq-logo img, .sq-logo .custom-logo { height: 30px; width: auto; max-width: none; }
@media (min-width: 900px) { .sq-logo img, .sq-logo .custom-logo { height: 40px; } }

/* ロゴの右のキャッチコピー。狭い画面では畳む（ロゴとメニューが優先）。 */
.sq-tagline { display: none; }
@media (min-width: 1024px) {
  .sq-tagline {
    display: flex; flex-direction: column; gap: 1px;
    padding-left: 14px; margin-right: auto;
    border-left: 2px solid var(--mint);
    line-height: 1.35;
  }
  .sq-tagline__en {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
    font-weight: 700; color: var(--ink);
  }
  .sq-tagline__ja { font-size: 11px; color: var(--ink-3); }
}

.sq-nav { display: none; }
@media (min-width: 900px) {
  .sq-nav { display: flex; align-items: center; }
  .sq-nav a {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; font-weight: 500; color: var(--ink-3);
    padding-block: 6px; border-bottom: 2px solid transparent;
  }
  .sq-nav a:hover,
  .sq-nav .current-menu-item > a { color: var(--ink); border-bottom-color: var(--mint); font-weight: 700; }
}

.sq-header__right { display: flex; align-items: center; gap: 10px; }

.sq-btn-contact {
  display: none;
}
@media (min-width: 900px) {
  .sq-btn-contact {
    display: inline-flex; align-items: center; min-height: var(--tap);
    padding: 0 20px; background: var(--navy); color: #fff;
    font-size: 12px; font-weight: 700;
  }
  .sq-btn-contact:hover { background: var(--navy-dark); color: #fff; }
}

/* 言語切替 */
.sq-lang { position: relative; }
.sq-lang__btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: var(--tap); padding-inline: 8px;
  background: none; border: 0; cursor: pointer; color: var(--ink-3);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.sq-lang__list {
  display: none; position: absolute; right: 0; top: 100%;
  background: var(--surface); border: 1px solid var(--line); min-width: 168px; padding: 6px 0;
  box-shadow: 0 10px 26px rgba(23,36,46,.12);
}
.sq-lang[data-open="true"] .sq-lang__list { display: block; }
.sq-lang__list a {
  display: flex; align-items: center; min-height: var(--tap);
  padding-inline: 16px; font-size: 13px; color: var(--ink-2);
}
.sq-lang__list a:hover { background: var(--surface-2); color: var(--ink); }
.sq-lang__list [aria-current="true"] { font-weight: 700; color: var(--ink); }

/* サイト内検索。ヘッダーではボタンを押したときだけ入力欄を出す。
   常時入力欄を置くとナビが窮屈になり、多言語で語数が伸びたときに破綻するため。 */
.sq-search { position: relative; }
.sq-search__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  background: none; border: 0; cursor: pointer; color: var(--ink-3);
}
.sq-search__btn:hover, .sq-search[data-open="true"] .sq-search__btn { color: var(--ink); }
.sq-search__panel {
  display: none; position: absolute; right: 0; top: 100%;
  background: var(--surface); border: 1px solid var(--line); padding: 10px;
  box-shadow: 0 10px 26px rgba(23,36,46,.12);
}
.sq-search[data-open="true"] .sq-search__panel { display: block; }
.sq-search__panel .sq-searchform { width: min(78vw, 320px); }

.sq-searchform { display: flex; align-items: stretch; gap: 0; }
.sq-searchform input[type="search"] {
  flex: 1 1 auto; min-width: 0; min-height: var(--tap);
  padding: 0 12px; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-right: 0; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.sq-searchform input[type="search"]:focus { outline: 2px solid var(--mint); outline-offset: -2px; }
.sq-searchform button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); width: var(--tap); flex: 0 0 auto;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
}
.sq-searchform button:hover { background: var(--navy-dark); }

.sq-drawer__search { margin-top: 16px; }
.sq-drawer__search .sq-searchform input[type="search"] { font-size: 16px; } /* iOS の自動ズーム対策 */

/* ハンバーガー */
.sq-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap);
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
@media (min-width: 900px) { .sq-burger { display: none; } }
.sq-burger span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .18s ease, background .18s ease; }
.sq-burger span::before, .sq-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .18s ease;
}
.sq-burger span::before { top: -6px; }
.sq-burger span::after  { top: 6px; }
.sq-burger[aria-expanded="true"] span { background: transparent; }
.sq-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.sq-burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* モバイルのドロワー */
.sq-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-bottom: 16px;
}
.sq-drawer[data-open="true"] { display: block; }
@media (min-width: 900px) { .sq-drawer { display: none !important; } }
.sq-drawer a {
  display: flex; width: 100%; align-items: center; min-height: var(--tap);
  padding: 4px 0; font-size: 15px; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.sq-drawer .sq-drawer__cta {
  margin-top: 16px; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700; border: 0;
}

/* --- 5. ヒーロー -------------------------------------------------------- */
.sq-hero { padding-top: 20px; }
@media (min-width: 900px) { .sq-hero { padding-top: 28px; } }

.sq-hero__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
@media (min-width: 640px)  { .sq-hero__media { aspect-ratio: 16 / 8; } }
@media (min-width: 1200px) { .sq-hero__media { aspect-ratio: 16 / 6; } }
.sq-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.sq-hero__card {
  position: relative;
  background: var(--surface);
  padding: 24px 20px;
  margin-top: -28px;
  box-shadow: 0 18px 40px rgba(23,36,46,.10);
}
@media (min-width: 640px) {
  .sq-hero__card { margin-top: -60px; padding: 28px 30px; max-width: 620px; }
}
@media (min-width: 1200px) {
  .sq-hero__card { margin-top: -104px; padding: 34px 38px; max-width: 720px; }
}

.sq-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.sq-badge {
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 4px 9px;
  background: var(--yellow); color: var(--ink);      /* 13.8:1 */
}
.sq-badge--mint { background: var(--mint); color: var(--ink); }   /* 8.0:1 */
.sq-badge--navy { background: var(--navy); color: #fff; }         /* 6.8:1 */

.sq-hero__title {
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.015em;
  margin-bottom: 12px; text-wrap: balance;
}
.sq-hero__lead { color: var(--ink-2); margin-bottom: 20px; }

.sq-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: var(--tap); padding: 0 24px;
  font-size: 13px; font-weight: 700; border: 1px solid transparent;
}
.sq-btn--primary { background: var(--ink); color: #fff; }
.sq-btn--primary:hover { background: var(--navy); color: #fff; }
.sq-btn--ghost { border-color: #c3d1cc; color: var(--ink); background: var(--surface); }
.sq-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.sq-btn--yellow { background: var(--yellow); color: var(--ink); }
.sq-btn--yellow:hover { background: #ffe93a; color: var(--ink); }

/* --- 6. 数字の帯 -------------------------------------------------------- */
.sq-stats {
  margin-top: var(--sec);
  display: grid; gap: 1px; background: var(--line);
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .sq-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sq-stat { background: var(--bg); padding: 18px var(--gut); display: flex; flex-direction: column; gap: 4px; }
.sq-stat__k { color: var(--ink-3); }
.sq-stat__v { font-family: var(--mono); font-size: clamp(20px, 5vw, 26px); font-weight: 700; color: var(--navy); }

/* --- 7. セクション見出し ------------------------------------------------ */
.sq-sec__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 16px; margin-bottom: 18px;
}
.sq-sec__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.sq-sec__en  { font-size: clamp(24px, 6vw, 34px); font-weight: 900; letter-spacing: -0.01em; line-height: 1.1; }
.sq-sec__ja  { font-size: 13px; color: var(--ink-3); }
.sq-sec__more { color: var(--mint-deep); font-size: 11px; min-height: var(--tap); display: inline-flex; align-items: center; }

/* --- 8. フィルター（実績のカテゴリー切替） ------------------------------ */
.sq-filter {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.sq-filter a {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0 15px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; background: var(--surface);
  border: 1px solid #cbd8d3; color: var(--ink-2);
}
.sq-filter a:hover { border-color: var(--ink); color: var(--ink); }
.sq-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* --- 9. カード ---------------------------------------------------------- */
.sq-card { display: flex; flex-direction: column; background: var(--surface); height: 100%; }
.sq-card__body { display: flex; flex-direction: column; gap: 6px; padding: 15px 18px 20px; }
.sq-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.sq-card__cat  { color: var(--mint-deep); font-weight: 700; }
.sq-card__date { color: var(--ink-3); }
.sq-card__title { font-size: 16px; font-weight: 700; line-height: 1.45; }
@media (min-width: 900px) { .sq-card__title { font-size: 17px; } }
.sq-card__desc { font-size: 12px; line-height: 1.75; color: var(--ink-3); }
.sq-card__title--news { font-weight: 400; font-size: 14px; line-height: 1.7; }
.sq-card a.sq-card__link { color: inherit; display: block; }
.sq-card a.sq-card__link:hover .sq-card__title { color: var(--mint-deep); }

.sq-thumb { overflow: hidden; background: var(--surface-2); }
.sq-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sq-thumb--16x10 { aspect-ratio: 16 / 10; }
.sq-thumb--16x9  { aspect-ratio: 16 / 9; }
.sq-thumb--empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border-bottom: 1px dashed #c3d1cc; color: var(--muted);
}

/* --- 10. サービスの行リスト --------------------------------------------- */
.sq-rows { background: var(--surface); }
.sq-row {
  color: var(--ink);          /* <a> なので、既定のリンク色を継承させない */
  display: grid; gap: 6px 20px; align-items: start;
  grid-template-columns: minmax(0, 1fr) 24px;
  grid-template-areas: "num arrow" "name arrow" "desc desc";
  padding: 20px;
  border-bottom: 1px solid var(--line-2);
}
.sq-row:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .sq-row {
    grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr) 24px;
    grid-template-areas: "num name desc arrow";
    align-items: center;
    padding: 24px 28px;
    gap: 26px;
  }
}
.sq-row__num  { grid-area: num;  color: var(--muted); font-weight: 500; }
.sq-row__name { grid-area: name; display: flex; flex-direction: column; gap: 3px; }
.sq-row__name b { font-size: clamp(18px, 4.5vw, 21px); font-weight: 700; color: var(--ink); }
.sq-row:hover .sq-row__name b { color: var(--mint-deep); }
.sq-row:hover .sq-row__arrow { color: var(--navy); }
.sq-row__name .sq-mono { color: var(--mint-deep); font-weight: 700; font-size: 9px; }
.sq-row__desc { grid-area: desc; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.sq-row__arrow { grid-area: arrow; align-self: center; color: var(--mint); }

/* --- 11. お知らせのリスト（一覧ページ用） ------------------------------- */
.sq-list { background: var(--surface); }
.sq-list__item {
  display: grid; gap: 4px 20px;
  grid-template-columns: minmax(0, 1fr);
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.sq-list__item:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .sq-list__item {
    /* カテゴリー未設定の記事があるため、バッジ列は auto でつぶす。
       固定幅にすると空の列が空白として残る。 */
    grid-template-columns: 108px auto minmax(0, 1fr);
    align-items: baseline; padding: 18px 26px;
  }
}
.sq-list__meta { display: flex; align-items: center; gap: 10px; }
.sq-list__date { color: var(--ink-3); }
.sq-list__cat  { justify-self: start; }
.sq-list__title { font-size: 15px; line-height: 1.7; color: var(--ink); }
.sq-list__item a:hover .sq-list__title { color: var(--mint-deep); }

/* --- 12. 会社案内の 4 枠 ------------------------------------------------ */
.sq-tiles a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--tap); padding: 20px 22px;
  background: var(--surface); border-bottom: 3px solid var(--mint); color: var(--ink);
}
.sq-tiles a:hover { border-bottom-color: var(--navy); }
.sq-tiles b { font-size: 15px; font-weight: 700; display: block; }
.sq-tiles .sq-mono { color: var(--ink-3); }

/* --- 13. 最新のお知らせバンド（ページ下部の共通帯）--------------------- */
/* 以前は採用バンド（.sq-cta）だった。採用停止に伴い最新のお知らせへ差し替え。
   .sq-cta のスタイルはブロックパターン cta-band が使うので残してある。 */
.sq-newsband { background: var(--navy); margin-top: var(--sec); color: #fff; }
.sq-newsband__inner { padding-block: 36px; }
@media (min-width: 900px) { .sq-newsband__inner { padding-block: 48px; } }
.sq-newsband__head { margin-bottom: 18px; }
.sq-newsband__label { color: var(--yellow); font-weight: 700; display: block; }
.sq-newsband__title { font-size: clamp(20px, 4.5vw, 28px); font-weight: 900; line-height: 1.2; color: #fff; }

.sq-newsband__list { display: flex; flex-direction: column; }
.sq-newsband__item {
  display: grid; gap: 4px 14px; align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 14px; color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.sq-newsband__item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .18); }
@media (min-width: 640px) {
  .sq-newsband__item { grid-template-columns: 104px 132px minmax(0, 1fr); padding-block: 16px; }
}
.sq-newsband__date { color: var(--mint); }
.sq-newsband__text { font-size: 14px; font-weight: 700; line-height: 1.6; }
.sq-newsband__item:hover .sq-newsband__text { color: var(--yellow); }
.sq-newsband__foot { margin-top: 22px; }
/* バンドで終わるページはフッターとの間に余白を入れない。
   全面の色地とフッターの間に白い帯が残って、置き忘れたように見えるため。 */
main:has(> .sq-newsband:last-child) + .sq-footer { margin-top: 0; }

/* 採用バンド（現在はブロックパターン cta-band からのみ使う）*/
.sq-cta {
  position: relative; overflow: hidden; background: var(--navy);
  margin-top: var(--sec);
}
.sq-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .30; }
.sq-cta__inner {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 36px; min-height: 200px;
}
@media (min-width: 900px) { .sq-cta__inner { padding-block: 48px; min-height: 260px; } }
.sq-cta__label { color: var(--yellow); font-weight: 700; }
.sq-cta__title { font-size: clamp(24px, 6vw, 38px); font-weight: 900; line-height: 1.2; color: #fff; }

/* --- 14. フッター ------------------------------------------------------- */
.sq-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: var(--sec); }
.sq-footer__cols {
  display: grid; gap: 28px; padding-block: 40px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .sq-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px){ .sq-footer__cols { grid-template-columns: 320px repeat(3, minmax(0, 1fr)); gap: 34px; } }
.sq-footer__col { display: flex; flex-direction: column; gap: 8px; }
.sq-footer__col > .sq-mono { color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.sq-footer__col a { font-size: 12px; color: var(--ink-3); min-height: 28px; display: inline-flex; align-items: center; }
.sq-footer__col a:hover { color: var(--ink); }
.sq-footer .sq-logo img, .sq-footer .sq-logo .custom-logo { height: 40px; }
.sq-footer__addr { font-size: 12px; line-height: 1.9; color: var(--ink-3); }
/* 住所内のメールリンクは列リンク（28px の行）扱いにしない */
.sq-footer__addr a { display: inline; min-height: 0; font-size: inherit; color: var(--ink-3); text-decoration: underline; }
.sq-footer__addr a:hover { color: var(--ink); }

.sq-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 32px;
}
.sq-footer__langs { display: flex; flex-wrap: wrap; gap: 12px; }
.sq-footer__langs a { color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.sq-footer__langs [aria-current="true"] { color: var(--ink); font-weight: 700; }
.sq-copy { color: var(--muted); }

/* --- 15. 下層ページ ----------------------------------------------------- */
.sq-page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 32px; }
@media (min-width: 900px) { .sq-page-head { padding-block: 48px; } }
.sq-page-head__ja { font-size: clamp(24px, 6vw, 36px); font-weight: 900; line-height: 1.3; }
.sq-page-head__en { color: var(--mint-deep); font-weight: 700; margin-bottom: 8px; display: block; }

.sq-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 14px; font-size: 12px; color: var(--ink-3); }
.sq-breadcrumb a { color: var(--ink-3); }
.sq-breadcrumb a:hover { color: var(--ink); }

.sq-entry { background: var(--surface); padding: 24px 20px; }
@media (min-width: 900px) { .sq-entry { padding: 44px 56px; } }
.sq-entry > * + * { margin-top: 1.4em; }
.sq-entry h2 { font-size: clamp(20px, 5vw, 26px); margin-top: 2em; padding-bottom: .4em; border-bottom: 2px solid var(--mint); }
.sq-entry h3 { font-size: clamp(17px, 4.5vw, 20px); margin-top: 1.8em; }
.sq-entry img { margin-inline: auto; }
.sq-entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.sq-entry th, .sq-entry td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; font-size: 14px; }
.sq-entry th { background: var(--surface-2); white-space: nowrap; }
.sq-entry pre { overflow-x: auto; background: var(--surface-2); padding: 16px; }
.sq-entry blockquote { border-left: 3px solid var(--mint); padding-left: 16px; color: var(--ink-2); }

/* --- 16. ページャ ------------------------------------------------------- */
.sq-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-block: 32px; }
.sq-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--tap); min-height: var(--tap); padding-inline: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 13px;
}
.sq-pager .page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.sq-pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* --- 17. 動きを減らす設定への配慮 --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- 18. 印刷 ----------------------------------------------------------- */
@media print {
  .sq-header, .sq-cta, .sq-newsband, .sq-footer__langs, .sq-filter { display: none !important; }
  body { background: #fff; }
}

/* --- 19. ブロックパターン用 -------------------------------------------- */
/* patterns/*.php が使うクラス。コアブロックだけで組んでいるので
   ここのスタイルを外しても内容は壊れない（WPML の翻訳もそのまま通る）。 */

/* 画像 + テキスト */
.sq-mediatext { padding: 0; }
.sq-mediatext .wp-block-media-text__content { padding: 24px 20px; }
@media (min-width: 900px) { .sq-mediatext .wp-block-media-text__content { padding: 40px; } }
.sq-mediatext img { width: 100%; height: 100%; object-fit: cover; }

/* CTA の帯（ブロック版） */
.sq-cta-block { padding-block: 32px; }
@media (min-width: 900px) { .sq-cta-block { padding-block: 48px; } }
.sq-cta-block .sq-cta__inner { padding: 0 var(--gut); min-height: 0; }
.sq-cta-block .sq-cta__title { color: #fff; }
.sq-cta-block .wp-block-button__link { background: var(--yellow); color: var(--ink); font-weight: 700; border-radius: 0; min-height: var(--tap); display: inline-flex; align-items: center; padding: 0 28px; }
.sq-cta-block .wp-block-button__link:hover { background: #ffe93a; color: var(--ink); }

/* FAQ（details） */
.sq-faq { gap: 0; }
.sq-faq__item { background: var(--surface); border-bottom: 1px solid var(--line-2); padding: 0; }
.sq-faq__item summary {
  cursor: pointer; list-style: none; padding: 16px 20px 16px 44px; position: relative;
  font-weight: 700; font-size: 15px; min-height: var(--tap); display: flex; align-items: center;
}
.sq-faq__item summary::-webkit-details-marker { display: none; }
.sq-faq__item summary::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 11px; height: 2px;
  background: var(--mint-deep); transform: translateY(-50%);
}
.sq-faq__item summary::after {
  content: ""; position: absolute; left: 25px; top: 50%; width: 2px; height: 11px;
  background: var(--mint-deep); transform: translateY(-50%); transition: opacity .15s ease;
}
.sq-faq__item[open] summary::after { opacity: 0; }
.sq-faq__item > *:not(summary) { padding: 0 20px 18px 44px; color: var(--ink-2); font-size: 14px; }

/* 定義表 */
.sq-table { margin: 0; overflow-x: auto; }
.sq-table table { width: 100%; border-collapse: collapse; background: var(--surface); }
.sq-table th, .sq-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; font-size: 14px; vertical-align: top; }
.sq-table th { background: var(--surface-2); white-space: nowrap; width: 1%; font-weight: 700; }

/* パターン内の columns はモバイルで必ず縦に積む */
.sq-grid.wp-block-columns { display: grid; }
@media (max-width: 639px) { .sq-grid.wp-block-columns { grid-template-columns: minmax(0, 1fr); } }
.sq-grid.wp-block-columns > .wp-block-column { flex-basis: auto !important; }

/* パターン内の sq-row は front-page と同じグリッドを使う */
.sq-rows .sq-row > .sq-row__num { grid-area: num; }
.sq-rows .sq-row > .sq-row__name { grid-area: name; }
.sq-rows .sq-row > .sq-row__desc { grid-area: desc; }

/* --- 20. パターンの調整 ------------------------------------------------- */

/* 行リスト：矢印を置かない使い方（パターン版）では列を 3 つにする。
   front-page.php はリンクなので矢印あり、パターンは装飾なしで使う。 */
@media (min-width: 900px) {
  .sq-row:not(:has(.sq-row__arrow)) {
    grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr);
    grid-template-areas: "num name desc";
  }
}

/* 画像 + テキスト：画像未選択でも枠がつぶれないように */
.sq-mediatext .wp-block-media-text__media {
  min-height: 200px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 900px) { .sq-mediatext .wp-block-media-text__media { min-height: 280px; } }

/* 固定ページ本文（白地）の中では、白い面に輪郭を与えて沈まないようにする。
   トップページは地色がグレーなので枠は不要。 */
.sq-entry .sq-rows,
.sq-entry .sq-card,
.sq-entry .sq-faq,
.sq-entry .sq-stats { border: 1px solid var(--line); }
.sq-entry .sq-stats { border-block: 1px solid var(--line); }

/* 本文内に置いたパターンは、見出しの余白ルールに巻き込まれないようにする */
.sq-entry .sq-rows > *,
.sq-entry .sq-faq > * { margin-top: 0; }

/* WordPress の既定レイアウトは group の子に margin-block-start を付ける。
   grid で組んでいる帯やカードではこれが段差になるので打ち消す。 */
.sq-stats > *, .sq-rows > *, .sq-grid > *, .sq-tiles > *, .sq-faq > * { margin-block: 0; }

/* 本文（.sq-entry）の見出しスタイルが、パターンのセクション見出しに乗らないように */
.sq-entry .sq-sec__en {
  border-bottom: 0; padding-bottom: 0; margin-top: 0;
}
.sq-entry .sq-sec__head { margin-top: 0; }

/* --- 21. メニュー（wp_nav_menu の <ul>）------------------------------- */
/* ⚠ items_wrap から <ul> を外すと <li> が裸になり点が出る。必ず包むこと。 */
.sq-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; }
.sq-menu li { list-style: none; margin: 0; }

.sq-menu--drawer { flex-direction: column; align-items: stretch; gap: 0; }
.sq-menu--drawer li { display: block; }

.sq-menu--footer { flex-direction: column; align-items: flex-start; gap: 0; }
.sq-menu--footer a { font-size: 12px; color: var(--ink-3); min-height: 28px; display: inline-flex; align-items: center; }
.sq-menu--footer a:hover { color: var(--ink); }

/* --- 22. 注記（本文冒頭のお知らせ）------------------------------------- */
.sq-notice {
  background: var(--yellow); color: var(--ink);   /* 13.8:1 */
  padding: 16px 20px; margin-bottom: 28px;
  border-left: 4px solid var(--ink);
}
.sq-notice p { margin: 0; font-size: 15px; }

/* --- 23. YouTube セクション -------------------------------------------- */
/* 最初はサムネイルだけ。再生ボタンで iframe に差し替える（ファサード方式）。 */
.sq-video { background: var(--navy); margin-top: var(--sec); }
.sq-video__inner {
  display: grid; gap: 24px; padding-block: 40px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) {
  .sq-video__inner { grid-template-columns: 340px minmax(0, 1fr); gap: 44px; padding-block: 64px; }
}
.sq-video__text { display: flex; flex-direction: column; gap: 10px; }
.sq-video__label { color: var(--yellow); font-weight: 700; }
.sq-video__title { font-size: clamp(20px, 5vw, 28px); font-weight: 900; line-height: 1.35; color: #fff; }
.sq-video__lead  { font-size: 14px; line-height: 1.9; color: #d5dee6; }

.sq-video__frame { position: relative; aspect-ratio: 16 / 9; background: #0d1720; overflow: hidden; }
.sq-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sq-video__play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; background: #0d1720;
  display: flex; align-items: center; justify-content: center;
}
.sq-video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
.sq-video__play:hover img { opacity: 1; }
.sq-video__btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; background: var(--yellow); color: var(--ink);
  padding-left: 4px;   /* ▶ の視覚的な中心合わせ */
  transition: transform .18s ease;
}
.sq-video__play:hover .sq-video__btn { transform: scale(1.08); }
@media (min-width: 900px) { .sq-video__btn { width: 78px; height: 78px; } }

/* --- 24. フォーム（Contact Form 7 / 検索）------------------------------ */
/* CF7 は素の HTML を吐くだけなので、テーマ側で見た目を与える。
   プラグイン固有のクラスに依存しすぎないよう、要素セレクタを主に使う。 */

.sq-entry .wpcf7 { margin-top: 0; }
.sq-entry .wpcf7 p { margin: 0 0 20px; }

/* ラベル（CF7 は <label> ではなく <p> の中に地の文で書かれることが多い） */
.sq-entry .wpcf7 p,
.sq-entry .wpcf7 label {
  display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.9;
}

/* 入力欄 */
.sq-entry input[type="text"],
.sq-entry input[type="email"],
.sq-entry input[type="tel"],
.sq-entry input[type="url"],
.sq-entry input[type="number"],
.sq-entry input[type="date"],
.sq-entry input[type="search"],
.sq-entry select,
.sq-entry textarea {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  margin-top: 8px; padding: 12px 14px; min-height: var(--tap);
  font-family: inherit; font-size: 15px; line-height: 1.7; color: var(--ink);
  background: var(--surface); border: 1px solid #c3d1cc; border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
@media (min-width: 900px) {
  .sq-entry input[type="text"],
  .sq-entry input[type="email"],
  .sq-entry input[type="tel"],
  .sq-entry input[type="url"],
  .sq-entry select { max-width: 520px; }
}
.sq-entry textarea { min-height: 200px; resize: vertical; }

.sq-entry input:focus, .sq-entry select:focus, .sq-entry textarea:focus {
  outline: 0; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(57,94,125,.15);
}
.sq-entry ::placeholder { color: #9aa8af; }

/* select は矢印を自前で描く（appearance:none で消えるため） */
.sq-entry select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23395e7d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* チェックボックス・ラジオ */
.sq-entry .wpcf7-checkbox .wpcf7-list-item,
.sq-entry .wpcf7-radio .wpcf7-list-item { display: block; margin: 0 0 8px; }
.sq-entry .wpcf7-list-item label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 400; min-height: var(--tap); cursor: pointer;
}
.sq-entry input[type="checkbox"], .sq-entry input[type="radio"] { width: 18px; height: 18px; margin: 0; }

/* 送信ボタン */
.sq-entry input[type="submit"],
.sq-entry button[type="submit"],
.sq-entry .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-height: var(--tap); padding: 0 32px; margin-top: 8px;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: var(--ink); border: 0; border-radius: 0; cursor: pointer;
  transition: background .15s ease;
}
.sq-entry input[type="submit"]:hover,
.sq-entry .wpcf7-submit:hover { background: var(--navy); }
.sq-entry .wpcf7-submit:disabled { background: #9aa8af; cursor: not-allowed; }

/* 必須マーク（[必須] のような地の文にも効くよう、汎用の装飾を用意） */
.sq-entry .sq-required {
  display: inline-block; margin-left: 8px; padding: 2px 8px;
  font-size: 11px; font-weight: 700; color: #fff; background: var(--navy);
}

/* CF7 のメッセージ */
.sq-entry .wpcf7-response-output {
  margin: 20px 0 0 !important; padding: 14px 18px !important;
  border: 0 !important; border-left: 4px solid var(--navy) !important;
  background: var(--surface-2); font-size: 14px;
}
.sq-entry .wpcf7 form.invalid .wpcf7-response-output,
.sq-entry .wpcf7 form.failed .wpcf7-response-output { border-left-color: #d90000 !important; background: #fbdede; }
.sq-entry .wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--mint-deep) !important; background: var(--mint-pale); }
.sq-entry .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: #8a1f1f; }
.sq-entry .wpcf7-not-valid { border-color: #d90000 !important; }
.sq-entry .wpcf7-spinner { margin-left: 12px; }

/* reCAPTCHA の注記 */
.sq-entry .grecaptcha-badge { visibility: hidden; }  /* 注記文をページに出しているため */
.sq-entry .wpcf7 p:last-child { font-size: 12px; font-weight: 400; color: var(--ink-3); }

/* 検索フォーム */
.sq-entry .search-form, .search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form input[type="search"] { flex: 1 1 240px; }

/* =========================================================================
   25. ゲーム会社らしさを足す改稿（2026-08-23）
   抑えすぎだったため、以下を足している。
   ・ヒーローを全面（両端まで）に広げる ── 余白で囲うと作品が「資料」に見える
   ・開発実績のセクションだけ暗色地にする ── ゲームのアートは暗い地でこそ映える
   ・カードに動きを与える（画像の寄り・見出しの色・線の伸び）
   ・見出しを大きく、字間を締める
   ・イエローを行動色として強く使う
   多言語で崩れないよう、寸法はすべて clamp / grid のままにしてある。
   ========================================================================= */

/* --- ヒーローを全面に --------------------------------------------------- */
.sq-hero { padding: 0; max-width: none; }
.sq-hero__media { aspect-ratio: 16 / 11; }
@media (min-width: 640px)  { .sq-hero__media { aspect-ratio: 16 / 8; } }
@media (min-width: 1200px) { .sq-hero__media { aspect-ratio: 21 / 8; } }
.sq-hero__media::after {           /* 下端を沈めて、重ねたカードとつなぐ */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(23,36,46,.55), transparent);
  pointer-events: none;
}
.sq-hero__card {
  margin-inline: var(--gut); margin-top: -56px;
  border-top: 4px solid var(--yellow);
}
@media (min-width: 640px) {
  .sq-hero__card { margin-inline: var(--gut); margin-top: -96px; }
}
@media (min-width: 1200px) {
  .sq-hero__inner { max-width: var(--maxw); margin-inline: auto; }
  .sq-hero__card { margin-left: 40px; margin-top: -132px; }
}
.sq-hero__title { letter-spacing: -0.03em; }

/* --- 開発実績を暗色地に ------------------------------------------------- */
.sq-sec--dark {
  background: #101a22; color: #eef3f6;
  padding-block: var(--sec); margin-top: var(--sec);
  max-width: none;
}
.sq-sec--dark .sq-sec__en { color: #fff; }
.sq-sec--dark .sq-sec__ja { color: #8ba0ad; }
.sq-sec--dark .sq-sec__more { color: var(--yellow); }
.sq-sec--dark .sq-filter a { background: transparent; border-color: #33454f; color: #a8bcc7; }
.sq-sec--dark .sq-filter a:hover { border-color: var(--yellow); color: #fff; }
.sq-sec--dark .sq-filter a[aria-current="page"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.sq-sec--dark .sq-card { background: #17242e; }
.sq-sec--dark .sq-card__title { color: #fff; }
.sq-sec--dark .sq-card__desc { color: #91a5b1; }
.sq-sec--dark .sq-card__cat  { color: var(--yellow); }
.sq-sec--dark .sq-card__date { color: #6f838f; }
.sq-sec--dark .sq-thumb, .sq-sec--dark .sq-thumb--empty { background: #0b1319; border-color: #33454f; }
.sq-sec--dark .sq-card a.sq-card__link:hover .sq-card__title { color: var(--yellow); }

/* --- カードに動きを ----------------------------------------------------- */
.sq-card { position: relative; transition: transform .22s ease; }
.sq-card__link { overflow: hidden; }
.sq-card .sq-thumb { overflow: hidden; }
.sq-card .sq-thumb img { transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.sq-card:hover .sq-thumb img { transform: scale(1.06); }
.sq-card::after {                    /* 下端から伸びる線 */
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--yellow); transition: width .28s ease;
}
.sq-card:hover::after { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  .sq-card .sq-thumb img, .sq-card::after { transition: none; }
  .sq-card:hover .sq-thumb img { transform: none; }
}

/* --- 見出しを大きく、字間を締める --------------------------------------- */
.sq-sec__en { font-size: clamp(28px, 7vw, 46px); letter-spacing: -0.035em; }
.sq-sec__num { font-size: 12px; }

/* --- ボタンを行動色（イエロー）に --------------------------------------- */
.sq-btn--primary { background: var(--yellow); color: var(--ink); }
.sq-btn--primary:hover { background: #ffe93a; color: var(--ink); }
.sq-btn--primary svg { stroke: var(--ink); }

/* --- サービス行にも動きを ----------------------------------------------- */
.sq-row { transition: background .18s ease, padding-left .18s ease; }
@media (min-width: 900px) { .sq-row:hover { background: #f7faf9; padding-left: 36px; } }

/* =========================================================================
   26. 海外からの閲覧を主に置く調整（2026-08-23）
   ・欧文に専用のディスプレイ書体（Archivo）を当てる
     和文は Zen Kaku のまま。1つの font-family に並べると、
     欧文グリフは Archivo、和文グリフは Zen Kaku が使われる
   ・言語切替をヘッダーに常時出す（ドロップダウンに隠さない）
   ・英語が伸びても崩れないよう、見出しは字数ではなく幅で折り返す
   ========================================================================= */

:root {
  --font-display: "Archivo", "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
}

/* 欧文が主役になる箇所に当てる */
.sq-sec__en,
.sq-hero__title,
.sq-video__title,
.sq-page-head__ja,
.sq-cta__title,
.sq-stat__v {
  font-family: var(--font-display);
  font-feature-settings: "palt" 1;   /* 和文が混じったときの詰め */
}
.sq-sec__en { font-weight: 800; }
.sq-hero__title { font-weight: 800; }

/* --- 言語切替をヘッダーに常時表示 --------------------------------------- */
/* ドロップダウンは「日本語の人が英語へ移る」導線としては弱い。
   海外からの訪問者が自分の言語を一目で見つけられるよう、コードを並べて出す。 */
.sq-langbar { display: none; }
@media (min-width: 1024px) {
  .sq-lang { display: none; }            /* ドロップダウンは畳む */
  .sq-langbar {
    display: flex; align-items: center; gap: 2px;
    padding-right: 14px; margin-right: 4px; border-right: 1px solid var(--line);
  }
  .sq-langbar a {
    font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-3); padding: 6px 8px; min-height: 32px;
    display: inline-flex; align-items: center; border-bottom: 2px solid transparent;
  }
  .sq-langbar a:hover { color: var(--ink); }
  .sq-langbar a[aria-current="true"] {
    color: var(--ink); font-weight: 700; border-bottom-color: var(--yellow);
  }
}

/* --- 英語が伸びても崩れないように --------------------------------------- */
.sq-sec__en, .sq-hero__title, .sq-cta__title, .sq-video__title { text-wrap: balance; }
.sq-nav a { white-space: nowrap; }
.sq-nav { flex-wrap: wrap; row-gap: 4px; }
.sq-card__title, .sq-list__title { hyphens: auto; }

/* --- 27. ファーストビュー（動画）--------------------------------------- */
/* 枠の大きさは旧サイトに合わせている（1920×700 = 比 2.74）。
   高さを固定せず比で持たせているので、狭い画面でも破綻しない。
   地色は黒ではなくロゴのミントを深く落とした緑。黒一色だと
   画面の最上部がぽっかり抜けて見えたため（2026-08-24）。 */
.sq-hero-video {
  position: relative; isolation: isolate;
  background:
    radial-gradient(120% 120% at 50% 0%, #1a5142 0%, var(--forest) 55%, #08201a 100%);
  padding-bottom: 24px;
}
@media (min-width: 900px) { .sq-hero-video { padding-bottom: 32px; } }

/* 地の上に細い斜線を敷いて、平らな一色にしない。
   ゲームの UI に寄せた質感だが、映像の邪魔にならない濃さに留めている。 */
.sq-hero-video::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg,
    rgba(125, 199, 172, .07) 0 1px, transparent 1px 10px);
}
/* 下端の一本線。ミント → イエローでブランドの 2 色をつなぐ。 */
.sq-hero-video::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint-pale) 42%, var(--yellow) 100%);
}

.sq-hero-video__media {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 10;                 /* 狭い画面では縦を確保 */
  max-height: 78vh;
}
@media (min-width: 640px)  { .sq-hero-video__media { aspect-ratio: 16 / 8; } }
@media (min-width: 1024px) { .sq-hero-video__media { aspect-ratio: 2.74 / 1; } }  /* 旧サイトと同じ */

/* 映像そのものの箱。ここだけが 16:9。
   ⚠ 枠の比が 16:9 より横長か縦長かで、高さ基準・幅基準が入れ替わる。
     640px 未満は 16/10（16:9 より縦長）＝幅基準、それ以上は横長＝高さ基準。 */
.sq-hero-video__stage {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; background: #000;
  width: 100%; height: auto;                    /* 640px 未満：幅で決まる */
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
@media (min-width: 640px) {
  .sq-hero-video__stage { width: auto; height: 100%; }   /* 横長の枠：高さで決まる */
}

/* 背後のサムネイル。箱が 16:9 なので、そのまま埋めれば映像と一致する。 */
.sq-hero-video__poster,
.sq-hero-video__stage iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.sq-hero-video__poster { object-fit: cover; z-index: 0; }
.sq-hero-video__stage iframe {
  z-index: 1;
  /* 背景映像として扱うので、クリックで一時停止されないようにする。
     操作は「動画をYouTubeで見る」ボタンに集約している。 */
  pointer-events: none;
}

/* 四隅の括弧。映像に枠を与えて、ただ貼っただけの動画に見せない。 */
.sq-hero-video__corner {
  position: absolute; z-index: 2; pointer-events: none;
  width: 26px; height: 26px; border: 2px solid var(--mint);
}
@media (min-width: 900px) { .sq-hero-video__corner { width: 38px; height: 38px; } }
.sq-hero-video__corner--tl { top: 14px;    left: 14px;    border-right: 0; border-bottom: 0; }
.sq-hero-video__corner--tr { top: 14px;    right: 14px;   border-left: 0;  border-bottom: 0; }
.sq-hero-video__corner--bl { bottom: 14px; left: 14px;    border-right: 0; border-top: 0; }
.sq-hero-video__corner--br { bottom: 14px; right: 14px;   border-left: 0;  border-top: 0; }
/* 下の 2 つはイエローにして、単調な額縁にしない */
.sq-hero-video__corner--bl, .sq-hero-video__corner--br { border-color: var(--yellow); }

/* YouTube へ飛ぶボタン。旧サイトと同じく動画の中央に重ねる。
   ⚠ 下端に置くと YouTube 自身の操作バー（再生位置・音量）と重なって押せなくなる。 */
.sq-hero-video__cta {
  position: absolute; z-index: 3;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 9px;
  min-height: var(--tap); padding: 0 26px;
  background: var(--yellow); color: var(--ink);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: background .15s ease, transform .15s ease;
}
.sq-hero-video__cta:hover { background: #ffe93a; color: var(--ink); transform: translate(-50%, -50%) scale(1.04); }
@media (min-width: 900px) { .sq-hero-video__cta { font-size: 14px; padding: 0 32px; min-height: 52px; } }

/* 暗色セクションが直後に来るときだけ、上の余白を落とす。
   ヒーロー自身が下に余白を持っているので、色地どうしの間に隙間が空くと段差に見えるため。 */
.sq-hero-video + .sq-sec--dark { margin-top: 0; }

/* --- 28. セクション末尾の「一覧へ」---------------------------------------- */
/* 見出し右の小さなリンクだけでは押されない。読み終えた位置に面積のあるボタンを置く。 */
.sq-sec__foot { display: flex; justify-content: center; padding-top: 28px; }
@media (min-width: 900px) { .sq-sec__foot { padding-top: 36px; } }
.sq-sec__foot .sq-btn { min-width: 260px; }
.sq-btn--onDark { border: 1px solid #3b4f5b; color: #eef3f6; background: transparent; }
.sq-btn--onDark:hover { border-color: var(--yellow); color: var(--yellow); background: transparent; }

/* =========================================================================
   29. 記事ページ（single.php）2026-08-24
   sega.co.jp のお知らせ詳細を参考に組み直した。借りたのは「並び」だけで、
   色・書体・装飾は SQOOL のもの（forest / mint / yellow）に置き換えている。

   ・上に区分の帯（お知らせ／実績…）を置き、記事タイトルは本文カードの先頭へ
   ・本文を 1 列・約 790px に絞る ── それまでは 1440px 幅で 1 行 70 字を超え、
     行を追う目が戻れなかった。可読性の面でここが一番大きい
   ・日付とカテゴリーの行に共有ボタンを同居させる
   ・読み終えた先（一覧・前後・関連）を用意して、行き止まりにしない
   ========================================================================= */

/* --- 区分の帯 ----------------------------------------------------------- */
.sq-artband {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(130% 180% at 8% 0%, #1a5142 0%, var(--forest) 60%, #08201a 100%);
  color: #fff;
}
/* ファーストビューと同じ斜線。平らな一色にしないための質感。 */
.sq-artband::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg,
    rgba(125, 199, 172, .07) 0 1px, transparent 1px 10px);
}
/* 下端の一本線。ミント → イエローでブランドの 2 色をつなぐ（ファーストビューと揃える）。 */
.sq-artband::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint-pale) 42%, var(--yellow) 100%);
}
/* 右下に区分名を大きく薄く敷く。文字そのものを模様として使うので、
   翻訳で語数が変わっても崩れない（画像やイラストだと差し替えが要る）。 */
.sq-artband__ghost {
  position: absolute; z-index: 0; right: -.05em; bottom: -.28em; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(76px, 20vw, 200px); line-height: 1;
  color: rgba(255, 255, 255, .055); white-space: nowrap;
}
.sq-artband__inner { position: relative; z-index: 1; padding-block: 16px 28px; }
@media (min-width: 900px) { .sq-artband__inner { padding-block: 20px 40px; } }
.sq-artband__en { color: var(--yellow); font-weight: 700; display: block; margin-bottom: 4px; }
.sq-artband__ja {
  font-family: var(--font-display); font-feature-settings: "palt" 1;
  font-size: clamp(22px, 5.5vw, 32px); font-weight: 900; line-height: 1.2; color: #fff;
}

.sq-breadcrumb--onDark { color: rgba(255, 255, 255, .60); padding-block: 0; margin-bottom: 18px; }
.sq-breadcrumb--onDark a { color: rgba(255, 255, 255, .60); }
.sq-breadcrumb--onDark a:hover { color: #fff; }

/* --- 記事の列 ----------------------------------------------------------- */
/* 1440px 幅いっぱいに本文を流すと和文で 1 行 70 字を超える。
   カード幅 900px −左右の余白で本文は約 790px＝1 行 45〜50 字に収まる。 */
.sq-article { max-width: 900px; margin-inline: auto; padding-top: 28px; }
@media (min-width: 900px) { .sq-article { padding-top: 40px; } }

.sq-article .sq-entry { border-top: 3px solid var(--mint); }
@media (min-width: 900px) { .sq-article .sq-entry { padding: 40px 56px 48px; } }

/* --- 記事の見出し部 ----------------------------------------------------- */
.sq-entry__head { margin-top: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sq-entry__title {
  font-size: clamp(21px, 5vw, 30px); font-weight: 800; line-height: 1.5;
  letter-spacing: -.005em; color: var(--ink);
  font-feature-settings: "palt" 1;
}
.sq-entry__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 20px; margin-top: 16px;
}
.sq-entry__meta-l { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sq-entry__date { color: var(--ink-3); }

/* --- 本文 --------------------------------------------------------------- */
.sq-entry__body { margin-top: 30px; }
.sq-entry__body > * + * { margin-top: 1.5em; }

.sq-entry__body h2 {
  position: relative; color: var(--navy);
  font-size: clamp(19px, 4.6vw, 24px); line-height: 1.5;
  margin-top: 2.4em; padding-bottom: .5em;
  border-bottom: 1px solid var(--line);
}
/* 下線の左端だけミントで上書きして、見出しの始まりを示す */
.sq-entry__body h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px;
  background: var(--mint);
}
.sq-entry__body h3 {
  font-size: clamp(16px, 4.2vw, 19px); margin-top: 2em;
  padding-left: 12px; border-left: 4px solid var(--mint); color: var(--ink);
}

/* リストはグローバルのリセットでマーカーが消えている。本文の中だけ戻す。 */
.sq-entry__body :is(ul, ol):not([class]),
.sq-entry__body :is(ul, ol).wp-block-list { padding-left: 1.6em; }
.sq-entry__body :is(ul):not([class]),
.sq-entry__body ul.wp-block-list { list-style: disc; }
.sq-entry__body :is(ol):not([class]),
.sq-entry__body ol.wp-block-list { list-style: decimal; }
.sq-entry__body li + li { margin-top: .45em; }
.sq-entry__body li::marker { color: var(--mint-deep); }

/* 本文のリンクは下線を出す。地の文と同じ長さの和文では、色だけだと気づかれない。 */
.sq-entry__body a {
  color: var(--mint-deep);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: var(--mint);
}
.sq-entry__body a:hover { color: var(--ink); text-decoration-color: var(--ink); }
/* 別タブで開くリンクにはその印を付ける（画像リンクには付けない） */
.sq-entry__body a[target="_blank"]:not(:has(img))::after {
  content: "↗"; display: inline-block; margin-left: .25em;
  font-size: .82em; text-decoration: none; vertical-align: baseline;
}

.sq-entry__body figure { margin: 0; }
.sq-entry__body figcaption {
  margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--ink-3); text-align: center;
}
/* 埋め込みの iframe（Steam ウィジェット等）は幅の指定を持ったまま入ってくる */
.sq-entry__body iframe { max-width: 100%; }
.sq-entry__body .wp-block-image img { margin-inline: auto; }

.sq-entry__body blockquote {
  background: var(--surface-2); border-left: 3px solid var(--mint);
  padding: 16px 20px; color: var(--ink-2);
}
.sq-entry__body blockquote > * + * { margin-top: 1em; }

/* --- 記事末の「一覧へ」-------------------------------------------------- */
.sq-entry__foot {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}
.sq-entry__back {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap);
  color: var(--mint-deep); font-size: 13px; font-weight: 700;
}
.sq-entry__back:hover { color: var(--ink); }

/* --- 共有 --------------------------------------------------------------- */
.sq-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sq-share__label { color: var(--ink-3); margin-right: 4px; }
.sq-share__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; min-width: 38px; padding-inline: 10px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 11px; font-weight: 700; font-family: var(--mono); letter-spacing: .06em;
  cursor: pointer;
}
.sq-share__btn:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.sq-share__btn svg { flex: 0 0 auto; }
.sq-share__copy[data-copied="true"] { border-color: var(--mint-deep); color: var(--mint-deep); }

/* --- 前後の記事 --------------------------------------------------------- */
.sq-artnav {
  display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin-top: 16px;
}
@media (min-width: 640px) { .sq-artnav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sq-artnav__item {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid transparent;
  padding: 16px 18px; color: var(--ink); min-height: 96px;
}
a.sq-artnav__item:hover { border-top-color: var(--yellow); }
a.sq-artnav__item:hover .sq-artnav__title { color: var(--mint-deep); }
.sq-artnav__item--empty { background: transparent; border-color: transparent; }
.sq-artnav__item--next { text-align: right; align-items: flex-end; }
.sq-artnav__dir { color: var(--mint-deep); font-weight: 700; }
.sq-artnav__date { color: var(--ink-3); }
.sq-artnav__title {
  font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* --- 関連する記事 ------------------------------------------------------- */
/* .sq-sec が padding-top: var(--sec) を持っているので、ここで余白は足さない */
.sq-related { margin-top: 0; }
/* 前後の記事が片側しか無いとき、空の枠が高さだけ残らないようにする */
.sq-artnav__item--empty { min-height: 0; }

/* --- 印刷 --------------------------------------------------------------- */
@media print {
  .sq-share, .sq-artnav, .sq-related, .sq-artband__ghost { display: none !important; }
  .sq-artband { background: none !important; color: #000; }
  .sq-article { max-width: none; }
}

/* =========================================================================
   30. 器の仕上げ（2026-11-08）
   ========================================================================= */

/* --- 静止版ファーストビュー（動画未設定のとき）-------------------------- */
/* 地色・斜線・下端ラインは .sq-hero-video から継承する */
.sq-hero-static__inner {
  position: relative; z-index: 1;
  padding-block: 56px 64px;
  color: #eef3f6;
}
@media (min-width: 900px) { .sq-hero-static__inner { padding-block: 96px 104px; } }
.sq-hero-static__eyebrow { color: var(--mint); letter-spacing: .14em; font-size: 12px; }
.sq-hero-static__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 64px); line-height: 1.2; font-weight: 900;
  max-width: 18ch; text-wrap: balance;   /* 6 言語で 2〜3 行に収める（Languages アートボード） */
  color: #fff;
}
.sq-hero-static__lead {
  margin: 20px 0 0; max-width: 46em;
  color: #c9d8d2; font-size: clamp(14px, 1.6vw, 16px); line-height: 1.9;
}
.sq-hero-static__actions {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px;
}
.sq-hero-static .sq-btn--onDark { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.sq-hero-static .sq-btn--onDark:hover { background: #ffe93a; color: var(--ink); }
.sq-hero-static__sub {
  color: #eef3f6; font-size: 13px; font-weight: 700;
  min-height: var(--tap); display: inline-flex; align-items: center;
}
.sq-hero-static__sub:hover { color: var(--yellow); }

/* --- 一覧：空のとき・説明文 ------------------------------------------- */
.sq-empty { background: var(--surface); padding: 40px 24px; text-align: center; color: var(--ink-2); }
.sq-archive__desc { max-width: 46em; color: var(--ink-2); line-height: 1.9; }

/* --- 事業案内一覧：区分ごとの見出し ------------------------------------ */
.sq-svcgroup__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.sq-svcgroup__title { margin: 0; font-size: clamp(20px, 4.5vw, 26px); font-weight: 900; }
.sq-svcgroup__desc { margin: 0 0 16px; color: var(--ink-2); max-width: 46em; }
/* 番号・名前・説明が 3 列に並ぶ行。説明が無い行でも高さが潰れないように */
.sq-svcgroup .sq-row__desc:empty { display: none; }

/* --- 会社案内タイルの説明（一覧ページのみ）------------------------------- */
.sq-tiles__desc { display: block; margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }

/* --- 開発実績の詳細：キービジュアル + タイトル情報 ---------------------- */
.sq-work { margin-top: 28px; }
.sq-work__kv { border: 1px solid var(--line); }
.sq-work__info {
  margin-top: 20px; padding: 20px; background: var(--surface-2);
  display: grid; gap: 18px;
}
@media (min-width: 900px) {
  .sq-work__info { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 22px 28px; }
}
.sq-work__dl { margin: 0; display: grid; gap: 10px; }
.sq-work__dl > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.sq-work__dl dt { color: var(--ink-3); font-size: 11px; letter-spacing: .06em; }
.sq-work__dl dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.sq-work__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sq-work__actions:empty { display: none; }
.sq-work__trailer { margin-top: 40px; }
.sq-work__trailer h2 { font-size: 12px; letter-spacing: .14em; color: var(--mint-deep); margin: 0 0 12px; border: 0; padding: 0; }
.sq-work__video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.sq-work__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- ヘッダー：長い言語（ベトナム語・英語）でメニューを折り返す（2026-11-08）---------
   ⚠ flex-wrap は .sq-nav ではなく中の <ul class="sq-menu"> に掛けないと効かない。
     効いていなかったため、ベトナム語のメニューで 1280px でも横にはみ出し、
     押し出されたキャッチコピーが 1 文字ずつの縦書きに潰れていた。
   方針：ロゴ・キャッチ・右側のボタンは縮めない。縮むのはメニューだけで、入りきらなければ 2 段に折り返す。 */
@media (min-width: 900px) {
  .sq-logo, .sq-tagline, .sq-header__right { flex-shrink: 0; }
  .sq-tagline { white-space: nowrap; }
  .sq-nav { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
  .sq-nav .sq-menu { flex-wrap: wrap; justify-content: flex-end; column-gap: 20px; row-gap: 2px; }
  .sq-btn-contact { white-space: nowrap; }
}
/* 900〜1199px は場所が足りないので、キャッチコピーを畳んでメニューに譲る */
@media (min-width: 1024px) and (max-width: 1199px) {
  .sq-tagline { display: none; }
}

/* --- ヘッダー：5 言語の切替でメニューが 2 段に折り返さないように（2026-11-15・G-e）---------
   訳がある言語が 5 つそろうと、コードを並べた切替（.sq-langbar）が 200px 近くを取り、
   1280px でもメニューの最後（お知らせ）が 2 段目に落ちた。
   コードを並べるのは 1440px 以上だけにし、それ未満は地球儀のドロップダウン（.sq-lang）にまとめる。 */
@media (min-width: 1024px) and (max-width: 1439px) {
  .sq-langbar { display: none; }
  .sq-lang { display: block; }
}
