/*
Theme Name: TKS Original
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: TKS用オリジナルテーマ。Bootstrap と Noto Sans JP を利用したレスポンシブ対応のコーポレートサイト。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tks-original
*/

/* フェードインエフェクト
--------------------------------------------- */
.tks-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.tks-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ベース設定
--------------------------------------------- */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tks-section {
  padding: 80px 0;
}

@media (max-width: 767.98px) {
  .tks-section {
    padding: 60px 0;
  }
}

/* タイポグラフィ
--------------------------------------------- */
.tks-title-lg {
  font-weight: 700;
  letter-spacing: 0.15em;
}

.tks-title-md {
  font-weight: 700;
  letter-spacing: 0.12em;
}

.tks-body {
  font-weight: 400;
}

/* PC/SP フォントサイズ指定 */
@media (min-width: 768px) {
  .tks-title-lg {
    font-size: 80px;
  }
  .tks-title-md {
    font-size: 30px;
  }
  .tks-body {
    font-size: 18px;
  }
}

@media (max-width: 767.98px) {
  .tks-title-lg {
    font-size: 65px;
  }
  .tks-title-md {
    font-size: 25px;
  }
  .tks-body {
    font-size: 16px;
  }
}

/* ヘッダー
--------------------------------------------- */
.tks-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: none;
  background: linear-gradient(rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0) 100%);
}

.tks-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.tks-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.tks-header-left img{
	width: calc(100% - 6rem);
}

@media (max-width: 767.98px) {
  .tks-header-left img{
    width: calc(100% - 2rem);
  }
}
.tks-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 110px;
  background-color: #dddddd;
  color: #fff;
  border-radius: 0 0 6px 0;
}

.tks-logo-mark-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 52px;
}

.tks-logo-company {
  font-weight: 700;
  font-size: 18px;
}

.tks-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 767.98px) {
  .tks-header-actions {
    margin-right: 0 !important;
  }
}

.tks-btn-contact {
  background-color: #fe0000;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7em;
  height: 7em;
  max-width: 125px;
  max-height: 125px;
  border-radius: 6px;
  padding: 0;
}

.tks-btn-menu {
  background-color: #333;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 7em;
  height: 7em;
  max-width: 125px;
  max-height: 125px;
  border-radius: 6px;
  padding: 0;
}

@media (max-width: 767.98px) {
  .tks-logo-mark {
    width: 99px;
    height: 80px;
    border-radius: 0 0 6px 0;
  }

  .tks-logo-mark-text {
    font-size: 40px;
  }

  .tks-logo-company {
    font-size: 14px;
  }

  .tks-btn-contact,
  .tks-btn-menu {
    width: 64px;
    height: 64px;
    font-size: 12px;
  }
  .tks-btn-contact{
  display: none;
  }
}

/* サイドメニュー
--------------------------------------------- */
.tks-side-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.tks-side-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.tks-side-menu-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tks-side-menu.is-open .tks-side-menu-overlay {
  opacity: 1;
}

.tks-side-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.tks-side-menu.is-open .tks-side-menu-content {
  transform: translateX(0);
}

.tks-side-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: color 0.2s ease;
}

.tks-side-menu-close:hover {
  color: #fe0000;
}

.tks-side-menu-nav {
  padding: 80px 40px 40px;
}

.tks-side-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tks-side-menu-list > li {
  margin-bottom: 24px;
}

.tks-side-menu-list > li:not(.tks-side-menu-contact) a {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  transition: color 0.2s ease;
}

.tks-side-menu-list > li:not(.tks-side-menu-contact) a:hover {
  color: #fe0000;
}

.tks-side-menu-contact {
  margin-top: 40px;
}

.tks-side-menu-contact .tks-btn-detail {
  min-width: auto;
  width: 100%;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .tks-side-menu-content {
    width: 320px;
  }
  
  .tks-side-menu-nav {
    padding: 60px 24px 24px;
  }
  
  .tks-side-menu-list > li:not(.tks-side-menu-contact) a {
    font-size: 16px;
  }
}

/* ヒーロー
--------------------------------------------- */
.tks-hero {
  padding-top: 140px; /* 固定ヘッダー分 + 余白 */
  padding-bottom: 80px;
  background-color: #ffffff;
}

.tks-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.tks-hero-main-copy {
  font-weight: 700;
  line-height: 1.1;
  z-index: 1000;
  position: relative;
  text-shadow: 0px 0px 10px white;
  white-space: nowrap;
}

.tks-hero-sub-copy {
  margin-top: 18px;
  font-size: 16px;
  white-space: nowrap;
}

.tks-hero-left {
  flex: 0 0 30%;
  max-width: 30%;
}

.tks-hero-right {
  flex: 0 0 70%;
  max-width: 70%;
}

.tks-hero-right img {
  width: 100%;
  height: auto;
  display: block;
}

.tks-hero-main-copy-accent {
  color: #fe0000;
}

@media (min-width: 992px) {
  .tks-hero-main-copy {
    font-size: 140px;
  }
}

@media (max-width: 991.98px) {
  .tks-hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .tks-hero-inner {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .tks-hero-left,
  .tks-hero-right {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .tks-hero-main-copy {
    font-size: 50px;
  }
  .tks-hero-main-copy,
  .tks-hero-sub-copy {
    padding-left:10px;
    padding-right:10px;
    white-space:normal;
  }
}

/* セクション共通
--------------------------------------------- */
.tks-section-label {
  font-size: 80px;
  color: #333;
  margin-bottom: 4px;
  font-weight: 700;
}

.tks-section-title {
  font-size: 30px;
  color: #fe0000;
  margin-bottom: 32px;
  font-weight: 700;
}

/* サブページ（固定ページ）では黒色 */
.page .tks-section-title {
  color: #333;
}

.tks-section-lead {
  margin-bottom: 24px;
}

@media (max-width: 991.98px) {
  .tks-section-label {
    font-size: 65px;
  }
}
/* ボタン：詳しくはこちら
--------------------------------------------- */
.tks-btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 310px;
  background-color: #fe0000;
  color: #fff;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  gap: 12px;
  border: none;
}

.tks-btn-detail:hover {
  background-color: #b90000;
  opacity: 0.9;
}

.tks-btn-detail-text {
  flex: 1;
}

.tks-btn-detail-icon {
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #fff;
  transition: transform 0.3s ease, scale 0.3s ease;
  flex-shrink: 0;
}

.tks-btn-detail:hover .tks-btn-detail-icon {
  transform: rotate(360deg) scale(2);
}

@media (max-width: 767.98px) {
  .tks-btn-detail {
    min-width: 280px;
    padding: 12px 18px;
    font-size: 14px;
  }
  
  .tks-btn-detail-icon {
    width: 10px;
    height: 10px;
  }
}

/* ABOUT */
.tks-about-image {
  border-radius: 4px;
  overflow: hidden;
}

/* SERVICE */
.tks-service-bg {
  background: linear-gradient(to bottom, #fff 0%, #fff 25%, #f8f8f8 25%, #f8f8f8 75%, #fff 75%, #fff 100%);
}

/* WORKS */
.tks-works-header {
  margin-bottom: 48px;
}

.tks-works-card {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tks-works-image {
  overflow: hidden;
}

.tks-works-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tks-works-title {
  font-size: 18px;
}

.tks-works-text {
  flex: 1;
  margin-bottom: 16px;
}

.tks-works-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tks-works-tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.tks-works-tag:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

@media (max-width: 767.98px) {
  .tks-works-header {
    margin-bottom: 32px;
  }
  
  .tks-works-title {
    font-size: 16px;
  }
  
  .tks-works-tag {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* QUESTION (FAQ) */
.tks-faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.tks-faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
}

.tks-faq-q-mark {
  color: #00bcd4;
}

.tks-faq-a-mark {
  color: #fe0000;
}

.tks-faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.tks-faq-icon-plus,
.tks-faq-icon-minus {
  position: absolute;
  transition: opacity 0.3s ease;
}

.tks-faq-icon-plus {
  opacity: 1;
}

.tks-faq-icon-minus {
  opacity: 0;
}

.tks-faq-item.is-open .tks-faq-icon-plus {
  opacity: 0;
}

.tks-faq-item.is-open .tks-faq-icon-minus {
  opacity: 1;
}

.tks-faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.tks-faq-item.is-open .tks-faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 20px 16px;
}

/* COMPANY & NEWS */
.tks-company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 991.98px) {
  .tks-company-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  }
}

@media (max-width: 575.98px) {
  .tks-company-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  }
}

.tks-company-card {
  background-color: #f5f5f5;
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tks-company-card:hover {
  background-color: #e5e5e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* NEWS セクション専用スタイル */
.tks-news-section {
  padding: 80px 0;
}

.tks-news-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.tks-news-header {
  margin-bottom: 32px;
}

.tks-news-label {
  font-size: 30px;
  color: #333;
  margin-bottom: 4px;
  font-weight: 700;
}

.tks-news-title {
  font-size: 18px;
  color: #fe0000;
  margin-bottom: 0;
  font-weight: 700;
}

.tks-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tks-news-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.tks-news-date {
  display: inline-block;
  width: 110px;
  color: #777;
}

@media (max-width: 767.98px) {
  .tks-news-section {
    padding: 60px 0;
  }
  
  .tks-news-inner {
    max-width: 100%;
  }
  
  .tks-news-label {
    font-size: 25px;
  }
  
  .tks-news-title {
    font-size: 16px;
  }
}

/* パンくずリスト
--------------------------------------------- */
.tks-breadcrumb {
  padding: 20px 0;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  margin-top: 140px; /* 固定ヘッダー分 */
}

.tks-breadcrumb .container {
  font-size: 14px;
}

.tks-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.tks-breadcrumb a:hover {
  color: #fe0000;
}

.tks-breadcrumb span {
  color: #777;
}

/* ページヘッダー
--------------------------------------------- */
.tks-page-header {
  padding: 30px 0;
  background-color: #fff;
  margin-top: 140px; /* 固定ヘッダー分 */
  border-bottom: 1px solid #e5e5e5;
}

.tks-page-title {
  font-size: 60px;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.tks-page-title-en {
  font-size: 32px;
  font-weight: 500;
  color: var(--bs-red);
  margin: 0;
}

.tks-breadcrumb-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  padding-bottom: 4px;
}

.tks-breadcrumb-inline a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tks-breadcrumb-inline a:hover {
  color: #fe0000;
}

.tks-breadcrumb-inline span:not(.tks-breadcrumb-separator) {
  color: #333;
}

.tks-breadcrumb-separator {
  color: #fe0000;
  font-size: 10px;
  line-height: 1;
  background-image: none !important;
  background: none !important;
}
/* 
.tks-breadcrumb-separator::before,
.tks-breadcrumb-separator::after {
  content: none !important;
  background-image: none !important;
  background: none !important;
} */
.tks-breadcrumb-separator::after {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 1px solid #fe0000;
    border-right: 1px solid #fe0000;
    display: inline-block;
    position: relative;
    top: 0;
    left: -3px;
    transform: rotate(45deg);
}

@media (max-width: 767.98px) {
  .tks-breadcrumb {
    margin-top: 100px;
    padding: 16px 0;
  }
  
  .tks-page-header {
    margin-top: 100px;
    padding: 40px 0;
  }
  
  .tks-page-title {
    font-size: 30px;
  }
  
  .tks-page-title-en {
    font-size: 16px;
  }
  
  .tks-breadcrumb-inline {
    justify-content: flex-start;
    margin-top: 16px;
  }
}

/* 基本情報テーブル
--------------------------------------------- */
.tks-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.tks-info-table th,
.tks-info-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.tks-info-table th {
  width: 140px;
  font-weight: 700;
  color: #333;
  background-color: #f8f8f8;
}

.tks-info-table td {
  color: #333;
  background-color: #fff;
}

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

@media (max-width: 767.98px) {
  .tks-info-table th,
  .tks-info-table td {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .tks-info-table th {
    width: 100px;
  }
}

/* About ラベルと番号
--------------------------------------------- */
.tks-about-label {
    font-size: 31px;
    color: #8b0000;
    font-weight: 800;
    margin-bottom: -14px;
}

.tks-about-number {
  font-size: 80px;
  font-weight: 700;
  color: #333;
  line-height: 1;
  margin-bottom: 16px;
}

.aisatsu-section{
  background:#f8f8f8;
  padding: 0 0;
}
.aisatsu-section .container{
  background:#fff;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 767.98px) {
  .tks-about-label {
    font-size: 16px;
  }
  
  .tks-about-number {
    font-size: 65px;
  }
}

/* 主要取引先
--------------------------------------------- */
.tks-partners {
  max-width: 800px;
  margin: 0 auto;
}

.tks-partners-list {
  max-width: 100%;
  background-color: #fff;
  border: 10px solid #e5e5e5;
  padding: 32px 40px;
  display: inline-block;
}

.tks-partners-list ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
}

.tks-partners-list li {
  color: #333;
  font-size: 18px;
  line-height: 2;
  margin-bottom: 4px;
}

.tks-partners-list li:last-child {
  margin-bottom: 0;
}

.tks-partners-two-col .tks-partners--block {
  max-width: 100%;
  width: 100%;
  min-height: 100%;
}

.tks-partners-two-col .tks-partners--block > .tks-section-title {
  width: 100%;
  text-align: center;
}

.tks-partners-two-col .tks-partners-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.tks-fujimack-partnership-inner {
  max-width: 720px;
  padding: 28px 24px;
  border: 10px solid #f36464;
  background-color: #fff;
}

.tks-fujimack-partnership-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: #fe0000;
  color: #fff;
  letter-spacing: 0.1em;
}

.tks-fujimack-partnership-brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #333;
}

.tks-fujimack-partnership-brand-ja {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #555;
}

@media (max-width: 767.98px) {
  .tks-partners {
    max-width: 100%;
  }
  
  .tks-partners-list {
    padding: 24px 20px;
  }
  
  .tks-partners-list li {
    font-size: 16px;
    line-height: 1.8;
  }
}

/* ご依頼の流れ
--------------------------------------------- */
.tks-flow {
  max-width: 1200px;
  margin: 0 auto;
}

.tks-flow-row {
  margin-bottom: 0;
}

.tks-flow-row:last-child {
  margin-top: 30px;
  margin-bottom: 0;
  justify-content: center;
}

.tks-flow-col {
  flex: 0 0 20%;
  max-width: 20%;
}

@media (min-width: 992px) {
  .tks-flow-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
  
  .tks-flow-arrow-col {
    flex: 0 0 auto;
    width: auto;
  }
  
  .tks-flow-row:last-child .tks-flow-col {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

.tks-flow-item {
  text-align: center;
  /* padding: 20px; */
  display: flex;
  flex-direction: column;
}

.tks-flow-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tks-flow-icon img {
  max-width: 100%;
  height: auto;
}

.tks-flow-time {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.tks-flow-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tks-flow-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.tks-flow-arrow {
  font-size: 32px;
  color: #fe0000;
  text-align: center;
  padding: 0 10px;
}

@media (max-width: 991.98px) {
  .tks-flow-item {
    padding: 16px;
  }
  
  .tks-flow-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  
  .tks-flow-title {
    font-size: 14px;
    min-height: 40px;
  }
  
  .tks-flow-text {
    font-size: 13px;
  }
}

@media (max-width: 767.98px) {
  .tks-flow-row {
    margin-top: 0;
  }

  .tks-flow-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .tks-flow-row:last-child{
    margin-top: 0;
  }
}

/* 吹き出し（中古機器案内）
--------------------------------------------- */
.tks-speech-bubble-wrapper {
  display: flex;
  justify-content: center;
}

.tks-speech-bubble {
    font-size: 1.2rem;
  display: inline-block;
  /* max-width: 560px; */
  padding: 16px 24px;
  margin: 0;
  background: #fff;
  border: 2px solid #fe0000;
  border-radius: 16px;
  font-weight: 500;
  color: #333;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tks-speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 14px 0;
  border-style: solid;
  border-color: #fe0000 transparent transparent;
}

.tks-speech-bubble::before {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 12px 0;
  border-style: solid;
  border-color: #fff transparent transparent;
  z-index: 1;
}

/* 中古厨房機器販売サイトバナー
--------------------------------------------- */
.tks-used-banner {
  position: relative;
  background-color: #333;
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.tks-used-banner-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: #fff;
  flex: 1;
}

.tks-used-banner-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.tks-used-banner-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  opacity: 0.3;
  overflow: hidden;
}

.tks-used-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .tks-used-banner {
    min-height: 250px;
    flex-direction: column-reverse;
  }
  
  .tks-used-banner-content {
    padding: 24px;
  }
  
  .tks-used-banner-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .tks-used-banner-image {
    position: relative;
    width: 100%;
    height: 200px;
    opacity: 0.5;
  }
}

/* 施工事例検索・フィルター
--------------------------------------------- */
.tks-works-search {
  background-color: #e5e5e5;
  border: 1px solid #e5e5e5;
  border-top: 5px solid #fe0000;
  padding: 32px 40px;
}

.tks-works-search-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.tks-works-filter-group {
  margin-bottom: 24px;
}

.tks-works-filter-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.tks-works-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tks-works-filter-option {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.2s ease;
  font-size: 14px;
}

.tks-works-filter-option input[type="radio"],
.tks-works-filter-option input[type="checkbox"] {
  display: none;
}

.tks-works-filter-option span {
  color: #333;
}

.tks-works-filter-option:hover {
  border-color: #fe0000;
  background-color: #fff5f5;
}

.tks-works-filter-option input[type="radio"]:checked + span {
  color: #fff;
  font-weight: 700;
}

.tks-works-filter-option:has(input[type="radio"]:checked) {
  border-color: #fe0000;
  background-color: #fe0000;
}

.tks-works-filter-option:has(input[type="radio"]:checked) span {
  color: #fff;
}

.tks-works-filter-option input[type="checkbox"]:checked + span {
  color: #fff;
  font-weight: 700;
}

.tks-works-filter-option:has(input[type="checkbox"]:checked) {
  border-color: #fe0000;
  background-color: #fe0000;
}

.tks-works-filter-option:has(input[type="checkbox"]:checked) span {
  color: #fff;
}

@media (max-width: 767.98px) {
  .tks-works-search {
    padding: 24px 20px;
  }
  
  .tks-works-filter-options {
    gap: 8px;
  }
  
  .tks-works-filter-option {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 施工事例カード（詳細版）
--------------------------------------------- */
.tks-works-card-detail {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.tks-works-card-image {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 アスペクト比 */
  overflow: hidden;
  background-color: #f5f5f5;
}

.tks-works-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tks-works-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #fe0000;
  color: #fff;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
}

.tks-works-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tks-works-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.5;
  flex: 1;
}

.tks-works-card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.tks-works-card-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.tks-works-card-detail .tks-btn-detail {
  margin-top: auto;
}

@media (max-width: 767.98px) {
  .tks-works-card-content {
    padding: 16px;
  }
  
  .tks-works-card-title {
    font-size: 14px;
  }
  
  .tks-works-card-description {
    font-size: 13px;
  }
  
  .tks-works-card-meta {
    font-size: 12px;
  }
}

.tks-works-card-detail-link:hover .tks-works-card-detail {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tks-btn-detail--ghost {
  background-color: #fff !important;
  color: #fe0000 !important;
  border: 2px solid #fe0000;
}

.tks-btn-detail--ghost:hover {
  background-color: #fff5f5 !important;
  opacity: 1;
}

button.tks-btn-detail {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.tks-work-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.tks-work-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.tks-work-pagination .page-numbers.current {
  background-color: #fe0000;
  border-color: #fe0000;
  color: #fff;
  font-weight: 700;
}

.tks-work-pagination .page-numbers:hover {
  border-color: #fe0000;
  color: #fe0000;
}

.tks-work-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: -10px 0 0 -10px;
  color: #333;
  gap:10px;
}

.tks-work-single-meta-item {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0 10px;
}

.tks-work-single-meta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 12px;
  background-color: #fe0000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  border-radius: 4px;
  white-space: nowrap;
}

.tks-work-single-meta-value {
  font-size: inherit;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
}

.tks-work-single-content {
  line-height: 1.9;
}

/* 施工事例：画像の横中央寄せ（単体・カルーセル共通） */
.tks-work-single-media {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tks-work-single-media .tks-work-single-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* 施工事例：ギャラリーカルーセル（Bootstrap） */
.tks-work-gallery-carousel .carousel-inner {
  border-radius: 4px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.tks-work-carousel-slide-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  width: 100%;
}

.tks-work-gallery-carousel .tks-work-gallery-carousel-img {
  width: auto;
  max-width: 100%;
  max-height: 560px;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.tks-work-gallery-carousel .carousel-control-prev,
.tks-work-gallery-carousel .carousel-control-next {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* フッター
--------------------------------------------- */
/* 1段目：中古販売・お問い合わせリンク */
.tks-footer-top {
  background-color: #fff;
  border-top: 1px solid #fe0000;
}

.tks-footer-links {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.tks-footer-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px 24px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 1px solid #fe0000;
  border-right: 1px solid #fe0000;
  background-color: #fff;
}

.tks-footer-link:first-child {
  border-right: none;
}

.tks-footer-link:last-child {
  border-right: 1px solid #fe0000;
}

.tks-footer-link:hover {
  color: #fe0000;
  background-color: #fff5f5;
}

.tks-footer-link-icon {
  display: inline-block;
  color: #333;
  font-size: 14px;
  line-height: 1;
  margin-left: 4px;
}
.tks-footer-link-icon:after{
	content:"";
	width: 10px;
	height: 10px;
	border-top: 1px solid #fe0000;
	border-right: 1px solid #fe0000;
	display: inline-block;
	position: relative;
	top: 0;
	left: 0;
	transform: rotate(45deg);
}

.tks-footer-link-separator {
  width: 1px;
  height: 30px;
  background-color: #fe0000;
}


@media (max-width: 767.98px) {
  .tks-footer-top {
    border-top: none;
  }
  .tks-footer-link:first-child {
    border-right: 1px solid #fe0000;
  }
}

/* 2段目：会社情報・メニュー */
.tks-footer-main {
  background-color: #111;
  color: #fff;
  padding: 40px 0;
  font-size: 13px;
}

.tks-footer-logo {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
}

.tks-footer-logo img {
  width: 120px;
  height: auto;
  display: block;
}

.tks-footer-company {
  font-size: 14px;
  color: #fff;
  line-height: 1.8;
}

.tks-footer-nav {
  text-align: right;
}

.tks-footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-block;
}

.tks-footer-nav-list li {
  margin-bottom: 8px;
}

.tks-footer-nav-list li:last-child {
  margin-bottom: 0;
}

.tks-footer-nav-list a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.tks-footer-nav-list a:hover {
  color: #fe0000;
}

/* 3段目：Copyright */
.tks-footer-bottom {
  background-color: #fff;
  padding: 16px 0;
  text-align: left;
  border-top: none;
  margin-top: 0;
}

.tks-footer-bottom small {
  color: #999;
  font-size: 12px;
}

/* 採用情報
--------------------------------------------- */
.tks-recruit-lead {
  max-width: 900px;
  margin: 0 auto;
}

.tks-recruit-lead-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.tks-recruit-table-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.tks-recruit-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border: 1px solid #e5e5e5;
}

.tks-recruit-table th,
.tks-recruit-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}

.tks-recruit-table th {
  width: 180px;
  background-color: #f8f8f8;
  font-weight: 700;
  color: #333;
}

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

.tks-recruit-flow {
  max-width: 1200px;
  margin: 0 auto;
}

.tks-recruit-flow-item {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  padding: 20px;
  height: 100%;
}

.tks-recruit-flow-step {
  font-size: 12px;
  font-weight: 700;
  color: #fe0000;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.tks-recruit-flow-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.tks-recruit-flow-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.tks-recruit-cta {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #e5e5e5;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tks-recruit-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

/* 先輩社員インタビュー
--------------------------------------------- */
.tks-recruit-interview {
  margin-bottom: 60px;
}

.tks-recruit-interview:last-child {
  margin-bottom: 0;
}

.tks-recruit-interview-label {
  font-size: 31px;
  color: #fe0000;
  font-weight: 800;
  margin-bottom: -14px;
}

.tks-recruit-interview-number {
  font-size: 80px;
  font-weight: 700;
  color: #333;
  line-height: 1;
  margin-bottom: 16px;
}

.tks-recruit-interview-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.tks-recruit-interview-info {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}
.tks-recruit-qualifications{
	background-color: #efedee;
	padding: 3em;
}
.tks-recruit-qualification-item {
	border-left: 4px solid #fe0000;
	padding-left: 16px;
}
@media (max-width: 767.98px) {
  .tks-recruit-interview {
    margin-bottom: 40px;
  }
  
  .tks-recruit-interview-label {
    font-size: 16px;
  }
  
  .tks-recruit-interview-number {
    font-size: 65px;
  }
  
  .tks-recruit-interview-title {
    font-size: 20px;
  }
  
  .tks-recruit-interview-info {
    font-size: 14px;
  }
  
  .tks-recruit-career-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: #333;
  }
  
  .tks-recruit-qualifications {
    background-color: #f5f5f5;
    padding: 24px 32px;
    border-radius: 4px;
  }
  
  .tks-recruit-qualification-item {
    position: relative;
    padding-left: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    min-height: 48px;
    display: flex;
    align-items: center;
	border-left: 4px solid #fe0000;
  }
  
  .tks-recruit-stepup-image {
    width: 100%;
  }
  
  .tks-recruit-stepup-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .tks-recruit-lead-title {
    font-size: 22px;
  }

  .tks-recruit-table th {
    width: 110px;
  }

  .tks-recruit-table th,
  .tks-recruit-table td {
    padding: 12px 16px;
    font-size: 14px;
  }

  .tks-recruit-cta {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tks-recruit-career-subtitle {
    font-size: 18px;
  }
  
  .tks-recruit-qualifications {
    padding: 20px 24px;
  }
  
  .tks-recruit-qualification-item {
    font-size: 16px;
    min-height: 40px;
  }
}

/* お問い合わせフォーム
--------------------------------------------- */
.tks-contact-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tks-contact-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 40px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.tks-contact-form-wrap .wpcf7-form {
  margin: 0;
}

.tks-contact-form-wrap .wpcf7-form-control-wrap {
  margin-bottom: 24px;
  display: block;
}

.tks-contact-form-wrap label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.tks-contact-form-wrap label .wpcf7-form-control-wrap {
  margin-bottom: 0;
}

.tks-contact-form-wrap .wpcf7-required {
  color: #fe0000;
  margin-left: 4px;
}

.tks-contact-form-wrap input[type="text"],
.tks-contact-form-wrap input[type="email"],
.tks-contact-form-wrap input[type="tel"],
.tks-contact-form-wrap select,
.tks-contact-form-wrap textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.2s ease;
  font-family: 'Noto Sans JP', sans-serif;
}

.tks-contact-form-wrap input[type="text"]:focus,
.tks-contact-form-wrap input[type="email"]:focus,
.tks-contact-form-wrap input[type="tel"]:focus,
.tks-contact-form-wrap select:focus,
.tks-contact-form-wrap textarea:focus {
  outline: none;
  border-color: #fe0000;
}

.tks-contact-form-wrap textarea {
  min-height: 150px;
  resize: vertical;
}

.tks-contact-form-wrap select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.tks-contact-form-wrap .wpcf7-checkbox,
.tks-contact-form-wrap .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.tks-contact-form-wrap .wpcf7-list-item {
  margin: 0;
}

.tks-contact-form-wrap .wpcf7-list-item label {
  display: flex;
  align-items: center;
  font-weight: 400;
  cursor: pointer;
  margin-bottom: 0;
}

.tks-contact-form-wrap .wpcf7-list-item input[type="checkbox"],
.tks-contact-form-wrap .wpcf7-list-item input[type="radio"] {
  width: auto;
  margin-right: 8px;
  cursor: pointer;
}

.tks-contact-form-wrap .wpcf7-submit {
  width: 100%;
  max-width: 400px;
  margin: 32px auto 0;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background-color: #fe0000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
}

.tks-contact-form-wrap .wpcf7-submit:hover {
  background-color: #cc0000;
}

.tks-contact-form-wrap .wpcf7-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.tks-contact-form-wrap .wpcf7-not-valid-tip {
  color: #fe0000;
  font-size: 14px;
  margin-top: 4px;
  display: block;
}

.tks-contact-form-wrap .wpcf7-validation-errors,
.tks-contact-form-wrap .wpcf7-mail-sent-ok {
  padding: 16px;
  margin: 24px 0;
  border-radius: 4px;
  font-size: 14px;
}

.tks-contact-form-wrap .wpcf7-validation-errors {
  background-color: #fff5f5;
  border: 1px solid #fe0000;
  color: #fe0000;
}

.tks-contact-form-wrap .wpcf7-mail-sent-ok {
  background-color: #f0f9ff;
  border: 1px solid #0066cc;
  color: #0066cc;
}

.tks-contact-info {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid #e5e5e5;
}

.tks-contact-info-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.tks-contact-info p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.tks-contact-info strong {
  font-weight: 700;
  color: #333;
}

@media (max-width: 767.98px) {
  .tks-contact-form-wrap {
    padding: 24px 20px;
  }
  
  .tks-contact-form-wrap label {
    font-size: 14px;
  }
  
  .tks-contact-form-wrap input[type="text"],
  .tks-contact-form-wrap input[type="email"],
  .tks-contact-form-wrap input[type="tel"],
  .tks-contact-form-wrap select,
  .tks-contact-form-wrap textarea {
    font-size: 14px;
    padding: 10px 12px;
  }
  
  .tks-contact-form-wrap textarea {
    min-height: 120px;
  }
  
  .tks-contact-form-wrap .wpcf7-submit {
    font-size: 16px;
    padding: 14px 24px;
  }
  
  .tks-contact-info {
    padding-top: 32px;
  }
  
  .tks-contact-info-title {
    font-size: 18px;
  }
  
  .tks-contact-info p {
    font-size: 14px;
  }
}

@media (max-width: 767.98px) {
  .tks-footer-top {
    padding: 16px 0;
  }
  
  .tks-footer-links {
    flex-direction: column;
    gap: 0;
  }
  
  .tks-footer-link {
    width: 100%;
    justify-content: center;
    border: 1px solid #fe0000;
    border-bottom: none;
    padding: 12px 20px;
  }
  
  .tks-footer-link:last-child {
    border-bottom: 1px solid #fe0000;
  }
  
  .tks-footer-link-separator {
    display: none;
  }
  
  .tks-footer-main {
    padding: 32px 0;
  }
  
  .tks-footer-nav {
    text-align: left;
    margin-top: 24px;
  }
  
  .tks-footer-nav-list {
    display: block;
  }
}

