@charset "UTF-8";
/* ==========================================================================
   株式会社FEA ホームページ
   header ほかの指定
   --------------------------------------------------------------------------
   もとは history.html の <head> に直接書かれていたスタイルです。
   CSP から style-src 'unsafe-inline' を外すため、2026-09 に外部ファイル化しました。
   修正するときは、HTML ではなくこのファイルを編集してください。
   ========================================================================== */
header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
header.scrolled {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
header:has(nav ul li.has-dropdown:hover) {
  background: #ffffff;
}
:root {
      --c-navy:        #1a1a1a;
      --c-blue:        #444444;
      --c-dark:        #0d1f3c;
      --c-bg:          #ffffff;
      --c-bg-mid:      #f5f5f5;
      --c-border:      rgba(0,0,0,0.10);
      --c-gold:        #1a1a1a;
      --c-mid:         rgba(0,0,0,0.45);
      --c-text:        #1a1a1a;
      --c-text-sub:    rgba(0,0,0,0.55);
    }
body { font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; color: #1a1a1a; background: #ffffff; overflow-x: hidden; }
.page-hero {
      margin-top: 0; padding: 160px 8vw 23px;
      min-height: 210px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      box-sizing: border-box;
      background: #ffffff;
      color: #1a1a1a;
      position: relative;
    }
.page-hero h1 {
      font-size: clamp(2rem, 3.6vw, 3rem);
      letter-spacing: 0.15em; font-weight: 300;
      color: #1a1a1a;
      margin-bottom: 6px;
    }
.page-hero .hero-sub {
      font-size: 0.78rem; color: #c8960a;
      letter-spacing: 0.3em; font-weight: 400; text-transform: uppercase;
      display: block; margin-bottom: 0;
    }
.page-content {
      position: relative;
      background: #ffffff;
      max-width: 1400px;
      margin: 0 auto;
      padding: 60px 4vw 100px;
      overflow-x: hidden;
    }
/* 右下に置く青い図形の置き場所
   ・bottom を 0 にして、図形の下側（青が左まで広がるところ）が
     沿革の本文より下に来るようにしています。こうしないと
     最後の行の文字が青にかぶって読めなくなります。
   ・幅は画面に合わせて変わりますが、最大430pxです。 */
.history-road-wrap {
      position: absolute;
      top: 60px;
      bottom: 0;
      right: 4vw;
      /* 幅は「沿革の本文の右にある余白」の1.1倍（最大430px）。
         図形を縦いっぱいに伸ばすと、青が左へ広がる位置も上がるため、
         本文にかからないよう倍率を抑えています。 */
      width: min(430px, calc((min(1400px, 100vw) - 8vw - 900px) * 1.1));
      pointer-events: none;
      z-index: 0;
      /* ことばの文字サイズを「図形の幅」に合わせるための指定 */
      container-type: inline-size;
    }
/* 青い図形は、沿革の最初の年から一番下までの高さいっぱいに描きます。
   スクロールに合わせて上から順に現れる動きはそのままです。 */
.history-road-clip {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 100%;
      clip-path: inset(0 0 100% 0);
      transition: clip-path 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    }
.history-road-clip svg { width: 100%; height: 100%; display: block; }
/* 図形の下部分に白抜きで置く1行のことば
   ・図形の中に重ねるため、色は白・1行固定（折り返さない）にしています
   ・幅が足りないときに欠けないよう、文字サイズは clamp で自動調整します */
.history-road-label {
      position: absolute;
      right: 18px;
      left: auto;
      bottom: 10px;
      top: auto;
      margin-top: 0;
      width: auto;
      /* 1行のことばが青からはみ出さないよう、図形の幅に合わせて
         文字の大きさを自動調整します。
         1行目は cqw に対応していない古いブラウザ用の指定です。 */
      font-size: clamp(0.72rem, 0.95vw, 0.85rem);
      font-size: clamp(0.72rem, 4.2cqw, 0.95rem);
      line-height: 1.6;
      letter-spacing: 0.02em;
      color: #ffffff;
      font-weight: 600;
      text-align: right;
      white-space: nowrap;
      opacity: 0;
      transition: opacity 0.9s ease 1.1s;
    }
.history-road-label.is-visible { opacity: 1; }
/* 画面が狭いと、図形が沿革の本文に重なってしまい、
   下の1行も入りきらないため表示しません（スマホ・タブレットも同様）。
   1280px は一般的なノートパソコンの横幅です。 */
@media (max-width: 1279px) {
  .history-road-wrap { display: none; }
}
.history-timeline {
      position: relative;
      padding-left: 84px;
      max-width: 900px;
    }
.history-timeline::before {
      content: "";
      position: absolute;
      left: 27px;
      top: 8px;
      bottom: 8px;
      width: 2px;
      background: rgba(200,150,10,0.25);
    }
.history-item {
      position: relative;
      padding-bottom: 56px;
    }
.history-item:last-child { padding-bottom: 0; }
.history-item.slide-in-right {
      opacity: 0;
      transform: translateX(72px);
      transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    }
.history-item.slide-in-right.is-visible {
      opacity: 1;
      transform: translateX(0);
    }
.history-node {
      position: absolute;
      left: -84px;
      top: 0;
      width: 56px; height: 56px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid #1a3a6e;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 10px rgba(26,58,110,0.16);
      z-index: 1;
    }
.history-node img {
      width: 24px; height: 24px;
      object-fit: contain;
    }
.history-content {
      transition: transform 0.25s ease;
      transform-origin: left center;
    }
.history-item:hover {
      z-index: 5;
    }
.history-item:hover .history-content {
      transform: scale(1.08);
    }
.history-item:hover .history-year {
      color: #0d2c56;
    }
.history-year {
      color: #1a3a6e;
      font-size: 1.9rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      line-height: 1;
      margin-bottom: 16px;
      padding-top: 8px;
    }
.year-events {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
.timeline-event {
      display: flex;
      align-items: baseline;
      gap: 12px;
    }
.event-month {
      flex-shrink: 0;
      min-width: 36px;
      font-size: 0.75rem;
      font-weight: 600;
      color: #c8960a;
      letter-spacing: 0.02em;
    }
.event-text {
      font-size: 0.94rem;
      color: #333333;
      line-height: 1.8;
      letter-spacing: 0.01em;
      overflow-wrap: break-word;
    }
.timeline-event.is-milestone .event-text {
      font-weight: 700;
      color: #1a3a6e;
    }
@media (max-width: 600px) {
  .page-content { padding: 40px 5vw 60px; }
  .history-timeline { padding-left: 60px; }
  .history-timeline::before { left: 19px; }
  .history-node { left: -60px; width: 40px; height: 40px; }
  .history-node img { width: 18px; height: 18px; }
  .history-year { font-size: 1.4rem; margin-bottom: 10px; }
  .event-text { font-size: 0.86rem; }
}
@media (max-width: 480px) {
  
  body { overflow-x: hidden; }
  .page-hero { padding: 140px 6vw 26px; }
  .page-hero h1 { font-size: 2rem; line-height: 1.5; }
  .page-hero .hero-sub { font-size: 0.68rem; letter-spacing: 0.2em; }
}
