@charset "utf-8";

/* =======================================
  #company / .mainTitle
======================================= */
.mainTitle {
  background: url("../img/company_mv_img.png") no-repeat center center;
  background-size: cover;
}

/* #company では h2Tit.bdr の上部ラインを非表示 */
#company .h2Tit.bdr::before {
  display: none;
}


/* =======================================
  #message
======================================= */
#message .sectionHead {
  margin-bottom: 1rem;
}


/* -----------------------------------------------
  .messageContent
  - PC: テキスト左・社長写真右（pcFlex）
----------------------------------------------- */
.messageContent {
  gap: 5rem;
  align-items: flex-start;
}

.messageTxt {
  flex: 1;
}

.messageTxt p {
  font-size: var(--font-base);
  line-height: 2;
  margin-bottom: 1.5em;
}

.messageTxt .h3Tit {
  margin-bottom: 1.5em;
  line-height: 1.5;
}

/* PC: messageFoot（SP用）は非表示 */
.messageFoot {
  display: none;
}

/* PC: messageContent直下のmessageImg（右カラム） */
.messageImg {
  width: 28%;
  flex-shrink: 0;
  margin: 0;
}

.messageImg img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.messageSig {
  margin-top: 2rem;
  text-align: right;
  line-height: 1.8;
  margin-bottom: 0 !important;
}

.messageSig span {
  display: block;
  font-size: var(--font-base);
}

.messageSig strong {
  font-size: var(--font-24);
  font-weight: 300;
  display: block;
  font-family: "Zen Old Mincho", serif;
}


/* =======================================
  #companyProfile / #businessProfile
======================================= */
#businessProfile {
  padding-bottom: 0;
}

#companyProfile .sectionHead,
#businessProfile .sectionHead {
  margin-bottom: 2rem;
}


/* -----------------------------------------------
  .companyTable
----------------------------------------------- */
.companyTable {
  width: 100%;
}

.companyTable > div {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--bgray);
}

.companyTable dt {
  font-size: var(--font-base);
  padding: 1.25rem 1.5rem;
  min-width: 220px;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background: var(--Lgray);
}

.companyTable dd {
  font-size: var(--font-base);
  padding: 1.25rem 0;
  line-height: 1.8;
  flex: 1;
}

.companyMap {
  margin-top: 1rem;
  border-radius: 6px;
  overflow: hidden;
}

.companyMap iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.companyNote {
  color: var(--red);
  font-weight: bold;
  margin-right: 1rem;
}

.companyTable > div:first-child .companyNote {
  margin-left: 1rem;
}


/* =======================================
  .historyPhotos
  - PC/SP共通スライダー（無限ループ）
======================================= */
.historyPhotos {
  padding: 8rem 0 0;
}

.historyPhotos ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  gap: .75rem;
  width: 100%;
  padding-left: 12.5vw;
  padding-right: 12.5vw;
}

.historyPhotos ul::-webkit-scrollbar {
  display: none;
}

.historyPhotos ul.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.historyPhotos li {
  flex: none;
  width: 75vw;
  overflow: hidden;
  border-radius: 0 10px 10px 0;
}

.historyPhotos li img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}


/* =======================================
  #history 沿革
======================================= */
#history .sectionHead {
  margin-bottom: 2rem;
}

.historyTable {
  width: 100%;
}

.historyTable > div {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--bgray);
}

.historyTable dt {
  font-size: var(--font-base);
  padding: 1rem 1.5rem;
  min-width: 160px;
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.historyTable dd {
  font-size: var(--font-base);
  padding: 1rem 2rem;
  line-height: 1.8;
  flex: 1;
}


/* =======================================
  PC対応（769px以上）
======================================= */
@media screen and (min-width: 769px) {

  /* historyPhotos PC：4枚横並び・padding不要 */
  .historyPhotos ul {
    padding-left: 0;
    padding-right: 0;
  }

  /* gap 3本（0.75rem × 3 = 2.25rem）を引いて4等分 */
  .historyPhotos li {
    width: calc((100% - 2.25rem) / 4);
  }
}


/* =======================================
  SP対応（768px以下）
======================================= */
@media screen and (max-width: 768px) {

  /* message SP */
  #message {
    padding-bottom: 60px;
  }

  .messageContent {
    flex-direction: column;
    gap: 2rem;
  }

  .messageSig.pc,
  .messageImg.pc {
    display: none;
  }

  .messageFoot {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .messageFoot .messageSig {
    flex: 1;
    text-align: left;
    margin-top: 0;
  }

  .messageFoot .messageImg {
    width: 45%;
    flex-shrink: 0;
    margin: 0;
  }

  /* companyTable */
  #companyProfile {
    padding-bottom: 40px;
  }

  .companyTable > div {
    flex-direction: column;
  }

  .companyTable dt {
    width: 100%;
    min-width: auto;
    padding: 1em 0 0.5rem;
    font-weight: 500;
  }

  .companyTable dd {
    padding: 0 0 1rem;
  }

  .companyMap iframe {
    height: 220px;
  }

  /* historyPhotos SP */
  .historyPhotos {
    padding: 40px 0;
  }

  .historyPhotos li {
    width: 75vw;
  }

  /* historyTable */
  .historyTable > div {
    flex-direction: column;
  }

  .historyTable dt {
    width: 100%;
    min-width: auto;
    padding: 1em 0 0.5rem;
    font-weight: 500;
    white-space: normal;
    background: var(--Lgray);
  }

  .historyTable dd {
    padding: 0 0 1rem;
  }
}