/* =============================================================
   PROMISE — Company Page Stylesheet
   company.css  |  v2.0.0
   ※ style.css を先に読み込むこと
============================================================= */

/* ============================================================
   Section: 会社情報
============================================================ */
#company-info {
  padding-bottom: 120px;
}

.company-info__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 40px;
}

.case { font-size: var(--fs-xs);}
/* ---- 会社情報テーブル ------------------------------------ */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid #333;
}

.company-table tr:first-child {
  border-top: 1px solid #333;
}

.company-table th {
  font-size: var(--fs-md);
  font-weight: 300;
  letter-spacing: .15em;
  text-align: left;
  vertical-align: top;
  padding: 28px 40px 28px 0;
  width: 220px;
  white-space: nowrap;
  color: #aaa;
}

.company-table td {
  font-size: var(--fs-md);
  line-height: 2.2;
  padding: 28px 0;
  vertical-align: top;
}

.company-table td small {
  display: block;
  color: #ccc;
  margin-top: 4px;
}

/* 所在地：拠点ブロック */
.company-address-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.company-address-block > div {
  display: flex;
  flex-direction: column;
}

.company-address-block > div p {
  flex: 1;
  margin-bottom: 20px;
}

.company-address__label {
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}



/* ============================================================
   Section: 歴史（タイムライン）
============================================================ */
#company-history {
}

.company-history__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 40px;
}

/* ---- タイムライン本体 ------------------------------------ */
.timeline {
  position: relative;
  padding-bottom: 40px;
}

/* 中央縦ライン */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,169,110,.3) 5%,
    rgba(201,169,110,.3) 95%,
    transparent 100%);
}

/* ---- タイムラインアイテム -------------------------------- */
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto; /* content行・image行 */
  gap: 0;
  margin-bottom: 80px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}
.timeline__item {}


/* PC：2個目以降を上に引き上げる */
@media (min-width: 769px) {
  .timeline__item.is-pullUp { margin-top: -250px }
  .timeline__item.is-pullDown { margin-top: 120px; }

}

.timeline__dot {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  background: var(--gold);
  z-index: 1;
  content: ''; display: inline-block; 
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9.11 8.18'%3E%3Cpolygon points='1.86 0 4.53 0 7.2 0 9.11 2.3 4.62 8.18 0 2.3 1.86 0'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9.11 8.18'%3E%3Cpolygon points='1.86 0 4.53 0 7.2 0 9.11 2.3 4.62 8.18 0 2.3 1.86 0'/%3E%3C/svg%3E");
  
  /* background-sizeなどと同じ感覚でマスクの位置やサイズを調整 */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center left;
  mask-position: center left;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: #c9a96e; 
}


/* ---- 左アイテム（content・image ともに col1） ------------ */
.timeline__item--left .timeline__content {
  grid-column: 1;
  grid-row: 1;
  padding-right: 60px;
  text-align: right;
}

.timeline__item--left .timeline__image {
  grid-column: 1;
  grid-row: 2;
  padding-right: 60px;
}

/* ---- 右アイテム（content・image ともに col2） ------------ */
.timeline__item--right .timeline__content {
  grid-column: 2;
  grid-row: 1;
  padding-left: 60px;
  text-align: left;
}

.timeline__item--right .timeline__image {
  grid-column: 2;
  grid-row: 2;
  padding-left: 60px;
}

/* ---- タイムラインコンテンツ共通 -------------------------- */
.timeline__content {
}

.timeline__year {
  font-family: 'Cinzel', serif;
  font-size: var(--fs-2xl);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}
.timeline__year span { font-size: var(--fs-sm);}

.timeline__event {
  font-size: var(--fs-mb);
  letter-spacing: .1em;
  color: var(--gold);
  line-height: 1.7;
}

.timeline__note {
  font-family: 'Cinzel', serif;
  font-size: var(--fs-xs);
  letter-spacing: .15em;
}

/* ---- タイムライン画像 ------------------------------------ */
.timeline__image {
  margin-top: 16px;
}

.timeline__image-box {
  aspect-ratio: 4/3;
  /*overflow: hidden;*/
  position: relative;
}

.timeline__item:hover .timeline__image-box {
  border-color: rgba(201,169,110,.3);
}

.external-link { display: inline-block; padding-right: 25px; background: url(../image/company/icon_link.png) right center no-repeat; background-size: 20px auto;  transition: color .25s; }
.external-link:hover { color: #aaaaaa; opacity: .8; }

/* ============================================================
   Responsive — Tablet (≤ 1024px)
============================================================ */
@media (max-width: 1024px) {
  .company-info__inner    { padding-inline: 24px; }
  .company-history__inner { padding-inline: 24px; }
  .company-table th       { width: 120px; padding-right: 24px; }
  .company-address-block  { gap: 32px; }
  .timeline__item--left .timeline__content  { padding-right: 40px; }
  .timeline__item--right .timeline__content { padding-left: 40px; }
  .timeline__item--left .timeline__image    { padding-right: 40px; }
  .timeline__item--right .timeline__image   { padding-left: 40px; }
}

/* ============================================================
   Responsive — Mobile (≤ 768px)
============================================================ */
@media (max-width: 768px) {
  #company-info         { padding: 0; }
  .company-info__inner  { padding-inline: 5vw; }

  .company-table        { margin-top: 48px; }
  .company-table th {
    display: block;
    width: 100%;
    padding: 20px 0 4px;
    border-bottom: none;
    font-size: .72rem;
    color: var(--gold);
  }
  .company-table td {
    display: block;
    width: 100%;
    padding: 0 0 20px;
  }
  .company-table tr { border-bottom: 1px solid var(--border); }

  .company-address-block { grid-template-columns: 1fr; gap: 20px; }

  #company-history        { margin-top: 50px; padding: 0; }
  .company-history__inner { padding-inline: 0; }

  .timeline { margin: 5vw 5vw 0 5vw; }
  /* タイムライン：1カラム・左寄せ */
  .timeline::before {
    left: 10px;
    transform: none;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding-left: 40px;
    margin-bottom: 56px;
  }

  .timeline__dot {
    left: 10px;
    transform: translateX(-50%);
    top: 20px;
  }

  .timeline__item--left .timeline__content,
  .timeline__item--right .timeline__content {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    padding: 0 0 16px;
  }

  .timeline__item--left .timeline__image,
  .timeline__item--right .timeline__image {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
    margin-top: 12px;
  }
}
