/* =========================================================
   Company Page 専用スタイル（統一デザイン適用版）
   ※ KV・背景・見出しなどの共通部分は main.css に統合済み
========================================================= */

/* ---------------------------------------------------------
   会社概要テーブル
--------------------------------------------------------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  /* 後述の統一デザインで上書きされる枠線設定はここで削除 */
}

.info-table tr+tr {
  border-top: 1px solid #e2e6f0;
}

.info-table th,
.info-table td {
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.8;
}

.info-table th {
  width: 30%;
  min-width: 140px;
  background: #f2f5ff;
  color: #14286b;
  font-weight: 700;
  text-align: left;
  border-right: 1px solid #dde4f5;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.info-table td {
  color: #2f3b59;
}

.info-table td br+br {
  line-height: 2.2;
}

@media (hover: hover) {
  .info-table tr:hover {
    background: #f8fbff;
  }
}

@media (max-width: 640px) {
  .info-table tr {
    display: block;
  }

  .info-table tr+tr {
    border-top: 1px solid #dde4f3;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding-inline: 14px;
  }

  .info-table th {
    border-right: none;
    border-bottom: 1px solid #dde4f5;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #1f56b3;
  }

  .info-table td {
    padding-top: 8px;
    padding-bottom: 14px;
    font-size: 14px;
  }
}

/* ---------------------------------------------------------
     経営方針リスト（カードグリッド）
  --------------------------------------------------------- */
.policy-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.policy-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 20px);
}

@media (max-width: 720px) {
  .policy-list--grid {
    grid-template-columns: 1fr;
  }
}

.policy-list li {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8edf3;
  padding: clamp(16px, 2.2vw, 22px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
  .policy-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  }
}

.policy-list h3 {
  margin: 0 0 6px;
  color: #14286b;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 800;
}

.policy-list p {
  margin: 0;
  font-size: 14px;
  color: #344056;
  line-height: 1.8;
}

/* ---------------------------------------------------------
     沿革タイムライン
  --------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0 0 0 18px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(#d3dcee, #b0c2f2);
}

.timeline li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #344056;
  line-height: 1.7;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #1f56b3;
  transform: translateY(-50%);
}

.timeline .year {
  display: inline-block;
  font-weight: 800;
  color: #14286b;
  margin-right: 4px;
  min-width: 72px;
}

/* ---------------------------------------------------------
     アクセス情報
  --------------------------------------------------------- */
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(18px, 2.4vw, 24px);
}

@media (max-width: 800px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

.access-map {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 320px;
}

.access-detail__addr {
  font-size: 14px;
  color: #344056;
  margin-bottom: 12px;
  line-height: 1.8;
}

.access-detail__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #4a5670;
}

.access-detail__list li {
  padding-left: 18px;
  position: relative;
  line-height: 1.8;
}

.access-detail__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #1f56b3;
  font-size: 12px;
}

.access-detail__list li+li {
  margin-top: 6px;
}

/* ---------------------------------------------------------
   代表挨拶・沿革などの本文エリア
--------------------------------------------------------- */
.section__body {
  position: relative;
}

.section__text {
  color: #344056;
  font-size: 14px;
  line-height: 1.9;
}

.section__text p {
  margin: 0 0 1em;
}

.section__text p:last-child {
  margin-bottom: 0;
}

.section__text p+p {
  margin-top: 0.8em;
}

.section__sign {
  margin-top: 1.4em;
  text-align: right;
  font-weight: 600;
  color: #14286b;
  font-size: 14px;
}

/* ---------------------------------------------------------
   ボタンスタイル（会社案内ページ用）
--------------------------------------------------------- */
.btn--primary {
  background: linear-gradient(135deg, #2a9df4, #0f3fff);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(30, 136, 255, .18);
  transition: all .25s ease;
}

.btn--primary:hover {
  opacity: .9;
  box-shadow: 0 12px 34px rgba(30, 136, 255, .28);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------
   その他の調整
--------------------------------------------------------- */

/* 小見出し用 */
.section h3 {
  margin: 1.4em 0 0.6em;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 800;
  color: #14286b;
  letter-spacing: 0.02em;
}

.section h3:first-child {
  margin-top: 0;
}

/* テキスト中央寄せ用 */
.t-center {
  text-align: center;
}

/* 注釈テキスト */
.note {
  color: #5a647b;
  font-size: 13px;
}

/* セクション内の余白調整 */
.section--panel .section__inner {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 35, 80, 0.08);
  padding: clamp(24px, 4vw, 32px);
}

@media (max-width: 900px) {
  .section--panel .section__inner {
    padding: clamp(20px, 4vw, 24px);
  }

  .section__image {
    order: -1;
  }
}

/* ---------------------------------------------------------
   2カラムレイアウト用の補助クラス
--------------------------------------------------------- */
/* 画像を先に表示したい場合 */
.section__inner--image-first .section__image {
  order: -1;
}

/* 縦並び強制（モバイル以外でも） */
.section__inner--stack {
  grid-template-columns: 1fr !important;
}

/* ---------------------------------------------------------
   アクセシビリティ・モーション軽減
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

  .policy-list li,
  .btn--primary,
  .cta-band--company {
    transition: none !important;
  }
}

/* ---------------------------------------------------------
   印刷用スタイル（オプション）
--------------------------------------------------------- */
@media print {

  .cta-band--company,
  .btn--primary {
    display: none;
  }

  .info-table {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .section--panel .section__inner {
    box-shadow: none;
    border: 1px solid #e8edf3;
  }
}

/* カードごとに大きな番号を背景に */
.page-company .policy-list--grid li {
  position: relative;
  overflow: hidden;
}

/* 大きな番号（1〜4）をふんわり裏に置く */
.page-company .policy-list--grid li::before {
  content: attr(data-index);
  position: absolute;
  right: 10px;
  bottom: -20px;
  font-size: 60px;
  font-weight: 900;
  color: rgba(15, 31, 58, .06);
  pointer-events: none;
}

/* data-index を持っていないので、nth-child で付与 */
.page-company .policy-list--grid li:nth-child(1)::before {
  content: "01";
}

.page-company .policy-list--grid li:nth-child(2)::before {
  content: "02";
}

.page-company .policy-list--grid li:nth-child(3)::before {
  content: "03";
}

.page-company .policy-list--grid li:nth-child(4)::before {
  content: "04";
}

/* 左端に細いカラーライン（方針ごとに色替え） */
.page-company .policy-list--grid li {
  border-left-width: 4px;
  border-left-style: solid;
  border-left-color: #2a9df4;
}

.page-company .policy-list--grid li:nth-child(2) {
  border-left-color: #2ecc71;
}

.page-company .policy-list--grid li:nth-child(3) {
  border-left-color: #f4b41a;
}

.page-company .policy-list--grid li:nth-child(4) {
  border-left-color: #9b59b6;
}

/* タイムライン全体に薄いプレート */
.page-company #sec-history.sec-head__title {
  position: relative;
  padding-bottom: 6px;
}

.page-company #sec-history.sec-head__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f56b3, transparent);
}

/* 行ごとに背景の濃淡を少し変えて“年表らしさ” */
.page-company .timeline li:nth-child(odd) {
  background: rgba(240, 245, 255, .55);
  border-radius: 12px;
  padding: 6px 10px 6px 20px;
}

.page-company .timeline li:nth-child(even) {
  padding-left: 20px;
}

/* モバイル時は少し詰める */
@media (max-width: 600px) {
  .page-company .timeline {
    padding-left: 14px;
  }

  .page-company .timeline li:nth-child(odd),
  .page-company .timeline li:nth-child(even) {
    padding-left: 18px;
  }
}

/* ---------------------------------------------------------
   沿革タイムライン（モダンカードデザイン）
--------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 40px 0 0;
  padding: 0 0 0 30px;
  /* 左側の線用スペース */
  position: relative;
}

/* 縦線（タイムラインの軸） */
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  /* 線の位置 */
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #e2e8f0;
  border-radius: 2px;
}

/* カードスタイル */
.timeline li {
  position: relative;
  background: #fff;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.timeline li:last-child {
  margin-bottom: 0;
}

/* ホバーエフェクト */
@media (hover: hover) {
  .timeline li:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 32px rgba(31, 86, 179, 0.12);
    z-index: 1;
  }
}

/* 左のドット */
.timeline li::before {
  content: "";
  position: absolute;
  left: -31px;
  /* 線の上に来るように調整 */
  top: 24px;
  /* 年号の高さに合わせる */
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid #1f56b3;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f7f9fc;
  /* 背景色で縁取りして浮き上がらせる */
  z-index: 1;
}

/* アクティブなドット（ホバー時） */
.timeline li:hover::before {
  background: #1f56b3;
  transform: scale(1.2);
  transition: all 0.3s ease;
}

/* 左向きの矢印（吹き出し風） */
.timeline li::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 28px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 8px 6px 0;
  border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.03));
}

/* 年号スタイル */
.timeline .year {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  /* 英数字用フォント */
  font-weight: 800;
  font-size: 18px;
  color: #1f56b3;
  margin-right: 12px;
  letter-spacing: 0.05em;
}

/* テキストスタイル */
.timeline li {
  font-size: 15px;
  color: #344056;
  line-height: 1.7;
}

/* モバイル調整 */
@media (max-width: 600px) {
  .timeline {
    padding-left: 24px;
    margin-top: 32px;
  }

  .timeline::before {
    left: 4px;
  }

  .timeline li {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .timeline li::before {
    left: -20px;
    width: 12px;
    height: 12px;
    top: 20px;
  }

  .timeline li::after {
    top: 24px;
  }

  .timeline .year {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
  }
}

/* ---------------------------------------------------------
   社長挨拶のマスコット配置
--------------------------------------------------------- */
.greeting-mascot {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: clamp(100px, 12vw, 150px);
  margin: 0;
  z-index: 2;
  pointer-events: none;
  /* テキスト選択の邪魔にならないように */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.greeting-mascot img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* 吹き出し */
.greeting-mascot .balloon {
  position: relative;
  background: #fff;
  border: 2px solid #1f56b3;
  border-radius: 12px;
  padding: 6px 12px;
  margin-bottom: 4px;
  /* キャラクターとの距離 */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  transform: rotate(2deg);
  /* 少し傾けて動きを出す */
}

.greeting-mascot .balloon p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1f56b3;
  line-height: 1.3;
}

/* 吹き出しのしっぽ */
.greeting-mascot .balloon::after {
  content: "";
  position: absolute;
  bottom: -10px;
  /* 位置調整 */
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 6px 0;
  border-style: solid;
  border-color: #1f56b3 transparent transparent;
}

/* 吹き出しの中の白抜きしっぽ（枠線用） */
.greeting-mascot .balloon::before {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 6px 0;
  border-style: solid;
  border-color: #fff transparent transparent;
  z-index: 1;
}

/* モバイル対応 */
@media (max-width: 900px) {
  .greeting-mascot {
    position: relative;
    /* 絶対配置を解除 */
    bottom: auto;
    right: auto;
    margin-top: 24px;
    margin-left: auto;
    /* 右寄せ */
    margin-right: 10px;
    flex-direction: row-reverse;
    /* 横並びにする（キャラの左に吹き出し） */
    align-items: center;
    gap: 12px;
    width: auto;
  }

  .greeting-mascot img {
    width: 100px;
  }

  .greeting-mascot .balloon {
    transform: rotate(0);
    margin-bottom: 0;
  }

  /* モバイル時はしっぽを右側（キャラ側）に向ける */
  .greeting-mascot .balloon::after {
    bottom: auto;
    left: auto;
    top: 50%;
    right: -8px;
    transform: translateY(-50%) rotate(-90deg);
  }

  .greeting-mascot .balloon::before {
    bottom: auto;
    left: auto;
    top: 50%;
    right: -5px;
    transform: translateY(-50%) rotate(-90deg);
  }
}

/* ---------------------------------------------------------
   Modern Scroll Animations
--------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Fade from left */
.fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Fade from right */
.fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Scale animation */
.fade-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Stagger animation for policy list */
.policy-list.in-view li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.policy-list.in-view li:nth-child(1) {
  transition-delay: 0.1s;
}

.policy-list.in-view li:nth-child(2) {
  transition-delay: 0.2s;
}

.policy-list.in-view li:nth-child(3) {
  transition-delay: 0.3s;
}

.policy-list.in-view li:nth-child(4) {
  transition-delay: 0.4s;
}

.policy-list.in-view li {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  .fade-up,
  .fade-left,
  .fade-right,
  .fade-scale,
  .policy-list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   Company Page Refresh (Pop & Friendly Design)
   他ページとデザインを統一（ポップ・ブライトブルー）
========================================================= */

/* ---------------------------------------------------------
   1. 共通設定・背景装飾
--------------------------------------------------------- */
/* 背景に楽しいドットパターンを追加 */
.section--panel,
.section--soft,
.section--alt {
  background-color: #fff;
  background-image:
    radial-gradient(#e0efff 20%, transparent 20%),
    radial-gradient(#e0efff 20%, transparent 20%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

/* セクション見出し：黄色いマーカー風（Servicesページと統一） */
h2[id^="sec-"] {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: #1e88ff !important;
  /* 明るい青 */
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  padding-bottom: 4px;
  background: none !important;
  border-bottom: none !important;
}

h2[id^="sec-"]::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 12px;
  bottom: 8px;
  /* 文字の下半分に重なる位置 */
  background: rgba(255, 240, 70, 0.7);
  /* 蛍光イエロー */
  border-radius: 3px;
  z-index: -1;
}

/* サブテキスト（ラベル） */
.sec-head__label {
  background: #fff;
  color: #1e88ff;
  border: 2px solid #1e88ff;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0 #bce0fd;
}

/* ---------------------------------------------------------
   2. ボタンの統一（白カプセル＋青枠＋ポップ影）
--------------------------------------------------------- */
/* ページ内のボタン（KVとRecruit以外） */
.foot-flex .btn,
.area__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px !important;

  background: #fff !important;
  color: #1e88ff !important;
  border: 3px solid #1e88ff !important;
  border-radius: 50px !important;

  font-size: 16px !important;
  font-weight: 900 !important;
  text-decoration: none;
  box-shadow: 4px 4px 0 #bce0fd !important;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  transform: none;
}

.foot-flex .btn:hover,
.area__actions .btn:hover {
  background: #1e88ff !important;
  color: #fff !important;
  box-shadow: 0 0 0 #bce0fd !important;
  transform: translate(4px, 4px) !important;
}

/* ---------------------------------------------------------
   3. 代表挨拶・沿革（パネルセクション）
--------------------------------------------------------- */
.section--panel .section__inner {
  background: #fff;
  border: 4px solid #f0f7ff;
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(30, 136, 255, 0.1);
  padding: clamp(30px, 5vw, 50px);
}

/* 写真をポラロイド風に */
.section__image.ph {
  border: 8px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  /* 写真自体の角は少しだけ */
  transform: rotate(-3deg);
  /* 左に傾ける */
  transition: transform 0.4s ease;
  overflow: visible;
  /* 枠を見せる */
}

.section__inner:hover .section__image.ph {
  transform: rotate(0deg) scale(1.02);
}

/* 代表サイン */
.section__sign {
  font-family: 'Kaisei Decol', serif;
  /* もしあれば明朝系 */
  font-size: 18px;
  color: #0e255a;
  background: linear-gradient(transparent 60%, #fff046 60%);
  display: inline-block;
  padding: 0 10px;
}

/* ---------------------------------------------------------
   4. 会社概要（テーブル）
--------------------------------------------------------- */
.info-table {
  border-radius: 24px;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(30, 136, 255, 0.1);
  overflow: hidden;
}

.info-table th {
  background: #f0f7ff;
  color: #1e88ff;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  font-size: 15px;
}

.info-table td {
  border-bottom: 2px solid #f0f7ff;
  color: #0e255a;
}

.info-table tr:last-child td,
.info-table tr:last-child th {
  border-bottom: none;
}

/* ---------------------------------------------------------
   5. 経営方針（カードリスト）
--------------------------------------------------------- */
.policy-list--grid {
  gap: 30px;
}

.policy-list li {
  border: none;
  border-radius: 24px;
  background: #fff;
  /* ポップな影 */
  box-shadow: 0 8px 0 #e0efff, 0 8px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* ホバーでバウンド */
.policy-list li:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 0 #bce0fd, 0 20px 30px rgba(30, 136, 255, 0.15);
}

/* 見出し */
.policy-list h3 {
  color: #1e88ff;
  font-size: 20px;
}

/* 背景の数字装飾（淡く） */
.policy-list li::before {
  color: #f0f7ff;
  font-family: sans-serif;
  z-index: 0;
  transform: rotate(-10deg);
  right: -10px;
  bottom: -30px;
}

/* 左端のカラーラインを少し太く */
.page-company .policy-list--grid li {
  border-left-width: 8px;
}

/* ---------------------------------------------------------
   6. 沿革（タイムライン）
--------------------------------------------------------- */
/* 軸線 */
.timeline::before {
  background: #bce0fd;
  /* 水色 */
  width: 4px;
  left: 5px;
  border-radius: 4px;
}

/* ドット */
.timeline li::before {
  border: 3px solid #fff;
  background: #1e88ff;
  width: 16px;
  height: 16px;
  left: -32px;
  /* 位置調整 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline li:hover::before {
  background: #ffcc00;
  /* ホバーで黄色に */
  transform: scale(1.3);
}

/* カード */
.timeline li {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(30, 136, 255, 0.1);
}

/* 年号 */
.timeline .year {
  color: #1e88ff;
  background: #f0f7ff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   7. アクセスマップ
--------------------------------------------------------- */
.access-map {
  border: 6px solid #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(30, 136, 255, 0.15);
}

/* =========================================================
   Design Update: Heading Decoration
   見出しを「黄色マーカー」から「青い波線」に変更
========================================================= */

/* 見出し本体の調整 */
h2[id^="sec-"] {
  padding-bottom: 0 !important;
  /* マーカー用の余白をリセット */
  display: inline-block;
  position: relative;
}

/* 波線の設定（疑似要素） */
h2[id^="sec-"]::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;

  /* --- 波線の配置 --- */
  height: 6px !important;
  /* 高さを細く */
  bottom: -10px !important;
  /* 文字の下に配置 */

  /* --- 波線の画像（SVG） --- */
  background: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 20 4" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 4 C5 4 5 0 10 0 C15 0 15 4 20 4" stroke="%232a9df4" stroke-width="2" fill="none"/%3E%3C/svg%3E') repeat-x !important;
  background-size: 20px 6px !important;

  /* --- マーカー設定のリセット --- */
  background-color: transparent !important;
  /* 黄色を消す */
  border-radius: 0 !important;
  opacity: 0.6 !important;
  /* 少し透けさせる */
  z-index: auto !important;
}

/* =========================================================
   Mobile Fix: Wavy Line Width
   スマホ表示時の波線の幅と高さを修正
========================================================= */

@media (max-width: 768px) {

  /* 既存の「線を短くする設定」を上書きしてリセット */
  .page-company h2::after,
  .page-company .sec-head__title::after,
  h2[id^="sec-"]::after {
    width: 100% !important;
    /* 幅を文字幅いっぱいに */
    height: 6px !important;
    /* 波線の高さをPCと同じに確保 */
    bottom: -10px !important;
    /* 位置をPCと同じに */
    background-size: 20px 6px !important;
    /* 波の柄サイズも維持 */
  }
}

/* =========================================================
   Mobile Fix: Timeline Alignment
   スマホ表示時の沿革（縦線・ドット・矢印）の位置ズレ修正
========================================================= */

@media (max-width: 768px) {

  /* 1. タイムライン全体の余白（左側に線用のスペースを確保） */
  .timeline {
    padding-left: 36px !important;
    /* 少し広めに確保 */
    margin-top: 30px !important;
  }

  /* 2. 縦線（軸）の位置 */
  .timeline::before {
    left: 16px !important;
    /* パディングの中央付近に配置 */
    width: 3px !important;
    /* スマホで見やすい太さに */
    border-radius: 3px !important;
  }

  /* 3. カード（各項目） */
  .timeline li {
    margin-bottom: 20px !important;
    width: 100% !important;
    /* 幅を確保 */
  }

  /* 4. ドット（丸）の位置合わせ */
  .timeline li::before {
    /* カードの左端から、縦線の位置(16px)まで戻す計算 */
    /* padding-left(36px) - 線位置(16px) = 20px + 微調整 */
    left: -34px !important;

    top: 24px !important;
    width: 14px !important;
    height: 14px !important;
    border-width: 3px !important;
  }

  /* 5. 吹き出しの矢印（三角）の位置 */
  .timeline li::after {
    left: -8px !important;
    /* カードの左端にくっつける */
    top: 28px !important;
    border-width: 6px 8px 6px 0 !important;
  }
}

/* =========================================================
   Greeting Panel Fix (代表画像削除対応)
   画像前提のスタイルを無効化し、本文1カラムに最適化
========================================================= */

/* 代表挨拶セクションは画像が無い前提なので、レイアウトを1カラムに */
.page-company #sec-greeting,
.page-company [aria-labelledby="sec-greeting"] {
  /* 必要ならここでセクション単位の微調整も可能 */
}

/* 画像枠のポラロイド装飾は不要（画像が無いので） */
.page-company [aria-labelledby="sec-greeting"] .section__image,
.page-company [aria-labelledby="sec-greeting"] .section__image.ph {
  display: none !important;
}

/* 画像がなくなったので hover 時の画像変形も不要 */
.page-company [aria-labelledby="sec-greeting"] .section__inner:hover .section__image.ph {
  transform: none !important;
}

/* 画像がある前提の並び替え・reverse を無効化して自然な1カラムへ */
.page-company [aria-labelledby="sec-greeting"] .section__inner,
.page-company [aria-labelledby="sec-greeting"] .section__inner--reverse {
  grid-template-columns: 1fr !important;
  /* grid想定でも1カラム化 */
  display: block;
  /* flex/gridどちらでも崩れないよう保険 */
}

/* 本文ブロックの幅を読みやすく（広がりすぎ防止） */
.page-company [aria-labelledby="sec-greeting"] .section__body {
  max-width: 880px;
  margin-inline: auto;
}

/* 代表挨拶のテキスト余白を少し整える */
.page-company [aria-labelledby="sec-greeting"] .section__text {
  margin-top: 6px;
}

/* 署名（代表取締役〜）はそのまま右寄せでOK、少しだけ整える */
.page-company [aria-labelledby="sec-greeting"] .section__sign {
  display: block;
  margin-top: 1.6em;
}

/* 既存CSSに「.section__image { order:-1 }」があるので、代表挨拶では無効化 */
@media (max-width: 900px) {
  .page-company [aria-labelledby="sec-greeting"] .section__image {
    order: initial !important;
  }
}

/* ※もし .section__inner--reverse が他セクションでも使われていて影響が出る場合、
   代表挨拶HTMLから section__inner--reverse を外すのが最も確実です。 */

/* =========================================================
   Greeting Section Balance Fix（代表画像削除後の最適化）
   対象：aria-labelledby="sec-greeting" のセクションのみ
========================================================= */
.page-company [aria-labelledby="sec-greeting"] .section__inner {
  /* 余白のバランスを整える */
  padding: clamp(26px, 4vw, 44px);
}

/* 本文幅：広がりすぎると読みにくいので“文章の幅”を制御 */
.page-company [aria-labelledby="sec-greeting"] .section__body {
  max-width: 920px;
  margin-inline: auto;
}

.page-company [aria-labelledby="sec-greeting"] .section__text {
  max-width: 72ch;
  /* 読みやすい文字幅 */
  font-size: 15px;
  /* 14pxより少し上げて読みやすく */
  line-height: 2.0;
}

/* ---------------------------
   見出しブロックの整形
--------------------------- */
.page-company [aria-labelledby="sec-greeting"] .sec-head {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

/* MESSAGEラベル：横長すぎるのを解消して“タグ感”に */
.page-company [aria-labelledby="sec-greeting"] .sec-head__label {
  width: fit-content;
  max-width: 100%;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: .14em;
  box-shadow: 3px 3px 0 #bce0fd;
}

/* タイトル：余計な“長い波線”にならないよう幅を制御 */
.page-company [aria-labelledby="sec-greeting"] .sec-head__title {
  display: inline-block;
  margin: 0;
  padding-bottom: 10px;
  /* 波線との距離 */
}

/* 波線：文字幅に対して長すぎるので上限を設ける */
.page-company [aria-labelledby="sec-greeting"] .sec-head__title::after {
  width: min(680px, 100%) !important;
  /* ← ここが効きます */
  height: 6px !important;
  bottom: -10px !important;
  opacity: .55 !important;
}

/* ---------------------------
   段落の余白：詰まりすぎ/空きすぎを均一に
--------------------------- */
.page-company [aria-labelledby="sec-greeting"] .section__text p {
  margin: 0;
}

.page-company [aria-labelledby="sec-greeting"] .section__text p+p {
  margin-top: 1.1em;
}

/* ---------------------------
   署名：黄色の帯が太すぎるので“細い下線ハイライト”に変更
--------------------------- */
.page-company [aria-labelledby="sec-greeting"] .section__sign {
  margin-top: 1.8em;
  text-align: right;
  font-weight: 800;
  font-size: 16px;

  /* 既存の太い黄色帯を無効化（強制） */
  background: none !important;
  padding: 0 !important;
  display: inline-block;
  /* 署名文字の幅だけにする */
  position: relative;
}

/* 署名の下に“細い黄色のマーカー”を入れる（上品） */
.page-company [aria-labelledby="sec-greeting"] .section__sign::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  bottom: -6px;
  height: 10px;
  background: rgba(255, 240, 70, 0.7);
  border-radius: 6px;
  z-index: -1;
}

/* モバイル時：横幅が狭いので本文幅制御を解除気味に */
@media (max-width: 768px) {
  .page-company [aria-labelledby="sec-greeting"] .section__text {
    max-width: 100%;
    font-size: 14px;
  }

  .page-company [aria-labelledby="sec-greeting"] .sec-head__title::after {
    width: 100% !important;
  }
}

/* =========================================================
   Global Tag Style (sec-head__label)
   全ページ共通の「タグ（MESSAGE / ABOUT / HISTORY…）」統一仕様
========================================================= */

.sec-head__label {
  /* タグとしての最適サイズ */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;

  padding: 6px 16px;
  border-radius: 999px;

  /* 見た目（ポップだけど品良く） */
  background: #fff;
  color: #1e88ff;
  border: 2px solid #1e88ff;

  font-weight: 900;
  font-size: 12px;
  letter-spacing: .14em;

  /* “ステッカー感”の影（強すぎない） */
  box-shadow: 3px 3px 0 #bce0fd;

  /* 余白の統一 */
  margin: 0 0 12px 0;

  /* 行が折り返されても形が崩れにくい */
  line-height: 1.1;
  white-space: nowrap;
}

/* タグが長い文言になるケースの保険（折り返し許可版）
   ※必要なら class="sec-head__label is-wrap" を付けて使う */
.sec-head__label.is-wrap {
  white-space: normal;
  text-align: center;
}

/* モバイル：少しだけ詰めて見やすく */
@media (max-width: 768px) {
  .sec-head__label {
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: .12em;
    box-shadow: 2px 2px 0 #bce0fd;
  }
}

/* =========================================================
   Remove Wavy Line Decoration from All Headings
   すべての見出しから波線装飾を削除
========================================================= */

/* すべてのh2見出しの波線を無効化 */
h2::after,
h2[id^="sec-"]::after,
.sec-head__title::after,
.page-company h2::after,
.page-company .sec-head__title::after {
  display: none !important;
}

/* 波線用の余白をリセット */
h2,
h2[id^="sec-"],
.sec-head__title,
.page-company h2,
.page-company .sec-head__title {
  padding-bottom: 0 !important;
}