/* ==========================================================================
   about.html 専用スタイル
   共通クラス（.header, .footer, .heading, .btn, .contact 等）は style.css を再利用
   ========================================================================== */

/* ページタイトル: 共通クラス .pageTitle / .pageTitle__inner を使用（style.css） */

/* 本文レイアウト（サイドナビ + コンテンツ）
   ========================================================================== */
.about-main {
  background: var(--mme-bk-blue);
  padding: 100px 40px;
}
.about-main .heading__sub { color: var(--mme-lightblue); }
.about-main__inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

/* サイドナビ */
.about-nav {
  flex: 0 0 150px;
  width: 150px;
  position: sticky;
  top: 120px;
}
.about-nav__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-nav__item a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--light-gray, #acacac);
}
.about-nav__item.is-current a { color: var(--mme-lightblue); }
.about-nav__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--light-gray, #acacac);
}
.about-nav__item.is-current .about-nav__dot { background: var(--mme-lightblue); }

/* コンテンツ（各カード） */
.about-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.about-card {
  background: var(--white);
  border-radius: 30px;
  padding: 60px 70px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  scroll-margin-top: 100px;
}
.about-card .heading { margin-bottom: 0; align-items: flex-start; text-align: left; }

/* ご挨拶 Message
   ========================================================================== */
.about-message {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}
.about-message__img {
  width: 100%;
  aspect-ratio: 760/348;
  border-radius: 20px;
  background: #d9d9d9;
  overflow: hidden;
}
.about-message__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-message__body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 47px;
  width: 100%;
}
.about-message__text {
  width: 100%;
}
.about-message__sign {
  flex-shrink: 0;
  text-align: right;
}
.about-message__signCompany { font-size: 13px; }
.about-message__signRole { margin-top: 4px; font-size: 13px; }
.about-message__signName { margin-top: 8px; font-size: 18px; }

/* 会社概要 Company
   ========================================================================== */
.about-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  border-top: 1px solid #ddd;
}
.about-table__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px 58px;
  padding: 30px 0;
  border-bottom: 1px solid #ddd;
}
.about-table__row dt {
  flex: 0 0 102px;
  width: 102px;
  font-weight: 700;
}
.about-table__row dd {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
}
.about-pamphletBtn {
  display: flex;
  justify-content: center;
  margin-top: 0px;
}
.about-pamphletBtn .btn {
  max-width: 500px;
  width: 100%;
  border-radius: 15px;
  height: 66px;
}
.about-pamphletBtn__br { display: none; }
.about-locations__map {
  display: inline-block;
  margin-top: 8px;
  color: var(--mme-lightblue);
  text-decoration: underline;
}
.about-locations__name a { color: inherit; text-decoration: underline; }
.about-pamphletBtn .btn.text-body-base {
  font-weight: 500;
  font-size: 16px;
}

/* 沿革 History
   ========================================================================== */
.about-history-tabs {
  display: flex;
  gap: 50px;
  width: 100%;
}
.about-history-tabs__item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 220px;
  min-height: 109px;
  padding: 20px 12px;
  border: none;
  border-radius: 15px;
  background: #bcc6cf;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
  transition: background-color .2s ease;
}
.about-history-tabs__item.is-current {
  background: var(--mme-lightblue);
}
.about-history-tabs__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: var(--white);
  color: #bcc6cf;
}
.about-history-tabs__item.is-current .about-history-tabs__icon {
  color: var(--mme-lightblue);
}
.about-history-tabs__icon svg { width: 12px; height: 8px; }

.about-history {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  position: relative;
  padding-left: 132px;
}
.about-history::before {
  content: "";
  position: absolute;
  left: 132px;
  top: 35px;
  bottom: 35px;
  width: 3px;
  background: var(--mme-bk-blue, #dde7f0);
}
.about-history__item {
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.about-history__item[hidden] {
  display: none;
}
.about-history__year {
  flex: 0 0 132px;
  margin-left: -132px;
  padding-right: 40px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: .1em;
  color: var(--mme-lightblue);
  text-align: right;
  position: relative;
}
.about-history__year::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--mme-lightblue);
  box-shadow: 0 0 0 1px var(--mme-lightblue);
}
.about-history__text {
  flex: 1 1 300px;
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* 組織図・拠点 Org Chart & Locations
   ========================================================================== */
.about-org {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.about-org__chart {
  --dept-margin-top: 110px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.about-org__box {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--mme-lightblue);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .05em;
  text-align: center;
}
.about-org__box--top,
.about-org__box--president { width: 177px; }
.about-org__box--top { font-family: "Outfit", sans-serif; font-weight: 600; margin-bottom: 16px; }
.about-org__box--president { margin: 0; }

/* 接続線（画像を使わずCSSの疑似要素で描画） */
.about-org__box--top::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 16px;
  background: var(--border_lightgray);
  transform: translateX(-50%);
}
.about-org__box--president::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: calc(var(--dept-margin-top) / 2);
  background: var(--border_lightgray);
  transform: translateX(-50%);
}
.about-org__deptRow {
  --dept-basis: 260px;
  --dept-gap: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  gap: var(--dept-gap);
  width: 100%;
  max-width: 760px;
  margin: var(--dept-margin-top) auto 0;
}
.about-org__deptRow::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--dept-margin-top) / 2);
  left: 50%;
  width: calc(var(--dept-basis) + var(--dept-gap));
  max-width: 100%;
  height: 2px;
  background: var(--border_lightgray);
  transform: translateX(-50%);
}
.about-org__box--dept { flex: 1 1 var(--dept-basis); min-width: 0; max-width: 370px; }
.about-org__br400 { display: none; }
@media (max-width: 400px) {
  .about-org__br400 { display: inline; }
}
.about-org__box--dept::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--dept-margin-top) / 2);
  left: 50%;
  width: 2px;
  height: calc(var(--dept-margin-top) / 2);
  background: var(--border_lightgray);
  transform: translateX(-50%);
}

.about-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
}
.about-locations__col {
  display: contents;
}
.about-locations__item {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px 34px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.about-locations__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
}
.about-locations__name img { width: 15px; height: 15px; flex-shrink: 0; }
.about-locations__block { display: flex; flex-direction: column; gap: 5px; }
.about-locations__label { font-weight: 700; font-size: 13px; color: var(--mme-lightblue); }

/* 主要取引先 Clients
   ========================================================================== */
.about-clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}
.about-clients li {
  background: rgba(27, 94, 155, .1);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   980px以下
   ========================================================================== */
@media (max-width: 980px) {

  .about-history-tabs { flex-direction: column; gap: 16px; }
  .about-history-tabs__item { max-width: none; height: auto; padding: 14px 8px; }
}

/* ==========================================================================
   TAB (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

  .about-main { padding: 60px 40px; }
  .about-main__inner { flex-direction: column; gap: 30px; }
  .about-nav { position: static; width: 100%; flex: 0 0 auto; }
  .about-nav__list { flex-direction: row; flex-wrap: wrap; gap: 16px 24px; }

  .about-card { padding: 40px 30px; gap: 40px; }

  .about-pamphletBtn .btn.text-body-base { font-size: 15px; }
  .about-pamphletBtn .btn { text-align: center; }
  .about-pamphletBtn__br { display: inline; }

  .about-table__row { flex-direction: column; flex-wrap: nowrap; padding: 20px 0; }
  .about-table__row dt { flex-basis: auto; width: 100%; }
  .about-table__row dd { flex-basis: auto; width: calc(100% - 30px); margin-left: 30px; }

  .about-history-tabs__item { font-size: 13px; }

  .about-history { padding-left: 90px; }
  .about-history::before { left: 90px; }
  .about-history__year { flex-basis: 90px; margin-left: -90px; padding-right: 24px; font-size: 24px; }
  .about-history__item { min-height: 60px; }

  .about-org__chart { --dept-margin-top: 80px; }
  .about-org__box { padding: 0 12px; height: 44px; font-size: 13px; }
  .about-org__deptRow {
    --dept-gap: 10px;
    max-width: none;
  }
  .about-org__box--dept { flex: 1 1 0; min-width: 0; max-width: none; }

  .about-locations { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* ==========================================================================
   SP (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {

  .about-main { padding: 50px 20px; }
  .about-nav__list { flex-direction: column; gap: 14px; }

  .about-pamphletBtn .btn { text-align: center; }
  .about-pamphletBtn .btn.text-body-base { font-size: 14px; }

  .about-card { padding: 30px 20px; gap: 30px; }

  .about-message__body { align-items: flex-start; }
  .about-message__sign { width: 100%; }

  .about-table__row { padding: 20px 0; gap: 8px; }
  .about-table__row dt { flex-basis: auto; width: 100%; }
  .about-table__row dd { flex-basis: auto; width: 100%; margin-left: 10px; }

  .about-history-tabs { flex-direction: column; gap: 10px; }
  .about-history-tabs__item { flex-basis: auto; }

  .about-history { padding-left: 0; gap: 24px; }
  .about-history::before { display: none; }
  .about-history__item { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; }
  .about-history__year { flex: 0 0 auto; margin-left: 0; padding-right: 0; text-align: left; }
  .about-history__year::after { display: none; }
  .about-history__text { flex: 0 0 auto; }

  .about-org__chart { --dept-margin-top: 60px; }
  .about-org__box { padding: 0 8px; font-size: 12px; }
  .about-org__deptRow { --dept-gap: 6px; }

  .about-locations__item { padding: 20px; }

  .about-clients { justify-content: flex-start; }
}

/* Contact CTAの背景色（このページのみ） */
.contact::before { background: var(--mme-bk-blue); }
