/*
Theme Name: zaito
Description: 在宅ワーク求人サイト zaito のオリジナルテーマ
Author: zaito
Version: 0.2
*/

:root {
  /* 2026-08-23改訂: コーラル×ディープティール×ゴールドの配色。
     以前の藍×テラコッタ×オーカーは彩度を絞ったペールトーンで使われがちで
     「地味」との指摘があり、また白地に暖色クリーム＋テラコッタという組み合わせ自体、
     昨今よく見るAI生成デザインの定番パターンに寄りすぎていた。
     参考サイト（favtown）の「白地をベースに、差し色は要所だけに絞って使う」設計を踏まえ、
     色相をコーラル系に更新しつつ、面で塗らず要所（ボタン・チップ）に絞って使う運用にしている。
     背景は基本的に白（--background）を維持し、--paper はセクション区切り用の控えめな帯として使う。 */
  --background: #ffffff;
  --foreground: #14261f;
  --brand: #d9552f;
  --brand-dark: #b8431f;
  --accent: #e8a93a;
  --ink: #23262b;
  --muted: #6f6a5c;
  --paper: #f7f1e4;
  --white: #fff;
  --mint: #f0d9a8;
  --lav: #2f6e63;
  --line: #e2d9c5;
  --ease: cubic-bezier(.16, .84, .44, 1);
  --shadow-sm: 0 4px 14px rgba(35, 38, 43, .07);
  --shadow-md: 0 12px 32px rgba(35, 38, 43, .12);
  --shadow-lg: 0 24px 55px rgba(35, 38, 43, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

img, video, table, iframe {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

/* アンカーリンクの飛び先がスティッキーヘッダーの下に隠れないようにする */
#feature {
  scroll-margin-top: 96px;
}

/* Header */
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(24, 32, 51, .07);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity .2s var(--ease);
}
.site-logo:hover {
  opacity: .8;
}
.site-logo span {
  color: var(--brand);
}
.site-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 700;
  color: #4c5362;
}
.site-nav a {
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-bottom: 6px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transition: right .28s var(--ease);
}
.site-nav a:hover::after {
  right: 0;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  border-radius: 6px;
  padding: 12px 19px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(.97);
}
.btn-outline {
  background: #fff;
  border: 1px solid #d9d7d0;
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.save-job-form {
  margin-top: 10px;
}
.save-job-btn.is-saved {
  border-color: var(--accent);
  color: var(--accent);
  background: #fffaf0;
}
.btn-solid {
  background: var(--ink);
  color: #fff;
}
.btn-solid:hover {
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--brand);
  color: #fff;
}
.btn-accent:hover {
  box-shadow: 0 14px 30px rgba(178, 73, 43, .35);
}

/* Footer */
.site-footer {
  padding: 42px 0 36px;
  color: #7a808c;
  font-size: 12px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 640px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.site-footer strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}
.site-footer-brand p {
  margin: 0;
  line-height: 1.7;
  max-width: 32ch;
}
.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer-links a {
  color: #7a808c;
  text-decoration: none;
}
.site-footer-links a:hover {
  color: var(--brand);
}
.site-footer-meta p {
  margin: 0 0 6px;
}
.site-footer-meta p:last-child {
  margin-bottom: 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 80px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(35, 38, 43, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 38, 43, .06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-triangle {
  position: absolute;
  top: -40px;
  right: 12%;
  width: 0;
  height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-top: 190px solid var(--accent);
  opacity: .9;
  transform: rotate(8deg);
  z-index: 0;
}
.hero-vertical-label {
  position: absolute;
  left: -6px;
  top: 20px;
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--lav);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-vertical-label::before {
  content: "";
  width: 1px;
  height: 46px;
  background: var(--lav);
  opacity: .5;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.04); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: fadeInUp .7s var(--ease) both; }
.hero h1 { animation: fadeInUp .7s var(--ease) .08s both; }
.hero p.lead { animation: fadeInUp .7s var(--ease) .16s both; }
.hero .tag-list { animation: fadeInUp .7s var(--ease) .24s both; }
.hero-cta { animation: fadeInUp .7s var(--ease) .32s both; }
.hero-photo-card-wrap { animation: fadeInUp .8s var(--ease) .22s both; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.card-grid .reveal:nth-child(2) { transition-delay: .08s; }
.card-grid .reveal:nth-child(3) { transition-delay: .16s; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 8px 14px 8px 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand);
}
.hero h1 {
  font-size: clamp(48px, 6.2vw, 82px);
  line-height: 1.03;
  letter-spacing: -4px;
  margin: 20px 0 22px;
  color: var(--lav);
}
.hero h1 .grad {
  font-style: normal;
  display: inline-block;
  background: linear-gradient(100deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 30px;
}
.tag-list {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.tag {
  background: #fff;
  border: 1px solid #e5e2da;
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #505767;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.tag:hover {
  transform: translateY(-2px);
  background: #f6f5f0;
  border-color: var(--brand);
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-photo-card-wrap {
  min-height: 380px;
}
.hero-photo-card {
  position: relative;
  height: 100%;
  min-height: 380px;
  border-radius: 10px;
  background: linear-gradient(155deg, var(--lav), #1b2338);
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(1.2deg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.hero-photo-card-tag {
  align-self: flex-start;
  background: var(--accent);
  color: #3a2a05;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}
.hero-photo-card-body {
  position: relative;
  z-index: 1;
}
.hero-photo-card-eyebrow {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #d8dcea;
}
.hero-photo-card-stat {
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -3px;
  margin: 0;
  line-height: 1;
}
.hero-photo-card-stat span {
  font-size: 36px;
  color: var(--accent);
}
.hero-photo-card-caption {
  font-size: 13px;
  color: #b9bfd4;
  margin: 10px 0 0;
}

/* Sections */
.section {
  padding: 88px 0;
  background: #fff;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.section-head {
  margin-bottom: 28px;
}
.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section h2 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0;
  color: var(--ink);
}
.section-link {
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  color: var(--ink);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
/* Feature section: 「3枚カードの棚」ではなく「1つの主張+補足リスト」の非対称レイアウト */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.feature-statement {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -1px;
  margin: 10px 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.feature-statement mark {
  background: none;
  color: var(--brand);
  box-shadow: inset 0 -0.32em 0 rgba(178, 73, 43, .16);
}
.feature-statement-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 46ch;
  margin: 0;
}
.feature-list {
  display: flex;
  flex-direction: column;
}
.feature-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature-item:first-child {
  border-top: none;
  padding-top: 0;
}
.feature-chip {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
}
.feature-item:nth-child(1) .feature-chip { background: var(--brand); }
.feature-item:nth-child(2) .feature-chip { background: var(--lav); }
.feature-item:nth-child(3) .feature-chip { background: var(--accent); color: #3a2a05; }
.feature-item h3 {
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--ink);
}
.feature-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}
.card {
  background: #fff;
  border: 1px solid #e7e4dc;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(24, 32, 51, .055);
  padding: 22px;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(178, 73, 43, .35);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.badge {
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}
.badge-coral {
  background: #fbe7de;
  color: #a8432a;
}
.badge-teal {
  background: #dcecea;
  color: #215048;
}
.badge-gold {
  background: #fbf0da;
  color: #8a6a1f;
}
.badge-rose {
  background: #f7dfe3;
  color: #9c3049;
}
.badge-moss {
  background: #e3ebd7;
  color: #4b6b2f;
}
.badge-slate {
  background: #e1e6ec;
  color: #3f5266;
}
.card h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 7px;
  color: var(--ink);
}
.card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.card .price {
  font-size: 25px;
  font-weight: 900;
  margin: 18px 0 12px;
  color: var(--ink);
}
.card .price .unit {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.card .card-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 11px;
  color: #687083;
}
.card .empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px;
}
.pickup-empty {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px 32px;
}
.pickup-empty-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--brand);
  margin: 0 0 10px;
}
.pickup-empty-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
}
.pickup-empty-text {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.8;
}
.pickup-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .pickup-empty {
    padding: 32px 20px;
  }
  .pickup-empty-br {
    display: none;
  }
  .pickup-empty-actions {
    flex-direction: column;
  }
  .pickup-empty-actions .btn {
    width: 100%;
  }
}

/* CTA */
.cta-section {
  padding: 88px 40px;
}
.cta-box {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 54px 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  position: relative;
}
.cta-blob {
  position: absolute;
  width: 260px;
  height: 220px;
  background: var(--accent);
  right: -70px;
  top: -80px;
  opacity: .92;
  clip-path: polygon(20% 0%, 100% 8%, 88% 78%, 42% 100%, 0% 62%);
  animation: blobFloat 8s ease-in-out infinite;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-content .eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.cta-content h2 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
}
.cta-content p {
  font-size: 16px;
  color: #c8ccd5;
  margin: 0;
}
.cta-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.btn-cta {
  background: var(--mint);
  color: #4a3418;
  white-space: nowrap;
}
.btn-cta:hover {
  box-shadow: 0 16px 34px rgba(240, 217, 168, .5);
}
.cta-secondary-link {
  font-size: 13px;
  font-weight: 700;
  color: #c8ccd5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-secondary-link:hover {
  color: #fff;
}
.cta-box {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cta-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Auth Pages */
.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 20px;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(35, 38, 43, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 38, 43, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  position: relative;
  overflow: hidden;
}
.auth-main::before {
  content: "";
  position: absolute;
  top: -34px;
  right: 10%;
  width: 0;
  height: 0;
  border-left: 46px solid transparent;
  border-right: 46px solid transparent;
  border-top: 124px solid var(--accent);
  opacity: .9;
  transform: rotate(8deg);
  z-index: 0;
}
.auth-main::after {
  content: "・在宅で働く";
  position: absolute;
  left: -6px;
  top: 20px;
  writing-mode: vertical-rl;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  color: var(--lav);
  z-index: 0;
}
.auth-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  animation: fadeInUp .55s var(--ease) both;
}
.auth-card h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--ink);
}
.auth-error {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  color: #856404;
  font-size: 14px;
}
.auth-error p {
  margin: 0;
}
.auth-success-message {
  background: #e6f7ee;
  border: 1px solid #b7ebc9;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  color: #1e6b3c;
  font-size: 14px;
}
.verification-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 24px;
  color: #856404;
  font-size: 14px;
}
.inline-form {
  margin: 0;
}
.form-check label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  margin-top: 3px;
}
.form-check a {
  color: var(--brand);
}
.static-content-main {
  min-height: 100vh;
  padding: 60px 0;
}
.static-content-main .wrap {
  max-width: 760px;
  margin: 0 auto;
}
.static-content-main h1 {
  font-size: 28px;
  margin-bottom: 30px;
}
.static-content-main h2 {
  font-size: 18px;
  margin: 30px 0 12px;
}
.static-content-main p {
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 12px;
}
.auth-form {
  margin: 30px 0;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(178, 73, 43, .14);
}
.form-group textarea {
  resize: vertical;
}
.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.checkbox-group-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.checkbox-group-item:has(input:checked) {
  border-color: var(--brand);
  background: rgba(217, 85, 47, .06);
}
.checkbox-group-item input {
  margin: 0;
}
.btn-block {
  width: 100%;
  margin-top: 10px;
}
.auth-link {
  text-align: center;
  font-size: 14px;
  margin: 20px 0;
}
.auth-link a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}
.auth-divider {
  text-align: center;
  margin: 30px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-link-right {
  text-align: right;
  margin: -6px 0 20px;
}
.auth-link-right a {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}
.auth-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.btn-google {
  background: #fff;
  border: 1px solid #d9d7d0;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-google:hover {
  border-color: #d9d7d0;
  box-shadow: var(--shadow-sm);
}
.google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
}

/* MyPage and Company Pages */
.mypage-main,
.company-main {
  min-height: 100vh;
  padding: 40px 0;
}
.mypage-header,
.company-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 26px;
}
.header-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
}
.mypage-header .header-eyebrow,
.company-header .header-eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mypage-header h1,
.company-header h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 4px;
}
.mypage-header p,
.company-header p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}
.mypage-grid,
.company-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.mypage-sidebar,
.company-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.profile-card,
.company-info-card,
.menu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: 8px;
  padding: 20px;
}
.profile-card h3,
.company-info-card h3,
.menu-card h3 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.profile-item,
.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.profile-item .label,
.info-item .label {
  color: var(--muted);
}
.profile-item .value,
.info-item .value {
  font-weight: 700;
}
.menu-link {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.menu-link:hover {
  color: var(--brand);
  padding-left: 4px;
}
.menu-link:last-child {
  border-bottom: none;
}
.menu-link.active {
  color: var(--brand);
  font-weight: 700;
}
.menu-link.logout {
  color: #d34e79;
}
.mypage-content,
.company-content {
  min-height: 400px;
}
.content-section {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: 30px;
}
.content-section h2 {
  margin-top: 0;
  font-size: 22px;
  letter-spacing: -.5px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.applications-list,
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.application-item,
.job-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  align-items: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.application-item:hover,
.job-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(178, 73, 43, .3);
}
.application-item.app-pending { border-left-color: #c98a2e; }
.application-item.app-accepted { border-left-color: #3d7a4d; }
.application-item.app-rejected { border-left-color: #a8432a; }
.app-info h3,
.job-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.app-info p,
.job-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.app-status,
.job-stats {
  display: flex;
  gap: 12px;
}
.status-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pending {
  background: #fff3cd;
  color: #856404;
}
.status-accepted {
  background: #d4edda;
  color: #155724;
}
.status-rejected {
  background: #f8d7da;
  color: #721c24;
}
.app-actions,
.job-actions {
  display: flex;
  gap: 8px;
}
.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}
.empty-message {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
}

/* Apply Page */
.apply-main {
  min-height: 100vh;
  padding: 40px 0;
}
.apply-container {
  max-width: 600px;
  margin: 0 auto;
}
.apply-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
}
.apply-card h1 {
  margin-bottom: 30px;
  font-size: 28px;
}
.job-summary {
  background: var(--paper);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}
.job-summary h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.job-summary .company {
  margin: 0 0 15px;
  color: var(--muted);
}
.job-details p {
  margin: 8px 0;
  font-size: 14px;
}
.apply-form {
  margin-top: 30px;
}
.apply-form .form-group {
  margin-bottom: 20px;
}
.apply-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
}
.apply-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.apply-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(178, 73, 43, .14);
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.form-actions .btn {
  flex: 1;
}
.apply-success {
  text-align: center;
  padding: 60px 40px;
}
.apply-success h1 {
  font-size: 28px;
  margin-bottom: 16px;
}
.apply-success p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 14px;
}

/* Chat Page */
.chat-main {
  min-height: 100vh;
  padding: 40px 0;
}
.chat-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  height: 70vh;
}
.chat-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.chat-sidebar h2 {
  margin: 0 0 16px;
  font-size: 18px;
}
.conversations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.conversation-item {
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background-color .22s var(--ease), transform .22s var(--ease);
  cursor: pointer;
}
.conversation-item:hover {
  transform: translateX(3px);
}
.conversation-item:hover {
  background: var(--paper);
}
.conversation-item.active {
  background: var(--brand);
  color: #fff;
}
.conversation-info .name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
}
.conversation-info .preview {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.8;
}
.chat-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.chat-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.chat-header h2 {
  margin: 0;
  font-size: 18px;
}
.messages-container {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.message {
  display: flex;
  margin-bottom: 12px;
}
.message-own {
  justify-content: flex-end;
}
.message-other {
  justify-content: flex-start;
}
.message-bubble {
  max-width: 60%;
  padding: 12px 16px;
  border-radius: 12px;
  word-wrap: break-word;
}
.message-own .message-bubble {
  background: var(--brand);
  color: #fff;
}
.message-other .message-bubble {
  background: #f0f0f0;
  color: var(--ink);
}
.message-text {
  margin: 0 0 8px;
  font-size: 14px;
}
.message-time {
  font-size: 11px;
  opacity: 0.7;
}
.chat-form {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.chat-form textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  resize: none;
}
.chat-form button {
  padding: 12px 24px;
  white-space: nowrap;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
}

/* Jobs Listing */
.jobs-listing-main {
  min-height: 100vh;
  padding: 40px 0;
}
.jobs-header {
  margin-bottom: 40px;
  padding: 28px 0 26px;
  border-bottom: 2px solid var(--ink);
}
.jobs-header h1 {
  font-size: 34px;
  letter-spacing: -1.5px;
  margin: 4px 0 8px;
}
.jobs-header p {
  color: var(--muted);
}
.jobs-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
}
.filter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  height: fit-content;
}
.filter-card h3 {
  margin-top: 0;
  font-size: 16px;
}
.filter-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-group label {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.filter-group input,
.filter-group select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
}
.jobs-content {
  min-height: 400px;
}
.jobs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.empty-message {
  text-align: center;
  padding: 60px 40px;
  color: var(--muted);
}
.jobs-result-count {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}
.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.jobs-pagination-status {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* Job Detail */
.job-detail-main {
  min-height: 100vh;
  padding: 40px 0;
}
.job-detail {
  display: flex;
  flex-direction: column;
}
.preview-banner {
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  color: #8a6a1f;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.8;
}
.preview-banner strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.job-detail-header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 30px;
}
.job-detail-header h1 {
  font-size: 34px;
  letter-spacing: -1.5px;
  margin: 12px 0 8px;
}
.job-detail-header .company {
  color: var(--muted);
  margin: 0;
}
.job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  margin-bottom: 60px;
}
.job-detail-content {
  min-height: 400px;
}
.detail-section {
  margin-bottom: 40px;
}
.detail-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
}
.job-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.job-info-item {
  background: var(--paper);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.job-info-item .label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.job-info-item .value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.job-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: fit-content;
}
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 8px;
  padding: 20px;
}
.sidebar-card h3 {
  margin-top: 0;
  font-size: 16px;
}
.user-email,
.login-prompt,
.register-prompt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.share-buttons {
  display: flex;
  gap: 10px;
}
.share-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.2s;
}
.share-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.related-jobs {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.related-jobs h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

/* For Companies page */
.forco-lead {
  max-width: 56ch;
}
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}
.step-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step-item:first-child {
  border-top: none;
  padding-top: 0;
}
.step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
}
.step-item h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 8px;
  color: var(--ink);
}
.step-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  max-width: 60ch;
}
.pricing-card {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  padding: 32px;
}
.pricing-card-head {
  margin-bottom: 24px;
}
.pricing-card-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.pricing-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.pricing-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.pricing-list li:first-child {
  border-top: none;
}
.pricing-list li span {
  color: var(--muted);
}
.pricing-list li strong {
  color: var(--ink);
  font-size: 15px;
}
.pricing-card-footnote {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
}
.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}
.faq-q {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
}
.faq-q::before {
  content: "Q. ";
  color: var(--brand);
}
.faq-a {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.faq-a a {
  color: var(--brand);
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .step-item {
    gap: 16px;
    padding: 20px 0;
  }
  .step-num {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .pricing-card {
    padding: 22px;
  }
  .pricing-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .feature-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions {
    align-items: center;
  }
  .mypage-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }
  .chat-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chat-sidebar {
    min-height: 200px;
  }
  .chat-content {
    min-height: 400px;
  }
  .messages-container {
    max-height: 300px;
  }
  .application-item,
  .job-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .message-bubble {
    max-width: 85%;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
  .jobs-list {
    grid-template-columns: 1fr;
  }
  .job-detail-grid {
    grid-template-columns: 1fr;
  }
  .job-info-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-card {
    position: sticky;
    top: 20px;
  }
  .auth-card {
    padding: 24px;
  }
  .profile-card,
  .company-info-card,
  .menu-card {
    padding: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .site-nav.is-open {
    max-height: 300px;
  }
  .site-nav a {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a::after {
    display: none;
  }
  .header-avatar {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 6px;
  }
  .mypage-header,
  .company-header {
    gap: 14px;
  }
  .mypage-header h1,
  .company-header h1 {
    font-size: 22px;
  }
  .jobs-header h1,
  .job-detail-header h1 {
    font-size: 26px;
  }
  .auth-main::before {
    border-left-width: 30px;
    border-right-width: 30px;
    border-top-width: 82px;
    right: 6%;
  }
}

/* スマホサイズ(〜480px)向けの追加チューニング。860px側で崩れは防げているが、
   ヒーローの見出しフォントサイズやセクション余白がPC想定の値のままだと
   窮屈に見えるため、この帯だけさらに詰める。 */
@media (max-width: 480px) {
  .wrap {
    width: min(1160px, calc(100% - 32px));
  }
  .hero {
    padding: 40px 0 56px;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
    letter-spacing: -1.5px;
    margin: 14px 0 16px;
  }
  .hero p.lead {
    font-size: 15px;
  }
  .hero-cta {
    margin-top: 22px;
  }
  .hero-photo-card-wrap {
    min-height: 260px;
  }
  .hero-photo-card {
    min-height: 260px;
    padding: 20px;
  }
  .section {
    padding: 52px 0;
  }
  .feature-statement {
    font-size: clamp(22px, 6vw, 28px);
  }
  .cta-box {
    padding: 32px 24px;
  }
  .card {
    padding: 16px;
  }
  .filter-card {
    padding: 16px;
  }
  .jobs-header h1,
  .job-detail-header h1 {
    font-size: 22px;
  }
  .auth-main {
    padding: 24px 16px;
  }
  .auth-card {
    padding: 20px;
  }
  .auth-card h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }
}
