@charset "UTF-8";

/* ========================================================================== */
/* SUB_PAGE_HEADER (下層ヘッダー背景) */
/* ========================================================================== */
.sub_page_header { background-image: url("../images/company/sub_header_bg.jpg"); }



/* ========================================================================== */
/* CATEGORY TABS (上部タブメニュー) */
/* ========================================================================== */
.product_tabs {
   display: flex;
   justify-content: center;
   gap: 1px;
   width: calc(100% - 60px);
   max-width: 990px;
   margin: 43px auto 0;
   background-color: #F5F6F6;

   position: sticky;      /* 画面上部に張り付かせる設定 */
   top: 100px;            /* 固定ヘッダーの高さ（100px）のすぐ下に配置 */
   z-index: 900;          /* ヘッダー（1000）より下、コンテンツより上に浮かす */
   /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);*/ /* 【お好みで】固定時に少し影をつけて立体感を出す */
}

.product_tabs li {
   flex: 1;
   text-align: center;
}

.product_tabs li a {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 60px;
   background-color: #E0E3E3;
   font-size: 18px;
   font-weight: 500;
   color: #2B2B2B;
   transition: all 0.5s ease;
}

/* アクティブなタブ（現在は全埋込型）のオレンジ背景 */
.product_tabs li.active a {
   background-color: #FA5B22;
   color: #FFF;
   opacity: 1;
}

.product_tabs li:not(.active) a:hover {
   background-color: #FA5B22;
   color: #FFF;
   opacity: 1;
}



/* ========================================================================== */
/* MAIN_CONTAINER */
/* ========================================================================== */
main .main_container { margin-top: 0; }



/* ========================================================================== */
/* PRODUCT GRID (4カラム製品リスト & 完璧に交差する縦横の破線) */
/* ========================================================================== */
.product_list_wrapper {
   width: 100%;
   max-width: 1500px;
   margin: 0 auto;
   padding: 0 80px;
   box-sizing: border-box;
}



/* ========================================================================== */
/* TAB & INFINITE SCROLL CONTROL (表示・非表示とアニメーション制御) */
/* ========================================================================== */
/* 初期状態はすべてのコンテンツ（親の.tab_content）を非表示にする */
.tab_content {
   display: none; 
   opacity: 0; /* 最初は透明に */
}

/* activeクラスがついているコンテンツだけを表示する */
.tab_content.active {
   display: block; 
}

/* ★タブ切り替え時にJQueryから付与されるフェードイン・浮き上がりクラス */
.tab_content.fade-in {
   animation: fadeInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* カンプ用のキーフレームをそのまま活用・リファイン */
@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(30px); /* 下から浮き上がってくる距離 */
   }
   to {
      opacity: 1;
      transform: translateY(0);    /* 元の位置にジャストフィット */
   }
}



/* ========================================================================== */
/* COMPANY PROFILE TABLE */
/* ========================================================================== */
.company_profile_wrapper {
   width: 100%;
   max-width: 1100px; /* 指定の最大幅 */
   margin: 0 auto;
   padding: 0 /*40px*/;
   box-sizing: border-box;
}

.company_profile_table {
   width: 100%;
   border-collapse: collapse;
   border-top: 1px solid #CCC; /* テーブル最上部の横ライン */
   /* 外側の左ラインを消すため、テーブル自体の border-left は指定しない、または打ち消し */
   border-left: none !important; 
}

.company_profile_table th,
.company_profile_table td {
   border-bottom: 1px solid #CCC; /* 各行を区切る下の横ライン */
   padding: 24px 30px;
   font-size: 15px;
   line-height: 1.7;
   text-align: left;
   vertical-align: top;
   box-sizing: border-box;
}

/* 左側：見出し列（外側の左縦ラインを非表示に） */
.company_profile_table th {
   width: 240px;
   background-color: #F5F6F6;
   font-weight: bold;
   letter-spacing: 0.1em;
   
   /* thの左側のラインを確実に消す */
   border-left: none !important; 
   /* 中央の区切り線として、右側のラインは共通の #CCC を維持 */
   border-right: 1px solid #CCC; 
}

/* 右側：データ列（外側の右縦ラインを非表示に） */
.company_profile_table td {
   /* tdの右側のラインを確実に消す */
   border-right: none !important; 
}

/* 住所まわりの細かなスタイリング */
.company_profile_table .office_title {
   font-weight: bold;
   margin-bottom: 5px;
}

.company_profile_table .contact_block {
   margin-top: 15px;
}

.company_profile_table .contact_block p {
   margin-bottom: 2px;
}
.company_profile_table .contact_block p:last-child {
   margin-bottom: 0;
}

/* 事業内容のリスト */
.company_profile_table .business_list {
   list-style-type: none;
   padding: 0;
   margin: 0;
}

.company_profile_table .business_list li {
   margin-bottom: 6px;
}
.company_profile_table .business_list li:last-child {
   margin-bottom: 0;
}


/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   /* スマホ時はすべて縦一列（ブロック）にするため、中間の縦ラインも不要にする */
   .company_profile_table,
   .company_profile_table tbody,
   .company_profile_table tr,
   .company_profile_table th,
   .company_profile_table td {
      display: block;
      width: 100% !important;
      border-color: #DDD;
      border-right: none !important;
   }

   .company_profile_table th {
      padding: 8px 10px;
      font-size: 13px;
   }

   .company_profile_table td {
      padding: 16px 10px 24px;
      font-size: 14px;
   }
   .company_profile_table tr:last-child td {
      padding-bottom: 0;
      border-bottom: none !important;
   }
}



/* ========================================================================== */
/* COMPANY HISTORY TIMELINE (上端フラット ＆ 丸位置ジャスト中央調整版) */
/* ========================================================================== */
.company_history_wrapper {
   width: 100%;
   max-width: 1100px; /* 指定の最大幅 */
   margin: 0 auto;
   padding: 0 /*40px*/;
   box-sizing: border-box;
}

/* 沿革リスト全体のコンテナ */
.company_history_list {
   list-style: none;
   padding: 0;
   margin: 0;
}

/* 1行ごとのボックス設定 */
.company_history_list .history_row {
   display: flex;
   align-items: flex-start; /* 上揃えにして文字量が増えても線の開始位置を固定 */
   padding: 30px 40px;
   box-sizing: border-box;
   position: relative; /* 行ごとの縦線の基準位置用 */
}

/* 各行の背景に「上から下まで突き抜ける1pxの縦線」を配置 */
.company_history_list .history_row::before {
   content: "";
   position: absolute;
   /* 年の固定幅160px + 左右のパディング40px + 出来事エリアの配置余白25px = 225px */
   /* 幅1pxの線が丸（幅8px）のど真ん中を通るよう、225pxに「丸の半径4px」を足した 229px に固定 */
   left: 229px; 
   top: 0;
   bottom: 0;
   width: 1px; /* ご指定の幅1px */
   background-color: #FA5B22; /* 満点商会オレンジ */
   z-index: 1; /* ドットの下に敷く */
}

/* 1行目のセルの縦線は、最初の丸の中心（上から36pxの位置）より上には伸ばさない */
.company_history_list .history_row:first-child::before {
   top: 42px; 
}

/* 最終行の縦線は、最後の丸の中心（上から36pxの位置）でピタッと止める */
.company_history_list .history_row:last-child::before {
   bottom: auto;
   height: 42px; 
}

/* 年ごとに背景色をグレーと白で交互に切り替え */
.company_history_list .history_row:nth-child(odd) {
   background-color: #F5F6F6; /* 奇数行：薄いグレー */
}
.company_history_list .history_row:nth-child(even) {
   background-color: #FFF; /* 偶数行：白 */
}

/* 左側：年月の表示エリア */
.company_history_list .history_date {
   flex: 0 0 160px; /* 幅を160pxに固定 */
   font-size: 15px;
   line-height: 1.6; /* 右側のテキストと1行目の高さを完全に一致させる */
   padding-top: 0;   /* 上端を綺麗に揃えるため、不要な余白を完全に撤去 */
}

/* 和暦（span）を折り返さず、西暦の後ろに横並びにする設定 */
.company_history_list .history_date span {
   display: inline; /* インラインに修正して横並びにする */
   margin-left: 0.5em; /* 西暦との間に読みやすいよう程よい隙間を空ける */
}

/* 右側：出来事の表示エリア */
.company_history_list .history_timeline_area {
   flex-grow: 1;
   padding-left: 50px; /* 年と出来事の中間にラインを引くためのスペース */
   box-sizing: border-box;
}

/* 出来事のリスト（ul） */
.company_history_list .desc_list {
   list-style: none;
   padding: 0;
   margin: 0;
}

.company_history_list .desc_list li {
   position: relative;
   font-size: 15px;
   line-height: 1.6; /* 左側のテキストと1行目の高さを完全に一致させる */
   margin-bottom: 14px;
}
.company_history_list .desc_list li:last-child {
   margin-bottom: 0;
}

/* 各出来事の前に打たれるオレンジ色の小さな丸（ドット） */
.company_history_list .desc_list li::before {
   content: "";
   position: absolute;
   left: -25px; /* 年と出来事の中間位置に固定 */
   top: 8px;    /* 【修正】15pxテキスト（行高さ24px）の1行目ジャスト中央へ配置 */
   width: 8px;  /* 丸のサイズ */
   height: 8px;
   background-color: #FA5B22;
   border-radius: 50%;
   z-index: 2;  /* 各行に敷いた1pxの縦線の上に美しく重ねる */
}


/* -------------------------------------------------------------------------- */
/* スマートフォンサイズ用の調整（768px以下）*/
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   .company_history_list .history_row { padding: 16px 12px; }

   /* スマホ表示の際の1pxの縦線の位置調整 */
   .company_history_list .history_row::before {
      left: 78px; 
      top: 0;
      bottom: 0;
      height: auto;
   }
   
   .company_history_list .history_row:first-child::before {
      top: 26px; /* スマホのパディングに合わせた丸の中心位置 */
   }
   
   .company_history_list .history_row:last-child::before {
      bottom: auto;
      height: 26px; /* スマホのパディングに合わせた丸の中心位置でストップ */
   }

   .company_history_list .history_date {
      flex: 0 0 60px;
      padding-top: 0;
      font-size: clamp(13px, 0.22vw + 12.3px, 14px);
      text-align: left;
      white-space: nowrap;
   }
   
   /* スマホ時も横並びを維持 */
   .company_history_list .history_date span {
      display: block;
      margin-left: 0;
      font-size: clamp(10px, 0.22vw + 9.3px, 11px);
   }

   .company_history_list .history_timeline_area { padding-left: clamp(20px, 1.11vw + 16.4px, 25px); }

   .company_history_list .desc_list li {
      font-size: clamp(13px, 0.22vw + 12.3px, 14px);
      line-height: 1.6;
   }

   .company_history_list .desc_list li::before {
      top: 10px;
      left: calc(-1 * clamp(20px, 1.11vw + 16.4px, 25px) + 4px); 
      width: 5px;
      height: 5px;
   }
}



/* ========================================================================== */
/* ORGANIZATIONAL CHART (画像配置用のシンプルな最適化) */
/* ========================================================================== */
.org_image_wrapper {
   width: 100%;
   max-width: 1100px; /* company.cssの他のコンテンツの最大幅に合わせる */
   margin: 0 auto;
   box-sizing: border-box;
   background-color: #FFF;
   text-align: center;
   
   /* スマホなどの狭い画面で画像が潰れず、横スワイプで読めるようにする設定 */
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
}

.org_image_wrapper img {
   display: inline-block;
   max-width: 700px;
   height: auto;
}

/* スクロールバーをお洒落で邪魔にならない薄型にするスタイル */
.org_image_wrapper::-webkit-scrollbar {
   height: 6px;
}
.org_image_wrapper::-webkit-scrollbar-thumb {
   background: #DDD;
   border-radius: 3px;
}




/* ========================================================================== */
/* RESPONSIVE DESIGN (レスポンシブ対応) */
/* ========================================================================== */
/* タブレットサイズ（1024px以下）: 3カラムに変更 */
@media screen and (max-width: 1024px) {
   .product_tabs {
      width: calc(100% - 40px); /* 左右の余白を少し詰める */
      margin-top: 40px;
   }
   .product_list_wrapper {
      padding: 0 20px;
   }
}

/* スマートフォンサイズ（768px以下）: リストを2カラムに変更 */
@media screen and (max-width: 768px) {
   .product_tabs {
      width: calc(100% - 30px); /* 左右の余白を少し詰める */
      margin-top: 30px;
      top: 60px !important;
   }
   .product_list_wrapper {
      padding: 0 15px;
   }
   .product_tabs li a {
      height: 46px;
      font-size: clamp(10px, 3.125vw, 13px);
   }
}
