  :root {
    --accent: #ea580c;
    --accent-soft: rgba(234, 88, 12, 0.15);
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --line: #d1d5db;
    --card-bg: #ffffff;
    --radius: 18px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  }

  * {
    box-sizing: border-box;
  }

  html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: system-ui, sans-serif;
    color: var(--text);
    background: #f9fafb;
    line-height: 1.7;
  }
  .logo-25th{
    max-width: 300px;
    margin: 0 auto 30px;
  }
  .logo-25th-foot{
    max-width: 200px;
    margin: 30px auto 30px;
  }
  
  .timeline-section {
    padding: 48px 16px 80px;
    display: flex;
    justify-content: center;
  }

  .timeline-inner {
    width: 100%;
    max-width: 1000px;
  }

  .timeline-header {
    text-align: center;
    margin-bottom: 48px;
  }

  .tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
  }

  .tagline-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 999px;
  }

  .timeline-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin: 16px 0 10px;
  }

  .timeline-subtitle {
    max-width: 580px;
    margin: 0 auto;
    font-size: 14px;
    color: var(--muted);
  }

  .timeline {
    position: relative;
    margin-top: 40px;
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
    background: var(--line);
  }

  .timeline-item {
    position: relative;
    padding-bottom: 48px;
    display: flex;
  }

  .timeline-item.left {
    justify-content: flex-end;
    padding-right: calc(50% + 32px);
  }

  .timeline-item.right {
    justify-content: flex-start;
    padding-left: calc(50% + 32px);
  }

  .timeline-item::before {
    content: "";
    position: absolute;
    top: 24px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 0 0 6px var(--accent-soft);
  }

  .timeline-item.left::before {
    right: calc(50% - 7px);
  }

  .timeline-item.right::before {
    left: calc(50% - 7px);
  }

  .timeline-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px 22px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 100%;
  }

  .timeline-item.left .timeline-card {
    text-align: right;
  }

  .timeline-item.right .timeline-card {
    text-align: left;
  }

  .timeline-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
  }

  .timeline-year {
    font-weight: 700;
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .timeline-badge {
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
  }

  /* ここは見出しのベース（あとで月レイアウト用で上書き） */
  .timeline-heading {
    margin: 6px 0;
    font-size: 18px;
    font-weight: 600;
  }

  .timeline-desc {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
  }

  .timeline-photo {
    margin-top: 16px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-align: center;
  }

  .timeline-photo img {
    width: 100%;
    /*height: 180px;*/
    object-fit: cover;
  }
  .timeline-photo-70 img {
    width: 70%;
  }
   .timeline-photo-40 img {
    width: 40%;
  }


  .timeline-photo-caption {
    font-size: 11px;
    padding: 6px 10px;
    background: #f3f4f6;
    color: var(--muted);
  }

  .timeline-footer {
    margin-top: 80px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
  }
  .timeline-link {
    margin-top: -1rem;
    text-align: right; /* 右寄せ */
  }

  .timeline-link a {
    display: inline-block;
    font-size: 0.75rem;           /* 小さめ */
    padding: 0.35em 0.7em;
    color: #fff;
    border: 1px solid #39f;
    border-radius: 999px;         /* ボタン感 */
    text-decoration: none;
    line-height: 1;
    background: #39f;
  }

  .timeline-link a:hover {
    color: #39f;
    background: #fff;
  }
  .article-link {
    margin-top: -1rem;
    text-align: right; /* 右寄せ */
  }

  .article-link a {
    display: inline-block;
    font-size: 0.75rem;           /* 小さめ */
    padding: 0.35em 0.7em;
    color: #39f;
    line-height: 1;
  }


  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    .timeline::before {
      left: 22px;
    }

    .timeline-item,
    .timeline-item.left,
    .timeline-item.right {
      justify-content: flex-start;
      padding: 0 16px 32px 52px;
    }

    .timeline-item::before,
    .timeline-item.left::before,
    .timeline-item.right::before {
      left: 15px;
      right: auto;
    }

    .timeline-card {
      width: 100%;
    }

    .timeline-item.left .timeline-card,
    .timeline-item.right .timeline-card {
      text-align: left;
    }
  }

  /* ================================
     月ラベル付き見出しレイアウト追加
     （2001年の 1月/2月/3月/12月 用）
  ================================= */

  /* 見出しを「月ラベル + 見出しテキスト」の横並びにする */
  .timeline-heading {
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    align-items: baseline;
    margin: 10px 0 6px;
    font-size: 18px;
    font-weight: 600;
  }

  /* 「1月」「2月」「12月」など、月の部分 */
  .timeline-month {
    font-weight: 700;
    color: #444;
    font-size: 1rem;
    line-height: 1.4;
    min-width: 2.4em;        /* 1月〜12月で幅をそろえる */
    text-align: leftt;
    display: inline-block;
    padding-right: 4px;
  }

  /* 見出しの本文側（会社設立〜 など） */
  .timeline-heading-text {
    font-weight: 600;
    color: #333;
    line-height: 1.6;
  }

  /* 月ラベル付き見出し直後の説明文との間隔を少し空ける */
  .timeline-desc {
    margin: 0 0 16px;
  }

  /* 写真まわり（既存に少しだけ補足） */
  .timeline-photo {
    margin-top: 12px;
  }

  /* スマホでの微調整 */
  @media (max-width: 768px) {
    .timeline-heading {
      font-size: 16px;
    }

    .timeline-month {
      min-width: 2.6em;
      font-size: 0.95rem;
    }

    .timeline-heading-text {
      font-size: 1rem;
    }

    .timeline-desc {
      font-size: 0.9rem;
    }
  }
  
/* ================================
   タイムライン左右配置を自動で交互にする
   （HTMLで left/right を書かなくてよい）
================================ */

/* 奇数：left */
.timeline-item:nth-child(odd) {
  justify-content: flex-end;
  padding-right: calc(50% + 32px);
}
.timeline-item:nth-child(odd)::before {
  right: calc(50% - 7px);
}

/* 偶数：right */
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-left: calc(50% + 32px);
}
.timeline-item:nth-child(even)::before {
  left: calc(50% - 7px);
}

/* SP表示はすべて左寄せ（既存ルールを上書きしない） */
@media (max-width: 768px) {
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start !important;
    padding: 0 16px 32px 52px !important;
  }

  .timeline-item::before {
    left: 15px !important;
    right: auto !important;
  }
}

/* ==========================
   Withdrawn Business Section
   年表とは別枠・同一横幅
   ========================== */

/* 青寄りネイビー配色 */
:root {
  --withdrawn-blue: #1e4db7;
  --withdrawn-border: #dbe2ee;
  --withdrawn-text: #1f2937;
  --withdrawn-muted: #6b7280;
  --withdrawn-bg: #ffffff;
}

/* セクション全体（年表と同じ横幅制御） */
.withdrawn-section {
  margin-top: 48px;   /* 120px → 縮める */
  padding-top: 0;
  display: flex;
  justify-content: center;
  background: transparent;
}

/* 横幅を年表（max-width:1000px）に合わせる */
.withdrawn-inner {
  width: 100%;
  max-width: 1000px;
}

/* 見出し */
.withdrawn-header {
  text-align: center;
  margin-bottom: 48px;
}

.withdrawn-title {
  font-size: 1.4rem; 
  font-weight: 700;
  color: var(--withdrawn-blue);
  margin-bottom: 8px;
}

.withdrawn-subtitle {
  font-size: 14px;
  color: var(--withdrawn-muted);
}

/* 2列グリッド */
.withdrawn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* カード */
.withdrawn-card {
  position: relative;
  background: var(--withdrawn-bg);
  border: 1px solid var(--withdrawn-border);
  border-radius: 18px;
  padding: 26px 26px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

/* 上部アクセントバー */
.withdrawn-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: var(--withdrawn-blue);
  border-radius: 18px 18px 0 0;
}

/* 期間 */
.withdrawn-period {
  font-size: 13px;
  font-weight: 700;
  color: var(--withdrawn-blue);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

/* 事業名 */
.withdrawn-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--withdrawn-text);
  margin-bottom: 10px;
}

/* 説明文 */
.withdrawn-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
}

/* --------------------------
   Responsive
   -------------------------- */
@media (max-width: 768px) {
  .withdrawn-grid {
    grid-template-columns: 1fr;
  }

  .withdrawn-header {
    margin-bottom: 32px;
  }

  .withdrawn-card {
    padding: 22px 20px;
  }
}

/* ===============================
   President Message（写真を枠内に）
================================ */

.president-message {
  margin-bottom: 64px;
}

.president-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* 枠 */
.president-text {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
}

/* 写真＋肩書きの行 */
.president-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* 顔写真（小さめ） */
.president-head img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

/* 肩書き・名前 */
.president-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

/* あいさつ文 */
.president-text p {
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
  color: var(--text);
}

/* SP対応 */
@media (max-width: 768px) {
  .president-text {
    padding: 20px;
  }

  .president-head {
    gap: 12px;
  }

  .president-head img {
    width: 60px;
    height: 60px;
  }
}
/* ==========================
   Floating Header
   ========================== */

.floating-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.floating-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  max-width: 1000px;
}

.floating-logo img {
  height: 30px;
  width: auto;
  display: block;
}

/* メニュー */
.floating-nav {
  display: flex;
  gap: 16px;
}

.floating-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

.floating-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
/* 見た目変化が分かるように transition */
.floating-header {
  transition: background-color .2s ease, box-shadow .2s ease, backdrop-filter .2s ease;
}

/* スクロール後（強制上書き） */
.floating-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.14) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* スクロール時に本文が隠れないよう余白 */
body {
  padding-top: 90px;
}
section,#greeting,#y2001,#y2010,#y2020,#origin {
  scroll-margin-top: 100px;
}

html {
  scroll-behavior: smooth;
}

/* SP対応 */
@media (max-width: 768px) {
  .floating-header {
    top: 8px;
  }

  .floating-inner {
    gap: 14px;
    padding: 8px 14px;
  }

  .floating-logo img {
    height: 30px;
  }

  .floating-nav {
    gap: 8px;
  }

  .floating-nav a {
    font-size: 12px;
    padding: 6px 8px;
  }
}
/* ==========================
   Floating Header - Mobile
   ========================== */

@media (max-width: 768px) {

  .floating-header {
    left: 50%;
    transform: translateX(-50%);
    border-radius: 14px;
  }

  .floating-inner {
    max-width: calc(100vw - 24px);
    padding: 8px 12px;
    gap: 10px;
  }

  /* ロゴは固定サイズで常に表示 */
  .floating-logo {
    flex-shrink: 0;
  }

  .floating-logo img {
    height: 28px;
  }

  /* メニューを横スクロールに */
  .floating-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .floating-nav::-webkit-scrollbar {
    display: none;
  }

  /* タップしやすく */
  .floating-nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
  }
}

/* ===============================
   Origin / Name Story Section
================================ */

.origin-section {
  margin-top: 80px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.origin-inner {
  width: 100%;
  max-width: 1000px;
}

/* 見出し */
.origin-header {
  margin-bottom: 32px;
  text-align: center;
}

.origin-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.origin-title {
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 700;
  color: var(--text);
}

/* 本文カード */
.origin-body {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.origin-body p {
  margin: 0 0 1.4em;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.origin-body p:last-child {
  margin-bottom: 0;
}

/* フッター表現 */
.origin-foot {
  margin-top: 24px;
  text-align: right;
}

.origin-sign {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* SP */
@media (max-width: 768px) {
  .origin-body {
    padding: 22px 20px;
  }

  .origin-body p {
    font-size: 14px;
  }
}

/* ===============================
   記事下フォーム
================================ */
.dl-title{
  display:inline-block;
  color:#fff;
  font-weight: 600;
  background:#ea580c;
  border:1px solid #ea580c;
  padding:0.5em 2em;
  font-size:1em;
  margin-bottom:1em;
}
.page_25thtest #dl,.page_25th #dl{
  background: #ffe5b9;
  padding-top:50px;
}

/* ==========================
   「資料ダウンロード」を常に目立たせる
   ========================== */

/* 常時：ホバー風の見た目 */
.floating-nav a[href="#dl"]{
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.28);
  border: 1px solid rgba(234, 88, 12, 0.55);
}

/* 本当のhover時：少しだけ強調 */
.floating-nav a[href="#dl"]:hover{
  background: var(--accent);
  color: #fff;
  filter: brightness(1.03);
}

/* さりげなく“呼吸”する感じ（不要ならこの3つ消してOK） */
@keyframes dlPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 6px 18px rgba(234, 88, 12, 0.28); }
  50%      { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(234, 88, 12, 0.34); }
}
.floating-nav a[href="#dl"]{
  animation: dlPulse 2.2s ease-in-out infinite;
}
