@charset "UTF-8";
/*
 * まちジョブ 新デザイン WordPress 接続用の追加スタイル
 * style.css / subpages.css（プレビュー移植）の後に読み込む。
 * - 実データ・JS無効時・WP標準出力（ページ送り等）への対応
 * - 記事本文の独自クラス（c-bullets / text-highlight / link_target 等）の再定義
 */

[hidden]{display:none!important}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.copyright small{font-size:inherit}
.footer .brand img{width:100%;height:auto}

/* ---------- TOP：街（picture 要素・表示幅別の補助画像） ---------- */
.town-art>picture{display:contents}
.town-art>picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.town-art>img:not([src]),.harbor-boat>img:not([src]){visibility:hidden}
@media(min-width:701px){.town-art>.town-mobile-water,.town-art>.town-mobile-boat{display:none}}
@media(max-width:700px){.town-art>.town-harbor-cleanup{display:none}}

/* ---------- TOP：業種ピン（PC/SP 座標を CSS 変数で切り替え） ---------- */
.industry-pin{left:var(--x);top:var(--y);color:inherit;text-decoration:none}
@media(max-width:700px){.industry-pin{left:var(--mx);top:var(--my)}}

/* ---------- TOP：カルーセル ---------- */
/* JS 無効時は横スクロールで全件に到達できるようにする */
html:not(.js) .carousel-window{overflow-x:auto;scroll-snap-type:x mandatory}
html:not(.js) .carousel-item{scroll-snap-align:start}
/* 表示枠より件数が少ないときは仮枠を作らず、登録件数だけを中央に並べる */
.carousel.is-static .carousel-track{justify-content:center;transform:none!important}
.carousel.is-static .is-clone,.carousel.is-static .carousel-controls{display:none}
.company-card h3{overflow-wrap:anywhere}

/* ---------- 下層共通：WP標準のページ送り ---------- */
.sub-wp-pagination{margin:45px 0 25px}
.sub-wp-pagination .nav-links{display:flex;gap:12px;justify-content:center;align-items:center;flex-wrap:wrap}
.sub-wp-pagination .page-numbers{display:grid;place-items:center;min-width:43px;height:43px;padding:0 8px;border:1px solid #9aaea5;border-radius:999px;background:var(--cream);font-size:14px;font-weight:700;transition:transform .2s,background .2s}
.sub-wp-pagination .page-numbers.current{background:var(--orange);border-color:var(--orange);color:#fff}
.sub-wp-pagination .page-numbers.dots{border:0;background:transparent;min-width:20px}
.sub-wp-pagination a.page-numbers:hover{transform:translateY(-3px);background:#e4ecd9}
@media(max-width:700px){.sub-wp-pagination{margin-top:32px}.sub-wp-pagination .nav-links{gap:8px}.sub-wp-pagination .page-numbers{min-width:39px;height:39px;font-size:13px}}

/* ---------- 企業一覧：絞り込み（業種・地域＋送信） ---------- */
.search-fields.search-fields--filter{grid-template-columns:1fr 1fr auto;align-items:end}
.search-submit{height:48px;padding:0 26px;border:1px solid var(--orange);border-radius:8px;background:var(--orange);color:#fff;font-weight:800;letter-spacing:.06em;white-space:nowrap}
.search-submit:hover{background:#b82808}
.search-bottom .text-button{color:inherit}
.sub-empty .sub-outline-button{display:inline-block}
@media(max-width:700px){.search-fields.search-fields--filter{grid-template-columns:1fr 1fr}.search-submit{grid-column:1/-1;width:100%}}

/* ---------- 企業詳細 ---------- */
.company-profile.no-visual{grid-template-columns:minmax(0,1fr)}
.company-profile-visual{align-self:center}
.company-profile-visual>img{width:100%;height:auto;aspect-ratio:auto;max-height:560px;object-fit:contain}
.profile-logo img{height:auto}
.company-profile h1{overflow-wrap:anywhere}
.company-detail-layout.no-nav{grid-template-columns:minmax(0,1fr)}
.company-section-nav nav a>span:first-child{min-width:1.6em}
.company-editorial .firstview img,.company-editorial .tab-content figure img{width:100%;height:auto;border-radius:10px}
.company-editorial .entry-content>*:last-child{margin-bottom:0}
.company-editorial .entry-content img{height:auto}
.company-editorial .desc_box+.desc_box,.company-editorial .entry-content+.desc_box{margin-top:30px}
.company-editorial .company-number-note{font-size:11px;line-height:1.8;color:#68715e;margin-top:12px}
.company-editorial .benefit-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.company-editorial .benefit-list li{background:#f4f7ee;border:1px solid #d6dfcc;border-radius:10px;padding:14px 16px}
.company-editorial .benefit-list strong{display:block;font-size:14px;color:#3f5a33}
.company-editorial .benefit-body{font-size:13px;line-height:1.9;margin-top:4px}
.company-editorial .tab-content{margin-top:10px}
.company-editorial .tab-content figure{margin:0 0 22px}
.company-editorial .tab-box{margin-top:24px}
.company-editorial .box_flex{display:flex;gap:24px;align-items:flex-start}
.company-editorial .box_flex--right{flex-direction:row-reverse}
.company-editorial .box_flex .img{flex:0 0 40%}
.company-editorial .box_flex .img img{width:100%;height:auto;border-radius:10px}
.company-editorial .box_flex .text{flex:1;min-width:0}
.tab-panel-label{font-size:16px;margin:30px 0 14px}
.js .tab-panel-label{display:none}
.c-faq__summary{list-style-position:outside}
.c-faq__text>*:last-child{margin-bottom:0}
@media(max-width:700px){
 .company-editorial .benefit-list{grid-template-columns:1fr}
 .company-editorial .box_flex,.company-editorial .box_flex--right{flex-direction:column;gap:14px}
 .company-editorial .box_flex .img{flex-basis:auto;width:100%}
}

/* ---------- 記事詳細：本文HTMLの独自クラスを新デザインで再定義 ---------- */
.reading-content img{height:auto}
.reading-content .content_block+.content_block{margin-top:10px}
.reading-content .entry-content>*:last-child{margin-bottom:0}
.reading-content .featured-section--h3{margin-top:10px}
.reading-content .wp-block-agenda a{text-decoration:none;color:inherit}
.reading-content .wp-block-agenda a:hover{color:var(--orange);text-decoration:underline}
.reading-content .link_target{scroll-margin-top:30px}
.reading-content .text-small{font-size:.86em;color:#5f6a58}
.reading-content .c-bullets{border:1px solid #bdccb1;border-radius:14px;background:#fbfdf7;margin:26px 0}
.reading-content .c-bullets__inner{padding:26px 26px}
.reading-content .c-bullets__item+.c-bullets__item{margin-top:16px}
.reading-content .c-bullets__title{font-size:17px;font-weight:800;line-height:1.6;margin:0;padding:0;border:0;background:none}
.reading-content .c-bullets__text{margin-top:4px}
.reading-content .box{border:1px solid #bdccb1;border-radius:12px;overflow:hidden;margin:24px 0}
.reading-content .box dt{background:#e6efdc;font-weight:800;padding:12px 18px}
.reading-content .box dd{margin:0;padding:16px 18px}
.reading-content .wp-block-group.card{border:1px solid #bdccb1;border-radius:14px;padding:22px;background:#fbfdf7;margin:24px 0}
.reading-content .wp-block-group.card img{border-radius:8px}
.reading-content blockquote{margin:26px 0;padding:18px 22px;border-left:4px solid #b9cfa7;background:#f4f7ee;border-radius:0 10px 10px 0}
.reading-content blockquote>*:last-child{margin-bottom:0}
.reading-content iframe,.reading-content video{max-width:100%}
.reading-content .wp-block-embed iframe,.reading-content .wp-block-video video{width:100%}
.reading-content .aligncenter{margin-inline:auto}
.reading-content .alignright{float:right;margin:0 0 1em 1.5em}
.reading-content .alignleft{float:left;margin:0 1.5em 1em 0}
.reading-content .content_block::after{content:"";display:table;clear:both}
.reading-content .c-company-list{list-style:none;padding:0;margin:24px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.reading-content .c-company-list li{margin:0}
.reading-content .c-company{border:1px solid #bdccb1;border-radius:14px;background:var(--cream);transition:transform .25s,box-shadow .25s}
.reading-content .c-company>a{display:block;height:100%;color:inherit;text-decoration:none}
.reading-content .c-company:has(>a):hover{transform:translateY(-4px);box-shadow:0 6px 0 #d2dfcd}
.reading-content .c-company__body{padding:18px 20px;display:flex;flex-direction:column;height:100%}
.reading-content .c-company__industry{margin:0 0 8px}
.reading-content .c-company__industry span{display:inline-flex;background:#e7efdc;color:#4f6640;padding:3px 11px;border-radius:30px;font-size:11px;font-weight:700;line-height:1.6}
.reading-content .c-company__name{font-size:17px;line-height:1.6;margin:0 0 6px;padding:0;border:0}
.reading-content .c-company__copy{font-size:13px;line-height:1.8;margin:0 0 10px}
.reading-content .c-company__info{margin-top:auto;display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.reading-content .c-company__addr{font-size:11px;line-height:1.7;color:#68715e;margin:0}
.reading-content .c-company__arw{color:var(--orange);font-size:12px;font-weight:800;margin:0;white-space:nowrap}
.reading-layout.no-aside-toc .reading-aside{align-self:start}
@media(max-width:700px){
 .reading-content .c-company-list{grid-template-columns:1fr}
 .reading-content .c-bullets__inner{padding:20px 16px}
 .reading-content .alignright,.reading-content .alignleft{float:none;margin:1em auto}
 /* 関連記事：2列で端数が出るときだけ最後の1枚を隠す（プレビューの挙動を件数可変に対応） */
 .related-articles .article-grid>.article-card:last-child{display:flex}
 .related-articles .article-grid.is-odd>.article-card:last-child:not(:first-child){display:none}
}

/* ---------- 404 ---------- */
.notfound-content{padding:20px 0 110px}
.notfound-content .sub-empty h2{font-size:20px}
.notfound-actions{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;align-items:center}

/* ---------- 対象外の既存テンプレート（プライバシーポリシー等）の最低限の体裁 ---------- */
.sub-legacy main{padding-bottom:100px}
.sub-legacy .container{width:min(1160px,88%);margin-inline:auto}
.sub-legacy #title_head{padding:18px 0 40px}
.sub-legacy .bc{font-size:11px;line-height:1.8;color:#697467;margin-bottom:46px}
.sub-legacy .bc a:hover{color:var(--orange);text-decoration:underline}
.sub-legacy .main_text{text-align:center}
.sub-legacy .main_text br{display:none}
.sub-legacy .main_text .title{display:block;color:var(--green);font-size:11px;letter-spacing:.2em;font-weight:800}
.sub-legacy .main_text .title_sub{display:block;font-size:clamp(28px,3.4vw,44px);font-weight:900;letter-spacing:.08em;margin-top:14px;line-height:1.5}
.sub-legacy main p,.sub-legacy main li,.sub-legacy main dd{font-size:14px;line-height:2}
.sub-legacy main dl{margin:0}
.sub-legacy main dt{font-weight:800;font-size:17px;margin:36px 0 10px}
.sub-legacy main dd{margin:0}
.sub-legacy main p+p{margin-top:12px}
.sub-legacy main a{text-decoration:underline;text-underline-offset:4px}
.sub-legacy .sp_only{display:none}
@media(max-width:700px){.sub-legacy .sp_only{display:inline}.sub-legacy .pc_only{display:none}}

