:root {
  --green-deep: #2f4d34;
  --green-main: #3c6e47;
  --green-soft: #6a8f5c;
  --gold: #c9a24b;
  --cream: #f7f5ef;
  --ink: #26301f;
  --ink-soft: #55604a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(38, 48, 31, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 見出し末尾の1〜2文字だけが孤立して次行に落ちるのを防ぐ */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP",
    "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Draft banner ---------- */
.draft-banner {
  background: var(--green-deep);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px min(6vw, 60px);
  background: rgba(247, 245, 239, 0.86);
  backdrop-filter: blur(8px);
  transition: padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-shrunk {
  padding: 12px min(6vw, 60px);
  box-shadow: 0 8px 24px rgba(38, 48, 31, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-deep);
}

.brand img { width: 38px; height: auto; }

.brand-en {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  gap: clamp(12px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

nav a {
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}

nav a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 6s linear;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(31, 43, 26, 0.35) 0%,
    rgba(31, 43, 26, 0.25) 45%,
    rgba(20, 28, 17, 0.82) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 min(6vw, 60px) 72px;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
  animation: fadeUp 1s var(--ease) both;
}

.hero-catch {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.4;
  margin: 0 0 18px;
  font-weight: 700;
  animation: fadeUp 1s var(--ease) 0.15s both;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 30px;
  animation: fadeUp 1s var(--ease) 0.3s both;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--white);
  animation: fadeUp 1s var(--ease) 0.45s both;
}

.hero-scroll .line {
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: slideLine 2.2s var(--ease) infinite;
}

@keyframes slideLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections generic ---------- */
section { padding: min(11vw, 120px) 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--green-deep);
  margin: 0 0 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  margin-bottom: min(10vw, 100px);
}

.about-body { color: var(--ink-soft); }

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-direction: column;
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--green-deep);
}

.stat-unit { font-size: 0.85rem; color: var(--ink-soft); }
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
}

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; aspect-ratio: 16/9; }
}

/* ---------- 会社概要 ---------- */
.company-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 50px);
  margin-bottom: min(8vw, 80px);
}

.company-heading {
  margin: 0 0 26px;
  font-size: 1.25rem;
  color: var(--green-deep);
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(201, 162, 74, 0.35);
}

.company-facts {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 16px;
  column-gap: 24px;
  margin: 0;
}

.company-facts dt {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-soft);
  padding-top: 2px;
}

.company-facts dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.8;
}

.company-facts dt,
.company-facts dd {
  border-top: 1px solid rgba(38, 48, 31, 0.08);
  padding-top: 14px;
}

.company-facts dt:first-of-type,
.company-facts dd:first-of-type {
  border-top: none;
  padding-top: 0;
}

.company-note {
  margin: 22px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .company-facts { grid-template-columns: 1fr; row-gap: 4px; }
  .company-facts dt { border-top: 1px solid rgba(38, 48, 31, 0.08); margin-top: 14px; padding-top: 14px; }
  .company-facts dt:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
  .company-facts dd { padding-top: 4px; border-top: none; }
}

/* ---------- 沿革 ---------- */
.history-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 50px);
}

.history-heading {
  margin: 0 0 22px;
  font-size: 1.25rem;
  color: var(--green-deep);
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(201, 162, 74, 0.35);
}

.history-list {
  position: relative;
  max-height: 15.5em;
  overflow: hidden;
}

.history-list.is-open { max-height: none; }

.history-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--white));
  pointer-events: none;
}

.history-list.is-open::after { display: none; }

.history-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(38, 48, 31, 0.08);
  font-size: 0.88rem;
}

.history-row:first-child { border-top: none; padding-top: 0; }

.history-date {
  color: var(--green-soft);
  font-weight: 700;
  white-space: nowrap;
}

.history-text { color: var(--ink-soft); }

.history-toggle {
  display: block;
  margin: 18px auto 0;
  background: none;
  border: 1px solid rgba(38, 48, 31, 0.2);
  border-radius: 999px;
  padding: 9px 26px;
  font-size: 0.82rem;
  color: var(--green-deep);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.history-toggle:hover { background: rgba(201, 162, 74, 0.12); border-color: var(--gold); }

@media (max-width: 560px) {
  .history-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
}

.service-card:hover { transform: translateY(-8px); }

.service-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-img { transform: scale(1.06); }

.service-card h3 {
  color: var(--green-deep);
  margin: 20px 20px 8px;
  font-size: 1.08rem;
}

.service-card p {
  margin: 0 20px 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(20, 28, 17, 0.75));
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  padding: 30px;
}

.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 32px;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

/* ---------- Recruit ---------- */
.recruit {
  background: var(--green-deep);
  color: var(--cream);
  position: relative;
}

.recruit .section-title { color: var(--white); }
.recruit .about-body,
.recruit-body { color: rgba(247, 245, 239, 0.82); }

.recruit-lead {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 20px;
  font-weight: 700;
}

.recruit-body {
  max-width: 680px;
  margin: 0 auto 46px;
  text-align: center;
}

.recruit-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.recruit-point {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.recruit-point h3 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 1.02rem;
}

.recruit-point p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(247, 245, 239, 0.82);
}

.recruit-cta-wrap { text-align: center; }

.recruit-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 38px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}

.recruit-cta:hover { background: #ddb96a; transform: translateY(-2px); }

/* ---------- Access ---------- */
.access-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.access-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.access-card dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--green-soft);
  margin-top: 18px;
}

.access-card dt:first-child { margin-top: 0; }

.access-card dd {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--ink);
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

@media (max-width: 860px) {
  .access-inner { grid-template-columns: 1fr; }
}

.contact-form {
  max-width: 560px;
  margin: 48px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 22px;
  color: var(--green-deep);
  font-size: 1.05rem;
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(38, 48, 31, 0.18);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.94rem;
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-main);
}

.form-submit {
  display: inline-block;
  background: var(--green-deep);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 34px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.form-submit:hover { background: var(--green-main); }

.form-note {
  margin: 14px 0 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.form-note.is-alert { color: var(--gold); font-weight: 700; }

/* スパム対策のハニーポット欄。人間の目には映らないが、DOM上には存在する */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 245, 239, 0.6);
  text-align: center;
  padding: 34px 20px;
  font-size: 0.8rem;
}

/* ---------- ハンバーガーメニュー（スマホ幅） ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(38, 48, 31, 0.2);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--green-deep);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-header { padding: 16px 5vw; }
  .brand span.brand-en { display: none; }
  .nav-toggle { display: flex; }

  #site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: 0 16px 30px rgba(38, 48, 31, 0.14);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }

  #site-nav.is-open { max-height: 420px; }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 6px 5vw 18px;
    font-size: 0.95rem;
  }

  nav ul li { width: 100%; }

  nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid rgba(38, 48, 31, 0.1);
  }

  nav a::after { display: none; }
}

/* ---------- 新卒採用ページ ---------- */
.shin-alt { background: var(--white); }

.shin-hero {
  background: var(--green-deep);
  color: var(--white);
  padding: min(9vw, 90px) 0 min(6vw, 60px);
}

.shin-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.shin-hero h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  line-height: 1.5;
  margin: 0 0 18px;
}

.shin-hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.shin-qualities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.shin-quality {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.shin-quality h3 { margin: 0 0 12px; color: var(--green-deep); font-size: 1.05rem; }
.shin-quality p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

.shin-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.shin-step {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid rgba(38, 48, 31, 0.08);
}

.shin-step .step-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}

.shin-step h3 { margin: 0 0 8px; font-size: 1rem; color: var(--green-deep); }
.shin-step p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }

.shin-job {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 30px;
}

.shin-job h3 { margin: 0 0 14px; color: var(--green-deep); font-size: 1.15rem; }
.shin-job p { margin: 0; color: var(--ink-soft); }

.shin-salary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.shin-salary-item {
  text-align: center;
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
}

.shin-salary-item .amount {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}

.shin-salary-item .age {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.shin-salary-note {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.shin-req {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shin-req th, .shin-req td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  border-top: 1px solid rgba(38, 48, 31, 0.08);
}

.shin-req tr:first-child th, .shin-req tr:first-child td { border-top: none; }

.shin-req th {
  width: 160px;
  color: var(--green-soft);
  font-weight: 700;
  vertical-align: top;
}

.shin-req td { color: var(--ink); }

.shin-req-source {
  margin: 16px 4px 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.shin-voice {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 44px);
  max-width: 680px;
  margin: 0 auto;
}

.shin-voice .role {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-soft);
  margin-bottom: 16px;
}

.shin-voice blockquote {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.8;
}

.shin-voice p.sub { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

@media (max-width: 560px) {
  .shin-req th, .shin-req td { display: block; width: auto; }
  .shin-req th { padding-bottom: 4px; }
  .shin-req td { padding-top: 4px; }
}
