/* Hero */
.hero {
  background: var(--primary-deep);
  color: #fff;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bw-1);
  background: linear-gradient(
    to right,
    transparent 0,
    rgba(255, 255, 255, 0.18) 30%,
    rgba(255, 255, 255, 0.18) 70%,
    transparent 100%
  );
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-art {
  position: absolute;
  right: -80px;
  bottom: -104px;
  width: 400px;
  height: 400px;
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
  line-height: 0;
  z-index: 0;
}
.hero-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero h1 {
  font-size: var(--fs-5xl);
  line-height: var(--lh-h1);
  color: #fff;
  margin: 0 0 var(--sp-11);
  font-weight: 700;
  max-width: 880px;
}
.hero h1 .hl {
  position: relative;
  padding-bottom: 0.06em;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bw-3);
  background: var(--accent);
}
.hero h1 .accent {
  color: var(--gold);
}
.hero-lead {
  font-size: var(--fs-md);
  line-height: var(--lh-lead);
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
  margin: 0;
  letter-spacing: var(--ls-base);
}

/* Section common */
section {
  padding: 72px 0;
}
#reason {
  padding: 72px 0 88px;
}
#solutions {
  padding: 64px 0 72px;
}
#tech {
  padding: 88px 0 72px;
}
#case {
  padding: 64px 0 72px;
}
#company {
  padding: 80px 0 64px;
}
#news {
  padding: 56px 0 56px;
}
.sec-band {
  background: var(--bg-band);
}
#reason .sec-lead,
#tech .sec-lead {
  margin-bottom: var(--sp-10);
}
#case .sec-lead {
  margin-bottom: var(--sp-14);
}

/* Reason : 1ストーリー型(左イラスト + 右本文 3:7) */
.reason-grid {
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--sp-16);
  align-items: center;
}
.reason-illust {
  display: flex;
  align-items: center;
  justify-content: center;
}
.reason-illust svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}
.reason-body p {
  font-size: var(--fs-md);
  color: var(--text);
  line-height: var(--lh-lead);
  margin: 0 0 var(--sp-6);
}
.reason-body p:last-child {
  margin-bottom: 0;
}

/* Solutions */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 72px;
}
.sol-name {
  font-size: var(--fs-2xl);
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-h3);
}
.sol-desc {
  font-size: var(--fs-md);
  color: var(--text);
  line-height: var(--lh-lead);
  margin: 0 0 var(--sp-5);
}
.sol-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-body);
}
.sol-list li {
  padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
  position: relative;
}
.sol-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: var(--sp-4);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.tech-cat {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--sp-6);
  padding: var(--sp-5) 0;
  align-items: baseline;
}
.tech-cat-name {
  font-size: var(--fs-base);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: var(--ls-base);
  padding: 0 var(--sp-6);
}
.tech-list {
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-base);
  padding-right: var(--sp-6);
}

/* Message / CEO */
.ceo-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-12);
  align-items: start;
}
.ceo-photo {
  margin: 0;
}
.ceo-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.ceo-caption {
  margin-top: var(--sp-4);
  text-align: left;
}
.ceo-role {
  font-size: var(--fs-xs);
  color: var(--sub);
  letter-spacing: var(--ls-label);
  margin-bottom: var(--sp-1);
}
.ceo-name {
  font-size: var(--fs-md);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: var(--ls-base);
}

.ceo-quote {
  margin: 0;
}
.ceo-quote h4 {
  font-size: var(--fs-2xl);
  line-height: var(--lh-h3);
  color: var(--ink);
  margin: 0 0 var(--sp-5);
  padding-bottom: 14px;
  border-bottom: var(--bw-1) solid var(--line);
  letter-spacing: var(--ls-base);
}
.ceo-quote p {
  font-size: var(--fs-md);
  line-height: var(--lh-lead);
  color: var(--text);
  margin: 0 0 var(--sp-3);
}
.ceo-quote p:last-of-type {
  margin-bottom: 0;
}

.ceo-bio {
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: var(--bw-1) solid var(--line);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
}
.ceo-bio-label {
  font-size: var(--fs-base);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: var(--ls-base);
  margin-bottom: var(--sp-2);
  display: block;
}
.ceo-bio p {
  margin: 0;
}
.ceo-bio p + p {
  margin-top: 0.85em;
}

/* Info blocks */
.info-stack {
  margin-top: var(--sp-16);
  display: grid;
  gap: var(--sp-16);
}
.info-block-head {
  margin-bottom: var(--sp-6);
}
.info-block-head h3 {
  font-size: var(--fs-2xl);
  color: var(--ink);
  margin: 0;
  line-height: var(--lh-h3);
}

/* 会社概要 */
.company-kv dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  margin: 0;
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  border-top: var(--bw-1) solid var(--line);
}
.company-kv dt {
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-base);
  letter-spacing: var(--ls-base);
  padding: var(--sp-4);
  border-bottom: var(--bw-1) solid var(--line);
  background: var(--bg-tint);
}
.company-kv dd {
  margin: 0;
  color: var(--text);
  padding: var(--sp-4);
  border-bottom: var(--bw-1) solid var(--line);
}
.company-kv dd .sub {
  display: block;
  font-size: var(--fs-base);
  color: var(--sub);
  margin-top: var(--sp-1);
  line-height: var(--lh-body);
}

/* 沿革 */
.history-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-1) 0;
  align-items: baseline;
}
.history-year {
  font-size: var(--fs-md);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: var(--ls-base);
  font-variant-numeric: tabular-nums;
}
.history-text {
  color: var(--text);
  line-height: var(--lh-body);
  font-size: var(--fs-md);
}

/* パートナー */
.pt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8) var(--sp-6);
}
.pt-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.pt-logo {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
a.pt-logo {
  text-decoration: none !important;
  transition: opacity var(--t);
}
a.pt-logo:hover {
  opacity: 0.7;
}
/* WebP 化で挟まる <picture> を箱として消す: 残すと img の max-height: 100% の基準が消えて原寸になる */
.pt-logo picture {
  display: contents;
}
.pt-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.pt-kind {
  font-size: var(--fs-xs);
  color: var(--sub);
  letter-spacing: var(--ls-label);
  font-weight: 400;
}

/* 取引先 */
.client-lead {
  font-size: var(--fs-base);
  color: var(--sub);
  margin: 0 0 var(--sp-5);
  line-height: var(--lh-body);
}
.client-group + .client-group {
  margin-top: var(--sp-8);
}
.client-group-label {
  font-size: var(--fs-xs);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: var(--ls-base);
  margin: 0 0 var(--sp-3);
}
.client-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--bw-1) solid var(--line);
  font-size: var(--fs-base);
  color: var(--text);
}
.client-list li {
  padding: var(--sp-2) var(--sp-4) var(--sp-2) 0;
  border-bottom: var(--bw-1) solid var(--line);
  line-height: var(--lh-body);
}

/* News */
.news-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--sp-8);
  padding: var(--sp-5) 0;
  border-bottom: var(--bw-1) solid var(--line);
  align-items: baseline;
}
.news-item:last-child {
  border-bottom: none;
}
/* news 内の詳細 CTA: セクション末尾 CTA の上余白は打ち消し、grid item として縦中央に */
.news-item .sec-cta {
  margin-top: 0;
  align-self: center;
}
.news-date {
  font-size: var(--fs-base);
  color: var(--sub);
  letter-spacing: var(--ls-base);
  font-variant-numeric: tabular-nums;
}
.news-body {
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--text);
}
.news-body p {
  margin: 0;
}
.news-body p + p {
  margin-top: var(--sp-1);
}
.news-body a {
  color: var(--primary);
  font-weight: 400;
  text-decoration-color: rgba(27, 58, 91, 0.55);
}
.news-body a:hover {
  color: var(--primary-deep);
  text-decoration-color: var(--accent);
  text-decoration-thickness: var(--bw-2);
}
.ext-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: var(--sp-1);
  vertical-align: -1px;
  stroke-width: 2;
  color: var(--sub);
  transition: color var(--t);
}
.news-body a:hover .ext-icon {
  color: var(--primary-deep);
}

/* Contact */
.contact {
  background: var(--primary-deep);
  color: #fff;
  padding: 64px 0;
}
.contact h2 {
  font-size: var(--fs-4xl);
  line-height: var(--lh-h2);
  color: #fff;
  margin: 0 0 var(--sp-5);
}
.contact p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  font-size: var(--fs-md);
  line-height: var(--lh-lead);
  margin: 0 0 var(--sp-8);
}
.contact-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: stretch;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: transparent;
  color: #fff !important;
  text-decoration: none !important;
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-md);
  font-weight: 400;
  letter-spacing: var(--ls-base);
  border: var(--bw-1) solid var(--line-on-dark);
  min-height: 44px;
  transition:
    border-color var(--t),
    background var(--t);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost strong {
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: var(--ls-base);
}

/* Responsive */
@media (max-width: 960px) {
  .br-pc {
    display: none;
  }
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 64px 0 72px;
  }
  .hero h1 {
    font-size: 1.5rem;
    line-height: var(--lh-h1);
  }
  .hero-lead {
    font-size: var(--fs-md);
    line-height: var(--lh-lead);
  }
  .sec-title {
    font-size: var(--fs-2xl);
  }
  .reason-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .sol-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
  .sol-block {
    padding-top: var(--sp-6);
  }
  .tech-cat {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
    padding: var(--sp-4);
  }
  .tech-cat-name {
    padding: 0;
  }
  .tech-list {
    padding-right: 0;
  }
  .ceo-head {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding: var(--sp-6);
  }
  .ceo-photo {
    max-width: 200px;
    margin: 0 auto;
  }
  .info-stack {
    margin-top: var(--sp-12);
    gap: var(--sp-12);
  }
  .company-kv dl {
    grid-template-columns: 1fr;
  }
  .company-kv dt {
    padding: var(--sp-4);
  }
  .company-kv dd {
    padding: var(--sp-4);
  }
  .history-item {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
  .pt-list {
    grid-template-columns: 1fr;
  }
  .client-list {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
  .news-item .sec-cta .btn-outline {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .contact h2 {
    font-size: var(--fs-2xl);
  }
}
