/* トップページ（/）と、そのモック（/__mockups/top）。見本はクオキャリア（2026-11-11）。
   写真に大きな黒のコピー／色面の入口ボタン／小さなH1と説明文／色の帯の見出し／薄い枠に白い文字タイル。影・アイコンは使わない。色は元のトップと同じ緑とピンク（design.css の --green・--coral・--pink-light。2026-11-18） */
.q{--q-green:#217f50;--q-green-dark:#18643e;--q-teal:#217f50;--q-coral:#e0606e;--q-pink:#f0999a;--q-pink-light:#fff1f3;--q-pink-line:#f3cdd5;--q-pale:#edf8f0;--q-ink:#171717;--q-sub:#666f69;--q-line:#d9e2db;background:#f5f5f5;color:var(--q-ink);font-size:16px;line-height:1.8}
.q h1,.q h2,.q h3,.q h4,.q p,.q ul,.q dl,.q dd{margin:0;padding:0}
.q ul{list-style:none}
.q a{color:inherit;text-decoration:none}
.q-note{background:#fff8e1;border-bottom:1px solid #f0dfa8;padding:8px 16px;font-size:13px;text-align:center;color:#5a4a12}
.q-note a{margin-left:10px;text-decoration:underline}

/* 写真が入る場所 */
.q-photo{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:160px;background:repeating-linear-gradient(135deg,#dfe3e0 0 14px,#e8ebe9 14px 28px);color:#4d5650;text-align:center}
.q-photo span{display:flex;flex-direction:column;gap:2px;padding:10px 16px;background:rgba(255,255,255,.85);border:1px dashed #8d968f}
.q-photo b{font-size:15px}
.q-photo small{font-size:12px}

/* 1. 最初の画面 */
.q-hero{position:relative;background:#fff;background-image:radial-gradient(#f3cdd5 1.6px,transparent 1.7px);background-size:14px 14px;background-position:0 0;padding:120px 0 0}
.q-hero-photo{height:260px;clip-path:polygon(0 22%,100% 0,100% 100%,0 100%)}
.q-sp-photo{display:none}
.q-catch{position:absolute;top:30px;left:max(24px,calc((100% - 1160px)/2));display:flex;flex-direction:column;font-size:clamp(34px,5.2vw,62px);font-weight:900;line-height:1.35;letter-spacing:.04em;color:var(--q-ink)}
.q-catch span{background:linear-gradient(transparent 0,transparent 100%)}

/* 最初の画面：人物の写真をコピーの隣に置く（2026-11-27 齊藤さん）。左は点の地にコピー、右は斜めに切った写真。切り口に緑とピンクの細い帯を添える。画像は public/brand/hero_person.jpg */
.q-hero-withperson{padding:0;min-height:440px;overflow:hidden}
.q-hero-person,.q-hero-withperson::before,.q-hero-withperson::after{position:absolute;top:0;right:0;bottom:0;width:55%;clip-path:polygon(16% 0,100% 0,100% 100%,0 100%)}
.q-hero-withperson::before{content:"";right:34px;background:var(--q-pink)}
.q-hero-withperson::after{content:"";right:17px;background:var(--q-green)}
.q-hero-person{z-index:1}
.q-hero-person img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 20%}
.q-hero-withperson .q-catch{top:104px;z-index:2}
.q-hero-withperson+.q-entry{z-index:3}

/* コピーのマーカー：全部ピンク。文字は黒のまま。PCは手書き風の太い線、スマホは手書き風の細い線（2026-11-27 齊藤さん）。
   人がペンで引いたように、ふちがゆれて、少し傾き、2度塗りの重なりがある線の絵（public/brand/marker-p1〜p4.svg）を文字の下に敷く */
.q-hero-withperson .q-catch{align-items:flex-start}
.q-hero-withperson .q-l{margin:0 -.16em;padding:0 .16em}
/* 線の絵は変数で持つ（--mk-1〜4 ＝ スマホの4行。PCの1行目は --mk-2、2行目は --mk-3 を使う）。4本とも形を少しずつ変えてある */
.q-hero-withperson{--mk-1:url(/brand/marker-p3.svg);--mk-2:url(/brand/marker-p4.svg);--mk-3:url(/brand/marker-p1.svg);--mk-4:url(/brand/marker-p2.svg)}
.q-hero-withperson .q-l:first-child{background:var(--mk-2) 0 96%/100% 50% no-repeat}
.q-hero-withperson .q-l+.q-l{background:var(--mk-3) 0 96%/100% 50% no-repeat}

/* 2. 入口のボタン・3. 検索欄 */
.q-entry{position:relative;margin-top:-56px;padding-bottom:28px}
.q-entries{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.q-entry-btn{position:relative;display:flex;flex-direction:column;gap:4px;min-height:96px;padding:14px 64px 14px 24px;color:#fff!important}
.q-e1{background:var(--q-green)}.q-e2{background:var(--q-green-dark)}.q-e3{background:var(--q-coral)}
.q-entry-tag{align-self:flex-start;padding:1px 10px;background:#fff;color:var(--q-ink);font-size:12px;font-weight:700;border-radius:3px}
.q-entry-btn b{font-size:17px;font-weight:500;letter-spacing:.06em}
.q-entry-btn em{font-style:normal;font-size:22px;font-weight:900;margin:0 4px}
.q-entry-btn small{font-size:12px;letter-spacing:.08em;opacity:.95}
.q-entry-btn i{position:absolute;right:22px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#fff;color:var(--q-ink);font-style:normal;font-size:18px;font-weight:700}
.q-entry-btn:hover{filter:brightness(1.07)}
/* 丸の中の矢印は、文字（›）だと中心からずれるので、線で描いて真ん中に置く */
.q-entry-btn i{font-size:0}
.q-entry-btn i::before{content:"";width:7px;height:7px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:translateX(-1.5px) rotate(45deg)}
/* 見出しは、PCでもスマホでも1行に収める（幅に合わせて文字を少し縮める）。下の説明は、PCで幅に余裕があるときだけ1行 */
.q-entry-btn{padding:14px 54px 14px 20px}
.q-entry-btn i{right:16px}
.q-entry-btn b{white-space:nowrap;font-size:clamp(12px,1.33vw,17px);letter-spacing:.02em}
.q-entry-btn em{font-size:clamp(16px,1.72vw,22px);margin:0 3px}
.q-entry-btn small{letter-spacing:.03em}
@media (min-width:1240px){.q-entry-btn small{white-space:nowrap}}
@media (max-width:899px){
  .q-entry-btn b{font-size:clamp(12.5px,4vw,16px)}
  .q-entry-btn em{font-size:clamp(16px,5vw,20px)}
}
.q-search{margin-top:14px;background:#fff;border-top:3px solid var(--q-green);padding:18px}
.q-search .search-form{margin:0;border:0;box-shadow:none;padding:0;background:none}
.q-search button,.q-search select{min-height:48px}
.q-search .search-form span,.q-search .search-form a{font-size:12px!important}
.q .q-fields{grid-template-columns:repeat(4,minmax(0,1fr)) 190px;gap:14px}
.q .q-fields select{width:100%;font-size:15px;min-height:48px}
.q .q-fields select:disabled{color:#a9b0ab}
.q .q-fields .search-field:nth-of-type(4){border-right:0}

/* 4. H1 と説明文 */
.q-intro{background:#fff;padding:36px 0 40px;text-align:center}
.q-intro h1{font-size:22px;font-weight:700;letter-spacing:.08em;line-height:1.7}
.q-intro p{max-width:760px;margin:10px auto 0;font-size:13px;color:var(--q-sub);line-height:2}
.q-intro b{font-size:18px;color:var(--q-ink);margin:0 2px}

/* 区画・帯の見出し */
.q-section{padding-bottom:56px}
.q-band{position:relative;overflow:hidden;background:var(--q-teal);color:#fff;text-align:center;padding:22px 16px 24px;margin-bottom:36px}
.q-band-dark{background:var(--q-green-dark)}
.q-band p{font-size:13px;font-weight:700;letter-spacing:.14em}
.q-band h2{position:relative;font-size:24px;font-weight:700;letter-spacing:.12em;line-height:1.5}
.q-band-en{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);font-size:64px;font-weight:900;letter-spacing:.02em;white-space:nowrap;color:rgba(255,255,255,.14);font-family:Arial,Helvetica,sans-serif}
.q-sub{text-align:center;margin:44px 0 18px}
.q-sub:first-child{margin-top:0}
.q-sub span{display:block;font-size:13px;font-weight:700;color:var(--q-pink);font-family:Arial,Helvetica,sans-serif;letter-spacing:.04em;line-height:1.2}
.q-sub h3{font-size:19px;font-weight:700;letter-spacing:.12em}

/* 薄い枠と、白い文字タイル */
.q-box{background:var(--q-pale);border-top:3px solid var(--q-teal);padding:20px 20px 8px}
.q-box-group{margin-bottom:18px}
.q-box-group h4{text-align:center;font-size:14px;font-weight:700;letter-spacing:.1em;margin-bottom:10px}
.q-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.q-tiles-pref{grid-template-columns:repeat(7,1fr)}
.q-tiles-wide{grid-template-columns:repeat(3,1fr);margin-bottom:12px}
.q-tile{display:flex;align-items:center;justify-content:center;min-height:48px;padding:6px 10px;background:#fff;font-size:14px;letter-spacing:.06em;text-align:center;line-height:1.5}
a.q-tile:hover{background:var(--q-teal);color:#fff}
/* PCの幅が狭めのとき（900〜1100）は、12文字の名前が1行に入るように少し縮める */
@media (min-width:900px){.q-box .q-tile{font-size:clamp(12px,1.3vw,14px)}}
.q-tile i{font-style:normal}
.q-tile-br{display:none}
.q-tile-2 .q-tile-br{display:inline}
.q-tile-2 .q-tile-dot{display:none}
.q-tile-off{color:#a9b0ab;background:#f3f5f3}

/* 5. 新着求人 */
.q-updated{text-align:center;font-size:13px;color:var(--q-sub);margin-bottom:14px}
.q-tabs{display:none;gap:4px;overflow-x:auto;border-bottom:3px solid var(--q-teal)}
.q-js .q-tabs{display:flex}
.q-tabs button{flex:1 0 auto;min-height:48px;padding:0 14px;border:0;background:#e3e6e4;font-size:14px;font-weight:700;letter-spacing:.06em;color:var(--q-sub)}
.q-tabs button[aria-selected=true]{background:var(--q-teal);color:#fff}
.q-panel{background:var(--q-pale);padding:20px}
.q-panel-title{font-size:16px;margin-bottom:10px}
.q-js .q-panel-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.q-carousel{position:relative}
.q-jobs{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px}
.q-job{flex:0 0 calc((100% - 42px)/4);scroll-snap-align:start}
.q-job a{display:flex;flex-direction:column;height:100%;background:#fff}
.q-job img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}
.q-job-body{display:flex;flex-direction:column;gap:6px;padding:12px 14px 16px}
.q-job-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--q-sub)}
.q-job-top b{padding:1px 10px;border-radius:999px;background:var(--q-pink-light);border:1px solid var(--q-pink-line);color:#c4475a;font-weight:500}
.q-job h3{font-size:15px;line-height:1.65;font-weight:700;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.q-job-company{font-size:13px;color:var(--q-sub)}
.q-job-row{display:flex;gap:8px;font-size:13px;line-height:1.6}
.q-job-row i{flex:none;width:44px;font-style:normal;font-size:12px;color:var(--q-sub)}
.q-job a:hover h3{color:var(--q-teal)}
.q-arrow{display:none;position:absolute;top:34%;z-index:1;width:48px;height:48px;border-radius:50%;border:1px solid #d3d9d5;background:rgba(255,255,255,.95);color:#5f6763;font-size:24px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.q-js .q-arrow{display:block}
.q-prev{left:-34px}.q-next{right:-34px}
.q-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:22px}
.q-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;min-width:280px;padding:0 28px;background:#d9536a;border-radius:999px;color:#fff!important;font-size:15px;font-weight:700;letter-spacing:.1em}
.q-btn-line{background:#fff;color:var(--q-ink)!important;border:2px solid var(--q-ink)}
.q-btn-coral{background:var(--q-coral)}
.q-btn:hover{opacity:.88}

/* 9. 読み物 */
.q-banners{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin-bottom:18px}
.q-banners a{display:block;aspect-ratio:auto}
.q-photo-banner{min-height:230px}
.q-articles{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.q-articles a{display:flex;gap:14px;align-items:center;min-height:56px;padding:10px 16px;background:#fff;font-size:14px;line-height:1.6}
.q-articles b{flex:none;width:108px;font-size:12px;font-weight:700;color:var(--q-teal);letter-spacing:.04em}
.q-articles a:hover span{text-decoration:underline}
/* 企業特集（サムネつき） */
.q-articles-thumb{grid-template-columns:repeat(4,1fr);gap:14px}
.q-articles-thumb a{flex-direction:column;align-items:stretch;gap:0;min-height:0;height:100%;padding:0}
.q-articles-thumb img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.q-articles-thumb div{display:flex;flex-direction:column;gap:4px;padding:12px 14px 16px}
.q-articles-thumb b{width:auto}
.q-feature{grid-template-columns:repeat(3,1fr);gap:18px}
.q-feature div{gap:6px;padding:16px 18px 20px}
.q-feature b{font-size:18px;color:var(--q-ink);letter-spacing:.06em}
.q-feature span{font-size:14px;line-height:1.8}
.q-feature i{margin-top:6px;font-style:normal;font-size:13px;font-weight:700;color:var(--q-teal)}
.q-feature i::after{content:" →"}

/* 10. よくあるご質問・相談 */
.q-last{padding-top:8px}
.q-faq{background:#fff;border-top:3px solid var(--q-teal);padding:8px 28px}
.q-faq>div{padding:18px 0;border-bottom:1px solid var(--q-line)}
.q-faq>div:last-child{border-bottom:0}
.q-faq dt{position:relative;padding-left:30px;font-size:16px;font-weight:700;line-height:1.7}
.q-faq dt::before{content:"Q";position:absolute;left:0;top:0;font-family:Arial,Helvetica,sans-serif;font-weight:900;color:var(--q-teal)}
.q-faq dd{padding-left:30px;margin-top:6px;font-size:14px;line-height:1.95;color:#333}
.q .q-more{margin-top:18px;text-align:center;font-size:15px}
.q .q-more a{text-decoration:underline;font-weight:700;color:var(--q-green)}
.q-cta{display:grid;grid-template-columns:1fr 1.3fr;margin-top:40px;background:#fff}
.q-cta>div:last-child{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:28px 32px}
.q-cta-lead{font-size:22px;font-weight:900;letter-spacing:.06em;line-height:1.6}
.q-cta p{font-size:14px;color:#333}
.q-cta .q-btn{align-self:flex-start;margin-top:8px}
.q-again{margin-top:28px;text-align:center;font-size:13px;color:var(--q-sub)}
.q-again a{text-decoration:underline;color:var(--q-ink)}

@media (max-width:899px){
  /* スマホは、コピー → 検索欄 → 入口のボタン → 写真 の順（検索欄を写真より前に。今泉さんの要件 2） */
  .q-hero{padding:34px 0 0;min-height:150px}
  .q-hero>.q-hero-photo{display:none}
  /* スマホは、コピー4行を白い帯にのせて左上に、写真を右に置く。切り口の傾きは、写真の人の肩から腕の線に合わせる。
     行のあいだは均等で、点がちょうど1列入る：点の間隔は14pxなので、帯の高さ30＋すきま12＝42（14の3倍）、1本目の上は27px */
  /* スマホは点を小さくする（半径1.6→1.0）。間隔14pxは変えない（帯のすきまと合わせてあるため） */
  .q-hero-withperson{min-height:210px;padding-top:0;background-image:radial-gradient(#f3cdd5 1px,transparent 1.1px)}
  .q-hero-withperson::before,.q-hero-withperson::after,.q-hero>.q-hero-person{top:0;bottom:0;width:56%;clip-path:polygon(46% 0,100% 0,100% 100%,0 100%)}
  .q-hero-withperson::before{right:12px}
  .q-hero-withperson::after{right:6px}
  .q-hero>.q-hero-person img{object-position:28% 4%}
  .q-hero-withperson .q-catch{top:27px;left:0;gap:12px;font-size:min(22px,5.9vw);line-height:1}
  .q-hero-withperson .q-l{display:contents}
  .q-hero-withperson .q-l>span{align-self:flex-start;height:30px;line-height:30px;padding:0 10px 0 20px}
  /* 白い帯の上に、文字の幅だけ細いマーカーを引く。4本とも線の形を少しずつ変える */
  .q-hero-withperson .q-l{background:none}
  .q-hero-withperson .q-l:first-child>span:first-child{background:var(--mk-1) 0 100%/100% 34% no-repeat content-box,#fff}
  .q-hero-withperson .q-l:first-child>span+span{background:var(--mk-2) 0 100%/100% 34% no-repeat content-box,#fff}
  .q-hero-withperson .q-l+.q-l>span:first-child{background:var(--mk-3) 0 100%/100% 34% no-repeat content-box,#fff}
  .q-hero-withperson .q-l+.q-l>span+span{background:var(--mk-4) 0 100%/100% 34% no-repeat content-box,#fff}
  .q-hero-withperson+.q-entry{padding-top:16px}
  .q-sp-photo{display:block;height:260px;margin-top:20px;clip-path:none}
  .q-entry{margin-top:0;padding-bottom:0}
  .q-entry>.container{display:flex;flex-direction:column}
  .q-search{order:-1;margin:0 0 14px}
  .q .q-fields{grid-template-columns:1fr 1fr;gap:12px 10px}
  .q .q-fields .search-submit{grid-column:1/-1}
  /* スマホは、勤務地の下に市区町村が来るように並べる（左：職種 → 雇用形態、右：勤務地 → 市区町村）。2026-11-27 齊藤さん */
  .q .q-fields .search-field:nth-of-type(4){order:3;border-right:1px solid var(--line)}
  .q .q-fields .search-field:nth-of-type(3){order:4}
  .q .q-fields .search-submit{order:5}
  .q .q-fields .search-field:nth-of-type(2),.q .q-fields .search-field:nth-of-type(3){border-right:0;padding-right:0}
  .q .q-fields select{font-size:16px}
  .q-catch{top:34px;left:20px;font-size:min(34px,8.3vw)}
  .q-entries{grid-template-columns:1fr;gap:10px}
  .q-entry-btn{min-height:96px}
  .q-intro h1{font-size:18px}
  .q-band h2{font-size:20px}
  .q-band-en{font-size:46px;bottom:-12px}
  .q-sub h3{font-size:17px}
  .q-box{padding:16px 12px 4px}
  .q-tiles{grid-template-columns:repeat(2,1fr)}
  .q-tiles-pref{grid-template-columns:repeat(3,1fr)}
  .q-tiles-wide{grid-template-columns:1fr}
  .q-panel{padding:14px 12px}
  .q-pc-only{display:none}            /* スマホは各地方5件（HTMLには10件入っている） */
  .q-job{flex-basis:78%}
  .q-js .q-arrow{display:none}
  .q-btn{width:100%;min-width:0}
  .q-banners{grid-template-columns:1fr}
  .q-articles{grid-template-columns:1fr}
  .q-articles a{flex-direction:column;align-items:flex-start;gap:2px}
  .q-articles b{width:auto}
  /* スマホは横送り（指で横にすべらせる。1枚ずつ止まる。次の1枚が右に少し見える） */
  .q-articles-thumb{display:flex;gap:10px;padding-bottom:10px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .q-articles-thumb li{flex:none;width:min(78%,300px);scroll-snap-align:start}
  .q-articles-thumb a{flex-direction:column;align-items:stretch;gap:0}
  .q-feature b{font-size:17px}
  .q-feature span{font-size:15px}
  .q-faq{padding:4px 16px}
  .q-cta{grid-template-columns:1fr}
  .q-cta>div:last-child{padding:22px 18px}
  .q-cta-lead{font-size:19px}
  /* スマホの文字: 本文は16px前後、注記でも13px以上（今泉さんの要件 6） */
  .q-intro p,.q-faq dd,.q-cta p,.q-articles a,.q-tile{font-size:16px}
  .q-job-company,.q-job-row,.q-tabs button,.q-box-group h4,.q-again{font-size:15px}
  .q-entry-btn small,.q-updated,.q-band p,.q-job-row i,.q-job-top,.q-articles b,.q-entry-tag{font-size:13px}
  .q-search .search-form span,.q-search .search-form a{font-size:14px!important}
  .q-tile{min-height:52px}
  .q-tile-br{display:inline}
  .q-tile-dot{display:none}
  /* 職種のタイルは2列なので、9文字の名前（セレモニースタッフ など）が1行に入る大きさにする */
  .q-box .q-tile{padding:6px 4px;font-size:clamp(13px,4vw,16px);letter-spacing:.02em}
}

/* 本番（写真がまだないとき）: 写真の枠を出さない */
.q-hero-nophoto{padding:0;min-height:200px}
.q-hero-nophoto+.q-entry{margin-top:0}
.q-cta-nophoto{grid-template-columns:1fr}
.q-job-noimg{display:none}
@media (max-width:899px){.q-hero-nophoto{min-height:150px}}
