/* ==========================================
   Sagaya 採用ページ
   ========================================== */
:root {
  --bg: #2d1e0f;          /* 背景：濃い茶 */
  --bg-deep: #231708;     /* 帯・フッター */
  --text: #f3e9d8;        /* 本文：生成り */
  --accent: #d9b98a;      /* 見出し：金茶 */
  --line: #f3e9d8;        /* 罫線 */
  --max: 960px;
  --font: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px 80px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; }
.hero img { width: 100%; height: 560px; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(35, 23, 8, .45); }
.hero__text {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 20px;
}
.hero__sub { font-size: 14px; letter-spacing: .2em; margin-bottom: 8px; }
.hero__title { font-size: 28px; font-weight: 600; line-height: 1.6; letter-spacing: .08em; }

/* ---------- イントロ ---------- */
.intro { text-align: center; padding: 56px 0 32px; }
.intro__title { font-size: 18px; font-weight: 600; letter-spacing: .1em; margin-bottom: 20px; color: var(--accent); }

/* ---------- ギャラリー ---------- */
.gallery { display: grid; gap: 4px; margin-bottom: 24px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery--food { grid-template-columns: repeat(3, 1fr); }
.gallery--food li { aspect-ratio: 1 / 1; }
.gallery--interior { grid-template-columns: repeat(3, 1fr); }
.gallery--interior .wide { grid-column: 1 / -1; aspect-ratio: 12 / 5; }
.gallery--interior li:not(.wide) { aspect-ratio: 3 / 4; }

/* ---------- 募集要項 ---------- */
.recruit { padding-top: 56px; }
.recruit__title {
  font-size: 22px; font-weight: 600; color: var(--accent);
  padding-bottom: 12px; border-bottom: 2px solid var(--line);
}
.recruit__title time { font-size: 12px; margin-left: 10px; color: var(--text); font-weight: 400; }

.job { margin-top: 56px; }
.job__title {
  font-size: 20px; font-weight: 600; color: var(--accent);
  padding-bottom: 10px; border-bottom: 2px solid var(--line);
}

/* 条件表（dl を2カラムのグリッドに） */
.spec { display: grid; grid-template-columns: 140px 1fr; }
.spec dt, .spec dd { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; color: var(--accent); }

/* 本文エリア */
.job__body {
    padding-top: 30px;
    padding-right: 15px;
    padding-left: 15px;
    padding-bottom: 30px;
    margin-top: 30px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0;
    background-color: #493422;
    border-radius: 10px;
}
.job__body h4 { font-size: 17px; font-weight: 600; color: var(--accent); margin-bottom: 20px; }
.points { counter-reset: p; }
.points li { counter-increment: p; margin-bottom: 24px; }
.points strong { display: block; font-weight: 600; }
.points strong::before { content: counter(p, decimal-leading-zero) "　"; color: var(--accent); }
.points p { margin-top: 4px; }

.prose p, .message p { margin-bottom: 1.6em; }
.prose { margin-bottom: 20px; }
.message { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--line); }

/* ---------- フッター ---------- */
.footer { background: var(--bg-deep); text-align: center; padding: 24px 20px; }

/* ==========================================
   スマホ（〜768px）
   ========================================== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding: 0 16px 56px; }

  .hero img { height: 240px; }
  .hero__title { font-size: 20px; }

  .intro { padding: 40px 0 24px; text-align: left; }
  .intro br, .prose br, .message br { display: none; } /* PCの改行はスマホでは解除 */
  .intro__title { text-align: center; }

  .gallery--food { grid-template-columns: repeat(2, 1fr); }

  .recruit__title { font-size: 18px; }
  .recruit__title time { display: block; margin: 4px 0 0; }
  .job__title { font-size: 17px; }

  /* 条件表は縦積み */
  .spec { grid-template-columns: 1fr; }
  .spec dt { padding: 12px 0 0; border-bottom: 0; }
  .spec dd { padding: 2px 0 12px; }
  .spec dd br { display: block; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }



/* ---------- メールフォームボタン ---------- */
.btn-area {
    text-align: center;
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 30px;
}

.btn-mail {
  display: inline-block;
  min-width: 280px;
  padding: 18px 40px;
  background: var(--accent);   /* 金茶 */
  color: var(--bg);            /* 濃い茶 */
  border: 2px solid var(--accent);
  border-radius: 0;            /* 四角 */
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .3s, color .3s;
}

/* オンマウス：背景が抜けて、文字が金茶に */
.btn-mail:hover,
.btn-mail:focus-visible {
  background: transparent;
  color: var(--accent);
}

@media (max-width: 768px) {
  .btn-mail { display: block; min-width: 0; }  /* スマホは横幅いっぱい */
}
