/* 会社概要管理システム 公開側 */
.cps-profile,
.cps-sections,
.cps-access {
  background: var(--cps-bg);
  color: var(--cps-text);
  padding: clamp(32px, 5vw, 64px) 16px;
}

/* ------------------------------------
   アクセス下の余白調整
------------------------------------ */

.cps-access {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.cps-access-inner {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.cps-map {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0;
}

.cps-map p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
}

.cps-map iframe {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: bottom;
}





.cps-profile-inner,
.cps-sections-inner,
.cps-access-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cps-profile-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.cps-profile-image img{
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin: 0 auto;
  object-fit: cover;
  border-radius: var(--cps-radius);
  box-shadow: var(--cps-shadow);
}

.cps-section-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.cps-profile-card,
.cps-section-card,
.cps-access-card,
.cps-map {
  background: var(--cps-card-bg);
  border: 1px solid var(--cps-border);
  border-radius: var(--cps-radius);
  box-shadow: var(--cps-shadow);
}

.cps-profile-card,
.cps-section-card,
.cps-access-card {
  padding: clamp(22px, 4vw, 36px);
}

.cps-section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cps-accent) 12%, white);
  color: var(--cps-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cps-profile h2,
.cps-section-card h2,
.cps-access h2 {
  margin: 0 0 18px;
  color: var(--cps-title);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.cps-info-list {
  margin: 0;
  border-top: 1px solid var(--cps-border);
}

.cps-info-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cps-border);
}

.cps-info-list dt {
  font-weight: 800;
  color: var(--cps-title);
}

.cps-info-list dd {
  margin: 0;
}

.cps-long-text {
  margin-top: 22px;
}

.cps-long-text h3 {
  margin: 0 0 8px;
  color: var(--cps-title);
  font-size: 18px;
}

.cps-long-text p {
  margin: 0;
  line-height: 1.9;
}

.cps-sections-inner {
  display: grid;
  gap: 26px;
}

.cps-section-card {
  overflow: hidden;
}

.cps-section-card h2 {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cps-border);
  color: var(--cps-title);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.cps-section-card .cps-section-label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
}

.cps-section-card::after {
  content: "";
  display: block;
  clear: both;
}


/*代表挨拶の写真*/
.cps-section-image {
  float: left;
  width: min(200px, 26%);
  margin: 4px 22px 12px 0;
  text-align: left;
}

.cps-section-body {
  margin-top: 0;
  color: var(--cps-text);
  font-size: 16px;
  line-height: 2;
}

.cps-section-body p {
  margin: 0 0 1.2em;
}

.cps-section-body p:last-child {
  margin-bottom: 0;
}

.cps-button-wrap {
  clear: both;
  margin-top: 18px;
}

.cps-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--cps-button-bg);
  color: var(--cps-button-text) !important;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.3;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cps-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.cps-button-sub {
  background: var(--cps-accent);
}

.cps-access-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.cps-access-card p {
  margin: 0 0 10px;
  line-height: 1.8;
}

.cps-access-address {
  font-weight: 800;
}

.cps-map {
  overflow: hidden;
  line-height: 0;
  min-height: 0;
}

.cps-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  min-height: 0;
  border: 0;
}

/* ------------------------------------
   追加設定ボタンを横並びにする
------------------------------------ */

.cps-section-buttons {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cps-section-buttons .cps-button {
  margin: 0;
}

/* ------------------------------------
   会社写真 複数表示
------------------------------------ */

.cps-profile-photos {
  display: grid;
  gap: 18px;
  align-self: start;
}

.cps-profile-gallery {
  display: grid;
  gap: 18px;
}

.cps-profile-image img,
.cps-profile-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cps-radius);
  box-shadow: var(--cps-shadow);
}


/* ------------------------------------
   追加設定内のボタン間隔調整
------------------------------------ */

.cps-section-card .cps-button-wrap {
  margin-top: 14px;
}

.cps-section-card .cps-button-wrap + .cps-button-wrap {
  margin-top: 10px;
}








@media (max-width: 782px) {
  .cps-profile-inner,
  .cps-access-inner {
    grid-template-columns: 1fr;
  }

  .cps-info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cps-profile,
  .cps-sections,
  .cps-access {
    padding: 28px 14px;
  }

  .cps-section-card {
    padding: 22px 18px;
  }

  .cps-section-card h2 {
    font-size: 20px;
  }

  .cps-section-body {
    font-size: 15px;
    line-height: 1.9;
  }

  .cps-map iframe {
    height: 260px;
  }

  .cps-section-image {
    float: none;
    width: 100%;
    max-width: 220px;
    margin: 12px auto 18px;
  }

  .cps-button-wrap {
    clear: both;
  }


}
