/* タスク株式会社 トップ試作 — 2 案に共通の土台
   数値は notes/2026-10-27-design-rules-brief.md（本文 17px 以上・補助 14px・最小 12px・行間 1.8〜1.85・字間 0.02em） */
:root {
  --brand: #F1612C;      /* 11/13 永井様支給の新ロゴ（タスク新LOGO.png）の実測値 */
  --brand-deep: #C2410C;
  --ink: #221D19;
  --ink-2: #5A514A;
  --paper: #F6F3ED;
  --paper-2: #FCFAF6;
  --night: #16120F;
  --night-ink: #F3EDE6;
  --night-dim: #8F857D;
  --line: rgba(34, 29, 25, .16);
  --line-night: rgba(243, 237, 230, .18);
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-num: "Archivo", "Zen Kaku Gothic New", sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --fs-body: 17px;
  --lh-body: 1.8;
  --fs-small: 14px;
  --fs-label: 12px;
  --fs-h1: 30px;
  --fs-h2: 24px;
  --fs-h3: 19px;
  --header-h: 60px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-big: cubic-bezier(.165, .84, .44, 1);
  --ease-wipe: cubic-bezier(.77, 0, .18, 1);
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --fs-body: 18px; --lh-body: 1.85; --fs-h1: 56px; --fs-h2: 34px; --fs-h3: 22px; --header-h: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-ja); font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: .02em;
  line-break: strict; text-autospace: normal; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { word-break: auto-phrase; text-wrap: balance; line-height: 1.4; }
.ph { display: inline-block; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.label { font-family: var(--font-num); font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }

/* 試作の帯（目立たせない） */
.proto { background: var(--paper-2); color: var(--ink-2); font-size: 12px; line-height: 1.6; padding: 8px var(--gutter); display: flex; flex-wrap: wrap; gap: 2px 18px; align-items: baseline; border-bottom: 1px solid var(--line); }
.proto p { margin: 0; }
.proto-what { display: flex; gap: 10px; font-weight: 700; color: var(--ink); }
.proto-switch { display: flex; flex-wrap: wrap; gap: 0 14px; }
.proto-group a { display: inline-block; min-width: 1.6em; text-align: center; text-decoration: none; padding: 0 2px; }
.proto-group a[aria-current] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }
.proto-note { flex-basis: 100%; }
@media (min-width: 1024px) { .proto-note { flex-basis: auto; margin-left: auto; } }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter); transition: background-color .35s, box-shadow .35s; }
.site-header.is-solid { background: var(--paper-2); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.brand img { width: 34px; height: 34px; }
.gnav { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; background: none; border: 0; font-size: 14px; font-weight: 700; }
.menu-lines { width: 20px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
@media (min-width: 1024px) {
  .gnav { display: flex; align-items: center; gap: 28px; }
  .gnav ul { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
  .gnav ul a { text-decoration: none; }
  .gnav ul a:hover { text-decoration: underline; }
  .gnav-cta { display: flex; gap: 8px; }
  .menu-btn { display: none; }
}
.btn-s { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-decoration: none; border: 1.5px solid var(--ink); }
.btn-s-dark { background: var(--ink); color: var(--paper-2); }

/* 全画面メニュー（不透明の塗りとフェードだけ。Safari の継ぎ目対策） */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--paper-2); padding: calc(var(--header-h) + 12px) var(--gutter) 32px; overflow-y: auto; opacity: 0; transition: opacity .3s; }
.menu.is-open { opacity: 1; }
.menu-list a { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 22px; font-weight: 700; }
.menu-list .label { color: var(--ink-2); }
.menu-cta { display: grid; gap: 10px; margin-top: 28px; }
html.menu-open .site-header { z-index: 70; background: var(--paper-2); }
html.menu-open { overflow: hidden; }

/* ボタン（高さ 44px 以上） */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-decoration: none; border: 1.5px solid var(--ink); transition: background-color .3s, color .3s; }
.btn::after { content: ""; width: 14px; height: 9px; background: currentColor; clip-path: polygon(0 40%, 70% 40%, 70% 0, 100% 50%, 70% 100%, 70% 60%, 0 60%); }
.btn-primary { background: var(--ink); color: var(--paper-2); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-primary:hover { background: #3a322c; }
.btn-ghost:hover { background: rgba(34, 29, 25, .06); }

/* 章の見出し */
.sec-head .label { color: var(--ink-2); margin-bottom: 6px; }
.sec-head h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: .02em; }
.sec-lead { margin-top: 14px; max-width: 34em; }

/* 写真（どの章でも同じ調色の素材だけを使う） */
.photo { overflow: hidden; background: var(--night); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* スマホの下部 2 レーン帯（全幅。右下の丸いボタンは使わない） */
.lanes { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; }
html.js .lanes { transform: translateY(100%); transition: transform .45s var(--ease-out); }
html.js .lanes.is-shown { transform: none; }
.lane { min-height: 56px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; text-decoration: none; padding: 0 8px; text-align: center; }
.lane-1 { background: var(--ink); color: var(--paper-2); }
.lane-2 { background: var(--brand); color: var(--ink); }
@media (min-width: 1024px) { .lanes { display: none; } }

/* フッター（撤収後の暗さ） */
.site-footer { background: var(--night); color: var(--night-ink); padding: 56px 0 96px; font-size: var(--fs-small); }
.footer-inner { display: grid; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; }
.footer-brand img { width: 44px; height: 44px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a, .footer-sns a { text-decoration: none; }
.footer-nav a:hover, .footer-sns a:hover { text-decoration: underline; }
.footer-sns { display: flex; gap: 20px; }
.footer-copy { color: var(--night-dim); }
@media (min-width: 1024px) { .site-footer { padding-bottom: 56px; } .footer-inner { grid-template-columns: 1fr 1fr; align-items: start; } }

/* オープニングの幕（is-opening の間だけ出す。JS なしでは出ない） */
.opening { display: none; }
html.is-opening .opening { display: block; position: fixed; inset: 0; z-index: 90; background: var(--night); }
.op-skip { position: absolute; right: 16px; top: 14px; min-height: 44px; padding: 0 16px; background: none; border: 1px solid var(--line-night); color: var(--night-ink); font-size: 13px; letter-spacing: .08em; }
html.is-opening { overflow: hidden; }

/* 動き。終わりの状態が既定で、隠す状態は reveal-on（site.js が付ける）の間だけ */
html.reveal-on [data-reveal] { transition: opacity .9s var(--ease-big), transform .9s var(--ease-big); transition-delay: calc(var(--i, 0) * 80ms); }
html.reveal-on[data-motion="1"] [data-reveal="slide"]:not(.is-in) { opacity: 0; transform: translateX(-48px); }
html.reveal-on[data-motion="1"] [data-reveal="rise"]:not(.is-in),
html.reveal-on[data-motion="1"] [data-reveal="photo"]:not(.is-in) { opacity: 0; transform: translateY(28px); }
html.reveal-on[data-motion="2"] [data-reveal="rise"]:not(.is-in) { opacity: 0; transform: translateY(28px); }
html.reveal-on[data-motion="2"] [data-reveal="photo"] img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-wipe), transform .2s linear; }
html.reveal-on[data-motion="2"] [data-reveal="photo"]:not(.is-in) img { clip-path: inset(0 100% 0 0); }
html.reveal-on[data-motion="3"] [data-reveal="rise"]:not(.is-in) { opacity: 0; transform: translateY(16px); }
html.reveal-on[data-motion="3"] [data-reveal="photo"]:not(.is-in) { opacity: 0; }
html.reveal-on[data-motion="3"] [data-reveal] { transition-duration: 1s; transition-delay: 0s; }

/* ② 写真を多く見せる: 写真の帯（site.js が ② の時だけ差し込む） */
.band { overflow: hidden; padding: 10px 0; background: var(--night); }
.band-track { display: flex; gap: 10px; width: max-content; animation: band-run 70s linear infinite; }
.band img { width: auto; height: 150px; }
@media (min-width: 1024px) { .band img { height: 240px; } }
@keyframes band-run { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html.reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.reveal-on [data-reveal] img { clip-path: none !important; }
  .band-track { animation: none; }
}

/* ===== 2 案で共通の部品（色と配置は各案の CSS） ===== */
/* 事業内容 */
.job { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.job-place { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-small); color: var(--ink-2); font-weight: 500; }
.job-place .label { color: var(--brand-deep); }
.job-name { margin-top: 6px; font-size: 22px; font-weight: 700; }
.job-text { margin-top: 8px; max-width: 34em; }
.job-link { display: inline-block; margin-top: 10px; font-size: var(--fs-small); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--brand); }

/* 取引実績 */
.works-count { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; }
.works-count dt { font-size: var(--fs-small); }
.works-count dd { display: flex; align-items: baseline; gap: 6px; }
.works-count .num { font-weight: 700; line-height: 1; font-stretch: 80%; }
.works-count .unit { font-size: 18px; font-weight: 700; }
.works-note { margin-top: 14px; font-size: var(--fs-small); }
.region-name { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-small); font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.region-name .num { font-size: 15px; }
.venue-list { margin-top: 8px; }
.clients { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.clients h3 { font-size: var(--fs-small); }
.client-list { margin-top: 10px; font-size: 15px; line-height: 2; }

/* スタッフ募集 */
.roles li { padding: 16px 0; border-top: 1.5px solid var(--line); }
.roles h3 { font-size: 20px; font-weight: 700; }
.roles p { margin-top: 4px; }
.areas-title { font-size: 20px; font-weight: 700; }
.area-tabs { margin-top: 14px; display: none; flex-wrap: wrap; gap: 6px; }
html.js .area-tabs { display: flex; }
.area-tabs button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); background: transparent; font-size: 15px; font-weight: 700; }
.area-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper-2); }
.area { margin-top: 18px; }
html.js .area[hidden] { display: none; }
.area h4 { font-size: 18px; font-weight: 700; display: flex; flex-direction: column; }
.area h4 span { font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.area dl, .terms { margin-top: 10px; }
.area dl div, .terms div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.area dt, .terms dt { font-size: var(--fs-small); font-weight: 700; padding-top: 3px; }
.area .num { font-size: 26px; font-weight: 700; margin-right: 2px; }
.areas-note { margin-top: 14px; font-size: var(--fs-small); color: var(--ink-2); }
.day-title { font-size: 20px; font-weight: 700; }
.day-list { margin-top: 16px; }
.day-list li { display: grid; grid-template-columns: 4.6em 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.day-list time { font-size: 24px; font-weight: 700; line-height: 1.3; font-stretch: 85%; }
.day-note { margin-top: 10px; font-size: var(--fs-small); }
.recruit-cta { margin-top: 40px; display: grid; gap: 10px; }
.recruit-cta-note { font-size: var(--fs-small); }

/* 会社概要・お知らせ・お問い合わせ */
.scale { display: grid; gap: 6px; }
.scale-item { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.scale-key { font-size: var(--fs-small); font-weight: 700; width: 100%; color: var(--ink-2); }
.scale .num { font-weight: 700; line-height: 1; font-stretch: 78%; }
.scale-unit, .scale-approx { font-size: 20px; font-weight: 700; }
.profile div { display: grid; grid-template-columns: 5.5em 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.profile dt { font-size: var(--fs-small); font-weight: 700; color: var(--ink-2); padding-top: 3px; }
.offices h3 { font-size: 20px; font-weight: 700; }
.offices ul { margin-top: 10px; }
.offices li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.office-name { font-size: var(--fs-body); color: var(--ink); font-weight: 700; }
.news-list { margin-top: 24px; }
.news-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news-list time { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.news-more { margin-top: 16px; font-size: var(--fs-small); font-weight: 700; }
.contact-ways { margin-top: 28px; display: grid; gap: 28px; }
.way { padding-top: 18px; border-top: 3px solid var(--ink); display: grid; gap: 6px; align-content: start; }
.way h3 { font-size: 22px; font-weight: 700; }
.way-tel a { font-size: 34px; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.way .btn { margin-top: 10px; }
@media (min-width: 1024px) {
  .job-name { font-size: 26px; }
  .news-list li { grid-template-columns: 8em 1fr; }
  .contact-ways { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 1024px) { .photo-pair { grid-column: 2; } }
.way-note { font-size: var(--fs-small); }
small { font-size: 12px; }

/* 応募の流れ（募集の章の頭。番号つき） */
.flow { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; counter-reset: none; }
.flow li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid currentColor; font-weight: 700; font-size: var(--fs-body); line-height: 1.4; }
.flow .num { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
@media (min-width: 1024px) { .flow { grid-template-columns: repeat(4, 1fr); grid-column: 1; } }
/* スマホでは試作の帯を 2 行に収める（仮の断り書きは入口のページに書いてある） */
@media (max-width: 639px) { .proto-note { display: none; } .proto { padding: 6px var(--gutter); } }
