@charset "UTF-8";
/* =========================================================
   トップページ リデザイン（2026-11）
   - front-page.php 専用。functions.php で is_front_page() のときだけ読み込む
   - サイト全体は html{font-size:62.5%} のため、ここでは rem を使わず px で書く
   - 既存の common.css（黒基調）より後に読み込み、.home / .sgy で上書きする
   ========================================================= */

:root {
  --sgy-ink: #111111;
  --sgy-paper: #ffffff;
  --sgy-mist: #f5f4f0;
  --sgy-line: #dcdcd8;
  --sgy-sub: #4a4a46;
  --sgy-amber: #f5a200;      /* 塗り・ボタン */
  --sgy-orange: #f39800;     /* 白地の大きな文字 */
  --sgy-orange-d: #b35400;   /* 白地の小さな文字 */
  --sgy-tint: #fff6e0;
  --sgy-jp: "Zen Kaku Gothic New", "Gen Interface JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --sgy-en: "Unbounded", "Montserrat", sans-serif;
  --sgy-pad: clamp(20px, 5vw, 64px);
  --sgy-sec: clamp(88px, 11vw, 168px);
}

/* ---------- 既存の黒基調をトップだけ白へ ---------- */
body #body_wrap.home { background: var(--sgy-paper); }
.home .l-header .c-gnav > .menu-item > a .ttl { color: var(--sgy-ink); }
.home .l-header .c-gnav > .menu-item > a:hover .ttl { color: var(--sgy-orange-d); }
.home .l-header__menuBtn .icon-menu-thin:before,
.home .l-header__menuBtn { color: var(--sgy-ink); }

/* ---------- 土台 ---------- */
.sgy {
  position: relative;
  overflow-x: clip;
  background: var(--sgy-paper);
  color: var(--sgy-ink);
  font-family: var(--sgy-jp);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
  text-align: left;
}
.sgy *, .sgy *::before, .sgy *::after { box-sizing: border-box; }
.sgy h1, .sgy h2, .sgy h3, .sgy p, .sgy ul, .sgy li { margin: 0; padding: 0; letter-spacing: inherit; }
.sgy ul { list-style: none; }
.sgy a { color: inherit; text-decoration: none; }
.sgy a:hover { opacity: 1; }
.sgy a:focus-visible { outline: 2px solid var(--sgy-orange-d); outline-offset: 3px; }
.sgy img { max-width: 100%; display: block; border-radius: 0; }
.sgy svg { flex: none; }
.sgy-inner { max-width: 1312px; margin: 0 auto; padding-left: var(--sgy-pad); padding-right: var(--sgy-pad); }
.sgy-sec { padding-top: var(--sgy-sec); padding-bottom: var(--sgy-sec); }
.sgy-sec > .sgy-inner { display: flex; flex-direction: column; gap: clamp(44px, 5.4vw, 80px); }
.sgy-sec.is-mist { background-color: var(--sgy-mist); border-top: 1px solid #e6e6e2; border-bottom: 1px solid #e6e6e2; }
.sgy-sec.is-grid {
  background-image: linear-gradient(rgba(0,0,0,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.sgy-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 見出し ---------- */
.sgy-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.sgy-head_titles { display: flex; flex-direction: column; gap: 10px; }
.sgy-head_en {
  font-family: var(--sgy-en); font-weight: 900; font-size: clamp(26px, 6.4vw, 92px);
  line-height: 1; letter-spacing: -0.02em; color: #e0e0db;
}
.sgy-head_ja { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.3vw, 32px); font-weight: 900; line-height: 1.4; }
.sgy-head_ja::before { content: ""; width: 32px; height: 3px; background: var(--sgy-amber); flex: none; }
.sgy-head_ja.is-plain::before { content: none; }
.sgy-head_side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 420px; }
.sgy-head_lead { font-size: 15px; color: var(--sgy-sub); }
.sgy-sub { display: flex; align-items: center; gap: 14px; font-size: clamp(20px, 2.1vw, 28px); font-weight: 900; line-height: 1.4; }
.sgy-sub::before { content: ""; width: 32px; height: 3px; background: var(--sgy-amber); flex: none; }

/* ---------- ボタン ---------- */
.sgy-btn, .sgy-ghost {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 28px;
  font-weight: 900; line-height: 1.3; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sgy .sgy-btn { background: var(--sgy-amber); color: #050505; }
.sgy .sgy-btn:hover { background: var(--sgy-ink); color: #fff; }
.sgy .sgy-btn.is-lg { min-height: 64px; padding: 0 34px; font-size: 17px; }
.sgy .sgy-ghost { border: 1px solid var(--sgy-ink); color: var(--sgy-ink); min-height: 52px; font-size: 15px; }
.sgy .sgy-ghost.is-en { font-family: var(--sgy-en); font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.sgy .sgy-ghost:hover { background: var(--sgy-amber); border-color: var(--sgy-amber); color: #050505; }
.sgy-go { transition: transform .2s ease, color .2s ease; }
.sgy-textlink { padding: 10px 0; font-weight: 700; text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.sgy a.sgy-textlink:hover { color: var(--sgy-orange-d); }

/* =========================================================
   ローディング
   ========================================================= */
.sgy-loader { position: fixed; inset: 0; z-index: 100000; display: flex; overflow: hidden; pointer-events: none; }
.sgy-loader_slat { flex: 1; margin-right: -1px; background: #0a0a0a; animation: sgy-lift .85s cubic-bezier(.76,0,.24,1) both; }
.sgy-loader_slat:nth-child(1) { animation-delay: 1.55s; }
.sgy-loader_slat:nth-child(2) { animation-delay: 1.62s; }
.sgy-loader_slat:nth-child(3) { animation-delay: 1.69s; }
.sgy-loader_slat:nth-child(4) { animation-delay: 1.76s; }
.sgy-loader_slat:nth-child(5) { animation-delay: 1.83s; }
.sgy-loader_words {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-family: var(--sgy-jp); font-weight: 900; font-size: clamp(64px, 17vw, 240px); line-height: 1; letter-spacing: -0.04em;
  animation: sgy-flash 1.62s linear both;
}
.sgy-loader_word { grid-area: 1 / 1; opacity: 0; animation: sgy-flash .36s linear both; }
.sgy-loader_word:nth-child(1) { animation-delay: .12s; }
.sgy-loader_word:nth-child(2) { animation-delay: .46s; }
.sgy-loader_word:nth-child(3) { animation-delay: .80s; }
.sgy-loader_word:nth-child(4) { animation-delay: 1.14s; }
.sgy-loader_word i { font-style: normal; color: var(--sgy-amber); }
.sgy-loader_bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--sgy-amber); transform-origin: left center; animation: sgy-load 1.6s cubic-bezier(.6,0,.2,1) both; }
@keyframes sgy-lift { to { transform: translateY(-101%); } }
@keyframes sgy-flash { 0% { opacity: 0; transform: scale(1.08); } 6% { opacity: 1; } 94% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes sgy-load { 0% { transform: scaleX(0); opacity: 1; } 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* =========================================================
   伴走ライン
   ========================================================= */
.sgy-thread { position: absolute; top: 0; bottom: 0; left: clamp(7px, 2vw, 28px); width: 2px; background: #e6e6e2; pointer-events: none; z-index: 3; }
/* 塗りの線と先端の丸は画面に固定し、スクロール量に応じて「追従ヘッダーの下」から「画面の下端」まで降りる */
.sgy-thread_line { display: none; position: fixed; left: clamp(7px, 2vw, 28px); top: 0; width: 2px; height: 128px; background: var(--sgy-amber); z-index: 3; pointer-events: none; }
.sgy-thread_runner { display: none; position: fixed; left: calc(clamp(7px, 2vw, 28px) - 6px); top: 128px; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--sgy-amber); box-shadow: 0 0 0 4px #fff; z-index: 3; pointer-events: none; }
@keyframes sgy-grow { from { height: 128px; } to { height: calc(100vh - 40px); } }
@keyframes sgy-run { from { top: 128px; } to { top: calc(100vh - 40px); } }

/* =========================================================
   ファーストビュー
   ========================================================= */
.sgy-hero { position: relative; overflow: hidden; border-bottom: 1px solid #e6e6e2; }
.sgy-hero > .sgy-inner { display: flex; flex-direction: column; gap: clamp(40px, 5.4vw, 80px); padding-top: clamp(20px, 2vw, 30px); }
.sgy-hero_top { display: flex; flex-direction: column; gap: 16px; }
.sgy-hero_area { align-self: flex-end; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--sgy-sub); animation: sgy-rise .9s cubic-bezier(.2,.7,.2,1) 2.5s both; }
.sgy-hero_rule { position: relative; display: block; height: 1px; background: var(--sgy-ink); transform-origin: left center; animation: sgy-rule 1.1s cubic-bezier(.76,0,.24,1) 1.7s both; }
.sgy-hero_head { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.sgy .sgy-hero_title { min-width: 0; font-weight: 900; font-size: clamp(42px, 9.8vw, 140px); line-height: 1.12; letter-spacing: -0.04em; }
.sgy-hero_line { display: block; overflow: hidden; white-space: nowrap; }
.sgy-hero_line + .sgy-hero_line { padding-left: clamp(0px, 8vw, 116px); }
.sgy-ch { display: inline-block; animation: sgy-char .95s cubic-bezier(.16,.84,.24,1) both; animation-delay: calc(1.8s + var(--i) * .042s); }
.sgy-ch.is-accent { color: var(--sgy-orange); }
.sgy-dot { display: inline-block; color: var(--sgy-amber); animation: sgy-drop .9s cubic-bezier(.3,0,.4,1) both; animation-delay: calc(2.75s + var(--i) * .2s); }
.sgy .sgy-hero_tate { flex: none; padding-top: 14px; writing-mode: vertical-rl; font-size: 14px; font-weight: 700; line-height: 1; letter-spacing: .34em; animation: sgy-unroll 1s cubic-bezier(.6,0,.2,1) 2.7s both; }
.sgy-hero_bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px 64px; padding-bottom: clamp(64px, 8vw, 128px); }
.sgy-hero_nav { flex: 0 1 360px; display: flex; flex-direction: column; border-top: 1px solid var(--sgy-ink); font-family: var(--sgy-en); font-weight: 700; font-size: 12px; letter-spacing: .08em; animation: sgy-rise .9s cubic-bezier(.2,.7,.2,1) 2.9s both; }
.sgy-hero_nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--sgy-ink); transition: background .18s ease, padding .18s ease; }
.sgy-hero_nav a:hover { background: var(--sgy-mist); padding: 0 10px; }
.sgy-hero_body { flex: 0 1 520px; display: flex; flex-direction: column; gap: 40px; animation: sgy-rise .9s cubic-bezier(.2,.7,.2,1) 3.05s both; }
.sgy-hero_lead { font-size: 16px; line-height: 2.1; color: var(--sgy-sub); }
.sgy-hero_cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
/* 鼓動：罫線を走る波形と、診断ボタンの脈（ローディングが終わってから繰り返す） */
.sgy-hero_pulse { position: absolute; left: 0; top: -40px; width: 100%; height: 80px; overflow: visible; pointer-events: none; }
.sgy-hero_pulse path {
  fill: none; stroke: var(--sgy-orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 150 850; stroke-dashoffset: 150; animation: sgy-pulse-run 2.6s linear 3.4s infinite;
}
.sgy .sgy-hero_cta .sgy-btn { animation: sgy-heart 2.6s ease-out 4.2s infinite; }
/* オレンジの「Web」「AI」が、波形に合わせて ドクン・ドクン と脈打つ */
.sgy-ch.is-accent { transform-origin: 50% 85%; animation: sgy-char .95s cubic-bezier(.16,.84,.24,1) both, sgy-thump 2.6s ease-in-out 4.1s infinite; animation-delay: calc(1.8s + var(--i) * .042s), 4.1s; }
@keyframes sgy-thump { 0% { transform: scale(1); } 7% { transform: scale(1.07); } 15% { transform: scale(1); } 23% { transform: scale(1.04); } 34%, 100% { transform: scale(1); } }
@keyframes sgy-pulse-run { from { stroke-dashoffset: 150; } to { stroke-dashoffset: -1000; } }
@keyframes sgy-heart {
  0% { box-shadow: 0 0 0 0 rgba(245,162,0,.6); }
  16% { box-shadow: 0 0 0 12px rgba(245,162,0,0); }
  17% { box-shadow: 0 0 0 0 rgba(245,162,0,.5); }
  42% { box-shadow: 0 0 0 20px rgba(245,162,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,162,0,0); }
}
@keyframes sgy-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes sgy-rule { from { transform: scaleX(0); } to { transform: none; } }
@keyframes sgy-char { from { transform: translateY(108%); } to { transform: none; } }
@keyframes sgy-drop { 0% { transform: translateY(-130%); } 55% { transform: translateY(0); } 70% { transform: translateY(-14%); } 85% { transform: translateY(0); } 93% { transform: translateY(-4%); } 100% { transform: none; } }
@keyframes sgy-unroll { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* 流れる帯（共通） */
.sgy-ticker { overflow: hidden; }
.sgy-ticker_track { display: flex; align-items: center; width: max-content; white-space: nowrap; animation: sgy-ticker 38s linear infinite; }
.sgy-ticker:hover .sgy-ticker_track.is-pausable { animation-play-state: paused; }
@keyframes sgy-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sgy-hero_band { border-top: 1px solid var(--sgy-ink); padding: 22px 0; }
.sgy-hero_band .sgy-ticker_track { gap: 40px; padding-right: 40px; font-weight: 900; font-size: clamp(26px, 3.8vw, 52px); line-height: 1.2; }
.sgy-hero_band i { font-style: normal; color: var(--sgy-amber); }

/* =========================================================
   OUR SERVICES（クイックリンク）
   ========================================================= */
.sgy-quick_grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); padding: 0 1px 1px 0; }
.sgy .sgy-quick_item {
  display: flex; align-items: center; gap: 20px; min-height: 132px; margin: 0 -1px -1px 0; padding: 20px 28px;
  background: #fff; border: 1px solid var(--sgy-ink); transition: background .18s ease, color .18s ease;
}
.sgy-quick_icon { color: var(--sgy-orange); display: flex; }
.sgy-quick_text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sgy .sgy-quick_name { font-size: 22px; font-weight: 900; line-height: 1.45; }
.sgy .sgy-quick_desc { font-size: 14px; line-height: 1.7; color: var(--sgy-sub); transition: color .18s ease; }
.sgy-quick_item .sgy-go { margin-left: auto; }
.sgy .sgy-quick_item:hover { background: var(--sgy-ink); color: #fff; }
.sgy .sgy-quick_item:hover .sgy-quick_desc { color: #d6d6d6; }
.sgy-quick_item:hover .sgy-go { transform: translate(3px, -3px); }
.sgy-diag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: clamp(30px, 3.6vw, 48px); background: var(--sgy-tint); border: 1px dashed var(--sgy-amber); }
.sgy-diag_text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 2px; }
.sgy .sgy-diag_head { font-size: 20px; font-weight: 900; line-height: 1.5; }
.sgy .sgy-diag_sub { font-size: 15px; color: var(--sgy-sub); }

/* =========================================================
   WORKS
   ========================================================= */
.sgy-works_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; grid-auto-rows: clamp(200px, 19vw, 260px); }
.sgy .sgy-work { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--sgy-line); color: #fff; background: #111; }
.sgy .sgy-work:hover { color: #fff; }
.sgy-work:first-child { grid-column: span 2; grid-row: span 2; }
.sgy .sgy-work img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.6) contrast(1.1); transition: transform .6s ease, filter .4s ease; }
.sgy .sgy-work:hover img { transform: scale(1.04); filter: grayscale(0) brightness(.8) contrast(1.05); }
.sgy-work::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 75%; background: linear-gradient(transparent, rgba(5,5,5,.96)); }
.sgy-work_cap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.sgy-work:first-child .sgy-work_cap { gap: 6px; padding: clamp(18px, 2.4vw, 32px); }
.sgy-work_cat { font-family: var(--sgy-en); font-weight: 700; font-size: 11px; letter-spacing: .1em; color: var(--sgy-amber); }
.sgy .sgy-work_title { font-size: 16px; font-weight: 900; line-height: 1.5; }
.sgy .sgy-work:first-child .sgy-work_title { font-size: clamp(18px, 2vw, 26px); }

/* =========================================================
   SERVICE（事業内容）
   ========================================================= */
.sgy-svc { display: flex; flex-direction: column; border-top: 1px solid var(--sgy-ink); }
.sgy-svc_row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 40px; padding: clamp(40px, 4.8vw, 68px) 12px; border-bottom: 1px solid var(--sgy-ink); transition: background .18s ease; }
.sgy-svc_row:hover { background: #ecebe6; }
.sgy-svc_num { flex: none; font-family: var(--sgy-en); font-weight: 900; font-size: clamp(40px, 5vw, 72px); line-height: 1; color: #f4d7b4; }
.sgy-svc_body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sgy .sgy-svc_title { font-family: var(--sgy-en); font-weight: 900; font-size: clamp(20px, 2.8vw, 38px); line-height: 1.2; }
.sgy .sgy-svc_title a:hover { color: var(--sgy-orange); }
.sgy-svc_tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.sgy .sgy-svc_tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #9a9a95; background: transparent; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.sgy .sgy-svc_tags a:hover { background: var(--sgy-ink); border-color: var(--sgy-ink); color: #fff; }
.sgy .sgy-svc_tags a.is-ai { min-height: 44px; padding: 0 16px; border-color: var(--sgy-amber); color: var(--sgy-orange-d); }
.sgy .sgy-svc_tags a.is-ai:hover { background: var(--sgy-amber); border-color: var(--sgy-amber); color: #050505; }
.sgy .sgy-svc_desc { max-width: 720px; font-size: 15px; color: var(--sgy-sub); }
.sgy .sgy-svc_more { flex: none; align-self: center; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; }
.sgy-svc_row:hover .sgy-svc_more .sgy-go { transform: translateX(6px); color: var(--sgy-orange); }

/* =========================================================
   ABOUT（つくって終わりにしない）
   ========================================================= */
.sgy .sgy-about_title { font-size: clamp(30px, 5vw, 68px); font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
.sgy-about_title em { font-style: normal; color: var(--sgy-orange); }
.sgy-about_state { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 64px; }
.sgy .sgy-about_text { flex: 1 1 420px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 700; line-height: 2.1; }
.sgy-about_claim { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.sgy .sgy-about_big { font-size: clamp(32px, 5.4vw, 76px); font-weight: 900; line-height: 1.2; color: var(--sgy-orange); }
.sgy .sgy-about_note { font-size: 15px; color: var(--sgy-sub); }
.sgy-biz { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.sgy-biz_band { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-bottom: 1px solid var(--sgy-ink); }
.sgy-biz_row { padding: 14px 0; border-top: 1px solid var(--sgy-ink); }
.sgy-biz_row .sgy-ticker_track { gap: 44px; padding-right: 44px; font-size: clamp(28px, 4.4vw, 60px); font-weight: 900; line-height: 1.3; animation-duration: 40s; }
.sgy-biz_row.is-rev .sgy-ticker_track { animation-duration: 46s; animation-direction: reverse; }
.sgy .sgy-biz_row a { display: inline-flex; align-items: center; gap: 18px; transition: color .18s ease; }
.sgy .sgy-biz_row a:hover { color: var(--sgy-orange); }
.sgy-biz_row .material-icons { font-size: clamp(30px, 3.6vw, 48px); color: var(--sgy-orange); }
.sgy-biz_row i.sep { font-style: normal; color: var(--sgy-amber); }

/* =========================================================
   VOICE
   ========================================================= */
.sgy-voice_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; padding-bottom: clamp(0px, 6.8vw, 96px); align-items: start; }
.sgy-voice_card { display: flex; flex-direction: column; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--sgy-ink); }
.sgy-voice_card:nth-child(3n+2) { transform: translateY(clamp(0px, 3.4vw, 48px)); }
.sgy-voice_card:nth-child(3n) { transform: translateY(clamp(0px, 6.8vw, 96px)); }
.sgy-voice_card svg { color: var(--sgy-amber); }
.sgy .sgy-voice_text { font-size: 15px; font-weight: 700; line-height: 1.85; }
.sgy .sgy-voice_name { padding-top: 14px; border-top: 1px solid var(--sgy-ink); font-size: 13px; font-weight: 900; line-height: 1.6; }
/* お客様の声：PCは6件まで表示し、7件目以降は半透明で上部だけ見せる（.is-collapsed は JS が付ける＝JSなしでは全件表示） */
.sgy-voice_more { display: none; }
@media (min-width: 901px) {
  .sgy-sec.is-collapsed .sgy-voice_card:nth-child(n+7) {
    max-height: 150px; overflow: hidden; pointer-events: none; user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0) 92%); mask-image: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0) 92%);
  }
  .sgy-sec.is-collapsed .sgy-voice_more { display: flex; justify-content: center; position: relative; z-index: 1; max-width: 1040px; margin-top: -60px; }
  .sgy-voice_more .sgy-ghost { gap: 12px; padding: 0 40px; background: #fff; cursor: pointer; font-family: inherit; font-weight: 900; }
  .sgy-voice_more .sgy-ghost svg { transition: transform .2s ease; }
  .sgy-voice_more .sgy-ghost:hover svg { transform: translateY(3px); }
}

/* =========================================================
   DATA LOGS（技術ブログ）
   ========================================================= */
.sgy-blog { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.sgy .sgy-blog_main { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sgy-amber); transition: background .2s ease, transform .2s ease; }
.sgy .sgy-blog_main:hover { background: var(--sgy-tint); transform: translateY(-3px); }
.sgy-blog_thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.sgy .sgy-blog_thumb img { width: 100%; height: 100%; object-fit: cover; }
.sgy-blog_mainbody { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 36px); }
.sgy-blog_meta { font-family: var(--sgy-en); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--sgy-orange-d); }
.sgy .sgy-blog_maintitle { font-size: clamp(20px, 2.2vw, 28px); font-weight: 900; line-height: 1.5; }
.sgy-blog_read { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.sgy-blog_main:hover .sgy-go { transform: translateX(6px); color: var(--sgy-orange); }
.sgy-blog_list { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--sgy-ink); }
.sgy .sgy-blog_item { display: flex; flex-direction: column; gap: 4px; padding: 26px 12px; border-bottom: 1px solid var(--sgy-ink); transition: background .18s ease; }
.sgy .sgy-blog_item:hover { background: var(--sgy-mist); }
.sgy .sgy-blog_itemtitle { font-size: 16px; font-weight: 700; line-height: 1.6; }

/* =========================================================
   NEWS
   ========================================================= */
.sgy-news > .sgy-inner { flex-direction: row; flex-wrap: wrap; gap: 28px 64px; }
.sgy-news_side { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sgy-news_list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--sgy-ink); }
.sgy .sgy-news_item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 32px; padding: 32px 12px; border-bottom: 1px solid var(--sgy-ink); transition: background .18s ease; }
.sgy .sgy-news_item:hover { background: var(--sgy-mist); }
.sgy-news_date { flex: none; font-family: var(--sgy-en); font-weight: 700; font-size: 14px; color: var(--sgy-orange-d); }
.sgy-news_title { flex: 1 1 360px; font-weight: 700; line-height: 1.7; }

/* =========================================================
   ABOUT US（私たちについて）
   ========================================================= */
.sgy-links { display: flex; height: clamp(300px, 29vw, 420px); border: 1px solid var(--sgy-ink); background: #fff; }
.sgy .sgy-links a {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  padding: clamp(16px, 1.8vw, 26px); border-right: 1px solid var(--sgy-ink); background: #fff; color: var(--sgy-ink);
  transition: flex-grow .5s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease;
}
.sgy .sgy-links a:last-child { border-right: 0; }
.sgy-links_ja { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: none; font-size: 15px; font-weight: 900; line-height: 1.5; }
.sgy-links_en {
  align-self: flex-start; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--sgy-en); font-weight: 900; font-size: clamp(22px, 2.9vw, 44px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
  transition: color .25s ease;
}
.sgy .sgy-links a:hover, .sgy .sgy-links a:focus-visible { flex-grow: 2; background: var(--sgy-ink); color: #fff; }
.sgy-links a:hover .sgy-links_en, .sgy-links a:focus-visible .sgy-links_en { color: var(--sgy-amber); }
.sgy-links a:hover .sgy-go, .sgy-links a:focus-visible .sgy-go { color: var(--sgy-amber); transform: translate(4px, -4px); }

/* =========================================================
   RECOMMEND
   ========================================================= */
.sgy-rec { display: flex; flex-wrap: wrap; gap: 20px; }
.sgy .sgy-rec_item { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 250px; padding: 34px; background: #fff; border: 1px solid var(--sgy-ink); transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.sgy .sgy-rec_item:hover { background: var(--sgy-tint); border-color: var(--sgy-amber); transform: translateY(-3px); }
.sgy-rec_item .sgy-go { align-self: flex-end; }
.sgy-rec_item:hover .sgy-go { transform: translate(4px, -4px); }
.sgy-rec_text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sgy-rec_label { padding: 2px 12px; border: 1px solid var(--sgy-ink); font-size: 13px; font-weight: 900; }
.sgy .sgy-rec_title { font-size: 21px; font-weight: 900; line-height: 1.55; }
.sgy .sgy-rec_sub { font-size: 14px; color: var(--sgy-sub); }
.sgy .sgy-rec_item.is-main { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; min-height: 0; padding: clamp(32px, 4.4vw, 64px); background: var(--sgy-amber); border-color: var(--sgy-amber); }
.sgy .sgy-rec_item.is-main:hover { background: #ffb21a; transform: none; }
.sgy-rec_item.is-main .sgy-rec_label { padding: 3px 14px; background: var(--sgy-ink); color: #fff; }
.sgy .sgy-rec_item.is-main .sgy-rec_title { font-size: clamp(32px, 5.4vw, 76px); line-height: 1.15; letter-spacing: -0.02em; }
.sgy .sgy-rec_item.is-main .sgy-rec_sub { font-size: 16px; font-weight: 700; color: var(--sgy-ink); }
.sgy .sgy-rec_item.is-ai { flex: 1.5 1 320px; background: var(--sgy-ink); color: #fff; }
.sgy .sgy-rec_item.is-ai:hover { background: #2b2b2b; border-color: var(--sgy-ink); color: #fff; }
.sgy-rec_item.is-ai .sgy-rec_label { background: var(--sgy-amber); border-color: var(--sgy-amber); color: #111; }
.sgy .sgy-rec_item.is-ai .sgy-rec_title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; }
.sgy .sgy-rec_item.is-ai .sgy-rec_sub { color: #d6d6d6; }

/* =========================================================
   CONTACT US（トップのみ。template-parts/top-contact.php）
   ========================================================= */
.sgy-contact { background: var(--sgy-amber); color: #050505; font-family: var(--sgy-jp); font-weight: 500; font-size: 16px; line-height: 1.9; letter-spacing: 0; text-align: left; }
.sgy-contact *, .sgy-contact *::before, .sgy-contact *::after { box-sizing: border-box; }
.sgy-contact h2, .sgy-contact p { margin: 0; padding: 0; letter-spacing: inherit; }
.sgy-contact a { text-decoration: none; }
.sgy-contact a:hover { opacity: 1; }
.sgy-contact > .sgy-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 36px 64px; padding-top: var(--sgy-sec); padding-bottom: var(--sgy-sec); }
.sgy-contact_info { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sgy-contact_en { font-family: var(--sgy-en); font-weight: 900; font-size: clamp(34px, 6vw, 88px); line-height: .98; letter-spacing: -0.03em; white-space: nowrap; word-break: keep-all; overflow-wrap: normal; }
.sgy-contact .sgy-contact_ja { font-size: clamp(22px, 2.3vw, 32px); font-weight: 900; line-height: 1.4; }
.sgy-contact .sgy-contact_desc { max-width: 560px; font-weight: 700; }
.sgy-contact_mark { background: #050505; color: #fff; padding: 3px 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sgy-contact_actions { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sgy-contact_btn { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; padding: 0 28px; transition: background .18s ease, color .18s ease; }
.sgy-contact_btn > span { display: flex; flex-direction: column; }
.sgy-contact a.sgy-contact_btn.is-form { background: #050505; color: #fff; }
.sgy-contact a.sgy-contact_btn.is-form:hover { background: #2b2b2b; color: #fff; }
.sgy-contact a.sgy-contact_btn.is-tel { border: 2px solid #050505; color: #050505; }
.sgy-contact a.sgy-contact_btn.is-tel:hover { background: #050505; color: #fff; }
.sgy-contact_main { font-size: 21px; font-weight: 900; line-height: 1.5; }
.sgy-contact_small { font-size: 13px; font-weight: 700; }
.sgy-contact_tel { font-family: var(--sgy-en); font-weight: 900; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }

/* =========================================================
   スクロール連動（対応ブラウザのみ。未対応は動きなしでそのまま表示）
   ========================================================= */
@keyframes sgy-fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes sgy-slit { from { clip-path: inset(50% 0 50% 0); opacity: .15; } to { clip-path: inset(-12px); opacity: 1; } }
@keyframes sgy-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(-12px); } }
@keyframes sgy-raise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sgy-widen { from { clip-path: inset(0 16% 0 16%); } to { clip-path: inset(0 0 0 0); } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sgy-head_en {
      color: transparent; background-image: linear-gradient(90deg, #111 50%, #e0e0db 50%); background-size: 200% 100%; background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text;
      animation: sgy-fill linear both; animation-timeline: view(); animation-range: entry 60% cover 42%;
    }
    .sgy-svc_num {
      color: transparent; background-image: linear-gradient(90deg, var(--sgy-orange) 50%, #f4d7b4 50%); background-size: 200% 100%; background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text;
      animation: sgy-fill linear both; animation-timeline: view(); animation-range: entry 100% cover 45%;
    }
    .sgy .sgy-about_big {
      color: transparent; background-image: linear-gradient(90deg, var(--sgy-orange) 50%, #f4d7b4 50%); background-size: 200% 100%; background-position: 100% 0;
      -webkit-background-clip: text; background-clip: text;
      animation: sgy-fill linear both; animation-timeline: view(); animation-range: entry 80% cover 48%;
    }
    .sgy-slit > * { animation: sgy-slit linear both; animation-timeline: view(); animation-range: entry 0% cover 26%; }
    .sgy-slit > *:nth-child(3n+2) { animation-range: entry 12% cover 31%; }
    .sgy-slit > *:nth-child(3n) { animation-range: entry 24% cover 36%; }
    .sgy-svc_row, .sgy .sgy-blog_item, .sgy .sgy-news_item { animation: sgy-wipe linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
    .sgy .sgy-work { animation: sgy-raise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .sgy-contact { animation: sgy-widen linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .sgy-thread_line { display: block; animation: sgy-grow linear both; animation-timeline: scroll(root); }
    .sgy-thread_runner { display: block; animation: sgy-run linear both; animation-timeline: scroll(root); }
  }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  .sgy-loader { display: none; }
  .sgy-ch, .sgy-dot, .sgy-hero_rule, .sgy-hero_tate, .sgy-hero_area, .sgy-hero_nav, .sgy-hero_body { animation: none; }
  .sgy-hero_pulse { display: none; }
  .sgy-ch.is-accent { animation: none; }
  .sgy .sgy-hero_cta .sgy-btn { animation: none; }
  .sgy-ticker_track { animation: none; flex-wrap: wrap; width: auto; white-space: normal; row-gap: 12px; }
  .sgy-ticker_track .is-dup { display: none !important; }
}

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
  .sgy-works_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 34vw, 240px); }
  .sgy-voice_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 0; }
  .sgy-voice_card:nth-child(3n+2), .sgy-voice_card:nth-child(3n) { transform: none; }
  .sgy-voice_card:nth-child(2n) { transform: translateY(24px); }
  .sgy-voice_grid { padding-bottom: 24px; }
}
@media (max-width: 760px) {
  .sgy .sgy-hero_tate { display: none; }
  .sgy-links { flex-direction: column; height: auto; }
  .sgy .sgy-links a { flex: none; flex-direction: row; align-items: center; gap: 16px; padding: 20px 18px; border-right: 0; border-bottom: 1px solid var(--sgy-ink); }
  .sgy .sgy-links a:last-child { border-bottom: 0; }
  .sgy .sgy-links a:hover, .sgy .sgy-links a:focus-visible { flex-grow: 0; }
  .sgy-links_en { order: -1; writing-mode: horizontal-tb; transform: none; align-self: center; font-size: 22px; }
  .sgy-links_ja { flex: 1; font-size: 14px; font-weight: 700; }
}
@media (max-width: 599px) {
  /* FV：スマホは見出しを画面幅いっぱいに。リード文とボタンを見出しの直後へ、英字の案内はその下へ */
  .sgy-hero > .sgy-inner { gap: 28px; padding-top: 20px; }
  .sgy .sgy-hero_title { font-size: calc((100vw - var(--sgy-pad) * 2) / 5.8); line-height: 1.16; }
  .sgy-hero_line + .sgy-hero_line { padding-left: 0; }
  .sgy-hero_bottom { gap: 40px; }
  .sgy-hero_body { order: -1; flex: 1 1 100%; gap: 28px; }
  .sgy .sgy-hero_lead { font-size: 17px; font-weight: 700; line-height: 1.9; color: var(--sgy-ink); }
  .sgy-hero_cta .sgy-btn { flex: 1 1 100%; justify-content: space-between; }
  .sgy-hero_nav { flex: 1 1 100%; }
  .sgy-works_grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
  .sgy-work:first-child { grid-column: auto; grid-row: auto; }
  /* お客様の声：スマホは横スライド（指で左右に送る。次のカードを少し見せる） */
  .sgy-voice_grid {
    display: flex; align-items: stretch; gap: 12px; max-width: none;
    margin-left: calc(var(--sgy-pad) * -1); margin-right: calc(var(--sgy-pad) * -1); padding: 0 var(--sgy-pad) 4px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scroll-padding-left: var(--sgy-pad); scroll-padding-right: var(--sgy-pad); scrollbar-width: none;
  }
  .sgy-voice_grid::-webkit-scrollbar { display: none; }
  .sgy-voice_grid > .sgy-voice_card { flex: 0 0 84%; scroll-snap-align: start; animation: none; }
  .sgy-voice_card:nth-child(n) { transform: none; }
  .sgy-voice_card .sgy-voice_name { margin-top: auto; }
  .sgy .sgy-quick_item { min-height: 104px; padding: 16px 18px; gap: 14px; }
  .sgy .sgy-quick_name { font-size: 19px; }
  .sgy-svc_more { display: none !important; }
}
