body{background-color:#FBF8EB!important;}
/* about：開いている行（data-open。PC はホバー、SP はタップでコードが付ける）の上下の線を消す */
#about-line-0,#about-line-1,#about-line-2,#about-line-3{transition:opacity .3s ease;}
body:has(#about-row-01[data-open]) #about-line-0,
body:has(#about-row-01[data-open]) #about-line-1,
body:has(#about-row-02[data-open]) #about-line-1,
body:has(#about-row-02[data-open]) #about-line-2,
body:has(#about-row-03[data-open]) #about-line-2,
body:has(#about-row-03[data-open]) #about-line-3{opacity:0 !important;}

/* newsタイトル：1行で「...」 */
#news-title{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important;}

/* ワークスペースのヒーロー：はみ出しは画面の端まで（コードが動く前の見た目用） */
#ws-prev,#ws-next{flex:1 1 0!important;width:auto!important;max-width:none!important;min-width:0!important;object-fit:cover!important;}
#ws-prev{object-position:right center!important;}
#ws-next{object-position:left center!important;}
#ws-main{object-fit:cover!important;}
#ws-arrow-prev,#ws-arrow-next{z-index:5!important;cursor:pointer;}
/* 矢印は写真の上に寄せ終わるまで見せない（画面の端に一瞬出てから動くのを防ぐ。2026-11-25） */
#ws-arrow-prev:not([data-pos]),#ws-arrow-next:not([data-pos]){opacity:0!important;transition:none!important;}
.ws-track{transition:none!important;animation:none!important;}
/* ヒーローの写真置き場（ws-slides）に CMS の画像（<img>）を直接入れた場合：置き場は URL を読むだけなので、中の <img> は描かない。
   描くと5枚が縦に積み上がって、ヒーローの行の高さを押し広げる（2026-11-30 /workspace-1 で発生） */
#ws-slides > img, #ws-slides > noscript{display:none!important;}
/* グロナビ：今のページだけ濃く（濃い色 #000000） */
#gnav a.is-current, #gnav a.is-current *{color:#000000!important;opacity:1!important;}
/* グロナビ：CONTACT（オレンジの丸）は、CONTACT ページにいるときだけ文字を白に */
#gnav a.is-current[href$="/contact"], #gnav a.is-current[href$="/contact"] *{color:#FFFFFF!important;}
/* FAQ：質問文の前に「Q1. 」を自動で付ける（カテゴリ faq-cat-N ごとに 1 から数え直す） */
[id^="faq-cat"]{counter-reset:faq;}
[id^="faq-q"]{counter-increment:faq;}
[id^="faq-q"] p:first-of-type::before, p[id^="faq-q"]::before{content:"Q" counter(faq) ". ";flex-shrink:0!important;white-space:pre!important;}
/* FAQ：読み込み直後に答えが一瞬見えないよう、コードが準備できるまで閉じておく */
[id^="faq-a"]:not([data-faq-ready]){height:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden!important;}
/* About（SP）：閉じている行は写真と説明文を消して場所も詰める（行の直下の img と p。見出しは箱に入っているので残る） */
@media (max-width:690px){
[id^="about-row-"]:not([data-open]) > img, [id^="about-row-"]:not([data-open]) > p{display:none!important;}
/* SP では About の線（PC 用・行の中に絶対配置）は使わず、3行を包む箱（コードが data-about-list を付ける）の上下に線を引く。行が開いても線は動かない */
#about-line-0,#about-line-1,#about-line-2,#about-line-3{display:none!important;}
/* About の写真の切り抜き位置（SP）：3枚とも PC と同じ中央（下の「写真のトリミング」の指定がそのまま当たる）。
   2026-11-30 の写真差し替えまでは 01・02 上寄せ／03 下寄せだった。行ごとに寄せたいときは、ここに #about-row-0N img{object-position:…} を書く */
[data-about-list]{border-top:1px solid #CFC1AB!important;border-bottom:1px solid #CFC1AB!important;margin-top:18px!important;padding-top:10px!important;padding-bottom:10px!important;box-sizing:border-box!important;}
/* 行と行の間にも線（行の上 10 の位置）。開いた行にくっつかないよう、上下の線と同じく 10 離す */
[data-about-list] > [id^="about-row-"] + [id^="about-row-"]{margin-top:21px!important;overflow:visible!important;}
[data-about-list] > [id^="about-row-"] + [id^="about-row-"]::before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:-11px!important;height:1px!important;background:#CFC1AB!important;}
}
/* SP メニュー（ID sp-menu）：ヘッダーの下に全画面で重ねる。閉じているあいだは透明にして隠し、開け閉めはふわっと（0.35秒） */
/* Type の写真置き場（type-slides-N）：コードが読み取るまでのあいだも場所を取らず見えないように（タブ切替時に正方形の写真が一瞬出るのを防ぐ） */
[id^="type-photo-"] .image__bg-container::before, [id^="type-photo-"] .image__bg-container{background-size:cover!important;background-position:center!important;}
[id^="type-photo-"] img{object-fit:cover!important;}
[id^="type-slides-"]{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden!important;margin:0!important;}
#sp-menu{position:fixed!important;left:0!important;right:0!important;top:50px!important;bottom:0!important;width:100%!important;height:calc(100vh - 50px)!important;height:calc(100dvh - 50px)!important;max-height:none!important;z-index:999!important;overflow-y:auto!important;}
#sp-menu{transition:opacity .35s ease,transform .35s ease,visibility 0s linear .35s!important;}
#sp-menu:not([data-open]){opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-8px)!important;}
#sp-menu[data-open]{opacity:1!important;visibility:visible!important;transform:none!important;transition:opacity .35s ease,transform .35s ease,visibility 0s!important;}
#sp-menu-btn{cursor:pointer;}
@media (max-width:690px){#sp-scroll-vacancy{align-items:flex-start!important;justify-content:flex-start!important;}#sp-scroll-vacancy .box{max-width:none!important;}#sp-scroll-vacancy > :last-child > * > *,#sp-scroll-vacancy > :last-child > * > * > *{width:100%!important;}}
@media (max-width:690px){#sp-scroll-type{justify-content:flex-start!important;align-items:flex-start!important;}#sp-scroll-type > *{overflow:visible!important;width:max-content!important;min-width:max-content!important;max-width:none!important;flex:0 0 auto!important;}}
@media (max-width:690px){[id^="sp-scroll-"]{overflow-x:auto!important;overflow-y:hidden!important;justify-content:flex-start!important;align-items:flex-start!important;}[id^="sp-scroll-"] > *{flex-shrink:0!important;max-width:none!important;}}
/* ハンバーガー → ×（線2本・上下の間隔10。開いたら中央で交差） */
#sp-menu-btn > *{transition:transform .3s ease!important;transform-origin:center!important;}
#sp-menu-btn[data-open] > :first-child{transform:translateY(5px) rotate(45deg)!important;}
#sp-menu-btn[data-open] > :last-child{transform:translateY(-5px) rotate(-45deg)!important;}
/* 写真のトリミング：STUDIO の <img> は「引き伸ばし」(object-fit: fill) なので、高さを変えると歪む。中央でトリミングに変える
   About の写真は常に。ほかの写真は ID を fit で始める（fit-1, fit-work など）と、その要素と中の img がトリミングになる */
[id^="about-row-"] img, img[id^="fit"], [id^="fit"] img{object-fit:cover!important;object-position:center!important;}
/* SP の横スクロールの目印：コードが sp-scroll- の箱のすぐ下にバー（lg-hbar）を足す。中の i がいまの位置 */
.lg-hbar{display:none;}
@media (max-width:690px){.lg-hbar{display:block!important;position:relative!important;flex:0 0 auto!important;height:4px!important;margin:16px 0 0!important;border-radius:2px!important;background:rgba(30,20,16,.2)!important;overflow:hidden!important;pointer-events:none!important;}.lg-hbar > i{position:absolute;top:0;left:0;height:100%;border-radius:2px;background:#1E1410;}}
/* 縦スクロールの目印：コードが中身のあふれた箱に lg-vscroll を付ける。スクロールバーを常に見せ、続きがある間は下端を薄くする
   つまみの色は #957d63（2026-11-30 たもつ。それまではオレンジ #D76222） */
@supports not selector(::-webkit-scrollbar){.lg-vscroll{scrollbar-width:thin!important;scrollbar-color:#957d63 rgba(0,0,0,.08)!important;}}
.lg-vscroll::-webkit-scrollbar{display:block!important;width:14px!important;}
.lg-vscroll::-webkit-scrollbar-button{display:none!important;height:0!important;}
.lg-vscroll::-webkit-scrollbar-track{margin:24px 0!important;background:rgba(0,0,0,.08)!important;background-clip:padding-box!important;border:4px solid transparent!important;border-radius:7px!important;}
.lg-vscroll::-webkit-scrollbar-thumb{background:#957d63!important;background-clip:padding-box!important;border:4px solid transparent!important;border-radius:7px!important;}
.lg-vscroll[data-more]{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 48px),rgba(0,0,0,.15));mask-image:linear-gradient(to bottom,#000 calc(100% - 48px),rgba(0,0,0,.15));}
/* ページ内リンクの着地：固定ヘッダー（PC 80px／SP 50px）の下に区切りが来るように止める（2026-11-25 #availability） */
#availability{scroll-margin-top:80px!important;}
@media (max-width:690px){#availability{scroll-margin-top:50px!important;}}
/* TOP の ACCESS（/#access）：スマホは固定ヘッダー 50px の下に見出しが隠れるので、ヘッダーの下＋10px で止める（2026-12-01 たもつ）。
   PC の TOP は上に固定ヘッダーが無い（右の縦メニュー）ので、そのまま */
@media (max-width:690px){#access{scroll-margin-top:60px!important;}}
/* タッチ端末（iPhone の Safari など）は箱のスクロールバーの色を変えられない（::-webkit-scrollbar が効かない）ので、
   コードが自前の縦バー（lg-vbar・中の i が位置）を箱の右端に重ねる。PC は上の WebKit のスクロールバーのまま（2026-11-25） */
.lg-vbar{position:absolute!important;width:6px!important;border-radius:3px!important;background:rgba(0,0,0,.08)!important;pointer-events:none!important;z-index:3!important;}
.lg-vbar > i{position:absolute;left:0;width:100%;border-radius:3px;background:#957d63;}
@media (hover:hover) and (pointer:fine){.lg-vbar{display:none!important;}}
/* タッチ端末（コードが lg-touch を付ける）では本物のスクロールバーを消して、自前のバーだけにする。
   Android の Chrome や PC Chrome のスマホ表示は ::-webkit-scrollbar が効くので、消さないと2本並ぶ（2026-11-30 たもつ指摘） */
.lg-vscroll.lg-touch::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;}
.lg-vscroll.lg-touch{scrollbar-width:none!important;}
