/* ------------- 共通 ------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.timeline-page {
  min-height: 100vh;
  padding: 40px 5vw 80px;
  background: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ",
    Meiryo, sans-serif;
  color: #222;
}

/* ------------- ヘッダー ------------- */

.tl-header {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.tl-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tl-logo-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #333;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.tl-main-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-sub-title {
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #999;
}

.tl-header-right {
  margin-left: auto;
  max-width: 360px;
}

.tl-about-title {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #777;
}

.tl-about-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #666;
}

/* ------------- タイムライン背景 ------------- */

.tl-main {
  max-width: 1200px;
  margin: 0 auto;
}

/* ここで 2枚目の画像を背景として使用 */
.timeline-visual {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  aspect-ratio: 14 / 9; /* ざっくり16:9比率 */
  background: #f5f5f5 url("https://website-design.me/company/images/timeline-bg-base.jpg") no-repeat
    center center;
  background-size: contain;
}

/* 背景の上に載せる用のレイヤー */
.timeline-inner {
  position: absolute;
  inset: 0;
}

/* ------------- ピンの中の写真 ------------- */

.pin-photo {
  position: absolute;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #ffffff, #c0c0c0);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.7);
}

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

/* 写真の位置（％は背景画像に合わせて調整） */

/* 奥のマゼンタ */
.pin-photo-1983 {
  width: 5.2%;
  left: 31.2%;
  top: 18.9%;
}

/* 左のグリーン */
.pin-photo-2005 {
  width: 9%;
  left: 17.7%;
  top: 31.5%;
}

/* 中央の水色 */
.pin-photo-1998 {
  width: 7.8%;
  left: 51.8%;
  top: 26.7%;
}

/* 右のオレンジ */
.pin-photo-2012 {
  width: 14%;
  left: 70%;
  top: 41.5%;
}

/* 手前の大きい赤 */
.pin-photo-2016 {
  width: 18.5%;
  left: 34.5%;
  top: 60.5%;
}

/* ------------- 年・タイトル・テキスト ------------- */

.milestone {
  position: absolute;
  max-width: 260px;
  font-size: 12px;
  line-height: 1.7;
  color: #666;
}

.milestone-year {
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff6a00;
  margin-bottom: 4px;
}

.milestone-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #444;
}

.milestone-text {
  margin: 0;
}

/* 各ブロックの位置（背景に合わせて調整） */

/* 1983：上部中央付近 */
.milestone-1983 {
  left: 38%;
  top: 8%;
  text-align: left;
}

/* 2005：左中段、グリーンの近く */
.milestone-2005 {
  left: 20%;
  top: 49%;
  text-align: left;
}

/* 1998：中央やや下 */
.milestone-1998 {
  left: 49%;
  top: 42%;
  text-align: left;
}

/* 2012：右側 */
.milestone-2012 {
  left: 70%;
  top: 58%;
  text-align: right;
}

/* 2016：一番手前、下部左寄り */
.milestone-2016 {
  left: 20%;
  top: 78%;
  text-align: left;
}

/* 2016の年だけサンプルに寄せて強調 */
.milestone-2016 .milestone-year {
  font-size: 22px;
  color: #ff4a2a;
}

/* ------------- レスポンシブ ------------- */

@media (max-width: 960px) {
  .tl-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tl-header-right {
    margin-left: 0;
    max-width: none;
  }

  .timeline-visual {
    aspect-ratio: 13 / 12; /* 縦長寄りに */
    background-size: cover;
  }

  .timeline-page {
    padding-inline: 16px;
  }
}

@media (max-width: 600px) {
  .tl-main-title {
    font-size: 22px;
  }

  .tl-logo-circle {
    width: 68px;
    height: 68px;
    font-size: 12px;
  }
/* 写真の位置（％は背景画像に合わせて調整） */

/* 奥のマゼンタ */
.pin-photo-1983 {
  width: 7.5%;
  left: 23%;
  top: 18.9%;
}

/* 左のグリーン */
.pin-photo-2005 {
  width: 13%;
  left: 3.5%;
  top: 31.5%;
}

/* 中央の水色 */
.pin-photo-1998 {
  width: 11%;
  left: 52.5%;
  top: 26.7%;
}

/* 右のオレンジ */
.pin-photo-2012 {
  width: 19%;
  left: 79.5%;
  top: 42.5%;
}

/* 手前の大きい赤 */
.pin-photo-2016 {
  width: 26%;
  left: 28%;
  top: 60.5%;
}
/* 1983：上部中央付近 */
.milestone-1983 {
  left: 2%;
  top: 1%;
  text-align: left;
  line-height: 0.1em;
}

/* 2005：左中段、グリーンの近く */
.milestone-2005 {
  left: 20%;
  top: 40%;
  text-align: left;
  line-height: 0.1em;
}

/* 1998：中央やや下 */
.milestone-1998 {
  left: 59%;
  top: 9%;
  text-align: left;
  line-height: 0.1em;
}

/* 2012：右側 */
.milestone-2012 {
  left: 70%;
  top: 71%;
  text-align: left;
  line-height: 0.1em;
}

/* 2016：一番手前、下部左寄り */
.milestone-2016 {
left: 6%;
  top: 95%;
  text-align: left;
  line-height: 0.1em;
}

/* 2016の年だけサンプルに寄せて強調 */
.milestone-2016 .milestone-year {
  font-size: 22px;
  color: #ff4a2a;
}
  /* スマホでは文字が読めるように少し位置調整してもOK */
}
