/*
沿革ページ 専用CSS
Ctrl+Fで「01 メイン画像」「03 年表」などの日本語見出しを検索。
00 共通 / 01 メイン画像 / 02 導入 / 03 年表 / 04 CONTACT
年・月・文章・写真のファイル名はhistory.htmlで編集します。
padding＝内側余白、margin＝外側余白、gap＝項目間隔。
ヘッダー・フッターはcommon.cssを再利用。
*/

/* #region 00 共通設定・本文幅
======================================== */
.hi-page { color: #102b43; background: #fff; }
.hi-container { width: min(1500px, calc(100% - 80px)); margin: 0 auto; }
.hi-page :focus-visible { outline: 3px solid #00a6a6; outline-offset: 5px; }
.hi-skip { position: absolute; top: -100px; left: 16px; z-index: 200; padding: 12px 20px; background: #fff; }
.hi-skip:focus { top: 10px; }
@media (max-width: 767px) {
    .hi-container { width: calc(100% - 40px); }
    .hi-pc-break { display: none; }
}
/* #endregion */

/* #region 01 メイン画像・沿革
======================================== */
.hi-hero { min-height: 460px; color: #fff; background: linear-gradient(90deg, #00121fcc 0%, #00121f88 35%, #00121f00 75%), url("../images/History/青い設計図と未来の回路図.png.webp") center / cover no-repeat; }
/* メイン文字エリアの上下余白 */
.hi-hero-inner { position: relative; min-height: 460px; padding: 25px 0 35px; }
.hi-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .09em; margin-bottom: 22px; }
.hi-hero h1 { font: 500 clamp(46px, 5vw, 72px)/1.35 "Yu Mincho", "YuMincho", serif; letter-spacing: .12em; margin-bottom: 8px; }
.hi-hero-english { font: 15px/1.8 Georgia, serif; letter-spacing: .22em; margin-bottom: 18px; }
.hi-hero-subtitle { font: 500 clamp(24px, 2.6vw, 36px)/1.5 "Yu Mincho", "YuMincho", serif; letter-spacing: .04em; margin-bottom: 14px; }
.hi-hero-copy { max-width: 800px; font-size: 15px; line-height: 1.9; letter-spacing: .04em; }
.hi-hero-side { position: absolute; right: 0; bottom: 35px; font: 10px/1.9 Georgia, serif; letter-spacing: .22em; text-shadow: 0 1px 5px #001323; }
@media (max-width: 767px) {
    .hi-hero { background-image: linear-gradient(90deg, #00121fed, #00121f99), url("../images/History/青い設計図と未来の回路図.png.webp"); }
    .hi-hero h1 { font-size: 52px; }
    .hi-hero-copy { font-size: 14px; }
    .hi-hero-subtitle { font-size: 27px; }
    .hi-hero-side { display: none; }
}
/* #endregion */

/* #region 02 導入・沿革のあゆみ
======================================== */
.hi-history { padding: 32px 0 18px; }
.hi-intro { margin-bottom: 25px; }
.hi-heading { display: flex; align-items: baseline; gap: 22px; border-left: 2px solid #1bb6e2; padding-left: 18px; margin-bottom: 16px; }
.hi-heading h2 { font: 500 clamp(28px, 2.8vw, 40px)/1.5 "Yu Mincho", "YuMincho", serif; letter-spacing: .04em; }
.hi-heading p { color: #315e8b; font: 600 11px/1.8 Georgia, serif; letter-spacing: .2em; }
.hi-intro-copy { font-size: 15px; line-height: 1.9; letter-spacing: .04em; padding-left: 20px; }
.hi-note { font-size: 11px; line-height: 1.8; color: #657b91; margin: 16px 0 0; }
@media (max-width: 767px) {
    .hi-intro-copy { padding-left: 0; font-size: 14px; }
    .hi-heading { gap: 14px; }
    .hi-heading h2 { font-size: 28px; }
}
/* #endregion */

/* #region 03 年表・年月と出来事
======================================== */
.hi-timeline { list-style: none; }
/* 左の年月幅。右の出来事エリアは残りの幅 */
.hi-event { display: grid; grid-template-columns: 175px minmax(0, 1fr); }
.hi-date { position: relative; border-right: 1px solid #1f6fce; padding: 15px 30px 20px 0; text-align: center; }
/* 縦線の上に置く丸い点 */
.hi-date::after { content: ""; position: absolute; right: -9px; top: 26px; width: 18px; height: 18px; border: 4px solid #0068bb; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #42c2d3; z-index: 2; }
.hi-year { display: block; color: #003e9d; font: 600 clamp(33px, 3vw, 45px)/1.4 Georgia, serif; }
.hi-month { display: block; color: #00377c; font-size: 18px; font-weight: 600; }
/* 各出来事の高さ・背景。写真は右側に淡く配置 */
.hi-event-panel { position: relative; overflow: hidden; min-height: 170px; border-bottom: 4px solid #fff; background: #f5f9fd; }
.hi-event-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hi-event-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, #fffffff5 35%, #ffffffb3 57%, #ffffff44 82%, #ffffffd9); pointer-events: none; }
.hi-event-content { position: relative; z-index: 1; padding: 16px 36px 20px 60px; max-width: 850px; }
.hi-event-content h3 { font: 600 clamp(20px, 2vw, 28px)/1.5 "Yu Mincho", "YuMincho", serif; margin-bottom: 5px; }
.hi-event-subtitle { font: 600 20px/1.5 "Yu Mincho", "YuMincho", serif; color: #0083c5; letter-spacing: .04em; margin-bottom: 8px; }
.hi-event-copy { font-size: 14px; line-height: 1.85; letter-spacing: .035em; color: #385474; }
.hi-event-keywords { position: absolute; z-index: 1; right: 30px; top: 50%; transform: translateY(-50%); font: 10px/1.9 Georgia, serif; letter-spacing: .23em; color: #003775; }
.hi-planned .hi-date::after { border-color: #00a2af; }
.hi-planned .hi-event-subtitle { font-family: inherit; font-size: 15px; }

/* タブレット：英文を非表示にして本文幅を確保 */
@media (max-width: 1150px) {
    .hi-event { grid-template-columns: 140px minmax(0, 1fr); }
    .hi-event-content { padding: 18px 25px 22px 40px; max-width: 80%; }
    .hi-event-keywords { display: none; }
    .hi-event-panel::after { background: linear-gradient(90deg, #fffffff5 0%, #ffffffed 50%, #ffffff88); }
}
/* スマホ：年表線を残し、年月の横に文章を配置 */
@media (max-width: 767px) {
    .hi-event { grid-template-columns: 83px minmax(0, 1fr); }
    .hi-date { padding: 17px 13px 20px 0; }
    .hi-date::after { width: 14px; height: 14px; border-width: 3px; right: -7px; top: 27px; }
    .hi-year { font-size: 26px; }
    .hi-month { font-size: 12px; }
    .hi-event-panel { min-height: 180px; }
    .hi-event-content { padding: 18px 8px 22px 20px; max-width: 100%; }
    .hi-event-content h3 { font-size: 20px; overflow-wrap: anywhere; }
    .hi-event-subtitle { font-size: 17px; }
    .hi-event-copy { font-size: 13px; line-height: 1.9; }
    .hi-event-panel::after { background: #ffffffe6; }
}
/* #endregion */

/* #region 04 CONTACT・既存ページと統一
======================================== */
.hi-contact {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 65px 0;
  box-sizing: border-box;

  background:
    linear-gradient(
      90deg,
      rgba(0, 17, 34, 0.72) 0%,
      rgba(0, 25, 46, 0.30) 55%,
      rgba(0, 17, 34, 0.18) 100%
    ),
    url("../images/Circuit design/黄金の夕陽と跳ねるイルカの海.png.webp")
    center center / cover no-repeat;

  color: #ffffff;
}

/* コンテンツ全体 */

.hi-contact .contact-cta-inner {
  position: relative;
  z-index: 1;

  width: calc(100% - 80px);
  max-width: 1440px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

/* 左側 */

.hi-contact .contact-cta-content {
  max-width: 780px;
  flex: 1;
}

.hi-contact-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hi-contact .contact-cta-title {
  margin: 0 0 22px;

  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.55;

  color: #ffffff;
}

.hi-contact .contact-cta-text {
  margin: 0 0 32px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;

  color: #ffffff;
}

/* ボタン */

.hi-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hi-contact-btn {
  min-height: 60px;
  padding: 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;

  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.8);

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.hi-contact-btn-white {
  background: #ffffff;
  color: #102235;
}

.hi-contact-btn-white:hover {
  background: #e7f0f6;
  color: #102235;
}

.hi-contact-btn-dark {
  background: rgba(0, 13, 27, 0.78);
  color: #ffffff;
}

.hi-contact-btn-dark:hover {
  background: rgba(0, 45, 75, 0.85);
  color: #ffffff;
}

/* 右側の英語 */

.hi-contact-message {
  flex-shrink: 0;
  margin: 0;

  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.16em;
}

/* スマートフォン */

@media (max-width: 767px) {

  .hi-contact {
    min-height: auto;
    padding: 65px 0;

    background-position: 62% center;
  }

  .hi-contact .contact-cta-inner {
    width: calc(100% - 40px);
    display: block;
  }

  .hi-contact .contact-cta-title {
    font-size: 27px;
  }

  .hi-contact .contact-cta-text {
    font-size: 14px;
  }

  .hi-contact-buttons {
    flex-direction: column;
  }

  .hi-contact-btn {
    width: 100%;
    min-height: 56px;
  }

  .hi-contact-message {
    margin-top: 35px;
    font-size: 10px;
  }

}



/* #endregion */
@media (prefers-reduced-motion: reduce) {
    .hi-page * { scroll-behavior: auto !important; transition: none !important; }
}
