/* ============ Base ============ */
:root {
  --brand: #009999;
  --brand-600: #007f7f;
  --text: #222;
  --text-weak: #666;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.07);
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(92%, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: -999px; padding: .5rem .75rem; background: #000; color: #fff; border-radius: 6px;
}
.skip-link:focus { left: .5rem; top: .5rem; z-index: 1000; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(0,0,0,0.02);
}
.header__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .8rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand__logo { width: clamp(140px, 18vw, 220px); height: auto; }

.nav { display: none; }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav__list a { font-weight: 700; white-space: nowrap; }

.nav-toggle {
  appearance: none; margin: 0; padding: .5rem; border-radius: 10px; border: 1px solid var(--border); background: #fff;
  display: inline-flex; flex-direction: column; gap: 4px; cursor: pointer;
}
.nav-toggle__bar { width: 28px; height: 3px; background: var(--text); display: block; border-radius: 2px; }

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: clamp(220px, 40vw, 560px); object-fit: cover; }
.hero__copy { position: relative; margin-top: -4rem; padding: 1rem 1rem 0 1rem; }
.hero__copy h1 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.hero__copy p { margin: 0 0 1rem; color: var(--text-weak); max-width: 60ch; }
.btn {
  display: inline-block; border: 0; border-radius: 999px; padding: .8rem 1.25rem; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow);
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); }

/* ============ Sections ============ */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__title { margin: 0 0 1.2rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); text-align: center; }
.section__header p { margin: .5rem auto 0; max-width: 75ch; color: var(--text-weak); text-align: center; }

/* ============ Cards / Grid ============ */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: clip; box-shadow: var(--shadow);
}
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 1rem 1rem 1.2rem; }
.product__title { margin: .3rem 0 .6rem; font-size: 1.1rem; }
.product__lead { margin: 0 0 .6rem; color: var(--text-weak); }

.details { border-top: 1px dashed var(--border); padding-top: .8rem; }
.details__summary { cursor: pointer; font-weight: 700; }
.details[open] .details__summary { color: var(--brand); }

.spec { margin-top: .6rem; }
.spec__table { width: 100%; border-collapse: collapse; }
.spec__table th, .spec__table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); }
.spec__table th { width: 34%; color: var(--text-weak); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: .8rem; }
.gallery img { border-radius: 10px; border: 1px solid var(--border); }

/* ============ Video ============ */
.video { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video video { width: 100%; display: block; }

/* ============ Tables ============ */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: .9rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
.table th { width: 28%; color: var(--text-weak); font-weight: 600; background: #fcfcfc; }

/* ============ Form ============ */
.form__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.form__field { display: grid; gap: .4rem; }
.form__field span { font-size: .95rem; color: var(--text-weak); }
input, textarea {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--border); border-radius: 12px; font: inherit;
}
input:focus, textarea:focus { outline: 2px solid rgba(0,153,153,.25); border-color: var(--brand); }
.form__field--full { grid-column: 1 / -1; }
@media (min-width: 800px) { .form__grid { grid-template-columns: 1fr 1fr; } }

/* ============ News ============ */
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.news__item { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: baseline; padding: .8rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.news__date { color: var(--text-weak); }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); background: #fff; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; }
.to-top img { width: 46px; height: 46px; }
.no-scroll { overflow: hidden; }

/* High-contrast focus rings for accessibility */
:focus-visible { outline: 3px solid rgba(0,153,153,.35); outline-offset: 2px; }
