/**
 * 会社概要ページ用スタイル
 * 
 * 倉本鐵工株式会社の会社概要ページ専用のスタイルシート
 * 
 * @package Kuramoto
 * @version 1.0.0
 * @author 倉本鐵工株式会社
 */

/* 企業理念セクション */
.company-philosophy {
  margin: 80px 0;
  padding: 60px 0;
  text-align: center;
}

.philosophy-title {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 40px;
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.philosophy-main-message {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.6;
  text-align: center;
}

.philosophy-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin: 0;
  text-align: center;
}

/* 会社概要セクション */
.company-overview {
  margin: 80px 0;
  padding: 60px 0;
}

.company-overview h2 {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 40px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.overview-item {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.overview-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #5CC9E2;
  margin-bottom: 15px;
}

.overview-item p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* 会社の歴史セクション */
.company-history {
  margin: 80px 0;
  padding: 60px 0;
  background: #f8f9fa;
}

.company-history h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 40px;
}

.history-timeline {
  max-width: 800px;
  margin: 0 auto;
}

/* ご挨拶セクション */
.president-greeting {
  margin: 80px 0;
  padding: 60px 0;
  background-color: #F3F9FF;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.president-greeting::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 80px);
  max-width: 1200px;
  height: calc(100% - 80px);
  background: #fff;
  z-index: 1;
}

.greeting-title,
.greeting-content {
  position: relative;
  z-index: 2;
}

.greeting-title {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 40px;
}

.greeting-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.greeting-text {
  flex: 1;
}

.greeting-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

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

.greeting-image {
  flex: 0 0 300px;
  text-align: center;
}

.greeting-image img {
  width: 100%;
  max-width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 20px;
}

.president-info {
  text-align: center;
}

.president-title {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 5px 0;
}

.president-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .philosophy-main-message {
    font-size: 1.3rem;
  }

  .company-history h2,
  .president-message h2 {
    font-size: 2rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .overview-item {
    padding: 20px;
  }

  .greeting-content {
    flex-direction: column;
    gap: 30px;
    padding: 0 60px;
  }

  .greeting-image {
    flex: none;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-title::after,
  .company-philosophy::before,
  .company-strengths::before,
  .company-strengths::after,
  .major-clients::before,
  .company-overview::after {
    display: none;
  }

}

/* 当社の強みセクション */
.company-strengths {
  margin: 80px 0;
  padding: 60px 0;
}

.strengths-title {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 20px;
}

.strengths-subtitle {
  font-size: 1.2rem;
  color: #333;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.strength-card {
  background: #fff;
  border: 1px solid #5CC9E2;
  overflow: hidden;
  position: relative;
}

.strength-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.strength-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strength-content {
  padding: 30px;
  position: relative;
}

.strength-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

.strength-card:nth-child(1) .strength-content::before {
  background-image: url('../img/ico-strengths-1.svg');
}

.strength-card:nth-child(2) .strength-content::before {
  background-image: url('../img/ico-strengths-2.svg');
}

.strength-card:nth-child(3) .strength-content::before {
  background-image: url('../img/ico-strengths-3.svg');
}

.strength-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.strength-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .strengths-subtitle {
    font-size: 1rem;
    padding: 0 20px;
  }

  .strength-content {
    padding: 20px;
  }

  .strength-content::before {
    width: 80px;
    height: 80px;
  }
}

/* 主要な取引先様セクション */
.major-clients {
  margin: 80px 0;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clients-title {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 30px;
}

.clients-line {
  height: 2px;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  margin: 0 auto;
  width: 90%;
  max-width: 1000px;
}

/* コンテンツを上下左右の中央に配置 */
.major-clients .clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  width: 90%;
  max-width: 800px;
  margin: 30px auto;
  /* 上下の線の中央に来るよう余白を均等に */
  justify-items: center;
  /* 左寄せの箇条書きに */
}

.clients-column {
  text-align: left;
}

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

.clients-list li {
  font-size: 1.1rem;
  color: #333;
  padding-left: 20px;
  position: relative;
}

.clients-list li::before {
  content: '•';
  color: #5CC9E2;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .major-clients .clients-grid {
    grid-template-columns: 1fr;
    gap: 0;
    width: 55%;
    margin: 25px auto;
    justify-items: unset;
  }

  .clients-line {
    width: 92%;
  }
}

@media (max-width: 480px) {
  .major-clients .clients-grid {
    width: 65%;
  }
}

/* 会社概要セクション */
.company-overview {
  margin: 80px 0;
  padding: 60px 0;
}

.overview-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 20px;
}

.overview-subtitle {
  font-size: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem);
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
}

.overview-table {
  max-width: 800px;
  margin: 0 auto;
}

.overview-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 30px;
}

.overview-row:last-child {
  border-bottom: none;
}

.overview-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5CC9E2;
  width: 120px;
  flex-shrink: 0;
  margin-right: 30px;
}

.overview-value {
  font-size: 1.1rem;
  color: #333;
  flex: 1;
  line-height: 1.6;
}

/* 会社概要ページ専用の電話番号スタイル */
.overview-phone-number {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  color: #333 !important;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: transparent !important;
}

.sp-only {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .sp-only {
    display: block;
  }

  .overview-row {
    flex-direction: column;
    padding: 15px 20px;
  }

  .overview-label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .overview-value {
    font-size: 1rem;
  }
}

/* 地図のスタイル */
.company-overview iframe {
  max-width: 800px;
  width: 100%;
  height: 300px;
  margin: 40px auto 0;
  display: block;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .company-overview iframe {
    height: 300px;
    margin: 30px auto 0;
  }
}

/* 私たちについてタイトルエリアの装飾 */
.page-title {
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -300px;
  width: 600px;
  height: 600px;
  background-image: url('../img/up-circle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 企業理念セクションの装飾 */
.company-philosophy {
  position: relative;
}

.company-philosophy::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -300px;
  width: 600px;
  height: 600px;
  background-image: url('../img/down-circle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 当社の強みセクションの装飾 */
.company-strengths {
  position: relative;
}

.company-strengths::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 600px;
  height: 600px;
  background-image: url('../img/up-circle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

.company-strengths::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -300px;
  width: 600px;
  height: 600px;
  background-image: url('../img/down-circle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 主要な取引先様セクションの装飾 */
.major-clients {
  position: relative;
}

.major-clients::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 600px;
  height: 600px;
  background-image: url('../img/up-circle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 会社概要セクション */
.company-overview {
  position: relative;
}

/* 細島工場セクションの装飾 */
.factory-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -300px;
  width: 600px;
  height: 600px;
  background-image: url('../img/down-circle.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 数字で見るKURAMOTOセクション */
.pc-only {
  display: block;
}

.company-stats {
  margin: 80px 0;
  padding: 60px 0;
  background-color: #F3F9FF;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.company-stats::before {
  content: 'KURAMOTO';
  position: absolute;
  left: -330px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.8);
  z-index: 1;
  white-space: nowrap;
}

.stats-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.stats-title {
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.stats-title-line1 {
  color: #5CC9E2;
  font-size: clamp(1rem, 0.837rem + 0.81vw, 1.813rem);
  margin-bottom: 5px;
}

.stats-title-line2 {
  background: linear-gradient(135deg, #5CC9E2 0%, #70CC94 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
}

.stats-date-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: right;
  width: 80%;
}

.stats-date {
  font-size: 1.1rem;
  color: #5CC9E2;
  font-weight: 500;
  margin: 0;
}

.stats-grid {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 300px);
  grid-template-rows: repeat(5, 180px);
  gap: 5px;
}

.stats-item {
  background: #fff;
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
  border: 1px solid #5CC9E2;
  align-items: center;
}

/* 平均残業時間も統一サイズに */
.stats-item-overtime {
  padding: 15px;
  min-height: 100px;
}

/* パズルレイアウト配置 */
.stats-item-operation {
  grid-column: 1;
  grid-row: 1 / 3;
  /* 1列目、1-2行目（縦2行分） */
  position: relative;
}

.stats-item-operation::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background-image: url('../img/ico-operation_year.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}

.stats-item-operation .stats-item-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.stats-item-operation .stats-item-unit {
  margin-top: 5px;
}

.stats-item-overtime {
  grid-column: 2;
  grid-row: 1;
  /* 2列目、1行目 */
}

.stats-item-vacation {
  grid-column: 3;
  grid-row: 1 / 4;
  /* 3列目、1-3行目（縦3行分） */
}

.stats-item-tenure {
  grid-column: 1;
  grid-row: 3 / 5;
  /* 1列目、3-4行目（縦2行分） */
}

.stats-item-retention {
  grid-column: 2;
  grid-row: 2 / 5;
  /* 2列目、2-4行目（縦3行分） */
}

.stats-item-employees {
  grid-column: 3;
  grid-row: 4 / 6;
  /* 3列目、4-5行目（縦2行分） */
}

.stats-item-ratio {
  grid-column: 1 / 3;
  grid-row: 5;
  /* 1-2列目、5行目（横2列分） */
}

.stats-item-ratio-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stats-item-ratio .stats-item-value {
  margin-bottom: 0;
  flex: 1;
}

.stats-item-ratio .stats-item-icons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.stats-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.stats-item-title {
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.75rem);
  font-weight: 600;
  color: #5CC9E2;
  margin: 0 0 15px 0;
  text-align: center;
  border-bottom: 1px solid #5CC9E2;
  padding-bottom: 3px;
}

.stats-item-value {
  font-size: clamp(3rem, 2.7rem + 1.5vw, 4.5rem);
  font-weight: 700;
  color: #5CC9E2;
  margin-bottom: 5px;
  line-height: 1;
}

.stats-item-unit {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  color: #5CC9E2;
  font-weight: 600;
}

.stats-item-icon {
  width: 130px;
  height: 130px;
}

.stats-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stats-item-icons {
  display: flex;
  gap: 8px;
}

.stats-item-icons img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .company-stats::before {
    display: none;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }

  .stats-title {
    font-size: 2rem;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  /* 子要素の幅指定がある場合のケア */
  .stats-grid>* {
    width: 80%;
  }

  /* 各アイテムの配置をフラットに戻す */
  .stats-item-operation,
  .stats-item-overtime,
  .stats-item-vacation,
  .stats-item-tenure,
  .stats-item-retention,
  .stats-item-employees,
  .stats-item-ratio {
    grid-column: 1;
    grid-row: auto;
    margin: 0 auto;
  }

  .stats-item-icon,
  .stats-item-icons,
  .stats-item-ratio .stats-item-icons {
    display: none;
  }


  .stats-item-tall-left,
  .stats-item-tall-right,
  .stats-item-tall-center {
    grid-column: 1;
    grid-row: auto;
  }

  .stats-item-wide-top,
  .stats-item-wide-bottom {
    grid-column: 1;
    grid-row: auto;
  }

  .company-stats::before {
    font-size: 4rem;
    left: -20px;
  }
}