/*
Theme Name: Startup Lady
Description: Squarespace 7.0 (Brine系) の見た目を再現した Startup Lady 専用テーマ
Version: 1.0
Text Domain: startuplady
*/

/* ------------------------------------------------------------------
   Squarespace の JS が inline style で当てていた寸法の代わり。
   これが無いと画像が原寸(2000px超)のまま配置されて段組みが崩れる。
   ------------------------------------------------------------------ */
.sqs-image-shape-container-element img,
.sqs-block-image img,
.summary-thumbnail img,
.Index-page-image img,
.sqs-block-content img {
  max-width: 100%;
  height: auto;
}

/* ヘッダーのロゴ。Brine は高さを JS で入れていた */
.Header-branding-logo,
.Mobile-bar-branding-logo {
  display: block;
  max-height: 46px;
  width: auto;
  height: auto;
}

/* 背景いっぱいに敷く画像(バナー等)は比率を保って覆う */
.Index-page-image img,
.content-fill img,
img.content-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ロゴ。元サイトでは a.Header-branding が block で 203x59、img が 200x44。
   その display:block を出しているルールが手元のCSSに無いので明示する */
.Header-branding,
.Mobile-bar-branding {
  display: block;
}
.Header-branding-logo {
  display: block;
  width: 200px;
  height: auto;
  max-height: none;
}
.Mobile-bar-branding-logo {
  display: block;
  width: 160px;
  height: auto;
  max-height: none;
}

/* AncillaryLayout(Squarespace側のJS)が実行時にやっていた配置を静的に再現した分の調整 */
.Header--bottom [data-nc-container="bottom-left"] {
  display: flex;
  align-items: center;
}

/* ------------------------------------------------------------------
   ニュース記事。レイアウトはここが持つ。
   Claude Code はフィールドに値を入れるだけなので、書き方で崩れない。
   ------------------------------------------------------------------ */
.sl-news { max-width: 1200px; margin: 0 auto; padding: 60px 24px 100px; }
/* 読みやすさのため、見出しやリード文は狭い幅に収める。
   ⚠️ 本文は Squarespace のグリッドが列幅を計算するので狭めない。 */
.sl-news-narrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.sl-news-body--grid { max-width: 1200px; margin: 0 auto; }
.sl-news-eyebrow {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #d4306a; margin: 0 0 12px;
}
.sl-news-title { font-size: 30px; line-height: 1.5; margin: 0 0 14px; font-weight: 700; }
.sl-news-meta  { font-size: 13px; color: #888; margin: 0 0 32px; }
.sl-news-hero  { margin: 0 0 32px; }
.sl-news-hero img { width: 100%; height: auto; display: block; }
.sl-news-lead  { font-size: 17px; line-height: 2; margin: 0 0 32px; font-weight: 500; }

.sl-news-facts {
  display: grid; grid-template-columns: 88px 1fr; gap: 10px 20px;
  margin: 0 0 36px; padding: 20px 24px;
  background: #faf6f7; border-left: 3px solid #d4306a; font-size: 14px;
}
.sl-news-facts dt { color: #888; margin: 0; }
.sl-news-facts dd { margin: 0; font-weight: 500; }

.sl-news-body { font-size: 15px; line-height: 2; }
.sl-news-body p  { margin: 0 0 1.6em; }
.sl-news-body h2 { font-size: 21px; margin: 2.4em 0 .8em; font-weight: 700; }
.sl-news-body h3 { font-size: 17px; margin: 2em 0 .7em; font-weight: 700; }
.sl-news-body ul { margin: 0 0 1.6em; padding-left: 1.4em; }
.sl-news-body li { margin-bottom: .5em; }
.sl-news-body img { max-width: 100%; height: auto; }
.sl-news-body a { text-decoration: underline; }

.sl-news-cta { margin: 44px 0; text-align: center; }
.sl-news-cta a {
  display: inline-block; padding: 15px 40px; border-radius: 40px;
  background: #d4306a; color: #fff; text-decoration: none;
  font-size: 14px; letter-spacing: .04em;
}
.sl-news-cta a:hover { background: #b02555; }

.sl-news-foot {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #e6e6e6; font-size: 13px;
}

@media (max-width: 640px) {
  .sl-news { padding: 36px 18px 70px; }
  .sl-news-title { font-size: 23px; }
  .sl-news-facts { grid-template-columns: 1fr; gap: 4px 0; }
  .sl-news-facts dt { margin-top: 8px; }
}

/* 404ページ。行き止まりにせず導線を置く */
.sl-404 { padding: 90px 24px 120px; text-align: center; }
.sl-404-inner { max-width: 560px; margin: 0 auto; }
.sl-404-code  { font-size: 64px; font-weight: 700; color: #d4306a; margin: 0 0 8px; line-height: 1; }
.sl-404-title { font-size: 24px; margin: 0 0 18px; font-weight: 700; }
.sl-404-lead  { font-size: 14px; line-height: 2; color: #666; margin: 0 0 34px; }
.sl-404-search { display: flex; gap: 8px; margin: 0 0 34px; }
.sl-404-search input {
  flex: 1; padding: 12px 16px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px;
}
.sl-404-search button {
  padding: 12px 26px; border: 0; border-radius: 3px; cursor: pointer;
  background: #d4306a; color: #fff; font-size: 14px;
}
.sl-404-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; font-size: 14px;
}
.sl-404-links a { text-decoration: underline; }
@media (max-width: 640px) {
  .sl-404 { padding: 56px 18px 80px; }
  .sl-404-search { flex-direction: column; }
}

/* ------------------------------------------------------------------
   ランディングページ。中身の構成は要件が届いてから組む。
   ここは器とフォームだけ。
   ------------------------------------------------------------------ */
.sl-lp { max-width: 900px; margin: 0 auto; padding: 50px 24px 110px; }
.sl-lp-body { font-size: 15px; line-height: 2; }
.sl-lp-body h2 { font-size: 26px; margin: 2.4em 0 .8em; font-weight: 700; }
.sl-lp-body h3 { font-size: 19px; margin: 2em 0 .7em; font-weight: 700; }
.sl-lp-body img { max-width: 100%; height: auto; }

/* ナビを隠す指定のとき。LPは離脱を減らすため導線を絞るのが定石 */
body.sl-lp-nonav .Header-nav,
body.sl-lp-nonav .Header-search,
body.sl-lp-nonav .Mobile-bar-menu { display: none !important; }

.sl-lp-state {
  margin: 0 0 36px; padding: 18px 24px; border-radius: 4px; font-size: 14px; line-height: 1.9;
}
.sl-lp-state--ok      { background: #eef7f0; border-left: 3px solid #2b7a3d; }
.sl-lp-state--invalid,
.sl-lp-state--expired { background: #fdf0f0; border-left: 3px solid #c0392b; }

.sl-lp-form-wrap {
  margin-top: 64px; padding: 40px 36px; background: #faf6f7; border-radius: 6px;
}
.sl-lp-form-title { font-size: 22px; margin: 0 0 28px; font-weight: 700; text-align: center; }
.sl-lp-field { margin-bottom: 22px; }
.sl-lp-field label {
  display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px;
}
.sl-lp-field .req {
  display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 2px;
  background: #d4306a; color: #fff; font-size: 10px; font-weight: 400;
}
.sl-lp-field input,
.sl-lp-field select,
.sl-lp-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 3px;
  font-size: 15px; font-family: inherit; background: #fff; box-sizing: border-box;
}
.sl-lp-field textarea { resize: vertical; }
.sl-lp-privacy { font-size: 12px; color: #777; margin: 24px 0 20px; line-height: 1.8; }
.sl-lp-privacy a { text-decoration: underline; }
.sl-lp-submit {
  display: block; width: 100%; padding: 16px; border: 0; border-radius: 40px;
  background: #d4306a; color: #fff; font-size: 15px; letter-spacing: .04em; cursor: pointer;
}
.sl-lp-submit:hover { background: #b02555; }

@media (max-width: 640px) {
  .sl-lp { padding: 32px 18px 80px; }
  .sl-lp-form-wrap { padding: 28px 20px; }
  .sl-lp-body h2 { font-size: 21px; }
}

/* ------------------------------------------------------------------
   Squarespace の12分割グリッド。
   ⚠️ 回収したCSSには .sqs-col-12 (width:100%) しか入っておらず、
      1〜11の幅指定が丸ごと欠けていた。そのため記事本文の列が
      895px → 46px まで潰れ、高さが 2,769px → 17,920px に膨らんでいた。
      現行サイトの実測値(.sqs-col-10 = 83.3333%)に合わせて補う。
   ------------------------------------------------------------------ */
[class*="sqs-col"] { float: left; }
.sqs-row { }
.sqs-row::after { content: ""; display: table; clear: both; }

.sqs-col-1  { width: 8.3333%; }
.sqs-col-2  { width: 16.6667%; }
.sqs-col-3  { width: 25%; }
.sqs-col-4  { width: 33.3333%; }
.sqs-col-5  { width: 41.6667%; }
.sqs-col-6  { width: 50%; }
.sqs-col-7  { width: 58.3333%; }
.sqs-col-8  { width: 66.6667%; }
.sqs-col-9  { width: 75%; }
.sqs-col-10 { width: 83.3333%; }
.sqs-col-11 { width: 91.6667%; }
.sqs-col-12 { width: 100%; }

/* 入れ子のグリッドは親の幅を基準にし直す */
.sqs-col-12 .sqs-col-12 { width: 100%; }

@media (max-width: 767px) {
  /* 狭い画面では1列に落とす。現行サイトも同じ挙動 */
  [class*="sqs-col"] { float: none; width: 100% !important; }
}

/* ------------------------------------------------------------------
   Startup Lady Award のLP。固定ページ /startupladyaward/ で使う。
   色とボタンの形はニュース記事(.sl-news)と揃えてある。
   ------------------------------------------------------------------ */
.sl-award { max-width: 900px; margin: 0 auto; padding: 0 24px 110px; }

/* ヒーロー */
.sl-award-hero {
  padding: 64px 0 56px; text-align: center; border-bottom: 1px solid #e6e6e6;
}
.sl-award-eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #d4306a; margin: 0 0 18px;
}
.sl-award-title {
  font-size: 40px; line-height: 1.35; font-weight: 700; margin: 0 0 18px;
}
.sl-award-sub {
  font-size: 17px; line-height: 1.9; color: #555; margin: 0 auto 36px; max-width: 620px;
}

/* 開催概要。左が項目名、右が値の2列 */
.sl-award-facts {
  display: grid; grid-template-columns: 104px 1fr; gap: 12px 24px;
  max-width: 520px; margin: 0 auto 40px; padding: 24px 28px;
  background: #faf6f7; border-left: 3px solid #d4306a;
  font-size: 14px; text-align: left;
}
.sl-award-facts dt { color: #888; margin: 0; }
.sl-award-facts dd { margin: 0; font-weight: 500; line-height: 1.7; }

/* CTA。ニュース記事のボタンと同じ形 */
.sl-award-cta { margin: 0 0 12px; text-align: center; }
.sl-award-cta a {
  display: inline-block; padding: 16px 48px; border-radius: 40px;
  background: #d4306a; color: #fff; text-decoration: none;
  font-size: 15px; letter-spacing: .04em;
}
.sl-award-cta a:hover { background: #b02555; }
.sl-award-cta-note { font-size: 12px; color: #888; margin: 0; text-align: center; }

/* 各セクション */
.sl-award-section { padding: 56px 0 0; font-size: 15px; line-height: 2; }
.sl-award-section h2 {
  font-size: 26px; line-height: 1.5; font-weight: 700; margin: 0 0 24px;
}
.sl-award-section h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.sl-award-section p { margin: 0 0 1.6em; }
.sl-award-section--tint {
  margin-top: 56px; padding: 44px 36px; background: #faf6f7; border-radius: 6px;
}
.sl-award-section--tint h2 { margin-top: 0; }
.sl-award-lead { color: #666; font-size: 14px; }
.sl-award-note { font-size: 13px; color: #888; }

/* 3部門のカード */
.sl-award-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sl-award-cards li {
  padding: 28px 24px; border: 1px solid #e6e6e6; border-radius: 6px; background: #fff;
}
.sl-award-cards h3 { color: #d4306a; }
.sl-award-cards p { font-size: 14px; line-height: 1.9; margin: 0; }

/* 箇条書き */
.sl-award-list { margin: 0 0 1.2em; padding-left: 1.4em; }
.sl-award-list li { margin-bottom: .6em; }

/* 写真の枠。差し替え前はプレースホルダを出す */
.sl-award-figure { margin: 28px 0 0; }
.sl-award-figure img { width: 100%; height: auto; display: block; border-radius: 4px; }
.sl-award-figure-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 220px; border: 1px dashed #d4a8bb; border-radius: 4px;
  background: #fff; color: #b07c90; font-size: 13px;
}

/* スケジュール */
.sl-award-steps { list-style: none; margin: 0; padding: 0; }
.sl-award-steps li {
  display: grid; grid-template-columns: 190px 1fr; gap: 20px;
  padding: 20px 0; border-top: 1px solid #e6e6e6;
}
.sl-award-steps li:last-child { border-bottom: 1px solid #e6e6e6; }
.sl-award-step-label { font-weight: 700; font-size: 15px; }
.sl-award-step-body { font-size: 14px; line-height: 1.9; color: #555; }

/* 外部リンクの並び */
.sl-award-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; }
.sl-award-links a { text-decoration: underline; }

/* 末尾のエントリー枠 */
.sl-award-entry {
  margin-top: 64px; padding: 48px 36px; background: #faf6f7; border-radius: 6px;
  text-align: center; font-size: 15px; line-height: 2;
}
.sl-award-entry h2 { font-size: 24px; font-weight: 700; margin: 0 0 18px; }
.sl-award-entry p { margin: 0 0 1.6em; }
.sl-award-entry > p:last-of-type { margin-bottom: 0; }

@media (max-width: 767px) {
  .sl-award-cards { grid-template-columns: 1fr; }
  .sl-award-steps li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .sl-award { padding: 0 18px 80px; }
  .sl-award-hero { padding: 40px 0 40px; }
  .sl-award-title { font-size: 28px; }
  .sl-award-sub { font-size: 15px; }
  .sl-award-facts { grid-template-columns: 1fr; gap: 4px 0; padding: 20px 22px; }
  .sl-award-facts dt { margin-top: 10px; }
  .sl-award-section { padding-top: 40px; }
  .sl-award-section h2 { font-size: 21px; }
  .sl-award-section--tint { padding: 32px 22px; }
  .sl-award-entry { padding: 32px 22px; }
  .sl-award-cta a { display: block; padding: 16px 20px; }
}

/* ⚠️ テーマ既定(Squarespace由来)の見出しは大文字に変換される。
   そのままだと Gemmyo が GEMMYO、Startup Lady Award が STARTUP LADY AWARD になり、
   ブランド名の表記が変わってしまう。LPの見出しは元の表記で出す。
   小見出し(.sl-award-eyebrow)は意図して大文字にしているのでそのまま。 */
.sl-award-title,
.sl-award-section h2,
.sl-award-section h3,
.sl-award-entry h2 { text-transform: none; }

/* ------------------------------------------------------------------
   キャプション付き画像。
   ⚠️ 移行時、本文に [caption width="1500"] のように原寸が入った。
      WordPress はこれを style="width:1500px" として出すため、
      画面幅を超えて横スクロールが発生していた(投稿14件が該当)。
      inline style を打ち消す必要があるので !important を使う。
   ------------------------------------------------------------------ */
figure.wp-caption {
  max-width: 100% !important;
  width: auto !important;
  height: auto;
  margin: 1.6em 0;
}
figure.wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
}
figure.wp-caption .wp-caption-text {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  margin-top: 8px;
}

/* ------------------------------------------------------------------
   本文中のリンク。
   ⚠️ 現行サイトを実測した値: color #ff006e / 下線なし /
      下に1pxの薄い境界線 rgba(255,0,110,.3)。
      これが無いとリンクが本文と同じ黒になり、押せることが分からない。
      星野さんの「リンクが飛んでいない」はこれが原因(リンク自体は存在していた)。
   ボタン(.sqs-block-button-element)とセクションのタブは対象外。
   ------------------------------------------------------------------ */
.BlogItem-body a:not(.sqs-block-button-element),
.sl-news-body a:not(.sqs-block-button-element),
.Main-content .sqs-html a:not(.sqs-block-button-element),
.sl-award-section a:not(.sqs-block-button-element) {
  color: #ff006e;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 110, .3);
}
.BlogItem-body a:not(.sqs-block-button-element):hover,
.sl-news-body a:not(.sqs-block-button-element):hover,
.Main-content .sqs-html a:not(.sqs-block-button-element):hover,
.sl-award-section a:not(.sqs-block-button-element):hover {
  border-bottom-color: rgba(255, 0, 110, .8);
}
/* 画像を囲むリンクには線を出さない */
.BlogItem-body a:has(> img),
.sl-news-body a:has(> img),
.Main-content .sqs-html a:has(> img) {
  border-bottom: 0;
}

/* ------------------------------------------------------------------
   スマホのメニューを開いたとき。
   ⚠️ 回収CSSに .is-mobile-overlay-active { position:fixed } があり、
      body がこれを受けるとスクロール位置を失って表示が崩れる。
      現行サイトでは Squarespace の JS が位置を保存・復元していたが、
      そのJSは持ち込まないので、崩れない方式(overflow で止める)に置き換える。
   ------------------------------------------------------------------ */
body.is-mobile-overlay-active {
  position: static !important;
  overflow: hidden;
}
/* オーバーレイは画面全体を覆う。下の内容が透けないようにする */
body.is-mobile-overlay-active .Mobile-overlay {
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background-color: #262626;
  overflow-y: auto;
}

/* スマホの検索ボックス。現行サイトの見た目に合わせた枠線つきの1行 */
.Mobile-search-panel { padding: 24px 18px 8px; background: #fff; }
.Mobile-search-panel[hidden] { display: none; }
.Mobile-search-panel form {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #d8d8d8; padding: 14px 16px; background: #fff;
}
.Mobile-search-panel-icon { flex: 0 0 auto; display: flex; }
.Mobile-search-panel-icon .Icon { width: 22px; height: 22px; stroke: #222; }
.Mobile-search-panel-input {
  flex: 1 1 auto; border: 0; outline: none; background: transparent;
  font-size: 17px; font-family: inherit; color: #222; min-width: 0;
}
.Mobile-search-panel-input::placeholder { color: #bdbdbd; }

/* ------------------------------------------------------------------
   本文中の画像を親の幅に収める。
   ⚠️ これまでは .sqs-block-image img など、Squarespace由来のクラス配下だけに
      max-width を当てていた。移行後の本文にはそのクラスが付かない画像があり、
      原寸(1500px等)のまま表示されて横スクロールが出ていた。
      スマホでは画面幅390pxに対して実測1503pxまで広がっていた。
   ⚠️ 背景いっぱいに敷く画像(.content-fill / .Index-page-image)は
      width:100% + height:100% + object-fit:cover で成立しているので触らない。
   ------------------------------------------------------------------ */
.BlogItem-body img:not(.content-fill),
.sl-news-body img:not(.content-fill),
.Main-content img:not(.content-fill),
.sl-award img:not(.content-fill) {
  max-width: 100%;
  height: auto;
}
/* 画像を囲む要素にも原寸が入っていることがある */
.BlogItem-body figure,
.sl-news-body figure,
.Main-content figure {
  max-width: 100%;
}
/* 表や埋め込みも画面幅を超えさせない */
.BlogItem-body table,
.sl-news-body table,
.Main-content table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}
.BlogItem-body iframe,
.sl-news-body iframe,
.Main-content iframe {
  max-width: 100%;
}

/* ------------------------------------------------------------------
   Squarespace のグリッドの帳尻あわせ。
   ⚠️ 回収CSSは
        .sqs-layout > .sqs-row { margin-left:-17px; margin-right:-17px }
        [class*=sqs-col] .sqs-block { padding-left:17px; padding-right:17px }
      の2本が対になって初めて元の幅に戻る作り。
      移行後の本文には .sqs-block が付いていない要素があり、負マージンだけが効いて
      本文と画像が左右に17pxずつはみ出していた(350px のはずが 384px)。
      列の側で padding を持たせて釣り合わせる。
   ------------------------------------------------------------------ */
.sqs-layout > .sqs-row > [class*="sqs-col"] {
  padding-left: 17px;
  padding-right: 17px;
  box-sizing: border-box;
}
/* 二重に padding が乗らないよう、内側の .sqs-block では持たせない */
.sqs-layout > .sqs-row > [class*="sqs-col"] > .sqs-block {
  padding-left: 0;
  padding-right: 0;
}

/* ------------------------------------------------------------------
   ブログ一覧(/en/blog/)。
   ⚠️ 最終ローラーで、現行と見た目が違うことが分かった。
      現行は3カラムのカード(画像+日付+タイトル+抜粋)を全件並べる。
      回収CSSはこの配置を Squarespace の JS に頼っていたため、
      HTMLを揃えるだけでは1カラムのままだった。ここで同じ配置を組む。
   ------------------------------------------------------------------ */
.BlogList--posts-excerpt {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  padding: 24px 0 64px;
}
.BlogList--posts-excerpt .BlogList-item {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.BlogList--posts-excerpt .BlogList-item-image {
  margin: 0 0 18px;
}
.BlogList--posts-excerpt .BlogList-item-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}
.BlogList--posts-excerpt .BlogList-item-meta {
  /* 並び順(画像→日付→タイトル→抜粋)は index.php のマークアップが持つ */
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(34, 34, 34, .5);
}
.BlogList--posts-excerpt .BlogList-item-title {
  font-size: 21px;
  line-height: 1.35;
  font-weight: 400;
  color: #222;
  text-decoration: none;
  margin: 0 0 12px;
  display: block;
}
.BlogList--posts-excerpt .BlogList-item-title:hover { opacity: .7; }
.BlogList--posts-excerpt .BlogList-item-excerpt {
  font-size: 15px;
  line-height: 1.8;
  color: #222;
}
.BlogList--posts-excerpt .BlogList-item-excerpt p { margin: 0; }

@media (max-width: 900px) {
  .BlogList--posts-excerpt { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .BlogList--posts-excerpt { grid-template-columns: 1fr; gap: 44px 0; }
}

/* ------------------------------------------------------------------
   動画背景(GO GLOBAL HUB のバナー)。
   ⚠️ 現行は Squarespace の JS が YouTube を背景に敷いていた。移行後は
      figure と data-config-url だけが残り、背景が真っ白になっていた
      (白文字の見出しが読めない状態)。main.js の initVideoBackgrounds が
      iframe を立て、ここで全面に敷く。
   ------------------------------------------------------------------ */
.sqs-video-background {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
}
.sl-video-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.sl-video-bg-poster {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.sl-video-bg-frame {
  position: absolute;
  top: 50%; left: 50%;
  /* 16:9 を保ったまま短い辺に合わせて覆う */
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;   /* 背景なので操作させない */
}
/* 現行の filter 指定(強さ50)の再現。白文字を読ませるために暗くする */
.sl-video-bg-shade {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, .5);
}

/* ---- グリッドギャラリー(組織紹介ページの写真) ----
   ⚠️ 最終ローラーで発覚。/en/about/ と /ja/about/ の写真8枚が出ていなかった。
      Squarespace の JS は img に width/height/position を直接書き込んでいて、
      それが無いと a.content-fill の中で画像の高さが 0 になる。
      枠の高さは回収CSSのアスペクト比指定で出ているので、中を埋めるだけにする。 */
/* ⚠️ content-fill と content-fit で意味が逆。
      fill = 枠を埋めて外をはみ出させない(写真)、fit = 枠に収める(ロゴ)。
      取り違えると、渋谷区やパートナー企業のロゴが縦に切れる。 */
.sqs-gallery-block-grid .slide .margin-wrapper > a.content-fill,
.sqs-gallery-block-grid .slide .margin-wrapper > a.content-fit {
  position: relative;
  display: block;
  overflow: hidden;
}
.sqs-gallery-block-grid .slide .margin-wrapper > a.content-fill > img,
.sqs-gallery-block-grid .slide .margin-wrapper > a.content-fit > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.sqs-gallery-block-grid .slide .margin-wrapper > a.content-fill > img { object-fit: cover; }
.sqs-gallery-block-grid .slide .margin-wrapper > a.content-fit > img { object-fit: contain; }

/* ---- 埋め込み動画の枠 ----
   ⚠️ 回収CSSの `.sqs-video-wrapper iframe{position:absolute}` を効かせるには
      親に position が要る。現行は video-block というクラスの側でそれを満たしていたが、
      新しい形のブロックはそのセレクタに当たらないので、ここで足す。 */
.sqs-block[data-definition-name="website.components.video"] .sqs-video-wrapper {
  position: relative;
}

/* ---- 応募フォーム(メンター / スピーカー) ----
   現行サイトの見え方に合わせる。
   ⚠️ 回収CSSの .description は display:block なので、そのままだと
      「(required)」が見出しの下に落ちて2行になる。現行は同じ行に並ぶ。
   ⚠️ 見出しの帯は、サイト全体のカスタムCSSにある無条件の
      `label{background-color:pink}` によるもの。
      現行は入力欄の見出しを label、選択肢の見出しを div にして描き分けている。
      同じ作り方にしてあるので、ここで色を打ち消す必要はない。 */
.sl-apply-form .field-list .description.required {
  display: inline;
  padding: 0 0 0 .4em;
  font-size: 11px;
}
/* 現行のフォームは本文の幅いっぱいではなく 682px 程度に収まっている */
.sl-apply-form {
  max-width: 690px;
  margin-left: auto;
  margin-right: auto;
}
.sl-apply-form .field-list .field.radio .option,
.sl-apply-form .field-list .field.checkbox .option {
  margin: 6px 0;
}
.sl-apply-form .form-button-wrapper {
  margin-top: 8px;
  text-align: center;
}
.sl-apply-done,
.sl-apply-error {
  margin: 1em 0;
}

/* 姓と名は現行と同じく横に並べる。
   ⚠️ 現行の横並びは React 側の CSS で作られていて、回収したCSSには入っていない。 */
.sl-apply-form .field-list .name-parts {
  display: flex;
  gap: 14px;
}
.sl-apply-form .field-list .name-parts > .field {
  flex: 1 1 0;
  min-width: 0;
}
.sl-apply-form .field-list .field .caption {
  display: inline-block;
}
@media (max-width: 480px) {
  .sl-apply-form .field-list .name-parts {
    display: block;
  }
}

/* ==================================================================
   トップ（言語選択）— 現行サイトの `/` の再現
   ⚠️ 現行はSquarespaceのカバーページ機能。専用CSSは回収できていないので、
      現行を幅ごとに実測した値で組み直している。
        幅1280: 余白60px / 見出し88px / 本文16px / 釦42px高 / ロゴ234x60
        幅390 : 余白20px / 見出し56px
      覆いは rgb(154,114,122) を 50% で重ねる（現行の実測値）。
   ================================================================== */
body.sl-splash-body {
  margin: 0;
  overflow: hidden;
}
.sl-splash {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #9a727a;
}
.sl-splash-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.sl-splash-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(154, 114, 122);
  opacity: .5;
}
/* ロゴは上、コピーは縦中央、SNSは下。現行と同じ配置 */
.sl-splash-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  box-sizing: border-box;
  padding: 40px 60px;
}
.sl-splash-logo {
  display: inline-block;
  justify-self: start;
  line-height: 0;
}
.sl-splash-logo img {
  display: block;
  width: 234px;
  height: auto;
}
.sl-splash-copy {
  align-self: center;
  /* 現行の実測値。見出しは中で inline-block なので、この幅までは折り返さない */
  max-width: 940px;
}
.sl-splash-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 88px;
  line-height: 88px;
  font-weight: 400 !important;
  letter-spacing: normal;
  /* ⚠️ サイト共通CSSに `h1{text-transform:uppercase}` がある。
        現行のこのページは小文字のままなので、ここだけ戻す。
        大文字にすると幅が伸びて2行が3行になり、行数まで変わってしまう。 */
  text-transform: none;
  /* 現行も inline-block。文章の長さに合わせて折り返す */
  display: inline-block;
}
.sl-splash-copy p {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: 16px;
  line-height: 1.4;
  max-width: 576px;
}
.sl-splash-actions {
  margin-top: 39px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* ⚠️ サイト共通CSSに `label{background-color:pink}` のような広い指定があるので、
      釦の見た目はここで閉じて書く。継ぎ足しの影響を受けないようにする。 */
.sl-splash-btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 14px;
  line-height: 14px;
  font-weight: 400;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity .2s ease;
}
.sl-splash-btn:hover,
.sl-splash-btn:focus {
  opacity: .82;
  color: #222;
  text-decoration: none;
}
.sl-splash-social {
  align-self: end;
  display: flex;
  gap: 14px;
  align-items: center;
}
.sl-splash-social-link {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 0;
}
.sl-splash-social-link svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: #fff;
}
.sl-splash-social-link:hover svg {
  fill: rgba(255, 255, 255, .75);
}

@media (max-width: 767px) {
  .sl-splash-inner {
    padding: 20px;
  }
  .sl-splash-copy h1 {
    font-size: 56px;
    line-height: 56px;
  }
}
/* 縦が短い端末で見出しと釦が重ならないようにする */
@media (max-height: 560px) {
  .sl-splash {
    height: auto;
    min-height: 100vh;
  }
  body.sl-splash-body {
    overflow: auto;
  }
  .sl-splash-copy h1 {
    font-size: 44px;
    line-height: 46px;
  }
}

/* ---- パートナーのロゴ帯（/partners/） ----
   ⚠️ 移行時、現行のギャラリーブロックを image-gallery-wrapper という
      独自のマークアップに置き換えていたが、当てるCSSが無かった。
      そのため img が原寸のまま縦に並び、docks のロゴが幅いっぱいに出ていた。
   現行の実測に合わせる: 1段目は高さ107px前後で4列、2段目は幅168pxで5列と4列。
   幅と高さの上限だけを決めて、あとは画像の比率に任せる。 */
.image-gallery-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px 44px;
  margin: 2.4em 0;
}
/* ⚠️ サイト共通のCSSが img に max-width:100% を !important で当てている。
      そのままだと横長のロゴが幅500pxまで伸びる(SETGOで実測)。ここは強さで並べる。 */
.image-gallery-wrapper img {
  width: auto !important;
  height: auto !important;
  max-width: 168px !important;
  max-height: 118px !important;
  object-fit: contain;
}
@media (max-width: 640px) {
  .image-gallery-wrapper {
    gap: 22px 28px;
  }
  .image-gallery-wrapper img {
    max-width: 122px !important;
    max-height: 88px !important;
  }
}

/* ==================================================================
   Startup Lady Award 応募フォーム
   ⚠️ サイト共通CSSに `label{background-color:pink}` という広い指定がある。
      設問の見出しは label を使うと全部ピンクの帯になるので、
      色と余白はここで打ち消して自前で描く。
   ================================================================== */
.sl-award-form-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 4px;
}
.sl-award-lang {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 0 0 24px;
}
.sl-award-lang-btn {
  padding: 7px 16px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
}
.sl-award-lang-btn.is-on {
  border-color: #ff006e;
  background: #ff006e;
  color: #fff;
}

.sl-award-sec {
  margin: 0 0 44px;
}
.sl-award-sec-title {
  margin: 0 0 6px;
  padding: 0 0 8px;
  border-bottom: 2px solid #ff006e;
  font-size: 19px;
  font-weight: 600 !important;
  text-transform: none;
}
.sl-award-sec-note {
  margin: 0 0 18px;
  font-size: 13px;
  opacity: .75;
}

.sl-award-field {
  margin: 0 0 26px;
}
/* ⚠️ 共通CSSのピンク帯を打ち消す。設問見出しは帯にしない */
.sl-award-form .sl-award-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  background: none !important;
  border-radius: 0;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
  cursor: default;
}
.sl-award-no {
  display: inline-block;
  min-width: 2.6em;
  color: #ff006e;
  font-weight: 600;
}
.sl-award-req,
.sl-award-opt {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 11px;
  vertical-align: middle;
}
.sl-award-req { background: #ff006e; color: #fff; }
.sl-award-opt { background: #eee;    color: #666; }

.sl-award-note {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.7;
  opacity: .7;
}
.sl-award-form .field-element {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin: 4px 0;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 14px;
  line-height: 1.6;
}
.sl-award-form textarea.field-element {
  min-height: 120px;
  resize: vertical;
}
.sl-award-form .field-element:focus {
  background: #fff;
  border-color: #ff006e;
  outline: none;
}
.sl-award-count {
  margin: 2px 0 0;
  text-align: right;
  font-size: 11px;
  opacity: .6;
}
.sl-award-count.is-over { color: #d00; opacity: 1; }

/* 選択肢。共通CSSの帯が label に付くのでここで消す */
.sl-award-option { margin: 6px 0; }
.sl-award-form .sl-award-option label {
  display: inline-block;
  padding: 0;
  background: none !important;
  border-radius: 0;
  color: #222;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
}
.sl-award-option input { margin-right: 8px; }

.sl-award-field.has-error .field-element { border-color: #d00; background: #fff5f7; }
.sl-award-field.has-error .sl-award-label { color: #d00; }

.sl-award-error {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid #d00;
  background: #fff5f7;
  color: #b00;
  font-size: 13px;
}
.sl-award-done {
  margin: 40px 0;
  padding: 28px;
  border: 1px solid #ff006e;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
}

.sl-award-submit { margin: 36px 0 12px; text-align: center; }
.sl-award-btn {
  padding: 15px 54px;
  border: 0;
  border-radius: 999px;
  background: #ff006e;
  color: #fff;
  font-size: 15px;
  letter-spacing: .12em;
  cursor: pointer;
}
.sl-award-btn:hover { opacity: .85; }

@media (max-width: 640px) {
  .sl-award-sec-title { font-size: 17px; }
  .sl-award-btn { width: 100%; padding: 15px 0; }
}

/* ==================================================================
   ナビの言語切り替え
   ⚠️ 2026-08-24 星野さんの指摘で追加。
      英語ページに移ると日本語に戻せなかった。ヘッダーのボタンが
      英語ページでも「ENGLISH」のままだったため。
      現行サイトからの引き継ぎで、移行で壊れたものではない。

   HTMLには元から2つのナビが入っている。
      primary   … Home / News / About / 日本語
      secondary … ホーム / ニュース / 組織紹介 / ENGLISH
   回収CSSが primary を一律 display:none にしていたので、
   ここで言語ごとに上書きする。
   ⚠️ 回収CSSより後に読まれる必要がある（style.css は最後に読まれる）。
   ================================================================== */
/* ⚠️ 回収CSSの @media (min-width:768px) の中に
      `.Header-nav--secondary { display: flex !important }` がある。
      これに勝つには、同じ条件のメディアクエリの中で !important を使う必要がある。
      条件の外に書いても効かない（一度それで失敗した）。 */
body.sl-lang-ja .Header-nav.Header-nav--primary { display: none !important; }
body.sl-lang-en .Header-nav.Header-nav--secondary { display: none !important; }

@media (min-width: 768px) {
  body.sl-lang-ja .Header-nav.Header-nav--primary { display: none !important; }
  body.sl-lang-ja .Header-nav.Header-nav--secondary { display: flex !important; }

  body.sl-lang-en .Header-nav.Header-nav--primary { display: flex !important; }
  body.sl-lang-en .Header-nav.Header-nav--secondary { display: none !important; }
}

/* ⚠️ 英語ナビ(primary)と日本語ナビ(secondary)は、ヘッダーの別のブロックに入っている。
      primary   … 左のブロック（justify-content: flex-start）
      secondary … 右のブロック（justify-content: flex-end）
   そのため primary をそのまま出すとロゴに重なる。親ごと右寄せにする。 */
/* ⚠️ 親の justify を変えるとロゴまで動く（ロゴが中央に寄った）。
      ナビだけを右端へ送る形にする。
   ⚠️ primary は左のブロックに入っているため、右端は日本語より内側で止まる。
      日本語ナビと同じ位置に揃えるため、親のブロックを画面幅いっぱいにする。 */
body.sl-lang-en .Header-inner--bottom > div:first-of-type {
  flex: 1 1 100%;
}
body.sl-lang-en .Header-nav--primary {
  margin-left: auto;
}

/* 英語ナビも日本語ナビと同じ並びにする。
   回収CSSの装飾は secondary にしか当たっていないため、同じものを primary にも当てる */
body.sl-lang-en .Header-nav.Header-nav--primary .Header-nav-inner {
  display: flex;
  gap: 16px;
  align-items: center;
}
/* 最後のリンク（言語切り替え）をピル型のボタンにする。現行の見た目に合わせる */
/* ⚠️ 日本語側（回収CSS）は border-radius:300px と transition を持っている。
      見た目は同じだが、数値を揃えておかないと後で片方だけ直したときにずれる。 */
body.sl-lang-en .Header-nav.Header-nav--primary .Header-nav-inner > a:last-of-type {
  background-color: #ea2064;
  color: #fff;
  opacity: .8;
  padding: 15px;
  margin: 15px 5px;
  border-radius: 300px;
  transition: all .4s ease;
  -webkit-transition: all .4s ease;
}
body.sl-lang-en .Header-nav.Header-nav--primary .Header-nav-inner > a:last-of-type:hover {
  opacity: 1;
  color: #fff;
}

/* スマホのメニューの中も、その言語のナビだけにする。
   ⚠️ スマホは別のクラス（.Mobile-overlay-nav）で組まれている。
      ヘッダー側（.Header-nav）だけ直しても、メニューを開くと両方出る。
      一度それで見落としたので、両方まとめてここで面倒を見る。 */
body.sl-lang-ja .Mobile-overlay-nav--primary { display: none !important; }
body.sl-lang-en .Mobile-overlay-nav--secondary { display: none !important; }

@media (max-width: 767px) {
  body.sl-lang-en .Header-menu .Header-nav.Header-nav--primary {
    display: block !important;
  }
  body.sl-lang-en .Header-menu .Header-nav.Header-nav--primary .Header-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
  }
  body.sl-lang-en .Header-menu .Header-nav.Header-nav--primary .Header-nav-inner a {
    display: block;
    padding: 14px 16px;
    margin: 0;
    line-height: 1.3;
  }
  body.sl-lang-en .Header-menu .Header-nav.Header-nav--secondary {
    display: none !important;
  }
}
