:root {
  --detail-panel-bg: rgba(255, 255, 255, 0.92);
  --detail-surface: #eef4f8;
  --detail-shadow: 0 18px 44px rgba(142, 170, 194, 0.14);
  --detail-line: #d8e0e7;
  --detail-muted: #657483;
  --detail-chip: #72839a;
  --detail-chip-text: #f5f8fb;
  --detail-tab-bg: #dff0fb;
  --detail-tab-active: #1495e9;
  --placeholder: #d9d9d9;
  --soft-card: #f3f5f7;
}

body {
  background: linear-gradient(180deg, #f7fbfe 0%, #edf3f7 18%, #eef4f8 100%);
  font-family: "Zen Kaku Gothic New", sans-serif !important;
}

header,
header *,
footer,
footer * {
  font-family: "Zen Kaku Gothic New", sans-serif !important;
}

ct-internal-data-registry {
  display: none;
}

.detail-page {
  padding-top: 82px;
}

.detail-shell {
  padding: 42px 24px 80px;
}

.detail-frame {
  max-width: 1120px;
  margin: 0 auto;
}

.detail-panel {
  background: var(--detail-panel-bg);
  border-radius: 28px;
  padding: 44px 56px 38px;
  box-shadow: var(--detail-shadow);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.detail-panel.is-loading {
  opacity: 0;
}

.company-overview {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.overview-brand,
.overview-data,
.overview-data dl,
.overview-data dl>div {
  min-width: 0;
}

.overview-brand h2 {
  margin: 14px 0 10px;
  font-size: 1.85rem;
  line-height: 1.35;
  font-weight: 500;
  color: #111;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.overview-brand a {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.6;
  color: #0072B2;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: none;
}

.overview-brand a:hover {
  text-decoration: underline;
}

.overview-brand .contact-link {
  margin-top: 2px;
}

.detail-logo {
  display: grid;
  place-items: center;
  width: 130px;
  min-height: 142px;
  border: 1px solid #3b4147;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(135deg,
      rgba(0, 0, 0, 0.015) 0,
      rgba(0, 0, 0, 0.015) 10px,
      rgba(255, 255, 255, 0.06) 10px,
      rgba(255, 255, 255, 0.06) 20px);
}

.detail-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.detail-mark {
  position: relative;
  padding-top: 74px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.detail-mark::before,
.detail-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.detail-mark::before {
  top: 2px;
  width: 30px;
  height: 54px;
  border: 3px solid #000;
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-radius: 18px;
}

.detail-mark::after {
  top: 22px;
  width: 44px;
  height: 14px;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  border-radius: 50%;
}

.overview-data dl {
  margin: 0;
}

.overview-data a {
  color: #0072B2;
  text-decoration: none;
}

.overview-data a:hover {
  text-decoration: underline;
}

.overview-data dl>div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--detail-line);
}

.overview-data dl>div:first-child {
  padding-top: 0;
}

.overview-data p {
  font-weight: bold;
}

.overview-data dt,
.overview-data dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-left: 10px;
}

.overview-data dt {
  font-weight: 700;
}

.pr-points {
  margin-top: 34px;
}

.pr-points h3,
.detail-section h3,
.base-section h3 {
  margin: 0 0 18px;
  font-size: 1.85rem;
  line-height: 1.35;
  font-weight: 500;
  color: #111;
}

.pr-points ul {
  display: grid;
  gap: 18px;
}

.pr-points li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pr-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #76d3d3;
}

.tabset {
  margin-top: 34px;
}

.detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 38px;
  background: var(--detail-tab-bg);
}

.detail-tabs.is-two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.detail-tab {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--detail-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.detail-tab.is-active {
  color: var(--detail-tab-active);
  background: rgba(255, 255, 255, 0.28);
  font-weight: bold;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.tab-panel>*+* {
  margin-top: 34px;
}

.detail-section {
  padding-bottom: 8px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list span,
.record-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--detail-chip);
  color: var(--detail-chip-text);
  font-size: 12px;
  line-height: 1.2;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plain-block p,
.plain-block li,
.detail-section p,
.base-summary dd,
.base-summary dt,
.free-comment p {
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.plain-block ul {
  margin-top: 10px;
}

.table-scroll {
  overflow-x: auto;
}

.info-grid {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.info-grid th,
.info-grid td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--detail-line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-grid th {
  font-weight: 700;
}

.info-grid th:nth-child(1) {
  width: 8%;
}

.info-grid th:nth-child(2),
.info-grid th:nth-child(3) {
  width: 30%;
}

.inspection-license-grid {
  width: 100%;
  table-layout: fixed;
  min-width: 760px;
}

.inspection-license-grid th:nth-child(1),
.inspection-license-grid td:nth-child(1) {
  width: 8%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.inspection-license-grid th:nth-child(2),
.inspection-license-grid td:nth-child(2) {
  width: 58%;
}

.inspection-license-grid th:nth-child(3),
.inspection-license-grid td:nth-child(3) {
  width: 34%;
}

.inspection-license-grid th:nth-child(2),
.inspection-license-grid td:nth-child(2),
.inspection-license-grid th:nth-child(3),
.inspection-license-grid td:nth-child(3) {
  /*white-space: normal;*/
  overflow-wrap: break-word;
  word-break: normal;
}

.record-card {
  padding: 24px 18px;
  background: #f2f8fd;
}

.record-card+.record-card {
  margin-top: 12px;
}

.record-card h4,
.technology-card h4,
.detail-section h4 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 500;
}

.record-card p {
  margin-top: 12px;
}

/* -----------------------------------
   開発フェーズ
------------------------------------ */
.record-phases {
  display: grid;
  gap: 6px;
  margin: 10px 0 0 0;
}

.record-phases-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.technology-card {
  padding: 20px 18px;
  background: var(--soft-card);
}

.technology-card dl {
  display: grid;
  gap: 14px;
}

.technology-card dl>div {
  display: grid;
  gap: 6px;
}

.technology-card dt {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.technology-card dd,
.technology-card a {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #111;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.technology-card a {
  color: #0072B2;
}

.free-comment p+p {
  margin-top: 18px;
}

.anchor-links {
  display: grid;
  gap: 8px;
}

.anchor-links a {
  color: #0072B2;
  text-decoration: none;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.base-section {
  padding-top: 18px;
  border-top: 2px solid #111;
}

.base-section+.base-section {
  margin-top: 46px;
}

.base-summary {
  display: grid;
  gap: 0;
}

.base-summary>div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--detail-line);
}

.base-summary dt {
  font-weight: 700;
}

.compact {
  padding-top: 22px;
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.placeholder-box,
.map-placeholder {
  background: var(--placeholder);
  overflow: hidden;
}

.placeholder-box {
  min-height: 148px;
  max-height: 400px;
}

.placeholder-box.tall {
  min-height: 170px;
}

.placeholder-box.medium {
  min-height: 160px;
}

.placeholder-box.large {
  min-height: 210px;
}

.placeholder-box.wide,
.map-placeholder {
  min-height: 250px;
}

.image-pair.narrow .placeholder-box {
  min-height: 128px;
}

.caption {
  margin-top: 12px;
  color: var(--detail-muted);
}

.free-note {
  border-bottom: none;
}

.accordion-card {
  background: #d5dde3;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-card+.accordion-card {
  margin-top: 12px;
}

.location-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: #111;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease-in-out;
}

.accordion-arrow {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #555;
  transition: transform 0.2s ease;
}

.accordion-card.is-open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 0 18px 20px;
}

.recruit-gallery {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  margin-top: 18px;
}

.news-board {
  background: #f1f1f1;
  border-radius: 8px;
  padding: 14px 18px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.news-row {
  padding: 12px 0;
}

.news-row+.news-row {
  border-top: 1px solid #dfdfdf;
}

.news-row p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.voice-card {
  padding: 16px 14px;
  border: 1px solid #111;
  border-radius: 8px;
}

.voice-card p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
}

/* .video-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  min-height: 170px;
  color: #111;
  font-size: 1.25rem;
  font-weight: 500;
}

.video-placeholder iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 170px;
  border: 0;
} */

.media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: 0;
}

.qa-list {
  display: grid;
  gap: 14px;
}

.qa-card {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f0f0f0;
}

.qa-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.qa-row+.qa-row {
  margin-top: 10px;
}

.qa-row.answer {
  padding-top: 10px;
  border-top: 1px solid #dddddd;
}

.qa-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #75839a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.qa-row.answer .qa-badge {
  background: #fff;
  color: #6b7788;
  border: 1px solid #cad1d8;
}

.media-split {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.media-split img {
  width: 280px;
}

/* .media-split.reverse {
  grid-template-columns: minmax(0, 1fr) 280px;
} */

.media-stack {
  display: grid;
  gap: 18px;
}

.sponsor-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 30px 0 0;
}

.sponsor-strip a {
  display: block;
  width: min(100%, 258px);
}

.sponsor-strip img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1200px) {
  .detail-panel {
    padding: 34px 30px;
  }

  .company-overview {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .overview-brand {
    display: grid;
    justify-items: start;
  }

  .recruit-gallery,
  .media-split,
  .media-split.reverse {
    grid-template-columns: 1fr;
  }

  .media-split {
    display: block;
    height: auto;
  }

  .media-split img {
    width: 100%;
    height: auto;
  }

}

@media (max-width: 768px) {
  .detail-page {
    padding-top: 60px;
  }

  .detail-shell {
    padding: 24px 14px 60px;
  }

  .detail-panel {
    border-radius: 18px;
    padding: 24px 16px;
  }

  .pr-points h3,
  .detail-section h3,
  .base-section h3 {
    font-size: 1.55rem;
  }

  .detail-tabs,
  .detail-tabs.is-two-columns {
    grid-template-columns: 1fr;
  }

  .overview-data dl>div,
  .base-summary>div,
  .news-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .voice-grid,
  .image-pair {
    grid-template-columns: 1fr;
  }

  .video-placeholder {
    width: 100%;
  }

  .sponsor-strip {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}

/* 実績＞「規制・基準対応」／拠点情報＞「査察・許認可実績」：フォームからの改行入力をそのまま画面に反映させる*/
#regulatory-table-body td,
.inspection-license-grid td {
  white-space: pre-line;
}

/* =========================================
   アンカーリンク位置調整
========================================= */
html {
  scroll-padding-top: 60px;
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: 82px;
  }
}

/* =========================================
   フッターバナー調整
========================================= */
@media (min-width: 768px) {
  .footer-content-wrap {
    align-items: center;

  }
}

.footer-banner {
  justify-content: flex-start;

}

.footer-banner img {
  border: 1px solid #CCD6D9;
}