/* ============================================
   ビーフラット株式会社 コーポレートサイト
   ブランド3色: #eca26f(main) #63bbbf #f2c748
   ============================================ */

:root {
  --c-main: #eca26f;
  --c-main-dark: #d9854a;
  --c-teal: #63bbbf;
  --c-teal-dark: #3f9a9e;
  --c-yellow: #f2c748;
  --c-bg: #fdf9f3;
  --c-bg-soft: #faf1e6;
  --c-bg-teal: #eef7f7;
  --c-text: #3d3229;
  --c-text-soft: #6f635a;
  --c-white: #ffffff;
  --c-line: #f0e0cd;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 8px 30px rgba(217, 133, 74, 0.10);
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

ul, ol { list-style: none; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.5; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 249, 243, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo { display: inline-flex; align-items: center; }

.header-logo img { height: 40px; width: auto; }

.global-nav ul { display: flex; align-items: center; gap: 28px; }

.global-nav a {
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--c-main-dark);
  border-bottom-color: var(--c-main);
}

.nav-cta {
  background: var(--c-main);
  color: var(--c-white) !important;
  border-radius: 999px;
  padding: 10px 22px !important;
  border-bottom: none !important;
  font-weight: 700;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--c-main-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 24px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--c-main-dark);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero (top / full-bleed slideshow) ---------- */
.hero-full {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 82vh;
  min-height: 82svh;
}

@media (min-width: 769px) {
  .hero-full { min-height: max(82vh, 560px); }
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  /* 非アクティブ時はズーム終点に合わせ、フェードアウト中の飛びを防ぐ */
  transform: scale(1.06);
}

.hero-slide.is-active {
  opacity: 1;
  animation: hero-zoom 12s ease-out forwards;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  opacity: 0;
  pointer-events: none;
}

.hero-full.has-video .hero-video { opacity: 1; }
.hero-video.is-portrait { object-position: center; }
.hero-full.has-video .hero-slide { animation: none; }

.hero-video-toggle {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(40, 28, 18, 0.65);
  color: white;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.hero-video-toggle:focus-visible { outline: 3px solid white; outline-offset: 3px; }

@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-full .hero-video { display: none; }
  .hero-slide.is-active { animation: none; }
  .hero-slide { transition: none; transform: none; }
}

.hero-scrim {
  background:
    linear-gradient(to right, rgba(40, 28, 18, 0.62) 0%, rgba(40, 28, 18, 0.38) 46%, rgba(40, 28, 18, 0.08) 78%),
    linear-gradient(to top, rgba(40, 28, 18, 0.30) 0%, rgba(40, 28, 18, 0) 36%);
}

.hero-full .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 96px 24px;
}

.hero-copy .hero-lead {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.55;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(30, 20, 12, 0.45);
}

.hero-copy p.hero-sub {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 14px rgba(30, 20, 12, 0.5);
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn-hero-primary {
  background: var(--c-white);
  color: var(--c-main-dark);
  box-shadow: 0 6px 24px rgba(30, 20, 12, 0.25);
}

.btn-hero-primary:hover { background: #fff3e7; }

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-white);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.btn-hero-secondary:hover { background: rgba(255, 255, 255, 0.26); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--c-bg-soft), var(--c-bg-teal));
  padding: 56px 0;
  text-align: center;
}

.page-hero .en {
  display: block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-teal-dark);
  font-weight: 700;
}

.page-hero h1 { font-size: clamp(26px, 3.6vw, 36px); margin-top: 8px; }

.breadcrumb {
  font-size: 13px;
  color: var(--c-text-soft);
  margin-top: 14px;
}

.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--c-main); color: var(--c-white); }
.btn-primary:hover { background: var(--c-main-dark); }

.btn-secondary { background: var(--c-white); color: var(--c-teal-dark); border-color: var(--c-teal); }
.btn-secondary:hover { background: var(--c-bg-teal); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--c-white); }
.section-teal { background: var(--c-bg-teal); }

.section-header { text-align: center; margin-bottom: 44px; }

.section-header .en {
  display: block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-main-dark);
  font-weight: 700;
}

.section-header h2 { font-size: clamp(24px, 3.2vw, 32px); margin-top: 6px; }

.section-header p { color: var(--c-text-soft); margin-top: 12px; }

/* ---------- Cards ---------- */
/* 上の色帯は border-top ではなく背景で描く。border-top＋角丸だと帯が角でツノ状に細く尖るため、
   平らな帯を角丸で切り抜く（帯の太さぶん padding-top を足して中身の位置は据え置き）。
   同じ描き方: .about-points li / .service-card */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  --bar: var(--c-main);
  background: linear-gradient(var(--bar), var(--bar)) top / 100% 5px no-repeat, var(--c-white);
  border-radius: var(--radius);
  padding: 37px 28px 32px;
  box-shadow: var(--shadow);
}

.card:nth-child(2) { --bar: var(--c-teal); }
.card:nth-child(3) { --bar: var(--c-yellow); }

.card h3 { font-size: 20px; margin-bottom: 10px; }

.card p { font-size: 15px; color: var(--c-text-soft); }

.card .card-lead { color: var(--c-main-dark); font-weight: 700; font-size: 14px; margin-bottom: 8px; }

.card-icon { width: 64px; height: 56px; margin-bottom: 18px; object-fit: contain; object-position: left center; }
.card-icon.service-category-icon { width: 76px; height: 76px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.tag-list li {
  font-size: 13px;
  font-weight: 500;
  background: var(--c-bg-soft);
  color: var(--c-main-dark);
  border-radius: 999px;
  padding: 4px 14px;
}

/* ---------- Concerns checklist ---------- */
.concern-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.concern-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  font-weight: 500;
}

.concern-list li::before {
  content: "✓";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-teal);
  color: var(--c-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 4px;
}

.concern-note { text-align: center; margin-top: 28px; color: var(--c-text-soft); }

/* Approved staff characters: reassurance, service scenes, flow and contact. */
.staff-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 32px auto 0;
  max-width: 660px;
}
.staff-reassurance > img { width: 100px; height: 190px; object-fit: contain; flex: none; }
.staff-reassurance .concern-note { margin: 0; text-align: left; }
.staff-reassurance strong { display: block; color: var(--c-text); font-family: var(--font-head); font-size: 20px; margin-bottom: 8px; }
.step-character { width: 100%; height: 154px; object-fit: contain; margin: 6px auto 20px; }
.contact-character { width: 208px; height: 223px; object-fit: contain; margin: 28px auto 0; }
[id^="staff-"] { scroll-margin-top: 110px; }

.culture-grid.character-scenes img {
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: contain;
  background: var(--c-white);
  padding: 12px;
  border: 1px solid var(--c-line);
  box-shadow: none;
}

@media (max-width: 600px) {
  .staff-reassurance { gap: 18px; align-items: center; }
  .staff-reassurance > img { width: 76px; height: 155px; }
  .staff-reassurance strong { font-size: 17px; }
  .staff-reassurance .concern-note { font-size: 13px; }
  .steps.steps-illustrated { grid-template-columns: 1fr; gap: 14px; }
  .steps-illustrated .step { min-height: 178px; padding: 20px 20px 20px 118px; text-align: left; }
  .steps-illustrated .step::before { font-size: 20px; margin-bottom: 2px; }
  .steps-illustrated .step-character { position: absolute; left: 16px; top: 22px; width: 86px; height: 132px; margin: 0; }
  .steps-illustrated .step h3 { font-size: 17px; }
  .steps-illustrated .step p { font-size: 13px; }
  .culture-grid.service-visual.character-scenes { grid-template-columns: 1fr; gap: 20px; }
  .culture-grid.service-visual.character-scenes img { max-width: 360px; margin: 0 auto; }
  .culture-grid.service-visual.character-scenes figcaption { font-size: 14px; }
  .contact-character { width: 168px; height: 180px; margin-top: 22px; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }

.step {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-main);
  margin-bottom: 8px;
}

.step h3 { font-size: 18px; margin-bottom: 8px; }

.step p { font-size: 14px; color: var(--c-text-soft); }

/* ---------- News ---------- */
.news-list { max-width: 780px; margin: 0 auto; }

.news-list li { border-bottom: 1px solid var(--c-line); }

.news-list .news-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 8px;
  flex-wrap: wrap;
}

.news-date { font-size: 14px; color: var(--c-text-soft); flex: none; }

.news-cat {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-teal-dark);
  border: 1px solid var(--c-teal);
  border-radius: 999px;
  padding: 1px 12px;
}

/* ---------- Recruit banner ---------- */
.recruit-banner {
  background: linear-gradient(120deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  border-radius: var(--radius-lg);
  color: var(--c-white);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.recruit-banner-copy { padding: 44px 40px; }

.recruit-banner-copy h2 { font-size: clamp(22px, 3vw, 28px); }

.recruit-banner-copy p { margin-top: 12px; opacity: 0.94; font-size: 15px; }

.recruit-banner-copy .btn { margin-top: 24px; background: var(--c-white); color: var(--c-main-dark); }

.recruit-banner-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA ---------- */
.cta {
  background: var(--c-bg-teal);
  text-align: center;
}

.cta-channels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 32px;
}

.cta-channel {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 26px 34px;
  box-shadow: var(--shadow);
  min-width: 240px;
}

.cta-channel .label { font-size: 13px; font-weight: 700; color: var(--c-teal-dark); letter-spacing: 0.08em; }

.cta-channel .value { font-family: var(--font-head); font-size: 24px; font-weight: 700; margin-top: 4px; }

.cta-channel .note { font-size: 13px; color: var(--c-text-soft); margin-top: 4px; }

/* ---------- Tables ---------- */
.profile-table { width: 100%; border-collapse: collapse; max-width: 780px; margin: 0 auto; }

.profile-table th, .profile-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.profile-table th { width: 30%; color: var(--c-main-dark); font-weight: 700; white-space: nowrap; }

/* ---------- History ---------- */
/* ---------- About us ---------- */
.about-lead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.8;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}

.about-lead .accent { color: var(--c-main-dark); }

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-split > * { min-width: 0; }

.about-body p { color: var(--c-text-soft); line-height: 2.05; }

.about-body p + p { margin-top: 20px; }

.about-figure { margin: 0; }

.about-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.about-figure figcaption {
  font-size: 13px;
  color: var(--c-text-soft);
  text-align: center;
  margin-top: 12px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 20px;
  margin-top: 52px;
}

.about-points li {
  --bar: var(--c-main);
  background: linear-gradient(var(--bar), var(--bar)) top / 100% 4px no-repeat, var(--c-white);
  border-radius: var(--radius);
  padding: 32px 26px 26px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.about-points li:nth-child(2) { --bar: var(--c-teal); }
.about-points li:nth-child(3) { --bar: var(--c-yellow); }

.about-point-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--c-teal-dark);
  display: block;
  margin-bottom: 6px;
}

.about-points li:nth-child(2) .about-point-num { color: var(--c-main-dark); }
.about-points li:nth-child(3) .about-point-num { color: #c9a020; }

.about-points h3 { font-size: 18px; margin-bottom: 10px; }

.about-points p { font-size: 14.5px; color: var(--c-text-soft); line-height: 1.95; }

/* ---------- Service grid (7 services) ---------- */
.service-visual { margin-bottom: 44px; }

.service-visual img { aspect-ratio: 4 / 3; background: var(--c-bg-soft); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 22px;
}

.service-card {
  --bar: var(--c-main);
  background: linear-gradient(var(--bar), var(--bar)) top / 100% 4px no-repeat, var(--c-white);
  border-radius: var(--radius);
  padding: 32px 26px 24px;
  box-shadow: var(--shadow);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.service-card:nth-child(3n+2) { --bar: var(--c-teal); }
.service-card:nth-child(3n) { --bar: var(--c-yellow); }

.service-card .service-num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-teal-dark);
  letter-spacing: 0.14em;
}

.service-card h3 { font-size: 20px; margin: 6px 0 12px; }

.service-card > p { font-size: 15px; color: var(--c-text-soft); flex: 1; }

.service-card .tag-list { margin-top: 18px; }

.history { max-width: 700px; margin: 0 auto; position: relative; padding-left: 28px; }

.history::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--c-line);
}

.history li { position: relative; padding: 0 0 26px 20px; }

.history li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--c-main);
  border: 3px solid var(--c-bg);
}

.history .year { font-family: var(--font-head); font-weight: 700; color: var(--c-main-dark); display: block; }

/* ---------- Values ---------- */
.value-list { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }

.value-list li {
  background: var(--c-white);
  border-left: 6px solid var(--c-teal);
  border-radius: 12px;
  padding: 20px 26px;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.value-list li:nth-child(2) { border-left-color: var(--c-main); }
.value-list li:nth-child(3) { border-left-color: var(--c-yellow); }

/* ---------- Service detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 44px 0;
}

.service-detail:nth-of-type(even) .service-photo { order: 2; }

.service-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.service-copy .service-num {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-teal-dark);
  letter-spacing: 0.12em;
}

.service-copy h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 6px; }

.service-copy .lead { color: var(--c-main-dark); font-weight: 700; margin-top: 10px; }

.service-copy p.desc { margin-top: 12px; color: var(--c-text-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 16px; }

.faq-list details {
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::before {
  content: "Q";
  flex: none;
  font-family: var(--font-head);
  color: var(--c-main-dark);
  font-size: 20px;
  font-weight: 700;
}

.faq-answer { display: flex; gap: 14px; padding: 0 24px 22px; color: var(--c-text-soft); }

.faq-answer::before {
  content: "A";
  flex: none;
  font-family: var(--font-head);
  color: var(--c-teal-dark);
  font-size: 20px;
  font-weight: 700;
}

/* ---------- Recruit ---------- */
.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.job-card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.job-card .job-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-white);
  background: var(--c-teal);
  border-radius: 999px;
  padding: 3px 14px;
}

.job-card h3 { font-size: 20px; margin-top: 12px; }

.job-card p { font-size: 14px; color: var(--c-text-soft); margin-top: 8px; }

.job-card {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  align-items: start;
}

.job-card .job-type { grid-column: 1; grid-row: 1; justify-self: start; }

.job-card h3 { grid-column: 1; grid-row: 2; }

.job-card p { grid-column: 1 / -1; grid-row: 3; }

.job-illust {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 84px;
  height: 84px;
  background: var(--c-bg-soft);
  border-radius: 50%;
  overflow: hidden;
}

.job-illust img { height: 76px; width: auto; }

/* ---------- Instagram embed ---------- */
.insta-embed { max-width: 540px; margin: 0 auto; }

.insta-embed .instagram-media {
  margin: 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.benefit-list li {
  background: var(--c-white);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.form-field { margin-bottom: 22px; }

.form-field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }

.form-field .required {
  font-size: 11px;
  color: var(--c-white);
  background: var(--c-main);
  border-radius: 4px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1.5px solid var(--c-line);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--c-teal);
  outline-offset: 1px;
  background: var(--c-white);
}

.form-field textarea { min-height: 160px; resize: vertical; }

.form-field .error-msg { color: #c0392b; font-size: 13px; margin-top: 6px; display: none; }

.form-field.has-error .error-msg { display: block; }

.form-field.has-error input, .form-field.has-error textarea { border-color: #c0392b; }

.privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--c-bg-soft);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
}

.privacy-check input { margin-top: 6px; }

/* Privacy notice and access map migrated from the existing site. */
.text-link { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { text-decoration-thickness: 2px; }
.text-link:focus-visible { outline: 2px solid var(--c-text); outline-offset: 4px; }
.privacy-policy-link { margin-bottom: 14px; font-size: 14px; }
#privacy-policy, #f-privacy, #access { scroll-margin-top: 100px; }
.privacy-policy-body, .access-body { max-width: 780px; margin: 0 auto; overflow-wrap: anywhere; }
.privacy-policy-disclosure { max-width: 780px; margin: 0 auto; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-white); }
.privacy-policy-disclosure summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 20px 24px; cursor: pointer; font-weight: 700; list-style: none; }
.privacy-policy-disclosure summary::-webkit-details-marker { display: none; }
.privacy-policy-disclosure summary::after { content: "+"; margin-left: auto; font-size: 24px; line-height: 1; }
.privacy-policy-disclosure[open] summary::after { content: "−"; }
.privacy-policy-disclosure summary:focus-visible { outline: 2px solid var(--c-text); outline-offset: 4px; border-radius: var(--radius); }
.privacy-policy-disclosure .privacy-policy-body { padding: 8px 24px 24px; }
.privacy-open-label, .privacy-close-label { font-size: 13px; font-weight: 400; color: var(--c-text-soft); }
.privacy-close-label, .privacy-policy-disclosure[open] .privacy-open-label { display: none; }
.privacy-policy-disclosure[open] .privacy-close-label { display: inline; }
.privacy-policy-item + .privacy-policy-item { margin-top: 32px; }
.privacy-policy-item h3 { font-size: 19px; margin-bottom: 12px; }
.privacy-policy-item ul { list-style: disc; padding-left: 1.4em; }
.privacy-policy-item li + li { margin-top: 10px; }
.privacy-policy-return { margin-top: 36px; }
.access-map { display: block; width: 100%; height: clamp(300px, 40vw, 400px); border: 0; border-radius: var(--radius); margin: 24px 0 18px; }

.form-submitted {
  background: var(--c-bg-teal);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  display: none;
}

.form-submitted h3 { color: var(--c-teal-dark); font-size: 22px; }

.form-submitted p { margin-top: 10px; color: var(--c-text-soft); font-size: 14px; }

/* 人間確認の枠（幅300px）がスマホ幅で収まるよう、狭い画面ではフォームの左右余白を詰める */
@media (max-width: 400px) {
  .contact-form { padding: 28px 12px; }
}

/* ---------- Header SNS link ---------- */
.global-nav { margin-left: auto; }

.header-sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.2s;
}

.header-sns:hover { background: var(--c-bg-soft); }

.header-sns:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }

.header-sns svg { width: 24px; height: 24px; fill: var(--c-main-dark); }

/* ---------- Culture gallery ---------- */
/* ---------- Company: philosophy (slogan / MVV / belief) ---------- */
.philosophy-slogan {
  position: relative;
  text-align: center;
  margin-bottom: 56px;
}

.philosophy-slogan > :not(.slogan-mark) { position: relative; z-index: 1; }

.slogan-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  pointer-events: none;
}

.philosophy-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-main-dark);
  background: var(--c-bg-soft);
  border-radius: 999px;
  padding: 6px 18px;
}

.slogan-main {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.7;
  margin-top: 20px;
}

.slogan-sub {
  margin-top: 18px;
  color: var(--c-text-soft);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.philosophy-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 36px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.philosophy-body {
  margin: auto 0;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.philosophy-card-en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-teal-dark);
  font-weight: 700;
}

.philosophy-card h3,
.belief-block h3 {
  font-size: 21px;
  color: var(--c-main-dark);
  margin-top: 6px;
}

.philosophy-card p {
  margin-top: 16px;
  line-height: 2.1;
}

.belief-block {
  position: relative;
  max-width: 820px;
  margin: 48px auto 0;
  background: var(--c-bg-soft);
  border-radius: var(--radius-lg);
  padding: 48px 44px 52px;
  text-align: center;
}

.belief-block p {
  margin-top: 24px;
  line-height: 2.2;
}

.belief-illust {
  position: absolute;
  right: 32px;
  bottom: 28px;
  width: 120px;
  height: auto;
}

/* ---------- Recruit: message photo & interviews ---------- */
.message-photo {
  max-width: 860px;
  margin: 0 auto;
}

.message-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.interview-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.interview-card > img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.interview-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.interview-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-teal-dark);
}

.interview-name {
  font-size: 20px;
  margin-top: 4px;
}

.interview-quote {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-main-dark);
  line-height: 1.7;
  margin-top: 14px;
}

.interview-text {
  font-size: 14px;
  color: var(--c-text-soft);
  margin-top: 12px;
}

.interview-profile {
  font-size: 12px;
  color: var(--c-text-soft);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--c-line);
}

.culture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.culture-grid figure { margin: 0; }

.culture-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.culture-grid figcaption {
  font-size: 13px;
  color: var(--c-text-soft);
  text-align: center;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #4a3f35;
  color: #f5ede3;
  padding: 56px 0 24px;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img { height: 36px; width: auto; }

.footer-info { font-size: 14px; margin-top: 18px; line-height: 2; opacity: 0.9; font-style: normal; }

.footer-nav ul { display: grid; gap: 10px; }

.footer-nav a { font-size: 14px; opacity: 0.9; }

.footer-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.copyright {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 44px;
  padding: 0 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid, .job-grid { grid-template-columns: 1fr 1fr; }
  .interview-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .benefit-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 56px 0; }

  .header-sns { order: 2; margin-left: auto; margin-right: -8px; width: 44px; height: 44px; }

  .nav-toggle { order: 3; }

  .culture-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .culture-grid figcaption { font-size: 11px; margin-top: 6px; }

  .nav-toggle { display: flex; }

  .global-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    padding: 20px 24px 28px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    box-shadow: 0 16px 30px rgba(61, 50, 41, 0.12);
  }

  .global-nav.is-open { transform: translateY(0); }

  .global-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }

  .global-nav a { display: block; padding: 12px 8px; font-size: 16px; }

  .nav-cta { text-align: center; margin-top: 10px; }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-full { min-height: 72vh; min-height: 72svh; }

  .hero-copy .hero-lead { font-size: 28px; }

  .hero-full .hero-inner { padding: 72px 24px; }

  .hero-scrim {
    background:
      linear-gradient(to top, rgba(40, 28, 18, 0.66) 0%, rgba(40, 28, 18, 0.34) 55%, rgba(40, 28, 18, 0.12) 100%);
  }

  .card-grid, .job-grid, .steps, .concern-list { grid-template-columns: 1fr; }

  .recruit-banner { grid-template-columns: 1fr; }

  .recruit-banner-photo { order: -1; max-height: 220px; }

  .philosophy-grid { grid-template-columns: 1fr; }

  .philosophy-card { padding: 28px 24px 32px; }

  .belief-block { padding: 36px 22px 40px; }

  .belief-illust { position: static; display: block; width: 96px; margin: 24px 0 0 auto; }

  .slogan-mark { width: 260px; }

  .job-illust { width: 72px; height: 72px; }

  .job-illust img { height: 64px; }

  .about-split { grid-template-columns: 1fr; gap: 28px; }

  .about-figure { order: -1; }

  .about-figure img { aspect-ratio: 4 / 3; }

  .about-points { margin-top: 36px; }

  .service-detail { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }

  .service-detail:nth-of-type(even) .service-photo { order: 0; }

  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-inner { grid-template-columns: 1fr; }

  .culture-grid.service-visual { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 32px; }

  .culture-grid.service-visual figcaption { font-size: 11px; margin-top: 8px; line-height: 1.6; }
}

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