/* ===========================================
   Page — About (about.html)
   =========================================== */

/* ========== Shared two-column section layout ========== */

/*
  Each section uses:
    Left col (160px) : section label
    Right col (1fr)  : section content
  Separated by a border
*/

.ab-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 56px;
  align-items: start;
}

.ab-section + .ab-section { border-top: none; }

/* Section label (left column) */
.ab-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.5;
  padding-top: 4px;
}

/* ========== About Intro ========== */

/* Full-width section so bg image covers the entire viewport width */
.about-intro {
  position: relative;
  overflow: hidden;
}

/* Background image covers full viewport width */
.about-intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  pointer-events: none;
}

/* 1140px content wrapper */
.about-intro-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 20px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 56px;
  align-items: start;
}

.about-intro-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.5;
  padding-top: 4px;
}

.about-intro-lead {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.65;
  margin-bottom: 20px;
}

.about-intro-text {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 2.3;
  margin-bottom: 0;
}

/* ========== History / Timeline ========== */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: 100px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 22px 0;
}

/* 年号右端からドット中心への横線コネクター */
/* year: left:-100px width:86px → right edge at -14px; dot center at 0 */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -14px;
  width: 14px;
  height: 1px;
  background: var(--color-border);
  transform: translateY(-50%);
}

.timeline-year {
  position: absolute;
  left: -100px;
  width: 86px;
  text-align: right;
  font-family: "Istok Web", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.3px;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  z-index: 1;
}
.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

.timeline-text {
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--color-text);
  line-height: 1.7;
}

/* ========== Message (代表挨拶) ========== */

.message-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.message-photo {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.message-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.message-text {
  font-size: 14.5px;
  color: var(--color-text-soft);
  line-height: 2.1;
  margin-bottom: 28px;
}

.message-sign {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.message-sign-name {
  font-size: 13.5px;
  color: var(--color-text-soft);
  margin-top: 6px;
}

/* ========== Company table (会社概要) ========== */

.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--color-border);
}

.company-table tr { border-bottom: 1px solid var(--color-border); }

.company-table th,
.company-table td {
  text-align: left;
  padding: 20px 20px;
  font-size: 14px;
  vertical-align: top;
  line-height: 1.9;
}

.company-table th {
  width: 160px;
  font-weight: 500;
  color: var(--color-text);
  background: #fafaf8;
  white-space: nowrap;
}

.company-table td { color: var(--color-text-soft); }

/* ========== Responsive — tablet ========== */
@media (max-width: 860px) {

  .about-intro-inner,
  .ab-section {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 52px 20px;
  }

  /* Label becomes a top bar with bottom border */
  .about-intro-label,
  .ab-label {
    font-size: 18px;
    padding-bottom: 16px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--color-border);
  }

  .about-intro-lead { font-size: 17px; }

  .timeline { padding-left: 80px; }
  .timeline::before { left: 80px; }
  .timeline-year { left: -80px; width: 68px; font-size: 13px; }
  /* year right edge: -80+68=-12px → connector */
  .timeline-item::before { left: -12px; width: 12px; }

  .company-table th { width: 110px; }
  .company-table th,
  .company-table td { padding: 14px 12px; font-size: 13px; }
}

/* ========== Responsive — mobile ========== */
@media (max-width: 480px) {
  .about-intro-inner,
  .ab-section { padding: 40px 20px; }

  .timeline { padding-left: 64px; }
  .timeline::before { left: 64px; }
  .timeline-year { left: -64px; width: 54px; font-size: 12px; }
  /* year right edge: -64+54=-10px → connector */
  .timeline-item::before { left: -10px; width: 10px; }

  /* Stack table cells vertically */
  .company-table,
  .company-table tbody,
  .company-table tr { display: block; }

  .company-table tr { padding: 14px 0; }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 3px 0;
  }

  .company-table th {
    background: none;
    font-weight: 700;
    color: var(--color-text);
  }
}
