/*
Theme Name: DOG GARDEN / MAKE GARDEN Recruit
Theme URI: https://gotozoen5.dig-out.net/
Author: 株式会社後藤造園
Author URI: https://gotozoen5.dig-out.net/
Description: DOG GARDEN / MAKE GARDEN スタッフ採用LP（クライアント確認用 Ver.1）
Version: 1.0.0
Text Domain: dog-make-garden-recruit
*/

/* ========================================
   デザイン変数
======================================== */
:root {
  --deep-green: #173F2A;
  --dark-green: #102E20;
  --ivory: #F4F1E8;
  --warm-white: #FAF8F2;
  --charcoal: #252822;
  --muted-moss: #6E8063;
  --accent: #C3A66B;
  --accent-soft: rgba(195, 166, 107, 0.35);
  --line: rgba(23, 63, 42, 0.16);
  --line-strong: rgba(23, 63, 42, 0.28);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================
   リセット / 基礎
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: clip;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.85;
  letter-spacing: 0.04em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.header-logo {
  width: auto;
  height: auto;
  max-height: 2.05rem;
  max-width: min(46vw, 11.5rem);
  object-fit: contain;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(195, 166, 107, 0.28);
  color: var(--dark-green);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--deep-green);
  color: var(--ivory);
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   タイポグラフィ
======================================== */
.en-label {
  font-family: "Noto Serif JP", serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted-moss);
  font-weight: 500;
}

.serif {
  font-family: "Noto Serif JP", serif;
}

.lead {
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.display {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-size: clamp(1.7rem, 4.2vw, 3.15rem);
}

.heading-balance,
.display,
.lead,
h1,
h2,
h3 {
  text-wrap: balance;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

.copy-pretty,
main p,
main li,
main dd,
main dt,
main label,
main legend {
  text-wrap: pretty;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

.heading-manual {
  text-wrap: pretty;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

.ib {
  display: inline;
}

.no-break {
  white-space: nowrap;
}

.br-pc {
  display: none;
}

.br-sp {
  display: inline;
}

.br-until-lg {
  display: inline;
}

@media (min-width: 768px) {
  .br-pc {
    display: inline;
  }

  .br-sp {
    display: none;
  }

  .keep-line {
    white-space: nowrap;
  }
}

.giant-num {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: rgba(23, 63, 42, 0.08);
  font-size: clamp(5.5rem, 14vw, 11rem);
  pointer-events: none;
  user-select: none;
}

.gold-rule {
  width: 3.5rem;
  height: 1px;
  background: var(--accent);
  border: 0;
}

/* ========================================
   ボタン
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn-arrow::after {
  content: "";
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  box-shadow: 4px -3px 0 -3px currentColor, 4px 3px 0 -3px currentColor;
  transform: translateX(0);
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn-arrow::after,
.btn-arrow:hover::after {
  transform: translateX(4px);
}

.btn-solid {
  background: var(--deep-green);
  color: var(--ivory);
  border-color: var(--deep-green);
}

.btn-solid:hover {
  background: var(--dark-green);
  border-color: var(--dark-green);
}

.btn-ivory {
  background: var(--ivory);
  color: var(--deep-green);
  border-color: var(--ivory);
}

.btn-ivory:hover {
  background: var(--warm-white);
}

.btn-line {
  background: transparent;
  color: var(--deep-green);
  border-color: var(--deep-green);
}

.btn-line:hover {
  background: var(--deep-green);
  color: var(--ivory);
}

.btn-line-ivory {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(244, 241, 232, 0.7);
}

.btn-line-ivory:hover {
  background: var(--ivory);
  color: var(--deep-green);
}

.btn-text {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--deep-green);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding-bottom: 0.35rem;
}

.btn-text:hover {
  color: var(--dark-green);
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(244, 241, 232, 0.22) 0%, rgba(244, 241, 232, 0) 100%);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 241, 232, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-logo {
  filter: drop-shadow(0 1px 10px rgba(244, 241, 232, 0.45));
}

.site-header.is-scrolled .header-logo {
  filter: none;
}

.header-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--deep-green);
}

.header-nav a:hover {
  color: var(--dark-green);
}

.header-nav .nav-apply {
  border: 1px solid var(--deep-green);
  padding: 0.45rem 0.9rem;
}

.header-nav .nav-apply:hover {
  background: var(--deep-green);
  color: var(--ivory);
}

/* ========================================
   01 FIRST VIEW
======================================== */
.fv {
  position: relative;
  min-height: 100svh;
  background: var(--ivory);
  display: flex;
  align-items: flex-end;
}

.fv-photo {
  position: absolute;
  inset: 0;
}

.fv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 48%;
}

.fv-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 241, 232, 0.92) 0%, rgba(244, 241, 232, 0.72) 28%, rgba(244, 241, 232, 0.18) 52%, rgba(244, 241, 232, 0) 68%),
    linear-gradient(180deg, rgba(16, 46, 32, 0.12) 0%, rgba(16, 46, 32, 0) 28%);
  pointer-events: none;
}

.fv-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  padding: calc(var(--header-h) + 3rem) 5vw 5.5rem;
}

.fv-logo {
  width: min(14.5rem, 64%);
  height: auto;
  max-height: 3.8rem;
  object-fit: contain;
}

.fv-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--deep-green);
}

.cover-img,
.fv-photo img,
.final-cta-photo img,
.img-frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.img-frame {
  position: relative;
  overflow: hidden;
  background: #d7d2c4;
  max-width: 100%;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.4s var(--ease);
}

.img-frame:hover img {
  transform: scale(1);
}

/* ========================================
   02 OUR PLACE
======================================== */
.place {
  position: relative;
  background: var(--ivory);
  overflow: hidden;
}

.place-bg {
  position: absolute;
  top: 1.5rem;
  left: 4vw;
  z-index: 0;
}

.place-photo {
  aspect-ratio: 11 / 10;
  min-height: 360px;
}

.place-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
}

/* ========================================
   03 OUR WORK
======================================== */
.work-hook-em {
  display: inline-block;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  color: var(--deep-green);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 92%;
}

.work-photo {
  aspect-ratio: 3 / 4;
  min-height: 28rem;
}

.work-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 40%;
}

/* ========================================
   04 THREE ROLES
======================================== */
.role-num {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.role-item {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

/* ========================================
   05 WHY WORK HERE
======================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
}

.why-item {
  padding: 2rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}

.why-num {
  font-family: "Noto Serif JP", serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--accent);
}

.pool-photo,
.why-visual {
  width: min(100%, 13.75rem);
  aspect-ratio: 4 / 3;
  max-height: 11.5rem;
  filter: saturate(0.78) contrast(0.96);
}

.pool-photo img,
.why-visual img {
  object-position: 50% 46%;
}

/* ========================================
   06 WORK STYLE
======================================== */
.style-split {
  display: grid;
  grid-template-columns: 1fr;
}

.style-full {
  background: var(--deep-green);
  color: var(--ivory);
}

.style-part {
  background: var(--ivory);
  color: var(--charcoal);
}

.style-meta {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0;
}

.style-meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.style-full .style-meta dt {
  color: var(--accent);
}

.style-part .style-meta dt {
  color: var(--muted-moss);
}

.style-meta dd {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

/* ========================================
   07 / 08 募集要項
======================================== */
.spec-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 0.92rem 0 1rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.spec-row dt {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted-moss);
  line-height: 1.7;
  padding-top: 0.15rem;
}

.spec-row dd {
  margin: 0;
  line-height: 1.75;
}

.job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-list li {
  position: relative;
  padding: 0.38rem 0 0.42rem 1.35rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.7;
}

.job-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.job-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
}

.want-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.want-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  padding-left: 1.6rem;
  position: relative;
}

.want-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.55rem;
  height: 1px;
  background: var(--accent);
}

.part-photo {
  aspect-ratio: 4 / 5;
}

.part-photo img {
  object-position: 48% 62%;
}

.about-photo {
  aspect-ratio: 5 / 3;
  min-height: 260px;
}

.about-photo img {
  object-position: 52% 22%;
}

.note {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--muted-moss);
  line-height: 1.75;
  letter-spacing: 0.03em;
}

/* ========================================
   11 SELECTION タイムライン
======================================== */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.timeline-step {
  position: relative;
  padding: 0 0 2.4rem 1.6rem;
  border-left: 2px solid rgba(195, 166, 107, 0.62);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(195, 166, 107, 0.2);
}

.timeline-index {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}

/* ========================================
   12 FINAL CTA
======================================== */
.final-cta {
  position: relative;
  min-height: 88svh;
  color: var(--ivory);
  overflow: hidden;
}

.final-cta-photo {
  position: absolute;
  inset: 0;
}

.final-cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 70%;
}

.final-cta-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 46, 32, 0.5) 0%, rgba(23, 63, 42, 0.82) 46%, rgba(16, 46, 32, 0.9) 100%);
}

/* ========================================
   応募フォーム
======================================== */
.form-section {
  background: var(--ivory);
}

.form-block {
  max-width: 46rem;
}

.form-pair {
  display: grid;
  gap: 2rem;
}

.pt-mark {
  display: none;
}

.form-legend {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--deep-green);
}

.form-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--muted-moss);
}

.req {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-family: "Noto Sans JP", sans-serif;
}

.opt {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted-moss);
  font-family: "Noto Sans JP", sans-serif;
}

.field-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  color: var(--deep-green);
}

.field-input,
.field-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 0.7rem 0;
  color: var(--charcoal);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.06em;
  transition: border-color 0.25s var(--ease);
}

.field-input:focus,
.field-textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field-textarea {
  min-height: 8rem;
  resize: vertical;
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  background: rgba(250, 248, 242, 0.7);
}

.field-textarea:focus {
  border-color: var(--accent);
}

.field-error {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #8a3a2a;
}

.choice-list {
  display: grid;
  gap: 0.65rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-ui {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.28rem;
  flex-shrink: 0;
  border: 1px solid var(--deep-green);
  display: grid;
  place-items: center;
  background: transparent;
}

.choice input[type="radio"] + .choice-ui {
  border-radius: 50%;
}

.choice input:checked + .choice-ui {
  background: var(--deep-green);
  box-shadow: inset 0 0 0 3px var(--ivory);
}

.choice input:focus-visible + .choice-ui {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-alert {
  border: 1px solid rgba(138, 58, 42, 0.35);
  background: rgba(138, 58, 42, 0.06);
  color: #6f2e22;
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}

.success-panel {
  text-align: center;
  padding: 4.5rem 1rem 5.5rem;
}

.dmg-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.form-submit {
  width: 100%;
  cursor: pointer;
}

.form-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background: var(--dark-green);
  color: var(--ivory);
}

.logo-on-dark {
  filter: brightness(0) invert(94%) sepia(8%) saturate(220%) hue-rotate(8deg);
}

.footer-logo {
  width: min(13rem, 58vw);
  height: auto;
  max-height: 3.4rem;
  object-fit: contain;
}

/* ========================================
   モバイル固定CTA
======================================== */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(244, 241, 232, 0.96);
  box-shadow: 0 -1px 0 var(--line);
}

.sticky-cta.is-visible {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

body.has-sticky-cta {
  padding-bottom: 5.5rem;
}

.sticky-cta .btn {
  min-height: 2.85rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

/* ========================================
   レスポンシブ
======================================== */
@media (min-width: 640px) {
  .header-logo {
    max-height: 2.25rem;
    max-width: 12.75rem;
  }

  .spec-row {
    grid-template-columns: 10.5rem minmax(0, 1fr);
    gap: 1.4rem 1.75rem;
    align-items: start;
  }

  .spec-row dt {
    padding-top: 0.2rem;
  }
}

@media (min-width: 768px) {
  :root {
    --header-h: 5rem;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-item {
    padding: 2.2rem 1.6rem 2.6rem;
  }

  .why-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .fv-copy {
    padding-left: 6vw;
    padding-bottom: 6.5rem;
  }
}

@media (max-width: 1023px) {
  .why-shell {
    display: flex;
    flex-direction: column;
  }

  .why-lead {
    display: contents;
  }

  .why-lead-copy {
    order: 1;
  }

  .why-grid {
    order: 2;
  }

  .why-visual {
    order: 3;
    margin-top: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .ib {
    display: inline-block;
  }

  .br-until-lg {
    display: none;
  }

  .copy-measure,
  .place-copy .space-y-7,
  .work-copy .space-y-7,
  .ft-intro .space-y-7,
  .pt-main .space-y-7,
  .about-copy .space-y-7,
  .final-cta-copy .space-y-6,
  .style-intro p,
  .want-intro > p {
    max-width: clamp(32rem, 38vw, 42rem);
    line-height: 1.95;
  }

  .fv-copy {
    max-width: clamp(34rem, 40vw, 44rem);
    padding-top: calc(var(--header-h) + 3.25rem);
    padding-left: 6.5vw;
    padding-bottom: 7rem;
  }

  .fv-copy .copy-pretty {
    max-width: clamp(32rem, 36vw, 40rem);
  }

  .fv-photo img {
    object-position: 74% 46%;
  }

  /* --- 02 OUR PLACE --- */
  .place {
    padding-left: 0;
    padding-right: 0;
  }

  .place-layout {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr) !important;
    align-items: start;
    column-gap: clamp(40px, 4.5vw, 64px);
    row-gap: 4.5rem;
    max-width: none !important;
    width: 100%;
  }

  #our-place .place-copy {
    grid-column: 1 !important;
    max-width: none;
    padding: 3.5rem 0 2rem clamp(2.5rem, 6vw, 6.5rem);
  }

  #our-place .place-photo {
    grid-column: 2 !important;
  }

  .place-copy .space-y-7 {
    max-width: clamp(32rem, 33vw, 36rem);
    line-height: 1.95;
  }

  .place-photo {
    aspect-ratio: 4 / 3;
    width: calc(100% + min(4vw, 2.75rem));
    min-height: 0;
    height: auto;
    margin-top: 6.25rem;
    max-width: none;
    justify-self: stretch;
  }

  .place-photo img {
    object-position: 46% 32%;
  }

  /* --- 03 OUR WORK --- */
  .work-layout {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 53fr) !important;
    align-items: start;
    gap: 3rem 6vw;
    max-width: 1520px;
    margin-inline: auto;
  }

  #our-work .work-photo {
    grid-column: 1 !important;
    aspect-ratio: 4 / 5;
    min-height: 0;
    margin-top: 4.25rem;
  }

  #our-work .work-copy {
    grid-column: 2 !important;
  }

  #our-work .work-photo img {
    object-position: 46% 48%;
  }

  .work-copy {
    padding-top: 0.5rem;
  }

  .work-copy .keep-line {
    white-space: normal;
  }

  #our-work .work-copy .lead {
    max-width: 18.5em;
    font-size: clamp(1.7rem, 2.5vw, 2.35rem);
    line-height: 1.55;
    letter-spacing: 0.06em;
  }

  #our-work .work-hook-em {
    font-size: clamp(1.9rem, 3.55vw, 3.25rem);
    line-height: 1.28;
    letter-spacing: 0.08em;
    vertical-align: baseline;
    margin-right: 0.12em;
  }

  /* --- 04 THREE ROLES --- */
  .roles-shell {
    max-width: 1320px;
  }

  .roles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 3.5rem;
  }

  .role-item {
    border-top: 1px solid var(--line-strong);
    padding-top: 2.25rem;
    max-width: 22rem;
  }

  .role-num {
    font-size: clamp(4.2rem, 6vw, 6rem);
    color: var(--accent);
  }

  /* --- 05 WHY WORK HERE --- */
  .why-shell {
    position: relative;
    max-width: 1280px;
    padding-right: calc(clamp(360px, 28vw, 420px) + clamp(3rem, 6vw, 6rem));
    min-height: calc(2.75rem + clamp(360px, 28vw, 420px) * 4 / 3);
  }

  .why-lead {
    display: contents;
  }

  .why-lead .lead {
    margin-bottom: 0;
    max-width: 12.5em;
  }

  .why-visual {
    position: absolute;
    top: 2.75rem;
    right: 0;
    width: clamp(360px, 28vw, 420px);
    max-height: none;
    aspect-ratio: 3 / 4;
    margin: 0;
    filter: saturate(0.82) contrast(0.97);
  }

  .why-visual img {
    object-position: 50% 50%;
  }

  .why-grid {
    margin-top: 2.25rem;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line-strong);
  }

  .why-item {
    padding: 2.6rem 2.15rem 2.85rem;
  }

  .why-item p {
    letter-spacing: 0.03em;
  }

  .why-item:nth-child(odd) {
    padding-right: 2.4rem;
    border-right: 1px solid var(--line);
  }

  .why-item:nth-child(even) {
    padding-left: 2.4rem;
  }

  .why-item:nth-child(1),
  .why-item:nth-child(2) {
    padding-bottom: 2.85rem;
  }

  .why-item:nth-child(3),
  .why-item:nth-child(4) {
    padding-top: 2.6rem;
    min-height: 0;
  }

  /* --- 06 WORK STYLE --- */
  .style-intro {
    max-width: 1180px;
  }

  .style-split {
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  }

  .style-full {
    padding-left: clamp(3.5rem, 7vw, 8rem);
    padding-right: clamp(2rem, 4vw, 4.5rem);
  }

  .style-part {
    padding-left: clamp(2.5rem, 4vw, 4.5rem);
    padding-right: clamp(2.5rem, 5vw, 5.5rem);
  }

  .style-full-inner,
  .style-part-inner {
    margin: 0;
    max-width: 34rem;
  }

  .style-meta dd {
    font-size: clamp(1.55rem, 2vw, 2.05rem);
    letter-spacing: 0.06em;
  }

  /* --- 07 FULL-TIME --- */
  .ft-layout {
    display: grid;
    grid-template-columns: minmax(0, 37fr) minmax(0, 59fr) !important;
    gap: 4rem 6%;
    max-width: 1360px !important;
    align-items: start;
  }

  .ft-intro {
    position: sticky;
    top: 120px;
    align-self: start;
  }

  .ft-intro .job-list {
    max-width: 28rem;
  }

  .ft-spec {
    padding-left: 2.25rem;
    border-left: 1px solid rgba(23, 63, 42, 0.28);
  }

  #full-time .spec-row {
    padding-top: 0.86rem;
    padding-bottom: 0.93rem;
  }

  /* --- 08 PART TIME --- */
  .pt-layout {
    display: grid;
    grid-template-columns: minmax(0, 48fr) minmax(0, 46fr) !important;
    grid-template-areas: "spec main";
    gap: 3rem 8%;
    max-width: 1280px !important;
    align-items: start;
  }

  .pt-main,
  .pt-spec {
    grid-column: auto;
    grid-row: auto;
  }

  .pt-main {
    grid-area: main;
    position: relative;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line-strong);
  }

  .pt-spec {
    grid-area: spec;
    padding-top: 1.75rem;
    border-top: 1px solid var(--accent);
  }

  .pt-mark {
    display: block;
    position: absolute;
    top: -4.75rem;
    right: 0;
    margin: 0;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(2.15rem, 4.1vw, 3.55rem);
    line-height: 0.9;
    letter-spacing: 0.22em;
    color: rgba(23, 63, 42, 0.038);
    font-weight: 600;
    pointer-events: none;
    user-select: none;
    z-index: 0;
  }

  .pt-main .en-label,
  .pt-main .lead,
  .pt-main .space-y-7,
  .pt-main h3,
  .pt-main .btn {
    position: relative;
    z-index: 1;
  }

  /* --- 09 WHO WE WANT --- */
  .want-layout {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 50fr) !important;
    gap: 3rem 8%;
    max-width: 1180px !important;
    align-items: start;
  }

  .want-intro .lead {
    margin-bottom: 1.75rem;
  }

  /* --- 10 ABOUT --- */
  .about-layout {
    display: grid;
    grid-template-columns: 1fr !important;
    max-width: 1520px !important;
    position: relative;
  }

  #about .about-photo {
    grid-row: 1;
    grid-column: 1 / -1 !important;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    max-height: none;
    width: 100%;
  }

  .about-photo img {
    object-position: 62% 18%;
  }

  #about .about-copy {
    grid-row: 1;
    grid-column: 1 / -1 !important;
    align-self: end;
    justify-self: start;
    z-index: 1;
    width: min(40rem, 48%);
    margin: 0 0 3.25rem clamp(2rem, 5vw, 5rem);
    padding: 2.25rem 2.15rem 2.1rem;
    background: rgba(250, 248, 242, 0.82);
  }

  /* --- 11 SELECTION --- */
  .selection-shell {
    max-width: 1280px;
  }

  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 2px solid rgba(195, 166, 107, 0.96);
  }

  .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 0;
    padding: 1.6rem 1.6rem 0 0;
  }

  .timeline-step::before {
    left: 0;
    top: -5px;
    width: 9px;
    height: 9px;
  }

  .timeline-index {
    font-size: clamp(1.66rem, 2.46vw, 2.25rem);
    letter-spacing: 0.16em;
    margin-bottom: 0.9rem;
    min-height: 1.2em;
  }

  #selection .timeline-step h3 {
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    min-height: 1.55em;
  }

  #selection .timeline-step p:last-child {
    margin-top: 0;
  }

  #selection {
    padding-top: 6.5rem;
    padding-bottom: 5.5rem;
  }

  #selection .lead {
    margin-bottom: 2.75rem;
  }

  #selection .mt-14 {
    margin-top: 2.5rem;
  }

  /* --- 12 FINAL CTA --- */
  .final-cta {
    min-height: 86svh;
    align-items: flex-end;
  }

  .final-cta-photo img {
    object-position: 86% 44%;
  }

  .final-cta-overlay {
    background:
      linear-gradient(90deg, rgba(16, 46, 32, 0.88) 0%, rgba(16, 46, 32, 0.55) 38%, rgba(16, 46, 32, 0.18) 68%, rgba(16, 46, 32, 0.28) 100%),
      linear-gradient(180deg, rgba(16, 46, 32, 0.12) 0%, rgba(16, 46, 32, 0.55) 100%);
  }

  .final-cta-inner {
    max-width: none;
    padding: 6.5rem 0 6.5rem clamp(3rem, 8vw, 8.5rem);
  }

  .final-cta-copy {
    max-width: clamp(34rem, 40vw, 44rem);
  }

  .site-footer .footer-logo {
    width: clamp(220px, 17vw, 280px);
    height: auto;
    max-height: none;
    margin-bottom: 1.75rem !important;
  }

  .form-block {
    max-width: 50rem;
  }

  .header-logo {
    width: clamp(156px, 12vw, 180px);
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
  }

  .form-pair {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2.5rem;
    align-items: start;
  }

  #dmg-recruit-form.space-y-12 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 3.5rem !important;
  }

  #application-form.form-section {
    padding-bottom: 7.5rem !important;
  }

  #dmg-recruit-form.space-y-12 > .grid + .grid {
    margin-top: 1.5rem !important;
  }

  #dmg-recruit-form.space-y-12 > :not([hidden]) ~ div:not(.grid):not(.form-pair) + .grid {
    margin-top: 1.5rem !important;
  }

  #dmg-recruit-form.space-y-12 > .form-pair + div {
    margin-top: 3.15rem !important;
  }

  #dmg-recruit-form.space-y-12 > :not([hidden]) ~ p.form-legend {
    margin-top: 4.5rem !important;
  }

  #dmg-recruit-form.space-y-12 > #fulltime-fields,
  #dmg-recruit-form.space-y-12 > #parttime-fields {
    margin-top: 5rem !important;
  }

  #dmg-recruit-form .field-label {
    margin-bottom: 0;
    min-height: 0;
  }

  #dmg-recruit-form .mt-4 {
    margin-top: 1.25rem !important;
  }

  #dmg-recruit-form .form-pair .mt-4,
  #dmg-recruit-form #email {
    margin-top: 0.15rem !important;
  }

  #dmg-recruit-form .field-input {
    padding-top: 0.15rem;
    padding-bottom: 0.08rem;
    line-height: 1.3;
    min-height: 0;
    height: auto;
  }

  #dmg-recruit-form fieldset > p {
    margin-top: 0.75rem !important;
    margin-bottom: 1.15rem !important;
  }

  #dmg-recruit-form .mb-10 {
    margin-bottom: 2.05rem !important;
  }

  #dmg-recruit-form .mb-8 {
    margin-bottom: 1.65rem !important;
  }

  #dmg-recruit-form .form-pair .field-label {
    min-height: 0;
    margin-bottom: 0;
  }

  #dmg-recruit-form .form-pair .flex.items-end {
    align-items: flex-end;
    gap: 0.4rem;
    max-width: 10.5rem;
  }

  #dmg-recruit-form .form-pair .flex.items-end .pb-2 {
    padding-bottom: 0.12rem;
    line-height: 1;
  }

  #dmg-recruit-form .form-pair .note {
    margin-top: 1rem !important;
  }

  #dmg-recruit-form .choice {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }

  #dmg-recruit-form .choice-list:has([name="employment_type"]),
  #dmg-recruit-form .choice-list:has([name="customer_service_exp"]),
  #dmg-recruit-form .choice-list:has([name="drivers_license"]),
  #dmg-recruit-form .choice-list:has([name="work_days"]) {
    grid-template-columns: 1fr 1fr;
  }

  #dmg-recruit-form .choice-list:has([name="weekend_work"]),
  #dmg-recruit-form .choice-list:has([name="large_dog"]),
  #dmg-recruit-form .choice-list:has([name="pc_skill"]),
  #dmg-recruit-form .choice-list:has([name="work_hours"]) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .fv-copy {
    padding-left: 8vw;
  }

  .place-layout {
    grid-template-columns: minmax(0, 41fr) minmax(0, 57fr) !important;
    column-gap: clamp(48px, 5vw, 80px);
  }

  .place-copy {
    padding-top: 4.5rem;
  }

  .place-photo {
    width: calc(100% + min(2.5vw, 2rem));
    margin-top: 6.75rem;
  }

  .work-photo {
    margin-top: 5rem;
  }

  .work-copy .keep-line {
    white-space: nowrap;
  }
}

@media (min-width: 1536px) {
  .fv-copy {
    padding-left: 10vw;
  }

  .place-photo {
    width: calc(100% + min(2vw, 1.75rem));
    min-height: 0;
    max-width: none;
  }

  .about-photo {
    min-height: 460px;
  }
}

/* スマホFV / HEADER：写真の分断を解消（767px以下のみ。1024+は変更しない） */
@media (max-width: 767px) {
  .site-header {
    background: var(--ivory);
    box-shadow: 0 1px 0 rgba(23, 63, 42, 0.08);
  }

  .site-header.is-scrolled {
    background: var(--ivory);
    backdrop-filter: none;
  }

  .header-logo {
    width: clamp(80px, 22vw, 95px);
    height: auto;
    max-width: none;
    max-height: none;
    filter: none;
  }

  .site-header.is-scrolled .header-logo {
    filter: none;
  }

  .header-nav {
    flex-shrink: 0;
    gap: 0.7rem;
  }

  .header-nav a {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .header-nav .nav-apply {
    padding: 0.35rem 0.6rem;
  }

  .fv {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h);
  }

  .fv-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 63svh;
    min-height: 20rem;
    max-height: none;
  }

  .fv-photo img {
    object-fit: cover;
    object-position: 68% 58%;
  }

  .fv-overlay {
    background: linear-gradient(
      180deg,
      rgba(16, 46, 32, 0) 38%,
      rgba(16, 46, 32, 0.14) 64%,
      rgba(16, 46, 32, 0.34) 100%
    );
  }

  .fv-logo {
    display: none;
  }

  .fv-copy {
    --fv-hero-copy-h: 10.75rem;
    position: relative;
    z-index: 2;
    max-width: none;
    margin-top: calc(-1 * var(--fv-hero-copy-h));
    padding: 0 1.4rem 2.75rem;
    background-color: transparent;
    background-image: linear-gradient(var(--ivory), var(--ivory));
    background-repeat: no-repeat;
    background-size: 100% calc(100% - var(--fv-hero-copy-h));
    background-position: 0 var(--fv-hero-copy-h);
  }

  .fv-copy .fv-kicker {
    margin-bottom: 0.65rem;
    color: rgba(244, 241, 232, 0.94);
    text-shadow: 0 1px 8px rgba(16, 46, 32, 0.32);
  }

  .fv-copy .display {
    margin-bottom: 1.75rem;
    color: var(--ivory);
    text-shadow: 0 1px 12px rgba(16, 46, 32, 0.36);
  }

  .fv-copy .copy-pretty {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--charcoal);
    text-shadow: none;
  }

  .final-cta {
    min-height: 92svh;
  }

  /* --- 03 OUR WORK：見出し → PHOTO-C → 本文（PHOTO-B連続を解消） --- */
  #our-work .work-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  #our-work .work-copy {
    display: contents;
    opacity: 1 !important;
    transform: none !important;
  }

  #our-work .work-copy .en-label {
    order: 1;
  }

  #our-work .work-copy .lead {
    order: 2;
    margin-bottom: 2.5rem;
  }

  #our-work .work-photo {
    order: 3;
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    margin-top: 0;
    margin-bottom: 3rem;
  }

  #our-work .work-copy .space-y-7 {
    order: 4;
  }

  /* --- 下部固定CTAを削除（ヘッダー「応募する」を唯一の固定CTAに） --- */
  .sticky-cta,
  .sticky-cta.is-visible {
    display: none !important;
  }

  body.has-sticky-cta {
    padding-bottom: 0;
  }

  /* --- 05 WHY WORK HERE：見出し → PHOTO-D → 01〜04 --- */
  #why-work-here .why-lead-copy {
    order: 1;
  }

  #why-work-here .why-visual {
    order: 2;
    width: 74%;
    max-width: 292px;
    max-height: none;
    aspect-ratio: 3 / 4;
    margin-top: 2.125rem;
    margin-inline: auto;
    margin-bottom: 0;
    filter: saturate(0.82) contrast(0.97);
  }

  #why-work-here .why-visual img {
    object-fit: cover;
    object-position: 50% 42%;
  }

  #why-work-here .why-grid {
    order: 3;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 2.75rem;
    border-top: 1px solid var(--line-strong);
  }

  #why-work-here .why-item {
    padding: 3.25rem 0;
    border-right: 0;
  }

  #why-work-here .why-item:first-child {
    padding-top: 0.15rem;
  }

  /* --- APPLICATION FORM：iOS Safariの巨大空白を解消 ---
     原因: height:44px の input 上部へ background 下線を描き、
     padding-bottom:1.6rem でライン下に無地空間ができていた。
     → border-bottom に戻し、44pxは入力ボックス全体のタップ高として確保。 */
  #dmg-recruit-form.space-y-12 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 3rem;
  }

  /* 大項目タイトル → フィールド群：20〜24px */
  #dmg-recruit-form.space-y-12 > .grid + .grid,
  #dmg-recruit-form.space-y-12 > div:not(.grid):not(.form-pair) + .grid {
    margin-top: 1.375rem;
  }

  /* フィールド群 → 次の大項目：48〜56px */
  #dmg-recruit-form.space-y-12 > fieldset + .grid,
  #dmg-recruit-form.space-y-12 > .grid + div:not(.grid),
  #dmg-recruit-form.space-y-12 > .grid + .form-pair,
  #dmg-recruit-form.space-y-12 > .form-pair + div,
  #dmg-recruit-form.space-y-12 > #fulltime-fields,
  #dmg-recruit-form.space-y-12 > #parttime-fields,
  #dmg-recruit-form.space-y-12 > p.form-legend {
    margin-top: 3.25rem;
  }

  #dmg-recruit-form.space-y-12 > p.form-legend + div {
    margin-top: 1.375rem;
  }

  #dmg-recruit-form .grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    align-content: start;
  }

  #dmg-recruit-form .grid.gap-8 {
    gap: 0;
    row-gap: 2rem;
    column-gap: 0;
  }

  #dmg-recruit-form .grid > div,
  #dmg-recruit-form .form-pair > div {
    height: auto;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  #dmg-recruit-form .field-label {
    display: block;
    margin-top: 0;
    margin-bottom: 0.625rem;
    line-height: 1.3;
    min-height: 0;
    height: auto;
  }

  #dmg-recruit-form .form-pair {
    gap: 2.5rem;
    height: auto;
    min-height: 0;
  }

  #dmg-recruit-form .form-pair .field-label,
  #dmg-recruit-form label.field-label:has(.form-legend) {
    margin-bottom: 0;
  }

  #dmg-recruit-form .mt-4 {
    margin-top: 0.75rem;
  }

  #dmg-recruit-form .form-pair .flex.items-end {
    display: grid;
    grid-template-columns: minmax(0, 180px) auto;
    align-items: end;
    gap: 8px;
    max-width: 13.5rem;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  #dmg-recruit-form .form-pair .flex.items-end .field-input {
    width: 100%;
  }

  #dmg-recruit-form .form-pair .flex.items-end .pb-2 {
    padding-top: 0;
    padding-bottom: 0.7rem;
    line-height: 1.2;
  }

  #dmg-recruit-form .form-pair .note,
  #dmg-recruit-form .note.mt-3 {
    margin-top: 0.8rem;
  }

  #dmg-recruit-form .field-input,
  #dmg-recruit-form select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 44px;
    height: auto;
    max-height: none;
    font-size: 16px;
    line-height: 1.25;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line-strong);
    background: transparent;
    background-image: none;
    -webkit-appearance: none;
    appearance: none;
  }

  #dmg-recruit-form .field-input.mt-4,
  #dmg-recruit-form .mt-4 {
    margin-top: 0.75rem;
  }

  #dmg-recruit-form .field-input:focus,
  #dmg-recruit-form select:focus {
    outline: none;
    border-bottom-color: var(--accent);
    background-image: none;
  }

  #dmg-recruit-form .field-textarea {
    min-height: 8rem;
    height: auto;
    font-size: 16px;
    padding: 0.9rem 1rem;
    background-image: none;
    border: 1px solid var(--line);
    -webkit-appearance: none;
    appearance: none;
  }

  #dmg-recruit-form .choice {
    min-height: 44px;
  }

  .site-footer .footer-logo {
    width: 150px;
    max-width: 155px;
    height: auto;
    max-height: none;
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 389px) {
  .fv-photo {
    height: 60svh;
  }

  .fv-copy {
    --fv-hero-copy-h: 10.15rem;
  }

  .display {
    font-size: 1.55rem;
  }

  .header-logo {
    width: clamp(80px, 23vw, 90px);
    max-width: none;
  }

  .sticky-cta .btn {
    letter-spacing: 0.02em;
    font-size: 0.72rem;
  }
}

@media (max-width: 374px) {
  .fv-copy {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .btn {
    letter-spacing: 0.08em;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}

/* 管理バー（モバイル） */
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* ========================================
   prefers-reduced-motion
======================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .img-frame img,
  [data-aos] {
    transform: none !important;
    opacity: 1 !important;
  }
}
