@charset "UTF-8";

/* ============================================
   会社概要（COMPANY）ページ専用スタイル
   - 共通パーツ（header / footer / page-hero（en/ja含む）等）は base.css を継承
   - 数値は Figma(基準幅1920px) を rem / vw / clamp で流体化
============================================ */

/* 共通コンテナ（Figma本文幅 約1610px / 左右160px） */
.company-inner {
  max-width: 1610px;
  margin: 0 auto;
  padding: 0 var(--side-padding-pc);
}

/* ============================================
   セクション見出し（中央JAタイトル＋短い下線）
============================================ */
.comp-head {
  text-align: center;
}

.comp-head__title {
  display: inline-block;
  position: relative;
  margin: 0;
  padding-bottom: min(1.6vw, 32px);
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: min(3rem, 1.56vw);
  letter-spacing: 0.2em;
  line-height: 1.4;
  color: #000;
}
.company-csr .comp-head__title {
  font-family: var(--font-en);
}

.comp-head__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: currentColor;
}

/* 暗背景セクション用（白文字） */
.comp-head--light .comp-head__title {
  color: var(--color-white);
}

/* ============================================
   経営理念
============================================ */
.philosophy {
  background-color: #f8f8f8;
}

.philosophy__head {
  text-align: center;
  padding: min(3.8vw, 74px) var(--side-padding-pc) min(4.6vw, 90px);
}

.philosophy__statement {
  margin: min(3vw, 60px) auto 0;
  max-width: 1300px;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: min(3rem, 1.56vw);
  letter-spacing: 0.2em;
  line-height: 1.7;
  color: #000;
}

/* MISSION / VISION 2分割 */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.mv-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* min-height: clamp(220px, 17.2vw, 330px); */
  padding: min(4.3vw, 84px) 0 min(4.5vw, 88px);
}

.mv-block--mission {
  background-color: #e9e9e9;
  color: #000;
}

.mv-block--vision {
  background-color: #545a69;
  color: var(--color-white);
}

.mv-block__label {
  margin: 0 0 min(2.08vw, 40px);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: min(3rem, 1.56vw);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
  color: inherit;
}

.mv-block__text {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: min(2.5rem, 1.3vw);
  letter-spacing: 0.2em;
  line-height: 2;
  color: inherit;
}

/* ============================================
   代表挨拶（暗背景）
============================================ */
.greeting {
  background-color: rgba(37, 42, 46, 0.69);
  color: var(--color-white);
  padding: min(4.6vw, 90px) 0 min(5.1vw, 98px);
}

.greeting .comp-head {
  margin-bottom: min(5.41vw, 104px);
}

.greeting__grid {
  display: flex;
  justify-content: space-between;
  gap: min(5.52vw, 106px);
  width: 83.75vw;
  max-width: 1608px;
  margin: 0 auto;
}

.greeting__body {
  flex: 1 1 auto;
}

.greeting__lead {
  margin: 0 0 min(2vw, 40px);
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: min(2.6rem, 1.35vw);
  letter-spacing: 0.15em;
  line-height: 1.6;
}

.greeting__text {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: min(2rem, 1.04vw);
  letter-spacing: 0.15em;
  line-height: 2.1;
  text-align: justify; /* 両端揃え */
  text-justify: inter-ideograph;/* 両端揃えの種類 */
}

.greeting__figure {
  flex: 0 0 clamp(280px, 29vw, 556px);
  margin: 0;
}

.greeting__photo {
  width: 100%;
  aspect-ratio: 556 / 417;
  overflow: hidden;
}

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

.greeting__name {
  margin-top: min(1.2vw, 24px);
  text-align: right;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: min(2.5rem, 1.3vw);
  letter-spacing: 0.1em;
}
.greeting__name span {
  font-size: min(1.8rem, 0.94vw);
}

/* ============================================
   装飾バンド（工場写真）
============================================ */
.company-band {
  width: 100%;
  height: clamp(240px, 30.2vw, 580px);
  overflow: hidden;
}

.company-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   会社情報 / 会社沿革 テーブル共通
============================================ */
.company-info,
.company-history,
.company-csr {
  padding: min(5.2vw, 100px) 0;
}

.company-info {
  background-color: #f8f8f8;
}

.company-info .comp-head,
.company-history .comp-head,
.company-map .comp-head {
  margin-bottom: min(5.2vw, 100px);
}

.info-table,
.history-table {
  width: 64.47vw;
  max-width: 1238px;
  border-collapse: collapse;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: min(2rem, 1.04vw);
  letter-spacing: 0.1em;
  margin: 0 auto;
}

/* ----- 会社情報 ----- */
.info-table th,
.info-table td {
  border: 1px solid #9ea0ad;
  padding: min(1vw, 18px) min(1.8vw, 35px);
  vertical-align: middle;
  line-height: 1.7;
}

.info-table th {
  width: 23%;
  background-color: var(--color-base);
  color: var(--color-white);
  text-align: center;
  font-weight: 500;
}

.info-table td {
  background-color: #fff;
  color: #000;
  text-align: left;
}

.info-table__list {
  list-style: disc;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

/* ----- 会社沿革 ----- */
.history-table th,
.history-table td {
  border: 1px solid #9ea0ad;
  padding: min(1vw, 16px) min(1.5vw, 28px);
  vertical-align: middle;
  line-height: 1.6;
}

.history-table__year,
.history-table__month {
  background-color: #545A69;
  color: var(--color-white);
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
}

.history-table__year {
  width: clamp(140px, 16vw, 250px);
}

.history-table__month {
  width: clamp(48px, 5vw, 80px);
}

.history-table__event {
  background-color: #fff;
  color: #000;
  text-align: left;
}

/* ============================================
   MAP（Googleマップ埋め込み）
============================================ */
.company-map__frame {
  width: 64.47vw;
  max-width: 1238px;
  margin: 0 auto;
  height: clamp(280px, 28vw, 540px);
  overflow: hidden;
  background-color: #e9e9e9;
}

.company-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%);
}

/* ============================================
   CSR（PDFリンクカード）
============================================ */
.company-csr .company-inner {
  width: 63.28vw;
  max-width: 1215px;
}
.company-csr__statement {
  margin: min(2.5vw, 50px) 0 min(4.2vw, 80px);
  text-align: center;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: min(3rem, 1.56vw);
  letter-spacing: 0.2em;
  line-height: 1.6;
  color: #000;
}

.csr-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: min(2.2vw, 44px) min(2.4vw, 46px);
}

.csr-card a {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: min(3.12vw, 60px) 0 min(2.5vw, 48px);
  background-color: #545a69;
  color: var(--color-white);
  text-align: center;
}
.csr-card__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.csr-card__title {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: min(4.2rem, 2.1vw);
  letter-spacing: 0.2em;
  line-height: 1;
}

.csr-card__pdf {
  margin-top: min(0.8vw, 16px);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: min(1.6rem, 0.83vw);
  letter-spacing: 0.2em;
  color: #9EA0AD;
}

.csr-card__icon {
  position: relative;
  top: 0.1em;
  left: 0.86em;
  width: 0.86em;
  height: 0.86em;
  font-size: min(4.4rem, 2.3vw);
}
.csr-card__icon img {
  width: 100%;
}

/* ============================================
   SP（375px基準）
============================================ */
@media print, screen and (max-width: 768px) {
  .comp-head__title {
    padding-bottom: 4.3vw;
    font-size: 5.3vw;
  }
  .comp-head__title::after {
    width: 2em;
  }

  .company-inner {
    padding: 0 var(--side-padding-sp);
  }

  .philosophy__head {
    padding: 10vw var(--side-padding-sp);
  }

  .philosophy__statement {
    margin-top: 8vw;
    font-size: 4.2vw;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .mv-block {
    padding: 10vw var(--side-padding-sp);
  }

  .mv-block__label {
    margin-bottom: 4.2vw;
    font-size: 6.4vw;
  }

  .mv-block__text {
    font-size: 4vw;
  }

  .greeting,
  .company-info,
  .company-history,
  .company-map,
  .company-csr {
    padding: 16.6vw 0;
  }

  .greeting .comp-head,
  .company-info .comp-head,
  .company-history .comp-head,
  .company-map .comp-head {
    margin-bottom: 10.6vw;
  }

  .greeting__grid {
    flex-direction: column-reverse;
    gap: 10.6vw;
  }

  .greeting__lead {
    margin-bottom: 5.3vw;
    font-size: 4.2vw;
  }
  .greeting__text {
    font-size: 3.7333vw; /* 14 */
  }

  .greeting__figure {
    flex-basis: auto;
  }

  .greeting__name {
    margin-top: 3.7vw;
    text-align: left;
    font-size: 4.2vw; /* 16 */
  }
  .greeting__name span {
    font-size: 3.2vw;
  }

  .company-band {
    height: 48vw;
  }

  /* テーブルは縦積み（ラベル＝行頭、値＝下） */
  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table tr {
    margin-bottom: 4vw;
    border: 1px solid #9ea0ad;
  }

  .info-table th,
  .info-table td {
    border: 0;
    font-size: 3.7vw;
    padding: 2.67vw var(--side-padding-sp);
  }

  .info-table td {
    border-top: 1px solid #9ea0ad;
  }

  .history-table th,
  .history-table td {
    font-size: 3.2vw;
    padding: 2.67vw 3.7vw;
  }

  .history-table__year {
    width: 28vw;
  }

  .history-table__month {
    width: 13vw;
  }

  .company-map__frame {
    width: 100%;
    max-width: 100%;
    height: 64vw;
  }

  .company-csr .company-inner {
    width: 100%;
    max-width: 100%;
  }
  .company-csr__statement {
    margin: 6.4vw 0 10.6vw;
    font-size: 4.2vw;
  }

  .csr-list {
    grid-template-columns: 1fr;
    gap: 5.3vw;
  }

  .csr-card a {
    padding: 9vw 0 8vw;
  }

  .csr-card__pdf {
    margin-top: 2.6vw;
  }

  .csr-card__title {
    font-size: 5.3vw;
  }
  .csr-card__icon {
    font-size: 6.4vw;
  }
  .csr-card__pdf {
    font-size: 3.2vw;
  }
}
