/* 合同会社エコボット — static site stylesheet (no JS required) */
:root {
  --green: #2c7a3f;
  --green-dark: #1f5a2e;
  --blue: #2f46a6;
  --yellow: #d8c82e;
  --red: #b33a2a;
  --ink: #1d2320;
  --muted: #5b6560;
  --line: #dfe5e1;
  --bg: #ffffff;
  --bg-soft: #f4f7f5;
  --radius: 10px;
  --max: 1120px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.3em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 84px; }
.brand span { font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; white-space: nowrap; }

.nav-toggle { display: none; }
.nav-btn { display: none; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative; content: "";
}
.nav-btn span::before { position: absolute; top: -7px; }
.nav-btn span::after { position: absolute; top: 7px; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.global-nav a {
  display: block; padding: 8px 14px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.global-nav a:hover { background: var(--bg-soft); color: var(--green); }
.global-nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }

@media (max-width: 760px) {
  .brand span { display: none; }
  .nav-btn { display: block; }
  .global-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .global-nav { display: block; }
  .global-nav ul { flex-direction: column; padding: 8px 12px 14px; }
  .global-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green); }
}

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(20,48,30,.88), rgba(31,58,120,.80)),
    url("../img/drawing.webp") center / cover no-repeat;
  color: #fff;
  padding: 96px 0 88px;
}
.hero .eyebrow { font-size: .95rem; letter-spacing: .08em; opacity: .9; margin-bottom: .8em; }
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); margin-bottom: .7em; }
.hero p.lead { max-width: 720px; font-size: 1.02rem; opacity: .95; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: .95rem;
  background: var(--green); color: #fff; border: 2px solid var(--green);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- page header ---------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.page-head .en { color: var(--green); font-weight: 700; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; margin: 0 0 .3em; }
.page-head h1 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 0; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .en { display: block; color: var(--green); font-weight: 700; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; }
.section-title h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: .2em 0 0; }
.section-title p { color: var(--muted); margin-top: .8em; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #e9eeeb; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 22px; flex: 1; }
.card h3 { font-size: 1.1rem; }
.card ul { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; padding: 2px 10px; border-radius: 999px; margin-bottom: .7em; color: #fff; }
.tag.g { background: var(--green); } .tag.b { background: var(--blue); } .tag.r { background: var(--red); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9eeeb; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 10px 14px; font-size: .9rem; font-weight: 600; }
.gallery-head { margin: 48px 0 18px; font-size: 1.15rem; padding-left: 12px; border-left: 4px solid var(--green); }
.gallery-head:first-child { margin-top: 0; }

/* product rows */
.product { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product:nth-child(even) .product-media { order: 2; }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-media img { width: 100%; max-height: 460px; object-fit: contain; background: #fff; }
.product h2 { font-size: 1.35rem; }
.product .label { font-weight: 700; color: var(--green); margin: 1.2em 0 .3em; }
@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; gap: 20px; }
  .product:nth-child(even) .product-media { order: 0; }
}

/* company table */
.profile { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.profile th, .profile td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 0; }
.profile th { width: 26%; background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
.profile ul { margin: 0; padding-left: 1.1em; }
@media (max-width: 620px) {
  .profile th, .profile td { display: block; width: 100%; }
  .profile th { padding-bottom: 8px; border-bottom: 0; }
  .profile td { padding-top: 8px; }
}

.mission { max-width: 760px; margin: 0 auto; text-align: center; }
.mission .vision { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; color: var(--green-dark); margin-bottom: 1.4em; }
.mission ol { list-style: none; padding: 0; display: grid; gap: 12px; text-align: left; counter-reset: m; }
.mission li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 64px; position: relative; counter-increment: m; }
.mission li::before { content: counter(m); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* contact band */
.contact-band { background: linear-gradient(120deg, var(--green-dark), var(--blue)); color: #fff; padding: 64px 0; text-align: center; }
.contact-band h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.contact-band p { opacity: .95; }
.contact-band .mail { display: inline-block; margin-top: 10px; font-size: clamp(1.1rem, 3.4vw, 1.5rem); font-weight: 700; color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.6); padding-bottom: 2px; }
.contact-band .mail:hover { border-bottom-color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split .media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.more { margin-top: 32px; text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: #17201b; color: #c9d2cc; padding: 44px 0 28px; font-size: .9rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .name { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: .3em; }
.site-footer a { color: #c9d2cc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer .copy { width: 100%; border-top: 1px solid #2c3832; padding-top: 18px; margin-top: 8px; font-size: .8rem; color: #8c9890; }

.error-page { text-align: center; padding: 120px 0; }
.error-page .code { font-size: 4rem; font-weight: 700; color: var(--green); line-height: 1; margin-bottom: .2em; }
