/* =========================================================
   style.css — STEP3 完成版
   株式会社佐藤建築事務所 採用LP
   - 全体トーン: Noto Sans JP + 信頼感のある紺アクセント
   - 動き: スライダー無限ループ / ふわっと登場（reduce-motion対応）
   - SP: 写真→本文 / ハンバーガー / CTA の押せる感
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --c-ink: #102a43;
  --c-text: #14304a;
  --c-sub: #46607a;
  --c-line: #d8e1ec;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f7fb;
  --c-accent: #1f4e8c;     /* 「信頼感のある青」 */
  --c-accent-2: #f29c1f;   /* 「活気のオレンジ」（CTA/強調用） */
  --c-placeholder: #d9dde3;
  --c-placeholder-ink: #8a93a3;
  --shadow-card: 0 6px 24px rgba(16, 42, 67, 0.08);
  --shadow-card-hover: 0 14px 36px rgba(16, 42, 67, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1100px;
  --header-h: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Meiryo", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font: inherit; cursor: pointer; }
strong { color: var(--c-accent); font-weight: 700; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 80px 0; }
.section + .section { padding-top: 72px; }
.section__title {
  font-size: 32px;
  font-weight: 900;
  color: var(--c-ink);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  position: relative;
}
.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--c-accent);
  border-radius: 2px;
}
.section__lead {
  text-align: center;
  color: var(--c-sub);
  margin: 20px auto 36px;
  max-width: 960px;
  font-weight: 500;
  line-height: 1.9;
}
.sp-only { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.site-header__logo {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.site-header__logo a { color: inherit; display: block; padding: 6px 4px; }
.site-header__nav ul {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.site-header__nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-header__nav a:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}
.site-header__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  position: relative;
}
.site-header__hamburger span {
  display: block;
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .25s, opacity .15s, top .25s;
}
.site-header__hamburger span:nth-child(1) { top: 14px; }
.site-header__hamburger span:nth-child(2) { top: 21px; }
.site-header__hamburger span:nth-child(3) { top: 28px; }
.site-header.is-menu-open .site-header__hamburger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.site-header.is-menu-open .site-header__hamburger span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .site-header__hamburger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- FV ---------- */
.fv {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1c2b40;
}
.media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.fv__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, #b6c4d6 0%, #d9dde3 35%, #e7ecf3 70%, #f4f6fa 100%);
}
.fv__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 42, 67, 0.55) 0%, rgba(16, 42, 67, 0.30) 50%, rgba(16, 42, 67, 0.65) 100%);
  pointer-events: none;
}
.fv__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  color: #fff;
}
.fv__main {
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}
.fv__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.85;
  max-width: 740px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.fv__cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.fv__cta .btn { min-width: 260px; }

/* ---------- Slider ---------- */
.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--c-bg-soft);
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line);
}
.slider__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: slider-loop 45s linear infinite;
  will-change: transform;
}
.slider:hover .slider__track,
.slider:focus-within .slider__track { animation-play-state: paused; }
@keyframes slider-loop {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(calc(var(--slider-set-w, 2760px) * -1), 0, 0); }
}
.slider__item {
  position: relative;
  flex: 0 0 260px;
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, #c9d3e0 0%, #d9dde3 60%, #eceff4 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  overflow: hidden;
}
.slider__num {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-placeholder-ink);
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.slider__caption {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 4px 10px;
}

/* ---------- About / Closing ---------- */
.about,
.closing { background: var(--c-bg); }
.about__media,
.closing__media {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 28px;
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, #b6becb 0%, #d4dae3 50%, #e8ecf2 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.about__body,
.closing__body { max-width: 720px; margin: 0 auto; }
.about__body p,
.closing__body p { margin-bottom: 1em; font-size: 16px; }
.about__body p:last-child,
.closing__body p:last-child { margin-bottom: 0; }

/* ---------- Welcome ---------- */
.welcome { background: var(--c-bg-soft); }
.welcome__list {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.welcome__list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform .2s, box-shadow .2s;
}
.welcome__list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.welcome__num {
  font-size: 28px;
  font-weight: 900;
  color: var(--c-accent-2);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.welcome__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Job（ジグザグ） ---------- */
.job { background: var(--c-bg); }
.job__block {
  display: flex;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}
.job__block:last-child { margin-bottom: 0; }
.job__media {
  position: relative;
  flex: 1 1 50%;
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, #b6becb 0%, #d4dae3 50%, #e8ecf2 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.job__body { flex: 1 1 50%; }
.job__heading {
  font-size: 22px;
  font-weight: 900;
  color: var(--c-ink);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
  padding-left: 14px;
  border-left: 4px solid var(--c-accent);
}
.job__body p { margin-bottom: 1em; color: var(--c-text); }
.job__body p:last-child { margin-bottom: 0; }
.job__block--reverse { flex-direction: row-reverse; }

/* ---------- 3-col cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.card__icon,
.card__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, #b6becb 0%, #d4dae3 50%, #e8ecf2 100%);
  border-radius: var(--radius-sm);
}
.card__title {
  font-size: clamp(15px, 4.4vw, 18px);
  font-weight: 900;
  color: var(--c-ink);
  text-align: center;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.card__body { font-size: 15px; color: var(--c-text); line-height: 1.8; }
.flow, .members { background: var(--c-bg); }
.charm { background: var(--c-bg-soft); }

/* ---------- Schedule ---------- */
.schedule { background: var(--c-bg-soft); }
.schedule__frame {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.schedule__list { counter-reset: sched; }
.schedule__list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.schedule__list li:last-child { border-bottom: none; }
.schedule__list time {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: 18px;
  color: var(--c-accent);
  flex: 0 0 88px;
  letter-spacing: 0.02em;
}
.schedule__list li span {
  position: relative;
  padding-left: 28px;
}
.schedule__list li span::before {
  counter-increment: sched;
  content: counter(sched);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-accent-2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Requirements ---------- */
.requirements { background: var(--c-bg); }
.requirements__card {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.requirements__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.requirements__row:first-child { padding-top: 0; }
.requirements__row:last-child { border-bottom: none; padding-bottom: 0; }
.requirements__row dt {
  font-weight: 900;
  color: var(--c-ink);
  font-size: 15px;
  letter-spacing: 0.02em;
  padding-left: 12px;
  border-left: 4px solid var(--c-accent);
}
.requirements__row dd p { margin-bottom: 8px; font-size: 15px; line-height: 1.8; }
.requirements__row dd p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  background:
    linear-gradient(135deg, #15355c 0%, #1f4e8c 100%);
  color: #fff;
}
.cta .section__title { color: #fff; }
.cta .section__title::after { background: var(--c-accent-2); }
.cta__lead {
  text-align: center;
  margin: 16px auto 28px;
  font-weight: 500;
}
.cta__buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px 30px;
  font-weight: 900;
  text-align: center;
  min-width: 240px;
  min-height: 64px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.18);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 42, 67, 0.28); }
.btn:active { transform: translateY(0);    box-shadow: 0 4px 12px rgba(16, 42, 67, 0.20); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c-accent);
}
.btn--form { background: var(--c-accent-2); color: #fff; }
.btn--form:hover { filter: brightness(1.05); }
.btn--tel { background: #fff; color: var(--c-ink); border: 2px solid #fff; }
.cta .btn--tel { color: var(--c-accent); }
.btn--submit { background: var(--c-accent); color: #fff; }
.btn__label  { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.btn__tel    { font-size: 22px; font-weight: 900; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.btn__icon   { font-size: 22px; }

/* ---------- Contact Form ---------- */
.contact { background: var(--c-bg-soft); }
.contact__lead {
  text-align: center;
  margin: 16px auto 28px;
  color: var(--c-sub);
  font-weight: 500;
}
.contact__form {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 900;
  color: var(--c-ink);
  margin-bottom: 6px;
  font-size: 15px;
}
.required {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  background: var(--c-accent-2);
  color: #fff;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(31, 78, 140, 0.18);
}
.form-row textarea { resize: vertical; }
.form-row--submit { text-align: center; margin-top: 28px; }
.btn--submit { min-width: 280px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f2238;
  color: #cfd9e7;
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
}

/* ---------- reveal（ふわっと登場） ---------- */
.section,
.job__block,
.card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.section.is-visible,
.job__block.is-visible,
.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Reduced motion 配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider__track { animation: none; }
  .section, .job__block, .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }

  /* Header: ナビをドロワー化 */
  .site-header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
    padding: 8px 0 16px;
  }
  .site-header.is-menu-open .site-header__nav {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity .2s, transform .2s;
  }
  .site-header__nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 4px;
  }
  .site-header__nav li { border-bottom: 1px solid var(--c-line); }
  .site-header__nav a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
  }
  .site-header__hamburger { display: block; }

  /* 必ず「写真→本文」順 */
  .job__block,
  .job__block--reverse { flex-direction: column; }
  .job__body { width: 100%; }
  .job__media { width: 100%; }

  /* 3カラム → 1カラム */
  .cards-3 { grid-template-columns: 1fr; }

  /* 募集要項：2カラム → 1カラム */
  .requirements__row { grid-template-columns: 1fr; gap: 8px; }
  .requirements__row dt { padding-left: 0; border-left: 0; }

  /* FV：スマホでは高さをコンテンツに合わせて確保し、見切れを防ぐ */
  .fv { min-height: 620px; }
  .fv__visual {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
  }
  .fv__copy { padding: 32px 20px; position: relative; }
  .fv__main { font-size: 22px; line-height: 1.45; }
  .fv__sub { font-size: 13px; line-height: 1.75; }
  .fv__cta { margin-top: 20px; gap: 10px; }
  .fv__cta .btn { min-width: 100%; max-width: 320px; }

  /* お問い合わせカード内パディング縮める */
  .contact__form { padding: 22px 18px; }
  .requirements__card { padding: 22px 18px; }
}


/* ---------- Honeypot（spam bot 用隠し項目） ---------- */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media print {
  .site-header, .slider, .fv__cta, .btn { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .job__block, .card { opacity: 1; transform: none; }
}
