/* =========================================================
  #company header.css 対策込み 安定版
  - スマホはみ出し対策込み
========================================================= */

#company.companySec{
  padding: 70px 0;
  color: #111;
  overflow-x: hidden;
}

#company *,
#company *::before,
#company *::after{
  box-sizing: border-box;
}

/* ★保険：#company 内の header だけ通常に戻す */
#company header{
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  width: auto !important;
  background: transparent !important;
}

/* container */
#company .cHead,
#company .cWrap{
  max-width: 1180px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

/* headings */
#company .cH2{
  margin: 0;
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: .02em;
}

#company .cH2 span{
  display:block;
  margin-top: 14px;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 800;
  color: rgba(17,17,17,.72);
  letter-spacing: .04em;
}

#company .cH2 span::before{
  content:"";
  display:block;
  height: 3px;
  width: min(36%, 220px);
  background: #ffe600;
  margin: 12px 0 12px;
}

#company .cHead--gap{
  margin-top: 100px;
}

#company .cLead{
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  color: rgba(17,17,17,.82);
  font-family: auto;
}

/* boxes */
#company .cWrap{
  margin-top: 55px;
  display: grid;
  gap: 40px;
}

#company .cBox{
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  min-width: 0;
}

/* titles inside box */
#company .cTitle{
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#company .cTitle span{
  margin-left: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .10em;
  color: rgba(17,17,17,.55);
  text-transform: none;
}

/* =========================================================
  会社概要
========================================================= */

#company .cDef{
  margin: 0;
  min-width: 0;
}

#company .cDefRow{
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  min-width: 0;
}

#company .cDefRow:last-child{
  border-bottom: none;
}

#company .cDefRow dt,
#company .cDefRow dd{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  min-width: 0;
}

#company .cDefRow dt{
  font-weight: 900;
  color: #111;
  white-space: nowrap;
}

#company .cDefRow dd{
  font-weight: 800;
  color: rgba(17,17,17,.92);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* list */
#company .cList{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

#company .cList li{
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 750;
  color: rgba(17,17,17,.86);
  overflow-wrap: anywhere;
  word-break: break-word;
}

#company .cList li::before{
  content:"";
  position:absolute;
  left:0;
  top: .8em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
}

/* media */
#company .cMedia{
  margin: 0;
  overflow: hidden;
  background: #fff;
  width: 100px;
  max-width: 100%;
}

#company .cMedia img{
  width: 100%;
  height: auto;
  display: block;
}

#company .cNote{
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  color: rgba(17,17,17,.78);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
  Group Cards
========================================================= */

#company .gCard{
  border: 1px solid rgba(0,0,0,.12);
  padding: 24px;
  margin-top: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  font-family: auto;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

#company .gCard:first-of-type{
  margin-top: 0;
}

#company .gLogo{
  border: 1px solid rgba(0,0,0,.20);
  background: #fff;
  border-radius: 0;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
  min-width: 0;
}

#company .gLogo img{
  width: min(88%, 280px);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

#company .gMain{
  min-width: 0;
}

/* 会社名 */
#company .gName{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .02em;
  color: #111;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#company .gLine{
  height: 2px;
  background: #ffe600;
  width: min(40%, 180px);
  margin: 10px 0 16px;
}

/* info rows */
#company .gDef{
  margin: 0;
  display: grid;
  gap: 5px;
  min-width: 0;
}

#company .gRow{
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

#company .gRow dt{
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #111;
  line-height: 1.7;
  white-space: nowrap;
}

#company .gRow dd{
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
  color: rgba(17,17,17,.92);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#company .gSep{
  height: 14px;
}

/* links */
#company .gDef a{
  color: rgba(17,17,17,.92);
  text-decoration: none;
  border-bottom: 2px solid rgba(17,17,17,.35);
  padding-bottom: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#company .gWeb{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 900;
  color: #464646f8;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#company .gWeb::after{
  content: "↗";
  font-size: 16px;
  font-weight: 900;
  transform: translateY(-1px);
  flex-shrink: 0;
}

#company .gDesc{
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  color: rgba(17,17,17,.80);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
  Tablet
========================================================= */
@media (max-width: 860px){
  #company.companySec{
    padding: 56px 0;
  }

  #company .cHead,
  #company .cWrap{
    margin: 0 auto 72px;
  }

  #company .cHead--gap{
    margin-top: 72px;
  }

  #company .cWrap{
    gap: 28px;
  }

  #company .cBox{
    padding: 22px;
  }

  #company .gCard{
    grid-template-columns: 1fr;
  }

  #company .gLogo{
    aspect-ratio: auto;
    padding: 20px;
  }

  #company .gLogo img{
    width: min(72%, 260px);
  }
}

/* =========================================================
  Mobile
========================================================= */
@media (max-width: 560px){
  #company.companySec{
    padding: 44px 0;
  }

  #company .cHead,
  #company .cWrap{
    padding: 0 16px;
    margin: 0 auto 56px;
  }

  #company .cHead--gap{
    margin-top: 56px;
  }

  #company .cLead{
    font-size: 14px;
    line-height: 1.9;
  }

  #company .cWrap{
    margin-top: 36px;
    gap: 20px;
  }

  #company .cBox{
    padding: 18px 10px;
  }

  #company .cTitle{
    font-size: 15px;
    margin-bottom: 14px;
  }

  #company .cDefRow{
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  #company .cDefRow dt,
  #company .cDefRow dd{
    font-size: 14px;
    line-height: 1.5;
  }

  #company .cDefRow dt{
    white-space: normal;
  }

  #company .cList li{
    font-size: 14px;
    line-height: 1.5;
  }

  #company .cMedia{
    width: 88px;
  }

  #company .cNote{
    font-size: 13px;
    line-height: 1.5;
  }

  #company .gCard{
    padding: 10px;
    gap: 16px;
  }

  #company .gLogo{
    padding: 14px;
  }

  #company .gLogo img{
    width: min(78%, 220px);
  }

  #company .gName{
    font-size: 16px;
    line-height: 1.5;
  }

  #company .gLine{
    width: 120px;
    margin: 8px 0 14px;
  }

  #company .gRow{
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #company .gRow dt,
  #company .gRow dd{
    font-size: 14px;
    line-height: 1.5;
  }

  #company .gRow dt{
    white-space: normal;
  }

  #company .gWeb{
    font-size: 12px;
    line-height: 1.5;
  }

  #company .gDesc{
    font-size: 12px;
    line-height: 1.5;
  }
}