/* ==============================
   ページ見出し
============================== */
.page-header {
  background: linear-gradient(180deg, #e7edf5 0%, #f5f8fb 100%);
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header .bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  font-weight: 900;
  color: rgba(0, 51, 102, 0.08);  /* 濃紺を薄く */
  white-space: nowrap;
  z-index: 1;
  font-family: "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -2px;
  pointer-events: none;  /* テキストをクリック不可に */
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #4d4d4d;
}

.page-header p {
  font-size: 1rem;
  color: #2c2c2c;
}

.page-header .intro-highlight {
  font-size: 1.2rem;
  font-weight: 500;
  color: #003366;
  background: linear-gradient(135deg, rgba(106, 125, 176, 0.1) 0%, rgba(90, 155, 212, 0.08) 100%);
  padding: 12px 20px;
  border-radius: 8px;
  border-left: 3px solid #6a7db0;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.1);
  display: inline-block;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.page-header .intro-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.15);
}

/* ==============================
   企業理念 & 沿革（縦配置）
============================== */
.vision-block {
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 60px 48px;
  margin: 60px auto;
  max-width: 900px;
  text-align: center;
}

.vision {
  margin-bottom: 60px;
}

.vision-heading,
.content-title {
  color: #003366;
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heading-icon {
  width: 2.8rem;
  height: 2.8rem;
  margin-right: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 51, 102, 0.1));
  transition: all 0.3s ease;
  vertical-align: middle;
}

.vision-heading:hover .heading-icon {
  transform: scale(1.1);
  color: #5a9bd4;
}

.vision-highlight-box {
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.03) 0%, rgba(106, 125, 176, 0.05) 100%);
  border: 2px solid rgba(106, 125, 176, 0.2);
  border-radius: 16px;
  padding: 30px 25px;
  margin: 20px 0;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
  transition: all 0.3s ease;
}

.vision-highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6a7db0 0%, #5a9bd4 100%);
  border-radius: 16px 16px 0 0;
}

.vision-highlight-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 51, 102, 0.12);
}

.vision-tagline {
  font-size: 1.6rem;
  font-weight: 700;
  color: #003366;
  margin: 0 0 20px 0;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 51, 102, 0.1);
  position: relative;
  margin-bottom: 30px; /* 下に余白を追加 */
}

.vision-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.9;
}

.vision-text-enhanced {
  font-size: 1.1rem;
  font-weight: 500;
  color: #2c2c2c;
  line-height: 1.8;
  margin: 0;
  background: linear-gradient(135deg, rgba(90, 155, 212, 0.08) 0%, rgba(106, 125, 176, 0.05) 100%);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #5a9bd4;
}

.vision-text.vision-text-enhanced {
  color: #002147; /* 濃紺 */
}

/* ==============================
   沿革（縦線＋丸アイコン付き）
============================== */
.history-section {
  margin-top: 100px;
  text-align: center;
}

.history-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  border-left: 3px solid #003366; /* 縦線 */
  max-width: 800px;
  text-align: left;
  position: relative;
}
/* ▼ ここから追加：1年飛ばしで背景色をつける（控えめ） ▼ */

/* 1行おき（1,3,5...行目）に薄い青グレーの背景 */
.history-list li:nth-child(odd) {
  background-color: rgba(0, 51, 102, 0.03);  /* かなり薄いトーン */
}

/* 必要なら偶数行側を白固定にしておく（任意） */
.history-list li:nth-child(even) {
  background-color: #ffffff;
}

/* 各項目 */
.history-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 20px 0 20px 25px; /* 線＋丸分の余白 */
  line-height: 1.7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* 丸アイコン（線上に配置） */
.history-list li::before {
  content: "";
  position: absolute;
  left: -8px; /* 縦線の中心位置に調整 */
  top: 26px;  /* 年の高さに合わせて */
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #9CB4CC, #4C6E91);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 3px rgba(0, 51, 102, 0.3);
  box-sizing: border-box;
  opacity: 1;
  transform: scale(1);
  transition: all 0.4s ease;
}

/* ホバー時に軽く拡大 */
.history-list li:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 6px rgba(0, 51, 102, 0.4);
}

/* 年 */
.history-list .year {
  flex: 0 0 90px;
  font-weight: 700;
  color: #003366;
  font-size: 1rem;
  margin-right: 12px;
  padding-top: 2px;
}

/* 本文コンテンツ */
.history-list .history-content {
  flex: 1;
  display: block;
}

.history-list .main-text {
  display: block;
  font-weight: 700;
  color: #222;
  line-height: 1.6;
  margin-bottom: 4px;
}

/* 「・」行 */
.history-list .dot-line {
  display: block;
  padding-left: calc(90px + 12px); /* 年の幅＋右余白に合わせる */
  font-size: 0.95rem;
  color: #333;
  line-height: 1.45;
  margin-top: 2px;
}

/* 履歴のドットライン：スマホ時に文頭揃え */
/*
@media (max-width: 600px) {
  .history-content .dot-line {
    display: block;
    position: relative;
    padding-left: 1.6em;
    text-indent: -1.0em;
    word-break: break-word;
  }
  .history-content .dot-line::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1em;
    color: #888;
    width: 1.6em;
    text-align: center;
  }
}
*/
.history-list .dot-line {
  display: block;
  padding-left: 1.2em;  /* ・分のスペース */
  text-indent: -1.2em;  /* ・をぶら下げる */
}


/* ==============================
   スマホ対応（768px以下）
   → 縦線なし、〇のみ表示
============================== */
@media (max-width: 768px) {
  .history-list {
    border-left: none; /* 縦線を消す */
    padding-left: 0;
  }

  .history-list li {
    flex-direction: column;
    padding: 12px 0 12px 30px; /* 左に余白を追加して〇位置確保 */
  }

  /* 丸アイコンを年の左に小さく表示 */
  .history-list li::before {
    display: block;
    left: 6px;   /* 左端から少し内側 */
    top: 8px;    /* 年テキストの高さに合わせる */
    width: 10px; /* スマホでは少し小さく */
    height: 10px;
    background: linear-gradient(135deg, #9CB4CC, #4C6E91);
    border: 1px solid #fff;
    box-shadow: 0 0 2px rgba(0, 51, 102, 0.3);
  }

  .history-list .year {
    width: 100%;
    margin-bottom: 2px;
    line-height: 1.3;
    padding-left: 0;
  }

  .history-list .main-text,
  .history-list .dot-line {
    padding-left: 0;
  }

  .history-list .dot-line {
    line-height: 1.4;
    margin-top: 1px;
  }
}

/* スマホ時、タイムラインの丸アイコン（〇）が「年」の真横に来るよう調整 */
@media (max-width: 768px) {
  .history-list li {
    flex-direction: row;
    align-items: center;
    padding: 12px 0 12px 30px;
  }
  .history-list li::before {
    left: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #9CB4CC, #4C6E91);
    border: 1px solid #fff;
    box-shadow: 0 0 2px rgba(0, 51, 102, 0.3);
  }
  .history-list .year {
    margin-bottom: 0;
    padding-left: 0.8em;
    line-height: 1.3;
    width: auto;
  }
}


/* ==============================
   会社概要テーブル
============================== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.company-table th,
.company-table td {
  border: 1px solid #ccc;
  padding: 12px 15px;
  text-align: left;
}

.company-table th {
  background: #f0f5fb;
  width: 30%;
  color: #003366;
}

/* ==============================
   スマホ表示で会社概要テーブルを縦並びに
   （空白列が見えないレイアウトに）
============================== */
@media (max-width: 768px) {
  .company-table {
    border-collapse: separate; /* 個別ボーダーを扱いやすく */
    border-spacing: 0;         /* 余白をゼロに */
  }

  .company-table tr {
    display: block;            /* 行をボックス化 */
    border: 1px solid #ddd;    /* 行ごとに枠線 */
    border-radius: 8px;
    overflow: hidden;          /* 角丸内に収める */
    margin-bottom: 10px;       /* 行間の余白 */
  }

  .company-table th,
  .company-table td {
    display: block;            /* 縦に積む */
    width: 100% !important;    /* 横幅100%（列幅を無効化） */
    box-sizing: border-box;
    border: none;              /* 行枠に任せる */
    padding: 12px 15px;
  }

  .company-table th {
    background: #f7f9fc;       /* 見出しの背景を少し強調 */
    color: #003366;
    border-bottom: 1px solid #e6e8ed; /* 見出しと本文の区切り線 */
  }

  .company-table td {
    background: #fff;
  }
}

/* ==============================
   アクセス（地図）
============================== */
.company-access {
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  padding: 60px 48px;
  margin: 60px auto;
  max-width: 900px;
  text-align: center;
}

.company-access p {
  margin-bottom: 30px;
  color: #555;
  font-size: 1rem;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==============================
   会社概要セクション
============================== */
.company-info {
  margin-top: 80px;
  text-align: center;
}

/* ==============================
   スマホ対応（企業理念・沿革）
============================== */
@media (max-width: 768px) {
  .vision-tagline {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;      /* 左揃え */
  }

  .vision-text,
  .vision-text-enhanced {
    font-size: 1rem;
    padding: 12px 16px;
    text-align: left;      /* 左揃え */

  }

  /* スマホでは<br>による改行を消す */
  .vision-tagline br,
  .vision-text br,
  .vision-text-enhanced br {
    display: none;
  }

  .vision-highlight-box {
    padding: 20px 18px;
    margin: 15px 0;
  }

  .heading-icon {
    width: 2.2rem;
    height: 2.2rem;
    margin-right: 8px;
  }

  .vision-heading,
  .content-title {
    font-size: 1.5rem;
  }
}

