.company-detail,.gallery,.gallery-list{
	margin: 0 auto;
}

/* カード枠（既存と合わせて微調整OK） */
.card {
	background: #eaf4ff;
	border-radius: 5px;
	padding: 16px;
}

/* 上段：ロゴ + 見出し群 */
.company-hero {
	display: flex;
	flex-direction: column;
	margin: 20px 5px;
	padding: 10px;
	gap: 12px;
}

.hero-top {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.company-hero .hero-top img {
	width: 140px;
	height: 140px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #d0d7de;
	object-fit: contain;
	display: grid;
	place-items: center;
	text-align: center;
	font-size: 12px;
	color: #6b7280;
}

.logo {
	width: 84px;
	height: 84px;
	border-radius: 8px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #d0d7de;
}

.headings .title {
	margin: 0;
	font-size: 24px;
	color: #263a7a;
}

.meta {
	color: #333;
	line-height: 1.5;
}

/* PR */
.pr-block {
	margin-top: 4px;
}

.pr-label {
	font-size: 12px;
	color: #6b7280;
}

.pr-text {
	margin: 6px 0 0;
	white-space: pre-line;
}

/* CTA + SNS */
.cta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 10px;
	margin:0px 10px;
	background: #1565c0;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

.sns-links {
	display: flex;
	gap: 15px;
	margin-top: 8px;
}

.sns-icon {
	width: 32px;
	height: 32px;
}

/* 代表者 */
.rep {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
}

.rep-photo {
	width: 140px;
	height: 140px;
	border-radius: 8px;
	object-fit: cover;
	background: #fff;
	border: 1px solid #d0d7de;
}

.rep-info {
	line-height: 1.25;
}

.rep-label {
	font-size: 14px;
	width: 120px;
}

.rep-name {
	font-weight: 700;
}

.rep-title {
	color: #374151;
}

.rep-comment {
	color: #374151;
}

/* ギャラリー全体 */
.gallery {
  margin-top: 16px;
}

.gallery figure {
  display: flex;
  justify-content: center;
  margin: 0;
}

.gallery figure img {
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.gallery-carousel {
  position: relative;
  margin-top: 16px;
}

.gallery-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 40px; /* 左右ボタン分の余白 */
}

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  margin: 0;
}

.gallery-slide img {
  max-width: 80%;     /* ←ここで“80%” */
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ナビボタン */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  z-index: 2;
}

.gallery-nav.prev { left: 4px; }
.gallery-nav.next { right: 4px; }

/* 画像が親の高さに引っ張られて潰れるのを防ぐ */
.gallery img,
.gallery-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* PCは80%で良いが、スマホは横幅いっぱい推奨 */
@media (min-width: 768px) {
  .gallery figure img,
  .gallery-slide img {
    max-width: 80%;
  }
}
@media (max-width: 767px) {
  .gallery figure img,
  .gallery-slide img {
    max-width: 100%;
  }
}

.pagination {
  margin: 24px 0;
  text-align: center;
}

.page-link {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  text-decoration: none;
  font-size: 14px;
  color: #374151;
}

.page-link.current {
  background-color: #2563eb;
  color: #fff;
  border-color: #2563eb;
  font-weight: bold;
  cursor: default;
}

.page-link:hover:not(.current) {
  background-color: #f3f4f6;
}

.error-message {
  background: #ffecec;
  color: #b30000;
  border: 1px solid #ffb3b3;
  padding-top: 15px;
  border-radius: 6px;
  font-weight: bold;
  height: 40px;
  text-align: center;
}

/* スマホもPCも縦並びでOK。必要なら微調整 */
@media (max-width: 480px) {
	.logo {
		width: 72px;
		height: 72px;
	}

	.sns-icon {
		width: 28px;
		height: 28px;
	}
}

.overview-long {
	white-space: pre-line;
	/* 改行コードを反映 */
}
