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

:root {
  --green-dark: #294e00;
  --green-main: #448300;
  --green-light: #84bd46;
  --green-bg: #f7ffef;
  --green-msg-bg: rgba(100, 173, 21, 0.15);
  --gradient-green: linear-gradient(131deg, #84bd46 20.66%, #448300 79.34%);
}

.sp-br { display: none; }

html {
  overflow-x: hidden;
}
body {
  font-family: 'Noto Serif JP', serif;
  color: var(--green-dark);
  overflow-x: hidden;
  background: var(--green-bg);
  font-feature-settings: "palt"; /* Figma 同様の約物詰めを適用 */
}
body.recruit-body { background: #f5f5f5; }

a { text-decoration: none; color: inherit; }

/* 緑のアクセントライン */
.accent-line {
  position: absolute;
  width: 4px;
  background: #77b138;
  z-index: 50;
  pointer-events: none;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.accent-line.is-visible {
  transform: scaleY(1);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
}

.gradient-text {
  background: linear-gradient(169deg, #84bd46 20.66%, #448300 79.34%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4.5vw;
  background: #fff;
  box-shadow: 0 0.35vw 0.28vw rgba(0,0,0,0.15);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  margin-left: 4.3vw;
  height: 3.2vw;
}

.header-logo img {
  height: 100%;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2.08vw;
  font-size: 0.972vw;
  font-weight: 500;
  color: #787878;
}

.header-nav a:not(.header-entry):hover { color: var(--green-main); }

/* 無効化されたナビゲーション（ページ未実装） */
.header-nav .nav-disabled,
.mobile-menu .nav-disabled {
  color: #c0c0c0;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
  text-decoration: none;
}
.mobile-menu .nav-disabled {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 18px;
}

.header-entry {
  background: var(--green-main);
  color: #fff;
  font-size: 1.111vw;
  font-weight: 500;
  padding: 0.6vw 3.5vw 0.8vw 2.5vw;
  border-radius: 1.04vw 0 0 1.04vw;
  margin-left: 1vw;
  display: flex;
  align-items: center;
  gap: 0.5vw;
  background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 100% 0;
  transition: box-shadow 0.3s ease, background-position 0.6s ease;
}

.header-entry:hover {
  color: #fff;
  box-shadow: 0 4px 15px rgba(68, 131, 0, 0.4);
  background-position: -100% 0;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 30px; height: 22px;
  position: relative; padding: 0;
  flex-shrink: 0; margin-left: auto;
}
.hamburger span {
  display: block; width: 100%; height: 3px;
  background: var(--green-dark); border-radius: 2px;
  position: absolute; left: 0;
  transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.mobile-menu {
  display: none;
  position: fixed; top: 66px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  z-index: 99;
  flex-direction: column; align-items: center;
  padding: 30px 20px;
  gap: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--green-dark);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--green-main); }

/* モバイルメニュー：アコーディオン型ドロップダウン */
.mobile-menu-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--green-dark);
  cursor: pointer;
}
.mobile-menu-trigger .arrow {
  display: inline-block;
  font-size: 12px;
  transition: transform 0.3s ease;
}
.mobile-menu-group.open .mobile-menu-trigger .arrow {
  transform: rotate(180deg);
}
.mobile-menu-submenu {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: max-height 0.3s ease, gap 0.3s ease, margin-top 0.3s ease;
}
.mobile-menu-group.open .mobile-menu-submenu {
  max-height: 300px;
  gap: 16px;
  margin-top: 16px;
}
.mobile-menu-submenu a {
  font-size: 16px;
  color: var(--green-main);
}

.mobile-entry {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-main); color: #fff !important;
  padding: 12px 40px;
  border-radius: 12px;
  font-size: 16px !important;
  margin-top: 5px;
}

/* ===== KV (Key Visual) ===== */
/* Figma: 1920x883 = 45.99vw */
.kv {
  position: relative;
  width: 100%;
  height: 45.99vw; /* 883/1920 */
  margin-top: 4.5vw;
  padding-top: 0;
  overflow: hidden;
}

.kv-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kv-slides-wrap {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  will-change: transform;
}

.kv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(68, 131, 0, 0.1);
}

.kv-catch {
  position: absolute;
  left: 13vw;
  bottom: calc(25vh - 90px);
  font-size: clamp(38px, 3.646vw, 70px); /* 70/1920 */
  font-weight: 500; /* Medium */
  color: #fff;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
  line-height: normal;
  white-space: nowrap;
}

.kv-sub {
  display: none; /* サブコピー削除済み */
  position: absolute;
  left: calc(50% - 36.35vw);
  bottom: 10vh;
  font-size: 1.667vw;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 0.28vw rgba(0,0,0,0.5);
  line-height: 1.6;
  width: 30.07vw;
}

/* ===== RECRUITMENT BANNER ===== */
.recruit-banner-wrap {
  position: relative;
  height: 0;
  z-index: 10;
}

.recruit-banner {
  position: absolute;
  right: 0;
  top: -4.5vw;
  width: 30vw;
  height: 8.26vw;
  background: #fff;
  border: 0.347vw solid var(--green-light);
  border-right: none;
  border-radius: 1.04vw 0 0 1.04vw;
  box-shadow: 0 0 0.28vw rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.recruit-banner-title {
  font-size: 1.875vw;
  font-weight: 600;
}

.recruit-banner-big {
  font-size: 4.028vw;
  font-weight: 600;
  line-height: 1;
}

/* ===== MESSAGE SECTION ===== */
.message {
  background: var(--green-msg-bg);
  padding: 6.35vw 13.02vw;
  margin-top: 0;
  display: flex;
  gap: 4vw;
}

.message-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.875vw;
  font-size: 1.25vw;
  font-weight: 600;
  line-height: 1.8;
}

.message-images {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 3.33vw;
}

.message-img-placeholder {
  background: #d9d9d9;
  border-radius: 0.5vw;
  overflow: hidden;
  position: relative;
}
.message-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(132, 189, 70, 0.04);
  pointer-events: none;
}
.message-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Figma 82:451 DSC06914 4: 421.35×281.45 at (0, -33.89) in 421.16×213 */
.message-img-1 img { object-position: center 49.6%; }

/* Figma 82:451 DSC06895 3: 397.13×265.27 at (-4.98, -24.9) in 386.32×214.86 */
.message-img-2 img { object-position: center 56.1%; }

.message-img-1 {
  width: 31.51vw;
  height: 13.75vw;
}

.message-img-2 {
  width: 28.28vw;
  height: 13.91vw;
  align-self: flex-end;
}

/* ===== "THAT'S WHY ABIES" + WORKING SECTION ===== */
.working-section {
  position: relative;
  overflow: visible;
}

/* Preserved existing hero (green) section styles */
.sec-hero {
  position: relative;
  width: 100%;
  height: 45.05vw;
  background: linear-gradient(131deg, var(--green-light) 20.66%, var(--green-main) 79.34%);
  color: #fff;
  overflow: visible;
}

.sec-hero-watermark {
  position: absolute;
  top: -5.05vw;
  left: -0.6vw;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 12.22vw;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  width: 103.4vw;
}

.sec-hero-content {
  position: absolute;
  z-index: 2;
  left: 17.36vw;
  top: 9.5vw;
}

.sec-hero-title {
  font-size: 2.778vw;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0.52vw;
}

.sec-hero-subtitle {
  font-size: 1.667vw;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 3.13vw;
}

.point {
  display: flex;
  align-items: flex-start;
  gap: 0vw;
  margin-bottom: 2.08vw;
}

.point-number {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 6.667vw;
  line-height: 1;
  flex-shrink: 0;
  width: 3.65vw;
  text-align: center;
  margin-top: -1.5vw;
}

.point-body {
  padding-top: 0.8vw;
  padding-left: 0.5vw;
  max-width: 39.17vw;
}

.point-heading {
  font-size: 1.667vw;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0;
}

.point-text {
  font-size: 1.111vw;
  font-weight: 500;
  line-height: 1.88;
}

.sec-hero-image-area {
  position: absolute;
  left: 38vw;
  top: 14.24vw;
  width: 66.94vw;
  height: 36.04vw;
  z-index: 1;
}

.sec-hero-image-area .clip-shape,
.sec-exp-image-area .clip-shape {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.sec-hero-image-area .clip-shape {
  clip-path: url(#clip-right);
}

.sec-hero-image-area img,
.sec-exp-image-area img {
  position: absolute;
  max-width: none;
}

/* Figma DSC07040 3: heavily zoomed image (180% width) at (-775, -414) in 1285x692 container */
.sec-hero-image-area img {
  width: 180.34%;
  height: auto;
  left: -50%; /* 右に少しシフト */
  top: -59.87%;
}

/* Figma DSC06922-2 2: phone-talking man (new image) */
.sec-exp-image-area img {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: cover;
  object-position: 50% 40%;
}

/* Experience sub-section */
.sec-experience {
  position: relative;
  width: 100%;
  background: #fff;
  padding-top: 10.99vw;
  padding-bottom: 3vw;
}

.sec-exp-image-area {
  position: absolute;
  left: -8vw;
  top: 12.66vw;
  width: 66.94vw;
  height: 36.04vw;
  z-index: 1;
}

.sec-exp-image-area .clip-shape {
  clip-path: url(#clip-left);
}

.sec-exp-content {
  position: relative;
  z-index: 2;
  margin-left: 51.53vw;
  width: 46.6vw;
}

.sec-exp-title {
  font-size: 2.778vw;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0.52vw;
}

.sec-exp-subtitle {
  font-size: 1.667vw;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 2.6vw;
}

.sec-experience .point-number { color: var(--green-dark); }
.sec-experience .point { margin-bottom: 1.2vw; }
.sec-experience .point-body {
  max-width: 37.01vw;
  padding-left: 1.5vw;
}

.cta-wrapper {
  margin-top: 3.5vw;
  margin-left: 11.06vw;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--green-main);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.667vw;
  white-space: nowrap;
  padding-left: 3.4vw;
  height: 6.18vw;
  width: 37.43vw;
  border: none;
  border-radius: 1.04vw 0 0 1.04vw;
  cursor: pointer;
  box-shadow: 0 0 0.278vw rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: opacity 0.3s;
}

.cta-button:hover { opacity: 0.85; }

/* ===== JOB LISTINGS SECTION ===== */
.jobs {
  background: var(--green-bg);
  padding: 5.83vw 0 6vw;
  text-align: center;
  margin: 0;
}

.jobs-title {
  font-size: 2.5vw;
  font-weight: 600;
  margin-bottom: 1vw;
}

.jobs-desc {
  font-size: 1.25vw;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 3.5vw;
}

/* 募集要項サブタイトル (Figma 82:451 node 802:5) */
.jobs-subtitle {
  font-size: 2.5vw; /* 48/1920 */
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
  margin: 0 0 1.5vw 0;
  font-family: 'Noto Serif JP', serif;
}

/* 募集要項下の画像注記 (Figma 82:451 node 802:6) */
.jobs-image-note {
  font-size: 0.833vw; /* 16/1920 */
  color: var(--green-dark);
  text-align: right;
  margin: 0;
  padding-right: 17.71vw; /* (1920-1370-16ch)/1920 — 右余白 */
  margin-top: -2vw;
}

.jobs-cards {
  display: flex;
  justify-content: center;
  gap: 2.22vw;
  margin-bottom: 4vw;
}

.job-card {
  width: 20.83vw;
  height: 22.36vw;
  background: var(--green-main);
  border-radius: 1.04vw;
  box-shadow: 0 0 0.278vw rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.job-card-img {
  width: 100%;
  height: 78%;
  background: #fff no-repeat;
}

/* 弁護士: DSC06945-3 2 (579x868) at (-117.33, -18.67) in 400x334.67 — Figma 82:482 */
.job-card-img--lawyer {
  background-image: url('images/job-lawyer.jpg');
  background-image: image-set(url('images/job-lawyer.webp') type('image/webp'), url('images/job-lawyer.jpg') type('image/jpeg'));
  background-size: 144.75% auto;
  background-position: 65.55% 3.50%;
}

/* 司法書士: DSC06933-3 4 (609x911) at (-122, -88) in 400x334.67 — Figma 82:484 */
.job-card-img--scrivener {
  background-image: url('images/job-scrivener.jpg');
  background-image: image-set(url('images/job-scrivener.webp') type('image/webp'), url('images/job-scrivener.jpg') type('image/jpeg'));
  background-size: 152.25% auto;
  background-position: 58.37% 15.27%;
}

/* 事務員: DSC06971-3 3 (607x792) at (-123.67, -133) in 400x334.67 — Figma 82:494 */
.job-card-img--clerk {
  background-image: url('images/job-clerk.jpg');
  background-image: image-set(url('images/job-clerk.webp') type('image/webp'), url('images/job-clerk.jpg') type('image/jpeg'));
  background-size: 151.75% auto;
  background-position: 59.74% 29.08%;
}

.job-card-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.08vw;
  font-weight: 400;
  color: #fff;
}

.jobs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-main);
  color: #fff;
  font-size: 1.667vw;
  font-weight: 500;
  height: 6.18vw;
  width: 37.43vw;
  border-radius: 1.04vw;
  box-shadow: 0 0 0.278vw rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s;
}

.jobs-cta:hover { opacity: 0.85; }

/* ===== PEOPLE / INTERVIEW SECTION ===== */
/* Figma: container 1920x1192 (62.08vw)
   - Background: DSC06763 2 (2530x1690) at left=-332, top=-450.67
   - Green blur: bg #3e7009, blur 106px, 570x105 at top=79.33, centered
   - Title: top=63.33, font 48px, white, text-shadow 0 0 4px black
   - Desc: top=132.67, font 24px, white, text-shadow 0 0 4px black
   - Gradient overlay: top=317.33, height=875, transparent → #f7ffef at 77.4%
   - Cards: top 454.67/598.67 zigzag pattern
   - Coming Soon: top=636, font 128px, color green-dark
*/
.people {
  background: var(--green-bg);
  height: 62.08vw; /* 1192/1920 */
  text-align: center;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

/* 背景写真 (DSC06763 2: 2530x1690 at left=-332, top=-450.67) */
.people::before {
  content: '';
  position: absolute;
  left: -17.29vw; /* -332/1920 */
  top: -23.47vw; /* -450.67/1920 */
  width: 131.77vw; /* 2530/1920 */
  height: 88.02vw; /* 1690/1920 */
  background: url('images/people-bg.jpg') center / cover no-repeat;
  background-image: image-set(url('images/people-bg.webp') type('image/webp'), url('images/people-bg.jpg') type('image/jpeg'));
  z-index: 0;
}

/* 緑のブラー (bg #3e7009, 570x105 at top=79.33, blur 106px) */
.people-blur {
  position: absolute;
  top: 4.13vw; /* 79.33/1920 */
  left: 50%;
  transform: translateX(-50%);
  width: 29.69vw; /* 570/1920 */
  height: 5.47vw; /* 105/1920 */
  background: #3e7009;
  border-radius: 3.18vw; /* 61/1920 */
  filter: blur(5.52vw); /* 106px / 1920 */
  z-index: 1;
  pointer-events: none;
}

/* グラデーションオーバーレイ (top=317.33, height=875, transparent→bg at 77.4%) */
.people-gradient {
  position: absolute;
  left: 0;
  top: 16.53vw; /* 317.33/1920 */
  width: 100%;
  height: 45.57vw; /* 875/1920 */
  background: linear-gradient(to bottom, rgba(247, 255, 239, 0) 0%, var(--green-bg) 77.4%);
  z-index: 2;
  pointer-events: none;
}

.people-title,
.people-desc,
.people-cards-wrap {
  position: relative;
  z-index: 3;
}

/* Title: top=63.33, font 48px, white */
.people-title {
  position: absolute;
  top: 3.30vw; /* 63.33/1920 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5vw; /* 48/1920 */
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 1);
  white-space: nowrap;
  margin: 0;
}

/* Desc: top=132.67, font 24px, white */
.people-desc {
  position: absolute;
  top: 6.91vw; /* 132.67/1920 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25vw; /* 24/1920 */
  font-weight: 500;
  color: #fff;
  text-shadow: 0 0 4px rgba(0, 0, 0, 1);
  white-space: nowrap;
  line-height: 1.5;
  margin: 0;
}

/* People-cards-wrap: Figma cards top=454.67, bottom=1085.33 (offset+h)
   Position cards inside the section absolutely */
.people-cards-wrap {
  position: absolute;
  top: 23.68vw; /* 454.67/1920 */
  left: 0;
  width: 100%;
  height: 34.5vw;
  overflow: visible; /* セクションの overflow:hidden で外側はクリップ */
  z-index: 3;
  padding-bottom: 1vw;
}

.people-cards {
  display: flex;
  gap: 1.42vw; /* (425.33-61.33-337.33)/1920 = 1.4vw between cards */
  position: absolute;
  left: 3.19vw; /* 61.33/1920 */
  top: 0;
  animation: people-scroll 25s linear infinite;
  align-items: flex-start;
}

/* Cards: 337.33-338.67 wide × 486.67 tall */
.people-card {
  width: 17.64vw; /* 338.67/1920 */
  height: 25.35vw; /* 486.67/1920 */
  background: #fff;
  border-radius: 1.04vw; /* 20/1920 */
  box-shadow: 0 0 0.42vw rgba(0, 0, 0, 0.25); /* 8/1920 */
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.people-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* Zigzag: Figma starts with UPPER (1st card at left=61, top=454.67)
   Pattern: upper, lower, upper, lower, upper
   Offset between rows: (598.67-454.67)/1920 = 7.5vw */
.people-card:nth-child(even) {
  margin-top: 7.5vw; /* 144/1920 */
}

.people-card:nth-child(odd) {
  margin-top: 0;
}

@keyframes people-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Coming Soon: Figma top=636 in 1192 container = 9.45vw from cards-wrap top */
.people-coming-soon {
  position: absolute;
  left: 50%;
  top: 9.45vw; /* (636 - 454.67)/1920 - relative to cards-wrap */
  transform: translateX(-50%);
  font-size: 6.67vw; /* 128/1920 */
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
  z-index: 4;
  margin: 0;
}

/* ===== FOOTER WATERMARK =====
   Figma: "Abies team." at y=6113 in 6820px page
   - People section: 5155-6347 (h=1192)
   - Footer: 6347-6819 (h=472 originally, now 337)
   - Watermark inside section/footer overlap area
   Coming Soon bottom (~820 in section) → watermark top (958) = 138px gap */
.footer-watermark-wrap {
  background: var(--green-bg);
  margin: 0;
  padding: 0;
  margin-top: -3vw;
  padding-top: 2vw;
  pointer-events: none;
  position: relative;
  z-index: 5; /* low - footer goes above this */
}
.footer-watermark {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 12.22vw;
  color: rgba(68, 131, 0, 0.3);
  line-height: 1;
  white-space: nowrap;
  text-align: right;
  padding-right: 5vw;
  margin-bottom: -6vw;
  position: relative;
  z-index: 50; /* top: above everything */
  transform: translateY(-6.25vw); /* (100+20)/1920 */
}

/* ===== Footer: Figma 1920x337 (recruit/entryと同じシンプル版) =====
   - 右寄せ: ロゴ + © のみ
   - Figma: logo at top=100, left=1309, w=391 ; copy below logo */
.site-footer {
  background: linear-gradient(149deg, #84bd46 20.66%, #448300 79.34%);
  height: 17.55vw; /* 337/1920 */
  position: relative;
  padding: 0;
  z-index: 40; /* above wrap(5), below watermark(50) */
  margin-top: -30px; /* always shift 30px up */
}

.footer-inner {
  position: absolute;
  right: 11.46vw; /* 220/1920 */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.56vw; /* 30/1920 */
  width: 20.37vw; /* 391/1920 */
}

.footer-copy {
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: max(13px, 0.83vw); /* 16/1920 */
  margin: 0;
  text-align: right;
  width: 100%;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.69vw;
  font-size: 0.972vw;
  font-weight: 500;
  color: #fff;
}

.footer-nav a:hover { opacity: 0.8; }

.footer-logo {
  height: 4.37vw;
}

.footer-logo img {
  height: 100%;
  width: auto;
}

/* ===== HEADER NAV DROPDOWN (募集要項) ===== */
.header-nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-nav-trigger {
  cursor: pointer;
}

/* トリガーは通常のナビリンクと同じ下線アニメーションを使う。
   transform リセット（過去の斜め問題対策）、z-index でブリッジより前面に */
.header-nav-trigger {
  position: relative;
  z-index: 2;
}
.header-nav-trigger::after {
  transform: none !important;
  border: none !important;
  z-index: 3;
}
/* ドロップダウン上にマウスが移動しても下線を保持 */
.header-nav-item-dropdown:hover .header-nav-trigger::after,
.header-nav-item-dropdown:focus-within .header-nav-trigger::after {
  width: 100%;
  left: 0;
}

.header-nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  list-style: none;
  margin: 0;
  padding: 0.4vw 0;
  background: #fff;
  min-width: 9vw;
  border-radius: 0.4vw;
  box-shadow: 0 0.3vw 0.8vw rgba(0, 0, 0, 0.06), 0 0.1vw 0.25vw rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 200;
}

/* ドロップダウンの上に透明なブリッジ（トリガーとの隙間を埋める） */
.header-nav-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 1.5vw;
  background: transparent;
}

.header-nav-item-dropdown:hover .header-nav-dropdown,
.header-nav-item-dropdown:focus-within .header-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(8px);
  pointer-events: auto;
}

/* トリガー直下にもブリッジ領域 */
.header-nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 1.5vw;
  background: transparent;
  z-index: 1;
}

.header-nav-dropdown li {
  list-style: none;
}

.header-nav-dropdown a {
  display: block;
  padding: 0.7vw 1.5vw;
  font-size: 0.972vw;
  color: #787878;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

/* ドロップダウン内リンクの下線アニメーションを無効化 */
.header-nav-dropdown a::after {
  display: none !important;
}

.header-nav-dropdown a:hover {
  background: var(--green-bg);
  color: var(--green-main);
}

/* Dropdown SP/Tablet - ハンバーガーメニュー内では非表示 */
@media (max-width: 850px) {
  .header-nav-item-dropdown { display: none; }
}

/* ===== RESPONSIVE: SP BASE ~850px ===== */
@media (max-width: 850px) {
  .sp-br { display: inline; }
  .accent-line { width: 2px; }

  .site-header { height: 66px; padding: 0 15px; }
  .header-logo { margin-left: 15px; height: 40px; }
  .header-nav { display: none; }
  .header-entry { display: none; }
  .hamburger { display: block; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
  .mobile-menu { display: flex; }

  .kv { height: 145vw; margin-top: 66px; }
  .kv-catch {
    font-size: 38px; white-space: nowrap; text-align: left;
    width: auto; left: 8vw; top: auto; bottom: 12vw; transform: none;
    line-height: normal; font-weight: 500;
  }
  .kv-sub { display: none; }

  .recruit-banner-wrap { position: relative; margin-top: 0; }
  .recruit-banner {
    width: 70%; height: auto; padding: 15px 20px; margin-top: -30px;
    border-width: 3px; border-radius: 10px 0 0 10px;
  }
  .recruit-banner-title { font-size: 16px; }
  .recruit-banner-big { font-size: 36px; }

  .message { padding: 20vw 26.21vw 10vw 9.67vw; gap: 46px; flex-direction: column; }
  .message-text { font-size: 15px; gap: 9px; }
  .message-images { display: flex; flex-direction: column; gap: 25px; }
  .message-img-placeholder { height: auto; }
  /* Figma SP 最新: 上 325.318×180.932 (x=58, 1人女性), 下 288×155 (x=17, 3人) — vw で比例スケール */
  .message-img-1 {
    width: 82.78vw;     /* 325.318/393 */
    height: 46.04vw;    /* 180.932/393 */
    align-self: flex-end;
    margin-right: -23.74vw;
  }
  .message-img-2 {
    width: 73.28vw;     /* 288/393 */
    height: 39.44vw;    /* 155/393 */
    align-self: flex-start;
    margin-left: -5.34vw;
  }
  .message-img-1 img { object-position: center 56.1%; }
  .message-img-2 img { object-position: center 72.97%; }

  .sec-hero { height: auto; overflow: visible; padding: 0; background: linear-gradient(100deg, #84bd46 20.66%, #448300 79.34%); }
  .sec-hero-watermark {
    font-size: 91px; top: -18px; left: calc(50% - 53vw); width: 110vw;
    line-height: 80px; white-space: normal;
  }
  .sec-hero-content { position: relative; left: auto; top: auto; padding: 38vw 8vw 41vw 25px; }
  .sec-hero-title { font-size: 32px; text-align: center; line-height: 37px; margin-left: auto; margin-right: auto; }
  .sec-hero-subtitle { font-size: 20px; margin-bottom: 24px; text-align: center; }
  .point-number { font-size: 128px; width: 70px; margin-top: -25px; }
  .point-heading { font-size: 20px; white-space: nowrap; margin-bottom: 8px; }
  .point-text { font-size: 16px; line-height: 1.45; }
  .point { margin-bottom: 20px; width: fit-content; margin-left: auto; margin-right: auto; }
  .point-body { padding-top: 2px; max-width: min(248px, 60vw); padding-left: 8px; }
  .sec-hero-image-area {
    position: relative; left: 0; top: auto;
    width: 97%; margin-left: auto; height: 62vw;
    margin-top: -40vw;
    margin-bottom: 0;
    z-index: 1;
  }
  .sec-hero-image-area .clip-shape { clip-path: url(#clip-right-sp); }
  /* Figma SP node 171:69 緑セクション (DSC07040aaaa 1, 女性): 868×580 at (-322, -167) in 451.353×243 */
  /* 新写真用に Figma 値に近づけて画像を上にシフト */
  .sec-hero-image-area img {
    width: 192.36%;   /* 868 / 451.353 */
    height: auto;
    left: calc(-71.34% + 20px);  /* Figma -71.34% から右に20pxシフト */
    top: calc(-68.72% + 35px);   /* Figma -68.72% から下に35pxシフト */
  }

  .sec-experience { padding-top: 4vw; padding-bottom: 20px; }
  .sec-exp-image-area {
    position: relative; left: 0; top: auto;
    width: 97%; margin-right: auto; height: 62vw;
    margin-top: 0.7vw;
  }
  .sec-exp-image-area .clip-shape { clip-path: url(#clip-left-sp); }
  /* Figma SP node 171:69 白セクション (DSC06922-2aaa 2, 男性): 560×373 at (-112.79, -54) in 453.21×244 */
  .sec-exp-image-area img {
    width: 123.56%;   /* 560 / 453.21 */
    height: auto;
    left: calc(-24.89% + 50px);  /* Figma -24.89% から右に50pxシフト */
    top: -15%;        /* 男性の顔をフレーム上部に、体を下に表示 */
    object-fit: initial;
    object-position: initial;
  }
  .sec-exp-content { margin-left: 0; width: 100%; padding: 15px 25px; }
  .sec-exp-title { font-size: 32px; text-align: center; }
  .sec-exp-subtitle { font-size: 20px; margin-bottom: 20px; text-align: center; max-width: 300px; margin-left: auto; margin-right: auto; }
  .sec-experience .point-number { color: var(--green-dark); }
  .sec-experience .point-body { max-width: min(255px, 60vw); }

  .cta-wrapper { margin-top: 20px; margin-bottom: 30px; margin-right: -25px; text-align: right; }
  .cta-button {
    font-size: min(20px, 5vw); padding-left: 2vw; padding-right: 4vw; height: max(50px, 12vw);
    width: calc(100% + 10px); max-width: none;
    border-radius: 20px 0 0 20px;
  }

  .jobs { padding: 10vw 0 calc(18vw + 40px); }
  .jobs-title { font-size: 32px; margin-bottom: 10px; text-align: center; line-height: 1.3; max-width: 300px; margin-left: auto; margin-right: auto; }
  .jobs-desc { font-size: 20px; text-align: center; max-width: 300px; margin-left: auto; margin-right: auto; }
  /* Tablet/Mobile broad: 募集要項サブタイトル + 画像注記 */
  .jobs-subtitle { font-size: 32px; margin: 20px 0 15px 0; }
  .jobs-image-note { font-size: 12px; padding: 0 20px 0 0; margin-top: -10px; text-shadow: none; }
  .jobs-cards { flex-direction: column; align-items: center; gap: 20px; padding: 0 13%; }
  .job-card { width: 100%; height: auto; aspect-ratio: auto; border-radius: 14px; }
  .job-card-img { height: 242px; }
  .job-card-label { font-size: 32px; padding: 12px 0; }
  .jobs-cta {
    font-size: 24px; height: 79px; width: calc(100% - 16px);
    border-radius: 20px 0 0 20px; margin-top: 20px;
    margin-left: auto; margin-right: -25px;
  }

  /* ===== People (mobile/tablet): Figma SP design 393px base =====
     Frame 13: 596px tall, photo at top, blur+title+desc overlay,
     fade to bg-green for cards area, cards zigzag, Coming Soon center */
  .people {
    padding: 0 0 5px;
    overflow: hidden;
    height: auto;
    background: var(--green-bg);
    position: relative;
    padding-top: 55.47vw; /* photo area height (cards start at 218/393) */
  }

  /* 背景写真 (DSC06763 2: 636x425 at left=-128, top=-21 in 393 wide section) */
  .people::before {
    display: block;
    content: '';
    position: absolute;
    left: -32.57vw; /* -128/393 */
    top: -5.34vw; /* -21/393 */
    width: 161.83vw; /* 636/393 */
    height: 108.14vw; /* 425/393 */
    background: url('images/people-bg.jpg') center / cover no-repeat;
    background-image: image-set(url('images/people-bg.webp') type('image/webp'), url('images/people-bg.jpg') type('image/jpeg'));
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    z-index: 0;
  }

  /* 緑のブラー: 288x77 at top=36, blur 76px */
  .people-blur {
    display: block;
    position: absolute;
    top: 9.16vw; /* 36/393 */
    left: 50%;
    transform: translateX(-50%);
    width: 73.28vw; /* 288/393 */
    height: 19.59vw; /* 77/393 */
    background: #3e7009;
    border-radius: 15.52vw; /* 61/393 */
    filter: blur(19.34vw); /* 76/393 */
    z-index: 1;
    pointer-events: none;
  }

  /* グラデーションは photo の mask-image でフェード処理するので非表示 */
  .people-gradient { display: none; }

  /* Title: top=24, font 32px, white */
  .people-title {
    position: absolute;
    top: 6.11vw; /* 24/393 */
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    padding: 0 15px;
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 1);
    white-space: nowrap;
    z-index: 3;
    margin: 0;
  }

  /* Desc: top=70, font 14px, white */
  .people-desc {
    position: absolute;
    top: 17.81vw; /* 70/393 */
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    line-height: 16px;
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 1);
    white-space: normal;
    text-align: center;
    z-index: 3;
    margin: 0;
    padding: 0;
    max-width: 92.87vw; /* 365/393 */
  }

  /* Cards section starts below photo (in flow due to padding-top) */
  .people-cards-wrap {
    position: relative; top: auto; left: auto; width: 100%; height: auto;
    min-height: 72vw; padding-bottom: 10px; overflow: visible;
    z-index: 4;
  }
  .people-cards { position: absolute; left: 0; top: 0; }
  .people-card { width: 38vw; height: 54vw; }
  .people-card:nth-child(odd) { margin-top: 0; }
  .people-card:nth-child(even) { margin-top: 14vw; }
  .people-coming-soon {
    top: 50%; transform: translate(-50%, -50%); font-size: 40px;
  }

  /* SP: 背景透明にしてカードを隠さない、テキストだけ最前面に */
  .footer-watermark-wrap {
    margin-top: calc(-8vw - 30px); padding-top: 8vw;
    background: transparent;
    z-index: auto; /* don't create stacking context, let watermark escape */
  }
  .footer-watermark {
    font-size: 118px; line-height: 85px;
    margin-left: calc(50% - 32vw + 30px); margin-bottom: -8vw;
    white-space: normal; width: 65vw;
    z-index: 60; /* above footer (40) - layer only */
  }

  /* SP: フッター短く */
  .site-footer {
    height: auto; padding: 30px 20px 20px;
    margin-top: -30px;
  }
  .footer-inner {
    position: static; transform: none;
    flex-direction: column; align-items: flex-end;
    justify-content: flex-start; gap: 6px;
    padding-right: 5px; width: auto; max-width: none;
  }
  .footer-copy {
    font-size: 13px;
    white-space: nowrap;
  }
  .footer-nav {
    flex-direction: column; align-items: flex-end;
    gap: 13px; font-size: 14px;
  }
  .footer-logo { height: 50px; }
}

/* ===== RESPONSIVE: SMARTPHONE ~480px ===== */
@media (max-width: 480px) {
  .site-header { height: 66px; padding: 0 15px !important; left: 0; right: 0; width: 100%; box-sizing: border-box; }
  .header-logo { margin-left: 0; height: 44px; }

  .kv { height: 145vw; margin-top: 66px; }
  .kv-catch {
    font-size: 38px; white-space: normal; text-align: left;
    width: 84.22vw; left: 9.41vw; top: auto; bottom: 26.21vw; transform: none;
    line-height: 1.35;
  }
  .kv-sub { display: none; }

  /* SP KV: Figma SPコンポーネント (393x570) の最新スライド配置を反映 (node 673:236) */
  /* .kv-slides-wrap (120%×120% at -10%,-10%) 内座標に変換 */

  /* スライド1 (DSC07126aaaa 1 / Frame 2): image left=-379, top=-157, w=1174, h=890 */
  .kv-slide.kv-slide-1 {
    inset: auto;
    left: -72.03%;   /* (-379/393*100 - (-10)) / 120 */
    top: -14.62%;    /* (-157/570*100 - (-10)) / 120 */
    width: 248.94%;  /* 1174/393*100 / 120 */
    height: 130.12%; /* 890/570*100 / 120 */
  }

  /* スライド2 (DSC06877 2 男性 / Frame 34): image left=-320, top=-127, w=1050, h=701 */
  .kv-slide.kv-slide-2 {
    inset: auto;
    left: -59.52%;   /* (-320/393*100 - (-10)) / 120 */
    top: -10.23%;    /* (-127/570*100 - (-10)) / 120 */
    width: 222.65%;  /* 1050/393*100 / 120 */
    height: 102.49%; /* 701/570*100 / 120 */
  }

  /* スライド3 (gotouFVkakubbbb 2 女性 / Frame 35): image left=-224, top=-45, w=951, h=635 */
  .kv-slide.kv-slide-3 {
    inset: auto;
    left: -39.17%;   /* (-224/393*100 - (-10)) / 120 */
    top: 1.76%;      /* (-45/570*100 - (-10)) / 120 */
    width: 201.65%;  /* 951/393*100 / 120 */
    height: 92.83%;  /* 635/570*100 / 120 */
  }

  .recruit-banner-wrap { margin-top: 0; }
  .recruit-banner {
    width: 65%; max-width: 250px; padding: 6px 12px; margin-top: -15px;
    border-width: 3px; border-radius: 10px 0 0 10px;
    height: auto; min-height: 60px;
    margin-left: auto; margin-right: 0;
  }
  .recruit-banner-title { font-size: 13px; }
  .recruit-banner-big { font-size: 28px; }

  /* Figma SP: text 252px幅, 左38px・右103px (9.67% / 26.21%) で左寄せ */
  .message { padding: 20vw 26.21vw 10vw 9.67vw; gap: 46px; flex-direction: column; }
  .message-text { font-size: 15px; gap: 9px; }
  /* 最後のブロック (「これからは…」) だけコンテナを少し広げて、「ら」が次行に行かないようにする */
  .message-text > div {
    width: calc(100% + 18px);
  }
  .message-images { display: flex; flex-direction: column; gap: 25px; }
  /* Figma SP node 171:69 最新: 上 325.318×180.932 (x=58, 1人女性), 下 288×155 (x=17, 3人) */
  .message-img-placeholder { height: auto; }
  .message-img-1 {
    width: 82.78vw;     /* 325.318/393 */
    height: 46.04vw;    /* 180.932/393 */
    align-self: flex-end;
    margin-right: -23.74vw;  /* 右端を viewport x=383.318 (97.54%) に揃える */
  }
  .message-img-2 {
    width: 73.28vw;     /* 288/393 */
    height: 39.44vw;    /* 155/393 */
    align-self: flex-start;
    margin-left: -5.34vw;    /* 左端を viewport x=17 に揃える */
  }
  /* 720:34 DSC06895 3 (1人女性): 334.427×223.387 at (-4.19, -20.97) in 325.318×180.932 */
  .message-img-1 img { object-position: center 56.1%; }
  /* 720:31 DSC06914 4 (3人): 288×192 at (0, -27) in 288×155 */
  .message-img-2 img { object-position: center 72.97%; }

  .sp-br { display: inline; }

  .sec-hero { padding: 0; height: auto; overflow: visible; background: linear-gradient(100deg, #84bd46 20.66%, #448300 79.34%); }
  .sec-hero-watermark {
    font-size: 91px; top: -18px; left: calc(50% - 53vw); width: 110vw;
    line-height: 80px; white-space: normal;
  }
  .sec-hero-content {
    position: relative; left: auto; top: auto;
    padding: 38vw 25px 41vw;
  }
  .sec-hero-title {
    font-size: 32px; margin-bottom: 4px;
    text-align: center; line-height: 37px;
    margin-left: auto; margin-right: auto;
  }
  .sec-hero-subtitle {
    font-size: 20px; margin-bottom: 24px;
    text-align: center;
  }
  .point-number { font-size: 128px; width: 70px; margin-top: -25px; }
  .point-heading { font-size: 20px; white-space: nowrap; margin-bottom: 8px; }
  .point-text { font-size: 16px; line-height: 1.45; }
  .point { margin-bottom: 20px; width: fit-content; margin-left: auto; margin-right: auto; }
  /* 経験セクションの3と4の間だけ10px広く */
  .sec-experience .point + .point { margin-top: 10px; }
  .point-body { padding-left: 8px; padding-top: 2px; max-width: 248px; }
  .sec-hero-image-area {
    position: relative; left: 0; top: auto;
    width: 97%; margin-left: auto; height: 62vw;
    margin-top: -40vw;
    margin-bottom: 0;
    z-index: 1;
  }
  .sec-hero-image-area .clip-shape {
    clip-path: url(#clip-right-sp);
    border-radius: 0;
  }

  .sec-experience { padding-top: 4vw; padding-bottom: 30px; }
  .sec-exp-image-area {
    position: relative; left: 0; top: auto;
    width: 97%; margin-right: auto; height: 62vw;
    margin-top: 0.7vw;
  }
  .sec-exp-image-area .clip-shape {
    clip-path: url(#clip-left-sp);
    border-radius: 0;
  }
  .sec-exp-content { padding: 15px 25px; margin-left: 0; width: 100%; }
  .sec-exp-title { font-size: 32px; text-align: center; }
  .sec-exp-subtitle { font-size: 20px; margin-bottom: 20px; text-align: center; max-width: 300px; margin-left: auto; margin-right: auto; }
  .sec-experience .point-number { color: var(--green-dark); }
  .sec-experience .point-body { max-width: 270px; }

  .cta-wrapper { margin-top: 20px; margin-right: -25px; text-align: right; }
  .cta-button {
    font-size: 20px; padding-left: 65px; height: 70px;
    width: calc(100% + 10px); max-width: none;
    border-radius: 20px 0 0 20px;
  }

  .jobs { padding: 10vw 0 18vw; }
  .jobs-title { font-size: 32px; margin-bottom: 10px; text-align: center; line-height: 1.3; max-width: 300px; margin-left: auto; margin-right: auto; }
  .jobs-desc { font-size: 20px; text-align: center; max-width: 300px; margin-left: auto; margin-right: auto; }
  /* SP 募集要項サブタイトル + 画像注記 */
  .jobs-subtitle { font-size: 32px; margin: 20px 0 15px 0; }
  .jobs-image-note { font-size: 12px; padding: 0 20px 0 0; margin-top: -10px; text-shadow: none; }
  .jobs-cards { flex-direction: column; align-items: center; gap: 20px; padding: 0 13%; }
  .job-card { width: 100%; height: auto; aspect-ratio: auto; border-radius: 14px; }
  .job-card-img { height: 242px; }
  .job-card-label { font-size: 32px; padding: 12px 0; }
  .jobs-cta {
    font-size: 24px; height: 79px; width: calc(100% - 16px);
    border-radius: 20px 0 0 20px; margin-top: 20px;
    margin-left: auto; margin-right: -25px;
  }

  /* People (SP 480px): Figma SP デザインに合わせた写真ヘッダー付きレイアウト */
  .people {
    padding: 55.47vw 0 5px; /* photo area top, bottom 5px */
    overflow: hidden;
  }
  .people-title { font-size: 32px; padding: 0; }
  .people-desc {
    font-size: 14px; line-height: 16px; max-width: 92.87vw;
    padding: 0;
  }
  .people-cards-wrap { min-height: 75vw; padding-bottom: 4vw; }
  .people-card { width: 38vw; height: 54vw; max-height: 213px; border-radius: 20px; }
  .people-card:nth-child(odd) { margin-top: 0; }
  .people-card:nth-child(even) { margin-top: 16vw; }
  .people-coming-soon { font-size: 40px; }

  /* SP: 背景透明にしてカードを隠さない、テキストだけ最前面に */
  .footer-watermark-wrap {
    margin-top: calc(-8vw - 30px); padding-top: 8vw;
    background: transparent;
    z-index: auto; /* don't create stacking context, let watermark escape */
  }
  .footer-watermark {
    font-size: 118px; line-height: 85px;
    margin-left: calc(50% - 32vw + 30px); margin-bottom: -8vw;
    white-space: normal; width: 65vw;
    z-index: 60; /* above footer (40) - layer only */
  }

  /* SP: Figma 393x181 (recruit footer同じ) */
  .site-footer {
    height: 181px; padding: 0;
    margin-top: -30px;
  }
  .footer-inner {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column; align-items: flex-end;
    justify-content: center; gap: 25px;
    padding-right: 0; width: auto; max-width: none;
  }
  .footer-copy {
    font-size: 13px;
    white-space: nowrap;
  }
  .footer-nav {
    flex-direction: column; align-items: flex-end;
    gap: 13px; font-size: 14px;
  }
  .footer-logo { height: 49px; }
}

/* ===== RESPONSIVE: NARROW SP (~374px 以下、Z Fold 内側など) ===== */
/* ヘッダーがハンバーガーと重ならないように縮小 */
@media (max-width: 374px) {
  .site-header { padding: 0 12px !important; }
  .header-logo { height: 36px; }
  .recruit-header-left { gap: 6px; }
  .recruit-site-badge {
    font-size: 11px;
    padding: 2px 8px;
    min-height: 20px;
  }
  .hamburger { right: 12px; width: 26px; height: 20px; }

  /* CTAボタン: 文言が切れないようテキストを左にシフト */
  .cta-button { padding-left: 30px; }
}

/* ===== RESPONSIVE: TABLET 481px-850px ===== */
@media (min-width: 481px) and (max-width: 850px) {
  /* --- タブレット: SP上書き --- */

  /* sp-brを非表示（That's why Abies., Abies team. 等を1行表示） */
  .sp-br { display: none; }

  /* アクセントライン: タブレットサイズ */
  .accent-line { width: 3px; }

  /* KV: 高さ調整、フォントサイズ可変 */
  .kv { height: 80vw; }
  .kv-catch { font-size: max(38px, 5vw); bottom: calc(8vw + 30px); font-weight: 500; white-space: nowrap; }

  /* バナー: SP より少し大きく */
  .recruit-banner { width: 72%; max-width: 300px; padding: 8px 15px; }
  .recruit-banner-title { font-size: max(13px, 2vw); }
  .recruit-banner-big { font-size: max(28px, 4.5vw); }

  /* メッセージ: タブレットは PC のように本文右側に画像配置 (横並び) */
  .message {
    padding: 6.35vw 6vw;
    gap: 4vw;
    flex-direction: row;
  }
  .message-images {
    display: flex;
    flex-direction: column;
    gap: 2vw;
    flex-shrink: 0;
  }
  .message-text > div { width: auto; }
  /* タブレット: 本文を 10px 右にシフト (アクセントラインとの重なり回避) */
  .message-text { padding-left: 17px; }
  /* SP の比率を維持: 上 1.798 (1人女性), 下 1.858 (3人) */
  .message-img-1 {
    width: 36vw;
    height: 20vw;          /* 36 / 1.798 */
    align-self: flex-end;
    margin-right: 0;
  }
  .message-img-2 {
    width: 32vw;
    height: 17.22vw;       /* 32 / 1.858 */
    align-self: flex-start;
    margin-left: 85px;
  }

  /* Hero: 緑セクション調整 */
  .sec-hero-watermark { font-size: max(60px, 12vw); white-space: nowrap; }
  .sec-hero-content { padding: 18vw 10vw 28vw 5vw; }
  .sec-hero-title { font-size: max(28px, 5vw); }
  .sec-hero-subtitle { font-size: max(18px, 3vw); }
  .point-body { max-width: 50vw; }
  .sec-hero-image-area { margin-top: -26vw; height: 50vw; }
  /* タブレット専用: 女性画像を 30px 上にシフト */
  .sec-hero-image-area img { top: calc(-60% - 30px); }

  /* Experience: 画像間隔15px、コンテンツ調整 */
  .sec-experience { padding-top: 15px; }
  .sec-exp-image-area { height: 50vw; }
  .sec-exp-content { padding: 15px 10vw 15px 5vw; }
  .sec-exp-title { font-size: max(24px, 4.5vw); }
  .sec-exp-subtitle { font-size: max(16px, 3vw); }
  .sec-experience .point-body { max-width: 50vw; }

  /* CTA: 短く、右端に付ける */
  .cta-wrapper { margin-right: calc(-10vw - 15px); text-align: right; }
  .cta-button { width: 60%; max-width: 350px; font-size: max(16px, 2.5vw); height: 55px; border-radius: 20px 0 0 20px; padding-left: 30px; }

  /* Jobs: 横並び3列 */
  .jobs { padding: 40px 3vw; }
  .jobs-title { max-width: none; }
  .jobs-desc { max-width: none; }
  .jobs-cards { flex-direction: row; justify-content: center; gap: 2vw; padding: 0; }
  .job-card { width: 30%; height: auto; }
  .job-card-img { height: 22vw; }
  .job-card-label { font-size: max(16px, 3vw); }
  .jobs-cta {
    font-size: max(16px, 3vw); height: max(55px, 8vw); width: max(280px, 40vw);
    border-radius: 14px; margin-left: auto; margin-right: auto;
  }

  /* People (tablet): 写真上部を削ってセクションを短く、文字を少し下に */
  .people {
    padding-top: 42vw; /* shorter than mobile's 55.47vw */
  }
  .people::before {
    top: 0; /* original was -5.34vw, now flush with top */
    height: 78vw; /* shorter than 108.14vw - trims the bottom mask area */
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 55%, transparent 95%);
  }
  .people-title {
    top: 10vw; /* moved down from 6.11vw */
    font-size: max(28px, 4vw);
  }
  .people-desc {
    top: 16vw; /* タイトルとの間を詰めた */
    font-size: max(14px, 2vw);
    line-height: 1.5;
  }
  .people-blur {
    top: 13vw;
    width: 50vw;
    height: 12vw;
    border-radius: 10vw;
    filter: blur(12vw);
  }

  .people-cards-wrap { min-height: 52vw; }
  .people-cards { gap: 2vw; }
  .people-card { width: 26vw; height: 37vw; border-radius: max(10px, 2.5vw); }
  .people-card:nth-child(odd) { margin-top: 0; }
  .people-card:nth-child(even) { margin-top: 10vw; }

  /* Footer watermark: 1行表示 */
  .footer-watermark {
    font-size: max(60px, 10vw); white-space: nowrap;
    line-height: 1; width: auto;
    margin-left: calc(50% - 5vw); margin-bottom: -4vw;
  }
  .footer-watermark-wrap { margin-top: -10vw; padding-top: 10vw; }

  /* Footer */
  .site-footer { height: auto; padding: 30px 30px; }
  .footer-nav { font-size: max(14px, 2vw); }
  .footer-logo { height: max(40px, 6vw); }

}

/* ===== ANIMATIONS ===== */

/* --- scroll fade in --- */
.anim-fade-up, .anim-fade-left, .anim-fade-right {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.anim-fade-up { transform: translateY(40px); }
.anim-fade-left { transform: translateX(-40px); }
.anim-fade-right { transform: translateX(40px); }
.anim-fade-up.is-visible, .anim-fade-left.is-visible, .anim-fade-right.is-visible {
  opacity: 1;
  transform: translate(0);
}
/* 背景付きセクションはtransformなし（白い隙間防止） */
section.anim-fade-up { transform: none; }
section.anim-fade-up.is-visible { transform: none; }
.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }

/* --- KV catch reveal --- */
@keyframes kv-reveal {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes kv-reveal-sub {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.kv-catch { animation: kv-reveal 1s ease 0.2s both; }
.kv-sub { animation: kv-reveal-sub 0.8s ease 0.5s both; }

/* --- banner slide in --- */
@keyframes banner-slide {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.recruit-banner { animation: banner-slide 0.4s ease 0.8s both; }

/* --- nav link hover underline --- */
.header-nav a:not(.header-entry) { position: relative; }
.header-nav a:not(.header-entry)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--green-main);
  transition: width 0.3s ease, left 0.3s ease;
}
.header-nav a:not(.header-entry):hover::after { width: 100%; left: 0; }

/* --- card hover lift --- */
.job-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

/* --- CTA button shine effect --- */
.cta-button, .jobs-cta {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cta-button::after, .jobs-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.cta-button:hover::after, .jobs-cta:hover::after { left: 120%; }
.cta-button:hover, .jobs-cta:hover {
  box-shadow: 0 6px 20px rgba(68, 131, 0, 0.4);
}

/* --- footer nav hover --- */
.footer-nav a { transition: opacity 0.3s ease; }
.footer-nav a:hover { opacity: 0.7; }

/* --- KV slideshow --- */
.kv-slide {
  position: absolute;
  inset: -10%;
  width: 120%; height: 120%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.kv-slide.active { opacity: 1; }
@keyframes ken-burns-1 {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.075) translate(-1%, -0.5%); }
}
@keyframes ken-burns-2 {
  0% { transform: scale(1.05) translate(1%, 0); }
  100% { transform: scale(1) translate(-0.5%, 1%); }
}
@keyframes ken-burns-3 {
  0% { transform: scale(1.025) translate(0, 1%); }
  100% { transform: scale(1.075) translate(0.5%, -0.5%); }
}
.kv-slide.kv-slide-1 { animation: ken-burns-1 8s ease-in-out infinite alternate; }
.kv-slide.kv-slide-2 { animation: ken-burns-2 8s ease-in-out infinite alternate; }
.kv-slide.kv-slide-3 { animation: ken-burns-3 8s ease-in-out infinite alternate; }

/* PC / Tablet 専用のスライド配置 (SP は @media max-width:480px で上書き) */
@media (min-width: 481px) {
  /* スライド1 (DSC07126aaaa 1) Figma node 47:239 バリアント3 の正確な位置を再現 */
  /* Figma 1440×743 frame: left=-82, top=-268, w=1716, h=1301 */
  /* .kv (1920×883) %: left=-5.69%, top=-36.07%, w=119.17%, h=196.37% */
  /* .kv-slides-wrap (120%×120% at -10%,-10%) 内座標に変換 */
  .kv-slide.kv-slide-1 {
    inset: auto;
    left: 3.59%;    /* (-5.69% - (-10%)) / 120% */
    top: -21.73%;   /* (-36.07% - (-10%)) / 120% */
    width: 99.31%;   /* 119.17% / 120% */
    height: 163.64%; /* 196.37% / 120% */
  }

  /* スライド2 (DSC06877 2) Figma node 47:239 Frame 20 最新位置 */
  /* Figma 1440×743 frame: left=0, top=-237, w=1467, h=980 */
  /* .kv (1920×883) %: left=0%, top=-31.90%, w=101.88%, h=147.91% */
  /* .kv-slides-wrap (120%×120% at -10%,-10%) 内座標に変換 */
  .kv-slide.kv-slide-2 {
    inset: auto;
    left: 8.33%;     /* (0% - (-10%)) / 120% */
    top: -18.25%;    /* (-31.90% - (-10%)) / 120% */
    width: 84.90%;   /* 101.88% / 120% */
    height: 123.26%; /* 147.91% / 120% */
  }

  /* スライド3 (gotouFVkakubbbb 1) Figma node 47:239 Frame 19 の正確な位置を再現 */
  /* Figma 1440×743 frame: left=-83, top=-208, w=1663, h=1110 */
  /* .kv (1920×883) %: left=-5.76%, top=-27.99%, w=115.49%, h=149.39% */
  /* .kv-slides-wrap (120%×120% at -10%,-10%) 内座標に変換 */
  .kv-slide.kv-slide-3 {
    inset: auto;
    left: 3.53%;    /* (-5.76% - (-10%)) / 120% */
    top: -14.99%;   /* (-27.99% - (-10%)) / 120% */
    width: 96.24%;  /* 115.49% / 120% */
    height: 124.49%; /* 149.39% / 120% */
  }
}

/* =====================================
   RECRUIT PAGES (募集要項詳細ページ)
   弁護士 / 司法書士 / 事務員
   ===================================== */
.recruit-body {
  background: #fff;
  color: var(--green-dark);
}

/* ヘッダー左側: ロゴ + 採用サイトバッジ */
.recruit-header-left {
  display: flex;
  align-items: center;
  gap: 0.83vw; /* 16/1920 */
}

.recruit-site-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(143deg, #84bd46 20%, #448300 79%);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.04vw; /* 20/1920 */
  padding: 0.21vw 1.04vw; /* 4/1920, 20/1920 */
  border-radius: 2.76vw; /* 53/1920 */
  text-shadow: 0 0 0.1vw rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  height: 1.875vw; /* 36/1920 */
  box-sizing: border-box;
  letter-spacing: -0.02em;
}

/* SP/Tablet: バッジを小さく */
@media (max-width: 850px) {
  .recruit-header-left { gap: 8px; }
  .recruit-site-badge {
    font-size: 13px;
    padding: 3px 12px;
    border-radius: 30px;
    height: auto;
    min-height: 24px;
  }
}

/* ===== Hero Section ===== */
.recruit-hero {
  position: relative;
  width: 100%;
  height: 30.9vw; /* 593/1920 */
  margin-top: 4.5vw; /* match site-header height */
  background: #ddd;
  overflow: hidden;
}

/* 写真 (DSC06945-3 1: 980x1467 at 940, -107) */
.recruit-hero-photo {
  position: absolute;
  /* デフォルト: 弁護士 (Figma 454:19) */
  left: 44.90vw; /* 862/1920 */
  top: -5.26vw; /* -101/1920 */
  width: 58.80vw; /* 1129/1920 */
  height: 87.97vw; /* 1689/1920 */
  object-fit: cover;
  object-position: center 30%;
}

/* PC: 司法書士 (Figma 492:423) */
.recruit-hero-photo[src*="scrivener"] {
  left: 45.36vw; /* 871/1920 */
  top: -10.94vw; /* -210/1920 */
  width: 58.23vw; /* 1118/1920 */
  height: 87.14vw; /* 1673/1920 */
}

/* PC: 事務員 (Figma 496:633 最新) */
.recruit-hero-photo[src*="clerk"] {
  left: 45.52vw; /* 874/1920 */
  top: -15.99vw; /* -307/1920 */
  width: 57.81vw; /* 1110/1920 */
  height: 75.36vw; /* 1447/1920 */
}

/* SVG シェイプ共通 (1405x592 viewBox, parallelogram) */
.recruit-hero-shape {
  position: absolute;
  width: 73.18vw; /* 1405/1920 */
  height: 30.83vw; /* 592/1920 */
  pointer-events: none;
}

/* Rectangle 25: 左側の50%緑 (-43, -93) */
.recruit-hero-shape-25 {
  left: -2.24vw; /* -43/1920 */
  top: -4.84vw; /* -93/1920 */
  z-index: 1;
}

/* Rectangle 26: 左側の緑グラデ (-95, 1) */
.recruit-hero-shape-26 {
  left: -4.95vw; /* -95/1920 */
  top: 0.05vw; /* 1/1920 */
  z-index: 2;
}

/* Rectangle 27: 右側の50%緑 rotate-180 (1701, 57) */
.recruit-hero-shape-27 {
  left: 88.59vw; /* 1701/1920 */
  top: 2.97vw; /* 57/1920 */
  transform: rotate(180deg);
  z-index: 1;
}

/* Rectangle 28: 右側の緑グラデ rotate-180 (1701, -78) */
.recruit-hero-shape-28 {
  left: 88.59vw; /* 1701/1920 */
  top: -4.06vw; /* -78/1920 */
  transform: rotate(180deg);
  z-index: 2;
}

.recruit-hero-content {
  position: absolute;
  left: 20.36vw; /* 391/1920 */
  top: 11.35vw; /* 218/1920 */
  z-index: 10;
  color: #fff;
}

.recruit-hero-divider {
  position: absolute;
  left: 18.39vw; /* 353/1920 */
  top: 16.15vw; /* 310/1920 */
  width: 34.79vw; /* 668/1920 */
  height: 0.21vw; /* 4/1920 */
  background: #fff;
  box-shadow: 0 0 0.42vw rgba(0, 0, 0, 0.5);
  z-index: 10;
  transform-origin: left center;
  animation: hero-divider-reveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

/* 募集要項KV内の画像注記 (Figma 492:423 node 802:11): PC right-bottom of hero */
.recruit-hero-image-note {
  position: absolute;
  right: 1.72vw; /* 33/1920 — 右端余白 */
  bottom: 1.20vw; /* 23/1920 — 下端余白 */
  margin: 0;
  font-size: 0.833vw; /* 16/1920 */
  color: var(--green-dark);
  text-shadow: 0 0 0.16vw rgba(255, 255, 255, 0.75);
  z-index: 11;
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 左→右に線が引かれるアニメーション (シャドウも線の伸びに追従) */
@keyframes hero-divider-reveal {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes hero-divider-reveal-centered {
  from { transform: translateX(-50%) scaleX(0); }
  to   { transform: translateX(-50%) scaleX(1); }
}

.recruit-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 3.33vw; /* 64/1920 */
  text-shadow: 0 0 0.42vw rgba(0, 0, 0, 0.5);
  line-height: 1.4;
  margin: 0 0 0.7vw;
  white-space: nowrap;
}

.recruit-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 2.08vw; /* 40/1920 */
  text-shadow: 0 0 0.42vw rgba(0, 0, 0, 0.5);
  line-height: 1.5;
  margin: 0;
}

/* ===== Detail Section ===== */
.recruit-detail {
  position: relative;
  background: #f5f5f5;
  padding: 2.6vw 0 5.21vw; /* 50/1920, 100/1920 */
}

.recruit-detail-inner {
  max-width: 57.34vw; /* 1101/1920 */
  margin: 0 auto;
  padding: 0;
}

/* 白い枠（drop-shadow付き、Figma: 0 0 2px rgba(0,0,0,0.5)） */
.recruit-list-box {
  background: #fff;
  border-radius: 1.04vw; /* 20/1920 */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  padding: 3.65vw 2.6vw; /* 70/1920, 50/1920 */
  display: flex;
  flex-direction: column;
  gap: 3.65vw; /* 70/1920 */
  align-items: center;
}

.recruit-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.30vw; /* 25/1920 */
  width: 100%;
}

.recruit-item {
  display: flex;
  flex-direction: column;
  gap: 0.26vw; /* 5/1920 */
  align-items: flex-start;
  padding-left: 2.08vw; /* 40/1920 */
  margin: 0;
}

/* ラベル（緑グラデのピル） */
.recruit-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(146deg, #84bd46 20%, #448300 79%);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.04vw; /* 20/1920 */
  text-shadow: 0 0 0.1vw rgba(0, 0, 0, 0.5);
  padding: 0.21vw 1.30vw; /* 4/1920, 25/1920 */
  border-radius: 1.93vw; /* 37/1920 */
  white-space: nowrap;
  min-height: 1.93vw; /* 37/1920 */
  box-sizing: border-box;
}

.recruit-value {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 0.83vw; /* 16/1920 */
  color: var(--green-dark);
  margin: 0;
  line-height: 1.6;
  white-space: pre-line;
}

/* 応募資格などの ＜...＞ ヘッダーを緑色で強調 */
.recruit-value .section-head,
.recruit-section-head {
  color: #64ad15;
  font-weight: 900;
  display: block;
  margin-top: 0.5em;
}
.recruit-value .section-head:first-child,
.recruit-section-head:first-child {
  margin-top: 0;
}

/* ※注釈テキスト（小さく、SemiBold） */
.recruit-note {
  font-size: 0.73vw; /* 14/1920 desktop */
  font-weight: 600;
  display: inline-block;
  line-height: 1.7;
}

/* 区切り線 */
.recruit-divider {
  border: none;
  border-top: 2px solid #84bd46;
  margin: 0.5vw 0;
  width: 100%;
  opacity: 0.6;
}

/* 応募ボタン */
.recruit-apply-wrap {
  display: flex;
  justify-content: center;
  margin: 0;
}

.recruit-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-main);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.67vw; /* 32/1920 */
  width: 20.57vw; /* 395/1920 */
  height: 5.26vw; /* 101/1920 */
  border-radius: 1.04vw; /* 20/1920 */
  box-shadow: 0 0 0.28vw rgba(0, 0, 0, 0.5);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.recruit-apply-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.4vw 1vw rgba(68, 131, 0, 0.4);
}

.recruit-apply-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.recruit-apply-btn:hover::after {
  left: 120%;
}

/* ===== Recruit Footer (簡易版) ===== */
.recruit-footer {
  background: linear-gradient(157deg, #84bd46 20%, #448300 79%);
  height: 17.55vw; /* 337/1920 */
  position: relative;
}

.recruit-footer-inner {
  position: absolute;
  right: 11.46vw; /* 220/1920 */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.56vw; /* 30/1920 */
  width: 20.37vw; /* 391/1920 */
}

.recruit-footer-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1501 / 322;
}

.recruit-footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recruit-footer-copy {
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 0.83vw; /* 16/1920 */
  text-align: right;
  margin: 0;
}

/* ===== Recruit Pages: Mobile (~850px) ===== */
@media (max-width: 850px) {
  /* SP版KV: Figma node 682:340 / 685:432 / 685:519 (393px ベース, 高さ 411px) */
  .recruit-hero {
    height: 104.58vw; /* 411/393 */
    margin-top: 66px;
    background: rgba(100, 173, 21, 0.15); /* 薄緑 */
  }
  /* 弁護士 SP - Figma 682:340 image: -79, -43, 522×781 */
  .recruit-hero-photo {
    left: -20.10vw; /* -79/393 */
    top: -10.94vw; /* -43/393 */
    width: 132.82vw; /* 522/393 */
    height: 198.73vw; /* 781/393 */
    object-position: center 20%;
  }
  /* 司法書士 SP - Figma 685:432 image (DSC06933-3 2): -63, -90, 518×775 */
  .recruit-hero-photo[src*="scrivener"] {
    left: -16.03vw; /* -63/393 */
    top: -22.90vw; /* -90/393 */
    width: 131.81vw; /* 518/393 */
    height: 197.20vw; /* 775/393 */
  }
  /* 事務員 SP - Figma 685:519 image: -86, -147, 554×721 */
  .recruit-hero-photo[src*="clerk"] {
    left: -21.88vw; /* -86/393 */
    top: -37.40vw; /* -147/393 */
    width: 140.97vw; /* 554/393 */
    height: 183.46vw; /* 721/393 */
  }
  /* SP: 募集要項KV画像注記 (Figma 685:432 node 802:9) */
  .recruit-hero-image-note {
    right: 0;
    bottom: 1.78vw; /* 7/393 */
    font-size: 12px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.75);
  }
  /* Rectangle 25 (411×131): 弁護士 top=208 (SP個別ページ別 override は @media (max-width:480px) で) */
  .recruit-hero-shape-25 {
    width: 104.58vw; /* 411/393 */
    height: 33.33vw; /* 131/393 */
    left: -6.36vw; /* -25/393 */
    top: 52.93vw; /* 208/393 (弁護士デフォルト) */
  }
  /* Rectangle 26 (448×145): 弁護士 top=220 */
  .recruit-hero-shape-26 {
    width: 113.99vw; /* 448/393 */
    height: 36.9vw; /* 145/393 */
    left: -15.78vw; /* -62/393 */
    top: 55.98vw; /* 220/393 (弁護士デフォルト) */
  }
  /* SP では右側のシェイプは非表示 */
  .recruit-hero-shape-27,
  .recruit-hero-shape-28 {
    display: none;
  }
  /* タイトル「弁護士」+ サブコピー: 弁護士 top=244 */
  .recruit-hero-content {
    left: 11.96vw; /* 47/393 */
    top: 62.09vw;  /* 244/393 (弁護士デフォルト) */
  }
  /* 白線 divider (275×1): 弁護士 top=281 */
  .recruit-hero-divider {
    left: 9.92vw; /* 39/393 */
    top: 71.50vw; /* 281/393 (弁護士デフォルト) */
    width: 63.61vw; /* 250/393 (シェイプ内に収めるため25px短縮) */
    height: 0.25vw; /* 1/393 */
    box-shadow: 0 0 0.89vw rgba(0, 0, 0, 0.5); /* 3.5/393 */
  }
  /* 文字サイズも vw 化して画像と一緒に拡縮 */
  .recruit-title {
    font-size: 6.62vw; /* 26/393 */
    margin-bottom: 1.02vw; /* 4/393 */
  }
  .recruit-subtitle {
    font-size: 4.07vw; /* 16/393 */
    line-height: 1.5; /* Figma leading-normal 相当、行間に余白を確保 */
    white-space: nowrap; /* Figma の whitespace-nowrap と一致 */
  }

  /* Detail (Figma SP 393 base) */
  .recruit-detail {
    padding: 12vw 0 8vw;
  }
  .recruit-detail-inner {
    max-width: 100%;
    padding: 0 12px;
  }
  /* Box: padding 50px top, 70px bottom, 15px L/R */
  .recruit-list-box {
    padding: 50px 15px 70px;
    border-radius: 20px;
    gap: 50px;
  }
  .recruit-list {
    gap: 25px;
  }
  .recruit-item {
    padding-left: 20px;
    gap: 5px;
  }
  .recruit-label {
    font-size: 20px;
    padding: 4px 25px;
    min-height: 37px;
    border-radius: 37px;
  }
  .recruit-value {
    font-size: 15px;
    margin: 0;
    line-height: 1.7;
  }
  .recruit-note {
    font-size: 12px;
  }
  .recruit-section-head {
    font-size: 15px;
  }
  .recruit-divider {
    margin: 0;
    border-top-width: 2px;
  }
  .recruit-apply-wrap {
    margin-top: 0;
  }
  .recruit-apply-btn {
    font-size: 22px;
    width: 70vw;
    height: 70px;
    border-radius: 14px;
  }

  /* Recruit Footer (右寄せ) */
  .recruit-footer {
    height: auto;
    padding: 45px 25px 30px;
  }
  .recruit-footer-inner {
    position: static;
    transform: none;
    margin: 0 0 0 auto;
    width: 58vw;
    max-width: 280px;
    align-items: flex-end;
    gap: 10px;
  }
  .recruit-footer-logo {
    width: 100%;
  }
  .recruit-footer-copy {
    font-size: 13px;
    text-align: right;
  }
}

/* ===== Recruit Hero: タブレット専用デザイン (Figma node 568:25, 800px base) ===== */
/* SP用上書き (max-width:850px) を打ち消すため、後ろに配置 */
@media (min-width: 481px) and (max-width: 850px) {
  /* SPで非表示にしたオーバーレイ要素をタブレットで表示に戻す */
  .recruit-hero-shape,
  .recruit-hero-content,
  .recruit-hero-divider {
    display: block;
  }
  .recruit-hero {
    height: 37.5vw; /* 300/800 */
    margin-top: 66px;
    background: #ddd; /* タブレットでは元のグレー背景 */
  }
  /* タブレット用: PC Figma値を高さ比率で調整 (container 30.9vw → 37.5vw) */
  /* デフォルト: 弁護士 */
  .recruit-hero-photo {
    left: 44.90vw;     /* 同じ vw (横方向はそのまま) */
    top: -6.39vw;      /* -101/593 × 37.5 = -6.39 */
    width: 58.80vw;    /* 同じ */
    height: 106.79vw;  /* 1689/593 × 37.5 = 106.79 */
    object-position: center 30%;
  }
  /* タブレット: 司法書士 */
  .recruit-hero-photo[src*="scrivener"] {
    left: 45.36vw;
    top: -13.28vw;     /* -210/593 × 37.5 */
    width: 58.23vw;
    height: 105.78vw;  /* 1673/593 × 37.5 */
  }
  /* タブレット: 事務員 (PC新Figma 496:633 から再算出: 874, -307, 1110×1447) */
  .recruit-hero-photo[src*="clerk"] {
    left: 45.52vw;     /* 874/1920 */
    top: -19.41vw;     /* -307/593 × 37.5 */
    width: 57.81vw;    /* 1110/1920 */
    height: 91.49vw;   /* 1447/593 × 37.5 */
  }
  /* タブレット: 募集要項KV画像注記 (PC比率からスケール) */
  .recruit-hero-image-note {
    right: 1.72vw;
    bottom: 1vw;
    font-size: max(11px, 1.5vw);
  }
  .recruit-hero-shape {
    width: 88.85vw; /* 710.79/800 */
    height: 37.44vw; /* 299.49/800 */
  }
  .recruit-hero-shape-25 {
    left: -13.15vw; /* -105.23/800 */
    top: -5.88vw; /* -47.05/800 */
  }
  .recruit-hero-shape-26 {
    left: -16.44vw; /* -131.53/800 */
    top: 0.06vw; /* 0.51/800 */
  }
  .recruit-hero-shape-27 {
    left: 88.88vw; /* 711/800 */
    top: 2.66vw; /* 21.3/800 */
  }
  .recruit-hero-shape-28 {
    left: 88.88vw; /* 711/800 */
    top: -5.88vw; /* -47/800 */
  }
  .recruit-hero-content {
    left: 14.29vw; /* 114.33/800 */
    top: 13.79vw; /* 110.29/800 */
    width: auto;
  }
  .recruit-hero-divider {
    left: 11.89vw; /* 95.11/800 */
    top: 19.6vw; /* 156.83/800 */
    width: 42.24vw; /* 337.94/800 */
    height: 0.25vw; /* 2.024/800 */
    box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.5);
  }
  .recruit-title {
    font-size: 4vw; /* 32/800 */
    margin: 0 0 0.5vw;
    white-space: nowrap;
  }
  .recruit-subtitle {
    font-size: 2.5vw; /* 20/800 */
    line-height: 1.4;
  }
}

/* =====================================
   ENTRY FORM PAGE (応募フォーム)
   ===================================== */

/* ===== Hero (グリーングラデ + タイトル) ===== */
.entry-hero {
  position: relative;
  width: 100%;
  height: 19.64vw; /* 377/1920 */
  margin-top: 4.5vw;
  background: linear-gradient(155deg, #84bd46 20%, #448300 79%);
  overflow: hidden;
}

/* Title: Figma top=90 (relative to hero top), centered */
.entry-hero-title {
  position: absolute;
  top: 4.69vw; /* 90/1920 */
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 3.33vw; /* 64/1920 */
  color: #fff;
  text-align: center;
  text-shadow: 0 0 0.42vw rgba(0, 0, 0, 0.5);
  margin: 0;
  line-height: 1.5;
  z-index: 2;
  white-space: nowrap;
}

.entry-hero-title p { margin: 0; line-height: 1.5; }

/* Divider: Figma top=274, w=668, h=4. Just below title bottom (90+184=274) */
.entry-hero-divider {
  position: absolute;
  left: 50%;
  top: 14.27vw; /* 274/1920 */
  transform: translateX(-50%);
  width: 34.79vw; /* 668/1920 */
  height: 0.21vw; /* 4/1920 */
  background: #fff;
  box-shadow: 0 0 0.42vw rgba(0, 0, 0, 0.5);
  z-index: 2;
  transform-origin: left center;
  animation: hero-divider-reveal-centered 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

/* ===== Form Section ===== */
.entry-form-section {
  background: #f5f5f5;
  padding: 2.6vw 0 5.21vw;
}

.entry-form-wrap {
  max-width: 31.25vw;
  margin: 0 auto;
}

.entry-form-box {
  background: #fff;
  border-radius: 1.04vw;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  padding: 3.13vw 2.6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.82vw;
}

.entry-form {
  display: flex;
  flex-direction: column;
  gap: 0.78vw;
  width: 100%;
}

.entry-field {
  display: flex;
  flex-direction: column;
  gap: 0.625vw;
  align-items: flex-start;
  width: 100%;
}

.entry-label-row {
  display: flex;
  align-items: center;
  gap: 0.78vw;
}

.entry-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.25vw;
  color: #372200;
  margin: 0;
}

.entry-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(127deg, #84bd46 20%, #448300 79%);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.68vw;
  width: 2.21vw;
  height: 1.20vw;
  border-radius: 2.31vw;
}

.entry-input,
.entry-select,
.entry-textarea {
  background: #fff;
  border: 2px solid #84bd46;
  border-radius: 5px;
  height: 1.82vw;
  padding: 0 0.52vw;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.83vw;
  color: #372200;
  width: 26.04vw;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.entry-input:focus,
.entry-select:focus,
.entry-textarea:focus {
  border-color: #448300;
}

.entry-input::placeholder,
.entry-textarea::placeholder { color: rgba(0, 0, 0, 0.3); }

.entry-select {
  width: 9.375vw;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 13 13%22%3E%3Cpath d=%22M1 4l5.5 5.5L12 4%22 stroke=%22%23448300%22 stroke-width=%222%22 fill=%22none%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.52vw center;
  background-size: 0.7vw;
  cursor: pointer;
}

.entry-birthday {
  display: flex;
  gap: 0.47vw;
  align-items: flex-end;
}

.entry-birthday-group {
  display: flex;
  flex-direction: column;
  gap: 0.10vw;
}

.entry-birthday-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.83vw;
  color: #372200;
  margin-left: 0.52vw;
}

.entry-select-year { width: 6.77vw; }
.entry-select-md { width: 3.96vw; }

.entry-textarea {
  height: 9.22vw;
  width: 26.04vw;
  padding: 0.89vw;
  resize: vertical;
  line-height: 1.6;
}

.entry-file-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  width: 19.11vw;
  height: 2.14vw;
  padding: 3px;
  box-sizing: border-box;
}

.entry-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* center icon+text */
  gap: 0.21vw; /* ~4/1920 - Figma gap between icon and text */
  background: linear-gradient(151deg, #84bd46 20%, #448300 79%);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.83vw;
  width: 8.07vw; /* 155/1920 */
  height: 1.82vw; /* 35/1920 */
  border-radius: 5px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  flex-shrink: 0;
  transition: filter 0.2s ease;
  white-space: nowrap;
}
.entry-file-btn span { white-space: nowrap; }

.entry-file-btn:hover { filter: brightness(1.05); }

.entry-file-icon {
  width: 0.99vw; /* 19/1920 */
  height: 0.83vw; /* 16/1920 */
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25));
}

.entry-file-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.83vw;
  color: #bdbdbd;
  margin-left: 0.83vw;
  flex: 1;
}

.entry-file-input { display: none; }

.entry-field p.file-info {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8vw;
  color: #888;
}

.entry-privacy {
  background: #fff;
  border: 1.5px solid #372200;
  width: 26.04vw;
  height: 9.95vw;
  padding: 0.83vw 1.04vw;
  overflow-y: auto;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.73vw;
  color: #372200;
  line-height: 1.6;
  box-sizing: border-box;
}

.entry-privacy::-webkit-scrollbar { width: 11.4px; }
.entry-privacy::-webkit-scrollbar-track { background: transparent; }
.entry-privacy::-webkit-scrollbar-thumb { background: #d9d9d9; border-radius: 15.6px; }

.entry-agree {
  display: flex;
  align-items: center;
  gap: 0.625vw;
  margin-top: 0.5vw;
}

.entry-checkbox {
  width: 1.41vw;
  height: 1.41vw;
  border: 2px solid #84bd46;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  position: relative;
  flex-shrink: 0;
}

.entry-checkbox:checked::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 0.4vw;
  height: 0.7vw;
  border-right: 3px solid #448300;
  border-bottom: 3px solid #448300;
  margin-top: -2px;
}

.entry-agree-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 0.83vw;
  color: #372200;
  cursor: pointer;
  user-select: none;
}

.entry-submit {
  background: var(--green-main);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.67vw;
  width: 20.57vw;
  height: 5.26vw;
  border: none;
  border-radius: 1.04vw;
  box-shadow: 0 0 0.28vw rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.5vw;
}

.entry-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.4vw 1vw rgba(68, 131, 0, 0.4);
}

.entry-submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}

.entry-submit:hover::after { left: 120%; }

/* ===== Entry Form: Mobile (~850px) ===== */
@media (max-width: 850px) {
  /* Hero: Figma SP 293px tall in 393 wide = 74.55vw, title 36px, divider 4px */
  .entry-hero {
    height: 74.55vw; /* 293/393 */
    margin-top: 66px;
  }
  .entry-hero-title {
    /* Figma SP: font 36px, top=90 from hero top */
    font-size: 9.16vw; /* 36/393 */
    top: 22.90vw; /* 90/393 */
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  }
  .entry-hero-divider {
    /* Figma SP: w=356, h=4, top=199 from hero top */
    width: 90.59vw; /* 356/393 */
    height: 1.02vw; /* 4/393 */
    top: 50.64vw; /* 199/393 */
    bottom: auto;
    box-shadow: 0 0 2.04vw rgba(0, 0, 0, 0.5); /* 8/393 */
  }
  .entry-form-section { padding: 30px 15px; }
  .entry-form-wrap { max-width: 100%; }
  .entry-form-box { padding: 30px 20px; border-radius: 12px; gap: 25px; }
  .entry-form { gap: 18px; }
  .entry-label { font-size: 18px; }
  .entry-required {
    font-size: 12px; width: 38px; height: 22px; border-radius: 30px;
  }
  .entry-input, .entry-select, .entry-textarea {
    height: 40px; font-size: 15px; width: 100%; padding: 0 10px;
  }
  .entry-textarea { height: 140px; padding: 12px; width: 100%; }
  .entry-select {
    width: 60%; max-width: 200px;
    background-size: 12px; background-position: right 10px center;
  }
  .entry-birthday { gap: 6px; }
  .entry-birthday-label { font-size: 13px; margin-left: 5px; }
  .entry-select-year { width: 90px; }
  .entry-select-md { width: 70px; }
  /* Figma SP: wrap 300x33.13, button 126.7x28.28, font 15.82px, icon 15.53x13.02 */
  .entry-file-wrap { width: 100%; height: 33px; padding: 2px; }
  .entry-file-btn {
    font-size: 13px; width: 127px; height: 28px;
    gap: 4px; padding-left: 0; justify-content: center;
  }
  .entry-file-icon { width: 15px; height: 13px; }
  .entry-file-name { font-size: 14px; margin-left: 12px; color: #bdbdbd; white-space: nowrap; }
  .entry-field p.file-info {
    font-size: 13px;
  }
  .entry-privacy { width: 100%; height: 160px; font-size: 13px; padding: 12px; }
  .entry-checkbox { width: 22px; height: 22px; }
  .entry-checkbox:checked::before {
    width: 6px; height: 11px;
    border-right-width: 2px; border-bottom-width: 2px;
  }
  .entry-agree-label { font-size: 14px; }
  .entry-submit {
    font-size: 22px; width: 100%; height: 70px; border-radius: 14px;
  }
}

/* ===== Entry Hero: タブレット用に全要素固定 ===== */
@media (min-width: 481px) and (max-width: 850px) {
  .entry-hero {
    height: 280px; /* 固定 */
  }
  .entry-hero-title {
    font-size: 32px; /* 固定 */
    top: 90px;       /* 固定 */
  }
  .entry-hero-divider {
    width: 320px;    /* 固定 */
    height: 4px;     /* 固定 */
    top: 195px;      /* 固定 */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  }
  /* フォームの枠を最大500pxに制限 */
  .entry-form-wrap {
    max-width: 500px;
  }
  /* ファイル選択の白い部分を短く */
  .entry-file-wrap {
    width: 320px;
  }
}

/* =====================================
   THANKS PAGE (応募完了)
   ===================================== */

/* ===== Section (背景 + センタリング) ===== */
.thanks-section {
  background: #f5f5f5;
  padding: 2.6vw 0 2.6vw; /* 50/1920 上下 */
  display: flex;
  justify-content: center;
  margin-top: 4.5vw; /* match site-header height */
}

.thanks-wrap {
  width: 85.73vw; /* 1646/1920 */
  max-width: 1646px;
}

.thanks-box {
  background: #fff;
  border-radius: 1.04vw; /* 20/1920 */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  padding: 4.69vw 2.6vw; /* 90/1920, 50/1920 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.13vw; /* 60/1920 */
}

/* ===== Message (タイトル + サブコピー) ===== */
.thanks-message {
  text-align: center;
}

.thanks-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 2.08vw; /* 40/1920 */
  background: linear-gradient(160deg, #84bd46 20.6%, #448300 79.3%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0 0 5.83vw; /* 112/1920 - Figma の <br><br> 2行分 */
  line-height: normal;
  white-space: nowrap;
}

.thanks-subtitle {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.67vw; /* 32/1920 */
  color: #372200;
  margin: 0;
  line-height: normal;
  white-space: nowrap;
}

/* ===== 緑枠コンタクトボックス ===== */
.thanks-contact-box {
  border: 2px solid #84bd46;
  border-radius: 1.56vw; /* 30/1920 */
  width: 32.92vw; /* 632/1920 */
  padding: 1.67vw 2.81vw; /* 32/1920, 54/1920 */
  text-align: center;
  box-sizing: border-box;
}

.thanks-contact-line {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.25vw; /* 24/1920 */
  color: #372200;
  line-height: 1.458; /* 35/24 */
  margin: 0;
  white-space: nowrap;
}

.thanks-contact-highlight {
  font-weight: 700;
  background: linear-gradient(141deg, #84bd46 20.6%, #448300 79.3%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== 採用ページTOPへボタン ===== */
.thanks-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-main, #448300);
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.67vw; /* 32/1920 */
  width: 20.57vw; /* 395/1920 */
  height: 5.26vw; /* 101/1920 */
  border-radius: 1.04vw; /* 20/1920 */
  text-decoration: none;
  box-shadow: 0 0 0.278vw rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.thanks-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.4vw 1vw rgba(68, 131, 0, 0.4);
}

/* ===== Tablet/SP 共通 ===== */
@media (max-width: 850px) {
  .thanks-section {
    padding: 50px 10px;
    margin-top: 66px;
  }
  .thanks-wrap {
    width: 100%;
    max-width: 500px;
  }
  .thanks-box {
    padding: 50px 14px 70px;
    border-radius: 20px;
    gap: 20px; /* Figma: 20px */
  }
  .thanks-title {
    font-size: 21px;
    margin-bottom: 24px; /* Figma: mt 45px - font 21px = 24px */
    white-space: normal;
  }
  .thanks-subtitle {
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
  }
  .thanks-contact-box {
    width: 305px;
    border-width: 1.269px;
    border-radius: 19.036px;
    padding: 17px 19px;
    box-sizing: border-box;
  }
  .thanks-contact-line {
    font-size: 14px;
    line-height: 22.208px;
    white-space: nowrap; /* 1行強制 (Figma 通り折り返しなし) */
  }
  .thanks-button {
    width: 273px;
    height: 69.805px;
    font-size: 22.116px;
    border-radius: 13.823px;
  }
}

/* =====================================
   CONTACT PAGE (お問い合わせ)
   ===================================== */

.contact-section {
  background: #f5f5f5;
  padding: 2.6vw 0; /* 50/1920 */
  display: flex;
  justify-content: center;
  margin-top: 4.5vw; /* match site-header height */
}

.contact-wrap {
  width: 85.73vw; /* 1646/1920 */
  max-width: 1646px;
}

.contact-box {
  background: #fff;
  border-radius: 1.04vw; /* 20/1920 */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
  padding: 4.69vw 2.6vw; /* 90/1920, 50/1920 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.13vw; /* 60/1920 */
}

/* タイトル */
.contact-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 2.08vw; /* 40/1920 */
  background: linear-gradient(150deg, #84bd46 20.6%, #448300 79.3%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
  line-height: normal;
  white-space: nowrap;
}

/* 本文 */
.contact-body {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.67vw; /* 32/1920 */
  color: #372200;
  text-align: center;
  margin: 0;
  line-height: normal;
  white-space: nowrap;
}

/* 注意書き (緑グラデ + 下線) */
.contact-notice {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.25vw; /* 24/1920 */
  background: linear-gradient(176deg, #84bd46 20.6%, #448300 79.3%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: underline;
  text-decoration-color: #84bd46;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3vw;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  line-height: normal;
}

/* 連絡先ボックス */
.contact-info-box {
  border: 2px solid #84bd46;
  border-radius: 1.56vw; /* 30/1920 */
  width: 26.56vw; /* 510/1920 */
  padding: 1.88vw 2.4vw; /* 36/1920 上下, 46/1920 左右 */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6vw;
}

.contact-info-rows {
  display: flex;
  flex-direction: column;
  gap: 0.26vw; /* small gap between phone and email */
  align-items: flex-start;
}

.contact-info-row {
  display: flex;
  align-items: center;
  gap: 0.52vw; /* 10/1920 */
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-info-row:hover {
  opacity: 0.75;
}

.contact-icon {
  width: 1.67vw; /* 32/1920 */
  height: 1.67vw;
  color: #448300;
  flex-shrink: 0;
}

.contact-info-text {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.25vw; /* 24/1920 */
  background: linear-gradient(168deg, #84bd46 20.6%, #448300 79.3%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.458; /* 35/24 */
  white-space: nowrap;
}

.contact-hours {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 1.04vw; /* 20/1920 */
  color: #372200;
  margin: 0.42vw 0 0;
  white-space: nowrap;
  line-height: normal;
}

/* ===== Tablet/SP 共通 ===== */
@media (max-width: 850px) {
  .contact-section {
    padding: 50px 10px;
    margin-top: 66px;
  }
  .contact-wrap {
    width: 100%;
    max-width: 500px;
  }
  .contact-box {
    padding: 50px 14px 70px;
    border-radius: 20px;
    gap: 20px;
  }
  .contact-title {
    font-size: 21px;
    margin-bottom: 24px; /* Figma: mt 45px - font 21px = 24px */
    white-space: normal;
  }
  .contact-body {
    font-size: 16px;
    line-height: 1.5;
    white-space: normal;
  }
  .contact-notice {
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    text-underline-offset: 3px;
    letter-spacing: -0.02em; /* 1行に確実に収める */
  }
  /* 注意書きの sp-br をタブレットでも有効化 */
  .contact-notice .sp-br { display: inline; }
  .contact-info-box {
    width: 297px;
    border-width: 1.165px;
    border-radius: 17.471px;
    padding: 21px 22px; /* 27px → 22px に縮小してメールアドレス1行表示 */
    gap: 8px;
  }
  .contact-info-rows {
    gap: 4px;
  }
  .contact-info-row {
    gap: 6px;
  }
  .contact-icon {
    width: 18.635px;
    height: 18.635px;
  }
  .contact-info-text {
    font-size: 14px;
    line-height: 20.382px;
    letter-spacing: -0.01em; /* メールアドレス1行表示の保険 */
  }
  .contact-hours {
    font-size: 14px;
    margin-top: 8px;
  }
}

/* =====================================
   LAWYER PROFILE PAGE (弁護士紹介)
   ===================================== */

.profile-section {
  background: #f5f5f5;
  padding: 2.6vw 0; /* 50/1920 */
  display: flex;
  justify-content: center;
  margin-top: 4.5vw; /* match site-header height */
}

.profile-box {
  background: #fff;
  width: 75vw; /* 1440/1920 */
  max-width: 1440px;
  padding: 6.25vw 9.64vw 8vw; /* 120 top, 185 horiz, ~154 bottom */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 15.88vw 1fr; /* 304.934/1920, 残り */
  column-gap: 7.14vw; /* 137.066/1920 (627-185-304.934) */
  row-gap: 0;
  grid-template-areas:
    "photo title-wrap"
    "photo bio"
    "meta bio";
  grid-template-rows: auto auto 1fr;
}

/* タイトル + 下線のラッパー (タイトル幅にフィットして下線を中央寄せ) */
.profile-title-wrap {
  grid-area: title-wrap;
  display: flex;
  flex-direction: column;
  align-items: center;           /* タイトル基準で下線を中央 */
  width: fit-content;             /* タイトル幅に合わせる */
  margin-bottom: 2.45vw;          /* 47/1920 */
}

/* タイトル「弁護士紹介」 */
.profile-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.67vw; /* 32/1920 */
  color: #372200;
  margin: 0 0 0.52vw; /* 10/1920 下 */
  line-height: normal;
}

/* タイトル下の緑グラデ下線 (タイトル基準で中央揃え) */
.profile-title-underline {
  display: block;
  width: 7.81vw; /* 150/1920 */
  height: 0.26vw; /* 5/1920 */
  background: linear-gradient(175deg, #84bd46 20.6%, #448300 79.3%);
  align-self: center;             /* タイトル中心に揃える */
}

/* 写真ブロック */
.profile-photo-area {
  grid-area: photo;
  display: flex;
  flex-direction: column;
}

.profile-photo {
  position: relative;
  width: 15.88vw; /* 304.934/1920 */
  height: 19.43vw; /* 373/1920 */
  overflow: hidden;
}

.profile-photo img {
  position: absolute;
  width: 111.07%;
  height: 109.2%;
  left: -11.07%;
  top: -9.2%;
  object-fit: cover;
}

/* 名前ブロック (代表弁護士 + 林 章太郎) */
.profile-name-block {
  margin-top: 1.82vw; /* 35/1920 (508-373-120 = 15から少し広めに) */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0.16vw; /* 188-185 = 3/1920 */
}

.profile-position {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 0.83vw; /* 16/1920 */
  color: #372200;
  margin: 0;
  padding-left: 0.52vw; /* 10/1920 (offset from divider) */
  line-height: 1.56;
}

.profile-name-divider {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(135deg, #84bd46, #448300);
}

.profile-name-text {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 1.04vw; /* 20/1920 */
  color: #372200;
  margin: 0;
  padding-left: 0.52vw;
  line-height: 1.25;
}

/* 経歴/趣味エリア */
.profile-meta {
  grid-area: meta;
  margin-top: 1.15vw; /* 569-547 = 22/1920 */
  display: flex;
  flex-direction: column;
  gap: 1.56vw; /* 819-720 ≈ 99/1920、メモリ調整 30/1920 */
}

.profile-meta-block {
  display: flex;
  flex-direction: column;
}

.profile-meta-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.04vw; /* 20/1920 */
  background: linear-gradient(125deg, #84bd46 20.6%, #448300 79.3%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
  line-height: normal;
}

.profile-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 0.83vw; /* 16/1920 */
  color: #372200;
  line-height: 35px; /* 35/1920 換算: 1.82vw だが固定にして比率維持 */
}

.profile-meta-list li {
  line-height: 2.19; /* 35/16 */
}

/* 本文ブロック (タイトル右側) */
.profile-bio {
  grid-area: bio;
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 0.83vw; /* 16/1920 */
  color: #372200;
  width: 32.71vw; /* 628/1920 */
}

.profile-bio p {
  margin: 0;
  line-height: 2.19; /* 35/16 */
}

/* ===== Tablet/SP 共通 ===== */
@media (max-width: 850px) {
  .profile-section {
    padding: 50px 10px;
    margin-top: 66px;
  }

  .profile-box {
    width: 100%;
    max-width: 500px;
    padding: 50px 22px 70px;
    border-radius: 20px;
    /* SP: シンプルな縦積みに */
    display: flex;
    flex-direction: column;
    column-gap: 0;
    grid-template-areas: none;
  }

  /* タイトル + 下線ラッパー: 中央配置 */
  .profile-title-wrap {
    align-self: center;        /* box中央に配置 */
    margin-bottom: 25px;
    order: 1;
  }
  .profile-title {
    margin: 0 0 8px;
    font-size: 20px;
    text-align: center;
  }
  .profile-title-underline {
    width: 60px;
    height: 5px;
    margin: 0;                 /* wrapper内で align-items: center に従う */
  }

  /* 写真+名前: 横並び (写真左、名前右) - bio と同じ位置に左端揃え */
  .profile-photo-area {
    flex-direction: row;
    align-items: flex-end;
    gap: 6px;
    margin: 0 auto 30px;        /* bio と同じく中央寄せ */
    width: 100%;
    max-width: 330px;            /* bio と同じ最大幅 */
    order: 3;
    align-self: center;          /* bio と揃える */
  }
  .profile-photo {
    width: 237px;
    height: 289px;
    flex-shrink: 0;
  }
  .profile-name-block {
    margin-top: 0;
    padding-left: 0;
    padding-bottom: 0;
    white-space: nowrap;
  }
  .profile-position {
    font-size: 13px;
    padding-left: 0;
    margin-top: 20px;     /* 代表弁護士を少し下にずらす */
    margin-bottom: 0;
  }
  .profile-name-divider {
    /* 横線として「代表弁護士」と「林 章太郎」の間に配置 */
    position: static;
    display: block;
    width: 73px;
    height: 1px;
    background: #294e00;
    margin: 0 0 4px;
  }
  .profile-name-text {
    font-size: 16px;
    padding-left: 0;
  }

  /* 本文 */
  .profile-bio {
    width: 100%;
    max-width: 330px;
    margin: 0 auto 30px;      /* 中央寄せ（写真もこれに揃える） */
    align-self: center;
    font-size: 14px;
    order: 4;
  }
  .profile-bio p {
    line-height: 1.79; /* 25/14 */
  }

  /* 経歴/趣味エリア */
  .profile-meta {
    margin-top: 0;
    gap: 25px;
    order: 5;
    align-self: center;
    width: 100%;
    max-width: 330px;
  }
  .profile-meta-title {
    font-size: 18px;
  }
  .profile-meta-list {
    font-size: 13px;
    line-height: 25px;
  }
  .profile-meta-list li {
    line-height: 1.92; /* 25/13 */
  }
}

/* =====================================
   ABOUT PAGE (事務所概要)
   ===================================== */

.about-section {
  background: #f5f5f5;
  padding: 2.6vw 0; /* 50/1920 */
  display: flex;
  justify-content: center;
  margin-top: 4.5vw;
}

.about-box {
  background: #fff;
  width: 75vw; /* 1440/1920 */
  max-width: 1440px;
  padding: 6.25vw 6.51vw; /* 120 top, 125 horiz */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* タイトル + 下線 */
.about-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  margin-bottom: 2.45vw;
}

.about-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.67vw; /* 32/1920 */
  color: #372200;
  margin: 0 0 0.52vw;
  line-height: normal;
}

.about-title-underline {
  display: block;
  width: 7.81vw; /* 150/1920 */
  height: 0.26vw; /* 5/1920 */
  background: linear-gradient(175deg, #84bd46 20.6%, #448300 79.3%);
  align-self: center;
}

/* コンテンツ 2カラム (PC) */
.about-content {
  display: flex;
  gap: 3.85vw; /* 約74/1920 (左右コラム間) */
  align-items: flex-start;
}

.about-info-col {
  flex: 1;
  max-width: 31.77vw; /* 約610/1920 */
  display: flex;
  flex-direction: column;
  gap: 2.08vw; /* 40/1920 */
}

.about-divider {
  width: 1px;
  align-self: stretch;
  background: #c8c8c8;
  flex-shrink: 0;
}

.about-access-col {
  flex: 1;
  max-width: 31.77vw;
  font-family: 'Noto Serif JP', serif;
  color: #372200;
}

/* 情報リスト */
.about-info-list {
  margin: 0;
  padding: 0;
  font-family: 'Noto Serif JP', serif;
  color: #372200;
  font-size: 0.83vw; /* 16/1920 */
}

.about-info-row {
  display: flex;
  align-items: flex-start;
  line-height: 1.5625; /* 25/16 */
}

.about-info-row dt {
  font-weight: 700;
  margin: 0;
  flex-shrink: 0;
  width: 8.85vw; /* 約170/1920 (列の左幅) */
  white-space: nowrap;
}

.about-info-row dd {
  font-weight: 600;
  margin: 0;
  flex: 1;
}

/* マップ埋め込み (PC: 左コラム下に配置) */
.about-map {
  width: 25.31vw; /* 486/1920 */
  height: 12.5vw; /* 240/1920 */
  margin-top: 1.5vw;
  overflow: hidden;
  background: #f0f0f0; /* iframe ロード前の背景 */
}

.about-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* アクセス */
.about-access-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: 1.46vw; /* 28/1920 */
  color: #372200;
  margin: 0 0 0.42vw;
  line-height: 1.286; /* 36/28 */
}

.about-access-subhead {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 0.83vw; /* 16/1920 */
  color: #372200;
  margin: 0 0 0.42vw;
  line-height: 2.25; /* 36/16 */
}

.about-access-list,
.about-access-route {
  list-style: none;
  margin: 0 0 1.04vw; /* 20/1920 */
  padding: 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.83vw;
  color: #372200;
  line-height: 1.5625; /* 25/16 */
}

.about-access-list li,
.about-access-route li {
  font-weight: 600;
  margin: 0;
}

.about-access-list strong,
.about-access-route strong {
  font-weight: 700;
}

.about-access-note {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 0.83vw;
  color: #372200;
  margin: 0 0 1.04vw;
  line-height: 1.5;
}

.about-access-note .underline {
  text-decoration: underline;
}

/* ===== Tablet/SP (max-width: 850px) ===== */
@media (max-width: 850px) {
  .about-section {
    padding: 50px 10px;
    margin-top: 66px;
  }
  .about-box {
    width: 100%;
    max-width: 500px;
    padding: 50px 22px 70px;
  }
  .about-title-wrap {
    margin: 0 auto 25px;
  }
  .about-title {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .about-title-underline {
    width: 60px;
    height: 5px;
  }

  /* 1カラムに */
  .about-content {
    flex-direction: column;
    gap: 0;
  }
  /* info-col を解体して中身（info-list と map）を直接の子に */
  .about-info-col {
    display: contents;
  }
  .about-access-col {
    max-width: 100%;
  }
  /* 縦ラインを横ラインに */
  .about-divider {
    width: 100%;
    height: 1px;
    margin: 25px 0;
    align-self: auto;
  }
  /* 順番: 情報リスト → 区切り → アクセス → マップ (一番下) */
  .about-info-list { order: 1; }
  .about-divider { order: 2; }
  .about-access-col { order: 3; }
  .about-map { order: 4; }

  /* 情報リスト */
  .about-info-list {
    font-size: 13px;
  }
  .about-info-row {
    line-height: 1.5;
    flex-wrap: nowrap;
  }
  .about-info-row dt {
    width: 8em;
    font-size: 13px;
  }

  /* マップ */
  .about-map {
    width: 100%;
    max-width: 341px;
    height: 177px;
    margin: 25px auto 0;
  }
  .about-map span {
    font-size: 12px;
  }

  /* アクセス */
  .about-access-title {
    font-size: 24px;
    margin-bottom: 4px;
    line-height: 1.2;
  }
  .about-access-subhead {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 4px;
  }
  .about-access-list,
  .about-access-route {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
  .about-access-note {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
  }
}


