/* 廣部農産
   背景は暖かい白、文字は黒に近い色、区切りは細い線。
   緑と黄橙は、リンク・現在地・細いアクセントだけに使う。
   角丸、影、グラデーション、英語の見出しは足さない。
*/

:root {
  --paper: #f3f0e8;
  --ink: #242320;
  --muted: #5c564e;
  --line: #d4cdc1;
  --green: #1f4a34;
  --ear: #9a6230;
  --white: #fffcf7;
  --label: #efeae1;
  --photo: #e4ddd2;
  --max: 46rem;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  text-underline-offset: 0.15em;
}

a:visited {
  color: var(--green);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--green);
  padding: 0.35rem 0.7rem;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.75rem;
  row-gap: 0.35rem;
  min-height: 4.25rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand:visited {
  color: var(--ink);
}

.brand:hover .brand__name {
  color: var(--green);
}

.brand__name {
  color: var(--ink);
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.125rem;
  line-height: 1.3;
  white-space: nowrap;
}

.brand__logo {
  display: block;
  width: 3.75rem;
  height: auto;
}

.menu-button {
  display: none;
  flex: 0 0 auto;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a,
.site-nav a:visited {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  padding: 0.15rem 0;
}

.site-nav a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--ear);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

main {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

h1 {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
}

h3 {
  margin: 1.25rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

p {
  margin: 0 0 1rem;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.photo {
  margin: 1.5rem 0 1.75rem;
}

.photo__frame {
  display: grid;
  aspect-ratio: 3 / 2;
  background: var(--photo);
  border: 1px solid var(--line);
  color: var(--muted);
  overflow: hidden;
}

.photo__frame--wide {
  aspect-ratio: 16 / 9;
}

.photo__frame > img,
.photo__frame > .photo__pending {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.photo__frame img {
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.photo__pending {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.photo figcaption {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.index-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.index-list a,
.index-list a:visited {
  display: block;
  padding: 0.9rem 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.index-list__title {
  display: block;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 0.18em;
}

.index-list a:hover .index-list__title {
  color: var(--green);
}

.index-list__text {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-weight: 400;
}

.company-profile,
.recruit-condition {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.company-profile th,
.company-profile td,
.recruit-condition th,
.recruit-condition td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.company-profile th,
.recruit-condition th {
  width: 9rem;
  font-weight: 600;
  background: var(--label);
}

.company-profile tr:last-child th,
.company-profile tr:last-child td,
.recruit-condition tr:last-child th,
.recruit-condition tr:last-child td {
  border-bottom: 0;
}

.company-profile p,
.recruit-condition p {
  margin: 0 0 0.35rem;
}

.company-profile p:last-child,
.recruit-condition p:last-child {
  margin-bottom: 0;
}

.rice-variety h3 {
  margin-top: 0;
}

.rice-variety + .rice-variety {
  margin-top: 1.5rem;
}

.steps,
.flow {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.steps li,
.flow li {
  margin: 0.35rem 0;
  padding-left: 0.15rem;
}

.steps strong {
  font-weight: 600;
  margin-right: 0.45em;
}

.farm-process {
  margin-top: 2.5rem;
}

.farm-process > h2,
.farm-process > h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.combine-play {
  margin-top: 2rem;
}

.form-status {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ear);
}

.form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b7b0a4;
  border-radius: 0;
  padding: 0.55rem 0.65rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.req {
  margin-left: 0.35rem;
  color: #7a3030;
  font-size: 0.875rem;
  font-weight: 600;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.check input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.45rem;
  flex: none;
}

.button {
  justify-self: start;
  font: inherit;
  color: var(--green);
  background: var(--white);
  border: 1px solid var(--green);
  border-radius: 0;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.button:disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-result:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer address {
  font-style: normal;
  line-height: 1.8;
}

.site-footer strong {
  color: var(--ink);
  font-weight: 600;
}

.site-footer a {
  overflow-wrap: anywhere;
}

.footer-links {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.copyright {
  margin: 0;
}

@media (min-width: 721px) {
  h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 720px) {
  .has-menu .menu-button {
    display: inline-block;
  }

  .has-menu .site-nav {
    display: none;
    flex-basis: 100%;
    margin: 0;
  }

  .has-menu .site-nav.is-open {
    display: block;
  }

  .has-menu .site-nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
  }

  .has-menu .site-nav a {
    display: block;
    padding: 0.7rem 0;
  }

  .brand__logo {
    width: 2.75rem;
  }

  .brand__name {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .company-profile th,
  .company-profile td,
  .recruit-condition th,
  .recruit-condition td {
    display: block;
    width: auto;
  }

  .company-profile th,
  .recruit-condition th {
    border-bottom: 0;
    padding-bottom: 0.15rem;
  }

  .company-profile td,
  .recruit-condition td {
    padding-top: 0.15rem;
  }
}
