html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  background: #FAF8F5;
  color: #2D2D2D;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: .03em;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
@media (min-width: 768px) { body { font-size: 18px; } }

h1, h2, h3, .serif {
  font-family: "Noto Serif JP", serif;
  font-feature-settings: "palt";
  line-height: 1.55;
  letter-spacing: .05em;
}
/* 日本語の見出しを文節の途中で折り返さない */
.ph { display: inline-block; }

:focus-visible { outline: 3px solid #C88A4B; outline-offset: 3px; border-radius: 4px; }

/* いま見ているページをメニューで示す */
nav a[aria-current="page"] { color: #2C5E43; font-weight: 700; text-decoration: underline; text-decoration-color: #C88A4B; text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* スクロール時のフェードイン（JS無効時・動きを減らす設定では常に表示） */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.3,1); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* 写真の色味をサイトの温かいトーンに揃える */
.photo { background: #E9E1D3; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.14) saturate(.92); }

/* 青海波：緑の帯にだけ敷く和文様 */
.seigaiha {
  background-color: #2C5E43;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cdefs%3E%3Cg id='s' fill='%232C5E43' stroke='%23fff' stroke-opacity='.07'%3E%3Ccircle r='28'/%3E%3Ccircle r='19'/%3E%3Ccircle r='10'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23s' x='28' y='0'/%3E%3Cuse href='%23s' x='0' y='14'/%3E%3Cuse href='%23s' x='56' y='14'/%3E%3Cuse href='%23s' x='28' y='28'/%3E%3C/svg%3E");
}

/* 見出し上の結び目（細い線） */
.knot { display: flex; align-items: center; gap: .6rem; color: #8A5720; font-weight: 500; font-size: 1rem; letter-spacing: .12em; }
.knot::before { content: ""; width: 2.25rem; height: 1px; background: #C88A4B; }
.knot.center { justify-content: center; }
.knot.center::after { content: ""; width: 2.25rem; height: 1px; background: #C88A4B; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(180deg); }
.faq-icon { transition: transform .3s ease; }

input, select, textarea { font-size: 18px; } /* iOSの自動ズーム防止を兼ねる */
.field {
  width: 100%; min-height: 58px; padding: .8rem 1rem;
  background: #fff; border: 1.5px solid #CFC4B0; border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: #6F6A62; opacity: 1; }
.field:focus { outline: none; border-color: #2C5E43; box-shadow: 0 0 0 3px rgba(44,94,67,.18); }

#sticky-cta { padding-bottom: env(safe-area-inset-bottom); transition: transform .25s ease; }
#sticky-cta.is-hidden { transform: translateY(110%); }

/* 求人の呼びかけで、いちばん伝えたい言葉（深い赤＋淡いマーカー） */
.em-warm {
  color: #A3312A; font-weight: 700; font-size: 1.12em;
  background: linear-gradient(transparent 62%, #F9DCD5 62%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* 緑の帯の上では赤が沈むので、明るい琥珀色にする */
.seigaiha .em-warm { color: #FFE2B8; background: linear-gradient(transparent 62%, rgba(255,226,184,.22) 62%); }

/* 受け入れ状況の表（公開ページ・管理ページ共通） */
.aki-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: #fff; border: 2px solid #2C5E43; border-radius: 14px; overflow: hidden; }
.aki-table th, .aki-table td { text-align: center; padding: .55rem .2rem; border-bottom: 1px solid #E4DBCB; border-left: 1px solid #E4DBCB; line-height: 1.4; }
.aki-table tr > *:first-child { border-left: 0; }
.aki-table tbody tr:last-child > * { border-bottom: 0; }
.aki-table thead th { background: #2C5E43; color: #fff; font-family: "Noto Serif JP", serif; font-size: 1.35em; font-weight: 700; border-color: rgba(255,255,255,.25); }
.aki-table thead th:first-child, .aki-table tbody th { width: 34%; font-size: .95em; font-weight: 700; }
.aki-table tbody th { background: #F4EFE6; color: #214832; }
@media (min-width: 640px) { .aki-table thead th:first-child, .aki-table tbody th { width: 26%; font-size: 1.05em; } }
.aki-ok { color: #2C5E43; font-size: 1.7em; font-weight: 700; line-height: 1; }
.aki-ng { color: #B3ACA2; font-size: 1.25em; line-height: 1; }
#admin-grid thead th:first-child, #admin-grid tbody th { width: 40%; }
#admin-grid .field { padding-left: .25rem; padding-right: .25rem; letter-spacing: 0; }
.aki-btn { width: 100%; min-height: 56px; border-radius: 10px; font-size: 1.7rem; font-weight: 700; border: 2px solid #CFC4B0; background: #F4EFE6; color: #8C857B; }
.aki-btn[aria-pressed="true"] { background: #2C5E43; border-color: #2C5E43; color: #fff; }

/* 会社名・住所・事業名の振り仮名 */
ruby { ruby-position: over; }
rt { font-size: max(.45em, 12px); font-weight: 500; letter-spacing: 0; line-height: 1.1; }
dd, footer p, footer li { line-height: 2.4 !important; }
