:root {
  --green: #22B14C;
  --green-dark: #1B8C3C;
  --green-soft: #E8F6EC;
  --ink: #171717;
  --body: #444444;
  --muted: #767676;
  --paper: #F4F4F4;
  --panel: #FFFFFF;
  --line: #E1E1E1;
  --header-bg: #FFFFFF;
  --footer-bg: #EDEDED;
  --footer-line: #D4D4D4;
  --footer-body: #555555;
  --footer-heading: #171717;
  --danger: #D93025;
  --radius: 3px;
  --radius-lg: 16px;
  --wrap: 1120px;
  --step: clamp(1.6rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.nav-open { overflow: hidden; }

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

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.4; margin: 0; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 12px; top: 12px; }

#site-header,
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  min-height: 66px;
  display: block;
}

.header__bar {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px 20px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__logo { height: 40px; width: auto; }
.brand.is-empty::after {
  content: "かえる重工";
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bell-btn:hover { text-decoration: none; border-color: var(--green); background: var(--green-soft); }
.bell-btn__icon { width: 22px; height: 22px; display: flex; }
.bell-btn__icon img { width: 100%; height: 100%; }
.bell-btn__icon.is-empty { position: relative; }
.bell-btn__icon.is-empty::after { content: ""; position: absolute; inset: 5px; background: var(--green); border-radius: 50%; }
.bell-btn__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--header-bg);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  height: 40px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--green);
  border-radius: 30px;
  padding: 0 16px 0 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.menu-toggle__box { width: 20px; height: 15px; position: relative; flex: none; }
.menu-toggle__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}
.menu-toggle__bar:nth-child(1) { top: 0; }
.menu-toggle__bar:nth-child(2) { top: 6.5px; }
.menu-toggle__bar:nth-child(3) { top: 13px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { top: 6.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { top: 6.5px; transform: rotate(-45deg); }

.nav__list { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }

.navbtn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  box-sizing: border-box;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--green);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.navbtn:hover { text-decoration: none; background: var(--green-soft); transform: translateY(-1px); }
.navbtn.is-current { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }

.navbtn__icon { width: 20px; height: 20px; flex: none; display: flex; }
.navbtn__icon img { width: 100%; height: 100%; object-fit: contain; }
.navbtn__icon.is-empty { position: relative; }
.navbtn__icon.is-empty::after { content: ""; position: absolute; inset: 6px; background: var(--green); border-radius: 2px; }

.banner { background: var(--ink); }

.banner__inner { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 0 20px; }

.banner__frame {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(0,0,0,0.9) 0 46%, rgba(0,0,0,0.6) 72%, rgba(0,0,0,0.3) 100%),
    repeating-linear-gradient(135deg, #1C1C1C 0 22px, #141414 22px 44px);
}

.banner__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.banner__frame > .banner__copy { position: relative; z-index: 1; }

.banner__copy { padding: 40px 34px 34px; max-width: 640px; color: #fff; }
.banner__title { color: #fff; font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 900; letter-spacing: 0.04em; margin-bottom: 10px; }
.banner__lead { color: #D8D8D8; font-size: 0.98rem; margin: 0; max-width: 34em; }
.banner__rule { width: 72px; height: 5px; background: var(--green); margin-bottom: 18px; }

.page-hero { background: var(--ink); color: #fff; }
.page-hero__inner { width: 100%; max-width: var(--wrap); margin-inline: auto; padding: 44px 20px 40px; }
.page-hero__title { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.4rem); font-weight: 900; letter-spacing: 0.06em; margin-bottom: 8px; }
.page-hero__sub { color: #C4C4C4; font-size: 0.92rem; margin: 0; }

.crumb { font-size: 0.82rem; color: var(--muted); padding-top: 18px; }
.crumb a { color: var(--body); }
.crumb span { margin: 0 8px; opacity: 0.6; }

.main { padding: var(--step) 0 calc(var(--step) * 1.4); flex: 1 0 auto; }

.section + .section { margin-top: calc(var(--step) * 1.2); }

.section__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.section__title { font-size: 1.35rem; font-weight: 900; }
.section__note { font-size: 0.82rem; color: var(--muted); margin: 0; }

.page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: 8px; }
.page-lead { max-width: 44em; margin-bottom: calc(var(--step) * 0.8); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #E4E4E4;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14); }
.tile.is-empty { background: repeating-linear-gradient(135deg, #E6E6E6 0 16px, #DCDCDC 16px 32px); }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; }
a.card { transition: border-color 0.15s linear, transform 0.15s ease-out; }
a.card:hover { text-decoration: none; border-color: var(--green); transform: translateY(-2px); }

.card__thumb { aspect-ratio: 16 / 9; background: #E9E9E9; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__thumb.is-empty { background: repeating-linear-gradient(135deg, #EAEAEA 0 14px, #DFDFDF 14px 28px); }
.card__thumb.is-empty::after { content: ""; width: 34px; height: 34px; background: #BFBFBF; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

.card__body { padding: 18px 18px 20px; }
.card__title { font-size: 1.02rem; margin-bottom: 6px; }
.card__text { font-size: 0.9rem; margin: 0; }
.card__meta { margin-top: 12px; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 22px 24px; }

.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 10px;
  margin: 0 -10px;
  border-radius: var(--radius);
  color: var(--body);
  transition: background 0.15s ease;
}
.notice-link:hover { text-decoration: none; background: var(--green-soft); }
.notice-link:hover span { color: var(--green-dark); }
.notice-list time { color: var(--muted); font-size: 0.85rem; min-width: 7em; }
.notice-list span { font-weight: 500; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { text-decoration: none; background: var(--green-dark); border-color: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #fff; border-color: var(--ink); color: var(--ink); }

.btn__thumb { width: 22px; height: 22px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 2px; color: #fff; }
.btn__thumb svg { width: 100%; height: 100%; }

.prose { max-width: 42em; }
.prose h2 { font-size: 1.12rem; margin: 2em 0 0.6em; padding-left: 12px; border-left: 4px solid var(--green); }
.prose h2:first-child { margin-top: 0; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.3em; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--panel); font-size: 0.92rem; min-width: 480px; }
table.data th, table.data td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
table.data th { background: #EFEFEF; color: var(--ink); font-weight: 700; width: 30%; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); }
.field textarea { min-height: 170px; resize: vertical; }
.field-note { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.field input.has-error, .field select.has-error, .field textarea.has-error { border-color: var(--danger); }
.field-error { font-size: 0.78rem; color: var(--danger); margin: 6px 0 0; min-height: 1em; }
.field-error:empty { display: none; }

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

.form-alert { border-radius: var(--radius); padding: 13px 16px; font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; }
.form-alert--success { background: var(--green-soft); color: var(--green-dark); border: 1px solid var(--green); }
.form-alert--error { background: #FBEAE9; color: var(--danger); border: 1px solid var(--danger); }

#site-footer,
.foot { background: var(--footer-bg); color: var(--footer-body); border-top: 1px solid var(--footer-line); margin-top: auto; min-height: 120px; display: block; }

.foot__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 40px 20px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.foot__brand { max-width: 26em; }
.foot__logo { height: 34px; width: auto; margin-bottom: 10px; }
.foot__brand.is-empty::before {
  content: "かえる重工";
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--footer-heading);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.foot__note { font-size: 0.85rem; margin: 0 0 10px; }
.foot__mail { font-size: 0.86rem; font-weight: 700; color: var(--green-dark); }

.foot__cols { display: flex; flex-wrap: wrap; gap: 28px 46px; }
.foot__heading { color: var(--footer-heading); font-size: 0.82rem; font-weight: 700; margin-bottom: 10px; }
.foot__list { list-style: none; margin: 0; padding: 0; }
.foot__list li { margin-bottom: 7px; }
.foot__list a { color: var(--footer-body); font-size: 0.88rem; }
.foot__list a:hover { color: var(--green-dark); }

.foot__base {
  width: 100%;
  border-top: 1px solid var(--footer-line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px 20px 22px;
  font-size: 0.8rem;
}
.foot__top { color: var(--footer-body); }
.foot__top:hover { color: var(--green-dark); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 2px solid var(--green);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    display: none;
    transition: max-height 0.28s ease;
  }
  .nav.is-open { display: block; }

  .nav__list { flex-direction: column; gap: 8px; padding: 14px 0 18px; }
  .nav__item {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }
  .nav.is-visible .nav__item { opacity: 1; transform: translateY(0); }

  .navbtn { height: auto; padding: 12px 16px; font-size: 0.95rem; border-radius: var(--radius); }
  .header__bar { position: relative; flex-wrap: wrap; }

  .banner__inner { padding: 0; }
  .banner__frame { min-height: 210px; }
  .banner__copy { padding: 26px 20px 24px; }
  .tile { aspect-ratio: 16 / 9; border-radius: 12px; }
  .foot__inner { flex-direction: column; gap: 26px; }
  .foot__cols { gap: 22px 36px; }
}

@media (max-width: 480px) {
  .brand__logo { height: 32px; }
  .section__head { flex-direction: column; gap: 4px; align-items: flex-start; }
}

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