/* assets/brand.css
   事業ページ（スキマバイトアプリ・日中進出支援）で共有する土台。
   トップ（index.html）のデザインと同じ色・文字・部品をここにまとめる。 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #ffffff;
  --paper2: #f6f5f2;
  --ink: #121212;
  --ink2: #3a3a3a;
  --mute: #6b6b6b;
  --line: rgba(18,18,18,0.12);
  --line2: rgba(18,18,18,0.06);
  --red: #d93033;
  --red-deep: #b8262a;
  --ja: 'Zen Kaku Gothic New', 'Noto Sans SC', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --en: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --ease: cubic-bezier(.2,.7,.1,1);
}

html { scroll-padding-top: 88px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt" 0;
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.num, .en { font-family: var(--en); font-feature-settings: "tnum" 1; }
p, li, dd, blockquote, summary, td { text-wrap: pretty; line-break: strict; word-break: auto-phrase; }
h1, h2, h3 { line-break: strict; word-break: auto-phrase; font-weight: 900; letter-spacing: 0.01em; }
.sp-only { display: none; }
.nw { white-space: nowrap; }
#top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 300; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─── 見出しラベル（小見出し＋短い罫線） ─── */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink2);
}
.label::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }
.label .num { color: var(--mute); font-weight: 500; letter-spacing: 0.04em; }

/* ─── スクロール出現（JSが無いときは常に表示） ─── */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; } .js .rv.d2 { transition-delay: .16s; } .js .rv.d3 { transition-delay: .24s; }

/* ─── ヘッダー ─── */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  transition: background .3s, border-color .3s, height .3s;
  border-bottom: 1px solid transparent;
}
.hd.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { height: 20px; width: auto; overflow: visible; }
.logo .co { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink2); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1; }
.logo .o { transform-box: fill-box; transform-origin: 50% 100%; cursor: pointer; }
.logo.jump .o { animation: hop .7s var(--ease) both; }
.logo.jump .o:nth-of-type(2) { animation-delay: .1s; }
.logo.jump .o:nth-of-type(3) { animation-delay: .2s; }
@keyframes hop { 0%{transform:none} 30%{transform:translateY(-55%) scaleY(1.06)} 55%{transform:translateY(0) scaleY(.86)} 75%{transform:translateY(-14%)} 100%{transform:none} }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; position: relative; padding: 6px 0; }
.nav-links a:not(.nav-cta)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 11px 22px !important; border-radius: 999px;
  transition: background .25s;
}
.nav-cta:hover { background: var(--red); }
.nav-cta svg { width: 14px; height: 14px; }
.nav-hamburger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); }

/* ─── ボタン ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 60px; padding: 0 30px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em;
  transition: background .25s, color .25s, border-color .25s;
}
.btn .arr { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn svg { width: 14px; height: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line .arr { background: var(--paper2); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line:hover .arr { background: rgba(255,255,255,.15); }
.btn-white { background: #fff; color: var(--red); }
.btn-white .arr { background: rgba(229,56,58,.1); }
.btn-white:hover { background: var(--ink); color: #fff; }

/* ─── 共通セクション ─── */
.sec { padding: clamp(96px, 13vw, 180px) 0; position: relative; }
.sec.tight { padding: clamp(72px, 9vw, 128px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 26px; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head h2 { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.28; }
.sec-head p { max-width: 36em; color: var(--ink2); }
@media (min-width: 901px) {
  .sec-head.split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
  .sec-head.split > :not(h2):not(p:last-child) { grid-column: 1 / -1; }
}

.textlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; }
.textlink:hover { color: var(--red); }

/* ─── フォーム ─── */
form .row { margin-bottom: 22px; }
form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
form label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
form label .req { font-size: 11px; color: #fff; background: var(--red); border-radius: 3px; padding: 1px 6px; }
form label .opt { font-size: 11px; color: var(--mute); border: 1px solid var(--line); border-radius: 3px; padding: 0 6px; }
form input, form textarea, form select {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid #8a8a8a; border-radius: 8px; background: #fff;
  transition: border-color .2s;
}
form input:focus-visible, form textarea:focus-visible, form select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(229,56,58,.25); }
form textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.agree { font-size: 13px; color: var(--ink2); margin: 6px 0 22px; }
.agree a { text-underline-offset: 3px; }
#submit-btn { border: 0; cursor: pointer; font-family: inherit; }
#submit-btn:disabled { cursor: wait; }
.form-msg { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 8px; font-size: 14px; }
#form-success { background: #eef7f1; color: #1f6b3e; }
#form-error { background: #fdeeee; color: #a3262a; }

/* ─── フッター ─── */
.ft { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 104px) 0 40px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ft .logo svg { height: 24px; }
.ft .logo .co { color: rgba(255,255,255,.7); border-left-color: rgba(255,255,255,.25); }
.ft-msg { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,.7); max-width: 24em; }
.ft .ft-h { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.5); letter-spacing: 0.1em; margin-bottom: 16px; }
.ft ul { list-style: none; display: grid; gap: 10px; }
.ft ul a { font-size: 14px; text-decoration: none; color: rgba(255,255,255,.88); }
.ft ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ft-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; color: rgba(255,255,255,.55); }

.toast {
  position: fixed; left: 50%; top: 88px; z-index: 96; transform: translate(-50%, -12px);
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; padding: 12px 22px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ─── 事業ページ共通：言語切替 ─── */
.hd-right { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; background: #fff; }
.lang-btn { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; cursor: pointer; color: var(--ink2); line-height: 1.2; }
.lang-btn.active { background: var(--ink); color: #fff; }
html:lang(zh-CN) body { font-family: 'Noto Sans SC', var(--ja); }
html:lang(zh-CN) h1, html:lang(zh-CN) h2, html:lang(zh-CN) h3 { letter-spacing: 0.02em; }

/* ─── 事業ページ共通：どの段の事業か（トップの階段とつなぐ） ─── */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; font-weight: 700; }
.crumb a { text-decoration: none; color: var(--ink2); }
.crumb a:hover { color: var(--red); }
.steps-mini { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.steps-mini i { width: 7px; background: var(--line); border-radius: 1px; }
.steps-mini i:nth-child(1) { height: 25%; } .steps-mini i:nth-child(2) { height: 50%; } .steps-mini i:nth-child(3) { height: 75%; } .steps-mini i:nth-child(4) { height: 100%; }
.steps-mini i.on { background: var(--red); }
.step-tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; }
.step-tag .num { color: var(--red); font-weight: 800; }

/* ─── 事業ページ共通：ほかの事業へ ─── */
.next-biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); list-style: none; }
.next-biz li + li { border-left: 1px solid var(--line); }
.next-biz a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 28px 28px 30px; text-decoration: none; transition: background .3s, color .3s; }
.next-biz a:hover { background: var(--ink); color: #fff; }
.next-biz .s { font-size: 13px; font-weight: 700; color: var(--mute); }
.next-biz .s .num { color: var(--red); margin-right: .4em; }
.next-biz b { font-size: clamp(18px, 1.6vw, 22px); font-weight: 900; line-height: 1.45; }
.next-biz .here { display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--paper2); }
.next-biz .here .s .num { color: var(--red-deep); }
.next-biz .here b::after { content: '（このページ）'; font-size: 13px; color: var(--mute); font-weight: 700; }
.next-biz a:hover .s { color: rgba(255,255,255,.65); }

/* ─── 事業ページ共通：トップへ戻るボタンの外枠 ─── */
.bt {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 68px; height: 68px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--ink); cursor: pointer;
  display: grid; place-items: center; color: var(--ink); font-family: var(--ja);
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease), box-shadow .2s;
}
.bt.show { opacity: 1; transform: none; pointer-events: auto; }
.bt:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.bt:active { box-shadow: 1px 1px 0 var(--ink); transform: translate(3px, 3px); }
.bt .tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap; font-size: 12px; font-weight: 700; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; opacity: 0; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.bt:hover .tip, .bt:focus-visible .tip { opacity: 1; transform: translateY(-50%); }
.bt.busy { pointer-events: none; }
.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 120; pointer-events: none; overflow: visible; transition: opacity .6s; }
.fx.fade { opacity: 0; }

/* ─── 事業ページ共通：レスポンシブ ─── */
@media (max-width: 1080px) { .nav-links { gap: 22px; } }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .hd .logo .co { display: none; }
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-top > div:first-child { grid-column: 1 / -1; }
  .next-biz { grid-template-columns: 1fr; }
  .next-biz li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .sp-only { display: inline; }
  .hd { height: 64px; }
  .hd-right { gap: 8px; }
  .sec-head h2 { font-size: clamp(28px, 8vw, 40px); }
  form .two { grid-template-columns: 1fr; gap: 0; }
  #submit-btn { width: 100%; justify-content: space-between; }
  .ft-top { grid-template-columns: 1fr; }
  .bt { right: 14px; bottom: 14px; width: 58px; height: 58px; }
  .toast { top: 76px; font-size: 13px; white-space: normal; text-align: center; width: max-content; max-width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
