/* ===== 基本設定：主な色や幅はここで一括変更できます ===== */
:root {
  --color-text: #211a18;
  --color-muted: #9b9b9b;
  --color-line: #625e5c;
  --color-cell: #d0d0d0;
  --color-equipment: #e5004f;
  --color-gas: #004b96;
  --color-care: #f19b87;
  --visual-width: 39.5%;
  --content-max: 970px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #fff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-layout {
  display: grid;
  grid-template-columns: var(--visual-width) minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
}

/* ===== 左側メインビジュアル ===== */
.visual {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #eef5f5;
}

.visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

/* ===== 右側コンテンツ ===== */
.company-content {
  width: min(100%, calc(var(--content-max) + 112px));
  margin: 0 auto;
  padding: 74px 56px 100px;
}

.group-title {
  margin: 0;
  line-height: 0;
}

.group-title img {
  display: block;
  width: min(100%, 382px);
  height: auto;
}

.brand-list {
  display: grid;
  grid-template-columns: 1.05fr 1fr .84fr;
  gap: 34px;
  align-items: center;
  margin-top: 60px;
}

.brand {
  display: block;
  min-width: 0;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.maintenance-notice {
  margin: 70px 0 0;
  font-size: .93rem;
}

.company-section {
  margin-top: 34px;
  scroll-margin-top: 30px;
}

.company-section + .company-section {
  margin-top: 44px;
}

.company-section h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 15px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.25rem, 1.55vw, 1.7rem);
  font-weight: 500;
  letter-spacing: .12em;
}

.company-section h2::before {
  content: "";
  width: 8px;
  height: 24px;
  flex: 0 0 auto;
  background: var(--color-equipment);
}

.company-section--gas h2::before {
  background: var(--color-gas);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  line-height: 1.35;
}

th,
td {
  padding: 7px 11px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: middle;
}

th {
  width: 124px;
  background: var(--color-cell);
  font-weight: 600;
  white-space: nowrap;
}

td {
  font-weight: 500;
}

.permit-list {
  display: block;
  margin-top: 5px;
  font-size: .75rem;
  line-height: 1.55;
}

.division-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 22px;
}

.division h3 {
  width: 132px;
  margin: 0 0 12px;
  padding: 5px 8px;
  background: var(--color-gas);
  color: #17110f;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.division--care h3 {
  background: var(--color-care);
}

.division dl,
.division dd {
  margin: 0;
}

.division dl > div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 7px 8px;
  border-top: 1px solid var(--color-line);
  font-size: .9rem;
  line-height: 1.35;
}

.division dl > div:last-child {
  border-bottom: 1px solid var(--color-line);
}

.division dt {
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1050px) {
  .company-content {
    padding-inline: 36px;
  }

  .brand-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 46px;
  }

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

/* ===== スマートフォン：縦1列 ===== */
@media (max-width: 767px) {
  .site-layout {
    display: block;
  }

  .visual {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1518 / 1800;
  }

  .visual img {
    object-position: center 22%;
  }

  .company-content {
    padding: 48px 20px 64px;
  }

  .group-title img {
    width: min(100%, 340px);
  }

  .brand-list {
    margin-top: 38px;
  }

  .brand img {
    width: 80%;
  }

  .maintenance-notice {
    margin-top: 45px;
    line-height: 1.7;
  }

  .company-section {
    margin-top: 28px;
  }

  .company-section h2 {
    font-size: 1.2rem;
  }

  table {
    font-size: .82rem;
  }

  th,
  td {
    padding: 7px 8px;
  }

  th {
    width: 98px;
  }

  .permit-list {
    font-size: .68rem;
  }

  .division dl > div {
    grid-template-columns: 92px 1fr;
    font-size: .82rem;
  }
}
