@charset "utf-8";
/* ==========================================================================
   STACK TRUST — TOP ページ専用スタイル

   受領した styles.css をそのまま移植したもの。変更点は3つだけ。
     1. :root と共通シェル（ヘッダー/フッター/リセット/.reveal）は base.css へ移した
     2. 残りのセレクタに .p-front を前置して名前空間化した
     3. assets/*.jpg の参照を assets/img/<幹>-<幅>.webp へ差し替え、
        WebP版を image-set() で後置した
   見た目は styles.css と同じになるようにしてある。
   ========================================================================== */

.p-front .hero{min-height:760px;height:100vh;position:relative;background:#111;color:#fff}
.p-front .hero-image{position:absolute;inset:0;background:url("../img/ai-stadium-match-broadcast-1920.webp") center/cover no-repeat}
.p-front .hero-wash{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.48) 38%,rgba(0,0,0,.08) 70%),linear-gradient(0deg,rgba(0,0,0,.32),transparent 45%)}
.p-front .hero-copy{position:absolute;left:7vw;top:50%;transform:translateY(-48%);max-width:690px}
.p-front .eyebrow{margin:0 0 28px;font:500 11px/1.2 'Inter',sans-serif;letter-spacing:.22em}
.p-front .eyebrow span{font-family:'Noto Sans JP';letter-spacing:.12em;margin-left:12px;font-weight:400}
.p-front .eyebrow.dark{color:#232323}
.p-front .hero h1{font-size:clamp(48px,6vw,88px);line-height:1.18;letter-spacing:.02em;margin:0 0 32px;font-weight:400}
.p-front .hero-lead{font-size:15px;line-height:2.1;color:rgba(255,255,255,.88)}
.p-front .hero-en{margin-top:54px;font:500 10px/1 'Inter';letter-spacing:.2em}
.p-front .hero-side{position:absolute;right:4vw;top:18%;display:flex;flex-direction:column;align-items:flex-end;gap:9px;font:500 10px/1 'Inter';letter-spacing:.17em}
.p-front .hero-side i{display:block;width:1px;height:90px;background:rgba(255,255,255,.45);margin:12px 8px}
.p-front .hero-side small{font:300 13px/1.8 'Noto Serif JP';letter-spacing:.08em;text-align:right}
.p-front .hero-index{position:absolute;right:5vw;bottom:52px;display:flex;gap:8px;align-items:baseline}
.p-front .hero-index b{font:500 22px/1 'Inter'}
.p-front .hero-index span{font:400 10px/1 'Inter';opacity:.65}
.p-front .hero-index i{width:80px;height:1px;background:rgba(255,255,255,.6);margin-left:14px}
.p-front .section{padding:120px 6vw}
.p-front .section-heading{max-width:var(--max);margin:0 auto 72px}
.p-front .split-heading, .p-front .horizontal{display:flex;justify-content:space-between;align-items:flex-end;gap:50px}
.p-front .section-heading h2, .p-front .sports-copy h2, .p-front .about-copy h2, .p-front .instagram-head h2{font-size:clamp(34px,4vw,58px);font-weight:400;line-height:1.35;letter-spacing:.02em;margin:0}
.p-front .section-intro{color:#666;font-size:14px;line-height:2}
.p-front .service-grid{max-width:var(--max);margin:auto;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #ccc;border-left:1px solid #ddd}
.p-front .service-card{padding:30px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;display:flex;flex-direction:column;min-height:580px}
.p-front .service-no{font:500 11px/1 'Inter';color:#999}
.p-front .service-title{margin:48px 0 24px}
.p-front .service-title span{font:500 10px/1 'Inter';letter-spacing:.18em;color:#777}
.p-front .service-title h3{font-size:24px;font-weight:500;margin:8px 0 0}
.p-front .service-card img{aspect-ratio:4/3;object-fit:cover;filter:saturate(.82)}
.p-front .service-card p{font-size:13px;color:#666;margin:24px 0 32px;line-height:1.9}
.p-front .service-card a{margin-top:auto;border-top:1px solid #bbb;padding-top:16px;font-size:12px;display:flex;justify-content:space-between}
.p-front .sports-feature{display:grid;grid-template-columns:1.08fr .92fr;background:#0c0d0f;color:#fff;position:relative}
.p-front .sports-photo{min-height:720px}
.p-front .sports-photo img{height:100%;object-fit:cover;filter:brightness(.72) saturate(.8)}
.p-front .sports-copy{padding:110px 7vw 200px}
.p-front .sports-copy p:not(.eyebrow){font-size:14px;line-height:2;color:#c9c9c9;max-width:560px}
.p-front .outline-button{display:inline-flex;border:1px solid rgba(255,255,255,.55);padding:18px 22px;margin-top:28px;min-width:260px;justify-content:space-between;font-size:12px}
.p-front .sports-list{position:absolute;right:4vw;bottom:42px;width:44%;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,.25)}
.p-front .sports-list article{padding:22px 18px;border-right:1px solid rgba(255,255,255,.18)}
.p-front .sports-list span{font:500 9px/1 'Inter';letter-spacing:.14em;color:#9fa3a8}
.p-front .sports-list strong{display:block;font-size:15px;margin:12px 0 5px}
.p-front .sports-list p{font-size:11px;color:#8e9298;margin:0}
.p-front .works-section{background:#f4f4f2}
.p-front .works-tabs{display:flex;gap:4px;flex-wrap:wrap}
.p-front .works-tabs button{background:transparent;border:1px solid #c9c9c9;padding:12px 18px;font-size:11px;cursor:pointer}
.p-front .works-tabs button.active{background:#111;color:#fff;border-color:#111}
.p-front .works-grid{max-width:var(--max);margin:auto;display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.p-front .work-card{background:#fff;border:1px solid #dedede;padding:30px;min-height:330px;display:flex;flex-direction:column;transition:transform .25s}
.p-front .work-card:hover{transform:translateY(-4px)}
.p-front .work-card.hidden{display:none}
.p-front .work-card-head{display:flex;justify-content:space-between;border-bottom:1px solid #ddd;padding-bottom:18px}
.p-front .work-card-head small, .p-front .work-card-head span{font:500 9px/1 'Inter';letter-spacing:.13em;color:#777}
.p-front .work-card-body{padding:30px 0}
.p-front .work-type{font:500 10px/1 'Inter';letter-spacing:.14em;color:#777}
.p-front .work-card h3{font-size:22px;font-weight:500;line-height:1.5;margin:12px 0}
.p-front .work-card-body>p:last-child{font-size:13px;color:#666}
.p-front .work-meta{margin-top:auto;display:flex;gap:7px;flex-wrap:wrap}
.p-front .work-meta span{font:500 9px/1 'Inter';letter-spacing:.08em;border:1px solid #ddd;padding:7px 9px}
.p-front .works-more{max-width:var(--max);margin:24px auto 0;background:#111;color:#fff;padding:28px 34px;display:flex;justify-content:space-between;align-items:center}
.p-front .works-more-label{display:flex;flex-direction:column}
.p-front .works-more-label small{font:500 9px/1 'Inter';letter-spacing:.15em;color:#aaa}
.p-front .works-more-label strong{font-size:14px;margin-top:8px}
.p-front .works-more-arrow{font-size:24px}
.p-front .numbers{padding:80px 6vw 105px;background:#fff}
.p-front .numbers-head{max-width:var(--max);margin:auto;display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid #ccc;padding-bottom:24px}
.p-front .numbers-head>p:last-child{font-size:13px;color:#666}
.p-front .number-grid{max-width:var(--max);margin:auto;display:grid;grid-template-columns:repeat(5,1fr)}
.p-front .number-grid>div{padding:45px 24px;border-right:1px solid #ddd}
.p-front .number-grid>div:first-child{border-left:1px solid #ddd}
.p-front .number-grid strong{font:500 clamp(22px,2.4vw,42px)/1 'Inter';letter-spacing:-.03em}
.p-front .number-grid sup{font-size:.42em}
.p-front .number-grid span{display:block;font-size:11px;line-height:1.6;color:#777;margin-top:20px}
.p-front .about{display:grid;grid-template-columns:1.1fr .9fr;background:#efefec}
.p-front .about-image{min-height:690px}
.p-front .about-image img{height:100%;object-fit:cover;filter:saturate(.78)}
.p-front .about-copy{padding:110px 8vw;align-self:center}
.p-front .about-copy>p:not(.eyebrow){font-size:14px;line-height:2.1;color:#5f5f5f;max-width:580px}
.p-front .black-button{display:inline-flex;background:#111;color:#fff;padding:18px 22px;min-width:230px;justify-content:space-between;font-size:12px;margin-top:28px}
.p-front .instagram-section{padding:120px 6vw}
.p-front .instagram-head{max-width:var(--max);margin:auto auto 58px;display:flex;justify-content:space-between;align-items:flex-end;gap:60px}
.p-front .instagram-intro p{font-size:13px;color:#666}
.p-front .instagram-intro a{font:500 11px/1 'Inter';letter-spacing:.08em;border-bottom:1px solid #222;padding-bottom:6px}
.p-front .instagram-grid{max-width:var(--max);margin:auto;display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:250px;gap:8px}
.p-front .instagram-card{position:relative;overflow:hidden;background:#ddd}
.p-front .instagram-card.ig-large{grid-column:span 2;grid-row:span 2}
.p-front .instagram-card img{height:100%;object-fit:cover;transition:transform .35s;filter:saturate(.85)}
.p-front .instagram-card:hover img{transform:scale(1.03)}
.p-front .instagram-card span{position:absolute;left:14px;bottom:12px;color:#fff;background:rgba(0,0,0,.55);padding:6px 8px;font:500 8px/1 'Inter';letter-spacing:.12em}
.p-front .instagram-follow{max-width:var(--max);margin:22px auto 0;display:flex;justify-content:space-between;border-top:1px solid #bbb;padding-top:20px}
.p-front .instagram-follow p, .p-front .instagram-follow a{font:500 9px/1 'Inter';letter-spacing:.12em}
.p-front .news-contact{display:grid;grid-template-columns:1fr 1fr;gap:0;padding-top:0}
.p-front .news-block{padding:70px 5vw;background:#f4f4f2}
.p-front .section-mini-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #bbb}
.p-front .section-mini-head a{font-size:10px}
.p-front .news-list a{display:grid;grid-template-columns:100px 70px 1fr;align-items:center;padding:22px 0;border-bottom:1px solid #d7d7d7;gap:16px}
.p-front .news-list time, .p-front .news-list span{font:500 9px/1 'Inter';letter-spacing:.08em;color:#777}
.p-front .news-list p{font-size:12px;margin:0}
.p-front .contact-card{position:relative;min-height:520px;color:#fff}
.p-front .contact-card>img,.p-front .contact-card>picture>img{position:absolute;inset:0;height:100%;object-fit:cover}
.p-front .contact-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.2))}
.p-front .contact-copy{position:absolute;left:8%;top:50%;transform:translateY(-50%);max-width:520px}
.p-front .contact-copy>p:first-child{font:500 9px/1 'Inter';letter-spacing:.17em}
.p-front .contact-copy h2{font-size:clamp(27px,3vw,44px);font-weight:400;line-height:1.5}
.p-front .contact-copy>p:not(:first-child){font-size:13px;color:#ddd}
.p-front .contact-copy a{display:inline-flex;margin-top:20px;border:1px solid rgba(255,255,255,.65);padding:16px 20px;min-width:210px;justify-content:space-between;font-size:12px}
@media(max-width:980px){
.p-front .hero{height:100vh;min-height:650px}
.p-front .hero-copy{left:7vw;right:12vw}
.p-front .hero h1{font-size:clamp(44px,11vw,72px)}
.p-front .hero-side{display:none}
.p-front .service-grid{grid-template-columns:repeat(2,1fr)}
.p-front .sports-feature{grid-template-columns:1fr}
.p-front .sports-photo{min-height:500px}
.p-front .sports-copy{padding:80px 7vw 190px}
.p-front .sports-list{width:86%;right:7vw}
.p-front .number-grid{grid-template-columns:repeat(2,1fr)}
.p-front .number-grid>div{border:1px solid #ddd;border-top:0}
.p-front .about{grid-template-columns:1fr}
.p-front .about-image{min-height:520px}
.p-front .instagram-grid{grid-template-columns:repeat(2,1fr)}
.p-front .news-contact{grid-template-columns:1fr}
}
@media(max-width:640px){
.p-front .section{padding:84px 22px}
.p-front .split-heading, .p-front .horizontal, .p-front .instagram-head{display:block}
.p-front .section-intro{margin-top:25px}
.p-front .section-heading{margin-bottom:44px}
.p-front .service-grid{grid-template-columns:1fr;border-left:0}
.p-front .service-card{min-height:auto;padding:24px}
.p-front .service-card img{aspect-ratio:16/10}
.p-front .sports-photo{min-height:390px}
.p-front .sports-copy{padding:70px 24px 250px}
.p-front .sports-list{grid-template-columns:1fr;width:calc(100% - 48px);right:24px}
.p-front .sports-list article{padding:14px 8px}
.p-front .works-grid{grid-template-columns:1fr}
.p-front .works-tabs{margin-top:28px}
.p-front .numbers{padding:65px 22px}
.p-front .numbers-head{display:block}
.p-front .number-grid{grid-template-columns:1fr 1fr}
.p-front .number-grid>div{padding:30px 18px}
.p-front .about-image{min-height:400px}
.p-front .about-copy{padding:75px 24px}
.p-front .instagram-section{padding:84px 22px}
.p-front .instagram-intro{margin-top:24px}
.p-front .instagram-grid{grid-auto-rows:170px}
.p-front .instagram-card.ig-large{grid-column:span 2;grid-row:span 2}
.p-front .news-contact{padding:0}
.p-front .news-block{padding:58px 22px}
.p-front .news-list a{grid-template-columns:80px 54px 1fr;gap:8px}
.p-front .contact-card{min-height:470px}
}

/* --------------------------------------------------------------------------
   Instagram（Smash Balloon）の出力を、元のカードデザインに合わせる

   プラグインは #sb_instagram > #sbi_images > .sbi_item という3階層で、
   幅を % のインラインスタイルで持つ。そのままではグリッドに載らないため、
   間の2階層を display:contents で畳み、.sbi_item を直接グリッドの子にする。
   インライン幅は JS が後から書き換えることがあるので !important で上書きする。
   -------------------------------------------------------------------------- */
.p-front .instagram-grid #sb_instagram{display:contents}
.p-front .instagram-grid #sbi_images{display:contents !important;padding:0 !important}
.p-front .instagram-grid #sbi_header,
.p-front .instagram-grid #sbi_load,
.p-front .instagram-grid .sbi_follow_btn,
.p-front .instagram-grid .sb_instagram_error{display:none !important}

.p-front .instagram-grid .sbi_item{
  width:auto !important;padding:0 !important;margin:0 !important;
  position:relative;overflow:hidden;background:#ddd;
}
/* 全カード同サイズ。4列×2段＝8枚でちょうど埋まる。 */

.p-front .instagram-grid .sbi_photo_wrap,
.p-front .instagram-grid .sbi_photo{display:block;height:100%;width:100%;padding:0}
/* 画像は <img> のときと、背景画像の <div> のときがある。両方に当てる。 */
.p-front .instagram-grid .sbi_photo img,
.p-front .instagram-grid .sbi_photo > div{
  display:block;width:100%;height:100%;
  object-fit:cover;background-size:cover;background-position:center;
  transition:transform .35s var(--ease);filter:saturate(.85);
}
.p-front .instagram-grid .sbi_item:hover .sbi_photo img,
.p-front .instagram-grid .sbi_item:hover .sbi_photo > div{transform:scale(1.03)}

/* display:contents にすると、畳んだ要素の ::before / ::after だけが
   グリッドの子として残り、空の行が1段できてしまう。
   （Smash Balloon は #sbi_images に clearfix の ::after を持つ） */
.p-front .instagram-grid #sb_instagram::before,
.p-front .instagram-grid #sb_instagram::after,
.p-front .instagram-grid #sbi_images::before,
.p-front .instagram-grid #sbi_images::after{content:none !important;display:none !important}

/* 取得件数が増えても段が崩れないよう、表示は先頭10件までに固定する。
   （PCは5列×2段、SPは2列×5段。どちらもちょうど埋まる） */
.p-front .instagram-grid .sbi_item:nth-of-type(n+11){display:none !important}

/* PCだけ5列にする。SPの2列指定（max-width:980px）を上書きしないよう
   min-width で囲う。 */
@media (min-width:981px){
  .p-front .instagram-grid:has(.sbi_item){grid-template-columns:repeat(5,1fr)}
}

/* Instagram の写真は 1:1 で配信されるため、升目も正方形にして全体を見せる。
   grid-auto-rows を auto にして、高さは aspect-ratio:1 のカードに決めさせる。
   静的フォールバック時は従来どおり 250px 固定なので :has() で出し分ける。 */
.p-front .instagram-grid:has(.sbi_item){grid-auto-rows:auto}
.p-front .instagram-grid .sbi_item{aspect-ratio:1/1;height:auto}

/* --------------------------------------------------------------------------
   縦長画面でのヒーロー写真の位置
   横長写真を縦長の画面に cover で敷くと、高さ基準で拡大されて左右が大きく
   切り取られる。横位置を右へ寄せて、カメラマンが画面に入るようにする。
   覆いも、文字が左に寄る前提の横グラデーションから、縦方向中心へ変える。
   -------------------------------------------------------------------------- */
@media (max-width:860px){
  .p-front .hero-image{background-position:68% center}
  .p-front .hero-wash{
    background:linear-gradient(90deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.44) 55%,rgba(0,0,0,.36) 100%),
               linear-gradient(0deg,rgba(0,0,0,.45),transparent 55%);
  }
}
}


/* --------------------------------------------------------------------------
   スマートフォン用の背景画像（2026-10-09 追加）

   CSSの背景画像は <img> の srcset と違い、画面幅に応じた出し分けが効かない。
   そのため 390px のスマホでも PC用の 1400〜2000px の画像をそのまま
   読み込んでいた（/service/photo/ はスマホで 940KB あった）。
   ここで 780px 版（390px × 2 = Retina相当）に差し替える。

   書き出し品質は 84。現状のスマホ表示と原寸で見比べ、網目やスタジオの階調
   など圧縮に厳しい部分でも差が出ないことを確認している。
   PC版の画像はそのまま。画質を落としたのではなく、
   スマホで見えない解像度を配らないようにしただけ。

   ■ background ではなく background-image を指定している理由
   いくつかのセレクタは既存のメディアクエリで background-position を
   調整している。ショートハンドで上書きすると、その位置指定が
   初期値に戻ってスマホの構図が崩れる。画像レイヤーだけを差し替えること。
   -------------------------------------------------------------------------- */
@media(max-width:560px){
  .p-front .hero-image{background-image:url("../img/ai-stadium-match-broadcast-sp780.webp")}
}
