/* =============================================
   about.css
   会社概要ページ固有スタイル
   読み込み順：common.css → animation.css → page.css → about.css
============================================= */
/* =============================================
   PAGE HERO
============================================= */
.page-hero__image img {
  object-position: center 10%;
}


/* =============================================
   全セクション共通：背景を白に統一
   ※ gray-bg は廃止。セクションの区切りは
     section-ruler と border-top が担う。
============================================= */
.about-philosophy,
.about-message,
.about-overview,
.about-history,
.about-access {
  background: var(--white);
}

/* 2セクション目以降に細いトップボーダーで区切りを補強 */
/*
.about-message,
.about-overview,
.about-history,
.about-access {
  border-top: 1px solid var(--border);
}
*/

/* =============================================
   ① 企業理念 PHILOSOPHY
============================================= */
.about-philosophy__head {
  margin-bottom: 3rem;
}

.about-philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* -------------------------------------------
   理念カード
   白背景 + 左アクセントボーダー + 角の切り欠き
   「設計図の仕様ボックス」をイメージした装飾。
------------------------------------------- */
.philosophy-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

/* 右上の角切り欠き */
.philosophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 1.25rem 1.25rem 0;
  border-color: var(--border) var(--border) transparent transparent;
}

.philosophy-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1.125rem;
  height: 1.125rem;
  background: var(--accent-light);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.philosophy-card:hover {
  box-shadow: 0 4px 20px rgba(0, 91, 172, 0.08);
  transform: translateY(-2px);
}

.philosophy-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--accent-light);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.philosophy-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.philosophy-card__text {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.85;
}


/* =============================================
   ② 代表メッセージ MESSAGE
============================================= */
.about-message__head {
  margin-bottom: 3rem;
}

.about-message__inner {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 4rem;
  align-items: start;
}

/* 写真エリア */
.about-message__img-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.25rem;
  background: var(--border);
  box-shadow: 4px 4px 0 0 var(--accent-light), 0 0 0 1px var(--border);
}

.about-message__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-message__name-block {
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.about-message__position {
  font-size: 0.75rem;
  color: var(--gray-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.about-message__name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.06em;
}

/* 本文エリア */
.about-message__body {
  padding-top: 0.25rem;
}

/* 引用リード文：薄青背景で強調 */
.about-message__lead {
  font-size: clamp(1rem, 1.8vw, 1.1875rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.65;
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 0.25rem 0.25rem 0;
}

.about-message__body p {
  font-size: 0.9375rem;
  color: var(--gray-dark);
  line-height: 2;
  margin-bottom: 1.25rem;
}

.about-message__body p:last-child {
  margin-bottom: 0;
}


/* =============================================
   ③ 会社概要テーブル COMPANY OVERVIEW
============================================= */
.about-overview__head {
  margin-bottom: 2.5rem;
}

.about-overview__table-wrap {
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  overflow: hidden;
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table th,
.about-table td {
  padding: 1.0625rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.about-table tr:last-child th,
.about-table tr:last-child td {
  border-bottom: none;
}

/* thは極薄いアクセントカラーで白より締まるが圧迫しない */
.about-table th {
  width: 11rem;
  background: #f0f5fb;
  font-weight: 600;
  color: var(--gray-dark);
  white-space: nowrap;
}

.about-table td {
  color: var(--gray-dark);
  background: var(--white);
}

.about-table tr:nth-child(even) td {
  background: #fafbfc;
}


/* =============================================
   ④ 沿革 HISTORY
============================================= */
.about-history__head {
  margin-bottom: 3rem;
}

.about-history__timeline {
  position: relative;
  max-width: 52rem;
}

.about-history__timeline::before {
  content: '';
  position: absolute;
  left: 6.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.history-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.history-item:first-child {
  padding-top: 0;
}

.history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* 丸マーカー：白背景統一のため background を #ffffff で固定 */
.history-item::before {
  content: '';
  position: absolute;
  left: 6.125rem;
  top: 1.9rem;
  width: 0.75rem;
  height: 0.75rem;
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.history-item--current::before {
  background: var(--accent);
}

.history-item__year {
  padding-top: 0.1rem;
  text-align: right;
  padding-right: 1.5rem;
}

.history-item__yr-num {
  display: block;
  font-family: var(--font-en);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.history-item--current .history-item__yr-num {
  font-size: 0.9375rem;
}

.history-item__yr-unit {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gray-light);
  margin-top: 0.125rem;
}

.history-item__content {
  padding-top: 0.05rem;
}

.history-item__row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 0.75rem;
  margin-bottom: 0.625rem;
}

.history-item__row:last-child {
  margin-bottom: 0;
}

.history-item__month {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-light);
  padding-top: 0.15rem;
  white-space: nowrap;
}

.history-item__desc {
  font-size: 0.9375rem;
  color: var(--gray-dark);
  line-height: 1.8;
}

.history-item--current .history-item__desc {
  font-weight: 500;
  color: var(--black);
}


/* =============================================
   ⑤ アクセス ACCESS
============================================= */
.about-access__head {
  margin-bottom: 2.5rem;
}

.about-access__inner {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: 3rem;
  align-items: start;
}

.about-access__map {
  border-radius: 0.375rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
}

.about-access__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.about-access__map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-light);
}

.about-access__map-placeholder p {
  font-size: 0.875rem;
}

.about-access__map-note {
  font-size: 0.75rem !important;
  color: var(--border) !important;
}

/* インフォエリア：左ボーダーでマップと仕切る */
.about-access__info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.access-info-block__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-en);
  margin-bottom: 0.625rem;
}

.access-info-block__body {
  font-size: 0.9375rem;
  color: var(--gray-dark);
  line-height: 1.85;
  font-style: normal;
}

.access-info-block__body a {
  color: var(--accent);
  text-decoration: none;
}

.access-info-block__body a:hover {
  text-decoration: underline;
}

.access-info-block__note {
  font-size: 0.8125rem;
  color: var(--gray-light);
  margin-top: 0.375rem;
}

.access-info-block__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.access-info-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--gray-dark);
  line-height: 1.65;
}

.access-info-block__list li svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.2rem;
}


/* =============================================
   RESPONSIVE（768px 以下）
============================================= */
@media (max-width: 768px) {
  .page-hero__image img{
    object-position: 65% 80%;
  }
  /* section-ruler */
  .section-ruler {
    margin-bottom: 1.5rem;
  }

  /* ① 企業理念 */
  .about-philosophy__head {
    margin-bottom: 1.75rem;
  }

  .about-philosophy__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .philosophy-card {
    padding: 1.5rem 1.25rem;
  }

  /* ② 代表メッセージ */
  .about-message__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-message__img-wrap {
    aspect-ratio: 3 / 4;
    max-width: 20rem;
    margin-inline: auto;
  }

  .about-message__lead {
    font-size: 1rem;
    padding: 1rem 1.125rem;
  }

  /* ③ 会社概要テーブル */
  .about-table th,
  .about-table td {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .about-table th {
    width: 100%;
    border-bottom: none;
    padding-bottom: 0.25rem;
    white-space: normal;
  }

  .about-table td {
    padding-top: 0.25rem;
    padding-bottom: 1rem;
  }

  .about-table tr:last-child td {
    border-bottom: none;
  }

  /* ④ 沿革 */
  .about-history__timeline::before {
    left: 4.25rem;
  }

  .history-item {
    grid-template-columns: 4.75rem 1fr;
    gap: 0 1.25rem;
    padding: 1.25rem 0;
  }

  .history-item::before {
    left: 3.875rem;
    top: 1.4rem;
  }

  .history-item__year {
    padding-right: 1rem;
  }

  .history-item__yr-num {
    font-size: 0.9375rem;
  }

  .history-item__row {
    grid-template-columns: 2rem 1fr;
  }

  /* ⑤ アクセス */
  .about-access__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-access__map {
    aspect-ratio: 4 / 3;
  }

  /* SP：左ボーダー仕切りを上ボーダーに切り替え */
  .about-access__info {
    padding-left: 0;
    border-left: none;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
  }
}