/* 全ページ共通。色の直値は :root のみ（12 / 1） */

/* ===== 1. トークン ===== */
:root {
  --c-bg: #FFFFFF;
  --c-surface: #F7F5F0;
  --c-key: #5A9A38;
  --c-deep: #4E6E3C;
  --c-accent: #FFC629;
  --c-accent-hover: #F5B400;
  --c-about-bg: #EEF6E4;
  --c-ground: #E9EAE2;
  --c-recruit: #FEFCDD;
  --c-recruit-fg: #333333;
  --c-recruit-body: #333333;
  --c-recruit-btn: #FFC629;
  --c-recruit-btn-hover: #F5B400;
  --c-recruit-btn-fg: #333333;
  --c-recruit-btn-hover-fg: #333333;
  --c-text: #333333;
  --c-text-sub: #757575;
  --c-line: #E5E5E5;
  --c-hero-frame: #FFFFFFE6;
  --c-shadow: #4E6E3C1A;
  --r-card: 16px;
  --r-sm: 8px;
  --r-pill: 999px;
  --sh-card: 0 14px 34px var(--c-shadow);
  --font-copy: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-hand: "Klee One", "Yu Mincho", serif;
}

/* ===== 2. リセット・本文 ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 2.0;
  letter-spacing: .02em;
  padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--c-key);
  text-underline-offset: .25em;
}

a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--c-key);
}

:focus-visible {
  outline: 3px solid var(--c-deep);
  outline-offset: 2px;
}

section {
  position: relative;
  padding: 64px 0;
  overflow: hidden;
}

/* ===== 3. レイアウト ===== */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 64px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-deep);
  color: var(--c-bg);
  padding: 8px 16px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 80;
}

.deco {
  position: absolute;
  pointer-events: none;
  color: var(--c-deep);
}

.ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== 4. ヘッダー・ドロワー ===== */
.hd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 72px;
  background: var(--c-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}

.hd-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 64px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  height: 48px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: 224px;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  align-items: center;
  flex-shrink: 0;
}

.nav a {
  color: var(--c-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 4px 0;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--c-key);
}

.hd-tel {
  text-align: right;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.hd-tel .n {
  font-size: 17.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hd-tel .t {
  display: block;
  font-size: 10px;
  color: var(--c-text-sub);
  font-weight: 400;
}

.hd .btn {
  flex-shrink: 0;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--c-bg);
  display: none;
  padding: 72px 32px 40px;
}

.drawer.is-open {
  display: block;
}

.drawer a {
  text-decoration: none;
  display: block;
  font-size: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
}

.drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--c-key);
  font-size: 28px;
  cursor: pointer;
}

body.drawer-open {
  overflow: hidden;
}

/* ===== 5. ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  padding: 15px 34px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  border: 0;
  line-height: 1.4;
  min-height: 48px;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn-sm {
  padding: 11px 22px;
  font-size: 13px;
  min-height: 0;
}

.btn .ic-btn {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.btn:hover>.ic-end,
.btn:focus-visible>.ic-end {
  transform: translateX(4px);
}

.btn-sm .ic-btn {
  width: 16px;
  height: 16px;
}

.btn-cta {
  background: var(--c-accent);
  color: var(--c-text);
}

.btn-cta:hover {
  background: var(--c-accent-hover);
}

.btn-recruit {
  background: var(--c-recruit-btn);
  color: var(--c-recruit-btn-fg);
}

.btn-recruit:hover {
  background: var(--c-recruit-btn-hover);
  color: var(--c-recruit-btn-hover-fg);
}

.btn-line {
  background: var(--c-bg);
  color: var(--c-key);
  border: 1.5px solid var(--c-key);
}

.btn-line:hover {
  background: var(--c-key);
  color: var(--c-bg);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ===== 6. 見出し・本文補助 ===== */
h1,
h2,
h3 {
  text-wrap: balance;
}

h2 {
  position: relative;
  font-size: 32px;
  line-height: 1.55;
  letter-spacing: .04em;
  font-weight: 500;
  color: var(--c-key);
  margin-bottom: 24px;
}

h3 {
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: .02em;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-plain {
  padding-top: 48px;
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  position: relative;
  font-size: 32px;
  line-height: 1.55;
  letter-spacing: .04em;
  font-weight: 500;
  margin: 0;
}

h2::after,
.page-head h1::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: var(--c-text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s ease-out;
}

h2::after {
  background: var(--c-key);
}

h2.is-in::after,
.page-head h1.is-in::after {
  transform: scaleX(1);
}

.tuner h2::after {
  content: none;
}

.page-en {
  font-family: var(--font-copy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  color: var(--c-text-sub);
  margin: 8px 0 0;
}

.lead {
  margin-bottom: 24px;
}

.lead:last-of-type {
  margin-bottom: 0;
}

.small {
  font-size: 13.5px;
  line-height: 1.95;
}

/* ===== 7. 下層アイキャッチ（ごあいさつ・サービス・採用） ===== */
.page-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
  animation: hero-zoom 8s ease-out forwards;
}

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

.page-hero-in {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 64px 32px;
}

.page-hero h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.55;
  letter-spacing: .04em;
  font-weight: 500;
  color: var(--c-bg);
}

.page-hero .page-en {
  color: var(--c-bg);
  font-size: 27px;
}

.page-hero-about img {
  object-position: 40% 68%;
}

/* ===== 8. リスト（サービス・処遇改善加算） ===== */
.svc-list {
  padding-left: 1.5em;
}

.svc-list li+li {
  margin-top: 8px;
}

.bn-item+.bn-item {
  margin-top: 56px;
}

/* ===== 9. フッター ===== */
.ft {
  background: var(--c-key);
  color: var(--c-bg);
  padding: 48px 0 0;
  position: relative;
  --ft-tree-h: 80px;
}

.ft-tree {
  position: absolute;
  right: 5%;
  width: calc(var(--ft-tree-h) * 0.762);
  height: var(--ft-tree-h);
  top: calc(var(--ft-tree-h) * -0.63);
  pointer-events: none;
  z-index: 0;
}

.ft-tree-up {
  color: var(--c-deep);
  opacity: .20;
  clip-path: inset(0 0 37% 0);
}

.ft-tree-down {
  color: var(--c-bg);
  opacity: .70;
  clip-path: inset(63% 0 0 0);
}

.ft a {
  color: var(--c-bg);
  text-decoration: none;
}

.ft-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.ft-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ft-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  white-space: nowrap;
}

.ft-tel a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ft-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 44px;
}

.ft-tel .ic {
  width: 22px;
  height: 22px;
}

.ft-copy {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--c-bg);
  text-align: center;
  font-size: 12px;
  position: relative;
  z-index: 1;
}

/* ===== 10. SPバー ===== */
.spbar {
  display: none;
}

/* ===== 11. 出現 ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal .6s ease-out forwards;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  h2::after,
  .page-head h1::after {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== 12. SP（900px） ===== */
@media(max-width:900px) {

  .wrap,
  .hd-in,
  .page-hero-in {
    padding: 0 20px;
  }

  .page-hero-in {
    padding-bottom: 24px;
  }

  .nav,
  .hd-tel,
  .hd .btn-cta {
    display: none;
  }

  .ft-in {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ft-nav {
    padding-top: 0;
  }

  .ft-name {
    font-size: 20px;
    white-space: normal;
  }

  .spbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    height: 64px;
    background: var(--c-accent);
  }

  .spbar>*+* {
    border-left: 1px solid var(--c-deep);
  }

  .spbar a,
  .spbar button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--c-text);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    min-height: 64px;
    padding: 8px 4px;
  }

  .spbar .ic {
    width: 20px;
    height: 20px;
  }

  body {
    padding-bottom: 64px;
  }
}

/* ===== 13. SP（767px・文字） ===== */
@media(max-width:767px) {
  h2,
  .page-head h1 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  .page-en {
    font-size: 12px;
  }

  .page-hero .page-en {
    font-size: 27px;
  }

  .small {
    font-size: 13px;
  }

  .btn-row {
    margin-top: 32px;
  }
}
