:root {
  --ink: #1f2f29;
  --muted: #66736d;
  --paper: #fbfaf4;
  --soft: #eef2e8;
  --moss: #476b56;
  --forest: #16392d;
  --water: #2c7780;
  --clay: #b86b3f;
  --sky: #dbecef;
  --line: rgba(31, 47, 41, 0.14);
  --shadow: 0 24px 70px rgba(28, 44, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(251, 250, 244, 0.92);
  box-shadow: 0 12px 34px rgba(20, 35, 28, 0.11);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 22px;
}

.brand-name,
.brand-sub {
  display: block;
  line-height: 1.1;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-sub {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.76;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 128px clamp(20px, 7vw, 90px) 12vh;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 40, 32, 0.78), rgba(39, 84, 79, 0.38) 45%, rgba(18, 40, 32, 0.06)),
    linear-gradient(0deg, rgba(18, 40, 32, 0.5), transparent 45%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 10vw, 124px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  width: min(680px, 100%);
  margin: 28px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  font-weight: 800;
}

.button.primary {
  color: var(--forest);
  background: #fff;
}

.button.ghost {
  color: #fff;
}

.section,
.section-band,
.contact {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 5vw, 64px);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro {
  background: var(--soft);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.section-kicker {
  color: var(--clay);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: 0;
}

.intro p:last-child,
.company-copy p,
.contact p,
.statement-content p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.business-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.business-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  box-shadow: 0 16px 34px rgba(31, 47, 41, 0.06);
}

.card-number {
  color: var(--water);
  font-family: Georgia, serif;
  font-size: 32px;
}

.business-card:nth-child(even) .card-number {
  color: var(--clay);
}

.business-card h3 {
  margin: 28px 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

.business-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.statement {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  min-height: 560px;
  background: var(--forest);
  color: #fff;
}

.statement-media {
  min-height: 360px;
  background:
    linear-gradient(rgba(20, 54, 43, 0.08), rgba(20, 54, 43, 0.5)),
    url("https://images.pexels.com/photos/587773/pexels-photo-587773.jpeg?auto=compress&cs=tinysrgb&w=1200&h=1400&fit=crop") center / cover;
}

.statement-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 92px);
}

.statement-content .section-kicker,
.statement-content p {
  color: rgba(255, 255, 255, 0.74);
}

.statement-content h2 {
  margin-bottom: 24px;
}

.company-section {
  background: #fffdf7;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(34px, 7vw, 86px);
}

.company-copy p {
  margin-top: 20px;
}

.company-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-table div {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.company-table dt {
  color: var(--moss);
  font-weight: 800;
}

.company-table dd {
  margin: 0;
}

.contact {
  background: linear-gradient(135deg, var(--soft), var(--sky));
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.contact-inner > div {
  width: min(640px, 100%);
}

.contact p {
  margin-top: 18px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 4px;
  color: #fff;
  background: var(--forest);
  font-weight: 800;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.74);
  background: #10251e;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* ── News section ────────────────────────────── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fffdf7;
  box-shadow: 0 10px 28px rgba(31, 47, 41, 0.05);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.news-card:hover {
  box-shadow: 0 18px 42px rgba(31, 47, 41, 0.10);
  transform: translateY(-2px);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--soft);
}

.news-card-body {
  padding: 22px;
}

.news-card-date {
  font-size: 12px;
  color: var(--clay);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card-title {
  margin: 8px 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.news-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.news-card-content {
  margin-top: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}

.news-card-content p {
  margin: 0 0 8px;
}

.news-empty,
.products-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 15px;
}

/* ── Products section ────────────────────────── */

.section-products {
  background: #fffdf7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(31, 47, 41, 0.05);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.product-card:hover {
  box-shadow: 0 18px 42px rgba(31, 47, 41, 0.10);
  transform: translateY(-2px);
}

.product-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--soft);
}

.product-card-body {
  padding: 22px;
}

.product-card-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--water);
  background: var(--sky);
}

.product-card-name {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.product-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.product-card-specs {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.product-card-specs dt {
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.product-card-specs dd {
  margin: 0 0 8px;
  font-size: 14px;
}

.product-card-specs dd:last-child {
  margin-bottom: 0;
}

.news-card-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--clay);
  transition: color 150ms ease;
}

.news-card:hover .news-card-more {
  color: var(--forest);
}

/* ── News detail page ──────────────────────── */

.detail-page-section {
  background: var(--paper);
  min-height: 80vh;
}

.detail-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--clay);
  text-decoration: none;
  transition: color 150ms ease;
}

.detail-back:hover {
  color: var(--forest);
}

/* 图片自适应网格 */
.detail-images {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
}

/* 单图：全宽 */
.detail-images-single .detail-image-item {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

/* 双图：左右并排 */
.detail-images-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.detail-images-double .detail-image-item {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* 三图及以上：瀑布流 */
.detail-images-multi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
}
.detail-images-multi .detail-image-item {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* 竖图容器：限制高度 */
.detail-images-portrait .detail-image-item {
  max-height: 640px;
  object-fit: contain;
  background: var(--soft);
}

/* 详情页文字区 */
.detail-lead {
  margin: 20px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-body-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  max-width: 760px;
}

.detail-body-text p {
  margin: 0 0 16px;
}

.detail-body-text p:last-child {
  margin-bottom: 0;
}

#detail-title {
  margin-top: 4px;
}

/* 卡片上显示图片数量 */
.news-card-photos {
  display: inline-block;
  margin-right: 12px;
  font-size: 12px;
  color: var(--water);
  font-weight: 700;
}

/* ── Products section ────────────────────────── */
/* (keep existing product styles below) */

@media (max-width: 640px) {
  .detail-images-double {
    grid-template-columns: 1fr;
  }
  .detail-images-double .detail-image-item {
    height: 260px;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .intro-grid,
  .company-grid,
  .statement {
    grid-template-columns: 1fr;
  }

  .business-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 88svh;
    padding: 150px 32px 12vh;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.85;
  }

  .hero-actions,
  .contact-inner,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .contact-link {
    width: 100%;
  }

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

  .business-card {
    min-height: auto;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
