/* ===== Page Hero ===== */

/* ===== タブナビ ===== */
.about-tabs-wrap {
  background: #fff;
  border-bottom: 1px solid #e0e6ef;
  position: sticky;
  top: 92px;
  z-index: 99;
  padding: 0;
}
.about-tabs {
  display: flex;
  gap: 0;
}
.about-tab {
  flex: 1;
  min-width: 0;
  padding: 18px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.about-tab:hover {
  color: var(--navy);
}
.about-tab.active {
  color: var(--navy);
  border-bottom-color: var(--blue);
}

/* ===== セクション ===== */
.about-section {
  padding: 80px 0 100px;
  background: var(--bg-alt);
}
.about-section--hidden {
  display: none;
}

/* ===== 社名見出し ===== */
.about-company-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 48px;
}

/* ===== 社屋写真 ===== */
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 48px;
}
.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== フォトギャラリー ===== */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 56px;
}
.about-gallery-item {
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 16/10;
}
.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.about-gallery-item:hover img {
  transform: scale(1.04);
}

/* ===== ごあいさつ ===== */
.about-greeting {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 48px;
  margin-bottom: 64px;
  box-shadow: var(--shadow);
}
.about-greeting-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
}
.about-greeting-body {
  margin: 0;
  padding: 0;
  display: contents;
}
.about-greeting-body p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 2;
  text-align: center;
  margin-bottom: 12px;
}
.about-greeting-body p:last-child {
  margin-bottom: 0;
}

/* ===== 概要＋沿革グリッド ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== 小見出し ===== */
.about-sub-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}

/* ===== 会社概要テーブル ===== */
.about-info {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.about-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.about-table tr + tr td,
.about-table tr + tr th {
  border-top: 1px solid #e0e6ef;
}
.about-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 12px 12px 0;
  white-space: nowrap;
  vertical-align: top;
  width: 38%;
}
.about-table td {
  color: var(--text);
  padding: 12px 0;
  vertical-align: top;
  line-height: 1.7;
}
.about-location {
  margin: 0 0 10px;
  font-size: 0.85rem;
}
.about-location:last-child { margin-bottom: 0; }
.about-business-cat {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
  margin: 10px 0 4px;
}
.about-business-cat:first-child { margin-top: 0; }
.about-business-list {
  margin: 0 0 8px 0;
  padding-left: 1.2em;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-business-list:last-child { margin-bottom: 0; }

/* ===== 沿革タイムライン ===== */
.about-history {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.about-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-timeline li {
  padding: 16px 0 16px 20px;
  border-left: 2px solid #d0dcea;
  position: relative;
  margin-left: 8px;
}
.about-timeline li:first-child {
  padding-top: 0;
}
.about-timeline li:first-child::before {
  top: 0;
}
.about-timeline li:last-child {
  padding-bottom: 4px;
}
.about-timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--blue);
}
.about-timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.about-timeline-body {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

/* ===== CSバナー ===== */
.about-cs-banner {
  margin-bottom: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.about-cs-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 環境方針 ===== */
.about-policy {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 48px;
  margin-bottom: 64px;
  box-shadow: var(--shadow);
}
.about-policy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: policy;
}
.about-policy-list li {
  counter-increment: policy;
  padding: 20px 0;
  border-bottom: 1px solid #e0e6ef;
}
.about-policy-list li:last-child { border-bottom: none; padding-bottom: 0; }
.about-policy-list li:first-child { padding-top: 0; }
.about-policy-list h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.about-policy-list h4::before {
  content: counter(policy) '.';
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  min-width: 20px;
}
.about-policy-list p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
  padding-left: 30px;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .about-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .about-gallery-item img { height: 140px; }
  .about-section { padding: 48px 0 64px; }
  .about-greeting { padding: 28px 24px; }
  .about-greeting-body p { text-align: left; }
  .about-policy { padding: 28px 24px; }
  .about-policy-list p { padding-left: 0; }
  .about-info,
  .about-history { padding: 24px 20px; }
  .about-tabs-wrap { top: 60px; }
  .about-tab { font-size: 0.85rem; padding: 14px 12px; }
}
