/* company_profile.css - 会社概要ページのスタイル */

:root {
  --section-spacing: calc(60 / var(--bw) * 100vw);
  --element-spacing: calc(30 / var(--bw) * 100vw);
}

/* ----------------------
   基本レイアウト
---------------------- */
.text-title {
  margin-top: calc(80 / var(--bw) * 100vw);
  margin-bottom: calc(40 / var(--bw) * 100vw);
  font-size: calc(48 / var(--bw) * 100vw);
  font-weight: bold;
  color: var(--color-primary);
}

.text-title span {
  font-size: calc(72 / var(--bw) * 100vw);
  color: var(--color-primary);
}

h4 {
  color: var(--color-dark-primary);
  font-weight: bold;
  font-size: calc(32 / var(--bw) * 100vw);
  margin-bottom: calc(20 / var(--bw) * 100vw);
  position: relative;
}

.text-18 {
  font-size: calc(18 / var(--bw) * 100vw);
  line-height: calc(32 / var(--bw) * 100vw);
}

/* ----------------------
   会社ヘッダー部分
---------------------- */
.company-header {
  text-align: center;
  margin: calc(40 / var(--bw) * 100vw) 0 var(--section-spacing);
  padding-bottom: var(--element-spacing);
  border-bottom: 1px solid #f0f0f0;
}

.company-logo {
  max-width: 80%;
  height: auto;
  margin-bottom: var(--element-spacing);
}

.strive-title {
  font-size: calc(48 / var(--bw) * 100vw);
  font-weight: bold;
  color: #333;
  margin-bottom: calc(15 / var(--bw) * 100vw);
}

.strive-tagline {
  font-size: calc(24 / var(--bw) * 100vw);
  color: #555;
  margin-bottom: calc(20 / var(--bw) * 100vw);
}

/* ブランド関連説明 */
.brand-relationship {
  background-color: #f5f8fa;
  padding: calc(20 / var(--bw) * 100vw);
  border-radius: calc(10 / var(--bw) * 100vw);
  margin-bottom: var(--section-spacing);
  border-left: calc(5 / var(--bw) * 100vw) solid var(--color-primary);
}

.relationship-notice {
  margin: 0;
  font-weight: 500;
  color: #333;
}

/* ----------------------
   セクションスタイル
---------------------- */
.section-block {
  margin-bottom: var(--section-spacing);
  padding-bottom: var(--element-spacing);
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.section-block:last-child {
  border-bottom: none;
}

.section-content {
  padding: calc(10 / var(--bw) * 100vw) 0 calc(20 / var(--bw) * 100vw);
}

.section-content p {
  line-height: calc(36 / var(--bw) * 100vw);
}

/* ----------------------
   テーブルスタイル
---------------------- */
.company-details table {
  width: 100%;
  margin-top: calc(20 / var(--bw) * 100vw);
  border-collapse: separate;
  border-spacing: 0;
}

.company-details table th {
  width: 40%;
  padding: calc(15 / var(--bw) * 100vw) calc(10 / var(--bw) * 100vw) calc(15 / var(--bw) * 100vw) 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
  font-weight: normal;
  color: #333;
}

.company-details table td {
  width: 60%;
  padding: calc(15 / var(--bw) * 100vw) 0;
  vertical-align: top;
  border-bottom: 1px solid #e0e0e0;
}

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

/* ----------------------
   フッター修正部分
---------------------- */
.footer {
  position: relative;
  margin-top: calc(100 / var(--bw) * 100vw);
  overflow: visible;
}

.footer .top-footer {
  position: absolute;
  top: 0;
  width: 100%;
  height: auto;
  min-height: calc(200 / var(--bw) * 100vw);
  z-index: 1;
  object-fit: cover;
}

.footer-wave-image {
  width: 100%;
  display: block;
  min-height: 150px;
  z-index: 1;
}

.footer .content-footer {
  position: relative;
  z-index: 2;
}

/* ----------------------
   レスポンシブデザイン
---------------------- */
@media (max-width: 767px) {
  :root {
    --section-spacing: calc(40 / var(--bw) * 100vw);
    --element-spacing: calc(20 / var(--bw) * 100vw);
  }

  .text-title {
    font-size: calc(36 / var(--bw) * 100vw);
  }
  
  .text-title span {
    font-size: calc(52 / var(--bw) * 100vw);
  }
  
  .strive-title {
    font-size: calc(36 / var(--bw) * 100vw);
  }
  
  .strive-tagline {
    font-size: calc(18 / var(--bw) * 100vw);
  }
  
  h4 {
    font-size: calc(24 / var(--bw) * 100vw);
  }
  
  .company-details table th,
  .company-details table td {
    display: block;
    width: 100%;
  }
  
  .company-details table th {
    border-bottom: none;
    padding-bottom: calc(5 / var(--bw) * 100vw);
  }
  
  .company-details table td {
    padding-top: calc(5 / var(--bw) * 100vw);
  }
  
  .section-content p {
    line-height: calc(30 / var(--bw) * 100vw);
    font-size: calc(16 / var(--bw) * 100vw);
  }
  
  /* フッター修正（モバイル） */
  .footer {
    margin-top: calc(60 / var(--bw) * 100vw);
  }
  
  .footer .top-footer {
    min-height: calc(150 / var(--bw) * 100vw);
  }
}

/* ----------------------
   タブレット対応
---------------------- */
@media (min-width: 768px) and (max-width: 991px) {
  .company-logo {
    max-width: 70%;
  }
  
  .footer .top-footer {
    min-height: calc(180 / var(--bw) * 100vw);
  }
}

/* ----------------------
   印刷用スタイル
---------------------- */
@media print {
  .section-block {
    page-break-inside: avoid;
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
  
  .company-details table {
    page-break-inside: avoid;
  }
  
  .footer {
    display: none;
  }
}