/*
 * SurFront リニューアル デザイン（手書き。ビルド不要）
 *
 * 構成: 1 トークン / 2 共通 / 3 ヘッダー / 4 下層ページ / 5 トップ / 6 フッター / 7 動き・アクセシビリティ
 * 管理画面の「追加CSS」(DB) の内容は、ここに統合済み（公開側では読み込まない）。
 */

/* ==========================================================================
   1. トークン
   ========================================================================== */
:root {
  --sf-ink: #15121f;
  --sf-ink-2: #2b2540;
  --sf-text: #2a2833;
  --sf-muted: #6b687a;
  --sf-paper: #faf9f6;
  --sf-white: #fff;
  --sf-line: #e7e4dc;
  --sf-accent: #6336c4;       /* ロゴの紫（既存のサイトカラー） */
  --sf-accent-deep: #45239b;
  --sf-gold: #d4b32a;         /* ロゴの旗の金 */
  --sf-radius: 6px;
  --sf-wrap: 1120px;
  --sf-header-h: 84px;
  --sf-logo-h: 48px;          /* ロゴの図柄（旗と SURFRONT の文字）の高さ。上下の余白 =（ヘッダーの高さ − これ）÷ 2 */
  --sf-font: "Lato", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

/* ==========================================================================
   2. 共通
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--sf-header-h) + var(--vk-size-admin-bar, 0px)); }  /* ページ内リンクで、見出しがヘッダーの下に隠れないように */
body {
  font-family: var(--sf-font);
  color: var(--sf-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sf img { max-width: 100%; height: auto; }
.sf-container { width: min(var(--sf-wrap), calc(100% - 48px)); margin-inline: auto; }
/* Lightning の .container（ヘッダー・下層ページ）も、.sf-container と左右の端をそろえる（内側の幅 = 1120px、左右の余白 = 24px） */
.container { max-width: calc(var(--sf-wrap) + 48px); padding-left: 24px; padding-right: 24px; }

/* 日本語の折り返しを文節単位にし、行末に1〜2文字だけ取り残されるのを防ぐ（対応していないブラウザでは従来どおり） */
.sf-h2, .sf-hero__title, .sf-principles h3, .sf-brand__name, .sf-brand__sub, .sf-timeline h3, .sf-news__title,
.sf-lead, .sf-hero__lead, .sf-brand__text, .sf-principles p, .sf-timeline p, .sf-audience span, .sf-media-card__text, body:not(.home) .page-header-title { word-break: auto-phrase; line-break: strict; }
.sf-h2, .sf-hero__title, .sf-principles h3 { text-wrap: balance; }
.sf-lead, .sf-hero__lead, .sf-brand__text, .sf-principles p, .sf-timeline p { text-wrap: pretty; }

.sf-br-sp { display: none; }
@media (max-width: 767px) { .sf-br-sp { display: inline; } .sf-br-pc { display: none; } }

.sf-eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--sf-accent); }
.sf-eyebrow span { margin-left: 1em; font-weight: 700; letter-spacing: .08em; color: var(--sf-muted); }
.sf-eyebrow--light { color: #fff; }
.sf-eyebrow--light span { color: rgba(255, 255, 255, .72); }

.sf-h2 { margin: 0 0 .7em; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.38; font-weight: 700; letter-spacing: 0; color: var(--sf-ink); border: 0; padding: 0; }
.sf-h2::before, .sf-h2::after { content: none; }
.sf-h2--light { color: #fff; }
.sf-lead { margin: 0 0 1.1em; font-size: clamp(15px, 1.35vw, 17px); line-height: 2; }
.sf-lead--light { color: rgba(255, 255, 255, .88); }

.sf-section { padding: clamp(72px, 10vw, 132px) 0; }
.sf-section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.sf-section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sf-section__head--row .sf-h2 { margin-bottom: 0; }

.sf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 30px; border-radius: 4px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1; text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.sf-btn--solid { background: #fff; color: var(--sf-ink); }
.sf-btn--solid:hover { background: var(--sf-gold); color: var(--sf-ink); transform: translateY(-2px); }
.sf-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.sf-btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; transform: translateY(-2px); }

.sf-link {
  display: inline-flex; align-items: center; gap: .55em; font-size: 15px; font-weight: 700; letter-spacing: .04em;
  color: var(--sf-accent); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px;
}
.sf-link::after { content: "→"; font-weight: 400; transition: transform .25s; }
.sf-link:hover { color: var(--sf-accent-deep); }
.sf-link:hover::after { transform: translateX(4px); }
.sf-link--ext::after { content: "↗"; }
.sf-link--ext:hover::after { transform: translate(2px, -2px); }

/* ==========================================================================
   3. ヘッダー（Lightning のヘッダーを作り替える）
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--sf-line); box-shadow: none;
  transition: background-color .3s, border-color .3s;
}
.site-header .site-header-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--sf-header-h); padding-top: 0; padding-bottom: 0; }
/* ロゴ: 画像は正方形で、周囲に大きな透明の余白がある。図柄（旗と文字）の範囲だけを枠にして切り出す。
   → 図柄はヘッダーの中で上下に同じ余白を取り、左端は本文の左端と揃う。（図柄の範囲: 左13.2% 右11.9% 上18.6% 下27.6%） */
.site-header .site-header-logo { margin: 0; padding: 0; float: none; width: auto; line-height: 0; }
.site-header .site-header-logo span { display: block; }
.site-header .site-header-logo a, .sf-mnav__head a { position: relative; display: block; overflow: hidden; width: calc(var(--sf-logo-h) * 1.392); height: var(--sf-logo-h); line-height: 0; }
.site-header .site-header-logo img, .sf-mnav__head img {
  position: absolute; display: block; margin: 0; max-width: none; max-height: none !important;
  width: calc(var(--sf-logo-h) / .538); height: calc(var(--sf-logo-h) / .538);
  left: calc(var(--sf-logo-h) / .538 * -.132); top: calc(var(--sf-logo-h) / .538 * -.186);
}
.site-header .global-nav { float: none; margin: 0 0 0 auto; width: auto; }
.site-header .global-nav-list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-header .global-nav-list > li { margin: 0; }
.site-header .global-nav-list > li > a {
  display: block; padding: 10px 16px; border: 0; background: none;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--sf-ink); text-decoration: none; transition: color .2s;
}
.site-header .global-nav-list > li > a::after, .site-header .global-nav-list > li > a::before { display: none; }
.site-header .global-nav-list > li > a:hover { color: var(--sf-accent); }
.site-header .global-nav-list > li > a .global-nav-name { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.site-header .global-nav-list > li > a .global-nav-description { display: none; }
.site-header .global-nav-list > li.current-menu-item > a:not(:hover) { color: var(--sf-accent); }
/* いちばん右（お問い合わせ）はボタンにする */
.site-header .global-nav-list > li:last-child > a,
.site-header .global-nav-list > li:last-child.current-menu-item > a { margin-left: 8px; padding: 12px 24px; border: 0; border-radius: 4px; background: var(--sf-accent); color: #fff; }
.site-header .global-nav-list > li:last-child > a:hover { background: var(--sf-accent-deep); color: #fff; }
/* 親テーマが、各項目の下に引く線（hover・表示中のページ）は、ボタンには出さない */
.site-header .global-nav-list > li:last-child::before { display: none; }

/* トップページ: 写真の上に透過で重ね、スクロールしたら白に切り替える */
body.home .site-header { position: fixed; inset: 0 0 auto 0; width: 100%; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.home:not(.scrolled) .site-header .global-nav-list > li:not(:last-child) > a { color: #fff; text-shadow: 0 1px 8px rgba(10, 8, 24, .45); }
body.home:not(.scrolled) .site-header .global-nav-list > li:not(:last-child) > a:hover { color: var(--sf-gold); }
body.home:not(.scrolled) .site-header .site-header-logo img { filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(10, 8, 24, .35)); }
body.home.scrolled .site-header { background: rgba(255, 255, 255, .98); border-bottom-color: var(--sf-line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
body.admin-bar .site-header { top: 32px; }
body.admin-bar.home .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header, body.admin-bar.home .site-header { top: 46px; } }

/* モバイル（Lightning のメニューボタンを使う） */
@media (max-width: 991px) {
  :root { --sf-header-h: 68px; --sf-logo-h: 42px; }
  .site-header .global-nav { display: none; }
  .site-header .site-header-container { padding-right: 64px; }
}

/* ---- 3b. モバイルメニュー（ハンバーガー）----------------------------------
   ボタン: 枠なしの細い2本線。開くと×に変わる。タップ領域は48px。
   パネル: 濃紺の全画面。メニューは大きな文字、お問い合わせはボタン。ロゴ・ブランド・所在地を添える（JS が差し込む）。 */
.vk-mobile-nav-menu-btn {
  position: fixed; top: 8px; right: 8px; left: auto; z-index: 2100;
  width: 48px; height: 48px; margin: 0; padding: 0; overflow: visible;
  border: 0 !important; border-radius: 0; background: none !important;
  text-indent: -9999px; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vk-mobile-nav-menu-btn::before, .vk-mobile-nav-menu-btn::after {
  content: ""; position: absolute; height: 2px; background: var(--sf-ink);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), top .4s cubic-bezier(.2, .7, .2, 1), left .4s cubic-bezier(.2, .7, .2, 1), width .4s cubic-bezier(.2, .7, .2, 1), background-color .25s;
}
.vk-mobile-nav-menu-btn::before { top: 18px; left: 12px; width: 24px; }
.vk-mobile-nav-menu-btn::after  { top: 28px; left: 20px; width: 16px; }  /* 下の線を短くして、軽やかに */
body.home:not(.scrolled) .vk-mobile-nav-menu-btn:not(.menu-open)::before,
body.home:not(.scrolled) .vk-mobile-nav-menu-btn:not(.menu-open)::after { background: #fff; box-shadow: 0 1px 8px rgba(10, 8, 24, .4); }
.vk-mobile-nav-menu-btn.menu-open::before, .vk-mobile-nav-menu-btn.menu-open::after { top: 23px; left: 12px; width: 24px; background: #fff; box-shadow: none; }
.vk-mobile-nav-menu-btn.menu-open::before { transform: rotate(45deg); }
.vk-mobile-nav-menu-btn.menu-open::after { transform: rotate(-45deg); }
.vk-mobile-nav-menu-btn:focus-visible { outline: 2px solid var(--sf-gold); outline-offset: -6px; border-radius: 4px; }
body.admin-bar .vk-mobile-nav-menu-btn { top: 40px; }
@media (max-width: 782px) { body.admin-bar .vk-mobile-nav-menu-btn { top: 54px; } }

.vk-mobile-nav, .vk-mobile-nav.vk-mobile-nav-right-in, .vk-mobile-nav.vk-mobile-nav-left-in {
  padding: 0; border: 0; color: #fff; background: var(--sf-ink);
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  transition: left .45s cubic-bezier(.2, .7, .2, 1);
}
.vk-mobile-nav .vk-mobile-nav-widget { display: none; }  /* 検索・アーカイブ・カテゴリーは出さない */
.vk-mobile-nav .vk-mobile-nav-menu-outer { flex: none; margin: 0; padding: calc(var(--sf-header-h) + 20px) 28px 0; }
.vk-mobile-nav nav > ul { border-top: 0; }
.vk-mobile-nav nav ul li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 2px; font-size: 20px; font-weight: 700; letter-spacing: .06em; line-height: 1.4;
  color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .14); text-decoration: none; transition: color .2s;
}
.vk-mobile-nav nav ul li a::after { content: "→"; font-weight: 400; color: rgba(255, 255, 255, .5); }
.vk-mobile-nav nav ul li a:hover, .vk-mobile-nav nav ul li a:focus-visible { color: #cdbcf8; }
.vk-mobile-nav nav ul li.current-menu-item > a { color: #b9a0f5; }
/* いちばん下（お問い合わせ）はボタンにする */
.vk-mobile-nav nav ul li:last-child > a,
.vk-mobile-nav nav ul li:last-child.current-menu-item > a { justify-content: center; margin-top: 30px; padding: 18px; border: 0; border-radius: 4px; font-size: 16px; letter-spacing: .1em; color: #fff; background: var(--sf-accent); }
.vk-mobile-nav nav ul li:last-child > a::after { content: none; }
.vk-mobile-nav nav ul li:last-child > a:hover { background: var(--sf-accent-deep); color: #fff; }

.sf-mnav__head { position: absolute; top: 0; left: 0; z-index: 1; display: flex; align-items: center; height: var(--sf-header-h); padding: 0 24px; }
.sf-mnav__head img { filter: brightness(0) invert(1); }
.sf-mnav__foot { margin-top: auto; padding: 36px 28px 44px; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .66); }
.sf-mnav__tag { margin: 0 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.sf-mnav__brands { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 22px; padding: 0; list-style: none; }
.sf-mnav__brands li { margin: 0; }
.sf-mnav__brands a { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .92); text-decoration: none; }
.sf-mnav__brands a::after { content: " ↗"; font-weight: 400; opacity: .6; }
.sf-mnav__address { margin: 0; font-style: normal; }
html.sf-nav-open, html.sf-nav-open body { overflow: hidden; }
/* PC 幅では、モバイルメニューは出さない（タブレットの横向きなど、端末判定とずれる場合の保険） */
@media (min-width: 992px) { .vk-mobile-nav-menu-btn, .vk-mobile-nav { display: none !important; } }

/* ==========================================================================
   4. 下層ページ（紫の帯・サイドバーをやめ、落ち着いたタイトル + 本文に）
   ========================================================================== */
body:not(.home) .page-header {
  background: var(--sf-paper) !important; background-image: none !important; color: var(--sf-ink);
  padding: clamp(44px, 7vw, 92px) 0 clamp(26px, 4vw, 46px); height: auto !important; text-align: left; border: 0;
}
body:not(.home) .page-header-inner { text-align: left; }
body:not(.home) .page-header-title {
  margin: 0; text-align: left; color: var(--sf-ink) !important; text-shadow: none !important;
  font-size: clamp(28px, 4.2vw, 50px); line-height: 1.3; font-weight: 700; letter-spacing: .01em;
}
body:not(.home) .page-header-title::before {
  content: ""; display: block; width: 56px; height: 4px; margin-bottom: 20px; border-radius: 4px;
  background: linear-gradient(90deg, var(--sf-accent), var(--sf-gold));
}
.breadcrumb { background: var(--sf-paper); border: 0; border-bottom: 1px solid var(--sf-line); padding: 0; font-size: 12px; }
.breadcrumb .container { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb-list__item a { color: var(--sf-muted); }

.site-body { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(56px, 8vw, 112px); }
/* サイドバー（最近の投稿・カテゴリー・検索など）は使わない。お知らせへの導線は、トップとフッターに置いている */
.sub-section { display: none !important; }
/* お知らせ記事は、読みやすい幅（約840px）に中央寄せ。前後の記事・カテゴリー表示も同じ幅に揃える */
.single .main-section { max-width: 840px; margin-inline: auto; float: none; }
.single .entry-title { font-size: clamp(24px, 3vw, 36px); line-height: 1.5; font-weight: 700; border: 0; padding: 0; }
.single .entry-meta { color: var(--sf-muted); }
.entry-body h2 { margin-top: 2.4em; padding: 0 0 .5em; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; border: 0; border-bottom: 3px solid var(--sf-line); position: relative; }
.entry-body h2::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 3px; background: var(--sf-accent); }
.entry-body h2::before { content: none; }
.entry-body p { line-height: 2; }
.entry-body img { border-radius: 6px; }
.site-body .nav-previous, .site-body .nav-next { border-radius: 6px; overflow: hidden; }

/* お問い合わせフォーム（Contact Form 7）。会社名・部署名が大きな複数行欄になっているため、見た目だけ1行の高さに整える */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
  width: 100%; padding: 13px 16px; font-size: 16px; font-family: inherit; color: var(--sf-text);
  background: #fff; border: 1px solid #d6d2c8; border-radius: 6px; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 0; border-color: var(--sf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-accent) 22%, transparent); }
.wpcf7 textarea[name="companyname"], .wpcf7 textarea[name="department"] { height: 52px; min-height: 0; resize: none; overflow: hidden; }
.wpcf7 input[type="submit"], .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 44px; border: 0; border-radius: 4px;
  font-size: 15px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--sf-accent); cursor: pointer; transition: background-color .25s, transform .25s;
}
.wpcf7 input[type="submit"]:hover { background: var(--sf-accent-deep); transform: translateY(-2px); }

/* OUR BRANDS ページ（ブランドのカード） */
.sf-brands-page .sf-lead { margin-bottom: clamp(28px, 4vw, 48px); }

/* ==========================================================================
   5. トップページ
   ========================================================================== */

/* --- HERO --- */
.sf-hero { position: relative; display: grid; align-items: end; min-height: min(100vh, 960px); min-height: min(100svh, 960px); color: #fff; overflow: hidden; isolation: isolate; background: var(--sf-ink); }
.sf-hero__media, .sf-hero__media picture { position: absolute; inset: 0; z-index: -2; display: block; }
.sf-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.sf-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 12, 30, .5) 0%, rgba(15, 12, 30, .12) 34%, rgba(15, 12, 30, .72) 100%); }
.sf-hero__inner { padding-top: calc(var(--sf-header-h) + 40px); padding-bottom: clamp(88px, 14vh, 150px); }
.sf-hero__title { margin: 0 0 .35em; font-size: clamp(34px, 6.4vw, 78px); line-height: 1.2; font-weight: 700; letter-spacing: .01em; color: #fff; text-shadow: 0 2px 24px rgba(10, 8, 24, .45); border: 0; padding: 0; }
.sf-hero__title::before, .sf-hero__title::after { content: none; }
.sf-hero__en { margin: 0 0 1.6em; font-size: clamp(14px, 1.5vw, 19px); letter-spacing: .14em; color: rgba(255, 255, 255, .9); }
.sf-hero__lead { max-width: 640px; margin: 0 0 2.2em; font-size: clamp(14px, 1.3vw, 16px); line-height: 2; color: rgba(255, 255, 255, .88); }
.sf-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.sf-hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font-size: 10px; letter-spacing: .3em; text-decoration: none; opacity: .85; }
.sf-hero__scroll::after { content: ""; width: 12px; height: 12px; margin-top: 2px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); animation: sf-scroll 1.8s ease-in-out infinite; }
/* 矢印が、少し下がりながら薄くなり、また上から現れる */
@keyframes sf-scroll { 0% { transform: translateY(-6px) rotate(45deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px) rotate(45deg); opacity: 0; } }
@media (max-width: 767px) { .sf-hero__scroll { display: none; } .sf-hero__inner { padding-bottom: 72px; } }

/* --- ABOUT --- */
.sf-about { background: var(--sf-white); }
.sf-about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.sf-about__photo { position: relative; margin: 0; }
.sf-about__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--sf-gold); border-radius: var(--sf-radius); z-index: 0; }
.sf-about__photo img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--sf-radius); }
@media (max-width: 899px) {
  .sf-about__grid { grid-template-columns: 1fr; }
  .sf-about__photo { order: -1; margin-right: 22px; }
  .sf-about__photo img { aspect-ratio: 16 / 11; }
}

/* --- PHILOSOPHY --- */
.sf-philosophy { position: relative; color: #fff; background: var(--sf-ink); isolation: isolate; overflow: hidden; }
.sf-philosophy__bg { position: absolute; inset: 0; z-index: -2; }
.sf-philosophy__bg img { width: 100%; height: 100%; object-fit: cover; }
.sf-philosophy::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 12, 30, .82), rgba(21, 18, 31, .7) 45%, rgba(15, 12, 30, .9)); }
.sf-philosophy__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sf-principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.sf-principles li { padding: 30px 26px 32px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--sf-radius); background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sf-principles h3 { margin: 0 0 .8em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; font-weight: 700; color: #fff; border: 0; padding: 0; }
.sf-principles h3::before, .sf-principles h3::after { content: none; }
.sf-principles p { margin: 0; font-size: 14px; line-height: 1.95; color: rgba(255, 255, 255, .82); }
@media (max-width: 1019px) { .sf-principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .sf-principles { grid-template-columns: 1fr; } }

/* --- BUSINESS --- */
.sf-business { background: var(--sf-paper); }
.sf-brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
.sf-brand { --brand: var(--sf-accent); display: flex; flex-direction: column; overflow: hidden; border-radius: var(--sf-radius); background: #fff; border: 1px solid var(--sf-line); transition: transform .35s, box-shadow .35s; }
.sf-brand:hover { transform: translateY(-4px); box-shadow: 0 22px 48px -26px rgba(21, 18, 31, .45); }
.sf-brand--gomrifle { --brand: #0b3b34; }
.sf-brand--umimap { --brand: #1450a3; }
.sf-brand--artemis { --brand: #b8921c; }
.sf-brand--northernshore { --brand: #1c2b45; }
.sf-brand__photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand); border-bottom: 4px solid var(--brand); }
.sf-brand__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.sf-brand:hover .sf-brand__photo img { transform: scale(1.04); }
.sf-brand__body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.sf-brand__id { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sf-brand__logo { width: 54px; height: 54px; flex: none; border-radius: 6px; overflow: hidden; background: var(--brand); }
.sf-brand__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* NorthernShore のロゴは白背景なので、枠を付けて見えるようにする */
.sf-brand--northernshore .sf-brand__logo { background: #fff; box-shadow: inset 0 0 0 1px var(--sf-line); }
.sf-brand--northernshore .sf-brand__logo img { object-fit: contain; padding: 4px; }
.sf-brand__tag { padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); }
.sf-brand__soon { margin-left: auto; padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #fff; background: var(--sf-ink); }
.sf-brand__name { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 700; letter-spacing: .01em; color: var(--sf-ink); border: 0; padding: 0; }
.sf-brand__name::before, .sf-brand__name::after { content: none; }
.sf-brand__sub { margin: 4px 0 14px; font-size: 14px; font-weight: 700; color: var(--brand); }
.sf-brand__text { margin: 0 0 20px; font-size: 14.5px; line-height: 1.95; }
.sf-brand__links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: auto 0 0; }
@media (max-width: 899px) { .sf-brands { grid-template-columns: 1fr; } }

/* --- PROJECTS --- */
.sf-projects { background: #fff; }
.sf-projects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.sf-projects__photo { margin: 0; padding: clamp(10px, 2vw, 18px); border-radius: calc(var(--sf-radius) + 6px); background: #0a1a33; }
.sf-projects__photo img { display: block; width: 100%; border-radius: var(--sf-radius); }
.sf-projects__links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 1.6em 0 2em; }
.sf-media-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 16px; padding: 18px 22px; border: 1px solid var(--sf-line); border-radius: 6px; background: var(--sf-paper); color: var(--sf-text); text-decoration: none; transition: border-color .25s, transform .25s; }
.sf-media-card:hover { border-color: var(--sf-accent); transform: translateY(-2px); color: var(--sf-text); }
.sf-media-card__label { padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #fff; background: var(--sf-accent); }
.sf-media-card__text { font-size: 14px; font-weight: 700; line-height: 1.6; }
.sf-media-card__date { font-size: 12px; letter-spacing: .08em; color: var(--sf-muted); }
@media (max-width: 899px) { .sf-projects__grid { grid-template-columns: 1fr; } .sf-media-card { grid-template-columns: 1fr; } }

/* --- HISTORY --- */
.sf-history { background: var(--sf-paper); }
.sf-timeline { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 88px); }
.sf-timeline li { display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--sf-line); }
.sf-timeline b { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 700; color: var(--sf-accent); letter-spacing: .01em; }
.sf-timeline h3 { margin: 0 0 .4em; font-size: 17px; line-height: 1.5; font-weight: 700; color: var(--sf-ink); border: 0; padding: 0; }
.sf-timeline h3::before, .sf-timeline h3::after { content: none; }
.sf-timeline p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--sf-text); }
@media (max-width: 799px) { .sf-timeline { grid-template-columns: 1fr; } .sf-timeline li { grid-template-columns: 68px 1fr; } }

/* --- NEWS --- */
.sf-news { background: var(--sf-paper); }
.sf-news__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 32px); margin: 0; padding: 0; list-style: none; }
.sf-news__item { display: flex; flex-direction: column; height: 100%; color: var(--sf-text); text-decoration: none; }
.sf-news__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--sf-radius); background: linear-gradient(135deg, var(--sf-accent), var(--sf-ink-2)); }
.sf-news__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.sf-news__item:hover .sf-news__thumb img { transform: scale(1.05); }
.sf-news__meta { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; font-size: 12px; color: var(--sf-muted); letter-spacing: .06em; }
.sf-news__label { padding: 3px 10px; border-radius: 4px; font-weight: 700; color: var(--sf-accent); background: color-mix(in srgb, var(--sf-accent) 10%, #fff); }
.sf-news__title { font-size: 16px; font-weight: 700; line-height: 1.75; color: var(--sf-ink); transition: color .2s; }
.sf-news__item:hover .sf-news__title { color: var(--sf-accent); }
@media (max-width: 899px) { .sf-news__list { grid-template-columns: 1fr; } .sf-news__item { flex-direction: row; gap: 18px; align-items: flex-start; } .sf-news__thumb { width: 38%; flex: none; } .sf-news__meta { margin-top: 0; flex-wrap: wrap; } }
@media (max-width: 599px) { .sf-news__item { flex-direction: column; } .sf-news__thumb { width: 100%; } }

/* --- COMPANY --- */
.sf-company { background: var(--sf-paper); }
.sf-company__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 6vw, 88px); }
.sf-company__list { margin: 0; border-top: 1px solid var(--sf-line); }
.sf-company__list > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--sf-line); }
.sf-company__list dt { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--sf-muted); }
.sf-company__list dd { margin: 0; font-size: 15px; line-height: 1.95; }
@media (max-width: 899px) { .sf-company__grid { grid-template-columns: 1fr; } .sf-company__list > div { grid-template-columns: 1fr; gap: 4px; } }

/* --- CONTACT（CTA） --- */
.sf-cta { position: relative; padding: clamp(80px, 11vw, 140px) 0; color: #fff; text-align: center; isolation: isolate; overflow: hidden; background: var(--sf-ink); }
.sf-cta__bg { position: absolute; inset: 0; z-index: -2; }
.sf-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.sf-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36, 22, 80, .86), rgba(15, 12, 30, .86)); }
.sf-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 40px auto 44px; padding: 0; list-style: none; text-align: left; }
.sf-audience li { padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--sf-radius); background: rgba(255, 255, 255, .07); }
.sf-audience b { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; color: #fff; }
.sf-audience span { font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .8); }
.sf-cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (max-width: 799px) { .sf-audience { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .sf-cta__buttons .sf-btn { width: 100%; } }

/* ==========================================================================
   6. フッター
   ========================================================================== */
.sf-footer { background: var(--sf-ink); color: rgba(255, 255, 255, .78); }
.sf-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.sf-footer a:hover { color: var(--sf-gold); }
.sf-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(56px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.sf-footer__logo { display: inline-block; margin-bottom: 20px; }
.sf-footer__logo img { display: block; width: auto; height: 130px; max-height: none; margin: -22px 0 -14px -14px; filter: brightness(0) invert(1); }
.sf-footer__tag { margin: 0 0 20px; font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.sf-footer__address { margin: 0; font-style: normal; font-size: 13px; line-height: 2; }
.sf-footer__nav h2 { margin: 0 0 18px; padding: 0; border: 0; font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--sf-gold); background: none; }
.sf-footer__nav h2::before, .sf-footer__nav h2::after { content: none; }
.sf-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.sf-footer__nav li { margin: 0 0 12px; font-size: 14px; }
.sf-footer__nav small { opacity: .7; }
.sf-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 22px 0; font-size: 12px; letter-spacing: .04em; }
.sf-footer__bottom p { margin: 0; }
@media (max-width: 799px) { .sf-footer__top { grid-template-columns: 1fr 1fr; } .sf-footer__brand { grid-column: 1 / -1; } }

/* ==========================================================================
   7. 動き・アクセシビリティ
   ========================================================================== */
.sf-js .sf-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.sf-js .sf-reveal.is-in { opacity: 1; transform: none; }
.sf-js .sf-timeline li.sf-reveal:nth-child(even), .sf-js .sf-brands .sf-reveal:nth-child(even) { transition-delay: .08s; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--sf-gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sf-js .sf-reveal { opacity: 1; transform: none; transition: none; }
  .vk-mobile-nav, .vk-mobile-nav-menu-btn::before, .vk-mobile-nav-menu-btn::after { transition: none; }
  .sf-hero__scroll::after, .sf-brand, .sf-brand__photo img, .sf-news__thumb img, .sf-btn, .sf-link::after { animation: none; transition: none; }
}
