@charset "UTF-8";

/* ベース設定 */
html {
  scroll-behavior: smooth;
  background-color: #FFF;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow: visible;
}

/* 全体のレイアウト（Flexboxで横並び） */
.history-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 40px;
  /* サイドバーとメインの間隔 */

  align-items: flex-start;
  /* ← これを追加 */
}


/* ▼ ヒーロー全体 ▼ */
.hero {
  position: relative;
  /* ← 右下配置のため */
  padding: 120px 20px 100px;
  border-bottom: 1px solid;
}

/* 中央コンテンツ */
.hero-content {
  max-width: 827px;
  margin: 0 auto;
  text-align: left;
  /* 左寄せにしたければ left */
}

/* ロゴ */
.hero-logo {
  margin-bottom: 24px;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

/* メインコピー */
.hero-main-copy {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: #0F74B3;
  /* ▼ 追加：ロゴの「K」の位置までテキストを右に押す設定 ▼ */
  margin-left: 16%;
  /* ↑ この数値を増減させて位置を微調整してください */
}

/* 右下の周年表記 */
.hero-anniversary {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #666;
  font-family: 'Noto Serif JP', Times, serif;
}



/* ▼ 左側：サイドバー（追従設定） ▼ */
.history-sidebar {
  width: 200px;
  flex-shrink: 0;
  /* 幅を固定 */
  position: sticky;
  top: 150px;
  /* 上から150pxの位置で止まる */
  align-self: flex-start;
  /* ← 親が flex の場合の安全策 */
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.history-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-sidebar li {
  margin-bottom: 20px;
  padding-left: 20px;
  position: relative;
}

.history-sidebar li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s;
  display: block;
}

.history-sidebar li a:hover {
  color: #007bc7;
  /* ホバー時の青色 */
}

/* アクティブな年代のデザイン（青い丸ポチ） */
.history-sidebar li.active::before {
  content: '';
  position: absolute;
  left: 1px;
  /* 線の真上に配置 */
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #007bc7;
  border-radius: 50%;
}


.history-sidebar li.active a {
  color: #007bc7;
}


/* ▼ 右側：メインコンテンツ ▼ */
.history-content {
  flex: 1;
  /* main の横幅を確保 */
  flex-grow: 1;
  /* 残りの幅をすべて使う */
}

.content-header {
  margin-bottom: 60px;
}

.content-header h1 {
  font-size: 28px;
  color: #007bc7;
  margin-bottom: 15px;
}

.lead-text {
  font-weight: bold;
  font-size: 14px;
}

/* 各年代ブロック */
.history-block {
  background-color: #f7f8fa;
  /* 薄いグレーの背景 */
  padding: 10px 40px 0px;
  margin-bottom: 0;
  /* 次のブロックとの間隔 */
}

#section-2011.history-block {
  padding-bottom: 30px;
}

/* 年号エリアのデザイン（修正版） */

:root {
  --timeline-offset: 296px;
}

.date-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 0px;
  margin-top: 1rem;
}


.date-title {
  font-size: 48px;
  font-weight: 700;
  color: #0a63b0;
  white-space: nowrap;
}

.date-block {
  min-width: 160px;
}

.date-main {
  font-size: 36px;
  font-weight: 700;
  color: #0a63b0;
  line-height: 1.1;
}

p.date-main {
  margin: 0;
}

.date-main span {
  font-size: 24px;
  margin-left: 4px;
}

.date-era {
  margin-top: 4px;
  font-size: 16px;
  color: #666;
}

.date-line {
  width: 62px;
  /* 線のエリアを狭く固定 */
  height: 1px;
  background-color: #0a63b0;
  margin-top: 24px;
  flex-shrink: 0;
  /* 潰れない・広がらない */
}


.date-description {
  max-width: none;
  padding-right: 40px;
  /* 行長の暴走防止 */
  font-size: 1em;
  line-height: 1.8;
  font-weight: 600;
  color: #000;
}

.date-description h3 {
  font-size: 1rem;
  margin-top: 15px;
  line-height: 1.5rem;

}


.year-label {
  font-size: 24px;
  margin-left: 4px;
}

.era-label {
  font-size: 16px;
  color: #666;
  margin-left: 8px;
  flex-shrink: 0;
}



/* イベントタイトル（修正版） */
.event-title {
  font-size: 16px;
  margin: 0;
  /* 余計な余白を削除 */
  font-weight: bold;
  flex: 3;
  /* 残りの幅をすべて使う */
  min-width: 300px;
  /* 幅が狭くなりすぎたら改行させる */
  line-height: 1.5;
}

/* 画像グリッド（2列表示） */
.gallery-grid {
  display: flex;
  gap: 30px;
  margin-left: var(--timeline-offset);
  margin-bottom: 1rem;
}

.gallery-item {
  flex: 1;
  /* 均等に幅を取る */
  margin: 0;
  max-width: 48%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
  aspect-ratio: 4/3;
  /* 画像比率を固定（適宜変更可） */
  object-fit: cover;
}

.gallery-item figcaption {
  font-size: 13px;
  line-height: 1.6;
}

.gallery-item figcaption strong {
  display: block;
  margin-bottom: 5px;
}

.gallery-item figcaption small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 10px;
}

/* ▼ これからの岸本鉄工所 ▼ */
.future-section {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 120px;
  padding: 0 60px;
}

/* ▼ 幅を絞る本体 ▼ */
.future-inner {
  max-width: 827px;
  /* ← ここが指定値 */
}

/* 見出しは左寄せ・大きめ */
.future-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #0a63b0;
}

/* リード文 */
.future-lead {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 64px;
  text-align: justify;
}


.future-header {
  margin-bottom: 60px;
}

/* ▼ ブロック群 ▼ */
.future-blocks {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ▼ 各ブロック ▼ */
.future-block {
  width: 100%;
  margin-bottom: 5px;
  background-color: #F4F4F6;
}

.future-block-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 12px;
  padding: 0 30px;
  text-align: center;
}

.future-block-text {
  font-size: 15px;
  line-height: 1.8;
  padding: 0 30px;
}

/* ▼ これからの岸本鉄工所：画像エリア ▼ */
.future-media {
  width: 100%;
  display: flex;
  gap: 30px;
  margin-top: 0px;
}

.future-media-item {
  margin: 0;
  width: 260px;
  padding-bottom: 22px;
  padding-top: 10px;
}

.future-media-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #ddd;
  margin-bottom: 8px;
}

.future-media-item figcaption {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* ▼ 2枚・センター寄せ ▼ */

.layout-2col-center {
  width: 100%;
}

.layout-2col-center .future-media {
  display: flex;
  margin-top: 24px;
  justify-content: center;
}

/* ▼ 画像左・テキスト右 ▼ */
.layout-image-left,
.layout-image-right {
  display: flex;
  align-items: flex-start;
}

.layout-image-left .future-text {
  flex: 1;
}

.layout-image-left .future-media {
  max-width: 320px;
  margin-left: 30px;
}


/* ▼ 画像右・テキスト左 ▼ */

.layout-image-right .future-text {
  flex: 1;
}

.layout-image-right .future-media {
  max-width: 320px;
  margin-right: 30px;
}

.future-message {
  text-align: center;
  margin: 0;
  padding: 50px 20px;
}

.future-message-text {
  font-size: clamp(1.6rem, 3vw, 2rem);
  /* 見出しと同等感 */
  font-weight: 600;
  line-height: 1.8;
  color: #0F74B3;
  letter-spacing: 0.05em;
}

/* ヘッダーの調整 */
header.page_header {
  border-bottom: 0;
  background: none;
}

.page_header .logo {
  display: none;
}




/* ▼ スマホ対応（レスポンシブ） ▼ */
@media screen and (max-width: 768px) {
  .menu {
    height: 56px;
  }

  .hero {
    position: relative;
    min-height: 80svh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
  }

  .hero-main-copy {
    font-size: 16px;
  }

  .history-wrapper {
    flex-direction: column;
    /* 縦並びにする */
    padding: 20px;
  }

  /* サイドバーの設定変更 */
  .history-sidebar {
    width: 100%;
    position: relative;
    /* 固定を解除 */
    top: 0;
    margin-bottom: 20px;
    overflow-x: auto;
    /* 横スクロール可能に */
    white-space: nowrap;
    /* 改行しない */
    padding-bottom: 10px;
  }

  .history-sidebar ul {
    border-left: none;
    /* 縦線を消す */
    display: flex;
    gap: 20px;
  }

  .history-sidebar li {
    padding-left: 0;
    margin-bottom: 0;
  }

  .history-sidebar li.active::before {
    display: none;
    /* 丸ポチを消す、または下に線を引くなどに変更 */
  }

  .history-sidebar li.active a {
    border-bottom: 2px solid #007bc7;
  }

  .history-content {
    width: 100%;
  }

  .history-content .content-header h1,
  .future-title {
    font-size: 22px;
  }

  .history-block {
    padding: 20px;
    /* スマホでは余白を詰める */
  }


  .date-title {
    font-size: 28px;
    flex-shrink: 0;
    /* 年号は縮めない */
  }

  .date-row {
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 1rem;
  }

  .date-line {
    display: none;
  }

  .date-row .date-description {
    flex-basis: 100%;
    padding-right: 0;
  }

  .date-row .date-description h3 {
    font-size: 0.9em;
  }


  .gallery-grid {
    margin-left: 0;
  }

  .future-section {
    padding: 0;
  }

  .future-block {
    padding: 0 15px;
  }

  .future-block-title {
    text-align: left;
    padding: 0;
    font-size: 1.3em;
  }

  .future-block-text {
    padding: 0;
  }

  .future-media {
    display: block;
  }

  .future-media-item {
    width: 100%;
  }

  .layout-image-left,
  .layout-image-right {
    display: block;
  }

  .layout-image-left .future-media {
    margin: 0;
    width: 100%;
  }

  .layout-image-right .future-media {
    margin: 0;
    width: 100%;
  }

  .layout-image-left .future-block-text {
    margin-bottom: 20px;
  }

  .future-message {
    padding: 50px 0;
  }

  .future-message-text {
    font-size: 20px;
  }

}