/* トップの「実績一覧を見る」ボタン（sp.js が作る）はスマホだけで出す */
.sp-more-jisseki{display:none}
/* 改行の出し分け（PC・スマホ共通の決まり）：
   <br class="sp"> … スマホだけ改行する（PCでは改行しない）
   <br class="lb"> … PCだけ改行する（スマホでは改行しない。従来どおり）
   <br>            … どちらでも改行する */
br.sp{display:none}
/* 外部リンクのしるし（PC・スマホ共通）：本文の中で、ほかのサイトへ飛ぶ文字リンクの後ろに小さなアイコンを付ける。
   画像だけのリンク、フッターの取引先一覧・バナー・SNSは対象外 */
#contents-body a[href^="http"]:not([href*="//www.mediaimpact.kyoto"]):not([href*="//mediaimpact.kyoto"]):not(:has(img)):not(:has(video)):not(:has(picture))::after{content:""!important;display:inline-block!important;position:static!important;width:.82em!important;height:.82em!important;margin:0 .12em 0 .22em!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important;vertical-align:-.06em!important;background:currentColor!important;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3C/svg%3E") no-repeat center/contain!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 5H6a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4l-9 9'/%3E%3C/svg%3E") no-repeat center/contain!important;opacity:.75}
/* =====================================================================
   mediaimpact.kyoto スマホ表示用 追加CSS（統合版 2026-11-28）
   base.css v2 → lead.css → service.css → pages.css を1本に統合したもの。
   - PC表示は変えない。メニューボタンと「もっと見る」ボタンの既定の非表示を除き、すべて @media (max-width:767px) の中。
   - 文字の調子はほぼ日（1101.com）スマホ版に合わせる：本文15px／行間1.9／字間0.05em／#3e3e3e、
     見出し20px・600、補足13px・#3e3e3e、左右余白20px、一覧の罫線 #e3ddd0、「もっと見る」は中央の角丸枠ボタン。
   - 既存規約：本文のPC用改行 br.lb は既存 common.css が767px以下で非表示にする。class無しの br は原則残す。
     word-break:auto-phrase と text-wrap:pretty/balance は使わない。:has() と :is() は使わない（古いiOSで崩れないように）。
   - sp.js（メニューボタン、「もっと見る」の折りたたみ、スライダー調整）と組で使う。
   page-id: strong=5402 / service/web=86 / websystem=3118 / game-2=2313 / application=2334 /
            about-2=66 / contact=79 / estimate=5730 / service=82 / price=97
   ===================================================================== */

/* スマホ用に足すボタン。PCでは出さない */
.sp-menu-btn{display:none}
.sp-more{display:none}

@media (max-width:767px){

/* =====================================================================
   1. 土台（base.css v2）
   ===================================================================== */
html,body{min-width:0!important;width:auto!important}
body{-webkit-text-size-adjust:100%}
#wrap{overflow-x:clip}
#wrap,#container,#header,#global-nav,#branding,#contents-body,#contents,#sidebar,.container,#footer-container,#footer,.page-header,#contents-body>*{width:auto!important;min-width:0!important;max-width:100%!important;float:none!important;box-sizing:border-box}
img,video,iframe{max-width:100%!important;height:auto}
#contents-body{padding:0 20px!important;margin-left:0!important;margin-right:0!important}
#contents-body p,#contents-body div,#contents-body figure,#contents-body h1,#contents-body h2,#contents-body h3{max-width:100%!important;box-sizing:border-box}
#contents-body p{width:auto!important}
#header .right_msg{display:none}
/* ヘッダー（高さ66px、sticky）の分だけ、ページ内リンク（#panfu など）の飛び先を下げる。
   既存の #contents [id]{scroll-margin-top:40px} と足し算になるので、本文の見出しはヘッダーの下16pxに来るよう詰める */
html{scroll-padding-top:66px}
#contents [id]{scroll-margin-top:16px}

/* =====================================================================
   2. ヘッダー・メニュー（lead.css）
   ロゴは縦横比 273:46 を保ったまま178x30にし、上下18px・左右20pxの余白を確保（アイソレーションを詰めない）
   ===================================================================== */
#header{display:block!important;position:-webkit-sticky!important;position:sticky!important;top:0;z-index:1000;height:auto!important;min-height:0!important;margin:0!important;padding:21px 20px 15px!important;overflow:visible!important;background:#f9f5ec!important}
#header h1#site-id{float:none!important;height:auto!important;padding:0!important;margin:0!important;max-width:none!important;line-height:0!important;top:0}
#header h1#site-id a{display:inline-block!important;width:178px!important;height:30px!important;background-size:178px 30px!important;line-height:0}
#header h1#site-id a img{width:178px!important;height:30px!important;max-width:none!important;display:block}

.sp-menu-btn{display:block;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:48px;height:48px;border:0;background:none;padding:0;cursor:pointer;-webkit-appearance:none}
.sp-menu-btn span{display:block;width:24px;height:2px;margin:6px auto;background:#3e3e3e;transition:.2s}
.sp-nav-open .sp-menu-btn span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.sp-nav-open .sp-menu-btn span:nth-child(2){opacity:0}
.sp-nav-open .sp-menu-btn span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
#global-nav{display:none!important}
.sp-nav-open #global-nav{display:block!important;position:fixed!important;top:66px;left:0;right:0;bottom:0;z-index:999;height:auto!important;margin:0!important;padding:8px 20px 40px!important;background:#fff;overflow-y:auto;-webkit-overflow-scrolling:touch;border:0!important}
/* メニューを開いている間は後ろの本文を動かさない。body に overflow:hidden を付けると、既存CSSで html が overflow:scroll のため
   body がスクロールの箱になり sticky のヘッダーが消えるので、html に付ける（sp.js が html と body の両方に sp-nav-open を付ける） */
html.sp-nav-open{overflow:hidden!important}
#menu-global{width:auto!important;height:auto!important;display:block!important;margin:0!important;padding:0!important}
#menu-global li{width:auto!important;height:auto!important;float:none!important;display:block!important;flex:none!important;margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid #e3e3e3!important;background:none!important}
#menu-global li::before,#menu-global li::after,#menu-global li a::before,#menu-global li a::after{display:none!important}
#menu-global li a{display:block!important;width:auto!important;height:auto!important;padding:17px 4px!important;font-size:16px!important;font-weight:600!important;line-height:1.4!important;text-align:left!important;color:#3e3e3e!important;background:none!important;border:0!important;box-sizing:border-box}
#menu-global .nav_en{display:inline!important;margin:0 0 0 10px!important;font-size:11px!important}

/* =====================================================================
   3. 「もっと見る」と「トップへ戻る」（全ページ共通）
   sp.js が付ける .sp-more と、本文の既存 .more_wrap .more_btn を同じ角丸枠ボタンにそろえる
   ===================================================================== */
/* 畳んだ項目。本文側の display:block!important（クラス4つ＋ID1つ）より強くするためクラスを重ねている */
#wrap .sp-hide.sp-hide.sp-hide.sp-hide.sp-hide.sp-hide{display:none!important}
.sp-more,
#contents .more_wrap .more_btn{display:block!important;box-sizing:border-box;width:200px;max-width:100%;min-height:44px;margin:24px auto 0!important;padding:10px 0!important;border:1px solid #c9c2b4!important;border-radius:999px!important;background:#fff!important;color:#3e3e3e!important;font-size:14px!important;font-weight:400!important;line-height:1.5!important;letter-spacing:0;text-align:center;text-decoration:none!important;cursor:pointer;-webkit-appearance:none}
.sp-more::after{content:" ▼";font-size:12px}
#contents .more_wrap .more_btn_wrap{margin:8px 0 0!important;text-align:center!important}
#contents .more_wrap .more_btn_wrap .more_btn{margin-top:0!important}
#footer .sp-more{background:transparent!important;border-color:rgba(255,255,255,.6)!important;color:#fff!important;margin:24px auto 36px!important}

/* 右下の「トップへ戻る」（146x42の画像）は本文やボタンに重なるので、44pxの丸いボタンにまとめる。
   reCAPTCHAのバッジは既存CSSで /contact/ などフォームのページだけ bottom:96px に出るので、その下（bottom:16px〜60px）に置けば重ならない */
#back_to_top{right:13px!important;bottom:16px!important;margin:0!important;line-height:0}
#back_to_top a{display:block;position:relative;width:44px;height:44px;border-radius:50%;background:rgba(62,62,62,.72);overflow:hidden}
#back_to_top a img{position:absolute;left:0;top:0;width:1px!important;height:1px!important;opacity:0}
#back_to_top a::after{content:"";position:absolute;left:16px;top:18px;width:10px;height:10px;border-top:2px solid #fff;border-left:2px solid #fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}
body.sp-nav-open #back_to_top{display:none!important}

/* =====================================================================
   4. トップページ（lead.css）
   ===================================================================== */
/* スライダー（1枚を画面幅で見せ、題名は画像の下、サムネイルは横スクロール1列） */
#branding{padding:0!important}
.slider .slick-slide{width:100vw!important;min-width:0!important;max-width:none!important;opacity:1!important}
.slider .slick-list{padding:0!important}
.slider .slick-slide>div,.slider .slick-slide>div>div{width:100%!important}
.slider .slick-slide img{width:100%!important;height:auto!important;display:block;aspect-ratio:1920/963;object-fit:cover!important;object-position:top center}
.slider .slick-slide::before{display:none!important}
.slider .slick-slide a{position:static!important;display:block!important;width:auto!important;height:auto!important;opacity:1!important;transform:none!important;border:0!important;margin:0!important;color:#3e3e3e!important;font-size:14px!important;line-height:1.5!important;letter-spacing:0!important;white-space:normal!important;padding:14px 20px 4px!important;background:none!important;text-shadow:none!important;text-align:left!important}
.slider .slick-slide a br{display:none}
.slider .slick-slide a span{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px!important;line-height:1.6!important;margin-top:6px!important;font-weight:400;color:#3e3e3e}
.slick-dots{position:static!important;width:auto!important;display:flex!important;gap:6px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:10px 20px 20px!important;margin:0!important;bottom:0!important}
.slick-dots::-webkit-scrollbar{display:none}
.slick-dots li{flex:0 0 72px;width:72px!important;height:auto!important;margin:0!important}
.slick-dots li img{display:block}

/* トップ本文 */
.home #contents-body{padding:0 12px!important}
.home .page-header{padding:36px 20px!important;margin:24px 0!important}
.home .page-header h1.page-title{font-size:20px!important;line-height:1.6!important;font-weight:600!important;margin:8px 0 24px!important;letter-spacing:0}
.home .page-header h1.page-title br{display:none}
.home .page-header p{font-size:14px!important;line-height:1.7!important;letter-spacing:0;color:#3e3e3e!important}
.home .page-header>div+div{margin-top:48px!important}

/* トップの新着実績と新着情報（題名を左、サムネイルを右、細い罫線で区切る一覧） */
#contents,#top-jisseki,#top-news{width:auto!important;max-width:100%!important;float:none!important;box-sizing:border-box}
#contents{margin:0!important}
#top-jisseki,#top-news{padding:0 8px!important;margin:40px 0 0!important}
#top-jisseki>h1,#top-news>h1{width:auto!important;font-size:20px!important;font-weight:600!important;margin:0 0 4px!important;box-sizing:border-box}
#top-jisseki .column-group,#top-news .column-group{display:block!important;width:auto!important}
.column-group .column-article{width:auto!important;margin:0!important;padding:16px 0!important;border-bottom:1px solid #e3ddd0;box-sizing:border-box}
#top-jisseki .column-group article.column-article{display:grid!important;grid-template-columns:minmax(0,1fr) 112px!important;grid-template-rows:auto 1fr!important;column-gap:14px!important;row-gap:0!important;padding:16px 0!important;border-bottom:1px solid #e3ddd0!important}
#top-jisseki .column-group article.column-article a.jisseki_thumb{grid-column:2!important;grid-row:1/span 2!important;display:block;width:112px!important;height:70px!important;padding:0!important;margin:0!important;border:1px solid #e3ddd0!important;box-sizing:border-box}
#top-jisseki .column-group article.column-article a.jisseki_thumb img{position:static!important;display:block;width:100%!important;height:100%!important;border:0!important;object-fit:cover;object-position:top center}
#top-jisseki .column-group article.column-article .entry-date{grid-column:1!important;grid-row:1!important}
#top-jisseki .column-group article.column-article .update-title{grid-column:1!important;grid-row:2!important;display:block!important;-webkit-line-clamp:none!important;overflow:visible!important;max-height:none!important}
.column-article .entry-date{display:block;font-size:12px!important;line-height:1.5!important;color:#3e3e3e!important;margin:0 0 4px!important}
.column-article .update-title{font-size:14px!important;line-height:1.6!important;font-weight:600!important;margin:0!important;padding:0!important;width:auto!important;white-space:normal!important}
.column-article .update-title a{display:block;color:#3e3e3e!important;text-decoration:none!important}
body.home .update-title,body.home .update-title a{font-size:14px!important;line-height:1.6!important}

/* =====================================================================
   5. フッター（lead.css）
   ===================================================================== */
#footer{padding-left:0!important;padding-right:0!important}
#footer p,#footer table,#footer .counter{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
#footer_link{display:block!important;padding:40px 20px!important;height:auto!important}
#footer_link>*{width:auto!important;max-width:100%!important}
#footer_link p{white-space:normal!important;width:auto!important}
.footer_name{font-size:24px!important;line-height:1.4!important}
.footer_sitemap{padding:32px 20px!important;height:auto!important}
.footer_sitemap_inner{grid-template-columns:1fr 1fr!important;gap:28px 20px!important;width:auto!important}
.footer_sitemap_col{width:auto!important}
.footer_sitemap_col li a,.footer_sitemap_ttl a{display:inline-block;padding:5px 0}
.footer_badges{display:grid!important;grid-template-columns:1fr 1fr;gap:12px!important;padding:28px 20px!important;height:auto!important;justify-items:stretch}
.footer_badges .footer_badge{width:auto!important;min-width:0!important;margin:0!important;box-sizing:border-box}
#footer table{display:grid!important;grid-template-columns:1fr 1fr;gap:4px 16px;width:auto!important;margin:0 20px!important}
#footer table tbody,#footer table tr{display:contents!important}
#footer table td{display:block!important;width:auto!important;padding:6px 0!important;font-size:13px!important;line-height:1.5!important}
#footer table td:empty{display:none!important}
#footer p{width:auto!important}
#footer_links_ttl{padding:0 20px!important}
#footer .counter,#footer .footer_sns,#footer #copyright{position:static!important;float:none!important;width:auto!important;left:auto!important;right:auto!important;justify-content:center!important;text-align:center!important;margin:0 auto!important;transform:none!important}
#footer .counter{padding:8px 20px 0!important}
#footer .footer_sns{padding:16px 20px!important}
#footer #copyright{padding:0 20px 88px!important;font-size:12px!important;white-space:normal!important}

/* 下層ページの大見出し（青い帯の中のページ名。PCは34px）：「オンライン見積フォーム」が「フォー／ム」と1字だけ送られるので、画面幅に合わせて少し小さくする */
body:not(.home) .page-header h1.page-title{font-size:clamp(22px,7.8vw,34px)!important;padding-left:12px!important;padding-right:12px!important}

/* =====================================================================
   6. 下層ページの本文（トップ以外の全ページ共通。service.css と pages.css の共通部分を1つにした）
   PCは左右40〜60pxの余白つきの白いカード → スマホは画面幅いっぱいの白地、文字の左右は20px
   ===================================================================== */
body:not(.home) #contents .entry-content .theContentWrap-ccc{max-width:none!important;width:auto!important;margin:0 -20px!important;padding:28px 20px 44px!important;font-size:14px!important;line-height:1.7!important;letter-spacing:0!important;color:#3e3e3e!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p,
body:not(.home) #contents .entry-content .theContentWrap-ccc li,
body:not(.home) #contents .entry-content .theContentWrap-ccc dd,
body:not(.home) #contents .entry-content .theContentWrap-ccc dt{font-size:14px!important;line-height:1.7!important;letter-spacing:0!important;color:#3e3e3e;overflow-wrap:break-word}
body:not(.home) #contents .entry-content .theContentWrap-ccc > p{margin-bottom:28px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc > :first-child{margin-top:0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc h3{font-size:20px!important;font-weight:600!important;line-height:1.55!important;letter-spacing:0!important;text-align:left!important;margin-top:56px!important;margin-bottom:20px!important;padding:2px 8px 4px 12px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc h4{font-size:17px!important;font-weight:600!important;line-height:1.6!important;letter-spacing:0!important;text-align:left!important;margin-top:40px!important;margin-bottom:16px!important;padding:2px 8px 2px 12px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc h5{font-size:16px!important;line-height:1.6!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc img{max-width:100%!important;height:auto!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc a{overflow-wrap:anywhere}
body:not(.home) #contents .entry-content .theContentWrap-ccc iframe{width:100%!important}
/* 画像だけの段落に入っているPC用の大きな下余白（style="margin-bottom:50px"）を詰める */
body:not(.home) #contents .entry-content .theContentWrap-ccc > p[style*="margin-bottom:50px"],
body:not(.home) #contents .entry-content .theContentWrap-ccc > p[style*="margin-bottom: 50px"]{margin-bottom:28px!important}
/* 空の段落（<p style="clear:both;"></p>）は高さを持たせない */
body:not(.home) #contents .entry-content .theContentWrap-ccc > p:empty{margin:0!important}
/* 補足・日付・キャプション */
body:not(.home) #contents .entry-content .theContentWrap-ccc p.figure_caption,
body:not(.home) #contents .entry-content .theContentWrap-ccc p.mock_note,
body:not(.home) #contents .entry-content .theContentWrap-ccc p.app_compare_note,
body:not(.home) #contents .entry-content .theContentWrap-ccc .case_card_date,
body:not(.home) #contents .entry-content .theContentWrap-ccc figcaption,
body:not(.home) #contents .page_last_update,
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update{font-size:13px!important;line-height:1.7!important;color:#3e3e3e!important}
/* ページ内目次：左寄せ、行間を広げてタップしやすく */
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc{margin:0 0 36px!important;font-size:14px!important;line-height:2.5!important;text-align:left!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc a{display:inline-block;padding:0 2px}
/* リンクボタン：画面幅に収め、長い文言は折り返す。高さ48px以上 */
body:not(.home) #contents .entry-content .theContentWrap-ccc a.btn_link{box-sizing:border-box;white-space:normal!important;min-width:0!important;max-width:100%!important;min-height:48px;padding:12px 24px!important;border-radius:24px!important;line-height:1.5!important;font-size:14px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc .btn_row{flex-direction:column;align-items:stretch;gap:12px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc .btn_row a.btn_link{display:block!important;width:100%!important}
/* 2段組みの箇条書きは1段に */
body:not(.home) #contents .entry-content .theContentWrap-ccc ul.bullet_list.cols2{-webkit-columns:1!important;columns:1!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc ul.bullet_list li{line-height:1.75!important;margin-bottom:8px!important}
/* WordPressの動画（MediaElement）：PC用の固定高さが残り上下に黒帯が出るので、幅に合わせて高さを自動に */
body:not(.home) #contents .entry-content .wp-video{width:100%!important;max-width:100%!important}
body:not(.home) #contents .entry-content .wp-video .mejs-container{width:100%!important;height:auto!important}
body:not(.home) #contents .entry-content .wp-video .mejs-mediaelement{position:relative!important}
body:not(.home) #contents .entry-content .wp-video video{width:100%!important;height:auto!important;display:block}

/* ---- 表 ---- */
/* 見出し＋内容の表（列見出し thead の無い simple_table：会社情報・パートナー・メディア掲載・関連サービスなど）は th を上、td を下に積む。
   table 自体は display:table のまま中身だけを積むので :has() は要らない。thead のある表は下で表に戻す */
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table){width:100%!important;table-layout:auto!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody > tr,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody > tr > th,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody > tr > td{display:block!important;width:auto!important;max-width:none!important;box-sizing:border-box}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody > tr > th{text-align:left!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody > tr > th,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody > tr > td,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody > tr > td p,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > tbody > tr > td li{font-size:14px!important;line-height:1.65!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table .cell_note{font-size:13px!important;line-height:1.7!important}
/* 列見出し（thead）のある表（/service/game-2/ の応用する分野・オプション機能、/service/listing_ad/ の広告費の表）は列の対応が大事なので表のまま、文字と余白を詰める */
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > thead + tbody{display:table-row-group!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > thead + tbody > tr{display:table-row!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > thead > tr > th,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > thead + tbody > tr > th,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > thead + tbody > tr > td{display:table-cell!important;width:auto!important;padding:8px 6px!important;font-size:14px!important;line-height:1.7!important;letter-spacing:0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > thead + tbody > tr > td p,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > thead + tbody > tr > td li{font-size:14px!important;line-height:1.7!important;letter-spacing:0!important}
/* /service/listing_ad/ の広告費の表は1列目（資格・就職などの2文字の分野）が1字ずつ折り返すので、1列目だけ折り返さない */
body:not(.home) #contents .entry-content .theContentWrap-ccc table.ads_table tr > :first-child{white-space:nowrap!important}
/* CSR活動の表：行ごとに 団体名（太字）→内容 の順に積む。列見出し（団体／活動内容）は隠す */
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table{display:block!important;table-layout:auto!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table thead{display:none!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table tbody,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table tr{display:block!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table tr{border-bottom:1px solid #e3ddd0!important;padding:10px 0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table th,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table td{display:block!important;width:auto!important;border:0!important;padding:0 2px!important;font-size:14px!important;line-height:1.65!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table td{margin-top:2px}
/* 年表（沿革・経歴）は縦に積むと長くなりすぎるので横並びのまま、年の列を細くする */
body:not(.home) #contents .entry-content .theContentWrap-ccc table.history_table{width:100%!important;table-layout:auto!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.history_table tbody th{width:1%!important;padding-left:5px!important;padding-right:5px!important;font-size:13px!important;white-space:nowrap}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.history_table td{font-size:14px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.profile_table td p,
body:not(.home) #contents .entry-content .theContentWrap-ccc table.profile_table td li{font-size:14px!important;line-height:1.7!important}
/* クラスのない表（/price/ の「ご予算の目安」「作業項目例」など2列以下の簡単な表）は行ごとに積み、細い罫線で区切る。2列の行は1列目を太字に */
body:not(.home) #contents .entry-content .theContentWrap-ccc table:not([class]){display:block!important;width:100%!important;border:0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table:not([class]) > tbody{display:block!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table:not([class]) tr{display:block!important;padding:10px 2px!important;border-bottom:1px solid #e3ddd0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table:not([class]) td,
body:not(.home) #contents .entry-content .theContentWrap-ccc table:not([class]) th{display:block!important;width:auto!important;padding:0!important;border:0!important;background:none!important;font-size:14px!important;line-height:1.7!important;text-align:left!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table:not([class]) tr > :first-child:not(:only-child){font-weight:600}

/* ---- ページ下部の関連実績（.relation_section。scroll.js が本文の外に出す） ----
   実績一覧・トップの新着実績と同じく、題名を左・サムネイル112pxを右に置き、細い罫線で区切る */
body:not(.home) #contents .relation_section{margin-top:40px!important}
body:not(.home) #contents .relation_section > h3{font-size:20px!important;font-weight:600!important;line-height:1.55!important;margin:0 0 4px!important;padding:2px 8px 4px 12px!important}
body:not(.home) #contents .relation_section ul.relation_cards{display:block!important;max-width:none!important;width:auto!important;margin:0 -20px!important;padding:4px 20px 16px!important}
body:not(.home) #contents .relation_section ul.relation_cards li.relation_card{display:block!important;width:auto!important;margin:0!important;border-bottom:1px solid #e3ddd0}
body:not(.home) #contents .relation_section ul.relation_cards li.relation_card a{display:grid!important;grid-template-columns:minmax(0,1fr) 112px;grid-template-rows:auto 1fr;column-gap:14px;padding:16px 0;min-height:48px}
body:not(.home) #contents .relation_section ul.relation_cards .relation_card_img{grid-column:2;grid-row:1 / span 2;align-self:start;width:112px!important;margin:0!important;border-radius:6px;border-color:#e3ddd0!important}
body:not(.home) #contents .relation_section ul.relation_cards li.relation_card .relation_card_title{grid-column:1;grid-row:1;margin:0!important;font-size:14px!important;font-weight:600;line-height:1.6!important;letter-spacing:0;color:#3e3e3e}
body:not(.home) #contents .relation_section ul.relation_cards li.relation_card .relation_card_date{grid-column:1;grid-row:2;margin:4px 0 0!important;font-size:13px!important;color:#3e3e3e!important}
body:not(.home) #contents .relation_section + .sp-more{margin-bottom:8px!important}

/* =====================================================================
   7. 当社の強み・サービス系5ページの個別（service.css）
   ===================================================================== */
/* /strong/：見出しのPC用改行（class無しbr）が「を生／む」と1字だけ送られるので、この1か所だけ無効化 */
body.page-id-5402 #contents .entry-content .theContentWrap-ccc h3#strong br{display:none}

/* /service/web/：制作の流れの図（p.wide_figure。PCは900px幅）は縮めると文字が読めないので、720px幅のまま横スクロールで見せる */
body.page-id-86 #contents .entry-content .theContentWrap-ccc p.wide_figure{width:auto!important;margin-left:0!important;margin-right:0!important;overflow-x:auto;-webkit-overflow-scrolling:touch;text-align:left!important}
body.page-id-86 #contents .entry-content .theContentWrap-ccc p.wide_figure img{width:720px!important;max-width:none!important;height:auto!important}
/* 制作事例カード（PCでも1段組み）：角丸と余白 */
body.page-id-86 #contents .entry-content .theContentWrap-ccc ul.case_cards{gap:28px!important}
body.page-id-86 #contents .entry-content .theContentWrap-ccc ul.case_cards .case_card_img{border-radius:8px}
body.page-id-86 #contents .entry-content .theContentWrap-ccc ul.case_cards .case_card_title{font-size:14px!important;line-height:1.6!important}

/* /service/websystem/：京都府警察本部様の教材のタブレット風の図（.mock_tablet）は3列のタイルの文字が切れるので2列に。本文の li 指定が効かないよう上書き */
body.page-id-3118 #contents .entry-content .theContentWrap-ccc .mock_tablet{padding:12px!important;border-radius:18px!important}
body.page-id-3118 #contents .entry-content .theContentWrap-ccc .mock_tablet .mock_screen{padding:14px 12px 16px!important}
body.page-id-3118 #contents .entry-content .theContentWrap-ccc .mock_tablet p.mock_ttl{font-size:14px!important;color:#0f2a5c!important;line-height:1.5!important}
body.page-id-3118 #contents .entry-content .theContentWrap-ccc .mock_tablet ul.mock_tiles{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body.page-id-3118 #contents .entry-content .theContentWrap-ccc .mock_tablet ul.mock_tiles li{color:#fff!important;font-size:13px!important;line-height:1.4!important;letter-spacing:0!important;white-space:normal!important;padding:12px 4px!important}
/* 予約・入金管理の流れ（ol.flow_steps）：左のラベル列を細くして本文の幅を確保 */
body.page-id-3118 #contents .entry-content .theContentWrap-ccc ol.flow_steps li{grid-template-columns:64px 1fr!important;column-gap:12px!important;padding:12px!important}
body.page-id-3118 #contents .entry-content .theContentWrap-ccc ol.flow_steps b{font-size:14px!important;line-height:1.5!important}
body.page-id-3118 #contents .entry-content .theContentWrap-ccc ol.flow_steps .flow_desc{font-size:14px!important;line-height:1.6!important}

/* /service/game-2/：参考情報のリンク集（ul.sample_cards.ref_cards。画像＋題名だけ）は既存CSSで1列になり長いので2列に。サンプル集は説明文があるので1列のまま */
body.page-id-2313 #contents .entry-content .theContentWrap-ccc ul.sample_cards.ref_cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 12px!important}
body.page-id-2313 #contents .entry-content .theContentWrap-ccc ul.sample_cards.ref_cards .sample_card_title{font-size:14px!important;line-height:1.55!important;letter-spacing:0!important}
body.page-id-2313 #contents .entry-content .theContentWrap-ccc ul.sample_cards .sample_card_img img,
body.page-id-2313 #contents .entry-content .theContentWrap-ccc ul.sample_cards > li > img{border-radius:6px}
/* 「ゲームの内容をくわしく見る」（details の summary）のタップ領域 */
body.page-id-2313 #contents .entry-content .theContentWrap-ccc details.sample_card_more > summary{display:flex;align-items:center;min-height:44px}
body.page-id-2313 #contents .entry-content .theContentWrap-ccc table.simple_table:not(.history_table):not(.csr_table) > thead + tbody > tr > th{width:34%!important}

/* /service/application/：3方式の比較表（table.app_compare_table）は4列では項目名が重なるので、
   各行を「項目名（全幅）＋3方式のセル（3列）」の2段に組み替え、方式名の見出し行はヘッダー（66px）の下に固定（表の範囲内だけ） */
body.page-id-2334 #contents table.app_compare_table,
body.page-id-2334 #contents table.app_compare_table thead,
body.page-id-2334 #contents table.app_compare_table tbody{display:block;width:100%!important}
body.page-id-2334 #contents table.app_compare_table thead{position:-webkit-sticky;position:sticky;top:66px;z-index:2}
body.page-id-2334 #contents table.app_compare_table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
body.page-id-2334 #contents table.app_compare_table thead th:first-child{display:none}
body.page-id-2334 #contents table.app_compare_table thead th{white-space:normal!important;font-size:12px!important;line-height:1.4!important;letter-spacing:0!important;padding:8px 1px!important;display:flex;flex-direction:column;justify-content:center}
body.page-id-2334 #contents table.app_compare_table thead th span{font-size:12px!important;font-weight:400}
body.page-id-2334 #contents table.app_compare_table tbody th{grid-column:1/-1;width:auto!important;padding:8px 10px!important;font-size:14px!important;line-height:1.5!important;border-bottom:0!important}
body.page-id-2334 #contents table.app_compare_table td{font-size:13px!important;line-height:1.6!important;letter-spacing:0!important;padding:8px 4px 10px!important}
body.page-id-2334 #contents table.app_compare_table td .mk{font-size:20px!important}

/* =====================================================================
   8. 会社概要 /about-2/ （page-id-66）（pages.css）
   ===================================================================== */
body:not(.home) #contents .entry-content .theContentWrap-ccc table.philosophy_table td p.philosophy_lead{font-size:16px!important;line-height:1.7!important}
/* メンバー写真（既存CSSで最大360px）：画面幅に合わせる */
body:not(.home) #contents .entry-content .theContentWrap-ccc p.member_photo{max-width:100%!important}
/* パンフレット下のキャプション（class無しbrで意図的に改行）は補足の文字に */
body:not(.home) #contents .entry-content .theContentWrap-ccc p.panfu_caption{font-size:13px!important;line-height:1.65!important;color:#3e3e3e!important;margin-top:-12px!important}

/* =====================================================================
   9. 実績一覧 /category/jisseki/ （ページ送りなし。全件を1ページに表示しボタンで絞り込み。sp.js で10件ずつ畳む）
   ===================================================================== */
#jisseki-all,#jisseki-all.jisseki_list{width:auto!important;margin:24px 0 48px!important}
/* 絞り込みボタン（内容7個・エリア14個）は、それぞれ1行の横スクロールにする */
#jisseki-all .jisseki_filter{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:8px!important;justify-content:flex-start!important;margin:0 -20px 10px!important;padding:2px 20px!important;max-width:none!important}
#jisseki-all .jisseki_filter::-webkit-scrollbar{display:none}
#jisseki-all .jisseki_filter button{flex:none;white-space:nowrap;min-height:44px;padding:7px 13px!important;font-size:14px!important;border-radius:999px!important}
#jisseki-all .jisseki_filter button span{margin-left:4px!important;font-size:12px!important}
#jisseki-all .jisseki_count{font-size:13px!important;color:#3e3e3e!important;padding:0!important;margin:20px 0 4px!important}
#jisseki-all .jisseki_all_grid{display:block!important;max-width:none!important;width:auto!important;margin:0 -20px!important;padding:0 20px 8px!important}
#jisseki-all .jisseki_all_item{display:grid!important;grid-template-columns:minmax(0,1fr) 112px;grid-template-rows:auto auto 1fr;column-gap:14px;padding:18px 0!important;border-bottom:1px solid #e3ddd0}
#jisseki-all .jisseki_all_item[hidden]{display:none!important}
#jisseki-all .jisseki_all_thumb{grid-column:2;grid-row:1 / span 3;align-self:start;margin:2px 0 0!important;aspect-ratio:4 / 3!important;border-radius:6px;border-color:#e3ddd0!important}
#jisseki-all .jisseki_all_date{grid-column:1;grid-row:1;font-size:13px!important;color:#3e3e3e!important;margin:0 0 2px!important;letter-spacing:0}
#jisseki-all .jisseki_all_name,
#jisseki-all .jisseki_all_item.is-big .jisseki_all_name{grid-column:1;grid-row:2;font-size:14px!important;font-weight:600!important;line-height:1.6!important;letter-spacing:0;overflow-wrap:anywhere}
#jisseki-all .jisseki_all_name a{color:#3e3e3e!important}
#jisseki-all .jisseki_all_tags{grid-column:1;grid-row:3;font-size:13px!important;color:#3e3e3e!important;margin:6px 0 0!important}

/* =====================================================================
   10. お知らせ一覧 /category/news/ と検索結果（div.posts > article。ページ送りなし。sp.js で10件ずつ畳む）
   ===================================================================== */
body:not(.home) #contents .posts{margin:16px -20px 40px!important;padding:4px 20px 8px!important;background:#fff;max-width:none!important;width:auto!important}
body:not(.home) #contents .posts article{padding:18px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #e3ddd0!important;background:none!important}
body:not(.home) #contents .posts article:last-child{border-bottom:0!important}
body:not(.home) #contents .posts .entry-date{display:block;font-size:13px!important;color:#3e3e3e!important;letter-spacing:0}
body:not(.home) #contents .posts .entry-title{font-size:14px!important;font-weight:600!important;line-height:1.6!important;letter-spacing:0;margin:2px 0 6px!important}
body:not(.home) #contents .posts .entry-title a{color:#3e3e3e!important;text-decoration:none!important}
body:not(.home) #contents .posts .entry-content{font-size:14px!important;line-height:1.65!important;color:#3e3e3e!important;letter-spacing:0}
body:not(.home) #contents .posts + .sp-more{margin:-16px auto 40px!important}

/* =====================================================================
   11. 実績などの個別記事（body.single）：記事タイトル（#contents 直下の h2）と日付
   ===================================================================== */
body.single #contents > h2{font-size:20px!important;font-weight:600!important;line-height:1.55!important;letter-spacing:0;text-align:left!important;margin:24px 0 8px!important;padding:0!important;color:#3e3e3e}
body.single #contents p.post_date{font-size:13px!important;color:#3e3e3e!important;text-align:left!important;margin:0 0 20px!important}
body.single #contents p.post_date time{font-size:inherit!important}

/* =====================================================================
   12. お問い合わせ /contact/ （Contact Form 7）
   入力欄は幅いっぱい・16px（iOSの自動ズーム回避）・高さ48px、送信ボタンは幅いっぱい
   ===================================================================== */
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form p{font-size:14px!important;line-height:1.5!important;margin:0 0 6px!important;letter-spacing:0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form .wpcf7-form-control-wrap{display:block;margin-bottom:14px}
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form input[type="text"],
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form input[type="email"],
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form input[type="tel"],
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form input[type="url"],
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form textarea{box-sizing:border-box;width:100%!important;max-width:100%!important;min-height:48px;padding:10px 12px!important;font-size:16px!important;line-height:1.5!important;border-radius:8px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form textarea{height:calc(1.5em * 7 + 20px)!important}
/* 姓・名は横に2つ並べる（:has() を使わず、2つの入力の箱を半分ずつの幅にする） */
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form .wpcf7-form-control-wrap[data-name="last-name"],
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form .wpcf7-form-control-wrap[data-name="first-name"]{display:inline-block!important;vertical-align:top;width:calc(50% - 5px)!important;margin-right:0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form .wpcf7-form-control-wrap[data-name="last-name"]{margin-right:10px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form input[type="submit"]{width:100%!important;min-height:52px;padding:14px 20px!important;font-size:17px!important;margin-top:12px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 form .wpcf7-not-valid-tip,
body:not(.home) #contents .entry-content .theContentWrap-ccc .wpcf7 .wpcf7-response-output{font-size:14px!important}
/* お電話についての枠 */
body.page-id-79 #contents .entry-content .theContentWrap-ccc > p[style*="border"]{padding:14px 16px!important}

/* =====================================================================
   13. オンライン見積 /estimate/ （page-id-5730。独自テンプレートで #contents-body の外の section#estimate に本体がある。estimate.css はPC固定幅1000px）
   1列に並べ直し、チェック項目は「チェック・項目名・金額」を1行目、説明を2行目に置く
   ===================================================================== */
body.page-id-5730 .inner_w1200,
body.page-id-5730 #estimate{width:auto!important;max-width:100%!important;box-sizing:border-box}
body.page-id-5730 #estimate{padding-bottom:24px!important}
body.page-id-5730 #estimate h2,body.page-id-5730 #contents h2{font-size:22px!important;line-height:1.5!important}
body.page-id-5730 .page_description{font-size:14px!important;line-height:1.7!important;text-align:left!important;margin:0 20px 32px!important}
body.page-id-5730 .page_description br{display:none}
body.page-id-5730 #estimate .form_block{padding:16px 20px!important}
body.page-id-5730 #estimate h3.block_title{font-size:18px!important;line-height:1.5!important}
body.page-id-5730 #estimate .select_item_box label{width:100%!important;margin-right:0!important;height:auto!important;min-height:50px;padding:10px 14px!important;font-size:14px!important}
body.page-id-5730 #estimate .select_item_box label .item span.purpose{width:auto!important}
body.page-id-5730 #estimate .select_item_box label.plan{width:100%!important;height:auto!important;margin-left:0!important;padding:14px 16px!important}
body.page-id-5730 #estimate .select_item_box label.plan span.purpose{margin-top:8px!important}
body.page-id-5730 #estimate .select_item_list>label,
body.page-id-5730 #estimate .select_item_list label.column2{width:100%!important;flex-wrap:wrap;align-items:flex-start!important;column-gap:10px;padding:14px 0!important;font-size:14px!important}
body.page-id-5730 #estimate .select_item_list .checkbox_icon{margin-top:3px!important}
body.page-id-5730 #estimate .select_item_list .item,
body.page-id-5730 #estimate .select_item_list .item.wide{width:auto!important;flex:1 1 0;min-width:0;padding-left:0!important}
body.page-id-5730 #estimate .select_item_list .service_name{flex:1 1 0;min-width:0}
body.page-id-5730 #estimate .select_item_list .fee{width:auto!important;order:2;white-space:nowrap;font-weight:600}
body.page-id-5730 #estimate .select_item_list .price{white-space:nowrap}
body.page-id-5730 #estimate .select_item_list .purpose,
body.page-id-5730 #estimate .select_item_list .purpose.wide{order:3;width:100%!important;padding-left:30px;margin-top:4px;font-size:13px!important;line-height:1.6!important;color:#3e3e3e}
body.page-id-5730 #estimate .select_item_list .require_box{order:4;width:auto!important;margin:6px 0 0 30px!important;padding:2px 8px!important;font-size:12px!important}
body.page-id-5730 #estimate p.subpage_heading{font-size:17px!important;padding:16px 4px!important}
body.page-id-5730 #estimate .under_page{padding:28px 14px 12px!important}
body.page-id-5730 #estimate .under_page .col3{width:50%!important}
body.page-id-5730 #estimate .under_page span.purpose,
body.page-id-5730 #estimate .under_page input[type=text]{margin-left:0!important}
body.page-id-5730 #estimate .under_page input[type=text]{width:100%!important;box-sizing:border-box;font-size:16px!important}
body.page-id-5730 #estimate .under_page input[type=number]{font-size:16px!important}
body.page-id-5730 #estimate .under_page label{font-size:14px!important}
/* 画面下に固定で出る「見積シミュレーション」（合計金額・納期・PDFボタン）：高さを約127pxに抑え、金額は左・PDFボタンは右 */
body.page-id-5730 #estimate .display_result{width:auto!important;left:0!important;right:0!important;transform:none!important;border-radius:10px 10px 0 0}
body.page-id-5730 #estimate .display_result.block{left:auto!important;right:auto!important}
body.page-id-5730 #estimate .display_result h2{font-size:16px!important;line-height:36px!important;height:36px!important}
body.page-id-5730 #estimate .display_result .display_result_inner{padding:10px 16px 12px!important}
body.page-id-5730 #estimate .display_result .display_result_inner_flex{flex-direction:row!important;align-items:center!important;gap:10px}
body.page-id-5730 #estimate .display_result dl{display:block!important;flex:1 1 auto;width:auto!important;min-width:0}
body.page-id-5730 #estimate .display_result dl div{display:flex;align-items:baseline;gap:8px;width:auto!important;line-height:1.4;font-size:14px!important}
body.page-id-5730 #estimate .display_result dl div:first-child{display:block!important}
body.page-id-5730 #estimate .display_result dl div + div{margin-top:2px}
body.page-id-5730 #estimate .display_result dt{font-size:12px!important;white-space:nowrap}
body.page-id-5730 #estimate .display_result dd{white-space:nowrap;font-size:12px!important}
body.page-id-5730 #estimate .display_result dd span{font-size:19px!important}
body.page-id-5730 #estimate .display_result dd.date{margin-top:0!important;font-size:13px!important}
body.page-id-5730 #estimate .display_result dd.date span{font-size:14px!important}
body.page-id-5730 #estimate .display_result .display_result_inner p{font-size:12px!important;margin-top:6px!important}
body.page-id-5730 #estimate .display_result.fixed .display_result_inner p{display:none}
body.page-id-5730 #estimate .button_set{width:auto!important;flex:none;justify-content:center!important}
body.page-id-5730 #estimate .button{font-size:14px!important;height:48px!important;line-height:48px!important}
body.page-id-5730 #estimate .button_pdf{font-size:13px!important;height:44px!important;line-height:1.3!important;display:flex!important;align-items:center;padding:0 10px!important;max-width:118px}
body.page-id-5730 #estimate .button_pdf::before{flex:none;width:22px!important;height:22px!important;margin-right:8px!important}
/* 見積バーが画面下に固定で出ている間は、「トップへ戻る」をバーの上に逃がす（sp.js が body に sp-est-fixed を付ける） */
body.page-id-5730.sp-est-fixed #back_to_top{bottom:140px!important}
/* 見積内容での問い合わせフォーム（Contact Form 7） */
body.page-id-5730 .estimate_contact{width:auto!important;font-size:14px!important}
body.page-id-5730 .estimate_contact dl label,body.page-id-5730 .estimate_contact dl div{flex-direction:column;align-items:stretch!important}
body.page-id-5730 .estimate_contact dt{width:auto!important;justify-content:flex-start!important;gap:8px;margin-bottom:6px}
body.page-id-5730 .estimate_contact dd{width:100%!important}
body.page-id-5730 .estimate_contact input:not(.form_submit),
body.page-id-5730 .estimate_contact select,
body.page-id-5730 .estimate_contact textarea{font-size:16px!important;min-height:48px}
body.page-id-5730 .estimate_contact select{width:100%!important}
body.page-id-5730 .button_area{width:auto!important;margin:32px 0 24px!important}
body.page-id-5730 .estimate_contact input.form_submit{width:100%!important;height:56px!important;font-size:18px!important}
/* 御見積書PDFダウンロードのモーダル */
body.page-id-5730 #download-modal .content{width:calc(100% - 24px)!important;max-height:calc(100vh - 24px);overflow-y:auto}
body.page-id-5730 #download-modal .content .modal_inner{padding:16px!important}
body.page-id-5730 #download-modal .content .modal_inner dd{width:100%!important}
body.page-id-5730 #download-modal .content .modal_inner input{font-size:16px!important}
body.page-id-5730 #download-modal .content .modal_inner_flex label{flex-direction:column;align-items:stretch}

}

/* =====================================================================
   総見直し（2026-11-28）。余白、見切れ、大見出し、改行の手直し
   ===================================================================== */
.sp-slide-nav{display:none}
@media (max-width:767px){
/* 下層ページの大見出し：高さを88pxに抑え、背景の光の球は右端へ寄せる（画像を右へ80pxずらす。幅の広い端末でも左に地色が出ないよう画像幅を確保）。題名は左寄せ */
body:not(.home) #container>header.page-header{margin:0!important;padding:0!important}
body:not(.home) #container>header.page-header h1.page-title{display:flex!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box!important;height:88px!important;min-height:0!important;margin:0!important;padding:0 60px 0 20px!important;font-size:20px!important;line-height:1.4!important;font-weight:600!important;letter-spacing:0!important;text-align:left!important;background-size:max(475px,calc(100% + 80px)) auto!important;background-position:calc(100% + 80px) center!important;background-repeat:no-repeat!important;background-color:#0b2350!important}
/* 最終更新日とページ内目次（目次は区切りの「｜」をやめ、角丸のボタンを折り返して並べる） */
body:not(.home) #contents .page_last_update,body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update{position:static!important;float:none!important;margin:14px 0 10px!important;padding:0!important;text-align:right!important;font-size:12px!important;line-height:1.5!important}
body.page-id-5730 p.page_last_update,body.page-id-5730 .page_last_update{padding:0 20px!important;margin:16px 0!important;text-align:right!important;font-size:12px!important;color:#3e3e3e!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:0 0 40px!important;padding:0!important;font-size:0!important;line-height:0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc a{display:block!important;padding:8px 14px!important;border:1px solid #d9d2c3;border-radius:999px;background:#fff;font-size:13px!important;line-height:1.4!important;color:#3e3e3e!important;text-decoration:none!important}
/* 見出しの中のPC用改行はスマホでは効かせず、自然に折り返す。「・」で始まる箇条書きの行は br.lb でも改行を残す（sp.js が sp-keep を付ける） */
#container h1 br,#container h2 br,#container h3 br,#container h4 br{display:none!important}
#container br.lb.sp-keep{display:inline!important}
/* 制作の流れの図：横スクロールで見切れさせず、画面幅に収める */
body:not(.home) #contents .entry-content .theContentWrap-ccc p.wide_figure{overflow:visible!important;margin-left:0!important;margin-right:0!important;padding:0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.wide_figure img{width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.wide_figure::before,body:not(.home) #contents .entry-content .theContentWrap-ccc p.wide_figure::after{content:none!important;display:none!important}
body.page-id-86 #contents .entry-content .theContentWrap-ccc p.wide_figure + p.figure_caption::after{content:none!important;display:none!important}
/* 関連実績のサムネイルを右端の余白にそろえる */
body:not(.home) #contents .relation_section ul.relation_cards .relation_card_img{box-sizing:border-box!important;max-width:112px!important;justify-self:end}
/* 画面例の枠：PC用の固定高さをやめ、画像の上下に大きな空きが出ないようにする */
body:not(.home) #contents .visual_works .vw_frame{height:auto!important;min-height:0!important}
/* 実績一覧の絞り込みボタン：横スクロールで見切れさせず、折り返して全部見せる */
#jisseki-all .jisseki_filter{flex-wrap:wrap!important;overflow:visible!important;gap:8px!important;margin:0 0 14px!important;padding:0!important}
#jisseki-all .jisseki_filter button{min-height:40px;padding:6px 12px!important;font-size:13px!important}
/* トップのスライダー：サムネイル列と画面外の矢印は出さず、送りボタンと枚数を出す。題名は2行まで、タグは1ブロック2行までにそろえ、枚ごとの高さの差で下に空きが出ないようにする */
#slider .slick-dots,#slider .slick-arrow{display:none!important}
.sp-slide-nav{display:flex;align-items:center;justify-content:space-between;padding:4px 20px 28px}
.sp-slide-nav button{width:64px;height:40px;border:1px solid #c9c2b4;border-radius:999px;background:#fff;color:#3e3e3e;font-size:18px;line-height:1;padding:0;cursor:pointer;-webkit-appearance:none}
.sp-slide-count{font-size:13px;color:#3e3e3e;letter-spacing:.08em}
.slider .slick-slide a{min-height:108px!important;box-sizing:border-box!important;padding:14px 20px 0!important}
.slider .slick-slide a span.sp-slide-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0!important;font-size:14px!important;line-height:1.5!important;font-weight:700!important;color:#3e3e3e!important;letter-spacing:0}
.slider .slick-slide a span.sp-slide-title br{display:none}
.slider .slick-slide a span:not(.sp-slide-title)~span:not(.sp-slide-title){display:none!important}
/* reCAPTCHAのバッジ：本文に重なる面積を減らすため小さくし、「トップへ戻る」の上に置く（非表示にはしない） */
.grecaptcha-badge{-webkit-transform:scale(.62)!important;transform:scale(.62)!important;-webkit-transform-origin:100% 100%!important;transform-origin:100% 100%!important;bottom:70px!important;right:-116px!important}
/* 目次ボタンの左のずれをなくす */
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc a{margin:0!important}
/* クラスのない表（料金ページの作業項目など）：長い項目名が右端で切れないよう折り返す */
body:not(.home) #contents .entry-content table:not([class]) td,body:not(.home) #contents .entry-content table:not([class]) th{white-space:normal!important}
/* フッターの背景（京都から各地へ線が伸びる日本列島の縦長画像）。PCは幅1014pxで右側に置き、文字は左の暗い部分に載せている。
   スマホでは画像を画面幅まで縮めて列島全体を見せ、会社情報の文字は画像の上の空（暗い部分）に置いて、列島と線に文字を重ねない */
#footer::before{display:none!important}
#footer_link{position:relative;padding:40px 20px 78vw!important;background-color:#0b1d3f;background-image:linear-gradient(to bottom,#0b1d3f 0%,rgba(11,29,63,0) 34%),url(/wp-content/uploads/2026/11/footer-cover-tate.jpg);background-repeat:no-repeat,no-repeat;background-position:center bottom,center bottom;background-size:100% 149.6vw,100% auto}
/* =====================================================================
   方針変更（2026-11-28 夕）。PC版から情報を落とさない。畳まない。画像を前面に。主要メニューは常に見せる
   ===================================================================== */
/* 畳みは使わない（sp.js 側でも止めている） */
#wrap .sp-hide.sp-hide.sp-hide.sp-hide.sp-hide.sp-hide.sp-hide{display:revert!important}
.sp-more{display:none!important}
/* ヘッダー：キャッチコピーをロゴの下に出す。メニューが常に見えるのでメニューボタンは出さず、ヘッダーは固定しない */
#header{position:static!important}
#header .right_msg{display:block!important;width:auto!important;margin:12px 0 0!important;padding:0!important}
#header .right_msg p{font-size:11px!important;line-height:1.6!important;margin:0!important;color:#3e3e3e!important;word-break:normal!important}
#header .right_msg p br{display:none}
.sp-menu-btn{display:none!important}
html{scroll-padding-top:12px!important}
body.page-id-2334 #contents table.app_compare_table thead{top:0!important}
/* 主要メニュー：ヘッダーの下に4列×2段で常に出す */
#global-nav{display:block!important;position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;border-top:1px solid #e3ddd0!important;border-bottom:1px solid #e3ddd0!important}
#menu-global{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:auto!important;margin:0!important;padding:0!important;border:0!important}
#menu-global li{border:0!important;border-right:1px solid #eee7da!important;border-bottom:1px solid #eee7da!important;min-width:0}
#menu-global li:nth-child(4n){border-right:0!important}
#menu-global li:nth-last-child(-n+4){border-bottom:0!important}
#menu-global li a{display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:4px 2px!important;font-size:12px!important;font-weight:600!important;line-height:1.3!important;letter-spacing:0!important;text-align:center!important;white-space:nowrap!important}
#menu-global .nav_en{display:none!important}
/* トップのスライダー：サムネイルを全部並べる。題名とタグは省略しない */
#slider .slick-dots{display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:4px!important;overflow:visible!important;position:static!important;width:auto!important;padding:10px 12px 24px!important;margin:0!important}
#slider .slick-dots li{display:block!important;flex:none!important;width:auto!important;height:auto!important;margin:0!important}
#slider .slick-dots li img{display:block;width:100%!important;height:auto!important}
.sp-slide-nav{display:none!important}
.slider .slick-slide a{min-height:0!important;padding:12px 20px 4px!important}
.slider .slick-slide a span,.slider .slick-slide a span.sp-slide-title{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important}
.slider .slick-slide a span:not(.sp-slide-title)~span:not(.sp-slide-title){display:block!important}
/* トップの新着実績：画像を前面に、PCと同じ並び（大きい実績は全幅、ほかは2列）で全件 */
#top-jisseki .column-group{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:22px 12px!important}
#top-jisseki .column-group article.column-article{display:block!important;padding:0!important;border:0!important;min-width:0}
#top-jisseki .column-group article.column-article a.jisseki_thumb{display:block!important;position:relative!important;width:auto!important;height:auto!important;padding:56.25% 0 0!important;margin:0 0 6px!important;overflow:hidden!important;border:1px solid #ddd!important}
#top-jisseki .column-group article.column-article a.jisseki_thumb img{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:top center}
#top-jisseki .column-group article.column-article .entry-date{font-size:11px!important;margin:0 0 2px!important}
body.home #top-jisseki .update-title,body.home #top-jisseki .update-title a{font-size:13px!important;line-height:1.5!important;font-weight:600!important}
/* 「トップへ戻る」は元の花の画像のまま、少し小さく */
#back_to_top a{width:auto!important;height:auto!important;background:none!important;border-radius:0!important;overflow:visible!important}
#back_to_top a::after{content:none!important;display:none!important}
#back_to_top a img{position:static!important;width:117px!important;height:auto!important;opacity:1!important}
/* 隠していた情報を戻す：CSR活動の表の列見出し、見積バー固定時の注記 */
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table thead{display:block!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc table.csr_table thead th{display:inline-block!important;font-size:13px!important;color:#3e3e3e!important;padding:0 12px 0 2px!important}
body.page-id-5730 #estimate .display_result.fixed .display_result_inner p{display:block!important;font-size:11px!important;margin-top:4px!important}
/* 実績一覧：画像を前面に、2列のカードで全件並べる */
#jisseki-all .jisseki_all_grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:22px 12px!important;margin:0!important;padding:16px 0 8px!important}
#jisseki-all .jisseki_all_item{display:block!important;padding:0!important;border:0!important;min-width:0}
#jisseki-all .jisseki_all_item[hidden]{display:none!important}
#jisseki-all .jisseki_all_thumb{display:block!important;width:auto!important;margin:0 0 6px!important;aspect-ratio:16 / 9!important}
#jisseki-all .jisseki_all_thumb img{width:100%!important;height:100%!important;object-fit:cover;object-position:top center}
#jisseki-all .jisseki_all_date{font-size:11px!important}
#jisseki-all .jisseki_all_name,#jisseki-all .jisseki_all_item.is-big .jisseki_all_name{font-size:13px!important;line-height:1.5!important}
#jisseki-all .jisseki_all_tags{font-size:11px!important;margin:4px 0 0!important}
}

/* =====================================================================
   2026-11-28 夕(2)：メニューは主要8項目を常に出し（省スペース）、キャッチコピーはメニューボタンの中。
   トップは新着情報の表示を直し、2016年以前は出さない。スライドは画像だけ、先頭30枚（sp.js）
   ===================================================================== */
.sp-nav-catch{display:none}
.sp-past-title{display:none!important}
@media (max-width:767px){
.home #contents>h1.sp-past-title{display:flex!important}
#header{position:-webkit-sticky!important;position:sticky!important;top:0!important}
#header .right_msg{display:none!important}
.sp-menu-btn{display:block!important;top:50%!important;-webkit-transform:translateY(-50%)!important;transform:translateY(-50%)!important}
html{scroll-padding-top:66px!important}
body.page-id-2334 #contents table.app_compare_table thead{top:66px!important}
/* 閉じているとき：主要8項目を4列×2段で常に出す。場所を取らないよう1段32pxに詰める */
body:not(.sp-nav-open) #menu-global{grid-template-columns:repeat(4,minmax(0,1fr))!important}
body:not(.sp-nav-open) #menu-global li a{min-height:32px!important;padding:2px 1px!important;font-size:11.5px!important;line-height:1.2!important}
/* 開いたとき：キャッチコピーと全メニューを縦に並べる */
body.sp-nav-open #global-nav{display:block!important;position:fixed!important;top:66px!important;left:0;right:0;bottom:0;z-index:999;height:auto!important;margin:0!important;padding:8px 20px 40px!important;background:#fff!important;overflow-y:auto;border:0!important}
body.sp-nav-open #menu-global{display:block!important}
body.sp-nav-open #menu-global li{display:block!important;border:0!important;border-bottom:1px solid #e3e3e3!important}
body.sp-nav-open #menu-global li a{display:block!important;min-height:0!important;padding:17px 4px!important;font-size:16px!important;line-height:1.4!important;text-align:left!important;white-space:normal!important}
body.sp-nav-open .sp-nav-catch{display:block;margin:0;padding:16px 4px 18px;border-bottom:1px solid #e3e3e3;font-size:13px;line-height:1.65;color:#3e3e3e}
/* トップ：2016年以前の実績と新着はスマホでは出さない */
#top-jisseki .column-group article.column-article.sp-old,#top-news .column-group article.column-article.sp-old{display:none!important}
/* スライドは画像だけ（題名とタグは出さない。画像全体がリンク） */
.slider .slick-slide{position:relative!important}
.slider .slick-slide a{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;font-size:0!important;line-height:0!important;color:transparent!important;opacity:0!important;overflow:hidden!important;z-index:3}
/* フッターのバナー：縦横比を保つ */
.footer_badges .footer_badge img{width:auto!important;height:auto!important;max-width:100%!important;max-height:72px!important;object-fit:contain!important}
/* トップ：新着実績（左）と新着情報（右）をPCと同じく左右に並べる。縦積みだとPC用の高さ合わせ（front-page.php）が新着情報を全件隠してしまうため、これで新着情報も出る */
.home #contents{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:14px!important;align-items:start!important;margin-top:40px!important}
.home #contents>*{grid-column:1 / -1}
.home #contents>#top-jisseki{grid-column:1!important;margin:0!important;padding:0!important}
.home #contents>#top-news{grid-column:2!important;margin:0!important;padding:0!important}
#top-jisseki>h1,#top-news>h1{font-size:16px!important;margin:0 0 10px!important;padding-left:8px!important;padding-right:0!important}
#top-jisseki .column-group{grid-template-columns:minmax(0,1fr)!important;gap:18px 0!important}
#top-news .column-group .column-article{padding:10px 0!important}
#top-news .column-article .entry-date{font-size:11px!important;margin:0 0 2px!important}
body.home #top-news .update-title,body.home #top-news .update-title a{font-size:12px!important;line-height:1.5!important;font-weight:400!important}
/* 字間と行間：PC（本文は字間0、行間1.8）より広く感じないよう詰める。フッターはPCの行間2.0をスマホでは1.65に、段の間の余白も詰める */
.home .page-header p{line-height:1.7!important;letter-spacing:0!important}
#footer .footer_catch{letter-spacing:.03em!important;line-height:1.6!important;margin-bottom:8px!important}
#footer .footer_est{letter-spacing:.02em!important;margin-bottom:22px!important}
#footer .footer_addr,#footer .footer_tel,#footer .footer_lead{line-height:1.65!important;font-size:14px!important}
#footer .footer_addr{margin-bottom:14px!important}
#footer .footer_lead{margin-top:18px!important}
#footer .footer_sitemap_ttl a{font-size:16px!important}
#footer .footer_sitemap_col li a{font-size:14px!important;line-height:1.5!important;padding:3px 0!important}
#footer .footer_sitemap_inner{gap:22px 20px!important}
#footer #footer_links_ttl{margin-top:36px!important}
#footer table{gap:0 16px!important}
#footer table td{padding:4px 0!important;line-height:1.45!important}
/* ---- 2026-11-28 夕(3) ---- */
/* メニューは8項目が常に出ているので、メニューボタンは出さない。キャッチコピーはロゴの下に小さく出す。ヘッダーは固定しない */
.sp-menu-btn{display:none!important}
#header{position:static!important;padding:16px 16px 10px!important}
#header .right_msg{display:block!important;width:auto!important;margin:8px 0 0!important;padding:0!important}
#header .right_msg p{font-size:10.5px!important;line-height:1.5!important;margin:0!important;color:#3e3e3e!important;word-break:normal!important}
#header .right_msg p br{display:none}
html{scroll-padding-top:12px!important}
body.page-id-2334 #contents table.app_compare_table thead{top:0!important}
/* ページ内目次：絞り込みボタンに見えないよう、枠をやめて小さな文字リンクを詰めて並べる */
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc{display:block!important;margin:0 0 28px!important;padding:8px 12px!important;background:#f6f2e9;border-radius:4px;font-size:0!important;line-height:0!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc a{display:inline-block!important;margin:0 14px 0 0!important;padding:3px 0!important;border:0!important;border-radius:0!important;background:none!important;font-size:12px!important;line-height:1.5!important;color:#087ab3!important;text-decoration:underline!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc a::before{content:"▾ ";text-decoration:none;display:inline-block}
/* PC用の改行のうち、スマホでは行の途中で折り返したあとに来て不自然になるものを効かせない（sp.js が判定して sp-br-off を付ける） */
#wrap br.sp-br-off{display:none!important}
/* 下層ページ下部の関連実績：2列で、画像を上に大きく見せる */
body:not(.home) #contents .relation_section ul.relation_cards{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:20px 12px!important;margin:0!important;padding:12px 0 16px!important}
body:not(.home) #contents .relation_section ul.relation_cards li.relation_card{border:0!important;min-width:0}
body:not(.home) #contents .relation_section ul.relation_cards li.relation_card a{display:block!important;padding:0!important;min-height:0!important}
body:not(.home) #contents .relation_section ul.relation_cards .relation_card_img{display:block!important;position:relative!important;float:none!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;height:auto!important;padding:56.25% 0 0!important;margin:0 0 6px!important;overflow:hidden!important;border-radius:0!important;justify-self:stretch!important}
body:not(.home) #contents .relation_section ul.relation_cards .relation_card_img img{position:absolute!important;left:0!important;top:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:top center}
body:not(.home) #contents .relation_section ul.relation_cards li.relation_card .relation_card_title{font-size:13px!important;line-height:1.5!important}
body:not(.home) #contents .relation_section ul.relation_cards li.relation_card .relation_card_date{font-size:11px!important;margin-top:2px!important}
/* トップ：左右の高さをそろえる。新着情報の1件ごとの高さを少し増やし、実績の列より長くなった分はPCと同じ仕組み（front-page.php の高さ合わせ）で切りそろえる */
#top-news .column-group .column-article{padding:15px 0!important}
body.home #top-news .update-title,body.home #top-news .update-title a{font-size:13px!important;line-height:1.7!important}
#top-news .column-article .entry-date{margin:0 0 3px!important}
/* ---- 2026-11-28 夕(4) ---- */
/* トップ：1段組みで、新着実績（10件、全幅）→新着情報（10件）→過去の実績（残り全件、2列）→過去の情報（残り全件）の順。
   sp.js が先頭10件に sp-new、2016年以前に sp-old を付け、「過去の実績」「過去の情報」の見出しを足す */
.home #contents{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:12px!important;row-gap:0!important;align-items:start!important;margin-top:20px!important;padding:0 8px!important}
.home #contents>#top-jisseki,.home #contents>#top-news,.home #contents>#top-jisseki>.column-group,.home #contents>#top-news>.column-group{display:contents!important}
.home #contents>*{grid-column:1 / -1}
.home #contents h1#latest-columns-title{grid-column:1 / -1!important;font-size:18px!important;margin:28px 0 14px!important;padding-left:12px!important;width:auto!important;box-sizing:border-box}
.home #contents>#top-jisseki>h1{order:1;margin-top:0!important}
.home #contents>#top-news>h1{order:3}
.home #contents>h1.sp-past-jisseki{order:5}
.home #contents>h1.sp-past-news{order:7}
.home #top-jisseki .column-group article.column-article{order:6;grid-column:auto!important;margin:0 0 20px!important}
.home #top-jisseki .column-group article.column-article.sp-new{order:2;grid-column:1 / -1!important;margin:0 0 24px!important}
.home #top-news .column-group article.column-article{order:8;grid-column:1 / -1!important;display:block!important;padding:12px 0!important}
.home #top-news .column-group article.column-article.sp-new{order:4}
.home #top-jisseki .column-group article.column-article.sp-old,.home #top-news .column-group article.column-article.sp-old{display:none!important}
body.home #top-jisseki .sp-new .update-title,body.home #top-jisseki .sp-new .update-title a{font-size:14px!important;line-height:1.55!important}
body.home #top-news .update-title,body.home #top-news .update-title a{font-size:14px!important;line-height:1.6!important;font-weight:400!important}
#top-news .column-article .entry-date{font-size:11px!important;margin:0 0 2px!important}
#top-news article.has-image a.news_thumb img{height:100%!important;max-width:none!important}
/* 上下の余白を詰める */
#slider .slick-dots{padding-bottom:10px!important}
#slider,.slider{margin-bottom:0!important}
.home .page-header{padding:24px 20px!important;margin:10px 0!important}
.home .page-header h1.page-title{margin:0 0 16px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc{padding-top:16px!important;padding-bottom:20px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc{margin-bottom:16px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc h3{margin-top:40px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc + h3,body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update + h3{margin-top:16px!important}
body:not(.home) #contents .relation_section{margin-top:24px!important}
#footer{padding-top:0!important}
#footer_link{padding-top:28px!important}
.footer_sitemap{padding:20px 20px!important}
.footer_badges{padding:16px 20px!important}
#footer #footer_links_ttl{margin-top:20px!important}
/* スマホのキャッチコピーは短い文にする（PCの文はそのまま。HTMLは変えず、表示だけ差し替える）。1行に収まるよう画面幅に合わせて文字を決める */
#header .right_msg p{display:none!important}
#header .right_msg::before{content:"Web制作・ブラウザゲームなら京都のWeb制作会社：メディアインパクトへ";display:block;font-size:11px;font-size:min(11px,calc((100vw - 34px) / 35.5));line-height:1.5;color:#3e3e3e;white-space:nowrap}
/* キャッチコピーはロゴの上に置く */
#header{display:flex!important;flex-direction:column!important;align-items:flex-start!important;padding:10px 16px 10px!important}
#header .right_msg{order:-1!important;margin:0 0 7px!important}
/* ロゴは中央寄せ。上のキャッチコピーも中央にそろえる */
#header{align-items:center!important}
#header h1#site-id{align-self:center!important;text-align:center!important}
#header .right_msg{align-self:stretch!important;text-align:center!important}
/* スマホのキャッチコピー（2行、中央寄せ） */
#header .right_msg::before{content:"Web制作・ブラウザゲーム開発（すごろく・神経衰弱・RPGなど）なら\A京都のWeb制作会社：メディアインパクトへご相談ください（全国対応可）"!important;white-space:pre!important;text-align:center;font-size:min(11px,calc((100vw - 34px) / 35.5))!important;line-height:1.55!important}
/* ロゴのアイソレーション：上のキャッチコピーとも下のメニューとも、ロゴの高さ（30px）の半分以上を空ける */
#header{padding:10px 16px 18px!important}
#header .right_msg{margin:0 0 16px!important}
/* メニューの文字を少し大きく（いちばん長い「ご相談・お見積」が1列に収まる範囲で） */
body:not(.sp-nav-open) #menu-global li a{font-size:12.5px!important;font-size:min(12.5px,calc((100vw - 16px) / 4 / 7.3))!important;min-height:34px!important}
/* 見出しの文字が大きすぎたので全体に一段小さくする（本文15pxに対して、大見出し17px、中見出し15.5px） */
.home .page-header h1.page-title{font-size:16px!important;line-height:1.6!important;margin:0 0 12px!important}
.home #contents h1#latest-columns-title{font-size:16px!important;margin:24px 0 12px!important}
body.home #top-jisseki .sp-new .update-title,body.home #top-jisseki .sp-new .update-title a{font-size:14px!important}
body:not(.home) #container>header.page-header h1.page-title{font-size:18px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc h3{font-size:17px!important;line-height:1.5!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc h4{font-size:15px!important;line-height:1.5!important}
body:not(.home) #contents .relation_section > h3{font-size:17px!important}
body.single #contents > h2{font-size:17px!important;line-height:1.5!important}
body.page-id-5730 #estimate h2,body.page-id-5730 #contents h2{font-size:18px!important}
body.page-id-5730 #estimate h3.block_title{font-size:16px!important}
#footer .footer_name{font-size:20px!important}
#footer .footer_catch{font-size:14px!important}
#footer .footer_sitemap_ttl a{font-size:14px!important}
#footer #footer_links_ttl{font-size:14px!important}
/* トップの新着実績と新着情報：PCと同じく、題名は同じ大きさ・同じ太さ（太字）・同じ色（紺）、日付も同じにそろえる */
body.home #top-jisseki .update-title,body.home #top-jisseki .update-title a,body.home #top-news .update-title,body.home #top-news .update-title a,body.home #top-jisseki .sp-new .update-title,body.home #top-jisseki .sp-new .update-title a{font-size:14px!important;line-height:1.55!important;font-weight:700!important;color:#0c3158!important}
#top-jisseki .column-group article.column-article .entry-date,#top-news .column-article .entry-date,.column-article .entry-date{font-size:12px!important;line-height:1.5!important;font-weight:400!important;color:#333!important;margin:0 0 2px!important}
/* トップの見出し文の太さもPCに合わせる */
.home .page-header h1.page-title{font-weight:400!important}
/* フッターの文字を全体に少し小さく */
#footer .footer_catch{font-size:13px!important}
#footer .footer_name{font-size:18px!important}
#footer .footer_est{font-size:11px!important}
#footer .footer_addr,#footer .footer_tel,#footer .footer_lead{font-size:13px!important}
#footer .footer_sitemap_ttl a{font-size:14px!important}
#footer .footer_sitemap_col li a{font-size:13px!important}
#footer #footer_links_ttl{font-size:14px!important}
#footer table td{font-size:12px!important}
#footer #copyright{font-size:11px!important}
/* フッターのサイトマップ：行の間を詰める */
#footer .footer_sitemap_inner{gap:14px 20px!important}
#footer .footer_sitemap_col ul{margin:0!important;padding:0!important}
#footer .footer_sitemap_col li{margin:0!important;padding:0!important;line-height:1.35!important;min-height:0!important}
#footer .footer_sitemap_col li a{display:inline-block!important;padding:2px 0!important;line-height:1.35!important}
#footer .footer_sitemap_ttl{margin:0 0 4px!important;padding-bottom:4px!important}
#footer .footer_sitemap_ttl a{padding:0!important;line-height:1.4!important}
/* 取引先・関連リンク集はさらに小さく、詰めて並べる */
#footer table{gap:0 12px!important}
#footer table td{font-size:11px!important;line-height:1.4!important;padding:2px 0!important}
#footer #footer_links_ttl{font-size:13px!important;margin-bottom:6px!important}
/* トップの見出し文は太字で読みやすく */
.home .page-header h1.page-title{font-weight:700!important}
/* フッターのサイトマップ：行頭の「・」が文字に重ならないよう、左に1文字分を空ける */
#footer .footer_sitemap_col li{padding:0 0 0 1em!important}
/* スマホのメニューでは「Webサイト制作」を「Web制作」と短く出す（HTMLは変えず表示だけ） */
body:not(.sp-nav-open) #menu-global li a[href$="/service/web/"]{font-size:0!important}
body:not(.sp-nav-open) #menu-global li a[href$="/service/web/"]::after{content:"Web制作"!important;display:inline!important;position:static!important;width:auto!important;height:auto!important;background:none!important;border:0!important;font-size:12.5px!important;font-size:min(12.5px,calc((100vw - 16px) / 4 / 7.3))!important;line-height:1.2!important}
/* 見出しのPC用改行：sp.js がいちばん長い行が収まる大きさに文字を合わせた見出し（sp-fit）では、改行を生かす */
#container .sp-fit br{display:inline!important}
/* 実績一覧：ほかのページと同じ白い地にして左右に余白を取る。絞り込みボタンは小さく詰めて、結果が早く見えるようにする */
#jisseki-all{background:#fff!important;margin:0 -20px 24px!important;padding:14px 16px 20px!important}
#jisseki-all .jisseki_filter{gap:5px!important;margin:0 0 8px!important}
#jisseki-all .jisseki_filter button{min-height:0!important;height:auto!important;padding:4px 8px!important;font-size:11px!important;line-height:1.3!important}
#jisseki-all .jisseki_filter button span{font-size:10px!important;margin-left:2px!important}
#jisseki-all .jisseki_count{margin:8px 0 0!important}
#jisseki-all .jisseki_all_grid{padding:10px 0 0!important;background:none!important}
/* ヘッダーの並びは ロゴ → キャッチコピー → メニュー。ロゴの上下はロゴの高さの半分以上を空ける */
#header{padding:18px 16px 12px!important}
#header .right_msg{order:2!important;margin:16px 0 0!important}
/* メニューは左右に余白を取り、枠で囲む。文字は少し小さく */
#global-nav{margin:0 12px 10px!important;border:1px solid #e3ddd0!important;box-sizing:border-box!important}
body:not(.sp-nav-open) #menu-global li a{font-size:12px!important;font-size:min(12px,calc((100vw - 42px) / 4 / 7.3))!important}
body:not(.sp-nav-open) #menu-global li a[href$="/service/web/"]::after{font-size:12px!important;font-size:min(12px,calc((100vw - 42px) / 4 / 7.3))!important}
/* メニュー：「Web制作」の色をほかの項目と同じにする（PCの現在地表示用の青を拾っていた）。文字が上に寄って見えるので、上の余白を増やして枠の中央に下げる */
body:not(.sp-nav-open) #menu-global li a[href$="/service/web/"]::after{color:#3e3e3e!important}
body:not(.sp-nav-open) #menu-global li a{padding:5px 1px 1px!important}
/* 本文を13.5pxに下げ、見出し（大17px・中15px）との差をはっきりさせる。表は13px */
body:not(.home) #contents .entry-content .theContentWrap-ccc{font-size:13.5px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p,body:not(.home) #contents .entry-content .theContentWrap-ccc li,body:not(.home) #contents .entry-content .theContentWrap-ccc dd,body:not(.home) #contents .entry-content .theContentWrap-ccc dt{font-size:13.5px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc td,body:not(.home) #contents .entry-content .theContentWrap-ccc th,body:not(.home) #contents .entry-content .theContentWrap-ccc td li{font-size:13px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update{font-size:11px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc p.figure_caption,body:not(.home) #contents .entry-content .theContentWrap-ccc figcaption{font-size:12px!important}
.home .page-header p{font-size:13.5px!important}
body:not(.home) #contents .posts .entry-content,body.single #contents .entry-content,body.single #contents .entry-content p{font-size:13.5px!important}
/* トップの見出し文の句（sp.js が分ける）。句の途中では折り返さない */
.home .page-header h1.page-title .sp-chunk{display:inline-block}
/* 最終更新日：PCと同じく、本文の右上に小さく置く */
body:not(.home) #contents .entry-content .theContentWrap-ccc{position:relative!important;padding-top:28px!important}
body:not(.home) #contents .page_last_update,body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update{position:absolute!important;top:7px!important;right:16px!important;left:auto!important;bottom:auto!important;width:auto!important;margin:0!important;padding:0!important;font-size:10.5px!important;line-height:1.4!important;text-align:right!important}
/* 縦のラインをそろえる：ヘッダー、メニュー、サムネイル、本文、一覧、フッターの左右の端をすべて画面端から20pxに統一 */
#header{padding-left:20px!important;padding-right:20px!important}
#global-nav{margin:0 20px 10px!important}
#slider .slick-dots{padding-left:20px!important;padding-right:20px!important}
.home #contents-body{padding:0 20px!important}
.home .page-header{margin:10px -20px!important;padding:24px 20px!important}
.home #contents{padding:0!important}
#jisseki-all{margin:0 -20px 24px!important;padding:14px 20px 20px!important}
/* 最終更新日：本文の右端（画面端から20px）にそろえる */
body:not(.home) #contents .page_last_update,body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update{right:0!important}
/* 実績一覧：白い地は画面の端まで、中身は左右20pxにそろえる（外側の余白の指定に左右されない書き方） */
#jisseki-all{padding:14px 0 20px!important;background:#fff!important;box-shadow:0 0 0 100vmax #fff!important;-webkit-clip-path:inset(0 -100vmax);clip-path:inset(0 -100vmax)}
/* 下層ページ下部の関連実績：白い地を外す */
body:not(.home) #contents .relation_section,body:not(.home) #contents .relation_section ul.relation_cards,body:not(.home) #contents .relation_section ul.relation_cards li.relation_card,body:not(.home) #contents .relation_section ul.relation_cards li.relation_card a{background:none!important;background-color:transparent!important}
/* 冒頭の画面例（Webサイト制作など）のキャプション：本文とのつり合いを取り、文字と余白を小さく */
body:not(.home) #contents .visual_works{gap:18px 12px!important;margin:14px 0 22px!important}
body:not(.home) #contents .visual_works .vw_title{font-size:14px!important;line-height:1.4!important;margin:8px 0 0!important;padding:0!important}
body:not(.home) #contents .visual_works .vw_desc{font-size:12px!important;line-height:1.5!important;margin:2px 0 0!important;padding:0!important}
/* 当社の強みの目次：スマホでは「3つの強み」を出さず、「1. 相談力」から始める */
body.page-id-5402 #contents .entry-content .theContentWrap-ccc p.page_toc a[href$="#strong"]{display:none!important}
/* ページ内目次：スマホでは1つ目の項目（ページ名とほぼ同じ内容）を出さない */
body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc a:first-of-type{display:none!important}
/* 左右の余白を20pxから10pxに狭め、中身の幅を広げる。ヘッダー、メニュー、本文、一覧、フッターの端はすべて画面端から10pxにそろえる */
#header{padding-left:10px!important;padding-right:10px!important}
#global-nav{margin:0 10px 10px!important}
#slider .slick-dots{padding-left:10px!important;padding-right:10px!important}
#contents-body,.home #contents-body{padding:0 10px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc{margin-left:-10px!important;margin-right:-10px!important;padding-left:10px!important;padding-right:10px!important}
.home .page-header{margin:10px -10px!important;padding:24px 10px!important}
body:not(.home) #contents .posts{margin-left:-10px!important;margin-right:-10px!important;padding-left:10px!important;padding-right:10px!important}
body:not(.home) #container>header.page-header h1.page-title{padding-left:10px!important}
#footer_link{padding-left:10px!important;padding-right:10px!important}
.footer_sitemap,.footer_badges,#footer .counter,#footer .footer_sns,#footer #copyright,#footer #footer_links_ttl{padding-left:10px!important;padding-right:10px!important}
#footer table{margin-left:10px!important;margin-right:10px!important}
body.page-id-5730 p.page_last_update,body.page-id-5730 .page_last_update{padding-left:10px!important;padding-right:10px!important}
/* トップの白い箱：白い地は画面の端まで、中の文字は左右10pxにそろえる */
.home .page-header{margin:10px 0!important;padding:24px 0!important;border:0!important;background:#fff!important;box-shadow:0 0 0 100vmax #fff!important;-webkit-clip-path:inset(0 -100vmax);clip-path:inset(0 -100vmax)}
/* 実績一覧：ほかの下層ページと同じく、青い帯のすぐ下から白い地を始める（帯の下のすき間をなくす） */
html body #contents-body #jisseki-all{margin:0 0 24px!important;padding:26px 0 20px!important}
html body:not(.home) #contents-body{margin-top:0!important;padding-top:0!important}
/* スマホのキャッチコピー（短くした2行。短くなったぶん文字を大きくする） */
#header .right_msg::before{content:"Web制作・ブラウザゲーム開発（すごろく・神経衰弱など）なら\A京都のWeb制作会社：メディアインパクトへご相談ください"!important;font-size:12px!important;font-size:min(13px,calc((100vw - 22px) / 30))!important}
/* 下層ページのページ名：ロゴやキャッチコピーと同じく中央寄せ。背景の光の球は右寄りに置き、文字に重なっても読めるよう少し暗くする */
body:not(.home) #container>header.page-header h1.page-title{justify-content:center!important;text-align:center!important;padding:0 10px!important;height:76px!important;background-image:linear-gradient(rgba(11,35,80,.38),rgba(11,35,80,.38)),url(/wp-content/uploads/2026/11/page-header-cover.jpg)!important;background-size:auto,auto 135%!important;background-position:center,calc(50% + 30px) 42%!important;background-repeat:no-repeat!important}
/* キャッチコピー：「（すごろく・神経衰弱など）」だけ少し小さくする。3つの部分に分けて出す（HTMLは変えない。元の文は大きさ0で隠し、表示用の文を前後に置く） */
#header .right_msg{display:block!important;text-align:center!important;white-space:nowrap!important;line-height:1.55!important;font-size:12px;font-size:min(13.5px,calc((100vw - 22px) / 27.8))}
#header .right_msg::before{content:"Web制作・ブラウザゲーム開発"!important;display:inline!important;white-space:nowrap!important;font-size:12px!important;font-size:min(13.5px,calc((100vw - 22px) / 27.8))!important;line-height:1.55!important}
#header .right_msg p{display:inline!important;font-size:0!important;line-height:0!important;margin:0!important;padding:0!important;white-space:nowrap!important}
#header .right_msg p::before{content:"（すごろく・神経衰弱など）";font-size:10px;font-size:calc(min(13.5px,calc((100vw - 22px) / 27.8)) * .84);line-height:1.55;color:#3e3e3e}
#header .right_msg p::after{content:"なら\A京都のWeb制作会社：メディアインパクトへご相談ください";white-space:pre;font-size:12px;font-size:min(13.5px,calc((100vw - 22px) / 27.8));line-height:1.55;color:#3e3e3e}
/* 下層ページのページ名の帯：高さ100px。光の球は帯の高さいっぱいに見せ、中央やや右に置く */
body:not(.home) #container>header.page-header h1.page-title{height:100px!important;background-size:auto,auto 100%!important;background-position:center,calc(50% + 70px) center!important}
/* 会社概要：太字の文（ミッション・経営目的）は、sp.jsが決めた改行を必ず効かせ、枠いっぱいまで使う */
#container .philosophy_lead.sp-lead br{display:inline!important}
#container .philosophy_table .philosophy_lead{margin-left:-6px!important;margin-right:-6px!important}
/* 表の見出しはスマホでは横いっぱいの1行なので、PC用の改行は効かせない */
#container th br{display:none!important}
/* 会社概要の沿革：年の列は文字の幅だけにして、右側の余白をなくす */
body:not(.home) #contents .entry-content .theContentWrap-ccc table.history_table td{padding-left:8px!important;padding-right:8px!important}
/* 中央寄せの文が折り返すときは左寄せにして、PC用の改行も効かせない（sp.jsが sp-left を付ける） */
#container .sp-left{text-align:left!important}
#container .sp-left br{display:none!important}
/* キャッチコピー：全部同じ文字サイズの2行にする（括弧だけ小さくする指定は取りやめ） */
#header .right_msg p{display:none!important}
#header .right_msg::before{content:"Web制作・ブラウザゲーム開発（すごろく・神経衰弱など）なら\A京都のWeb制作会社：メディアインパクトへお気軽にご相談ください"!important;display:block!important;white-space:pre!important;text-align:center!important;line-height:1.55!important;font-size:11px!important;font-size:min(13px,calc((100vw - 22px) / 31.2))!important}
/* ページ名の帯：背景の日本列島が右端で切れないよう、列島全体が帯の右側に収まる位置にする（文字に少し重なってよい） */
body:not(.home) #container>header.page-header h1.page-title{background-size:auto,auto 100%!important;background-position:center,right -53px center!important}
/* ページ名の帯：日本列島を大きく（帯の高さの1.5倍）、中央よりやや右に置く。列島以外は切れてよい */
body:not(.home) #container>header.page-header h1.page-title{background-size:auto,auto 150%!important;background-position:center,calc(50vw - 500px) 60%!important}
/* フッターの取引先・関連リンク集：2列の表をやめ、名前を左から順に流して並べる（1件が行をまたがないようにする） */
html body #footer table{display:block!important;margin:0 10px!important;padding:6px 0!important;line-height:1.75!important;text-align:left!important}
html body #footer table tbody,html body #footer table tr{display:inline!important;padding:0!important}
html body #footer table td{display:inline-block!important;max-width:100%!important;padding:0!important;margin:0 .9em 0 0!important;width:auto!important;vertical-align:top}
/* キャッチコピーの上下の余白を少し詰める（上16px→10px、下12px→8px） */
#header .right_msg{margin:10px 0 0!important}
#header{padding-bottom:8px!important}
/* 最終更新日の上下に少し余白をとる（上7px→10px、下の本文まで約6px→約9px） */
body:not(.home) #contents .entry-content .theContentWrap-ccc{padding-top:34px!important}
body:not(.home) #contents .page_last_update,body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update{top:10px!important}
/* 下層ページの大見出し（h3）を少し小さく（17px→15px） */
body:not(.home) #contents .entry-content .theContentWrap-ccc h3{font-size:15px!important}
body:not(.home) #contents .relation_section > h3{font-size:15px!important}
body.single #contents > h2{font-size:15px!important}
/* 下層ページの大見出し（h3）の上下の余白を広げる（上40px→56px、下20px→24px） */
body:not(.home) #contents .entry-content .theContentWrap-ccc h3{margin-top:56px!important;margin-bottom:24px!important}
/* ページ名の帯：高さを100px→120pxに。日本列島は同じ比率（帯の1.5倍）で、同じくやや右に置く */
body:not(.home) #container>header.page-header h1.page-title{height:120px!important;background-size:auto,auto 150%!important;background-position:center,calc(50vw - 605px) 60%!important}
/* フッターの取引先・関連リンク集：敷き詰める。名前は折り返さず、行の両端をそろえる（並べ替えは sp.js） */
html body #footer table{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;column-gap:.9em!important;row-gap:0!important;margin:0 10px!important;padding:6px 0!important;line-height:1.75!important}
html body #footer table::after{content:"";flex:1 1 auto;order:9999}
html body #footer table tbody,html body #footer table tr{display:contents!important}
html body #footer table td{display:block!important;flex:0 0 auto!important;max-width:100%!important;padding:0!important;margin:0!important;width:auto!important;white-space:nowrap}
/* フッターの取引先・関連リンク集：行間と名前同士の間隔を広げ、文字を少し大きく、下線は薄くして離す */
html body #footer table{column-gap:1.2em!important;padding:8px 0!important;line-height:2.3!important;font-size:11.5px!important}
html body #footer table td{font-size:11.5px!important;line-height:2.3!important}
html body #footer table td a{font-size:11.5px!important;line-height:2.3!important;text-decoration-color:rgba(255,255,255,.4)!important;text-underline-offset:3px}
/* フッターの取引先・関連リンク集：両端そろえをやめ、左から同じ間隔で詰めて並べる（行の途中が空かないように） */
html body #footer table{justify-content:flex-start!important}
/* トップ：新着実績・新着情報・過去の実績・過去の情報の見出しを、画面幅いっぱいの紺の帯にして区切りをはっきりさせる。
   スクロール中は今いる欄の見出しが画面の上に残り、次の欄に入ると入れ替わる */
html body.home #wrap #container #contents #top-jisseki>h1,html body.home #wrap #container #contents #top-news>h1,html body.home #wrap #container #contents>h1.sp-past-title{position:-webkit-sticky!important;position:sticky!important;top:0!important;z-index:30!important;display:flex!important;align-items:center!important;width:100vw!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;margin:36px calc(50% - 50vw) 14px!important;padding:9px 12px!important;border:0!important;background:#0c3158!important;color:#fff!important;font-size:15px!important;line-height:1.4!important;box-shadow:0 2px 6px rgba(0,0,0,.18)!important;grid-column:1 / -1!important;justify-self:start!important}
/* サービス各ページ冒頭の画面例（visual_works）：前後の本文との間を広げ、情報の切れ目がわかるようにする（上14px→24px、下22px→48px） */
html body:not(.home) #contents .entry-content .theContentWrap-ccc .visual_works{margin-top:24px!important;margin-bottom:48px!important}
/* ===== 読みやすさの見直し（2026-11-28 夜）：左右の余白を10px→15pxに、文字を全体に大きく（本文13.5px→15px） ===== */
#header{padding-left:15px!important;padding-right:15px!important}
#header .right_msg{margin:10px -5px 0!important}
#global-nav{margin:0 15px 10px!important}
#slider .slick-dots{padding-left:15px!important;padding-right:15px!important}
#contents-body,.home #contents-body{padding:0 15px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc{margin-left:-15px!important;margin-right:-15px!important;padding-left:15px!important;padding-right:15px!important}
body:not(.home) #contents .posts{margin-left:-15px!important;margin-right:-15px!important;padding-left:15px!important;padding-right:15px!important}
#footer_link{padding-left:15px!important;padding-right:15px!important}
.footer_sitemap,.footer_badges,#footer .counter,#footer .footer_sns,#footer #copyright,#footer #footer_links_ttl{padding-left:15px!important;padding-right:15px!important}
html body #footer table{margin-left:15px!important;margin-right:15px!important}
body.page-id-5730 p.page_last_update,body.page-id-5730 .page_last_update{padding-left:15px!important;padding-right:15px!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc{font-size:15px!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc p,html body:not(.home) #contents .entry-content .theContentWrap-ccc li,html body:not(.home) #contents .entry-content .theContentWrap-ccc dd,html body:not(.home) #contents .entry-content .theContentWrap-ccc dt{font-size:15px!important;line-height:1.75!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc td,html body:not(.home) #contents .entry-content .theContentWrap-ccc th,html body:not(.home) #contents .entry-content .theContentWrap-ccc td li,html body:not(.home) #contents .entry-content .theContentWrap-ccc td p{font-size:14px!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc table.history_table tbody th{font-size:13px!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update{font-size:11px!important;line-height:1.4!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc p.figure_caption,html body:not(.home) #contents .entry-content .theContentWrap-ccc figcaption{font-size:13px!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_toc a{font-size:13px!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc h3{font-size:17px!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc h4{font-size:16px!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc .philosophy_lead{font-size:15px!important}
html body:not(.home) #contents .relation_section > h3,html body.single #contents > h2{font-size:17px!important}
html body:not(.home) #contents .visual_works .vw_title{font-size:15px!important}
html body:not(.home) #contents .visual_works .vw_desc{font-size:13px!important}
html body:not(.home) #contents .relation_section ul.relation_cards li.relation_card .relation_card_title{font-size:14px!important}
html body .home .page-header p,html body.home .page-header p{font-size:15px!important}
html body:not(.home) #contents .posts .entry-content,html body.single #contents .entry-content,html body.single #contents .entry-content p{font-size:15px!important}
html body.home #contents .column-article .update-title,html body.home #contents .column-article .update-title a{font-size:15px!important}
html body.home #contents .column-article .entry-date{font-size:13px!important}
html body:not(.home) #contents .relation_section .relation_card_date{font-size:12px!important}
html body #contents-body #jisseki-all .jisseki_all_name,html body #contents-body #jisseki-all .jisseki_all_name a{font-size:14px!important;line-height:1.5!important}
html body #contents-body #jisseki-all .jisseki_all_date,html body #contents-body #jisseki-all .jisseki_all_tags{font-size:12px!important}
html body #contents-body #jisseki-all .jisseki_filter button{font-size:12px!important}
html body #contents-body #jisseki-all .jisseki_filter button span{font-size:11px!important}
html body:not(.home) #contents .page_last_update,html body:not(.home) #contents .entry-content .theContentWrap-ccc p.page_last_update{font-size:11px!important}
html body #footer .footer_sitemap_col li a{font-size:14px!important}
html body #footer table,html body #footer table td,html body #footer table td a{font-size:12.5px!important}
/* <br class="sp"> はスマホで必ず改行する（見出しや自動の改行調整より優先） */
#wrap br.sp{display:inline!important}
/* 太字の標語：PCだけの改行（lb）はスマホでは効かせない */
#container .philosophy_lead.sp-lead br.lb{display:none!important}
/* フッターの取引先：1行に収まらない長い名前だけは折り返す（画面の右にはみ出さないように） */
html body #footer table td{white-space:normal!important}
/* 見出しのPC用の改行をスマホでも生かす（JSなし）：本文の見出しに style="--spn:数字" があれば、
   数字（いちばん長い行の文字数）から、その行が1行に収まる文字サイズをここで決める。読み込み後に大きさが変わらない */
html body:not(.home) #contents .entry-content .theContentWrap-ccc h3[style*="--spn"]{font-size:max(13px,min(17px,calc((100vw - 54px) / var(--spn))))!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc h4[style*="--spn"]{font-size:max(13px,min(16px,calc((100vw - 54px) / var(--spn))))!important}
html body #container h3[style*="--spn"] br,html body #container h4[style*="--spn"] br{display:inline!important}
/* --spn 付きの見出しは、本文の中でなくても（実績記事など）同じ決まりで大きさを決める。小さい画面での下限は12.5px */
html body #container h3[style*="--spn"]{font-size:max(12.5px,min(17px,calc((100vw - 54px) / var(--spn))))!important}
html body #container h4[style*="--spn"]{font-size:max(12.5px,min(16px,calc((100vw - 54px) / var(--spn))))!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc h3[style*="--spn"]{font-size:max(12.5px,min(17px,calc((100vw - 54px) / var(--spn))))!important}
html body:not(.home) #contents .entry-content .theContentWrap-ccc h4[style*="--spn"]{font-size:max(12.5px,min(16px,calc((100vw - 54px) / var(--spn))))!important}
/* トップの欄の見出し：画面の上に張り付く方式はやめる（わかりにくいため）。紺の帯と上の余白で区切りを示すだけにする */
html body.home #wrap #container #contents #top-jisseki>h1,html body.home #wrap #container #contents #top-news>h1,html body.home #wrap #container #contents>h1.sp-past-title{position:static!important;top:auto!important;z-index:auto!important;box-shadow:none!important;margin-top:44px!important}
/* トップの並び（スマホ）：新着情報を先に30件 → 新着実績を全件 → 過去の情報（31件目以降）。「過去の実績」の見出しは出さず、実績はひと続きにする */
html body.home #contents>#top-news>h1{order:1!important}
html body.home #top-news .column-group article.column-article.sp-new{order:2!important}
html body.home #contents>#top-jisseki>h1{order:3!important}
html body.home #top-jisseki .column-group article.column-article.sp-new{order:4!important}
html body.home #top-jisseki .column-group article.column-article{order:5!important}
html body.home #wrap #container #contents>h1.sp-past-jisseki{display:none!important}
html body.home #contents>h1.sp-past-news{order:7!important}
html body.home #top-news .column-group article.column-article{order:8!important}
html body.home #top-news .column-group article.column-article.sp-new{order:2!important}
/* トップ（スマホ）：新着情報は先頭30件だけ出す。31件目以降と「過去の情報」の見出しは出さない。
   JSの目印（sp-new）に頼らず、CSSだけで「上から30件」を決める（読み込み後に並びが動かないように） */
html body.home #wrap #container #contents>h1.sp-past-news{display:none!important}
html body.home #top-news .column-group article.column-article{order:2!important}
html body.home #top-news .column-group article.column-article:nth-child(n+31){display:none!important}
/* トップ（スマホ）：新着実績は先頭50件まで。先頭10件は大きい1列、残り40件は2列（偶数で終わる）。
   「先頭10件」「50件まで」もCSSだけで決める（JSの目印を待たないので、読み込み後に並びが動かない） */
html body.home #top-jisseki .column-group article.column-article:nth-of-type(-n+10){order:4!important;grid-column:1 / -1!important;margin:0 0 24px!important}
html body.home #top-jisseki .column-group article.column-article:nth-of-type(n+11){order:5!important;grid-column:auto!important;margin:0 0 20px!important}
html body.home #top-jisseki .column-group article.column-article:nth-of-type(n+51){display:none!important}
/* トップ（スマホ）：新着情報・新着実績の一覧は、左右の余白をさらに10px広げる（画面端から25px） */
html body.home #top-news .column-group article.column-article{padding-left:10px!important;padding-right:10px!important}
html body.home #top-jisseki .column-group article.column-article:nth-of-type(-n+10){margin-left:10px!important;margin-right:10px!important}
html body.home #top-jisseki .column-group article.column-article:nth-of-type(n+11):nth-of-type(odd){margin-left:10px!important}
html body.home #top-jisseki .column-group article.column-article:nth-of-type(n+11):nth-of-type(even){margin-right:10px!important}
/* トップ（スマホ）：新着情報・新着実績の見出しの帯を高く、文字も大きくして、本文より一段上の扱いにする（高さ約39px→約60px、文字15px→19px） */
html body.home #wrap #container #contents #top-jisseki>h1,html body.home #wrap #container #contents #top-news>h1{padding:16px 25px!important;font-size:19px!important;line-height:1.45!important;letter-spacing:.04em!important;margin-bottom:18px!important}
/* 本文領域の左右の余白を、画面端から25pxにする（ヘッダー・メニュー・フッターは15pxのまま） */
#contents-body,.home #contents-body,html body #contents-body{padding-left:25px!important;padding-right:25px!important}
body:not(.home) #contents .entry-content .theContentWrap-ccc{margin-left:-25px!important;margin-right:-25px!important;padding-left:25px!important;padding-right:25px!important}
body:not(.home) #contents .posts{margin-left:-25px!important;margin-right:-25px!important;padding-left:25px!important;padding-right:25px!important}
body.page-id-5730 p.page_last_update,body.page-id-5730 .page_last_update{padding-left:25px!important;padding-right:25px!important}
/* トップ：一覧に足していた10pxは本文の25pxに含まれるので外す */
html body.home #top-news .column-group article.column-article{padding-left:0!important;padding-right:0!important}
html body.home #top-jisseki .column-group article.column-article:nth-of-type(n){margin-left:0!important;margin-right:0!important}

/* 新聞切り抜きのキャプションは1行に収める */
html body.home .np_clips figcaption{font-size:13px!important;line-height:1.5!important}
/* トップの京都新聞の切り抜き画像：本文より左右40pxずつ内側に寄せ、本文と同じ幅にしない（キャプションも画像に合わせる） */
html body.home .np_clips figure{margin-left:40px!important;margin-right:40px!important;width:auto!important;max-width:none!important;box-sizing:border-box!important}
html body.home .np_clips figure img{width:100%!important;height:auto!important}
html body.home .np_clips figcaption{font-size:12px!important;text-align:center!important}
/* トップの白い箱の画像（会社案内・やさしいデザイン）も、新聞の切り抜きと同じく左右40pxずつ内側に寄せる */
html body.home .page-header>div>p img{display:block!important;width:calc(100% - 80px)!important;max-width:none!important;height:auto!important;margin-left:auto!important;margin-right:auto!important}
/* トップ（スマホ）：新着実績の最後の「実績一覧を見る」ボタン。実績の直後に置き、画面幅の7割ほどの角丸ボタンにする */
html body.home #contents>p.sp-more-jisseki{display:block!important;order:6!important;grid-column:1 / -1!important;margin:12px 0 48px!important;padding:0!important;text-align:center!important}
html body.home #contents>p.sp-more-jisseki a{display:inline-block!important;box-sizing:border-box;width:72%;max-width:280px;padding:13px 16px!important;border:1px solid #0c3158!important;border-radius:999px!important;background:#0c3158!important;color:#fff!important;font-size:15px!important;font-weight:600!important;line-height:1.4!important;text-decoration:none!important;letter-spacing:.04em}
html body.home #contents>p.sp-more-jisseki a::after{content:"　›";font-weight:400}
/* スライドショーのサムネイル一覧：左右の余白を15px→25pxにして、本文の左右とそろえる（高さの予約は functions.php の #branding の min-height と対。変えたらそちらも直す） */
html body #slider .slick-dots{padding-left:25px!important;padding-right:25px!important}
/* ヘッダーのメニューの下の余白を1.5倍に（メニュー下10px＋ヘッダー下8px＝18px → 15px＋12px＝27px） */
html body #global-nav{margin-bottom:15px!important}
html body #header{padding-bottom:12px!important}
/* トップ：スライドショーの上端に、影ではなく細い枠線を引いて区切る（影だとスライド画像にかかるため） */
html body.home #branding{border-top:1px solid #ccc!important}
/* トップの制作実績は「過去の実績」も含めて全部1段組み（2026-11-29） */
html body.home #contents #top-jisseki .column-group article.column-article:nth-of-type(n){grid-column:1 / -1!important}
/* 実績一覧も1段組み（2026-11-29）。サムネイルは幅いっぱい、文字はトップの新着と同じ大きさ */
html body #jisseki-all .jisseki_all_grid{grid-template-columns:minmax(0,1fr)!important;gap:26px 0!important}
html body #jisseki-all .jisseki_all_name,html body #jisseki-all .jisseki_all_item.is-big .jisseki_all_name{font-size:14px!important;line-height:1.55!important}
html body #jisseki-all .jisseki_all_date,html body #jisseki-all .jisseki_all_tags{font-size:12px!important}
/* 絞り込みは3行に収める。内容は2行で折り返し、地域は1行で横にスクロール（右端をぼかして続きがあると分かるように） */
html body #jisseki-all .jisseki_filter{gap:4px!important}
html body #jisseki-all .jisseki_filter button{padding:4px 6px!important}
html body #jisseki-all .jisseki_filter.is-kind{margin-left:-8px!important;margin-right:-8px!important}
/* 7つを2行に収めるため、短いものを1行目に（すべて・Web制作・Web広告・広報物制作／Webシステム・ブラウザゲーム・スマホアプリ） */
html body #jisseki-all .jisseki_filter.is-kind button[data-filter="ad"],html body #jisseki-all .jisseki_filter.is-kind button[data-filter="print"]{order:-1}
html body #jisseki-all .jisseki_filter.is-kind button[data-filter="all"]{order:-3}
html body #jisseki-all .jisseki_filter.is-kind button[data-filter="web"]{order:-2}
html body #jisseki-all .jisseki_filter.is-area{flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -16px 8px -8px!important;padding:0 24px 0 0!important;-webkit-mask-image:linear-gradient(to right,#000 82%,transparent);mask-image:linear-gradient(to right,#000 82%,transparent)}
html body #jisseki-all .jisseki_filter.is-area::-webkit-scrollbar{display:none}
html body #jisseki-all .jisseki_filter.is-area button{flex:none!important;white-space:nowrap!important}
/* トップ（スマホ）：新着実績で、11件目以降の奇数番目・偶数番目に付いていた左右10pxの余白を外す（左右がガタついていたため。左右の余白は本文の25pxだけにする） */
html body.home #top-jisseki .column-group article.column-article:nth-of-type(n+11):nth-of-type(odd),html body.home #top-jisseki .column-group article.column-article:nth-of-type(n+11):nth-of-type(even){margin-left:0!important;margin-right:0!important}
/* 新着実績の画像の枠が、記事の幅より数px広がるものがあったので、幅を記事にそろえる */
html body.home #top-jisseki .column-group article.column-article a.jisseki_thumb{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
/* 実績一覧の絞り込み：「内容」も「地域」と同じく、折り返さずに横へスクロールする1行にする（2つ合わせて2行に収める）。左端は2行とも本文の25pxにそろえる */
html body #contents-body #jisseki-all .jisseki_filter.is-area{margin:0 -25px 8px 0!important}
html body #contents-body #jisseki-all .jisseki_filter.is-kind{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:4px!important;margin:0 -25px 8px 0!important;padding:0 24px 0 0!important;-webkit-mask-image:linear-gradient(to right,#000 82%,transparent);mask-image:linear-gradient(to right,#000 82%,transparent)}
html body #contents-body #jisseki-all .jisseki_filter.is-kind::-webkit-scrollbar{display:none}
html body #contents-body #jisseki-all .jisseki_filter.is-kind button{flex:none!important;white-space:nowrap!important}
/* トップ（スマホ）：新着情報・新着実績の日付を13px→15pxに（題名と同じ大きさ。題名は太字・紺なので区別はつく） */
html body.home #wrap #contents .column-article .entry-date,html body.home #wrap #contents .column-article time.entry-date{font-size:15px!important;line-height:1.5!important;letter-spacing:.02em!important}
}
