:root {
  --navy: #163a5c;
  --navy-deep: #102c47;
  --ink: #1d2b3a;
  --muted: #667484;
  --line: #e6ebf0;
  --paper: #ffffff;
  --sky: #5aa0c8;
  --teal: #2f8b8d;
  --green: #3d7c3c;
  --orange: #c97a2e;
  --rust: #a85b3d;
  --header-h: 84px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  background: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}

.serif {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #f0f3f6;
}

.header-inner {
  position: relative;
  height: 100%;
  width: min(calc(100% - 32px), 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-text small {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #6a7a8a;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
  font-size: 13px;
}

.global-nav a {
  position: relative;
  z-index: 1;
  color: #3c4a58;
  padding: 8px 0;
  white-space: nowrap;
}

.global-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--navy);
}

.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-size: 12px;
  color: #8a96a3;
  flex-shrink: 0;
}

.lang a {
  color: #8a96a3;
}

.lang a.is-active {
  color: var(--navy);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scaleX(-1);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 28%, rgba(255, 255, 255, 0.18) 54%, rgba(255, 255, 255, 0) 68%),
    linear-gradient(180deg, rgba(8, 28, 48, 0.08), rgba(8, 28, 48, 0.12));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
  padding: 72px 0 88px;
  max-width: 520px;
  justify-self: start;
  margin-left: max(24px, calc((100% - var(--wrap)) / 2));
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.hero .lead {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 500;
}

.hero .desc {
  margin: 0 0 28px;
  max-width: 34em;
  color: #445566;
  font-size: 13.5px;
}

.hero-tag {
  position: absolute;
  top: 28px;
  right: max(32px, calc((100% - var(--wrap)) / 2));
  z-index: 1;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-script {
  position: absolute;
  right: max(48px, calc((100% - var(--wrap)) / 2 - 20px));
  bottom: 48px;
  z-index: 1;
  color: #fff;
  font-family: "Klee One", "Noto Serif JP", serif;
  font-size: 28px;
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 8px 24px rgba(0, 30, 60, 0.35);
}

.btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  background: var(--navy-deep);
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: #fff;
}

.btn .arrow {
  font-size: 12px;
}

.services {
  padding: 28px 0 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  display: block;
  min-height: 230px;
  overflow: hidden;
  border-radius: 4px;
  color: inherit;
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

.service-card .panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--navy);
}

.products {
  padding: 48px 0 56px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--sky);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-head h2,
.page-title,
.block-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-head h2::after,
.quality-copy h2::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  margin-left: 14px;
  background: #cfd8e0;
  vertical-align: middle;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  display: block;
  overflow: hidden;
  color: inherit;
}

.product-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-label {
  display: block;
  margin: 0;
  padding: 10px 8px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body[data-lang="en"] .product-label {
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

body[data-lang="en"] .global-nav {
  font-size: 12px;
  gap: 16px;
}

.product-label.teal { background: var(--teal); }
.product-label.green { background: var(--green); }
.product-label.orange { background: var(--orange); }
.product-label.rust { background: var(--rust); }

.product-card .caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

.quality {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 360px;
  overflow: hidden;
}

.quality-photo {
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.quality-lab {
  background-image: url("../images/quality-lab.jpg");
}

.quality-nature {
  background-image: url("../images/quality-nature.jpg");
}

.quality-copy {
  position: absolute;
  z-index: 2;
  left: 34%;
  top: 50%;
  transform: translateY(-50%);
  width: min(46%, 520px);
  padding: 36px 40px 32px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(20, 40, 70, 0.08);
}

.quality-copy p {
  margin: 14px 0 22px;
  color: #4d5d6d;
  font-size: 13px;
}

.quality-script {
  position: absolute;
  right: 48px;
  top: 36px;
  color: #fff;
  font-family: "Klee One", "Noto Serif JP", serif;
  font-size: 22px;
  line-height: 1.6;
  text-shadow: 0 6px 18px rgba(0, 20, 40, 0.35);
}

.info-band {
  padding: 48px 0 56px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  gap: 36px;
}

.info-block .section-kicker {
  margin-bottom: 2px;
}

.info-block h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.info-block .btn {
  margin-top: 8px;
}

.feature-card > div {
  padding-right: 16px;
}

.company-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 16px;
  align-items: start;
}

.company-row img {
  width: 148px;
  height: 108px;
  object-fit: cover;
}

.meta {
  margin: 0;
  font-size: 13px;
}

.meta dt {
  float: left;
  clear: left;
  width: 4.5em;
  color: var(--muted);
}

.meta dd {
  margin: 0 0 6px 4.5em;
}

.news-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.news-list li {
  display: grid;
  grid-template-columns: 6.2em 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.news-list time {
  color: var(--muted);
}

.contact-text {
  margin: 0 0 20px;
  color: #4d5d6d;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 22px;
}

.footer-inner {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  font-size: 13px;
  color: #5a6876;
}

.copyright {
  width: min(calc(100% - 40px), 1180px);
  margin: 16px auto 0;
  color: #8a96a3;
  font-size: 11px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(20, 40, 70, 0.08);
  color: var(--navy);
  z-index: 30;
}

.page-hero {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 40, 64, 0.55);
  pointer-events: none;
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  padding: 48px 16px;
}

.page-hero .section-kicker {
  color: #cfe6f4;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.08em;
}

.page-body {
  padding: 64px 0 80px;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.prose p + p {
  margin-top: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.card-list {
  display: grid;
  gap: 22px;
}

.feature-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.feature-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0 20px 18px 0;
  color: var(--muted);
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  width: 180px;
  color: var(--muted);
  font-weight: 500;
  background: #f7f9fb;
}

.form-grid {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5dde5;
  border-radius: 4px;
  background: #fff;
}

.form-grid textarea {
  min-height: 160px;
  resize: vertical;
}

.form-grid .btn {
  width: fit-content;
  min-width: 180px;
}

.required {
  margin-left: 6px;
  color: #c45c4a;
  font-size: 11px;
}

.form-complete {
  padding: 28px;
  background: #f4f8fb;
  border: 1px solid var(--line);
}

.news-article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.news-article h2 {
  margin: 8px 0 12px;
  font-size: 20px;
}

@media (max-width: 1080px) {
  .global-nav {
    gap: 14px;
    font-size: 12px;
  }

  .quality-copy {
    left: 24%;
    width: min(58%, 560px);
  }
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .global-nav,
  .header-inner .lang {
    display: none;
  }

  .nav-open .global-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 110;
    padding: 20px 24px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(20, 40, 70, 0.08);
  }

  .nav-open .header-inner .lang {
    display: flex;
    position: absolute;
    top: calc(var(--header-h) + 8px);
    right: 24px;
    z-index: 50;
  }

  .service-grid,
  .product-grid,
  .info-grid,
  .split,
  .feature-card,
  .company-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 480px;
  }

  .hero-copy {
    max-width: 100%;
    margin-left: 24px;
  }

  .hero-script {
    font-size: 20px;
    right: 20px;
    bottom: 24px;
  }

  .quality {
    grid-template-columns: 1fr;
  }

  .quality-copy {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
    margin: -48px 16px 24px;
  }

  .quality-script {
    position: relative;
    right: auto;
    top: auto;
    display: block;
    margin: -80px 20px 24px auto;
    width: max-content;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    margin-left: 0;
  }
}
